(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09437294"],{"07d6":function(A,t){A.exports=function(){throw new Error("define cannot be used indirect")}},"38f8":function(A,t,e){"use strict";e("e6c9")},c0e9:function(A,t,e){
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
(function(t,e){A.exports=e()})(0,(function(){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */var A=function(t,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(A[e]=t[e])},A(t,e)};function t(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var e=function(){return e=Object.assign||function(A){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e],t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n]);return A},e.apply(this,arguments)};function r(A,t,e,r){function n(A){return A instanceof e?A:new e((function(t){t(A)}))}return new(e||(e=Promise))((function(e,i){function o(A){try{a(r.next(A))}catch(qt){i(qt)}}function s(A){try{a(r["throw"](A))}catch(qt){i(qt)}}function a(A){A.done?e(A.value):n(A.value).then(o,s)}a((r=r.apply(A,t||[])).next())}))}function n(A,t){var e,r,n,i,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(A){return function(t){return a([A,t])}}function a(i){if(e)throw new TypeError("Generator is already executing.");while(o)try{if(e=1,r&&(n=2&i[0]?r["return"]:i[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){o.label=i[1];break}if(6===i[0]&&o.label<n[1]){o.label=n[1],n=i;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(i);break}n[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(A,o)}catch(qt){i=[6,qt],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function i(A,t,e){if(e||2===arguments.length)for(var r,n=0,i=t.length;n<i;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return A.concat(r||t)}for(var o=function(){function A(A,t,e,r){this.left=A,this.top=t,this.width=e,this.height=r}return A.prototype.add=function(t,e,r,n){return new A(this.left+t,this.top+e,this.width+r,this.height+n)},A.fromClientRect=function(t,e){return new A(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)},A.fromDOMRectList=function(t,e){var r=Array.from(e).find((function(A){return 0!==A.width}));return r?new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),s=function(A,t){return o.fromClientRect(A,t.getBoundingClientRect())},a=function(A){var t=A.body,e=A.documentElement;if(!t||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,e.scrollWidth),Math.max(t.offsetWidth,e.offsetWidth),Math.max(t.clientWidth,e.clientWidth)),n=Math.max(Math.max(t.scrollHeight,e.scrollHeight),Math.max(t.offsetHeight,e.offsetHeight),Math.max(t.clientHeight,e.clientHeight));return new o(0,0,r,n)},c=function(A){var t=[],e=0,r=A.length;while(e<r){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);56320===(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),e--)}else t.push(n)}return t},l=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";var r=[],n=-1,i="";while(++n<e){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"===typeof Uint8Array?[]:new Uint8Array(256),d=0;d<u.length;d++)h[u.charCodeAt(d)]=d;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"===typeof Uint8Array?[]:new Uint8Array(256),p=0;p<f.length;p++)g[f.charCodeAt(p)]=p;for(var B=function(A){var t,e,r,n,i,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),l=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)e=g[A.charCodeAt(t)],r=g[A.charCodeAt(t+1)],n=g[A.charCodeAt(t+2)],i=g[A.charCodeAt(t+3)],l[a++]=e<<2|r>>4,l[a++]=(15&r)<<4|n>>2,l[a++]=(3&n)<<6|63&i;return c},w=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},m=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},y=5,C=11,Q=2,F=C-y,U=65536>>y,v=1<<y,b=v-1,x=1024>>y,I=U+x,E=I,H=32,S=E+H,k=65536>>C,L=1<<F,D=L-1,T=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},K=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},O=function(A,t){var e=B(A),r=Array.isArray(e)?m(e):new Uint32Array(e),n=Array.isArray(e)?w(e):new Uint16Array(e),i=24,o=T(n,i/2,r[4]/2),s=2===r[5]?T(n,(i+r[4])/2):K(r,Math.ceil((i+r[4])/4));return new _(r[0],r[1],r[2],r[3],o,s)},_=function(){function A(A,t,e,r,n,i){this.initialValue=A,this.errorValue=t,this.highStart=e,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>y],t=(t<<Q)+(A&b),this.data[t];if(A<=65535)return t=this.index[U+(A-55296>>y)],t=(t<<Q)+(A&b),this.data[t];if(A<this.highStart)return t=S-k+(A>>C),t=this.index[t],t+=A>>y&D,t=this.index[t],t=(t<<Q)+(A&b),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P="undefined"===typeof Uint8Array?[]:new Uint8Array(256),R=0;R<M.length;R++)P[M.charCodeAt(R)]=R;var N=" ",G=50,V=1,q=2,j=3,X=4,W=5,J=7,z=8,Y=9,Z=10,$=11,AA=12,tA=13,eA=14,rA=15,nA=16,iA=17,oA=18,sA=19,aA=20,cA=21,lA=22,uA=23,hA=24,dA=25,fA=26,gA=27,pA=28,BA=29,wA=30,mA=31,yA=32,CA=33,QA=34,FA=35,UA=36,vA=37,bA=38,xA=39,IA=40,EA=41,HA=42,SA=43,kA=[9001,65288],LA="!",DA="×",TA="÷",KA=O(N),OA=[wA,UA],_A=[V,q,j,W],MA=[Z,z],PA=[gA,fA],RA=_A.concat(MA),NA=[bA,xA,IA,QA,FA],GA=[rA,tA],VA=function(A,t){void 0===t&&(t="strict");var e=[],r=[],n=[];return A.forEach((function(A,i){var o=KA.get(A);if(o>G?(n.push(!0),o-=G):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(i),e.push(nA);if(o===X||o===$){if(0===i)return r.push(i),e.push(wA);var s=e[i-1];return-1===RA.indexOf(s)?(r.push(r[i-1]),e.push(s)):(r.push(i),e.push(wA))}return r.push(i),o===mA?e.push("strict"===t?cA:vA):o===HA||o===BA?e.push(wA):o===SA?A>=131072&&A<=196605||A>=196608&&A<=262141?e.push(vA):e.push(wA):void e.push(o)})),[r,e,n]},qA=function(A,t,e,r){var n=r[e];if(Array.isArray(A)?-1!==A.indexOf(n):A===n){var i=e;while(i<=r.length){i++;var o=r[i];if(o===t)return!0;if(o!==Z)break}}if(n===Z){i=e;while(i>0){i--;var s=r[i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var a=e;while(a<=r.length){a++;o=r[a];if(o===t)return!0;if(o!==Z)break}}if(s!==Z)break}}return!1},jA=function(A,t){var e=A;while(e>=0){var r=t[e];if(r!==Z)return r;e--}return 0},XA=function(A,t,e,r,n){if(0===e[r])return DA;var i=r-1;if(Array.isArray(n)&&!0===n[i])return DA;var o=i-1,s=i+1,a=t[i],c=o>=0?t[o]:0,l=t[s];if(a===q&&l===j)return DA;if(-1!==_A.indexOf(a))return LA;if(-1!==_A.indexOf(l))return DA;if(-1!==MA.indexOf(l))return DA;if(jA(i,t)===z)return TA;if(KA.get(A[i])===$)return DA;if((a===yA||a===CA)&&KA.get(A[s])===$)return DA;if(a===J||l===J)return DA;if(a===Y)return DA;if(-1===[Z,tA,rA].indexOf(a)&&l===Y)return DA;if(-1!==[iA,oA,sA,hA,pA].indexOf(l))return DA;if(jA(i,t)===lA)return DA;if(qA(uA,lA,i,t))return DA;if(qA([iA,oA],cA,i,t))return DA;if(qA(AA,AA,i,t))return DA;if(a===Z)return TA;if(a===uA||l===uA)return DA;if(l===nA||a===nA)return TA;if(-1!==[tA,rA,cA].indexOf(l)||a===eA)return DA;if(c===UA&&-1!==GA.indexOf(a))return DA;if(a===pA&&l===UA)return DA;if(l===aA)return DA;if(-1!==OA.indexOf(l)&&a===dA||-1!==OA.indexOf(a)&&l===dA)return DA;if(a===gA&&-1!==[vA,yA,CA].indexOf(l)||-1!==[vA,yA,CA].indexOf(a)&&l===fA)return DA;if(-1!==OA.indexOf(a)&&-1!==PA.indexOf(l)||-1!==PA.indexOf(a)&&-1!==OA.indexOf(l))return DA;if(-1!==[gA,fA].indexOf(a)&&(l===dA||-1!==[lA,rA].indexOf(l)&&t[s+1]===dA)||-1!==[lA,rA].indexOf(a)&&l===dA||a===dA&&-1!==[dA,pA,hA].indexOf(l))return DA;if(-1!==[dA,pA,hA,iA,oA].indexOf(l)){var u=i;while(u>=0){var h=t[u];if(h===dA)return DA;if(-1===[pA,hA].indexOf(h))break;u--}}if(-1!==[gA,fA].indexOf(l)){u=-1!==[iA,oA].indexOf(a)?o:i;while(u>=0){h=t[u];if(h===dA)return DA;if(-1===[pA,hA].indexOf(h))break;u--}}if(bA===a&&-1!==[bA,xA,QA,FA].indexOf(l)||-1!==[xA,QA].indexOf(a)&&-1!==[xA,IA].indexOf(l)||-1!==[IA,FA].indexOf(a)&&l===IA)return DA;if(-1!==NA.indexOf(a)&&-1!==[aA,fA].indexOf(l)||-1!==NA.indexOf(l)&&a===gA)return DA;if(-1!==OA.indexOf(a)&&-1!==OA.indexOf(l))return DA;if(a===hA&&-1!==OA.indexOf(l))return DA;if(-1!==OA.concat(dA).indexOf(a)&&l===lA&&-1===kA.indexOf(A[s])||-1!==OA.concat(dA).indexOf(l)&&a===oA)return DA;if(a===EA&&l===EA){var d=e[i],f=1;while(d>0){if(d--,t[d]!==EA)break;f++}if(f%2!==0)return DA}return a===yA&&l===CA?DA:TA},WA=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=VA(A,t.lineBreak),r=e[0],n=e[1],i=e[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map((function(A){return-1!==[dA,wA,HA].indexOf(A)?vA:A})));var o="keep-all"===t.wordBreak?i.map((function(t,e){return t&&A[e]>=19968&&A[e]<=40959})):void 0;return[r,n,o]},JA=function(){function A(A,t,e,r){this.codePoints=A,this.required=t===LA,this.start=e,this.end=r}return A.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),zA=function(A,t){var e=c(A),r=WA(e,t),n=r[0],i=r[1],o=r[2],s=e.length,a=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};var A=DA;while(l<s&&(A=XA(e,i,n,++l,o))===DA);if(A!==DA||l===s){var t=new JA(e,A,a,l);return a=l,{value:t,done:!1}}return{done:!0,value:null}}}},YA=1,ZA=2,$A=4,At=8,tt=10,et=47,rt=92,nt=9,it=32,ot=34,st=61,at=35,ct=36,lt=37,ut=39,ht=40,dt=41,ft=95,gt=45,pt=33,Bt=60,wt=62,mt=64,yt=91,Ct=93,Qt=61,Ft=123,Ut=63,vt=125,bt=124,xt=126,It=128,Et=65533,Ht=42,St=43,kt=44,Lt=58,Dt=59,Tt=46,Kt=0,Ot=8,_t=11,Mt=14,Pt=31,Rt=127,Nt=-1,Gt=48,Vt=97,qt=101,jt=102,Xt=117,Wt=122,Jt=65,zt=69,Yt=70,Zt=85,$t=90,Ae=function(A){return A>=Gt&&A<=57},te=function(A){return A>=55296&&A<=57343},ee=function(A){return Ae(A)||A>=Jt&&A<=Yt||A>=Vt&&A<=jt},re=function(A){return A>=Vt&&A<=Wt},ne=function(A){return A>=Jt&&A<=$t},ie=function(A){return re(A)||ne(A)},oe=function(A){return A>=It},se=function(A){return A===tt||A===nt||A===it},ae=function(A){return ie(A)||oe(A)||A===ft},ce=function(A){return ae(A)||Ae(A)||A===gt},le=function(A){return A>=Kt&&A<=Ot||A===_t||A>=Mt&&A<=Pt||A===Rt},ue=function(A,t){return A===rt&&t!==tt},he=function(A,t,e){return A===gt?ae(t)||ue(t,e):!!ae(A)||!(A!==rt||!ue(A,t))},de=function(A,t,e){return A===St||A===gt?!!Ae(t)||t===Tt&&Ae(e):Ae(A===Tt?t:A)},fe=function(A){var t=0,e=1;A[t]!==St&&A[t]!==gt||(A[t]===gt&&(e=-1),t++);var r=[];while(Ae(A[t]))r.push(A[t++]);var n=r.length?parseInt(l.apply(void 0,r),10):0;A[t]===Tt&&t++;var i=[];while(Ae(A[t]))i.push(A[t++]);var o=i.length,s=o?parseInt(l.apply(void 0,i),10):0;A[t]!==zt&&A[t]!==qt||t++;var a=1;A[t]!==St&&A[t]!==gt||(A[t]===gt&&(a=-1),t++);var c=[];while(Ae(A[t]))c.push(A[t++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return e*(n+s*Math.pow(10,-o))*Math.pow(10,a*u)},ge={type:2},pe={type:3},Be={type:4},we={type:13},me={type:8},ye={type:21},Ce={type:9},Qe={type:10},Fe={type:11},Ue={type:12},ve={type:14},be={type:23},xe={type:1},Ie={type:25},Ee={type:24},He={type:26},Se={type:27},ke={type:28},Le={type:29},De={type:31},Te={type:32},Ke=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(c(A))},A.prototype.read=function(){var A=[],t=this.consumeToken();while(t!==Te)A.push(t),t=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ot:return this.consumeStringToken(ot);case at:var t=this.peekCodePoint(0),e=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ce(t)||ue(e,r)){var n=he(t,e,r)?ZA:YA,i=this.consumeName();return{type:5,value:i,flags:n}}break;case ct:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),we;break;case ut:return this.consumeStringToken(ut);case ht:return ge;case dt:return pe;case Ht:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),ve;break;case St:if(de(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case kt:return Be;case gt:var o=A,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(de(o,s,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(he(o,s,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===gt&&a===wt)return this.consumeCodePoint(),this.consumeCodePoint(),Ee;break;case Tt:if(de(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case et:if(this.peekCodePoint(0)===Ht){this.consumeCodePoint();while(1){var c=this.consumeCodePoint();if(c===Ht&&(c=this.consumeCodePoint(),c===et))return this.consumeToken();if(c===Nt)return this.consumeToken()}}break;case Lt:return He;case Dt:return Se;case Bt:if(this.peekCodePoint(0)===pt&&this.peekCodePoint(1)===gt&&this.peekCodePoint(2)===gt)return this.consumeCodePoint(),this.consumeCodePoint(),Ie;break;case mt:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(he(u,h,d)){i=this.consumeName();return{type:7,value:i}}break;case yt:return ke;case rt:if(ue(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Ct:return Le;case Qt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),me;break;case Ft:return Fe;case vt:return Ue;case Xt:case Zt:var f=this.peekCodePoint(0),g=this.peekCodePoint(1);return f!==St||!ee(g)&&g!==Ut||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case bt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),Ce;if(this.peekCodePoint(0)===bt)return this.consumeCodePoint(),ye;break;case xt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),Qe;break;case Nt:return Te}return se(A)?(this.consumeWhiteSpace(),De):Ae(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):ae(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:l(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){var A=[],t=this.consumeCodePoint();while(ee(t)&&A.length<6)A.push(t),t=this.consumeCodePoint();var e=!1;while(t===Ut&&A.length<6)A.push(t),t=this.consumeCodePoint(),e=!0;if(e){var r=parseInt(l.apply(void 0,A.map((function(A){return A===Ut?Gt:A}))),16),n=parseInt(l.apply(void 0,A.map((function(A){return A===Ut?Yt:A}))),16);return{type:30,start:r,end:n}}var i=parseInt(l.apply(void 0,A),16);if(this.peekCodePoint(0)===gt&&ee(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var o=[];while(ee(t)&&o.length<6)o.push(t),t=this.consumeCodePoint();n=parseInt(l.apply(void 0,o),16);return{type:30,start:i,end:n}}return{type:30,start:i,end:i}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===ht?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ht?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Nt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===ut||t===ot){var e=this.consumeStringToken(this.consumeCodePoint());return 0===e.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Nt||this.peekCodePoint(0)===dt)?(this.consumeCodePoint(),{type:22,value:e.value}):(this.consumeBadUrlRemnants(),be)}while(1){var r=this.consumeCodePoint();if(r===Nt||r===dt)return{type:22,value:l.apply(void 0,A)};if(se(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Nt||this.peekCodePoint(0)===dt?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,A)}):(this.consumeBadUrlRemnants(),be);if(r===ot||r===ut||r===ht||le(r))return this.consumeBadUrlRemnants(),be;if(r===rt){if(!ue(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),be;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){while(se(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===dt||A===Nt)return;ue(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var t=5e4,e="";while(A>0){var r=Math.min(t,A);e+=l.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){var t="",e=0;do{var r=this._value[e];if(r===Nt||void 0===r||r===A)return t+=this.consumeStringSlice(e),{type:0,value:t};if(r===tt)return this._value.splice(0,e),xe;if(r===rt){var n=this._value[e+1];n!==Nt&&void 0!==n&&(n===tt?(t+=this.consumeStringSlice(e),e=-1,this._value.shift()):ue(r,n)&&(t+=this.consumeStringSlice(e),t+=l(this.consumeEscapedCodePoint()),e=-1))}e++}while(1)},A.prototype.consumeNumber=function(){var A=[],t=$A,e=this.peekCodePoint(0);e!==St&&e!==gt||A.push(this.consumeCodePoint());while(Ae(this.peekCodePoint(0)))A.push(this.consumeCodePoint());e=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(e===Tt&&Ae(r)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=At;while(Ae(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}e=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((e===zt||e===qt)&&((r===St||r===gt)&&Ae(n)||Ae(r))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=At;while(Ae(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[fe(A),t]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],e=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(he(r,n,i)){var o=this.consumeName();return{type:15,number:t,flags:e,unit:o}}return r===lt?(this.consumeCodePoint(),{type:16,number:t,flags:e}):{type:17,number:t,flags:e}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(ee(A)){var t=l(A);while(ee(this.peekCodePoint(0))&&t.length<6)t+=l(this.consumeCodePoint());se(this.peekCodePoint(0))&&this.consumeCodePoint();var e=parseInt(t,16);return 0===e||te(e)||e>1114111?Et:e}return A===Nt?Et:A},A.prototype.consumeName=function(){var A="";while(1){var t=this.consumeCodePoint();if(ce(t))A+=l(t);else{if(!ue(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),A;A+=l(this.consumeEscapedCodePoint())}}},A}(),Oe=function(){function A(A){this._tokens=A}return A.create=function(t){var e=new Ke;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){var A=this.consumeToken();while(31===A.type)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var t=this.consumeComponentValue();if(32===t.type)return A;A.push(t),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var t={type:A,values:[]},e=this.consumeToken();while(1){if(32===e.type||je(e,A))return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue()),e=this.consumeToken()}},A.prototype.consumeFunction=function(A){var t={name:A.value,values:[],type:18};while(1){var e=this.consumeToken();if(32===e.type||3===e.type)return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?Te:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),_e=function(A){return 15===A.type},Me=function(A){return 17===A.type},Pe=function(A){return 20===A.type},Re=function(A){return 0===A.type},Ne=function(A,t){return Pe(A)&&A.value===t},Ge=function(A){return 31!==A.type},Ve=function(A){return 31!==A.type&&4!==A.type},qe=function(A){var t=[],e=[];return A.forEach((function(A){if(4===A.type){if(0===e.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(e),void(e=[])}31!==A.type&&e.push(A)})),e.length&&t.push(e),t},je=function(A,t){return 11===t&&12===A.type||(28===t&&29===A.type||2===t&&3===A.type)},Xe=function(A){return 17===A.type||15===A.type},We=function(A){return 16===A.type||Xe(A)},Je=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},ze={type:17,number:0,flags:$A},Ye={type:16,number:50,flags:$A},Ze={type:16,number:100,flags:$A},$e=function(A,t,e){var r=A[0],n=A[1];return[Ar(r,t),Ar("undefined"!==typeof n?n:r,e)]},Ar=function(A,t){if(16===A.type)return A.number/100*t;if(_e(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},tr="deg",er="grad",rr="rad",nr="turn",ir={name:"angle",parse:function(A,t){if(15===t.type)switch(t.unit){case tr:return Math.PI*t.number/180;case er:return Math.PI/200*t.number;case rr:return t.number;case nr:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},or=function(A){return 15===A.type&&(A.unit===tr||A.unit===er||A.unit===rr||A.unit===nr)},sr=function(A){var t=A.filter(Pe).map((function(A){return A.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ze,ze];case"to top":case"bottom":return ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ze,Ze];case"to right":case"left":return ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ze,Ze];case"to bottom":case"top":return ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ze,ze];case"to left":case"right":return ar(270)}return 0},ar=function(A){return Math.PI*A/180},cr={name:"color",parse:function(A,t){if(18===t.type){var e=Br[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(A,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);return hr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);var o=t.value.substring(3,4);return hr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===t.value.length){r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6);return hr(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(8===t.value.length){r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),o=t.value.substring(6,8);return hr(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(o,16)/255)}}if(20===t.type){var s=mr[t.value.toUpperCase()];if("undefined"!==typeof s)return s}return mr.TRANSPARENT}},lr=function(A){return 0===(255&A)},ur=function(A){var t=255&A,e=255&A>>8,r=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+r+","+e+","+t/255+")":"rgb("+n+","+r+","+e+")"},hr=function(A,t,e,r){return(A<<24|t<<16|e<<8|Math.round(255*r)<<0)>>>0},dr=function(A,t){if(17===A.type)return A.number;if(16===A.type){var e=3===t?1:255;return 3===t?A.number/100*e:Math.round(A.number/100*e)}return 0},fr=function(A,t){var e=t.filter(Ve);if(3===e.length){var r=e.map(dr),n=r[0],i=r[1],o=r[2];return hr(n,i,o,1)}if(4===e.length){var s=e.map(dr),a=(n=s[0],i=s[1],o=s[2],s[3]);return hr(n,i,o,a)}return 0};function gr(A,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-A)*e*6+A:e<.5?t:e<2/3?6*(t-A)*(2/3-e)+A:A}var pr=function(A,t){var e=t.filter(Ve),r=e[0],n=e[1],i=e[2],o=e[3],s=(17===r.type?ar(r.number):ir.parse(A,r))/(2*Math.PI),a=We(n)?n.number/100:0,c=We(i)?i.number/100:0,l="undefined"!==typeof o&&We(o)?Ar(o,1):1;if(0===a)return hr(255*c,255*c,255*c,1);var u=c<=.5?c*(a+1):c+a-c*a,h=2*c-u,d=gr(h,u,s+1/3),f=gr(h,u,s),g=gr(h,u,s-1/3);return hr(255*d,255*f,255*g,l)},Br={hsl:pr,hsla:pr,rgb:fr,rgba:fr},wr=function(A,t){return cr.parse(A,Oe.create(t).parseComponentValue())},mr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},yr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(Pe(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Cr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qr=function(A,t){var e=cr.parse(A,t[0]),r=t[1];return r&&We(r)?{color:e,stop:r}:{color:e,stop:null}},Fr=function(A,t){var e=A[0],r=A[A.length-1];null===e.stop&&(e.stop=ze),null===r.stop&&(r.stop=Ze);for(var n=[],i=0,o=0;o<A.length;o++){var s=A[o].stop;if(null!==s){var a=Ar(s,t);a>i?n.push(a):n.push(i),i=a}else n.push(null)}var c=null;for(o=0;o<n.length;o++){var l=n[o];if(null===l)null===c&&(c=o);else if(null!==c){for(var u=o-c,h=n[c-1],d=(l-h)/(u+1),f=1;f<=u;f++)n[c+f-1]=d*f;c=null}}return A.map((function(A,e){var r=A.color;return{color:r,stop:Math.max(Math.min(1,n[e]/t),0)}}))},Ur=function(A,t,e){var r=t/2,n=e/2,i=Ar(A[0],t)-r,o=n-Ar(A[1],e);return(Math.atan2(o,i)+2*Math.PI)%(2*Math.PI)},vr=function(A,t,e){var r="number"===typeof A?A:Ur(A,t,e),n=Math.abs(t*Math.sin(r))+Math.abs(e*Math.cos(r)),i=t/2,o=e/2,s=n/2,a=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[n,i-c,i+c,o-a,o+a]},br=function(A,t){return Math.sqrt(A*A+t*t)},xr=function(A,t,e,r,n){var i=[[0,0],[0,t],[A,0],[A,t]];return i.reduce((function(A,t){var i=t[0],o=t[1],s=br(e-i,r-o);return(n?s<A.optimumDistance:s>A.optimumDistance)?{optimumCorner:t,optimumDistance:s}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Ir=function(A,t,e,r,n){var i=0,o=0;switch(A.size){case 0:0===A.shape?i=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):1===A.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(0===A.shape)i=o=Math.min(br(t,e),br(t,e-n),br(t-r,e),br(t-r,e-n));else if(1===A.shape){var s=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(t),Math.abs(t-r)),a=xr(r,n,t,e,!0),c=a[0],l=a[1];i=br(c-t,(l-e)/s),o=s*i}break;case 1:0===A.shape?i=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):1===A.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(0===A.shape)i=o=Math.max(br(t,e),br(t,e-n),br(t-r,e),br(t-r,e-n));else if(1===A.shape){s=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(t),Math.abs(t-r));var u=xr(r,n,t,e,!1);c=u[0],l=u[1];i=br(c-t,(l-e)/s),o=s*i}break}return Array.isArray(A.size)&&(i=Ar(A.size[0],r),o=2===A.size.length?Ar(A.size[1],n):i),[i,o]},Er=function(A,t){var e=ar(180),r=[];return qe(t).forEach((function(t,n){if(0===n){var i=t[0];if(20===i.type&&"to"===i.value)return void(e=sr(t));if(or(i))return void(e=ir.parse(A,i))}var o=Qr(A,t);r.push(o)})),{angle:e,stops:r,type:1}},Hr=function(A,t){var e=ar(180),r=[];return qe(t).forEach((function(t,n){if(0===n){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(e=sr(t));if(or(i))return void(e=(ir.parse(A,i)+ar(270))%ar(360))}var o=Qr(A,t);r.push(o)})),{angle:e,stops:r,type:1}},Sr=function(A,t){var e=ar(180),r=[],n=1,i=0,o=3,s=[];return qe(t).forEach((function(t,e){var i=t[0];if(0===e){if(Pe(i)&&"linear"===i.value)return void(n=1);if(Pe(i)&&"radial"===i.value)return void(n=2)}if(18===i.type)if("from"===i.name){var o=cr.parse(A,i.values[0]);r.push({stop:ze,color:o})}else if("to"===i.name){o=cr.parse(A,i.values[0]);r.push({stop:Ze,color:o})}else if("color-stop"===i.name){var s=i.values.filter(Ve);if(2===s.length){o=cr.parse(A,s[1]);var a=s[0];Me(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===n?{angle:(e+ar(180))%ar(360),stops:r,type:n}:{size:o,shape:i,stops:r,position:s,type:n}},kr="closest-side",Lr="farthest-side",Dr="closest-corner",Tr="farthest-corner",Kr="circle",Or="ellipse",_r="cover",Mr="contain",Pr=function(A,t){var e=0,r=3,n=[],i=[];return qe(t).forEach((function(t,o){var s=!0;if(0===o){var a=!1;s=t.reduce((function(A,t){if(a)if(Pe(t))switch(t.value){case"center":return i.push(Ye),A;case"top":case"left":return i.push(ze),A;case"right":case"bottom":return i.push(Ze),A}else(We(t)||Xe(t))&&i.push(t);else if(Pe(t))switch(t.value){case Kr:return e=0,!1;case Or:return e=1,!1;case"at":return a=!0,!1;case kr:return r=0,!1;case _r:case Lr:return r=1,!1;case Mr:case Dr:return r=2,!1;case Tr:return r=3,!1}else if(Xe(t)||We(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return A}),s)}if(s){var c=Qr(A,t);n.push(c)}})),{size:r,shape:e,stops:n,position:i,type:2}},Rr=function(A,t){var e=0,r=3,n=[],i=[];return qe(t).forEach((function(t,o){var s=!0;if(0===o?s=t.reduce((function(A,t){if(Pe(t))switch(t.value){case"center":return i.push(Ye),!1;case"top":case"left":return i.push(ze),!1;case"right":case"bottom":return i.push(Ze),!1}else if(We(t)||Xe(t))return i.push(t),!1;return A}),s):1===o&&(s=t.reduce((function(A,t){if(Pe(t))switch(t.value){case Kr:return e=0,!1;case Or:return e=1,!1;case Mr:case kr:return r=0,!1;case Lr:return r=1,!1;case Dr:return r=2,!1;case _r:case Tr:return r=3,!1}else if(Xe(t)||We(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return A}),s)),s){var a=Qr(A,t);n.push(a)}})),{size:r,shape:e,stops:n,position:i,type:2}},Nr=function(A){return 1===A.type},Gr=function(A){return 2===A.type},Vr={name:"image",parse:function(A,t){if(22===t.type){var e={url:t.value,type:0};return A.cache.addImage(t.value),e}if(18===t.type){var r=Xr[t.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function qr(A){return!(20===A.type&&"none"===A.value)&&(18!==A.type||!!Xr[A.name])}var jr,Xr={"linear-gradient":Er,"-moz-linear-gradient":Hr,"-ms-linear-gradient":Hr,"-o-linear-gradient":Hr,"-webkit-linear-gradient":Hr,"radial-gradient":Pr,"-moz-radial-gradient":Rr,"-ms-radial-gradient":Rr,"-o-radial-gradient":Rr,"-webkit-radial-gradient":Rr,"-webkit-gradient":Sr},Wr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var e=t[0];return 20===e.type&&"none"===e.value?[]:t.filter((function(A){return Ve(A)&&qr(A)})).map((function(t){return Vr.parse(A,t)}))}},Jr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(Pe(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},zr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return qe(t).map((function(A){return A.filter(We)})).map(Je)}},Yr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return qe(t).map((function(A){return A.filter(Pe).map((function(A){return A.value})).join(" ")})).map(Zr)}},Zr=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(jr||(jr={}));var $r,An={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return qe(t).map((function(A){return A.filter(tn)}))}},tn=function(A){return Pe(A)||We(A)},en=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rn=en("top"),nn=en("right"),on=en("bottom"),sn=en("left"),an=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return Je(t.filter(We))}}},cn=an("top-left"),ln=an("top-right"),un=an("bottom-right"),hn=an("bottom-left"),dn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},fn=dn("top"),gn=dn("right"),pn=dn("bottom"),Bn=dn("left"),wn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return _e(t)?t.number:0}}},mn=wn("top"),yn=wn("right"),Cn=wn("bottom"),Qn=wn("left"),Fn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Un={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},vn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(Pe).reduce((function(A,t){return A|bn(t.value)}),0)}},bn=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},In={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})($r||($r={}));var En,Hn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return $r.STRICT;case"normal":default:return $r.NORMAL}}},Sn={name:"line-height",initialValue:"normal",prefix:!1,type:4},kn=function(A,t){return Pe(A)&&"normal"===A.value?1.2*t:17===A.type?t*A.number:We(A)?Ar(A,t):t},Ln={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return 20===t.type&&"none"===t.value?null:Vr.parse(A,t)}},Dn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Tn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Kn=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},On=Kn("top"),_n=Kn("right"),Mn=Kn("bottom"),Pn=Kn("left"),Rn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(Pe).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Nn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Gn=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Vn=Gn("top"),qn=Gn("right"),jn=Gn("bottom"),Xn=Gn("left"),Wn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Jn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},zn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&Ne(t[0],"none")?[]:qe(t).map((function(t){for(var e={color:mr.TRANSPARENT,offsetX:ze,offsetY:ze,blur:ze},r=0,n=0;n<t.length;n++){var i=t[n];Xe(i)?(0===r?e.offsetX=i:1===r?e.offsetY=i:e.blur=i,r++):e.color=cr.parse(A,i)}return e}))}},Yn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Zn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var e=ti[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},$n=function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===t.length?t:null},Ai=function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),e=t[0],r=t[1];t[2],t[3];var n=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],16===t.length?[e,r,n,i,o,s]:null},ti={matrix:$n,matrix3d:Ai},ei={type:16,number:50,flags:$A},ri=[ei,ei],ni={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var e=t.filter(We);return 2!==e.length?ri:[e[0],e[1]]}},ii={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(A){A["NORMAL"]="normal",A["BREAK_ALL"]="break-all",A["KEEP_ALL"]="keep-all"})(En||(En={}));for(var oi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return En.BREAK_ALL;case"keep-all":return En.KEEP_ALL;case"normal":default:return En.NORMAL}}},si={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(20===t.type)return{auto:!0,order:0};if(Me(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},ai={name:"time",parse:function(A,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},ci={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return Me(t)?t.number:1}},li={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ui={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(Pe).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},hi={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var e=[],r=[];return t.forEach((function(A){switch(A.type){case 20:case 0:e.push(A.value);break;case 17:e.push(A.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}})),e.length&&r.push(e.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},di={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(Me(t))return t.number;if(Pe(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},gi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(Pe).map((function(A){return A.value}))}},pi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Bi=function(A,t){return 0!==(A&t)},wi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var e=t[0];return 20===e.type&&"none"===e.value?[]:t}},mi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var e=t[0];if(20===e.type&&"none"===e.value)return null;for(var r=[],n=t.filter(Ge),i=0;i<n.length;i++){var o=n[i],s=n[i+1];if(20===o.type){var a=s&&Me(s)?s.number:1;r.push({counter:o.value,increment:a})}}return r}},yi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return[];for(var e=[],r=t.filter(Ge),n=0;n<r.length;n++){var i=r[n],o=r[n+1];if(Pe(i)&&"none"!==i.value){var s=o&&Me(o)?o.number:0;e.push({counter:i.value,reset:s})}}return e}},Ci={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(_e).map((function(t){return ai.parse(A,t)}))}},Qi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var e=t[0];if(20===e.type&&"none"===e.value)return null;var r=[],n=t.filter(Re);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var o=n[i].value,s=n[i+1].value;r.push({open:o,close:s})}return r}},Fi=function(A,t,e){if(!A)return"";var r=A[Math.min(t,A.length-1)];return r?e?r.open:r.close:""},Ui={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&Ne(t[0],"none")?[]:qe(t).map((function(t){for(var e={color:255,offsetX:ze,offsetY:ze,blur:ze,spread:ze,inset:!1},r=0,n=0;n<t.length;n++){var i=t[n];Ne(i,"inset")?e.inset=!0:Xe(i)?(0===r?e.offsetX=i:1===r?e.offsetY=i:2===r?e.blur=i:e.spread=i,r++):e.color=cr.parse(A,i)}return e}))}},vi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var e=[0,1,2],r=[];return t.filter(Pe).forEach((function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}})),e.forEach((function(A){-1===r.indexOf(A)&&r.push(A)})),r}},bi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},xi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return _e(t)?t.number:0}},Ii=function(){function A(A,t){var e,r;this.animationDuration=Si(A,Ci,t.animationDuration),this.backgroundClip=Si(A,yr,t.backgroundClip),this.backgroundColor=Si(A,Cr,t.backgroundColor),this.backgroundImage=Si(A,Wr,t.backgroundImage),this.backgroundOrigin=Si(A,Jr,t.backgroundOrigin),this.backgroundPosition=Si(A,zr,t.backgroundPosition),this.backgroundRepeat=Si(A,Yr,t.backgroundRepeat),this.backgroundSize=Si(A,An,t.backgroundSize),this.borderTopColor=Si(A,rn,t.borderTopColor),this.borderRightColor=Si(A,nn,t.borderRightColor),this.borderBottomColor=Si(A,on,t.borderBottomColor),this.borderLeftColor=Si(A,sn,t.borderLeftColor),this.borderTopLeftRadius=Si(A,cn,t.borderTopLeftRadius),this.borderTopRightRadius=Si(A,ln,t.borderTopRightRadius),this.borderBottomRightRadius=Si(A,un,t.borderBottomRightRadius),this.borderBottomLeftRadius=Si(A,hn,t.borderBottomLeftRadius),this.borderTopStyle=Si(A,fn,t.borderTopStyle),this.borderRightStyle=Si(A,gn,t.borderRightStyle),this.borderBottomStyle=Si(A,pn,t.borderBottomStyle),this.borderLeftStyle=Si(A,Bn,t.borderLeftStyle),this.borderTopWidth=Si(A,mn,t.borderTopWidth),this.borderRightWidth=Si(A,yn,t.borderRightWidth),this.borderBottomWidth=Si(A,Cn,t.borderBottomWidth),this.borderLeftWidth=Si(A,Qn,t.borderLeftWidth),this.boxShadow=Si(A,Ui,t.boxShadow),this.color=Si(A,Fn,t.color),this.direction=Si(A,Un,t.direction),this.display=Si(A,vn,t.display),this.float=Si(A,xn,t.cssFloat),this.fontFamily=Si(A,hi,t.fontFamily),this.fontSize=Si(A,di,t.fontSize),this.fontStyle=Si(A,pi,t.fontStyle),this.fontVariant=Si(A,gi,t.fontVariant),this.fontWeight=Si(A,fi,t.fontWeight),this.letterSpacing=Si(A,In,t.letterSpacing),this.lineBreak=Si(A,Hn,t.lineBreak),this.lineHeight=Si(A,Sn,t.lineHeight),this.listStyleImage=Si(A,Ln,t.listStyleImage),this.listStylePosition=Si(A,Dn,t.listStylePosition),this.listStyleType=Si(A,Tn,t.listStyleType),this.marginTop=Si(A,On,t.marginTop),this.marginRight=Si(A,_n,t.marginRight),this.marginBottom=Si(A,Mn,t.marginBottom),this.marginLeft=Si(A,Pn,t.marginLeft),this.opacity=Si(A,ci,t.opacity);var n=Si(A,Rn,t.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Si(A,Nn,t.overflowWrap),this.paddingTop=Si(A,Vn,t.paddingTop),this.paddingRight=Si(A,qn,t.paddingRight),this.paddingBottom=Si(A,jn,t.paddingBottom),this.paddingLeft=Si(A,Xn,t.paddingLeft),this.paintOrder=Si(A,vi,t.paintOrder),this.position=Si(A,Jn,t.position),this.textAlign=Si(A,Wn,t.textAlign),this.textDecorationColor=Si(A,li,null!==(e=t.textDecorationColor)&&void 0!==e?e:t.color),this.textDecorationLine=Si(A,ui,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Si(A,zn,t.textShadow),this.textTransform=Si(A,Yn,t.textTransform),this.transform=Si(A,Zn,t.transform),this.transformOrigin=Si(A,ni,t.transformOrigin),this.visibility=Si(A,ii,t.visibility),this.webkitTextStrokeColor=Si(A,bi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Si(A,xi,t.webkitTextStrokeWidth),this.wordBreak=Si(A,oi,t.wordBreak),this.zIndex=Si(A,si,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return lr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Bi(this.display,4)||Bi(this.display,33554432)||Bi(this.display,268435456)||Bi(this.display,536870912)||Bi(this.display,67108864)||Bi(this.display,134217728)},A}(),Ei=function(){function A(A,t){this.content=Si(A,wi,t.content),this.quotes=Si(A,Qi,t.quotes)}return A}(),Hi=function(){function A(A,t){this.counterIncrement=Si(A,mi,t.counterIncrement),this.counterReset=Si(A,yi,t.counterReset)}return A}(),Si=function(A,t,e){var r=new Ke,n=null!==e&&"undefined"!==typeof e?e.toString():t.initialValue;r.write(n);var i=new Oe(r.read());switch(t.type){case 2:var o=i.parseComponentValue();return t.parse(A,Pe(o)?o.value:t.initialValue);case 0:return t.parse(A,i.parseComponentValue());case 1:return t.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return ir.parse(A,i.parseComponentValue());case"color":return cr.parse(A,i.parseComponentValue());case"image":return Vr.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Xe(s)?s:ze;case"length-percentage":var a=i.parseComponentValue();return We(a)?a:ze;case"time":return ai.parse(A,i.parseComponentValue())}break}},ki="data-html2canvas-debug",Li=function(A){var t=A.getAttribute(ki);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Di=function(A,t){var e=Li(A);return 1===e||t===e},Ti=function(){function A(A,t){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Di(t,3),this.styles=new Ii(A,window.getComputedStyle(t,null)),Hs(t)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),Di(t,4)&&(this.flags|=16)}return A}(),Ki=" ",Oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_i="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Mi=0;Mi<Oi.length;Mi++)_i[Oi.charCodeAt(Mi)]=Mi;for(var Pi=function(A){var t,e,r,n,i,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),l=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)e=_i[A.charCodeAt(t)],r=_i[A.charCodeAt(t+1)],n=_i[A.charCodeAt(t+2)],i=_i[A.charCodeAt(t+3)],l[a++]=e<<2|r>>4,l[a++]=(15&r)<<4|n>>2,l[a++]=(3&n)<<6|63&i;return c},Ri=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},Ni=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},Gi=5,Vi=11,qi=2,ji=Vi-Gi,Xi=65536>>Gi,Wi=1<<Gi,Ji=Wi-1,zi=1024>>Gi,Yi=Xi+zi,Zi=Yi,$i=32,Ao=Zi+$i,to=65536>>Vi,eo=1<<ji,ro=eo-1,no=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},io=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},oo=function(A,t){var e=Pi(A),r=Array.isArray(e)?Ni(e):new Uint32Array(e),n=Array.isArray(e)?Ri(e):new Uint16Array(e),i=24,o=no(n,i/2,r[4]/2),s=2===r[5]?no(n,(i+r[4])/2):io(r,Math.ceil((i+r[4])/4));return new so(r[0],r[1],r[2],r[3],o,s)},so=function(){function A(A,t,e,r,n,i){this.initialValue=A,this.errorValue=t,this.highStart=e,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>Gi],t=(t<<qi)+(A&Ji),this.data[t];if(A<=65535)return t=this.index[Xi+(A-55296>>Gi)],t=(t<<qi)+(A&Ji),this.data[t];if(A<this.highStart)return t=Ao-to+(A>>Vi),t=this.index[t],t+=A>>Gi&ro,t=this.index[t],t=(t<<qi)+(A&Ji),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",co="undefined"===typeof Uint8Array?[]:new Uint8Array(256),lo=0;lo<ao.length;lo++)co[ao.charCodeAt(lo)]=lo;var uo,ho=1,fo=2,go=3,po=4,Bo=5,wo=7,mo=8,yo=9,Co=10,Qo=11,Fo=12,Uo=13,vo=14,bo=15,xo=function(A){var t=[],e=0,r=A.length;while(e<r){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);56320===(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),e--)}else t.push(n)}return t},Io=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";var r=[],n=-1,i="";while(++n<e){var o=A[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Eo=oo(Ki),Ho="×",So="÷",ko=function(A){return Eo.get(A)},Lo=function(A,t,e){var r=e-2,n=t[r],i=t[e-1],o=t[e];if(i===fo&&o===go)return Ho;if(i===fo||i===go||i===po)return So;if(o===fo||o===go||o===po)return So;if(i===mo&&-1!==[mo,yo,Qo,Fo].indexOf(o))return Ho;if((i===Qo||i===yo)&&(o===yo||o===Co))return Ho;if((i===Fo||i===Co)&&o===Co)return Ho;if(o===Uo||o===Bo)return Ho;if(o===wo)return Ho;if(i===ho)return Ho;if(i===Uo&&o===vo){while(n===Bo)n=t[--r];if(n===vo)return Ho}if(i===bo&&o===bo){var s=0;while(n===bo)s++,n=t[--r];if(s%2===0)return Ho}return So},Do=function(A){var t=xo(A),e=t.length,r=0,n=0,i=t.map(ko);return{next:function(){if(r>=e)return{done:!0,value:null};var A=Ho;while(r<e&&(A=Lo(t,i,++r))===Ho);if(A!==Ho||r===e){var o=Io.apply(null,t.slice(n,r));return n=r,{value:o,done:!1}}return{done:!0,value:null}}}},To=function(A){var t,e=Do(A),r=[];while(!(t=e.next()).done)t.value&&r.push(t.value.slice());return r},Ko=function(A){var t=123;if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=t+"px",r.style.display="block",A.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===t)return!0}}return!1},Oo=function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var e=A.createRange();t.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,n=c(r.data).map((function(A){return l(A)})),i=0,o={},s=n.every((function(A,t){e.setStart(r,i),e.setEnd(r,i+A.length);var n=e.getBoundingClientRect();i+=A.length;var s=n.x>o.x||n.y>o.y;return o=n,0===t||s}));return A.body.removeChild(t),s},_o=function(){return"undefined"!==typeof(new Image).crossOrigin},Mo=function(){return"string"===typeof(new XMLHttpRequest).responseType},Po=function(A){var t=new Image,e=A.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),e.toDataURL()}catch(qt){return!1}return!0},Ro=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},No=function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=t.toDataURL();n.src=i;var o=Go(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),Vo(o).then((function(t){r.drawImage(t,0,0);var n=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var o=A.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=e+"px",Ro(n)?Vo(Go(e,e,0,0,o)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Ro(r.getImageData(0,0,e,e).data)})).catch((function(){return!1}))},Go=function(A,t,e,r,n){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",e.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(n),o},Vo=function(A){return new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},qo={get SUPPORT_RANGE_BOUNDS(){var A=Ko(document);return Object.defineProperty(qo,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=qo.SUPPORT_RANGE_BOUNDS&&Oo(document);return Object.defineProperty(qo,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Po(document);return Object.defineProperty(qo,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?No(document):Promise.resolve(!1);return Object.defineProperty(qo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=_o();return Object.defineProperty(qo,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Mo();return Object.defineProperty(qo,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(qo,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(qo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},jo=function(){function A(A,t){this.text=A,this.bounds=t}return A}(),Xo=function(A,t,e,r){var n=Zo(t,e),i=[],s=0;return n.forEach((function(t){if(e.textDecorationLine.length||t.trim().length>0)if(qo.SUPPORT_RANGE_BOUNDS){var n=Jo(r,s,t.length).getClientRects();if(n.length>1){var a=zo(t),c=0;a.forEach((function(t){i.push(new jo(t,o.fromDOMRectList(A,Jo(r,c+s,t.length).getClientRects()))),c+=t.length}))}else i.push(new jo(t,o.fromDOMRectList(A,n)))}else{var l=r.splitText(t.length);i.push(new jo(t,Wo(A,r))),r=l}else qo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length})),i},Wo=function(A,t){var e=t.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=s(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return o.EMPTY},Jo=function(A,t,e){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,t),n.setEnd(A,t+e),n},zo=function(A){if(qo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return To(A)},Yo=function(A,t){if(qo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return As(A,t)},Zo=function(A,t){return 0!==t.letterSpacing?zo(A):Yo(A,t)},$o=[32,160,4961,65792,65793,4153,4241],As=function(A,t){var e,r=zA(A,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),n=[],i=function(){if(e.value){var A=e.value.slice(),t=c(A),r="";t.forEach((function(A){-1===$o.indexOf(A)?r+=l(A):(r.length&&n.push(r),n.push(l(A)),r="")})),r.length&&n.push(r)}};while(!(e=r.next()).done)i();return n},ts=function(){function A(A,t,e){this.text=es(t.data,e.textTransform),this.textBounds=Xo(A,this.text,e,t)}return A}(),es=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(rs,ns);case 2:return A.toUpperCase();default:return A}},rs=/(^|\s|:|-|\(|\))([a-z])/g,ns=function(A,t,e){return A.length>0?t+e.toUpperCase():A},is=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.src=e.currentSrc||e.src,r.intrinsicWidth=e.naturalWidth,r.intrinsicHeight=e.naturalHeight,r.context.cache.addImage(r.src),r}return t(e,A),e}(Ti),os=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.canvas=e,r.intrinsicWidth=e.width,r.intrinsicHeight=e.height,r}return t(e,A),e}(Ti),ss=function(A){function e(t,e){var r=A.call(this,t,e)||this,n=new XMLSerializer,i=s(t,e);return e.setAttribute("width",i.width+"px"),e.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(e)),r.intrinsicWidth=e.width.baseVal.value,r.intrinsicHeight=e.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(e,A),e}(Ti),as=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.value=e.value,r}return t(e,A),e}(Ti),cs=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.start=e.start,r.reversed="boolean"===typeof e.reversed&&!0===e.reversed,r}return t(e,A),e}(Ti),ls=[{type:15,flags:0,unit:"px",number:3}],us=[{type:16,flags:0,number:50}],hs=function(A){return A.width>A.height?new o(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new o(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},ds=function(A){var t=A.type===ps?new Array(A.value.length+1).join("•"):A.value;return 0===t.length?A.placeholder||"":t},fs="checkbox",gs="radio",ps="password",Bs=707406591,ws=function(A){function e(t,e){var r=A.call(this,t,e)||this;switch(r.type=e.type.toLowerCase(),r.checked=e.checked,r.value=ds(e),r.type!==fs&&r.type!==gs||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=hs(r.bounds)),r.type){case fs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ls;break;case gs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=us;break}return r}return t(e,A),e}(Ti),ms=function(A){function e(t,e){var r=A.call(this,t,e)||this,n=e.options[e.selectedIndex||0];return r.value=n&&n.text||"",r}return t(e,A),e}(Ti),ys=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.value=e.value,r}return t(e,A),e}(Ti),Cs=function(A){function e(t,e){var r=A.call(this,t,e)||this;r.src=e.src,r.width=parseInt(e.width,10)||0,r.height=parseInt(e.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){r.tree=vs(t,e.contentWindow.document.documentElement);var n=e.contentWindow.document.documentElement?wr(t,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):mr.TRANSPARENT,i=e.contentWindow.document.body?wr(t,getComputedStyle(e.contentWindow.document.body).backgroundColor):mr.TRANSPARENT;r.backgroundColor=lr(n)?lr(i)?r.styles.backgroundColor:i:n}}catch(qt){}return r}return t(e,A),e}(Ti),Qs=["OL","UL","MENU"],Fs=function(A,t,e,r){for(var n=t.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,Is(n)&&n.data.trim().length>0)e.textNodes.push(new ts(A,n,e.styles));else if(Es(n))if(js(n)&&n.assignedNodes)n.assignedNodes().forEach((function(t){return Fs(A,t,e,r)}));else{var o=Us(A,n);o.styles.isVisible()&&(bs(n,o,r)?o.flags|=4:xs(o.styles)&&(o.flags|=2),-1!==Qs.indexOf(n.tagName)&&(o.flags|=8),e.elements.push(o),n.slot,n.shadowRoot?Fs(A,n.shadowRoot,o,r):Vs(n)||Ks(n)||qs(n)||Fs(A,n,o,r))}},Us=function(A,t){return Ps(t)?new is(A,t):_s(t)?new os(A,t):Ks(t)?new ss(A,t):ks(t)?new as(A,t):Ls(t)?new cs(A,t):Ds(t)?new ws(A,t):qs(t)?new ms(A,t):Vs(t)?new ys(A,t):Rs(t)?new Cs(A,t):new Ti(A,t)},vs=function(A,t){var e=Us(A,t);return e.flags|=4,Fs(A,t,e,e),e},bs=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Os(A)&&e.styles.isTransparent()},xs=function(A){return A.isPositioned()||A.isFloating()},Is=function(A){return A.nodeType===Node.TEXT_NODE},Es=function(A){return A.nodeType===Node.ELEMENT_NODE},Hs=function(A){return Es(A)&&"undefined"!==typeof A.style&&!Ss(A)},Ss=function(A){return"object"===typeof A.className},ks=function(A){return"LI"===A.tagName},Ls=function(A){return"OL"===A.tagName},Ds=function(A){return"INPUT"===A.tagName},Ts=function(A){return"HTML"===A.tagName},Ks=function(A){return"svg"===A.tagName},Os=function(A){return"BODY"===A.tagName},_s=function(A){return"CANVAS"===A.tagName},Ms=function(A){return"VIDEO"===A.tagName},Ps=function(A){return"IMG"===A.tagName},Rs=function(A){return"IFRAME"===A.tagName},Ns=function(A){return"STYLE"===A.tagName},Gs=function(A){return"SCRIPT"===A.tagName},Vs=function(A){return"TEXTAREA"===A.tagName},qs=function(A){return"SELECT"===A.tagName},js=function(A){return"SLOT"===A.tagName},Xs=function(A){return A.tagName.indexOf("-")>0},Ws=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},A.prototype.pop=function(A){var t=this;A.forEach((function(A){return t.counters[A].pop()}))},A.prototype.parse=function(A){var t=this,e=A.counterIncrement,r=A.counterReset,n=!0;null!==e&&e.forEach((function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(n=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)}));var i=[];return n&&r.forEach((function(A){var e=t.counters[A.counter];i.push(A.counter),e||(e=t.counters[A.counter]=[]),e.push(A.reset)})),i},A}(),Js={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},zs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ys={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Zs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$s=function(A,t,e,r,n,i){return A<t||A>e?ha(A,n,i.length>0):r.integers.reduce((function(t,e,n){while(A>=e)A-=e,t+=r.values[n];return t}),"")+i},Aa=function(A,t,e,r){var n="";do{e||A--,n=r(A)+n,A/=t}while(A*t>=t);return n},ta=function(A,t,e,r,n){var i=e-t+1;return(A<0?"-":"")+(Aa(Math.abs(A),i,r,(function(A){return l(Math.floor(A%i)+t)}))+n)},ea=function(A,t,e){void 0===e&&(e=". ");var r=t.length;return Aa(Math.abs(A),r,!1,(function(A){return t[Math.floor(A%r)]}))+e},ra=1,na=2,ia=4,oa=8,sa=function(A,t,e,r,n,i){if(A<-9999||A>9999)return ha(A,4,n.length>0);var o=Math.abs(A),s=n;if(0===o)return t[0]+s;for(var a=0;o>0&&a<=4;a++){var c=o%10;0===c&&Bi(i,ra)&&""!==s?s=t[c]+s:c>1||1===c&&0===a||1===c&&1===a&&Bi(i,na)||1===c&&1===a&&Bi(i,ia)&&A>100||1===c&&a>1&&Bi(i,oa)?s=t[c]+(a>0?e[a-1]:"")+s:1===c&&a>0&&(s=e[a-1]+s),o=Math.floor(o/10)}return(A<0?r:"")+s},aa="十百千萬",ca="拾佰仟萬",la="マイナス",ua="마이너스",ha=function(A,t,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",o=e?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=ta(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return ea(A,"〇一二三四五六七八九",n);case 6:return $s(A,1,3999,Js,3,r).toLowerCase();case 7:return $s(A,1,3999,Js,3,r);case 8:return ta(A,945,969,!1,r);case 9:return ta(A,97,122,!1,r);case 10:return ta(A,65,90,!1,r);case 11:return ta(A,1632,1641,!0,r);case 12:case 49:return $s(A,1,9999,zs,3,r);case 35:return $s(A,1,9999,zs,3,r).toLowerCase();case 13:return ta(A,2534,2543,!0,r);case 14:case 30:return ta(A,6112,6121,!0,r);case 15:return ea(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return ea(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return sa(A,"零一二三四五六七八九",aa,"負",n,na|ia|oa);case 47:return sa(A,"零壹貳參肆伍陸柒捌玖",ca,"負",n,ra|na|ia|oa);case 42:return sa(A,"零一二三四五六七八九",aa,"负",n,na|ia|oa);case 41:return sa(A,"零壹贰叁肆伍陆柒捌玖",ca,"负",n,ra|na|ia|oa);case 26:return sa(A,"〇一二三四五六七八九","十百千万",la,n,0);case 25:return sa(A,"零壱弐参四伍六七八九","拾百千万",la,n,ra|na|ia);case 31:return sa(A,"영일이삼사오육칠팔구","십백천만",ua,i,ra|na|ia);case 33:return sa(A,"零一二三四五六七八九","十百千萬",ua,i,0);case 32:return sa(A,"零壹貳參四五六七八九","拾百千",ua,i,ra|na|ia);case 18:return ta(A,2406,2415,!0,r);case 20:return $s(A,1,19999,Zs,3,r);case 21:return ta(A,2790,2799,!0,r);case 22:return ta(A,2662,2671,!0,r);case 22:return $s(A,1,10999,Ys,3,r);case 23:return ea(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ea(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ta(A,3302,3311,!0,r);case 28:return ea(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return ea(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return ta(A,3792,3801,!0,r);case 37:return ta(A,6160,6169,!0,r);case 38:return ta(A,4160,4169,!0,r);case 39:return ta(A,2918,2927,!0,r);case 40:return ta(A,1776,1785,!0,r);case 43:return ta(A,3046,3055,!0,r);case 44:return ta(A,3174,3183,!0,r);case 45:return ta(A,3664,3673,!0,r);case 46:return ta(A,3872,3881,!0,r);case 3:default:return ta(A,48,57,!0,r)}},da="data-html2canvas-ignore",fa=function(){function A(A,t,e){if(this.context=A,this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ws,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,t){var e=this,i=pa(A,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=i.contentWindow,c=a.document,l=ma(i).then((function(){return r(e,void 0,void 0,(function(){var A,e;return n(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Ua),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),A=this.options.onclone,e=this.clonedReferenceElement,"undefined"===typeof e?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wa(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(c,e)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(Qa(document.doctype)+"<html></html>"),Fa(this.referenceElement.ownerDocument,o,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},A.prototype.createElementClone=function(A){if(Di(A,2),_s(A))return this.createCanvasClone(A);if(Ms(A))return this.createVideoClone(A);if(Ns(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Ps(t)&&(Ps(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Xs(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return Ca(A.style,t),t},A.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var e=[].slice.call(t.cssRules,0).reduce((function(A,t){return t&&"string"===typeof t.cssText?A+t.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=e,r}}catch(qt){if(this.context.logger.error("Unable to access cssRules property",qt),"SecurityError"!==qt.name)throw qt}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(qt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&n)i.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(t=A.getContext("webgl2"))&&void 0!==t?t:A.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}i.drawImage(A,0,0)}return r}catch(qt){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var e=t.getContext("2d");try{return e&&(e.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||e.getImageData(0,0,t.width,t.height)),t}catch(qt){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,t,e){Es(t)&&(Gs(t)||t.hasAttribute(da)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Es(t)&&Ns(t)||A.appendChild(this.cloneNode(t,e))},A.prototype.cloneChildNodes=function(A,t,e){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(Es(n)&&js(n)&&"function"===typeof n.assignedNodes){var i=n.assignedNodes();i.length&&i.forEach((function(A){return r.appendChildNode(t,A,e)}))}else this.appendChildNode(t,n,e)},A.prototype.cloneNode=function(A,t){if(Is(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&Es(A)&&(Hs(A)||Ss(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=e.getComputedStyle(A),i=e.getComputedStyle(A,":before"),o=e.getComputedStyle(A,":after");this.referenceElement===A&&Hs(r)&&(this.clonedReferenceElement=r),Os(r)&&Ha(r);var s=this.counters.parse(new Hi(this.context,n)),a=this.resolvePseudoContent(A,r,i,uo.BEFORE);Xs(A)&&(t=!0),Ms(A)||this.cloneChildNodes(A,r,t),a&&r.insertBefore(a,r.firstChild);var c=this.resolvePseudoContent(A,r,o,uo.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(n&&(this.options.copyStyles||Ss(A))&&!Rs(A)||t)&&Ca(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Vs(A)||qs(A))&&(Vs(r)||qs(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,t,e,r){var n=this;if(e){var i=e.content,o=t.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==e.display){this.counters.parse(new Hi(this.context,e));var s=new Ei(this.context,e),a=o.createElement("html2canvaspseudoelement");Ca(e,a),s.content.forEach((function(t){if(0===t.type)a.appendChild(o.createTextNode(t.value));else if(22===t.type){var e=o.createElement("img");e.src=t.value,e.style.opacity="1",a.appendChild(e)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Pe);r.length&&a.appendChild(o.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(Ve),c=i[0],l=i[1];if(c&&Pe(c)){var u=n.counters.getCounterValue(c.value),h=l&&Pe(l)?Tn.parse(n.context,l.value):3;a.appendChild(o.createTextNode(ha(u,h,!1)))}}else if("counters"===t.name){var d=t.values.filter(Ve),f=(c=d[0],d[1]);l=d[2];if(c&&Pe(c)){var g=n.counters.getCounterValues(c.value),p=l&&Pe(l)?Tn.parse(n.context,l.value):3,B=f&&0===f.type?f.value:"",w=g.map((function(A){return ha(A,p,!1)})).join(B);a.appendChild(o.createTextNode(w))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(o.createTextNode(Fi(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(Fi(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(t.value))}})),a.className=xa+" "+Ia;var c=r===uo.BEFORE?" "+xa:" "+Ia;return Ss(t)?t.className.baseValue+=c:t.className+=c,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();(function(A){A[A["BEFORE"]=0]="BEFORE",A[A["AFTER"]=1]="AFTER"})(uo||(uo={}));var ga,pa=function(A,t){var e=A.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(da,"true"),A.body.appendChild(e),e},Ba=function(A){return new Promise((function(t){A.complete?t():A.src?(A.onload=t,A.onerror=t):t()}))},wa=function(A){return Promise.all([].slice.call(A.images,0).map(Ba))},ma=function(A){return new Promise((function(t,e){var r=A.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var e=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(e),t(A))}),50)}}))},ya=["all","d","content"],Ca=function(A,t){for(var e=A.length-1;e>=0;e--){var r=A.item(e);-1===ya.indexOf(r)&&t.style.setProperty(r,A.getPropertyValue(r))}return t},Qa=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},Fa=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},Ua=function(A){var t=A[0],e=A[1],r=A[2];t.scrollLeft=e,t.scrollTop=r},va=":before",ba=":after",xa="___html2canvas___pseudoelement_before",Ia="___html2canvas___pseudoelement_after",Ea='{\n    content: "" !important;\n    display: none !important;\n}',Ha=function(A){Sa(A,"."+xa+va+Ea+"\n         ."+Ia+ba+Ea)},Sa=function(A,t){var e=A.ownerDocument;if(e){var r=e.createElement("style");r.textContent=t,A.appendChild(r)}},ka=function(){function A(){}return A.getOrigin=function(t){var e=A._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A}(),La=function(){function A(A,t){this.context=A,this._options=t,this._cache={}}return A.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)?t:Pa(A)||Oa(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),t):t},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,o=this;return n(this,(function(n){switch(n.label){case 0:return t=ka.isSameOrigin(A),e=!_a(A)&&!0===this._options.useCORS&&qo.SUPPORT_CORS_IMAGES&&!t,r=!_a(A)&&!t&&!Pa(A)&&"string"===typeof this._options.proxy&&qo.SUPPORT_CORS_XHR&&!e,t||!1!==this._options.allowTaint||_a(A)||Pa(A)||r||e?(i=A,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,(Ma(i)||e)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return A(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var t=this,e=this._options.proxy;if(!e)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,i){var o=qo.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)n(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(s.response)}else i("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=i;var a=e.indexOf("?")>-1?"&":"?";if(s.open("GET",""+e+a+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}s.send()}))},A}(),Da=/^data:image\/svg\+xml/i,Ta=/^data:image\/.*;base64,/i,Ka=/^data:image\/.*/i,Oa=function(A){return qo.SUPPORT_SVG_DRAWING||!Ra(A)},_a=function(A){return Ka.test(A)},Ma=function(A){return Ta.test(A)},Pa=function(A){return"blob"===A.substr(0,4)},Ra=function(A){return"svg"===A.substr(-3).toLowerCase()||Da.test(A)},Na=function(){function A(A,t){this.type=0,this.x=A,this.y=t}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A}(),Ga=function(A,t,e){return new Na(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},Va=function(){function A(A,t,e,r){this.type=1,this.start=A,this.startControl=t,this.endControl=e,this.end=r}return A.prototype.subdivide=function(t,e){var r=Ga(this.start,this.startControl,t),n=Ga(this.startControl,this.endControl,t),i=Ga(this.endControl,this.end,t),o=Ga(r,n,t),s=Ga(n,i,t),a=Ga(o,s,t);return e?new A(this.start,r,o,a):new A(a,s,i,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),qa=function(A){return 1===A.type},ja=function(){function A(A){var t=A.styles,e=A.bounds,r=$e(t.borderTopLeftRadius,e.width,e.height),n=r[0],i=r[1],o=$e(t.borderTopRightRadius,e.width,e.height),s=o[0],a=o[1],c=$e(t.borderBottomRightRadius,e.width,e.height),l=c[0],u=c[1],h=$e(t.borderBottomLeftRadius,e.width,e.height),d=h[0],f=h[1],g=[];g.push((n+s)/e.width),g.push((d+l)/e.width),g.push((i+f)/e.height),g.push((a+u)/e.height);var p=Math.max.apply(Math,g);p>1&&(n/=p,i/=p,s/=p,a/=p,l/=p,u/=p,d/=p,f/=p);var B=e.width-s,w=e.height-u,m=e.width-l,y=e.height-f,C=t.borderTopWidth,Q=t.borderRightWidth,F=t.borderBottomWidth,U=t.borderLeftWidth,v=Ar(t.paddingTop,A.bounds.width),b=Ar(t.paddingRight,A.bounds.width),x=Ar(t.paddingBottom,A.bounds.width),I=Ar(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?Xa(e.left+U/3,e.top+C/3,n-U/3,i-C/3,ga.TOP_LEFT):new Na(e.left+U/3,e.top+C/3),this.topRightBorderDoubleOuterBox=n>0||i>0?Xa(e.left+B,e.top+C/3,s-Q/3,a-C/3,ga.TOP_RIGHT):new Na(e.left+e.width-Q/3,e.top+C/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?Xa(e.left+m,e.top+w,l-Q/3,u-F/3,ga.BOTTOM_RIGHT):new Na(e.left+e.width-Q/3,e.top+e.height-F/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?Xa(e.left+U/3,e.top+y,d-U/3,f-F/3,ga.BOTTOM_LEFT):new Na(e.left+U/3,e.top+e.height-F/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?Xa(e.left+2*U/3,e.top+2*C/3,n-2*U/3,i-2*C/3,ga.TOP_LEFT):new Na(e.left+2*U/3,e.top+2*C/3),this.topRightBorderDoubleInnerBox=n>0||i>0?Xa(e.left+B,e.top+2*C/3,s-2*Q/3,a-2*C/3,ga.TOP_RIGHT):new Na(e.left+e.width-2*Q/3,e.top+2*C/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?Xa(e.left+m,e.top+w,l-2*Q/3,u-2*F/3,ga.BOTTOM_RIGHT):new Na(e.left+e.width-2*Q/3,e.top+e.height-2*F/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?Xa(e.left+2*U/3,e.top+y,d-2*U/3,f-2*F/3,ga.BOTTOM_LEFT):new Na(e.left+2*U/3,e.top+e.height-2*F/3),this.topLeftBorderStroke=n>0||i>0?Xa(e.left+U/2,e.top+C/2,n-U/2,i-C/2,ga.TOP_LEFT):new Na(e.left+U/2,e.top+C/2),this.topRightBorderStroke=n>0||i>0?Xa(e.left+B,e.top+C/2,s-Q/2,a-C/2,ga.TOP_RIGHT):new Na(e.left+e.width-Q/2,e.top+C/2),this.bottomRightBorderStroke=l>0||u>0?Xa(e.left+m,e.top+w,l-Q/2,u-F/2,ga.BOTTOM_RIGHT):new Na(e.left+e.width-Q/2,e.top+e.height-F/2),this.bottomLeftBorderStroke=d>0||f>0?Xa(e.left+U/2,e.top+y,d-U/2,f-F/2,ga.BOTTOM_LEFT):new Na(e.left+U/2,e.top+e.height-F/2),this.topLeftBorderBox=n>0||i>0?Xa(e.left,e.top,n,i,ga.TOP_LEFT):new Na(e.left,e.top),this.topRightBorderBox=s>0||a>0?Xa(e.left+B,e.top,s,a,ga.TOP_RIGHT):new Na(e.left+e.width,e.top),this.bottomRightBorderBox=l>0||u>0?Xa(e.left+m,e.top+w,l,u,ga.BOTTOM_RIGHT):new Na(e.left+e.width,e.top+e.height),this.bottomLeftBorderBox=d>0||f>0?Xa(e.left,e.top+y,d,f,ga.BOTTOM_LEFT):new Na(e.left,e.top+e.height),this.topLeftPaddingBox=n>0||i>0?Xa(e.left+U,e.top+C,Math.max(0,n-U),Math.max(0,i-C),ga.TOP_LEFT):new Na(e.left+U,e.top+C),this.topRightPaddingBox=s>0||a>0?Xa(e.left+Math.min(B,e.width-Q),e.top+C,B>e.width+Q?0:Math.max(0,s-Q),Math.max(0,a-C),ga.TOP_RIGHT):new Na(e.left+e.width-Q,e.top+C),this.bottomRightPaddingBox=l>0||u>0?Xa(e.left+Math.min(m,e.width-U),e.top+Math.min(w,e.height-F),Math.max(0,l-Q),Math.max(0,u-F),ga.BOTTOM_RIGHT):new Na(e.left+e.width-Q,e.top+e.height-F),this.bottomLeftPaddingBox=d>0||f>0?Xa(e.left+U,e.top+Math.min(y,e.height-F),Math.max(0,d-U),Math.max(0,f-F),ga.BOTTOM_LEFT):new Na(e.left+U,e.top+e.height-F),this.topLeftContentBox=n>0||i>0?Xa(e.left+U+I,e.top+C+v,Math.max(0,n-(U+I)),Math.max(0,i-(C+v)),ga.TOP_LEFT):new Na(e.left+U+I,e.top+C+v),this.topRightContentBox=s>0||a>0?Xa(e.left+Math.min(B,e.width+U+I),e.top+C+v,B>e.width+U+I?0:s-U+I,a-(C+v),ga.TOP_RIGHT):new Na(e.left+e.width-(Q+b),e.top+C+v),this.bottomRightContentBox=l>0||u>0?Xa(e.left+Math.min(m,e.width-(U+I)),e.top+Math.min(w,e.height+C+v),Math.max(0,l-(Q+b)),u-(F+x),ga.BOTTOM_RIGHT):new Na(e.left+e.width-(Q+b),e.top+e.height-(F+x)),this.bottomLeftContentBox=d>0||f>0?Xa(e.left+U+I,e.top+y,Math.max(0,d-(U+I)),f-(F+x),ga.BOTTOM_LEFT):new Na(e.left+U+I,e.top+e.height-(F+x))}return A}();(function(A){A[A["TOP_LEFT"]=0]="TOP_LEFT",A[A["TOP_RIGHT"]=1]="TOP_RIGHT",A[A["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",A[A["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(ga||(ga={}));var Xa=function(A,t,e,r,n){var i=(Math.sqrt(2)-1)/3*4,o=e*i,s=r*i,a=A+e,c=t+r;switch(n){case ga.TOP_LEFT:return new Va(new Na(A,c),new Na(A,c-s),new Na(a-o,t),new Na(a,t));case ga.TOP_RIGHT:return new Va(new Na(A,t),new Na(A+o,t),new Na(a,c-s),new Na(a,c));case ga.BOTTOM_RIGHT:return new Va(new Na(a,t),new Na(a,t+s),new Na(A+o,c),new Na(A,c));case ga.BOTTOM_LEFT:default:return new Va(new Na(a,c),new Na(a-o,c),new Na(A,t+s),new Na(A,t))}},Wa=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Ja=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},za=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ya=function(){function A(A,t,e){this.offsetX=A,this.offsetY=t,this.matrix=e,this.type=0,this.target=6}return A}(),Za=function(){function A(A,t){this.path=A,this.target=t,this.type=1}return A}(),$a=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Ac=function(A){return 0===A.type},tc=function(A){return 1===A.type},ec=function(A){return 2===A.type},rc=function(A,t){return A.length===t.length&&A.some((function(A,e){return A===t[e]}))},nc=function(A,t,e,r,n){return A.map((function(A,i){switch(i){case 0:return A.add(t,e);case 1:return A.add(t+r,e);case 2:return A.add(t+r,e+n);case 3:return A.add(t,e+n)}return A}))},ic=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),oc=function(){function A(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new ja(this.container),this.container.styles.opacity<1&&this.effects.push(new $a(this.container.styles.opacity)),null!==this.container.styles.transform){var e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ya(e,r,n))}if(0!==this.container.styles.overflowX){var i=Wa(this.curves),o=za(this.curves);rc(i,o)?this.effects.push(new Za(i,6)):(this.effects.push(new Za(i,2)),this.effects.push(new Za(o,4)))}}return A.prototype.getEffects=function(A){var t=-1===[2,3].indexOf(this.container.styles.position),e=this.parent,r=this.effects.slice(0);while(e){var n=e.effects.filter((function(A){return!tc(A)}));if(t||0!==e.container.styles.position||!e.parent){if(r.unshift.apply(r,n),t=-1===[2,3].indexOf(e.container.styles.position),0!==e.container.styles.overflowX){var i=Wa(e.curves),o=za(e.curves);rc(i,o)||r.unshift(new Za(o,6))}}else r.unshift.apply(r,n);e=e.parent}return r.filter((function(t){return Bi(t.target,A)}))},A}(),sc=function(A,t,e,r){A.container.elements.forEach((function(n){var i=Bi(n.flags,4),o=Bi(n.flags,2),s=new oc(n,A);Bi(n.styles.display,2048)&&r.push(s);var a=Bi(n.flags,8)?[]:r;if(i||o){var c=i||n.styles.isPositioned()?e:t,l=new ic(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var h=0;c.negativeZIndex.some((function(A,t){return u>A.element.container.styles.zIndex.order?(h=t,!1):h>0})),c.negativeZIndex.splice(h,0,l)}else if(u>0){var d=0;c.positiveZIndex.some((function(A,t){return u>=A.element.container.styles.zIndex.order?(d=t+1,!1):d>0})),c.positiveZIndex.splice(d,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else n.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);sc(s,l,i?l:e,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),sc(s,t,e,a);Bi(n.flags,8)&&ac(n,a)}))},ac=function(A,t){for(var e=A instanceof cs?A.start:1,r=A instanceof cs&&A.reversed,n=0;n<t.length;n++){var i=t[n];i.container instanceof as&&"number"===typeof i.container.value&&0!==i.container.value&&(e=i.container.value),i.listValue=ha(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},cc=function(A){var t=new oc(A,null),e=new ic(t),r=[];return sc(t,e,e,r),ac(t.container,r),e},lc=function(A,t){switch(t){case 0:return gc(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return gc(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return gc(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return gc(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},uc=function(A,t){switch(t){case 0:return gc(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return gc(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return gc(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return gc(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},hc=function(A,t){switch(t){case 0:return gc(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return gc(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return gc(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return gc(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},dc=function(A,t){switch(t){case 0:return fc(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return fc(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return fc(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return fc(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},fc=function(A,t){var e=[];return qa(A)?e.push(A.subdivide(.5,!1)):e.push(A),qa(t)?e.push(t.subdivide(.5,!0)):e.push(t),e},gc=function(A,t,e,r){var n=[];return qa(A)?n.push(A.subdivide(.5,!1)):n.push(A),qa(e)?n.push(e.subdivide(.5,!0)):n.push(e),qa(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),qa(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},pc=function(A){var t=A.bounds,e=A.styles;return t.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Bc=function(A){var t=A.styles,e=A.bounds,r=Ar(t.paddingLeft,e.width),n=Ar(t.paddingRight,e.width),i=Ar(t.paddingTop,e.width),o=Ar(t.paddingBottom,e.width);return e.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+i+o))},wc=function(A,t){return 0===A?t.bounds:2===A?Bc(t):pc(t)},mc=function(A,t){return 0===A?t.bounds:2===A?Bc(t):pc(t)},yc=function(A,t,e){var r=wc(Uc(A.styles.backgroundOrigin,t),A),n=mc(Uc(A.styles.backgroundClip,t),A),i=Fc(Uc(A.styles.backgroundSize,t),e,r),o=i[0],s=i[1],a=$e(Uc(A.styles.backgroundPosition,t),r.width-o,r.height-s),c=vc(Uc(A.styles.backgroundRepeat,t),a,i,r,n),l=Math.round(r.left+a[0]),u=Math.round(r.top+a[1]);return[c,l,u,o,s]},Cc=function(A){return Pe(A)&&A.value===jr.AUTO},Qc=function(A){return"number"===typeof A},Fc=function(A,t,e){var r=t[0],n=t[1],i=t[2],o=A[0],s=A[1];if(!o)return[0,0];if(We(o)&&s&&We(s))return[Ar(o,e.width),Ar(s,e.height)];var a=Qc(i);if(Pe(o)&&(o.value===jr.CONTAIN||o.value===jr.COVER)){if(Qc(i)){var c=e.width/e.height;return c<i!==(o.value===jr.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var l=Qc(r),u=Qc(n),h=l||u;if(Cc(o)&&(!s||Cc(s))){if(l&&u)return[r,n];if(!a&&!h)return[e.width,e.height];if(h&&a){var d=l?r:n*i,f=u?n:r/i;return[d,f]}var g=l?r:e.width,p=u?n:e.height;return[g,p]}if(a){var B=0,w=0;return We(o)?B=Ar(o,e.width):We(s)&&(w=Ar(s,e.height)),Cc(o)?B=w*i:s&&!Cc(s)||(w=B/i),[B,w]}var m=null,y=null;if(We(o)?m=Ar(o,e.width):s&&We(s)&&(y=Ar(s,e.height)),null===m||s&&!Cc(s)||(y=l&&u?m/r*n:e.height),null!==y&&Cc(o)&&(m=l&&u?y/n*r:e.width),null!==m&&null!==y)return[m,y];throw new Error("Unable to calculate background-size for element")},Uc=function(A,t){var e=A[t];return"undefined"===typeof e?A[0]:e},vc=function(A,t,e,r,n){var i=t[0],o=t[1],s=e[0],a=e[1];switch(A){case 2:return[new Na(Math.round(r.left),Math.round(r.top+o)),new Na(Math.round(r.left+r.width),Math.round(r.top+o)),new Na(Math.round(r.left+r.width),Math.round(a+r.top+o)),new Na(Math.round(r.left),Math.round(a+r.top+o))];case 3:return[new Na(Math.round(r.left+i),Math.round(r.top)),new Na(Math.round(r.left+i+s),Math.round(r.top)),new Na(Math.round(r.left+i+s),Math.round(r.height+r.top)),new Na(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new Na(Math.round(r.left+i),Math.round(r.top+o)),new Na(Math.round(r.left+i+s),Math.round(r.top+o)),new Na(Math.round(r.left+i+s),Math.round(r.top+o+a)),new Na(Math.round(r.left+i),Math.round(r.top+o+a))];default:return[new Na(Math.round(n.left),Math.round(n.top)),new Na(Math.round(n.left+n.width),Math.round(n.top)),new Na(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Na(Math.round(n.left),Math.round(n.height+n.top))]}},bc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",xc="Hidden Text",Ic=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,t){var e=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;e.style.visibility="hidden",e.style.fontFamily=A,e.style.fontSize=t,e.style.margin="0",e.style.padding="0",e.style.whiteSpace="nowrap",i.appendChild(e),r.src=bc,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(xc)),e.appendChild(n),e.appendChild(r);var o=r.offsetTop-n.offsetTop+2;e.removeChild(n),e.appendChild(this._document.createTextNode(xc)),e.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-e.offsetTop+2;return i.removeChild(e),{baseline:o,middle:s}},A.prototype.getMetrics=function(A,t){var e=A+" "+t;return"undefined"===typeof this._data[e]&&(this._data[e]=this.parseMetrics(A,t)),this._data[e]},A}(),Ec=function(){function A(A,t){this.context=A,this.options=t}return A}(),Hc=1e4,Sc=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r._activeEffects=[],r.canvas=e.canvas?e.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),e.canvas||(r.canvas.width=Math.floor(e.width*e.scale),r.canvas.height=Math.floor(e.height*e.scale),r.canvas.style.width=e.width+"px",r.canvas.style.height=e.height+"px"),r.fontMetrics=new Ic(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-e.x,-e.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),r}return t(e,A),e.prototype.applyEffects=function(A){var t=this;while(this._activeEffects.length)this.popEffect();A.forEach((function(A){return t.applyEffect(A)}))},e.prototype.applyEffect=function(A){this.ctx.save(),ec(A)&&(this.ctx.globalAlpha=A.opacity),Ac(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),tc(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return r(this,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return t=A.element.container.styles,t.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(A){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return Bi(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(A)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(A,t,e){var r=this;if(0===t)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+e);else{var n=zo(A.text);n.reduce((function(t,n){return r.ctx.fillText(n,t,A.bounds.top+e),t+r.ctx.measureText(n).width}),A.bounds.left)}},e.prototype.createFontStyle=function(A){var t=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),e=Kc(A.fontFamily).join(", "),r=_e(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,t,A.fontWeight,r,e].join(" "),e,r]},e.prototype.renderTextNode=function(A,t){return r(this,void 0,void 0,(function(){var e,r,i,o,s,a,c,l,u=this;return n(this,(function(n){return e=this.createFontStyle(t),r=e[0],i=e[1],o=e[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(i,o),a=s.baseline,c=s.middle,l=t.paintOrder,A.textBounds.forEach((function(A){l.forEach((function(e){switch(e){case 0:u.ctx.fillStyle=ur(t.color),u.renderTextWithLetterSpacing(A,t.letterSpacing,a);var r=t.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(e){u.ctx.shadowColor=ur(e.color),u.ctx.shadowOffsetX=e.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=e.offsetY.number*u.options.scale,u.ctx.shadowBlur=e.blur.number,u.renderTextWithLetterSpacing(A,t.letterSpacing,a)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=ur(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+a),A.bounds.width,1);break;case 2:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:u.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+c),A.bounds.width,1);break}})));break;case 1:t.webkitTextStrokeWidth&&A.text.trim().length&&(u.ctx.strokeStyle=ur(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+a)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}}))})),[2]}))}))},e.prototype.renderReplacedElement=function(A,t,e){if(e&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=Bc(A),n=za(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(e,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var t,r,i,s,a,c,l,u,h,d,f,g,p,B,w,m,y,C,Q;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),t=A.container,r=A.curves,i=t.styles,s=0,a=t.textNodes,n.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:n.sent(),n.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof is))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return m=n.sent(),this.renderReplacedElement(t,r,m),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof os&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof ss))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return m=n.sent(),this.renderReplacedElement(t,r,m),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Cs&&t.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,l.render(t.tree)]):[3,14];case 13:u=n.sent(),t.width&&t.height&&this.ctx.drawImage(u,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof ws&&(h=Math.min(t.bounds.width,t.bounds.height),t.type===fs?t.checked&&(this.ctx.save(),this.path([new Na(t.bounds.left+.39363*h,t.bounds.top+.79*h),new Na(t.bounds.left+.16*h,t.bounds.top+.5549*h),new Na(t.bounds.left+.27347*h,t.bounds.top+.44071*h),new Na(t.bounds.left+.39694*h,t.bounds.top+.5649*h),new Na(t.bounds.left+.72983*h,t.bounds.top+.23*h),new Na(t.bounds.left+.84*h,t.bounds.top+.34085*h),new Na(t.bounds.left+.39363*h,t.bounds.top+.79*h)]),this.ctx.fillStyle=ur(Bs),this.ctx.fill(),this.ctx.restore()):t.type===gs&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+h/2,t.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=ur(Bs),this.ctx.fill(),this.ctx.restore())),kc(t)&&t.value.length){switch(d=this.createFontStyle(i),C=d[0],f=d[1],g=this.fontMetrics.getMetrics(C,f).baseline,this.ctx.font=C,this.ctx.fillStyle=ur(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Dc(t.styles.textAlign),Q=Bc(t),p=0,t.styles.textAlign){case 1:p+=Q.width/2;break;case 2:p+=Q.width;break}B=Q.add(p,0,0,-Q.height/2+1),this.ctx.save(),this.path([new Na(Q.left,Q.top),new Na(Q.left+Q.width,Q.top),new Na(Q.left+Q.width,Q.top+Q.height),new Na(Q.left,Q.top+Q.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jo(t.value,B),i.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Bi(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(w=t.styles.listStyleImage,0!==w.type)return[3,18];m=void 0,y=w.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return m=n.sent(),this.ctx.drawImage(m,t.bounds.left-(m.width+10),t.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==t.styles.listStyleType&&(C=this.createFontStyle(i)[0],this.ctx.font=C,this.ctx.fillStyle=ur(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Q=new o(t.bounds.left,t.bounds.top+Ar(t.styles.paddingTop,t.bounds.width),t.bounds.width,kn(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jo(A.listValue,Q),i.letterSpacing,kn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,o,s,a,c,l,u,h,d,f,g,p;return n(this,(function(n){switch(n.label){case 0:return Bi(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),t=0,e=A.negativeZIndex,n.label=2;case 2:return t<e.length?(p=e[t],[4,this.renderStack(p)]):[3,5];case 3:n.sent(),n.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,i=A.nonInlineLevel,n.label=7;case 7:return r<i.length?(p=i[r],[4,this.renderNode(p)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:o=0,s=A.nonPositionedFloats,n.label=11;case 11:return o<s.length?(p=s[o],[4,this.renderStack(p)]):[3,14];case 12:n.sent(),n.label=13;case 13:return o++,[3,11];case 14:a=0,c=A.nonPositionedInlineLevel,n.label=15;case 15:return a<c.length?(p=c[a],[4,this.renderStack(p)]):[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:l=0,u=A.inlineLevel,n.label=19;case 19:return l<u.length?(p=u[l],[4,this.renderNode(p)]):[3,22];case 20:n.sent(),n.label=21;case 21:return l++,[3,19];case 22:h=0,d=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return h<d.length?(p=d[h],[4,this.renderStack(p)]):[3,26];case 24:n.sent(),n.label=25;case 25:return h++,[3,23];case 26:f=0,g=A.positiveZIndex,n.label=27;case 27:return f<g.length?(p=g[f],[4,this.renderStack(p)]):[3,30];case 28:n.sent(),n.label=29;case 29:return f++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var t=this;A.forEach((function(A,e){var r=qa(A)?A.start:A;0===e?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),qa(A)&&t.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},e.prototype.renderRepeat=function(A,t,e,r){this.path(A),this.ctx.fillStyle=t,this.ctx.translate(e,r),this.ctx.fill(),this.ctx.translate(-e,-r)},e.prototype.resizeImage=function(A,t,e){var r;if(A.width===t&&A.height===e)return A;var n=null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document,i=n.createElement("canvas");i.width=Math.max(1,t),i.height=Math.max(1,e);var o=i.getContext("2d");return o.drawImage(A,0,0,A.width,A.height,0,0,t,e),i},e.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,o,s;return n(this,(function(a){switch(a.label){case 0:t=A.styles.backgroundImage.length-1,e=function(e){var i,o,s,a,c,l,u,h,d,f,g,p,B,w,m,y,C,Q,F,U,v,b,x,I,E,H,S,k,L,D,T;return n(this,(function(n){switch(n.label){case 0:if(0!==e.type)return[3,5];i=void 0,o=e.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return i=n.sent(),[3,4];case 3:return n.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return i&&(s=yc(A,t,[i.width,i.height,i.width/i.height]),y=s[0],b=s[1],x=s[2],F=s[3],U=s[4],w=r.ctx.createPattern(r.resizeImage(i,F,U),"repeat"),r.renderRepeat(y,w,b,x)),[3,6];case 5:Nr(e)?(a=yc(A,t,[null,null,null]),y=a[0],b=a[1],x=a[2],F=a[3],U=a[4],c=vr(e.angle,F,U),l=c[0],u=c[1],h=c[2],d=c[3],f=c[4],g=document.createElement("canvas"),g.width=F,g.height=U,p=g.getContext("2d"),B=p.createLinearGradient(u,d,h,f),Fr(e.stops,l).forEach((function(A){return B.addColorStop(A.stop,ur(A.color))})),p.fillStyle=B,p.fillRect(0,0,F,U),F>0&&U>0&&(w=r.ctx.createPattern(g,"repeat"),r.renderRepeat(y,w,b,x))):Gr(e)&&(m=yc(A,t,[null,null,null]),y=m[0],C=m[1],Q=m[2],F=m[3],U=m[4],v=0===e.position.length?[Ye]:e.position,b=Ar(v[0],F),x=Ar(v[v.length-1],U),I=Ir(e,b,x,F,U),E=I[0],H=I[1],E>0&&H>0&&(S=r.ctx.createRadialGradient(C+b,Q+x,0,C+b,Q+x,E),Fr(e.stops,2*E).forEach((function(A){return S.addColorStop(A.stop,ur(A.color))})),r.path(y),r.ctx.fillStyle=S,E!==H?(k=A.bounds.left+.5*A.bounds.width,L=A.bounds.top+.5*A.bounds.height,D=H/E,T=1/D,r.ctx.save(),r.ctx.translate(k,L),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-k,-L),r.ctx.fillRect(C,T*(Q-L)+L,F,U*T),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return t--,[2]}}))},r=this,i=0,o=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return i<o.length?(s=o[i],[5,e(s)]):[3,4];case 2:a.sent(),a.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(A,t,e){return r(this,void 0,void 0,(function(){return n(this,(function(r){return this.path(lc(e,t)),this.ctx.fillStyle=ur(A),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(A,t,e,i){return r(this,void 0,void 0,(function(){var r,o;return n(this,(function(n){switch(n.label){case 0:return t<3?[4,this.renderSolidBorder(A,e,i)]:[3,2];case 1:return n.sent(),[2];case 2:return r=uc(i,e),this.path(r),this.ctx.fillStyle=ur(A),this.ctx.fill(),o=hc(i,e),this.path(o),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,o,s,a,c,l=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),t=A.container.styles,e=!lr(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=Lc(Uc(t.backgroundClip,0),A.curves),e||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),lr(t.backgroundColor)||(this.ctx.fillStyle=ur(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){l.ctx.save();var e=Wa(A.curves),r=t.inset?0:Hc,n=nc(e,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(l.path(e),l.ctx.clip(),l.mask(n)):(l.mask(e),l.ctx.clip(),l.path(n)),l.ctx.shadowOffsetX=t.offsetX.number+r,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=ur(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?ur(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()})),n.label=2;case 2:o=0,s=0,a=r,n.label=3;case 3:return s<a.length?(c=a[s],0!==c.style&&!lr(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,2)]:[3,11]):[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,A.curves)];case 10:n.sent(),n.label=11;case 11:o++,n.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(A,t,e,i,o){return r(this,void 0,void 0,(function(){var r,s,a,c,l,u,h,d,f,g,p,B,w,m,y,C;return n(this,(function(n){return this.ctx.save(),r=dc(i,e),s=lc(i,e),2===o&&(this.path(s),this.ctx.clip()),qa(s[0])?(a=s[0].start.x,c=s[0].start.y):(a=s[0].x,c=s[0].y),qa(s[1])?(l=s[1].end.x,u=s[1].end.y):(l=s[1].x,u=s[1].y),h=0===e||2===e?Math.abs(a-l):Math.abs(c-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),d=t<3?3*t:2*t,f=t<3?2*t:t,3===o&&(d=t,f=t),g=!0,h<=2*d?g=!1:h<=2*d+f?(p=h/(2*d+f),d*=p,f*=p):(B=Math.floor((h+f)/(d+f)),w=(h-B*d)/(B-1),m=(h-(B+1)*d)/B,f=m<=0||Math.abs(f-w)<Math.abs(f-m)?w:m),g&&(3===o?this.ctx.setLineDash([0,d+f]):this.ctx.setLineDash([d,f])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ur(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(qa(s[0])&&(y=s[3],C=s[0],this.ctx.beginPath(),this.formatPath([new Na(y.end.x,y.end.y),new Na(C.start.x,C.start.y)]),this.ctx.stroke()),qa(s[1])&&(y=s[1],C=s[2],this.ctx.beginPath(),this.formatPath([new Na(y.end.x,y.end.y),new Na(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(A){return r(this,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ur(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=cc(A),[4,this.renderStack(t)];case 1:return e.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},e}(Ec),kc=function(A){return A instanceof ys||(A instanceof ms||A instanceof ws&&A.type!==gs&&A.type!==fs)},Lc=function(A,t){switch(A){case 0:return Wa(t);case 2:return Ja(t);case 1:default:return za(t)}},Dc=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Tc=["-apple-system","system-ui"],Kc=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===Tc.indexOf(A)})):A},Oc=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.canvas=e.canvas?e.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=e,r.canvas.width=Math.floor(e.width*e.scale),r.canvas.height=Math.floor(e.height*e.scale),r.canvas.style.width=e.width+"px",r.canvas.style.height=e.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-e.x,-e.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),r}return t(e,A),e.prototype.render=function(A){return r(this,void 0,void 0,(function(){var t,e;return n(this,(function(r){switch(r.label){case 0:return t=Go(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,_c(t)];case 1:return e=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ur(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(Ec),_c=function(A){return new Promise((function(t,e){var r=new Image;r.onload=function(){t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Mc=function(){function A(A){var t=A.id,e=A.enabled;this.id=t,this.enabled=e,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),Pc=function(){function A(t,e){var r;this.windowBounds=e,this.instanceName="#"+A.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new La(this,t)}return A.instanceCount=1,A}(),Rc=function(A,t){return void 0===t&&(t={}),Nc(A,t)};"undefined"!==typeof window&&ka.setContext(window);var Nc=function(A,t){return r(void 0,void 0,void 0,(function(){var r,i,c,l,u,h,d,f,g,p,B,w,m,y,C,Q,F,U,v,b,x,I,E,H,S,k,L,D,T,K,O,_,M,P,R,N,G,V,q;return n(this,(function(n){switch(n.label){case 0:if(!A||"object"!==typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(E=t.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(H=t.imageTimeout)&&void 0!==H?H:15e3,proxy:t.proxy,useCORS:null!==(S=t.useCORS)&&void 0!==S&&S},l=e({logging:null===(k=t.logging)||void 0===k||k,cache:t.cache},c),u={windowWidth:null!==(L=t.windowWidth)&&void 0!==L?L:i.innerWidth,windowHeight:null!==(D=t.windowHeight)&&void 0!==D?D:i.innerHeight,scrollX:null!==(T=t.scrollX)&&void 0!==T?T:i.pageXOffset,scrollY:null!==(K=t.scrollY)&&void 0!==K?K:i.pageYOffset},h=new o(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Pc(l,h),f=null!==(O=t.foreignObjectRendering)&&void 0!==O&&O,g={allowTaint:null!==(_=t.allowTaint)&&void 0!==_&&_,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:f,copyStyles:f},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new fa(d,A,g),B=p.clonedReferenceElement,B?[4,p.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=n.sent(),m=Os(B)||Ts(B)?a(B.ownerDocument):s(d,B),y=m.width,C=m.height,Q=m.left,F=m.top,U=Gc(d,B,t.backgroundColor),v={canvas:t.canvas,backgroundColor:U,scale:null!==(P=null!==(M=t.scale)&&void 0!==M?M:i.devicePixelRatio)&&void 0!==P?P:1,x:(null!==(R=t.x)&&void 0!==R?R:0)+Q,y:(null!==(N=t.y)&&void 0!==N?N:0)+F,width:null!==(G=t.width)&&void 0!==G?G:Math.ceil(y),height:null!==(V=t.height)&&void 0!==V?V:Math.ceil(C)},f?(d.logger.debug("Document cloned, using foreign object rendering"),I=new Oc(d,v),[4,I.render(B)]):[3,3];case 2:return b=n.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+Q+","+F+" with size "+y+"x"+C+" using computed rendering"),d.logger.debug("Starting DOM parsing"),x=vs(d,B),U===x.styles.backgroundColor&&(x.styles.backgroundColor=mr.TRANSPARENT),d.logger.debug("Starting renderer for element at "+v.x+","+v.y+" with size "+v.width+"x"+v.height),I=new Sc(d,v),[4,I.render(x)];case 4:b=n.sent(),n.label=5;case 5:return(null===(q=t.removeContainer)||void 0===q||q)&&(fa.destroy(w)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,b]}}))}))},Gc=function(A,t,e){var r=t.ownerDocument,n=r.documentElement?wr(A,getComputedStyle(r.documentElement).backgroundColor):mr.TRANSPARENT,i=r.body?wr(A,getComputedStyle(r.body).backgroundColor):mr.TRANSPARENT,o="string"===typeof e?wr(A,e):null===e?mr.TRANSPARENT:4294967295;return t===r.documentElement?lr(n)?lr(i)?o:i:n:o};return Rc}))},d67e:function(A,t,e){(function(t,r){(function(t,r){A.exports=r(e("e511"),e("c0e9"))})(0,(function(A,e){"use strict";A=A&&A.hasOwnProperty("default")?A["default"]:A,e=e&&e.hasOwnProperty("default")?e["default"]:e;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"===typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},i=Object.assign||function(A){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r])}return A},o=function(A){var t="undefined"===typeof A?"undefined":n(A);return"undefined"===t?"undefined":"string"===t||A instanceof String?"string":"number"===t||A instanceof Number?"number":"function"===t||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===t?"object":"unknown"},s=function(A,t){var e=document.createElement(A);if(t.className&&(e.className=t.className),t.innerHTML){e.innerHTML=t.innerHTML;for(var r=e.getElementsByTagName("script"),n=r.length;n-- >0;null)r[n].parentNode.removeChild(r[n])}for(var i in t.style)e.style[i]=t.style[i];return e},a=function A(t,e){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),n=t.firstChild;n;n=n.nextSibling)!0!==e&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r},c=function(A,t){if("number"===o(A))return 72*A/96/t;var e={};for(var r in A)e[r]=72*A[r]/96/t;return e},l=function(A,t){return Math.floor(A*t/72*96)},u="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function h(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function d(A,t){return t={exports:{}},A(t,t.exports),t.exports}var f=d((function(A,t){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.5+7f2b526d
 */
(function(t,e){A.exports=e()})(0,(function(){function A(A){var t=typeof A;return null!==A&&("object"===t||"function"===t)}function t(A){return"function"===typeof A}var e=void 0;e=Array.isArray?Array.isArray:function(A){return"[object Array]"===Object.prototype.toString.call(A)};var n=e,i=0,o=void 0,s=void 0,a=function(A,t){F[i]=A,F[i+1]=t,i+=2,2===i&&(s?s(U):b())};function c(A){s=A}function l(A){a=A}var d="undefined"!==typeof window?window:void 0,f=d||{},g=f.MutationObserver||f.WebKitMutationObserver,p="undefined"===typeof self&&"undefined"!==typeof r&&"[object process]"==={}.toString.call(r),B="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function w(){return function(){return r.nextTick(U)}}function m(){return"undefined"!==typeof o?function(){o(U)}:Q()}function y(){var A=0,t=new g(U),e=document.createTextNode("");return t.observe(e,{characterData:!0}),function(){e.data=A=++A%2}}function C(){var A=new MessageChannel;return A.port1.onmessage=U,function(){return A.port2.postMessage(0)}}function Q(){var A=setTimeout;return function(){return A(U,1)}}var F=new Array(1e3);function U(){for(var A=0;A<i;A+=2){var t=F[A],e=F[A+1];t(e),F[A]=void 0,F[A+1]=void 0}i=0}function v(){try{var A=Function("return this")().require("vertx");return o=A.runOnLoop||A.runOnContext,m()}catch(t){return Q()}}var b=void 0;function x(A,t){var e=this,r=new this.constructor(H);void 0===r[E]&&$(r);var n=e._state;if(n){var i=arguments[n-1];a((function(){return J(n,r,i,e._result)}))}else j(e,r,A,t);return r}function I(A){var t=this;if(A&&"object"===typeof A&&A.constructor===t)return A;var e=new t(H);return N(e,A),e}b=p?w():g?y():B?C():void 0===d&&"function"===typeof h?v():Q();var E=Math.random().toString(36).substring(2);function H(){}var S=void 0,k=1,L=2,D={error:null};function T(){return new TypeError("You cannot resolve a promise with itself")}function K(){return new TypeError("A promises callback cannot return that same promise.")}function O(A){try{return A.then}catch(t){return D.error=t,D}}function _(A,t,e,r){try{A.call(t,e,r)}catch(n){return n}}function M(A,t,e){a((function(A){var r=!1,n=_(e,t,(function(e){r||(r=!0,t!==e?N(A,e):V(A,e))}),(function(t){r||(r=!0,q(A,t))}),"Settle: "+(A._label||" unknown promise"));!r&&n&&(r=!0,q(A,n))}),A)}function P(A,t){t._state===k?V(A,t._result):t._state===L?q(A,t._result):j(t,void 0,(function(t){return N(A,t)}),(function(t){return q(A,t)}))}function R(A,e,r){e.constructor===A.constructor&&r===x&&e.constructor.resolve===I?P(A,e):r===D?(q(A,D.error),D.error=null):void 0===r?V(A,e):t(r)?M(A,e,r):V(A,e)}function N(t,e){t===e?q(t,T()):A(e)?R(t,e,O(e)):V(t,e)}function G(A){A._onerror&&A._onerror(A._result),X(A)}function V(A,t){A._state===S&&(A._result=t,A._state=k,0!==A._subscribers.length&&a(X,A))}function q(A,t){A._state===S&&(A._state=L,A._result=t,a(G,A))}function j(A,t,e,r){var n=A._subscribers,i=n.length;A._onerror=null,n[i]=t,n[i+k]=e,n[i+L]=r,0===i&&A._state&&a(X,A)}function X(A){var t=A._subscribers,e=A._state;if(0!==t.length){for(var r=void 0,n=void 0,i=A._result,o=0;o<t.length;o+=3)r=t[o],n=t[o+e],r?J(e,r,n,i):n(i);A._subscribers.length=0}}function W(A,t){try{return A(t)}catch(e){return D.error=e,D}}function J(A,e,r,n){var i=t(r),o=void 0,s=void 0,a=void 0,c=void 0;if(i){if(o=W(r,n),o===D?(c=!0,s=o.error,o.error=null):a=!0,e===o)return void q(e,K())}else o=n,a=!0;e._state!==S||(i&&a?N(e,o):c?q(e,s):A===k?V(e,o):A===L&&q(e,o))}function z(A,t){try{t((function(t){N(A,t)}),(function(t){q(A,t)}))}catch(e){q(A,e)}}var Y=0;function Z(){return Y++}function $(A){A[E]=Y++,A._state=void 0,A._result=void 0,A._subscribers=[]}function AA(){return new Error("Array Methods must be provided an Array")}var tA=function(){function A(A,t){this._instanceConstructor=A,this.promise=new A(H),this.promise[E]||$(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?V(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&V(this.promise,this._result))):q(this.promise,AA())}return A.prototype._enumerate=function(A){for(var t=0;this._state===S&&t<A.length;t++)this._eachEntry(A[t],t)},A.prototype._eachEntry=function(A,t){var e=this._instanceConstructor,r=e.resolve;if(r===I){var n=O(A);if(n===x&&A._state!==S)this._settledAt(A._state,t,A._result);else if("function"!==typeof n)this._remaining--,this._result[t]=A;else if(e===sA){var i=new e(H);R(i,A,n),this._willSettleAt(i,t)}else this._willSettleAt(new e((function(t){return t(A)})),t)}else this._willSettleAt(r(A),t)},A.prototype._settledAt=function(A,t,e){var r=this.promise;r._state===S&&(this._remaining--,A===L?q(r,e):this._result[t]=e),0===this._remaining&&V(r,this._result)},A.prototype._willSettleAt=function(A,t){var e=this;j(A,void 0,(function(A){return e._settledAt(k,t,A)}),(function(A){return e._settledAt(L,t,A)}))},A}();function eA(A){return new tA(this,A).promise}function rA(A){var t=this;return n(A)?new t((function(e,r){for(var n=A.length,i=0;i<n;i++)t.resolve(A[i]).then(e,r)})):new t((function(A,t){return t(new TypeError("You must pass an array to race."))}))}function nA(A){var t=this,e=new t(H);return q(e,A),e}function iA(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function oA(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var sA=function(){function A(t){this[E]=Z(),this._result=this._state=void 0,this._subscribers=[],H!==t&&("function"!==typeof t&&iA(),this instanceof A?z(this,t):oA())}return A.prototype.catch=function(A){return this.then(null,A)},A.prototype.finally=function(A){var e=this,r=e.constructor;return t(A)?e.then((function(t){return r.resolve(A()).then((function(){return t}))}),(function(t){return r.resolve(A()).then((function(){throw t}))})):e.then(A,A)},A}();function aA(){var A=void 0;if("undefined"!==typeof u)A=u;else if("undefined"!==typeof self)A=self;else try{A=Function("return this")()}catch(r){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=A.Promise;if(t){var e=null;try{e=Object.prototype.toString.call(t.resolve())}catch(r){}if("[object Promise]"===e&&!t.cast)return}A.Promise=sA}return sA.prototype.then=x,sA.all=eA,sA.race=rA,sA.resolve=I,sA.reject=nA,sA._setScheduler=c,sA._setAsap=l,sA._asap=a,sA.polyfill=aA,sA.Promise=sA,sA}))})),g=f.Promise,p=function A(t){var e=i(A.convert(g.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(g.resolve(),e);return r=r.setProgress(1,A,1,[A]),r=r.set(t),r};p.prototype=Object.create(g.prototype),p.prototype.constructor=p,p.convert=function(A,t){return A.__proto__=t||p.prototype,A},p.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},p.prototype.from=function(A,t){function e(A){switch(o(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}return this.then((function(){switch(t=t||e(A),t){case"string":return this.set({src:s("div",{innerHTML:A})});case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}}))},p.prototype.to=function(A){switch(A){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},p.prototype.toContainer=function(){var A=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(A).then((function(){var A={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};A.opacity=0;var e=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=s("div",{className:"html2pdf__overlay",style:A}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)}))},p.prototype.toCanvas=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then((function(){var A=i({},this.opt.html2canvas);return delete A.onrendered,e(this.prop.container,A)})).then((function(A){var t=this.opt.html2canvas.onrendered||function(){};t(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},p.prototype.toImg=function(){var A=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(A).then((function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A}))},p.prototype.toPdf=function(){var t=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(t).then((function(){var t=this.prop.canvas,e=this.opt,r=t.height,n=Math.floor(t.width*this.prop.pageSize.inner.ratio),i=Math.ceil(r/n),o=this.prop.pageSize.inner.height,s=document.createElement("canvas"),a=s.getContext("2d");s.width=t.width,s.height=n,this.prop.pdf=this.prop.pdf||new A(e.jsPDF);for(var c=0;c<i;c++){c===i-1&&r%n!==0&&(s.height=r%n,o=s.height*this.prop.pageSize.inner.width/s.width);var l=s.width,u=s.height;a.fillStyle="white",a.fillRect(0,0,l,u),a.drawImage(t,0,c*n,l,u,0,0,l,u),c&&this.prop.pdf.addPage();var h=s.toDataURL("image/"+e.image.type,e.image.quality);this.prop.pdf.addImage(h,e.image.type,e.margin[1],e.margin[0],this.prop.pageSize.inner.width,o)}}))},p.prototype.output=function(A,t,e){return e=e||"pdf","img"===e.toLowerCase()||"image"===e.toLowerCase()?this.outputImg(A,t):this.outputPdf(A,t)},p.prototype.outputPdf=function(A,t){var e=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(e).then((function(){return this.prop.pdf.output(A,t)}))},p.prototype.outputImg=function(A,t){var e=[function(){return this.prop.img||this.toImg()}];return this.thenList(e).then((function(){switch(A){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+A+'" is not supported.'}}))},p.prototype.save=function(A){var t=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(t).set(A?{filename:A}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},p.prototype.set=function(A){if("object"!==o(A))return this;var t=Object.keys(A||{}).map((function(t){if(t in p.template.prop)return function(){this.prop[t]=A[t]};switch(t){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[t]=A[t]}}}),this);return this.then((function(){return this.thenList(t)}))},p.prototype.get=function(A,t){return this.then((function(){var e=A in p.template.prop?this.prop[A]:this.opt[A];return t?t(e):e}))},p.prototype.setMargin=function(A){return this.then((function(){switch(o(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A})).then(this.setPageSize)},p.prototype.setPageSize=function(t){return this.then((function(){t=t||A.getPageSize(this.opt.jsPDF),t.hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:l(t.inner.width,t.k),height:l(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},p.prototype.setProgress=function(A,t,e,r){return null!=A&&(this.progress.val=A),null!=t&&(this.progress.state=t),null!=e&&(this.progress.n=e),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},p.prototype.updateProgress=function(A,t,e,r){return this.setProgress(A?this.progress.val+A:null,t||null,e?this.progress.n+e:null,r?this.progress.stack.concat(r):null)},p.prototype.then=function(A,t){var e=this;return this.thenCore(A,t,(function(A,t){return e.updateProgress(null,null,1,[A]),g.prototype.then.call(this,(function(t){return e.updateProgress(null,A),t})).then(A,t).then((function(A){return e.updateProgress(1),A}))}))},p.prototype.thenCore=function(A,t,e){e=e||g.prototype.then;var r=this;A&&(A=A.bind(r)),t&&(t=t.bind(r));var n=-1!==g.toString().indexOf("[native code]")&&"Promise"===g.name,o=n?r:p.convert(i({},r),g.prototype),s=e.call(o,A,t);return p.convert(s,r.__proto__)},p.prototype.thenExternal=function(A,t){return g.prototype.then.call(this,A,t)},p.prototype.thenList=function(A){var t=this;return A.forEach((function(A){t=t.thenCore(A)})),t},p.prototype["catch"]=function(A){A&&(A=A.bind(this));var t=g.prototype["catch"].call(this,A);return p.convert(t,this)},p.prototype.catchExternal=function(A){return g.prototype["catch"].call(this,A)},p.prototype.error=function(A){return this.then((function(){throw new Error(A)}))},p.prototype.using=p.prototype.set,p.prototype.saveAs=p.prototype.save,p.prototype.export=p.prototype.output,p.prototype.run=p.prototype.then,A.getPageSize=function(A,t,e){if("object"===("undefined"===typeof A?"undefined":n(A))){var r=A;A=r.orientation,t=r.unit||t,e=r.format||e}t=t||"mm",e=e||"a4",A=(""+(A||"P")).toLowerCase();var i=(""+e).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":var s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":s=12;break;case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+t}if(o.hasOwnProperty(i))var a=o[i][1]/s,c=o[i][0]/s;else try{a=e[1],c=e[0]}catch(h){throw new Error("Invalid format: "+e)}if("p"===A||"portrait"===A){if(A="p",c>a){var l=c;c=a,a=l}}else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;if(A="l",a>c){l=c;c=a,a=l}}var u={width:c,height:a,unit:t,k:s};return u};var B={toContainer:p.prototype.toContainer};p.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},p.prototype.toContainer=function(){return B.toContainer.call(this).then((function(){var A=this.prop.container,t=this.prop.pageSize.inner.px.height,e=[].concat(this.opt.pagebreak.mode),r={avoidAll:-1!==e.indexOf("avoid-all"),css:-1!==e.indexOf("css"),legacy:-1!==e.indexOf("legacy")},n={},i=this;["before","after","avoid"].forEach((function(t){var e=r.avoidAll&&"avoid"===t;n[t]=e?[]:[].concat(i.opt.pagebreak[t]||[]),n[t].length>0&&(n[t]=Array.prototype.slice.call(A.querySelectorAll(n[t].join(", "))))}));var o=A.querySelectorAll(".html2pdf__page-break");o=Array.prototype.slice.call(o);var a=A.querySelectorAll("*");Array.prototype.forEach.call(a,(function(A){var e={before:!1,after:r.legacy&&-1!==o.indexOf(A),avoid:r.avoidAll};if(r.css){var i=window.getComputedStyle(A),a=["always","page","left","right"],c=["avoid","avoid-page"];e={before:e.before||-1!==a.indexOf(i.breakBefore||i.pageBreakBefore),after:e.after||-1!==a.indexOf(i.breakAfter||i.pageBreakAfter),avoid:e.avoid||-1!==c.indexOf(i.breakInside||i.pageBreakInside)}}Object.keys(e).forEach((function(t){e[t]=e[t]||-1!==n[t].indexOf(A)}));var l=A.getBoundingClientRect();if(e.avoid&&!e.before){var u=Math.floor(l.top/t),h=Math.floor(l.bottom/t),d=Math.abs(l.bottom-l.top)/t;h!==u&&d<=1&&(e.before=!0)}if(e.before){var f=s("div",{style:{display:"block",height:t-l.top%t+"px"}});A.parentNode.insertBefore(f,A)}if(e.after){f=s("div",{style:{display:"block",height:t-l.bottom%t+"px"}});A.parentNode.insertBefore(f,A.nextSibling)}}))}))};var w=[],m={toContainer:p.prototype.toContainer,toPdf:p.prototype.toPdf};p.prototype.toContainer=function(){return m.toContainer.call(this).then((function(){if(this.opt.enableLinks){var A=this.prop.container,t=A.querySelectorAll("a"),e=c(A.getBoundingClientRect(),this.prop.pageSize.k);w=[],Array.prototype.forEach.call(t,(function(A){for(var t=A.getClientRects(),r=0;r<t.length;r++){var n=c(t[r],this.prop.pageSize.k);n.left-=e.left,n.top-=e.top;var i=Math.floor(n.top/this.prop.pageSize.inner.height)+1,o=this.opt.margin[0]+n.top%this.prop.pageSize.inner.height,s=this.opt.margin[1]+n.left;w.push({page:i,top:o,left:s,clientRect:n,link:A})}}),this)}}))},p.prototype.toPdf=function(){return m.toPdf.call(this).then((function(){if(this.opt.enableLinks){w.forEach((function(A){this.prop.pdf.setPage(A.page),this.prop.pdf.link(A.left,A.top,A.clientRect.width,A.clientRect.height,{url:A.link.href})}),this);var A=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(A)}}))};var y=function A(t,e){var r=new A.Worker(e);return t?r.from(t).save():r};return y.Worker=p,y}))}).call(this,e("c8ba"),e("4362"))},e511:function(A,t,e){(function(r,n){var i,o;!function(t,e){A.exports=e()}(0,(function(){"use strict";var s,a,c,l,u,h,d,f,g,p,B,w,m,y,C,Q,F,U,v,b,x,I,E,H,S,k,L,D,T,K,O,_,M,P,R,N,G,V,q,j,X,W,J,z,Y,Z,$,AA,tA,eA,rA,nA,iA,oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},sA=function(r){var n="1.3",o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};function s(A){var t={};this.subscribe=function(A,e,r){if("function"!=typeof e)return!1;t.hasOwnProperty(A)||(t[A]={});var n=Math.random().toString(35);return t[A][n]=[e,!!r],n},this.unsubscribe=function(A){for(var e in t)if(t[e][A])return delete t[e][A],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[e]){var s=t[e][o];try{s[0].apply(A,n)}catch(e){r.console&&console.error("jsPDF PubSub Error",e.message,e)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}}}function a(A,t,e,i){var c={};"object"===(void 0===A?"undefined":oA(A))&&(A=(c=A).orientation,t=c.unit||t,e=c.format||e,i=c.compress||c.compressPdf||i),t=t||"mm",e=e||"a4",A=(""+(A||"P")).toLowerCase(),(""+e).toLowerCase();var l,u,h,d,f,g,p,B,w,m,y,C=!!i&&"function"==typeof Uint8Array,Q=c.textColor||"0 g",F=c.drawColor||"0 G",U=c.fontSize||16,v=c.charSpace||0,b=c.R2L||!1,x=c.lineHeight||1.15,I=c.lineWidth||.200025,E="00000000000000000000000000000000",H=2,S=!1,k=[],L={},D={},T=0,K=[],O=[],_=[],M=[],P=[],R=0,N=0,G=0,V={title:"",subject:"",author:"",keywords:"",creator:""},q={},j=new s(q),X=c.hotfixes||[],W=function(A){var t,e=A.ch1,r=A.ch2,n=A.ch3,i=A.ch4,o=(A.precision,"draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof e&&"#"!==e.charAt(0)){var s=new RGBColor(e);s.ok&&(e=s.toHex())}if("string"==typeof e&&/^#[0-9A-Fa-f]{3}$/.test(e)&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var a=parseInt(e.substr(1),16);e=a>>16&255,r=a>>8&255,n=255&a}if(void 0===r||void 0===i&&e===r&&r===n)if("string"==typeof e)t=e+" "+o[0];else switch(A.precision){case 2:t=$(e/255)+" "+o[0];break;case 3:default:t=AA(e/255)+" "+o[0]}else if(void 0===i||"object"===(void 0===i?"undefined":oA(i))){if("string"==typeof e)t=[e,r,n,o[1]].join(" ");else switch(A.precision){case 2:t=[$(e/255),$(r/255),$(n/255),o[1]].join(" ");break;default:case 3:t=[AA(e/255),AA(r/255),AA(n/255),o[1]].join(" ")}i&&0===i.a&&(t=["255","255","255",o[1]].join(" "))}else if("string"==typeof e)t=[e,r,n,i,o[2]].join(" ");else switch(A.precision){case 2:t=[$(e),$(r),$(n),$(i),o[2]].join(" ");break;case 3:default:t=[AA(e),AA(r),AA(n),AA(i),o[2]].join(" ")}return t},J=function(A){var t=function(A){return("0"+parseInt(A)).slice(-2)},e=A.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[r,t(n),"'",t(i),"'"].join("");return["D:",A.getFullYear(),t(A.getMonth()+1),t(A.getDate()),t(A.getHours()),t(A.getMinutes()),t(A.getSeconds()),o].join("")},z=function(A){var t;return void 0===(void 0===A?"undefined":oA(A))&&(A=new Date),t="object"===(void 0===A?"undefined":oA(A))&&"[object Date]"===Object.prototype.toString.call(A)?J(A):/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(A)?A:J(new Date),m=t},Y=function(A){var t=m;return"jsDate"===A&&(t=function(A){var t=parseInt(A.substr(2,4),10),e=parseInt(A.substr(6,2),10)-1,r=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),i=parseInt(A.substr(12,2),10),o=parseInt(A.substr(14,2),10);return parseInt(A.substr(16,2),10),parseInt(A.substr(20,2),10),new Date(t,e,r,n,i,o,0)}(m)),t},Z=function(A){return A=A||"12345678901234567890123456789012".split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),E=A},$=function(A){return A.toFixed(2)},AA=function(A){return A.toFixed(3)},tA=function(A){A="string"==typeof A?A:A.toString(),S?K[d].push(A):(G+=A.length+1,M.push(A))},eA=function(){return k[++H]=G,tA(H+" 0 obj"),H},rA=function(A){tA("stream"),tA(A),tA("endstream")},nA=function(){for(var A in tA("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),tA("/Font <<"),L)L.hasOwnProperty(A)&&tA("/"+A+" "+L[A].objectNumber+" 0 R");tA(">>"),tA("/XObject <<"),j.publish("putXobjectDict"),tA(">>")},iA=function(){!function(){for(var A in L)L.hasOwnProperty(A)&&(t=L[A],j.publish("putFont",{font:t,out:tA,newObject:eA}),!0!==t.isAlreadyPutted&&(t.objectNumber=eA(),tA("<<"),tA("/Type /Font"),tA("/BaseFont /"+t.postScriptName),tA("/Subtype /Type1"),"string"==typeof t.encoding&&tA("/Encoding /"+t.encoding),tA("/FirstChar 32"),tA("/LastChar 255"),tA(">>"),tA("endobj")));var t}(),j.publish("putResources"),k[2]=G,tA("2 0 obj"),tA("<<"),nA(),tA(">>"),tA("endobj"),j.publish("postPutResources")},sA=function(A,t,e){D.hasOwnProperty(t)||(D[t]={}),D[t][e]=A},aA=function(A,t,e,r){var n="F"+(Object.keys(L).length+1).toString(10),i=L[n]={id:n,postScriptName:A,fontName:t,fontStyle:e,encoding:r,metadata:{}};return sA(n,t,e),j.publish("addFont",i),n},cA=function(A,t){return function(A,t){var e,r,n,i,o,s,a,c,u;if(n=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&L[l].metadata&&L[l].metadata[n]&&L[l].metadata[n].encoding&&(i=L[l].metadata[n].encoding,!o&&L[l].encoding&&(o=L[l].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(a=!1,s=[],e=0,r=A.length;e<r;e++)(c=o[A.charCodeAt(e)])?s.push(String.fromCharCode(c)):s.push(A[e]),s[e].charCodeAt(0)>>8&&(a=!0);A=s.join("")}for(e=A.length;void 0===a&&0!==e;)A.charCodeAt(e-1)>>8&&(a=!0),e--;if(!a)return A;for(s=t.noBOM?[]:[254,255],e=0,r=A.length;e<r;e++){if((u=(c=A.charCodeAt(e))>>8)>>8)throw new Error("Character at position "+e+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(A,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},lA=function(){(function(A,t){var e="string"==typeof t&&t.toLowerCase();if("string"==typeof A){var r=A.toLowerCase();o.hasOwnProperty(r)&&(A=o[r][0]/u,t=o[r][1]/u)}if(Array.isArray(A)&&(t=A[1],A=A[0]),e){switch(e.substr(0,1)){case"l":A<t&&(e="s");break;case"p":t<A&&(e="s")}"s"===e&&(h=A,A=t,t=h)}S=!0,K[++T]=[],_[T]={width:Number(A)||f,height:Number(t)||g},O[T]={},uA(T)}).apply(this,arguments),tA($(I*u)+" w"),tA(F),0!==R&&tA(R+" J"),0!==N&&tA(N+" j"),j.publish("addPage",{pageNumber:T})},uA=function(A){0<A&&A<=T&&(f=_[d=A].width,g=_[A].height)},hA=function(A,t,e){var r,n=void 0;return e=e||{},A=void 0!==A?A:L[l].fontName,t=void 0!==t?t:L[l].fontStyle,r=A.toLowerCase(),void 0!==D[r]&&void 0!==D[r][t]?n=D[r][t]:void 0!==D[A]&&void 0!==D[A][t]?n=D[A][t]:!1===e.disableWarning&&console.warn("Unable to look up font label for font '"+A+"', '"+t+"'. Refer to getFontList() for available fonts."),n||e.noFallback||null==(n=D.times[t])&&(n=D.times.normal),n},dA=function(){S=!1,H=2,G=0,M=[],k=[],P=[],j.publish("buildDocument"),tA("%PDF-"+n),tA("%ºß¬à"),function(){var A,t,e,n,i,o,s,c,l,h=[];for(s=r.adler32cs||a.API.adler32cs,C&&void 0===s&&(C=!1),A=1;A<=T;A++){if(h.push(eA()),c=(f=_[A].width)*u,l=(g=_[A].height)*u,tA("<</Type /Page"),tA("/Parent 1 0 R"),tA("/Resources 2 0 R"),tA("/MediaBox [0 0 "+$(c)+" "+$(l)+"]"),j.publish("putPage",{pageNumber:A,page:K[A]}),tA("/Contents "+(H+1)+" 0 R"),tA(">>"),tA("endobj"),t=K[A].join("\n"),eA(),C){for(e=[],n=t.length;n--;)e[n]=t.charCodeAt(n);o=s.from(t),(i=new Deflater(6)).append(new Uint8Array(e)),t=i.flush(),(e=new Uint8Array(t.length+6)).set(new Uint8Array([120,156])),e.set(t,2),e.set(new Uint8Array([255&o,o>>8&255,o>>16&255,o>>24&255]),t.length+2),t=String.fromCharCode.apply(null,e),tA("<</Length "+t.length+" /Filter [/FlateDecode]>>")}else tA("<</Length "+t.length+">>");rA(t),tA("endobj")}k[1]=G,tA("1 0 obj"),tA("<</Type /Pages");var d="/Kids [";for(n=0;n<T;n++)d+=h[n]+" 0 R ";tA(d+"]"),tA("/Count "+T),tA(">>"),tA("endobj"),j.publish("postPutPages")}(),function(){j.publish("putAdditionalObjects");for(var A=0;A<P.length;A++){var t=P[A];k[t.objId]=G,tA(t.objId+" 0 obj"),tA(t.content),tA("endobj")}H+=P.length,j.publish("postPutAdditionalObjects")}(),iA(),eA(),tA("<<"),function(){for(var A in tA("/Producer (jsPDF "+a.version+")"),V)V.hasOwnProperty(A)&&V[A]&&tA("/"+A.substr(0,1).toUpperCase()+A.substr(1)+" ("+cA(V[A])+")");tA("/CreationDate ("+m+")")}(),tA(">>"),tA("endobj"),eA(),tA("<<"),function(){switch(tA("/Type /Catalog"),tA("/Pages 1 0 R"),B||(B="fullwidth"),B){case"fullwidth":tA("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tA("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tA("/OpenAction [3 0 R /Fit]");break;case"original":tA("/OpenAction [3 0 R /XYZ null null 1]");break;default:var A=""+B;"%"===A.substr(A.length-1)&&(B=parseInt(B)/100),"number"==typeof B&&tA("/OpenAction [3 0 R /XYZ null null "+$(B)+"]")}switch(w||(w="continuous"),w){case"continuous":tA("/PageLayout /OneColumn");break;case"single":tA("/PageLayout /SinglePage");break;case"two":case"twoleft":tA("/PageLayout /TwoColumnLeft");break;case"tworight":tA("/PageLayout /TwoColumnRight")}p&&tA("/PageMode /"+p),j.publish("putCatalog")}(),tA(">>"),tA("endobj");var A,t=G,e="0000000000";for(tA("xref"),tA("0 "+(H+1)),tA(e+" 65535 f "),A=1;A<=H;A++){var i=k[A];tA("function"==typeof i?(e+k[A]()).slice(-10)+" 00000 n ":(e+k[A]).slice(-10)+" 00000 n ")}return tA("trailer"),tA("<<"),tA("/Size "+(H+1)),tA("/Root "+H+" 0 R"),tA("/Info "+(H-1)+" 0 R"),tA("/ID [ <"+E+"> <"+E+"> ]"),tA(">>"),tA("startxref"),tA(""+t),tA("%%EOF"),S=!0,M.join("\n")},fA=function(A){var t="S";return"F"===A?t="f":"FD"===A||"DF"===A?t="B":"f"!==A&&"f*"!==A&&"B"!==A&&"B*"!==A||(t=A),t},gA=function(){for(var A=dA(),t=A.length,e=new ArrayBuffer(t),r=new Uint8Array(e);t--;)r[t]=A.charCodeAt(t);return e},pA=function(){return new Blob([gA()],{type:"application/pdf"})},BA=((y=function(A,t){var e="dataur"===(""+A).substr(0,6)?"data:application/pdf;base64,"+btoa(dA()):0;switch(A){case void 0:return dA();case"save":if("object"===("undefined"==typeof navigator?"undefined":oA(navigator))&&navigator.getUserMedia&&(void 0===r.URL||void 0===r.URL.createObjectURL))return q.output("dataurlnewwindow");UA(pA(),t),"function"==typeof UA.unload&&r.setTimeout&&setTimeout(UA.unload,911);break;case"arraybuffer":return gA();case"blob":return pA();case"bloburi":case"bloburl":return r.URL&&r.URL.createObjectURL(pA())||void 0;case"datauristring":case"dataurlstring":return e;case"dataurlnewwindow":var n=r.open(e);if(n||"undefined"==typeof safari)return n;case"datauri":case"dataurl":return r.document.location.href=e;default:throw new Error('Output type "'+A+'" is not supported.')}}).foo=function(){try{return y.apply(this,arguments)}catch(A){var t=A.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+A.message;if(!r.console)throw new Error(e);r.console.error(e,A),r.alert&&alert(e)}},(y.foo.bar=y).foo),wA=function(A){return!0===Array.isArray(X)&&-1<X.indexOf(A)};switch(t){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=1==wA("px_scaling")?.75:96/72;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+t}for(var mA in z(),Z(),q.internal={pdfEscape:cA,getStyle:fA,getFont:function(){return L[hA.apply(q,arguments)]},getFontSize:function(){return U},getCharSpace:function(){return v},getTextColor:function(){var A=Q.split(" ");if(2===A.length&&"g"===A[1]){var t=parseFloat(A[0]);A=[t,t,t,"r"]}for(var e="#",r=0;r<3;r++)e+=("0"+Math.floor(255*parseFloat(A[r])).toString(16)).slice(-2);return e},getLineHeight:function(){return U*x},write:function(A){tA(1===arguments.length?A:Array.prototype.join.call(arguments," "))},getCoordinateString:function(A){return $(A*u)},getVerticalCoordinateString:function(A){return $((g-A)*u)},collections:{},newObject:eA,newAdditionalObject:function(){var A=2*K.length+1,t={objId:A+=P.length,content:""};return P.push(t),t},newObjectDeferred:function(){return k[++H]=function(){return G},H},newObjectDeferredBegin:function(A){k[A]=G},putStream:rA,events:j,scaleFactor:u,pageSize:{getWidth:function(){return f},getHeight:function(){return g}},output:function(A,t){return BA(A,t)},getNumberOfPages:function(){return K.length-1},pages:K,out:tA,f2:$,getPageInfo:function(A){return{objId:2*(A-1)+3,pageNumber:A,pageContext:O[A]}},getCurrentPageInfo:function(){return{objId:2*(d-1)+3,pageNumber:d,pageContext:O[d]}},getPDFVersion:function(){return n},hasHotfix:wA},q.addPage=function(){return lA.apply(this,arguments),this},q.setPage=function(){return uA.apply(this,arguments),this},q.insertPage=function(A){return this.addPage(),this.movePage(d,A),this},q.movePage=function(A,t){if(t<A){for(var e=K[A],r=_[A],n=O[A],i=A;t<i;i--)K[i]=K[i-1],_[i]=_[i-1],O[i]=O[i-1];K[t]=e,_[t]=r,O[t]=n,this.setPage(t)}else if(A<t){for(e=K[A],r=_[A],n=O[A],i=A;i<t;i++)K[i]=K[i+1],_[i]=_[i+1],O[i]=O[i+1];K[t]=e,_[t]=r,O[t]=n,this.setPage(t)}return this},q.deletePage=function(){return function(A){0<A&&A<=T&&(K.splice(A,1),_.splice(A,1),--T<d&&(d=T),this.setPage(d))}.apply(this,arguments),this},q.setCreationDate=function(A){return z(A),this},q.getCreationDate=function(A){return Y(A)},q.setFileId=function(A){return Z(A),this},q.getFileId=function(){return E},q.setDisplayMode=function(A,t,e){if(B=A,w=t,-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p=e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');return this},q.text=function(A,t,e,r){var n,i,o="",s=x,a=this;function c(A){for(var t,e=A.concat(),r=[],n=e.length;n--;)"string"==typeof(t=e.shift())?r.push(t):"[object Array]"===Object.prototype.toString.call(A)&&1===t.length?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function u(A,t){var e;if("string"==typeof A)e=t(A)[0];else if("[object Array]"===Object.prototype.toString.call(A)){for(var r,n,i=A.concat(),o=[],s=i.length;s--;)"string"==typeof(r=i.shift())?o.push(t(r)[0]):"[object Array]"===Object.prototype.toString.call(r)&&"string"===r[0]&&(n=t(r[0],r[1],r[2]),o.push([n[0],n[1],n[2]]));e=o}return e}"number"==typeof A&&(i=e,e=t,t=A,A=i);var h=r,d=arguments[4],f=arguments[5];"object"===(void 0===h?"undefined":oA(h))&&null!==h||("string"==typeof d&&(f=d,d=null),"string"==typeof h&&(f=h,h=null),"number"==typeof h&&(d=h,h=null),r={flags:h,angle:d,align:f});var g=!1,p=!0;if("string"==typeof A)g=!0;else if("[object Array]"===Object.prototype.toString.call(A)){for(var B,w=A.concat(),m=[],y=w.length;y--;)("string"!=typeof(B=w.shift())||"[object Array]"===Object.prototype.toString.call(B)&&"string"!=typeof B[0])&&(p=!1);g=p}if(!1===g)throw new Error('Type of text must be string or Array. "'+A+'" is not recognized.');var C=L[l].encoding;"WinAnsiEncoding"!==C&&"StandardEncoding"!==C||(A=u(A,(function(A,t,e){return[(n=A,n=n.split("\t").join(Array(r.TabLen||9).join(" ")),cA(n,h)),t,e];var n}))),"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]),0<(G=r.maxWidth||0)&&("string"==typeof A?A=a.splitTextToSize(A,G):"[object Array]"===Object.prototype.toString.call(A)&&(A=a.splitTextToSize(A.join(" "),G)));var F={text:A,x:t,y:e,options:r,mutex:{pdfEscape:cA,activeFontKey:l,fonts:L,activeFontSize:U}};j.publish("preProcessText",F),A=F.text,d=(r=F.options).angle;var I=a.internal.scaleFactor,E=(a.internal.pageSize.getHeight(),[]);if(d){d*=Math.PI/180;var H=Math.cos(d),S=Math.sin(d),k=function(A){return A.toFixed(2)};E=[k(H),k(S),k(-1*S),k(H)]}void 0!==(N=r.charSpace)&&(o+=N+" Tc\n"),r.lang;var D=-1,T=r.renderingMode||r.stroke,K=a.internal.getCurrentPageInfo().pageContext;switch(T){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var O=K.usedRenderingMode||-1;-1!==D?o+=D+" Tr\n":-1!==O&&(o+="0 Tr\n"),-1!==D&&(K.usedRenderingMode=D),f=r.align||"left";var _=U*s,M=a.internal.pageSize.getHeight(),P=a.internal.pageSize.getWidth(),R=(I=a.internal.scaleFactor,L[l]),N=r.charSpace||v,G=r.maxWidth||0,V=(h={},[]);if("[object Array]"===Object.prototype.toString.call(A)){var q,X;m=c(A),"left"!==f&&(X=m.map((function(A){return a.getStringUnitWidth(A,{font:R,charSpace:N,fontSize:U})*U/I})));Math.max.apply(Math,X);var W,J=0;if("right"===f){t-=X[0],A=[];var z=0;for(y=m.length;z<y;z++)X[z],0===z?(W=t*I,q=(M-e)*I):(W=(J-X[z])*I,q=-_),A.push([m[z],W,q]),J=X[z]}else if("center"===f)for(t-=X[0]/2,A=[],z=0,y=m.length;z<y;z++)X[z],0===z?(W=t*I,q=(M-e)*I):(W=(J-X[z])/2*I,q=-_),A.push([m[z],W,q]),J=X[z];else if("left"===f)for(A=[],z=0,y=m.length;z<y;z++)q=0===z?(M-e)*I:-_,W=0===z?t*I:0,A.push(m[z]);else{if("justify"!==f)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(A=[],G=0!==G?G:P,z=0,y=m.length;z<y;z++)q=0===z?(M-e)*I:-_,W=0===z?t*I:0,z<y-1&&V.push(((G-X[z])/(m[z].split(" ").length-1)*I).toFixed(2)),A.push([m[z],W,q])}}!0===("boolean"==typeof r.R2L?r.R2L:b)&&(A=u(A,(function(A,t,e){return[A.split("").reverse().join(""),t,e]}))),F={text:A,x:t,y:e,options:r,mutex:{pdfEscape:cA,activeFontKey:l,fonts:L,activeFontSize:U}},j.publish("postProcessText",F),A=F.text,n=F.mutex.isHex,m=c(A),A=[];var Y,Z,$,AA=0,eA=(y=m.length,"");for(z=0;z<y;z++)eA="","[object Array]"!==Object.prototype.toString.call(m[z])?(Y=parseFloat(t*I).toFixed(2),Z=parseFloat((M-e)*I).toFixed(2),$=(n?"<":"(")+m[z]+(n?">":")")):"[object Array]"===Object.prototype.toString.call(m[z])&&(Y=parseFloat(m[z][1]).toFixed(2),Z=parseFloat(m[z][2]).toFixed(2),$=(n?"<":"(")+m[z][0]+(n?">":")"),AA=1),void 0!==V&&void 0!==V[z]&&(eA=V[z]+" Tw\n"),0!==E.length&&0===z?A.push(eA+E.join(" ")+" "+Y+" "+Z+" Tm\n"+$):1===AA||0===AA&&0===z?A.push(eA+Y+" "+Z+" Td\n"+$):A.push(eA+$);A=0===AA?A.join(" Tj\nT* "):A.join(" Tj\n"),A+=" Tj\n";var rA="BT\n/"+l+" "+U+" Tf\n"+(U*s).toFixed(2)+" TL\n"+Q+"\n";return rA+=o,rA+=A,tA(rA+="ET"),a},q.lstext=function(A,t,e,r){console.warn("jsPDF.lstext is deprecated");for(var n=0,i=A.length;n<i;n++,t+=r)this.text(A[n],t,e);return this},q.line=function(A,t,e,r){return this.lines([[e-A,r-t]],A,t)},q.clip=function(){tA("W"),tA("S")},q.clip_fixed=function(A){tA("evenodd"===A?"W*":"W"),tA("n")},q.lines=function(A,t,e,r,n,i){var o,s,a,c,l,d,f,p,B,w,m;for("number"==typeof A&&(h=e,e=t,t=A,A=h),r=r||[1,1],tA(AA(t*u)+" "+AA((g-e)*u)+" m "),o=r[0],s=r[1],c=A.length,w=t,m=e,a=0;a<c;a++)2===(l=A[a]).length?(w=l[0]*o+w,m=l[1]*s+m,tA(AA(w*u)+" "+AA((g-m)*u)+" l")):(d=l[0]*o+w,f=l[1]*s+m,p=l[2]*o+w,B=l[3]*s+m,w=l[4]*o+w,m=l[5]*s+m,tA(AA(d*u)+" "+AA((g-f)*u)+" "+AA(p*u)+" "+AA((g-B)*u)+" "+AA(w*u)+" "+AA((g-m)*u)+" c"));return i&&tA(" h"),null!==n&&tA(fA(n)),this},q.rect=function(A,t,e,r,n){return fA(n),tA([$(A*u),$((g-t)*u),$(e*u),$(-r*u),"re"].join(" ")),null!==n&&tA(fA(n)),this},q.triangle=function(A,t,e,r,n,i,o){return this.lines([[e-A,r-t],[n-e,i-r],[A-n,t-i]],A,t,[1,1],o,!0),this},q.roundedRect=function(A,t,e,r,n,i,o){var s=4/3*(Math.SQRT2-1);return this.lines([[e-2*n,0],[n*s,0,n,i-i*s,n,i],[0,r-2*i],[0,i*s,-n*s,i,-n,i],[2*n-e,0],[-n*s,0,-n,-i*s,-n,-i],[0,2*i-r],[0,-i*s,n*s,-i,n,-i]],A+n,t,[1,1],o),this},q.ellipse=function(A,t,e,r,n){var i=4/3*(Math.SQRT2-1)*e,o=4/3*(Math.SQRT2-1)*r;return tA([$((A+e)*u),$((g-t)*u),"m",$((A+e)*u),$((g-(t-o))*u),$((A+i)*u),$((g-(t-r))*u),$(A*u),$((g-(t-r))*u),"c"].join(" ")),tA([$((A-i)*u),$((g-(t-r))*u),$((A-e)*u),$((g-(t-o))*u),$((A-e)*u),$((g-t)*u),"c"].join(" ")),tA([$((A-e)*u),$((g-(t+o))*u),$((A-i)*u),$((g-(t+r))*u),$(A*u),$((g-(t+r))*u),"c"].join(" ")),tA([$((A+i)*u),$((g-(t+r))*u),$((A+e)*u),$((g-(t+o))*u),$((A+e)*u),$((g-t)*u),"c"].join(" ")),null!==n&&tA(fA(n)),this},q.circle=function(A,t,e,r){return this.ellipse(A,t,e,e,r)},q.setProperties=function(A){for(var t in V)V.hasOwnProperty(t)&&A[t]&&(V[t]=A[t]);return this},q.setFontSize=function(A){return U=A,this},q.setFont=function(A,t){return l=hA(A,t),this},q.setFontStyle=q.setFontType=function(A){return l=hA(void 0,A),this},q.getFontList=function(){var A,t,e,r={};for(A in D)if(D.hasOwnProperty(A))for(t in r[A]=e=[],D[A])D[A].hasOwnProperty(t)&&e.push(t);return r},q.addFont=function(A,t,e,r){aA(A,t,e,r=r||"Identity-H")},q.setLineWidth=function(A){return tA((A*u).toFixed(2)+" w"),this},q.setDrawColor=function(A,t,e,r){return tA(W({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"draw",precision:2})),this},q.setFillColor=function(A,t,e,r){return tA(W({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"fill",precision:2})),this},q.setTextColor=function(A,t,e,r){return Q=W({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"text",precision:3}),this},q.setCharSpace=function(A){return v=A,this},q.setR2L=function(A){return b=A,this},q.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},q.setLineCap=function(A){var t=this.CapJoinStyles[A];if(void 0===t)throw new Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tA((R=t)+" J"),this},q.setLineJoin=function(A){var t=this.CapJoinStyles[A];if(void 0===t)throw new Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return tA((N=t)+" j"),this},q.output=BA,q.save=function(A){q.output("save",A)},a.API)a.API.hasOwnProperty(mA)&&("events"===mA&&a.API.events.length?function(A,t){var e,r,n;for(n=t.length-1;-1!==n;n--)e=t[n][0],r=t[n][1],A.subscribe.apply(A,[e].concat("function"==typeof r?[r]:r))}(j,a.API.events):q[mA]=a.API[mA]);return function(){for(var A="helvetica",t="times",e="courier",r="normal",n="bold",i="italic",o="bolditalic",s=[["Helvetica",A,r,"WinAnsiEncoding"],["Helvetica-Bold",A,n,"WinAnsiEncoding"],["Helvetica-Oblique",A,i,"WinAnsiEncoding"],["Helvetica-BoldOblique",A,o,"WinAnsiEncoding"],["Courier",e,r,"WinAnsiEncoding"],["Courier-Bold",e,n,"WinAnsiEncoding"],["Courier-Oblique",e,i,"WinAnsiEncoding"],["Courier-BoldOblique",e,o,"WinAnsiEncoding"],["Times-Roman",t,r,"WinAnsiEncoding"],["Times-Bold",t,n,"WinAnsiEncoding"],["Times-Italic",t,i,"WinAnsiEncoding"],["Times-BoldItalic",t,o,"WinAnsiEncoding"],["ZapfDingbats","zapfdingbats",r,null],["Symbol","symbol",r,null]],a=0,c=s.length;a<c;a++){var l=aA(s[a][0],s[a][1],s[a][2],s[a][3]),u=s[a][0].split("-");sA(l,u[0],u[1]||"")}j.publish("addFonts",{fonts:L,dictionary:D})}(),l="F1",lA(e,A),j.publish("initialized"),q}return a.API={events:[]},a.version="0.0.0",i=function(){return a}.call(t,e,t,A),void 0!==i&&(A.exports=i),a}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());
/** @preserve
   * jsPDF - PDF Document creation from JavaScript
   * Version 1.4.1 Built on 2018-06-06T07:49:34.040Z
   *                           CommitID 3233f44044
   *
   * Copyright (c) 2010-2016 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
   *               2010 Aaron Spike, https://github.com/acspike
   *               2012 Willow Systems Corporation, willow-systems.com
   *               2012 Pablo Hess, https://github.com/pablohess
   *               2012 Florian Jenett, https://github.com/fjenett
   *               2013 Warren Weckesser, https://github.com/warrenweckesser
   *               2013 Youssef Beddad, https://github.com/lifof
   *               2013 Lee Driscoll, https://github.com/lsdriscoll
   *               2013 Stefan Slonevskiy, https://github.com/stefslon
   *               2013 Jeremy Morel, https://github.com/jmorel
   *               2013 Christoph Hartmann, https://github.com/chris-rock
   *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
   *               2014 James Makes, https://github.com/dollaruw
   *               2014 Diego Casorran, https://github.com/diegocr
   *               2014 Steven Spungin, https://github.com/Flamenco
   *               2014 Kenneth Glassey, https://github.com/Gavvers
   *
   * Licensed under the MIT License
   *
   * Contributor(s):
   *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
   *    kim3er, mfo, alnorth, Flamenco
   */!function(A,t){var e,r,n=1,i=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},o=function(A){return A*(n/1)},s=function(A){var t=new b,e=P.internal.getHeight(A)||0,r=P.internal.getWidth(A)||0;return t.BBox=[0,0,r.toFixed(2),e.toFixed(2)],t},a=function(A,t,e){A=A||0;var r=1;return r<<=t-1,1==(e=e||1)?A|=r:A&=~r,A},c=function(A,t,e){return e=e||1.3,A=A||0,1==t.readOnly&&(A=a(A,1)),1==t.required&&(A=a(A,2)),1==t.noExport&&(A=a(A,3)),1==t.multiline&&(A=a(A,13)),t.password&&(A=a(A,14)),t.noToggleToOff&&(A=a(A,15)),t.radio&&(A=a(A,16)),t.pushbutton&&(A=a(A,17)),t.combo&&(A=a(A,18)),t.edit&&(A=a(A,19)),t.sort&&(A=a(A,20)),t.fileSelect&&1.4<=e&&(A=a(A,21)),t.multiSelect&&1.4<=e&&(A=a(A,22)),t.doNotSpellCheck&&1.4<=e&&(A=a(A,23)),1==t.doNotScroll&&1.4<=e&&(A=a(A,24)),t.richText&&1.4<=e&&(A=a(A,25)),A},l=function(A){var t=A[0],e=A[1],n=A[2],i=A[3],s={};return Array.isArray(t)?(t[0]=o(t[0]),t[1]=o(t[1]),t[2]=o(t[2]),t[3]=o(t[3])):(t=o(t),e=o(e),n=o(n),i=o(i)),s.lowerLeft_X=t||0,s.lowerLeft_Y=o(r)-e-i||0,s.upperRight_X=t+n||0,s.upperRight_Y=o(r)-e||0,[s.lowerLeft_X.toFixed(2),s.lowerLeft_Y.toFixed(2),s.upperRight_X.toFixed(2),s.upperRight_Y.toFixed(2)]},u=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=A.V||A.DV,r=h(A,e);t.push("/Tx BMC"),t.push("q"),t.push("/F1 "+r.fontSize.toFixed(2)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push("BT"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var n=new s(A);return n.stream=t.join("\n"),n}},h=function(A,t,e,r){r=r||12,e=e||"helvetica";var n={text:"",fontSize:""},i=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),o=r,s=P.internal.getHeight(A)||0;s=s<0?-s:s;var a=P.internal.getWidth(A)||0;a=a<0?-a:a;var c=function(A,t,r){if(A+1<i.length){var n=t+" "+i[A+1];return d(n,r+"px",e).width<=a-4}return!1};o++;A:for(;;){t="";var l=d("3",--o+"px",e).height,u=A.multiline?s-o:(s-l)/2,h=-2,f=u+=2,g=0,p=0,B=0;if(o<=0){o=12,t="(...) Tj\n",t+="% Width of Text: "+d(t,"1px").width+", FieldWidth:"+a+"\n";break}B=d(i[0]+" ",o+"px",e).width;var w="",m=0;for(var y in i){w=" "==(w+=i[y]+" ").substr(w.length-1)?w.substr(0,w.length-1):w;var C=parseInt(y);B=d(w+" ",o+"px",e).width;var Q=c(C,w,o),F=y>=i.length-1;if(!Q||F){if(Q||F){if(F)p=C;else if(A.multiline&&s<(l+2)*(m+2)+2)continue A}else{if(!A.multiline)continue A;if(s<(l+2)*(m+2)+2)continue A;p=C}for(var U="",v=g;v<=p;v++)U+=i[v]+" ";switch(U=" "==U.substr(U.length-1)?U.substr(0,U.length-1):U,B=d(U,o+"px",e).width,A.Q){case 2:h=a-B-2;break;case 1:h=(a-B)/2;break;case 0:default:h=2}t+=h.toFixed(2)+" "+f.toFixed(2)+" Td\n",t+="("+U+") Tj\n",t+=-h.toFixed(2)+" 0 Td\n",f=-(o+2),B=0,g=p+1,m++,w=""}else w+=" "}break}return n.text=t,n.fontSize=o,n},d=function(A,t,r){r=r||"helvetica";var n=e.internal.getFont(r),i=e.getStringUnitWidth(A,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},f={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},g=function(){for(var A in e.internal.acroformPlugin.acroFormDictionaryRoot.Fields){var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields[A];t.hasAnnotation&&B.call(e,t)}},p=function(A){e.internal.acroformPlugin.printedOut&&(e.internal.acroformPlugin.printedOut=!1,e.internal.acroformPlugin.acroFormDictionaryRoot=null),e.internal.acroformPlugin.acroFormDictionaryRoot||Q.call(e),e.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A)},B=function(A){var t={type:"reference",object:A};e.annotationPlugin.annotations[e.internal.getPageInfo(A.page).pageNumber].push(t)},w=function(){void 0!==e.internal.acroformPlugin.acroFormDictionaryRoot?e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},m=function(){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0},y=function(A){var t=!A;for(var r in A||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId),e.internal.out(e.internal.acroformPlugin.acroFormDictionaryRoot.getString())),A=A||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids,A){var n=A[r],i=n.Rect;n.Rect&&(n.Rect=l.call(this,n.Rect)),e.internal.newObjectDeferredBegin(n.objId);var o=n.objId+" 0 obj\n<<\n";if("object"===(void 0===n?"undefined":oA(n))&&"function"==typeof n.getContent&&(o+=n.getContent()),n.Rect=i,n.hasAppearanceStream&&!n.appearanceStreamContent){var s=u.call(this,n);o+="/AP << /N "+s+" >>\n",e.internal.acroformPlugin.xForms.push(s)}if(n.appearanceStreamContent){for(var a in o+="/AP << ",n.appearanceStreamContent){var c=n.appearanceStreamContent[a];if(o+="/"+a+" ",o+="<< ",1<=Object.keys(c).length||Array.isArray(c))for(var r in c){var h;"function"==typeof(h=c[r])&&(h=h.call(this,n)),o+="/"+r+" "+h+" ",0<=e.internal.acroformPlugin.xForms.indexOf(h)||e.internal.acroformPlugin.xForms.push(h)}else"function"==typeof(h=c)&&(h=h.call(this,n)),o+="/"+r+" "+h+" \n",0<=e.internal.acroformPlugin.xForms.indexOf(h)||e.internal.acroformPlugin.xForms.push(h);o+=" >>\n"}o+=">>\n"}o+=">>\nendobj\n",e.internal.out(o)}t&&C.call(this,e.internal.acroformPlugin.xForms)},C=function(A){for(var t in A){var r=t,n=A[t];e.internal.newObjectDeferredBegin(n&&n.objId);var i="";"object"===(void 0===n?"undefined":oA(n))&&"function"==typeof n.getString&&(i=n.getString()),e.internal.out(i),delete A[r]}},Q=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(e=this,I.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(f)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");n=e.internal.scaleFactor,r=e.internal.pageSize.getHeight(),e.internal.acroformPlugin.acroFormDictionaryRoot=new x,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",m),e.internal.events.subscribe("buildDocument",g),e.internal.events.subscribe("putCatalog",w),e.internal.events.subscribe("postPutPages",y),e.internal.acroformPlugin.isInitialized=!0}},F=function(A){if(Array.isArray(A)){var t=" [";for(var e in A)t+=A[e].toString(),t+=e<A.length-1?" ":"";return t+"]"}},U=function(A){return 0!==(A=A||"").indexOf("(")&&(A="("+A),")"!=A.substring(A.length-1)&&(A+=")"),A},v=function(){var A;Object.defineProperty(this,"objId",{get:function(){return A||(A=e.internal.newObjectDeferred()),A||console.log("Couldn't create Object ID"),A},configurable:!1})};v.prototype.toString=function(){return this.objId+" 0 R"},v.prototype.getString=function(){var A=this.objId+" 0 obj\n<<";return A+=this.getContent()+">>\n",this.stream&&(A+="stream\n",A+=this.stream,A+="\nendstream\n"),A+"endobj\n"},v.prototype.getContent=function(){var A="";return A+function(A){var t="",e=Object.keys(A).filter((function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"_"!=A.substring(0,1)}));for(var r in e){var n=e[r],i=A[n];i&&(Array.isArray(i)?t+="/"+n+" "+F(i)+"\n":t+=i instanceof v?"/"+n+" "+i.objId+" 0 R\n":"/"+n+" "+i+"\n")}return t}(this)};var b=function(){var A;v.call(this),this.Type="/XObject",this.Subtype="/Form",this.FormType=1,this.BBox,this.Matrix,this.Resources="2 0 R",this.PieceInfo,Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return void 0!==A?A.length:0}}),Object.defineProperty(this,"stream",{enumerable:!1,set:function(t){A=t.trim()},get:function(){return A||null}})};i(b,v);var x=function(){v.call(this);var A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<A.length?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!0,configurable:!0,get:function(){return A}}),this.DA};i(x,v);var I=function A(){var t;v.call(this),Object.defineProperty(this,"Rect",{enumerable:!0,configurable:!1,get:function(){if(t)return t},set:function(A){t=A}});var e,r,n,i,o="";Object.defineProperty(this,"FT",{enumerable:!0,set:function(A){o=A},get:function(){return o}}),Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,set:function(A){e=A},get:function(){if(!e||e.length<1){if(this instanceof K)return;return"(FieldObject"+A.FieldNum+++")"}return"("==e.substring(0,1)&&e.substring(e.length-1)?e:"("+e+")"}}),Object.defineProperty(this,"DA",{enumerable:!0,get:function(){if(r)return"("+r+")"},set:function(A){r=A}}),Object.defineProperty(this,"DV",{enumerable:!0,configurable:!0,get:function(){if(n)return n},set:function(A){n=A}}),Object.defineProperty(this,"V",{enumerable:!0,configurable:!0,get:function(){if(i)return i},set:function(A){i=A}}),Object.defineProperty(this,"Type",{enumerable:!0,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,get:function(){return this.hasAnnotation?"/Widget":null}}),this.BG,Object.defineProperty(this,"hasAnnotation",{enumerable:!1,get:function(){return!!(this.Rect||this.BC||this.BG)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(this,"page",{enumerable:!1,configurable:!0,writable:!0})};i(I,v);var E=function(){I.call(this),this.FT="/Ch",this.Opt=[],this.V="()",this.TI=0;var A=!1;Object.defineProperty(this,"combo",{enumerable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"edit",{enumerable:!0,set:function(A){1==A?(this._edit=!0,this.combo=!0):this._edit=!1},get:function(){return!!this._edit&&this._edit},configurable:!1}),this.hasAppearanceStream=!0};i(E,I);var H=function(){E.call(this),this.combo=!1};i(H,E);var S=function(){H.call(this),this.combo=!0};i(S,H);var k=function(){S.call(this),this.edit=!0};i(k,S);var L=function(){I.call(this),this.FT="/Btn"};i(L,I);var D=function(){L.call(this);var A=!0;Object.defineProperty(this,"pushbutton",{enumerable:!1,get:function(){return A},set:function(t){A=t}})};i(D,L);var T=function(){L.call(this);var A=!0;Object.defineProperty(this,"radio",{enumerable:!1,get:function(){return A},set:function(t){A=t}});var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!0,get:function(){if(0<e.length)return e}}),Object.defineProperty(this,"__Kids",{get:function(){return e}}),Object.defineProperty(this,"noToggleToOff",{enumerable:!1,get:function(){return t},set:function(A){t=A}})};i(T,L);var K=function(A,t){I.call(this),this.Parent=A,this._AppearanceType=P.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(t),this.F=a(this.F,3,1),this.MK=this._AppearanceType.createMK(),this.AS="/Off",this._Name=t};i(K,I),T.prototype.setAppearance=function(A){if("createAppearanceStream"in A&&"createMK"in A)for(var t in this.__Kids){var e=this.__Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e._Name),e.MK=A.createMK()}else console.log("Couldn't assign Appearance to RadioButton. Appearance was Invalid!")},T.prototype.createOption=function(t){this.__Kids.length;var e=new K(this,t);return this.__Kids.push(e),A.addField(e),e};var O=function(){L.call(this),this.appearanceStreamContent=P.CheckBox.createAppearanceStream(),this.MK=P.CheckBox.createMK(),this.AS="/On",this.V="/On"};i(O,L);var _=function(){var A,t;I.call(this),this.DA=P.createDefaultAppearanceStream(),this.F=4,Object.defineProperty(this,"V",{get:function(){return A?U(A):A},enumerable:!0,set:function(t){A=t}}),Object.defineProperty(this,"DV",{get:function(){return t?U(t):t},enumerable:!0,set:function(A){t=A}});var e=!1;Object.defineProperty(this,"multiline",{enumerable:!1,get:function(){return e},set:function(A){e=A}});var r=!1;Object.defineProperty(this,"fileSelect",{enumerable:!1,get:function(){return r},set:function(A){r=A}});var n=!1;Object.defineProperty(this,"doNotSpellCheck",{enumerable:!1,get:function(){return n},set:function(A){n=A}});var i=!1;Object.defineProperty(this,"doNotScroll",{enumerable:!1,get:function(){return i},set:function(A){i=A}});var o=!1;Object.defineProperty(this,"MaxLen",{enumerable:!0,get:function(){return o},set:function(A){o=A}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,get:function(){return this.V||this.DV}})};i(_,I);var M=function(){_.call(this);var A=!0;Object.defineProperty(this,"password",{enumerable:!1,get:function(){return A},set:function(t){A=t}})};i(M,_);var P={CheckBox:{createAppearanceStream:function(){return{N:{On:P.CheckBox.YesNormal},D:{On:P.CheckBox.YesPushDown,Off:P.CheckBox.OffPushDown}}},createMK:function(){return"<< /CA (3)>>"},YesPushDown:function(A){var t=s(A),r=[],n=e.internal.getFont("zapfdingbats","normal").id;A.Q=1;var i=h(A,"3","ZapfDingbats",50);return r.push("0.749023 g"),r.push("0 0 "+P.internal.getWidth(A).toFixed(2)+" "+P.internal.getHeight(A).toFixed(2)+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+i.fontSize.toFixed(2)+" Tf 0 g"),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(A){var t=s(A),r=e.internal.getFont("zapfdingbats","normal").id,n=[];A.Q=1;var i=P.internal.getHeight(A),o=P.internal.getWidth(A),a=h(A,"3","ZapfDingbats",.9*i);return n.push("1 g"),n.push("0 0 "+o.toFixed(2)+" "+i.toFixed(2)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+(o-1).toFixed(2)+" "+(i-1).toFixed(2)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+r+" "+a.fontSize.toFixed(2)+" Tf 0 g"),n.push(a.text),n.push("ET"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(A){var t=s(A),e=[];return e.push("0.749023 g"),e.push("0 0 "+P.internal.getWidth(A).toFixed(2)+" "+P.internal.getHeight(A).toFixed(2)+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:P.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=P.RadioButton.Circle.YesNormal,t.D[A]=P.RadioButton.Circle.YesPushDown,t},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(A){var t=s(A),e=[],r=P.internal.getWidth(A)<=P.internal.getHeight(A)?P.internal.getWidth(A)/4:P.internal.getHeight(A)/4;r*=.9;var n=P.internal.Bezier_C;return e.push("q"),e.push("1 0 0 1 "+P.internal.getWidth(A)/2+" "+P.internal.getHeight(A)/2+" cm"),e.push(r+" 0 m"),e.push(r+" "+r*n+" "+r*n+" "+r+" 0 "+r+" c"),e.push("-"+r*n+" "+r+" -"+r+" "+r*n+" -"+r+" 0 c"),e.push("-"+r+" -"+r*n+" -"+r*n+" -"+r+" 0 -"+r+" c"),e.push(r*n+" -"+r+" "+r+" -"+r*n+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=s(A),e=[],r=P.internal.getWidth(A)<=P.internal.getHeight(A)?P.internal.getWidth(A)/4:P.internal.getHeight(A)/4,n=2*(r*=.9),i=n*P.internal.Bezier_C,o=r*P.internal.Bezier_C;return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+(P.internal.getWidth(A)/2).toFixed(2)+" "+(P.internal.getHeight(A)/2).toFixed(2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+(P.internal.getWidth(A)/2).toFixed(2)+" "+(P.internal.getHeight(A)/2).toFixed(2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(A){var t=s(A),e=[],r=P.internal.getWidth(A)<=P.internal.getHeight(A)?P.internal.getWidth(A)/4:P.internal.getHeight(A)/4,n=2*(r*=.9),i=n*P.internal.Bezier_C;return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+(P.internal.getWidth(A)/2).toFixed(2)+" "+(P.internal.getHeight(A)/2).toFixed(2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:P.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=P.RadioButton.Cross.YesNormal,t.D[A]=P.RadioButton.Cross.YesPushDown,t},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(A){var t=s(A),e=[],r=P.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+(P.internal.getWidth(A)-2).toFixed(2)+" "+(P.internal.getHeight(A)-2).toFixed(2)+" re"),e.push("W"),e.push("n"),e.push(r.x1.x.toFixed(2)+" "+r.x1.y.toFixed(2)+" m"),e.push(r.x2.x.toFixed(2)+" "+r.x2.y.toFixed(2)+" l"),e.push(r.x4.x.toFixed(2)+" "+r.x4.y.toFixed(2)+" m"),e.push(r.x3.x.toFixed(2)+" "+r.x3.y.toFixed(2)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=s(A),e=P.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+P.internal.getWidth(A).toFixed(2)+" "+P.internal.getHeight(A).toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("1 1 "+(P.internal.getWidth(A)-2).toFixed(2)+" "+(P.internal.getHeight(A)-2).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push(e.x1.x.toFixed(2)+" "+e.x1.y.toFixed(2)+" m"),r.push(e.x2.x.toFixed(2)+" "+e.x2.y.toFixed(2)+" l"),r.push(e.x4.x.toFixed(2)+" "+e.x4.y.toFixed(2)+" m"),r.push(e.x3.x.toFixed(2)+" "+e.x3.y.toFixed(2)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(A){var t=s(A),e=[];return e.push("0.749023 g"),e.push("0 0 "+P.internal.getWidth(A).toFixed(2)+" "+P.internal.getHeight(A).toFixed(2)+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(A){return"/F1 0 Tf 0 g"}};P.internal={Bezier_C:.551915024494,calculateCross:function(A){var t,e,r=P.internal.getWidth(A),n=P.internal.getHeight(A),i=(e=n)<(t=r)?e:t;return{x1:{x:(r-i)/2,y:(n-i)/2+i},x2:{x:(r-i)/2+i,y:(n-i)/2},x3:{x:(r-i)/2,y:(n-i)/2},x4:{x:(r-i)/2+i,y:(n-i)/2+i}}}},P.internal.getWidth=function(A){var t=0;return"object"===(void 0===A?"undefined":oA(A))&&(t=o(A.Rect[2])),t},P.internal.getHeight=function(A){var t=0;return"object"===(void 0===A?"undefined":oA(A))&&(t=o(A.Rect[3])),t},A.addField=function(A){return Q.call(this),A instanceof _?this.addTextField.call(this,A):A instanceof E?this.addChoiceField.call(this,A):A instanceof L?this.addButton.call(this,A):(A instanceof K||A)&&p.call(this,A),A.page=e.internal.getCurrentPageInfo().pageNumber,this},A.addButton=function(A){Q.call(this);var t=A||new I;t.FT="/Btn",t.Ff=c(t.Ff,A,e.internal.getPDFVersion()),p.call(this,t)},A.addTextField=function(A){Q.call(this);var t=A||new I;t.FT="/Tx",t.Ff=c(t.Ff,A,e.internal.getPDFVersion()),p.call(this,t)},A.addChoiceField=function(A){Q.call(this);var t=A||new I;t.FT="/Ch",t.Ff=c(t.Ff,A,e.internal.getPDFVersion()),p.call(this,t)},"object"==(void 0===t?"undefined":oA(t))&&(t.ChoiceField=E,t.ListBox=H,t.ComboBox=S,t.EditBox=k,t.Button=L,t.PushButton=D,t.RadioButton=T,t.CheckBox=O,t.TextField=_,t.PasswordField=M,t.AcroForm={Appearance:P}),A.AcroFormChoiceField=E,A.AcroFormListBox=H,A.AcroFormComboBox=S,A.AcroFormEditBox=k,A.AcroFormButton=L,A.AcroFormPushButton=D,A.AcroFormRadioButton=T,A.AcroFormCheckBox=O,A.AcroFormTextField=_,A.AcroFormPasswordField=M,A.AcroForm={ChoiceField:E,ListBox:H,ComboBox:S,EditBox:k,Button:L,PushButton:D,RadioButton:T,CheckBox:O,TextField:_,PasswordField:M}}(sA.API,"undefined"!=typeof window&&window||"undefined"!=typeof r&&r),sA.API.addHTML=function(A,t,e,r,n){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof t&&(r=t,n=e),"function"==typeof r&&(n=r,r=null),"function"!=typeof n&&(n=function(){});var i=this.internal,o=i.scaleFactor,s=i.pageSize.getWidth(),a=i.pageSize.getHeight();if((r=r||{}).onrendered=function(A){t=parseInt(t)||0,e=parseInt(e)||0;var i=r.dim||{},c=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),l=i.h||Math.min(a,A.height/o),u=i.w||Math.min(s,A.width/o)-t,h=r.format||"JPEG",d=r.imageCompression||"SLOW";if(A.height>a-c.top-c.bottom&&r.pagesplit){var f=function(A,t,e,n,i){var o=document.createElement("canvas");o.height=i,o.width=n;var s=o.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,n,i),s.drawImage(A,t,e,n,i,0,0,n,i),o},g=function(){for(var r,i,l=0,g=0,p={},B=!1;;){var w;if(g=0,p.top=0!==l?c.top:e,p.left=0!==l?c.left:t,B=(s-c.left-c.right)*o<A.width,"content"===c.useFor?0===l?(r=Math.min((s-c.left)*o,A.width),i=Math.min((a-c.top)*o,A.height-l)):(r=Math.min(s*o,A.width),i=Math.min(a*o,A.height-l),p.top=0):(r=Math.min((s-c.left-c.right)*o,A.width),i=Math.min((a-c.bottom-c.top)*o,A.height-l)),B)for(;;){"content"===c.useFor&&(0===g?r=Math.min((s-c.left)*o,A.width):(r=Math.min(s*o,A.width-g),p.left=0));var m=[w=f(A,g,l,r,i),p.left,p.top,w.width/o,w.height/o,h,null,d];if(this.addImage.apply(this,m),(g+=r)>=A.width)break;this.addPage()}else m=[w=f(A,0,l,r,i),p.left,p.top,w.width/o,w.height/o,h,null,d],this.addImage.apply(this,m);if((l+=i)>=A.height)break;this.addPage()}n(u,l,null,m)}.bind(this);if("CANVAS"===A.nodeName){var p=new Image;p.onload=g,p.src=A.toDataURL("image/png"),A=p}else g()}else{var B=Math.random().toString(35),w=[A,t,e,u,l,h,B,d];this.addImage.apply(this,w),n(u,l,B,w)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(A,r);if("undefined"!=typeof rasterizeHTML){var c="drawDocument";return"string"==typeof A&&(c=/^http/.test(A)?"drawURL":"drawHTML"),r.width=r.width||s*o,rasterizeHTML[c](A,void 0,r).then((function(A){r.onrendered(A.image)}),(function(A){n(null,A)}))}return null},
/** @preserve
   * jsPDF addImage plugin
   * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
   *               2013 Chris Dowling, https://github.com/gingerchris
   *               2013 Trinh Ho, https://github.com/ineedfat
   *               2013 Edwin Alejandro Perez, https://github.com/eaparango
   *               2013 Norah Smith, https://github.com/burnburnrocket
   *               2014 Diego Casorran, https://github.com/diegocr
   *               2014 James Robb, https://github.com/jamesbrobb
   *
   * 
   */
function(A){var t="addImage_",e={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]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]};A.getImageFileTypeByImageData=function(A,t){var r,n;t=t||"UNKNOWN";var i,o,s,a="UNKNOWN";for(s in e)for(i=e[s],r=0;r<i.length;r+=1){for(o=!0,n=0;n<i[r].length;n+=1)if(void 0!==i[r][n]&&i[r][n]!==A.charCodeAt(n)){o=!1;break}if(!0===o){a=s;break}}return"UNKOWN"===a&&"UNKNOWN"!==t&&(console.warn('FileType of Image not recognized. Processing image as "'+t+'".'),a=t),a};var r=function A(t){var e=this.internal.newObject(),r=this.internal.write,n=this.internal.putStream;if(t.n=e,r("<</Type /XObject"),r("/Subtype /Image"),r("/Width "+t.w),r("/Height "+t.h),t.cs===this.color_spaces.INDEXED?r("/ColorSpace [/Indexed /DeviceRGB "+(t.pal.length/3-1)+" "+("smask"in t?e+2:e+1)+" 0 R]"):(r("/ColorSpace /"+t.cs),t.cs===this.color_spaces.DEVICE_CMYK&&r("/Decode [1 0 1 0 1 0 1 0]")),r("/BitsPerComponent "+t.bpc),"f"in t&&r("/Filter /"+t.f),"dp"in t&&r("/DecodeParms <<"+t.dp+">>"),"trns"in t&&t.trns.constructor==Array){for(var i="",o=0,s=t.trns.length;o<s;o++)i+=t.trns[o]+" "+t.trns[o]+" ";r("/Mask ["+i+"]")}if("smask"in t&&r("/SMask "+(e+1)+" 0 R"),r("/Length "+t.data.length+">>"),n(t.data),r("endobj"),"smask"in t){var a="/Predictor "+t.p+" /Colors 1 /BitsPerComponent "+t.bpc+" /Columns "+t.w,c={w:t.w,h:t.h,cs:"DeviceGray",bpc:t.bpc,dp:a,data:t.smask};"f"in t&&(c.f=t.f),A.call(this,c)}t.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),r("<< /Length "+t.pal.length+">>"),n(this.arrayBufferToBinaryString(new Uint8Array(t.pal))),r("endobj"))},i=function(){var A=this.internal.collections[t+"images"];for(var e in A)r.call(this,A[e])},o=function(){var A,e=this.internal.collections[t+"images"],r=this.internal.write;for(var n in e)r("/I"+(A=e[n]).i,A.n,"0","R")},s=function(t){return"function"==typeof A["process"+t.toUpperCase()]},a=function(A){return"object"===(void 0===A?"undefined":oA(A))&&1===A.nodeType},c=function(A,t){if("IMG"===A.nodeName&&A.hasAttribute("src")){var e=""+A.getAttribute("src");if(0===e.indexOf("data:image/"))return e;!t&&/\.png(?:[?#].*)?$/i.test(e)&&(t="png")}if("CANVAS"===A.nodeName)var r=A;else{(r=document.createElement("canvas")).width=A.clientWidth||A.width,r.height=A.clientHeight||A.height;var n=r.getContext("2d");if(!n)throw"addImage requires canvas to be supported by browser.";n.drawImage(A,0,0,r.width,r.height)}return r.toDataURL("png"==(""+t).toLowerCase()?"image/png":"image/jpeg")},l=function(A,t){var e;if(t)for(var r in t)if(A===t[r].alias){e=t[r];break}return e};A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},A.sHashCode=function(A){return A=A||"",Array.prototype.reduce&&A.split("").reduce((function(A,t){return(A=(A<<5)-A+t.charCodeAt(0))&A}),0)},A.isString=function(A){return"string"==typeof A},A.validateStringAsBase64=function(A){var t=!0;return(A=A||"").length%4!=0&&(t=!1),!1===/[A-Za-z0-9\/]+/.test(A.substr(0,A.length-2))&&(t=!1),!1===/[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==/.test(A.substr(-2))&&(t=!1),t},A.extractInfoFromBase64DataURI=function(A){return/^data:([\w]+?\/([\w]+?));base64,(.+)$/g.exec(A)},A.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},A.isArrayBuffer=function(A){return!!this.supportsArrayBuffer()&&A instanceof ArrayBuffer},A.isArrayBufferView=function(A){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(A instanceof Int8Array||A instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)},A.binaryStringToUint8Array=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e},A.arrayBufferToBinaryString=function(A){if("function"==typeof atob)return atob(this.arrayBufferToBase64(A));if("function"==typeof TextDecoder){var t=new TextDecoder("ascii");if("ascii"===t.encoding)return t.decode(A)}for(var e=this.isArrayBuffer(A)?A:new Uint8Array(A),r=20480,n="",i=Math.ceil(e.byteLength/r),o=0;o<i;o++)n+=String.fromCharCode.apply(null,e.slice(o*r,o*r+r));return n},A.arrayBufferToBase64=function(A){for(var t,e="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(A),i=n.byteLength,o=i%3,s=i-o,a=0;a<s;a+=3)e+=r[(16515072&(t=n[a]<<16|n[a+1]<<8|n[a+2]))>>18]+r[(258048&t)>>12]+r[(4032&t)>>6]+r[63&t];return 1==o?e+=r[(252&(t=n[s]))>>2]+r[(3&t)<<4]+"==":2==o&&(e+=r[(64512&(t=n[s]<<8|n[s+1]))>>10]+r[(1008&t)>>4]+r[(15&t)<<2]+"="),e},A.createImageInfo=function(A,t,e,r,n,i,o,s,a,c,l,u,h){var d={alias:s,w:t,h:e,cs:r,bpc:n,i:o,data:A};return i&&(d.f=i),a&&(d.dp=a),c&&(d.trns=c),l&&(d.pal=l),u&&(d.smask=u),h&&(d.p=h),d},A.addImage=function(e,r,n,u,h,d,f,g,p){var B="";if("string"!=typeof r){var w=d;d=h,h=u,u=n,n=r,r=w}if("object"===(void 0===e?"undefined":oA(e))&&!a(e)&&"imageData"in e){var m=e;e=m.imageData,r=m.format||r,n=m.x||n||0,u=m.y||u||0,h=m.w||h,d=m.h||d,f=m.alias||f,g=m.compression||g,p=m.rotation||m.angle||p}if(isNaN(n)||isNaN(u))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var y,C,Q,F,U,v,b,x=function(){var A=this.internal.collections[t+"images"];return A||(this.internal.collections[t+"images"]=A={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o)),A}.call(this);if(!(y=l(e,x))&&(a(e)&&(e=c(e,r)),(null==(b=f)||0===b.length)&&(f="string"==typeof(v=e)&&A.sHashCode(v)),!(y=l(f,x)))){if(this.isString(e)&&(""!==(B=this.convertStringToImageData(e))||void 0!==(B=this.loadImageFile(e)))&&(e=B),r=this.getImageFileTypeByImageData(e,r),!s(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(e instanceof Uint8Array||(C=e,e=this.binaryStringToUint8Array(e))),!(y=this["process"+r.toUpperCase()](e,(U=0,(F=x)&&(U=Object.keys?Object.keys(F).length:function(A){var t=0;for(var e in A)A.hasOwnProperty(e)&&t++;return t}(F)),U),f,((Q=g)&&"string"==typeof Q&&(Q=Q.toUpperCase()),Q in A.image_compression?Q:A.image_compression.NONE),C)))throw new Error("An unkwown error occurred whilst processing the image")}return function(A,t,e,r,n,i,o,s){var a=function(A,t,e){return A||t||(t=A=-96),A<0&&(A=-1*e.w*72/A/this.internal.scaleFactor),t<0&&(t=-1*e.h*72/t/this.internal.scaleFactor),0===A&&(A=t*e.w/e.h),0===t&&(t=A*e.h/e.w),[A,t]}.call(this,e,r,n),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(e=a[0],r=a[1],o[i]=n,s){s*=Math.PI/180;var u=Math.cos(s),h=Math.sin(s),d=function(A){return A.toFixed(4)},f=[d(u),d(h),d(-1*h),d(u),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(A),l(t+r),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([c(e),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(e),"0","0",c(r),c(A),l(t+r),"cm"].join(" ")),this.internal.write("/I"+n.i+" Do"),this.internal.write("Q")}.call(this,n,u,h,d,y,y.i,x,p),this},A.convertStringToImageData=function(t){var e,r="";return this.isString(t)&&(null!==(e=this.extractInfoFromBase64DataURI(t))?A.validateStringAsBase64(e[3])&&(r=atob(e[3])):A.validateStringAsBase64(t)&&(r=atob(t))),r};var u=function(A,t){return A.subarray(t,t+5)};A.processJPEG=function(A,t,e,r,n,i){var o,s=this.decode.DCT_DECODE;if(!this.isString(A)&&!this.isArrayBuffer(A)&&!this.isArrayBufferView(A))return null;if(this.isString(A)&&(o=function(A){var t;if(255===!A.charCodeAt(0)||216===!A.charCodeAt(1)||255===!A.charCodeAt(2)||224===!A.charCodeAt(3)||!A.charCodeAt(6)==="J".charCodeAt(0)||!A.charCodeAt(7)==="F".charCodeAt(0)||!A.charCodeAt(8)==="I".charCodeAt(0)||!A.charCodeAt(9)==="F".charCodeAt(0)||0===!A.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var e=256*A.charCodeAt(4)+A.charCodeAt(5),r=4,n=A.length;r<n;){if(r+=e,255!==A.charCodeAt(r))throw new Error("getJpegSize could not find the size of the image");if(192===A.charCodeAt(r+1)||193===A.charCodeAt(r+1)||194===A.charCodeAt(r+1)||195===A.charCodeAt(r+1)||196===A.charCodeAt(r+1)||197===A.charCodeAt(r+1)||198===A.charCodeAt(r+1)||199===A.charCodeAt(r+1))return t=256*A.charCodeAt(r+5)+A.charCodeAt(r+6),[256*A.charCodeAt(r+7)+A.charCodeAt(r+8),t,A.charCodeAt(r+9)];r+=2,e=256*A.charCodeAt(r)+A.charCodeAt(r+1)}}(A)),this.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.isArrayBufferView(A)&&(o=function(A){if(65496!=(A[0]<<8|A[1]))throw new Error("Supplied data is not a JPEG");for(var t,e=A.length,r=(A[4]<<8)+A[5],n=4;n<e;){if(r=((t=u(A,n+=r))[2]<<8)+t[3],(192===t[1]||194===t[1])&&255===t[0]&&7<r)return{width:((t=u(A,n+5))[2]<<8)+t[3],height:(t[0]<<8)+t[1],numcomponents:t[4]};n+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(A),A=n||this.arrayBufferToBinaryString(A)),void 0===i)switch(o.numcomponents){case 1:i=this.color_spaces.DEVICE_GRAY;break;case 4:i=this.color_spaces.DEVICE_CMYK;break;default:case 3:i=this.color_spaces.DEVICE_RGB}return this.createImageInfo(A,o.width,o.height,i,8,s,t,e)},A.processJPG=function(){return this.processJPEG.apply(this,arguments)},A.loadImageFile=function(A,t,e){if(t=t||!0,e=e||function(){},Object.prototype.toString.call("undefined"!=typeof n?n:0),void 0!==("undefined"==typeof window?"undefined":oA(window))&&"object"===("undefined"==typeof location?"undefined":oA(location))&&"http"===location.protocol.substr(0,4))return function(A,t,e){var r=new XMLHttpRequest,n=[],i=0,o=function(A){var t=A.length,e=String.fromCharCode;for(i=0;i<t;i+=1)n.push(e(255&A.charCodeAt(i)));return n.join("")};if(r.open("GET",A,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){return o(this.responseText)}),r.send(null),200===r.status)return t?o(r.responseText):void 0;console.warn('Unable to load file "'+A+'"')}(A,t)},A.getImageProperties=function(A){var t,e,r="";if(a(A)&&(A=c(A)),this.isString(A)&&(""!==(r=this.convertStringToImageData(A))||void 0!==(r=this.loadImageFile(A)))&&(A=r),e=this.getImageFileTypeByImageData(A),!s(e))throw new Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if(this.supportsArrayBuffer()&&(A instanceof Uint8Array||(A=this.binaryStringToUint8Array(A))),!(t=this["process"+e.toUpperCase()](A)))throw new Error("An unkwown error occurred whilst processing the image");return{fileType:e,width:t.w,height:t.h,colorSpace:t.cs,compressionMode:t.f,bitsPerComponent:t.bpc}}}(sA.API),s=sA.API,a={annotations:[],f2:function(A){return A.toFixed(2)},notEmpty:function(A){if(void 0!==A&&""!=A)return!0}},sA.API.annotationPlugin=a,sA.API.events.push(["addPage",function(A){this.annotationPlugin.annotations[A.pageNumber]=[]}]),s.events.push(["putPage",function(A){for(var t=this.annotationPlugin.annotations[A.pageNumber],e=!1,r=0;r<t.length&&!e;r++)switch((c=t[r]).type){case"link":if(a.notEmpty(c.options.url)||a.notEmpty(c.options.pageNumber)){e=!0;break}case"reference":case"text":case"freetext":e=!0}if(0!=e){this.internal.write("/Annots [");var n=this.annotationPlugin.f2,i=this.internal.scaleFactor,o=this.internal.pageSize.getHeight(),s=this.internal.getPageInfo(A.pageNumber);for(r=0;r<t.length;r++){var c;switch((c=t[r]).type){case"reference":this.internal.write(" "+c.object.objId+" 0 R ");break;case"text":var l=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),h=c.title||"Note";B="<</Type /Annot /Subtype /Text "+(f="/Rect ["+n(c.bounds.x*i)+" "+n(o-(c.bounds.y+c.bounds.h)*i)+" "+n((c.bounds.x+c.bounds.w)*i)+" "+n((o-c.bounds.y)*i)+"] ")+"/Contents ("+c.contents+")",B+=" /Popup "+u.objId+" 0 R",B+=" /P "+s.objId+" 0 R",B+=" /T ("+h+") >>",l.content=B;var d=l.objId+" 0 R";B="<</Type /Annot /Subtype /Popup "+(f="/Rect ["+n((c.bounds.x+30)*i)+" "+n(o-(c.bounds.y+c.bounds.h)*i)+" "+n((c.bounds.x+c.bounds.w+30)*i)+" "+n((o-c.bounds.y)*i)+"] ")+" /Parent "+d,c.open&&(B+=" /Open true"),B+=" >>",u.content=B,this.internal.write(l.objId,"0 R",u.objId,"0 R");break;case"freetext":var f="/Rect ["+n(c.bounds.x*i)+" "+n((o-c.bounds.y)*i)+" "+n(c.bounds.x+c.bounds.w*i)+" "+n(o-(c.bounds.y+c.bounds.h)*i)+"] ",g=c.color||"#000000";B="<</Type /Annot /Subtype /FreeText "+f+"/Contents ("+c.contents+")",B+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+g+")",B+=" /Border [0 0 0]",B+=" >>",this.internal.write(B);break;case"link":if(c.options.name){var p=this.annotations._nameMap[c.options.name];c.options.pageNumber=p.page,c.options.top=p.y}else c.options.top||(c.options.top=0);f="/Rect ["+n(c.x*i)+" "+n((o-c.y)*i)+" "+n((c.x+c.w)*i)+" "+n((o-(c.y+c.h))*i)+"] ";var B="";if(c.options.url)B="<</Type /Annot /Subtype /Link "+f+"/Border [0 0 0] /A <</S /URI /URI ("+c.options.url+") >>";else if(c.options.pageNumber)switch(B="<</Type /Annot /Subtype /Link "+f+"/Border [0 0 0] /Dest ["+(A=this.internal.getPageInfo(c.options.pageNumber)).objId+" 0 R",c.options.magFactor=c.options.magFactor||"XYZ",c.options.magFactor){case"Fit":B+=" /Fit]";break;case"FitH":B+=" /FitH "+c.options.top+"]";break;case"FitV":c.options.left=c.options.left||0,B+=" /FitV "+c.options.left+"]";break;case"XYZ":default:var w=n((o-c.options.top)*i);c.options.left=c.options.left||0,void 0===c.options.zoom&&(c.options.zoom=0),B+=" /XYZ "+c.options.left+" "+w+" "+c.options.zoom+"]"}""!=B&&(B+=" >>",this.internal.write(B))}}this.internal.write("]")}}]),s.createAnnotation=function(A){switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(A)}},s.link=function(A,t,e,r,n){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:A,y:t,w:e,h:r,options:n,type:"link"})},s.textWithLink=function(A,t,e,r){var n=this.getTextWidth(A),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(A,t,e),e+=.2*i,this.link(t,e-i,n,i,r),n},s.getTextWidth=function(A){var t=this.internal.getFontSize();return this.getStringUnitWidth(A)*t/this.internal.scaleFactor},s.getLineHeight=function(){return this.internal.getLineHeight()},function(A){var t=Object.keys({ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",fa:"Persian","fa-IR":"Persian/Iran",ur:"Urdu"}),e={1569:[65152],1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1572:[65157,65158],1573:[65159,65160,65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166,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,65193],1584:[65195,65196,65195],1585:[65197,65198,65197],1586:[65199,65200,65199],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,65261],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,64394],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]},r={1570:[65269,65270,65269,65270],1571:[65271,65272,65271,65272],1573:[65273,65274,65273,65274],1575:[65275,65276,65275,65276]},n={1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1573:[65159,65160,65159,65160],1575:[65165,65166,65165,65166]},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575],s=[1569,1570,1571,1572,1573,1575,1577,1583,1584,1585,1586,1608,1688],a=0,c=1,l=2,u=3;function h(A){return void 0!==A&&void 0!==e[A.charCodeAt(0)]}function d(A){return void 0!==A&&0<=s.indexOf(A.charCodeAt(0))}function f(A){return void 0!==A&&0<=o.indexOf(A.charCodeAt(0))}function g(A){return h(A)&&2<=e[A.charCodeAt(0)].length}function p(A,t,r,i){return h(A)?(i=i||{},e=Object.assign(e,i),!g(A)||!h(t)&&!h(r)||!h(r)&&d(t)||d(A)&&!h(t)||d(A)&&f(t)||d(A)&&d(t)?(e=Object.assign(e,n),a):h(o=A)&&4==e[o.charCodeAt(0)].length&&h(t)&&!d(t)&&h(r)&&g(r)?(e=Object.assign(e,n),u):d(A)||!h(r)?(e=Object.assign(e,n),c):(e=Object.assign(e,n),l)):-1;var o}var B=A.processArabic=function(A,t){A=A||"",t=t||!1;var o,s,a,c="",l=0,u=0,d="",g="",B="";for(l=0;l<A.length;l+=1)d=A[l],g=A[l-1],B=A[l+1],h(d)?void 0!==g&&1604===g.charCodeAt(0)&&f(d)?(u=p(d,A[l-2],A[l+1],r),o=String.fromCharCode(r[d.charCodeAt(0)][u]),c=c.substr(0,c.length-1)+o):void 0!==g&&1617===g.charCodeAt(0)&&void 0!==(s=d)&&void 0!==i[s.charCodeAt(0)]?(u=p(d,A[l-2],A[l+1],n),o=String.fromCharCode(i[d.charCodeAt(0)][u]),c=c.substr(0,c.length-1)+o):(u=p(d,g,B,n),c+=String.fromCharCode(e[d.charCodeAt(0)][u])):c+=t?{"(":")",")":"("}[a=d]||a:d;return t?c.split("").reverse().join(""):c};A.events.push(["preProcessText",function(A){var e=A.text,r=(A.x,A.y,A.options||{}),n=(A.mutex,r.lang),i=[];if(0<=t.indexOf(n)){if("[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([B(e[o][0],!0),e[o][1],e[o][2]]):i.push([B(e[o],!0)]);A.text=i}else A.text=B(e,!0);void 0===r.charSpace&&(A.options.charSpace=0),!0===r.R2L&&(A.options.R2L=!1)}}])}(sA.API),sA.API.autoPrint=function(A){var t;switch((A=A||{}).variant=A.variant||"non-conform",A.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(c=sA.API).events.push(["initialized",function(){this.canvas.pdf=this}]),c.canvas={getContext:function(A){return(this.pdf.context2d._canvas=this).pdf.context2d},childNodes:[]},Object.defineProperty(c.canvas,"width",{get:function(){return this._width},set:function(A){this._width=A,this.getContext("2d").pageWrapX=A+1}}),Object.defineProperty(c.canvas,"height",{get:function(){return this._height},set:function(A){this._height=A,this.getContext("2d").pageWrapY=A+1}}),l=sA.API,g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},p=1,B=function(A,t,e,r,n){g={x:A,y:t,w:e,h:r,ln:n}},w=function(){return g},m={left:0,top:0,bottom:0},l.setHeaderFunction=function(A){f=A},l.getTextDimensions=function(A){u=this.internal.getFont().fontName,h=this.table_font_size||this.internal.getFontSize(),d=this.internal.getFont().fontStyle;var t,e,r=19.049976/25.4;(e=document.createElement("font")).id="jsPDFCell";try{e.style.fontStyle=d}catch(t){e.style.fontWeight=d}e.style.fontSize=h+"pt",e.style.fontFamily=u;try{e.textContent=A}catch(t){e.innerText=A}return document.body.appendChild(e),t={w:(e.offsetWidth+1)*r,h:(e.offsetHeight+1)*r},document.body.removeChild(e),t},l.cellAddPage=function(){var A=this.margins||m;this.addPage(),B(A.left,A.top,void 0,void 0),p+=1},l.cellInitialize=function(){g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},p=1},l.cell=function(A,t,e,r,n,i,o){var s=w(),a=!1;if(void 0!==s.ln)if(s.ln===i)A=s.x+s.w,t=s.y;else{var c=this.margins||m;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),a=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),t=w().y+w().h,a&&(t=23)}if(void 0!==n[0])if(this.printingHeaderRow?this.rect(A,t,e,r,"FD"):this.rect(A,t,e,r),"right"===o){n instanceof Array||(n=[n]);for(var l=0;l<n.length;l++){var u=n[l],h=this.getStringUnitWidth(u)*this.internal.getFontSize();this.text(u,A+e-h-3,t+this.internal.getLineHeight()*(l+1))}}else this.text(n,A+3,t+this.internal.getLineHeight());return B(A,t,e,r,i),this},l.arrayMax=function(A,t){var e,r,n,i=A[0];for(e=0,r=A.length;e<r;e+=1)n=A[e],t?-1===t(i,n)&&(i=n):i<n&&(i=n);return i},l.table=function(A,t,e,r,n){if(!e)throw"No data for PDF table";var i,o,s,a,c,u,h,d,f,B,w=[],y=[],C={},Q={},F=[],U=[],v=!1,b=!0,x=12,I=m;if(I.width=this.internal.pageSize.getWidth(),n&&(!0===n.autoSize&&(v=!0),!1===n.printHeaders&&(b=!1),n.fontSize&&(x=n.fontSize),n.css&&void 0!==n.css["font-size"]&&(x=16*n.css["font-size"]),n.margins&&(I=n.margins)),this.lnMod=0,g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},p=1,this.printHeaders=b,this.margins=I,this.setFontSize(x),this.table_font_size=x,null==r)w=Object.keys(e[0]);else if(r[0]&&"string"!=typeof r[0])for(o=0,s=r.length;o<s;o+=1)i=r[o],w.push(i.name),y.push(i.prompt),Q[i.name]=i.width*(19.049976/25.4);else w=r;if(v)for(B=function(A){return A[i]},o=0,s=w.length;o<s;o+=1){for(C[i=w[o]]=e.map(B),F.push(this.getTextDimensions(y[o]||i).w),h=0,a=(u=C[i]).length;h<a;h+=1)c=u[h],F.push(this.getTextDimensions(c).w);Q[i]=l.arrayMax(F),F=[]}if(b){var E=this.calculateLineHeight(w,Q,y.length?y:w);for(o=0,s=w.length;o<s;o+=1)i=w[o],U.push([A,t,Q[i],E,String(y.length?y[o]:i)]);this.setTableHeaderRow(U),this.printHeaderRow(1,!1)}for(o=0,s=e.length;o<s;o+=1)for(d=e[o],E=this.calculateLineHeight(w,Q,d),h=0,f=w.length;h<f;h+=1)i=w[h],this.cell(A,t,Q[i],E,d[i],o+2,i.align);return this.lastCellPos=g,this.table_x=A,this.table_y=t,this},l.calculateLineHeight=function(A,t,e){for(var r,n=0,i=0;i<A.length;i++){e[r=A[i]]=this.splitTextToSize(String(e[r]),t[r]-3);var o=this.internal.getLineHeight()*e[r].length+3;n<o&&(n=o)}return n},l.setTableHeaderRow=function(A){this.tableHeaderRow=A},l.printHeaderRow=function(A,t){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var e,r,n,i;if(this.printingHeaderRow=!0,void 0!==f){var o=f(this,p);B(o[0],o[1],o[2],o[3],-1)}this.setFontStyle("bold");var s=[];for(n=0,i=this.tableHeaderRow.length;n<i;n+=1)this.setFillColor(200,200,200),e=this.tableHeaderRow[n],t&&(this.margins.top=13,e[1]=this.margins&&this.margins.top||0,s.push(e)),r=[].concat(e),this.cell.apply(this,r.concat(A));0<s.length&&this.setTableHeaderRow(s),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(A){A.events.push(["initialized",function(){((this.context2d.pdf=this).context2d.internal.pdf=this).context2d.ctx=new e,this.context2d.ctxStack=[],this.context2d.path=[]}]),A.context2d={pageWrapXEnabled:!1,pageWrapYEnabled:!1,pageWrapX:9999999,pageWrapY:9999999,ctx:new e,f2:function(A){return A.toFixed(2)},fillRect:function(A,t,e,r){if(!this._isFillTransparent()){A=this._wrapX(A),t=this._wrapY(t);var n=this._matrix_map_rect(this.ctx._transform,{x:A,y:t,w:e,h:r});this.pdf.rect(n.x,n.y,n.w,n.h,"f")}},strokeRect:function(A,t,e,r){if(!this._isStrokeTransparent()){A=this._wrapX(A),t=this._wrapY(t);var n=this._matrix_map_rect(this.ctx._transform,{x:A,y:t,w:e,h:r});this.pdf.rect(n.x,n.y,n.w,n.h,"s")}},clearRect:function(A,t,e,r){if(!this.ctx.ignoreClearRect){A=this._wrapX(A),t=this._wrapY(t);var n=this._matrix_map_rect(this.ctx._transform,{x:A,y:t,w:e,h:r});this.save(),this.setFillStyle("#ffffff"),this.pdf.rect(n.x,n.y,n.w,n.h,"f"),this.restore()}},save:function(){this.ctx._fontSize=this.pdf.internal.getFontSize();var A=new e;A.copy(this.ctx),this.ctxStack.push(this.ctx),this.ctx=A},restore:function(){this.ctx=this.ctxStack.pop(),this.setFillStyle(this.ctx.fillStyle),this.setStrokeStyle(this.ctx.strokeStyle),this.setFont(this.ctx.font),this.pdf.setFontSize(this.ctx._fontSize),this.setLineCap(this.ctx.lineCap),this.setLineWidth(this.ctx.lineWidth),this.setLineJoin(this.ctx.lineJoin)},rect:function(A,t,e,r){this.moveTo(A,t),this.lineTo(A+e,t),this.lineTo(A+e,t+r),this.lineTo(A,t+r),this.lineTo(A,t),this.closePath()},beginPath:function(){this.path=[]},closePath:function(){this.path.push({type:"close"})},_getRGBA:function(A){var t,e,r,n,i=new RGBColor(A);if(!A)return{r:0,g:0,b:0,a:0,style:A};if(this.internal.rxTransparent.test(A))n=r=e=t=0;else{var o=this.internal.rxRgb.exec(A);null!=o?(t=parseInt(o[1]),e=parseInt(o[2]),r=parseInt(o[3]),n=1):null!=(o=this.internal.rxRgba.exec(A))?(t=parseInt(o[1]),e=parseInt(o[2]),r=parseInt(o[3]),n=parseFloat(o[4])):(n=1,"#"!=A.charAt(0)&&(A=i.ok?i.toHex():"#000000"),4===A.length?(t=A.substring(1,2),t+=t,e=A.substring(2,3),e+=e,r=A.substring(3,4),r+=r):(t=A.substring(1,3),e=A.substring(3,5),r=A.substring(5,7)),t=parseInt(t,16),e=parseInt(e,16),r=parseInt(r,16))}return{r:t,g:e,b:r,a:n,style:A}},setFillStyle:function(A){var t=this._getRGBA(A);this.ctx.fillStyle=A,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})},setStrokeStyle:function(A){var t=this._getRGBA(A);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))},fillText:function(A,t,e,r){if(!this._isFillTransparent()){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_point(this.ctx._transform,[t,e]);t=n[0],e=n[1];var i=57.2958*this._matrix_rotation(this.ctx._transform);if(0<this.ctx._clip_path.length){var o;(o=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var s=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=s}var a=1;try{a=this._matrix_decompose(this._getTransform()).scale[0]}catch(A){console.warn(A)}if(a<.01)this.pdf.text(A,t,this._getBaseline(e),null,i);else{var c=this.pdf.internal.getFontSize();this.pdf.setFontSize(c*a),this.pdf.text(A,t,this._getBaseline(e),null,i),this.pdf.setFontSize(c)}0<this.ctx._clip_path.length&&o.push("Q")}},strokeText:function(A,t,e,r){if(!this._isStrokeTransparent()){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_point(this.ctx._transform,[t,e]);t=n[0],e=n[1];var i=57.2958*this._matrix_rotation(this.ctx._transform);if(0<this.ctx._clip_path.length){var o;(o=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var s=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=s}var a=1;try{a=this._matrix_decompose(this._getTransform()).scale[0]}catch(A){console.warn(A)}if(1===a)this.pdf.text(A,t,this._getBaseline(e),{stroke:!0},i);else{var c=this.pdf.internal.getFontSize();this.pdf.setFontSize(c*a),this.pdf.text(A,t,this._getBaseline(e),{stroke:!0},i),this.pdf.setFontSize(c)}0<this.ctx._clip_path.length&&o.push("Q")}},setFont:function(A){if(this.ctx.font=A,null!=(c=/\s*(\w+)\s+(\w+)\s+(\w+)\s+([\d\.]+)(px|pt|em)\s+(.*)?/.exec(A))){var t=c[1],e=(c[2],c[3]),r=c[4],n=c[5],i=c[6];r="px"===n?Math.floor(parseFloat(r)):"em"===n?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)),this.pdf.setFontSize(r),"bold"===e||"700"===e?this.pdf.setFontStyle("bold"):"italic"===t?this.pdf.setFontStyle("italic"):this.pdf.setFontStyle("normal"),l="bold"===e||"700"===e?"italic"===t?"bolditalic":"bold":"italic"===t?"italic":"normal";for(var o=i.toLowerCase().split(/\s*,\s*/),s="Times",a=0;a<o.length;a++){if(void 0!==this.pdf.internal.getFont(o[a],l,{noFallback:!0,disableWarning:!0})){s=o[a];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(o[a],"bold",{noFallback:!0,disableWarning:!0}))s=o[a],l="bold";else if(void 0!==this.pdf.internal.getFont(o[a],"normal",{noFallback:!0,disableWarning:!0})){s=o[a],l="normal";break}}this.pdf.setFont(s,l)}else{var c=/\s*(\d+)(pt|px|em)\s+([\w "]+)\s*([\w "]+)?/.exec(A);if(null!=c){var l,u=c[1],h=(c[2],c[3]);(l=c[4])||(l="normal"),u="em"===n?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(u)),this.pdf.setFontSize(u),this.pdf.setFont(h,l)}}},setTextBaseline:function(A){this.ctx.textBaseline=A},getTextBaseline:function(){return this.ctx.textBaseline},setTextAlign:function(A){this.ctx.textAlign=A},getTextAlign:function(){return this.ctx.textAlign},setLineWidth:function(A){this.ctx.lineWidth=A,this.pdf.setLineWidth(A)},setLineCap:function(A){this.ctx.lineCap=A,this.pdf.setLineCap(A)},setLineJoin:function(A){this.ctx.lineJoin=A,this.pdf.setLineJoin(A)},moveTo:function(A,t){A=this._wrapX(A),t=this._wrapY(t);var e=this._matrix_map_point(this.ctx._transform,[A,t]),r={type:"mt",x:A=e[0],y:t=e[1]};this.path.push(r)},_wrapX:function(A){return this.pageWrapXEnabled?A%this.pageWrapX:A},_wrapY:function(A){return this.pageWrapYEnabled?(this._gotoPage(this._page(A)),(A-this.lastBreak)%this.pageWrapY):A},transform:function(A,t,e,r,n,i){this.ctx._transform=this._matrix_multiply(this.ctx._transform,[A,t,e,r,n,i])},setTransform:function(A,t,e,r,n,i){this.ctx._transform=[A,t,e,r,n,i]},_getTransform:function(){return this.ctx._transform},lastBreak:0,pageBreaks:[],_page:function(A){if(this.pageWrapYEnabled){for(var t=this.lastBreak=0,e=0,r=0;r<this.pageBreaks.length;r++)if(A>=this.pageBreaks[r]){t++,0===this.lastBreak&&e++;var n=this.pageBreaks[r]-this.lastBreak;this.lastBreak=this.pageBreaks[r],e+=Math.floor(n/this.pageWrapY)}return 0===this.lastBreak&&(e+=Math.floor(A/this.pageWrapY)+1),e+t}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(A){},lineTo:function(A,t){A=this._wrapX(A),t=this._wrapY(t);var e=this._matrix_map_point(this.ctx._transform,[A,t]),r={type:"lt",x:A=e[0],y:t=e[1]};this.path.push(r)},bezierCurveTo:function(A,t,e,r,n,i){var o;A=this._wrapX(A),t=this._wrapY(t),e=this._wrapX(e),r=this._wrapY(r),n=this._wrapX(n),i=this._wrapY(i),n=(o=this._matrix_map_point(this.ctx._transform,[n,i]))[0],i=o[1];var s={type:"bct",x1:A=(o=this._matrix_map_point(this.ctx._transform,[A,t]))[0],y1:t=o[1],x2:e=(o=this._matrix_map_point(this.ctx._transform,[e,r]))[0],y2:r=o[1],x:n,y:i};this.path.push(s)},quadraticCurveTo:function(A,t,e,r){var n;A=this._wrapX(A),t=this._wrapY(t),e=this._wrapX(e),r=this._wrapY(r),e=(n=this._matrix_map_point(this.ctx._transform,[e,r]))[0],r=n[1];var i={type:"qct",x1:A=(n=this._matrix_map_point(this.ctx._transform,[A,t]))[0],y1:t=n[1],x:e,y:r};this.path.push(i)},arc:function(A,t,e,r,n,i){if(A=this._wrapX(A),t=this._wrapY(t),!this._matrix_is_identity(this.ctx._transform)){var o=this._matrix_map_point(this.ctx._transform,[A,t]);A=o[0],t=o[1];var s=this._matrix_map_point(this.ctx._transform,[0,0]),a=this._matrix_map_point(this.ctx._transform,[0,e]);e=Math.sqrt(Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2))}var c={type:"arc",x:A,y:t,radius:e,startAngle:r,endAngle:n,anticlockwise:i};this.path.push(c)},drawImage:function(A,t,e,r,n,i,o,s,a){void 0!==i&&(t=i,e=o,r=s,n=a),t=this._wrapX(t),e=this._wrapY(e);var c,l=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:r,h:n}),u=(this._matrix_map_rect(this.ctx._transform,{x:i,y:o,w:s,h:a}),/data:image\/(\w+).*/i.exec(A));c=null!=u?u[1]:"png",this.pdf.addImage(A,c,l.x,l.y,l.w,l.h)},_matrix_multiply:function(A,t){var e=t[0],r=t[1],n=t[2],i=t[3],o=t[4],s=t[5],a=e*A[0]+r*A[2],c=n*A[0]+i*A[2],l=o*A[0]+s*A[2]+A[4];return r=e*A[1]+r*A[3],i=n*A[1]+i*A[3],s=o*A[1]+s*A[3]+A[5],[e=a,r,n=c,i,o=l,s]},_matrix_rotation:function(A){return Math.atan2(A[2],A[0])},_matrix_decompose:function(A){var t=A[0],e=A[1],r=A[2],n=A[3],i=Math.sqrt(t*t+e*e),o=(t/=i)*r+(e/=i)*n;r-=t*o,n-=e*o;var s=Math.sqrt(r*r+n*n);return o/=s,t*(n/=s)<e*(r/=s)&&(t=-t,e=-e,o=-o,i=-i),{scale:[i,0,0,s,0,0],translate:[1,0,0,1,A[4],A[5]],rotate:[t,e,-e,t,0,0],skew:[1,0,o,1,0,0]}},_matrix_map_point:function(A,t){var e=A[0],r=A[1],n=A[2],i=A[3],o=A[4],s=A[5],a=t[0],c=t[1];return[a*e+c*n+o,a*r+c*i+s]},_matrix_map_point_obj:function(A,t){var e=this._matrix_map_point(A,[t.x,t.y]);return{x:e[0],y:e[1]}},_matrix_map_rect:function(A,t){var e=this._matrix_map_point(A,[t.x,t.y]),r=this._matrix_map_point(A,[t.x+t.w,t.y+t.h]);return{x:e[0],y:e[1],w:r[0]-e[0],h:r[1]-e[1]}},_matrix_is_identity:function(A){return 1==A[0]&&0==A[1]&&0==A[2]&&1==A[3]&&0==A[4]&&0==A[5]},rotate:function(A){var t=[Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,t)},scale:function(A,t){var e=[A,0,0,t,0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,e)},translate:function(A,t){var e=[1,0,0,1,A,t];this.ctx._transform=this._matrix_multiply(this.ctx._transform,e)},stroke:function(){if(0<this.ctx._clip_path.length){var A;(A=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var t=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._stroke(!0),this.ctx._clip_path=this.path,this.path=t,this._stroke(!1),A.push("Q")}else this._stroke(!1)},_stroke:function(A){if(A||!this._isStrokeTransparent()){for(var t=[],e=this.path,r=0;r<e.length;r++){var n=e[r];switch(n.type){case"mt":t.push({start:n,deltas:[],abs:[]});break;case"lt":var i=[n.x-e[r-1].x,n.y-e[r-1].y];t[t.length-1].deltas.push(i),t[t.length-1].abs.push(n);break;case"bct":i=[n.x1-e[r-1].x,n.y1-e[r-1].y,n.x2-e[r-1].x,n.y2-e[r-1].y,n.x-e[r-1].x,n.y-e[r-1].y],t[t.length-1].deltas.push(i);break;case"qct":var o=e[r-1].x+2/3*(n.x1-e[r-1].x),s=e[r-1].y+2/3*(n.y1-e[r-1].y),a=n.x+2/3*(n.x1-n.x),c=n.y+2/3*(n.y1-n.y),l=n.x,u=n.y;i=[o-e[r-1].x,s-e[r-1].y,a-e[r-1].x,c-e[r-1].y,l-e[r-1].x,u-e[r-1].y],t[t.length-1].deltas.push(i);break;case"arc":0==t.length&&t.push({start:{x:0,y:0},deltas:[],abs:[]}),t[t.length-1].arc=!0,Array.isArray(t[t.length-1].abs)&&t[t.length-1].abs.push(n)}}for(r=0;r<t.length;r++){var h;if(h=r==t.length-1?"s":null,t[r].arc)for(var d=t[r].abs,f=0;f<d.length;f++){var g=d[f],p=360*g.startAngle/(2*Math.PI),B=360*g.endAngle/(2*Math.PI),w=g.x,m=g.y;this.internal.arc2(this,w,m,g.radius,p,B,g.anticlockwise,h,A)}else w=t[r].start.x,m=t[r].start.y,A?(this.pdf.lines(t[r].deltas,w,m,null,null),this.pdf.clip_fixed()):this.pdf.lines(t[r].deltas,w,m,null,h)}}},_isFillTransparent:function(){return this.ctx._isFillTransparent||0==this.globalAlpha},_isStrokeTransparent:function(){return this.ctx._isStrokeTransparent||0==this.globalAlpha},fill:function(A){if(0<this.ctx._clip_path.length){var t;(t=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var e=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(A,!0),this.ctx._clip_path=this.path,this.path=e,this._fill(A,!1),t.push("Q")}else this._fill(A,!1)},_fill:function(A,e){if(!this._isFillTransparent()){var r,n="function"==typeof this.pdf.internal.newObject2;r=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage();var i=[],o=window.outIntercept;if(n)switch(this.ctx.globalCompositeOperation){case"normal":case"source-over":break;case"destination-in":case"destination-out":var s=this.pdf.internal.newStreamObject(),a=this.pdf.internal.newObject2();a.push("<</Type /ExtGState"),a.push("/SMask <</S /Alpha /G "+s.objId+" 0 R>>"),a.push(">>");var c="MASK"+a.objId;this.pdf.internal.addGraphicsState(c,a.objId);var l="/"+c+" gs";r.splice(0,0,"q"),r.splice(1,0,l),r.push("Q"),window.outIntercept=s;break;default:var u="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];u&&this.pdf.internal.out(u+" gs")}var h=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(h=this.ctx._fillOpacity),n){var d=this.pdf.internal.newObject2();d.push("<</Type /ExtGState"),d.push("/CA "+h),d.push("/ca "+h),d.push(">>"),c="GS_O_"+d.objId,this.pdf.internal.addGraphicsState(c,d.objId),this.pdf.internal.out("/"+c+" gs")}for(var f=this.path,g=0;g<f.length;g++){var p=f[g];switch(p.type){case"mt":i.push({start:p,deltas:[],abs:[]});break;case"lt":var B=[p.x-f[g-1].x,p.y-f[g-1].y];i[i.length-1].deltas.push(B),i[i.length-1].abs.push(p);break;case"bct":B=[p.x1-f[g-1].x,p.y1-f[g-1].y,p.x2-f[g-1].x,p.y2-f[g-1].y,p.x-f[g-1].x,p.y-f[g-1].y],i[i.length-1].deltas.push(B);break;case"qct":var w=f[g-1].x+2/3*(p.x1-f[g-1].x),m=f[g-1].y+2/3*(p.y1-f[g-1].y),y=p.x+2/3*(p.x1-p.x),C=p.y+2/3*(p.y1-p.y),Q=p.x,F=p.y;B=[w-f[g-1].x,m-f[g-1].y,y-f[g-1].x,C-f[g-1].y,Q-f[g-1].x,F-f[g-1].y],i[i.length-1].deltas.push(B);break;case"arc":0===i.length&&i.push({deltas:[],abs:[]}),i[i.length-1].arc=!0,Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(p);break;case"close":i.push({close:!0})}}for(g=0;g<i.length;g++){var U;if(g==i.length-1?(U="f","evenodd"===A&&(U+="*")):U=null,i[g].close)this.pdf.internal.out("h"),U&&this.pdf.internal.out(U);else if(i[g].arc){i[g].start&&this.internal.move2(this,i[g].start.x,i[g].start.y);for(var v=i[g].abs,b=0;b<v.length;b++){var x=v[b];if(void 0!==x.startAngle){var I=360*x.startAngle/(2*Math.PI),E=360*x.endAngle/(2*Math.PI),H=x.x,S=x.y;0===b&&this.internal.move2(this,H,S),this.internal.arc2(this,H,S,x.radius,I,E,x.anticlockwise,null,e),b===v.length-1&&i[g].start&&(H=i[g].start.x,S=i[g].start.y,this.internal.line2(t,H,S))}else this.internal.line2(t,x.x,x.y)}}else H=i[g].start.x,S=i[g].start.y,e?(this.pdf.lines(i[g].deltas,H,S,null,null),this.pdf.clip_fixed()):this.pdf.lines(i[g].deltas,H,S,null,U)}window.outIntercept=o}},pushMask:function(){if("function"==typeof this.pdf.internal.newObject2){var A=this.pdf.internal.newStreamObject(),t=this.pdf.internal.newObject2();t.push("<</Type /ExtGState"),t.push("/SMask <</S /Alpha /G "+A.objId+" 0 R>>"),t.push(">>");var e="MASK"+t.objId;this.pdf.internal.addGraphicsState(e,t.objId);var r="/"+e+" gs";this.pdf.internal.out(r)}else console.log("jsPDF v2 not enabled")},clip:function(){if(0<this.ctx._clip_path.length)for(var A=0;A<this.path.length;A++)this.ctx._clip_path.push(this.path[A]);else this.ctx._clip_path=this.path;this.path=[]},measureText:function(A){var t=this.pdf;return{getWidth:function(){var e=t.internal.getFontSize(),r=t.getStringUnitWidth(A)*e/t.internal.scaleFactor;return 1.3333*r},get width(){return this.getWidth(A)}}},_getBaseline:function(A){var t=parseInt(this.pdf.internal.getFontSize()),e=.25*t;switch(this.ctx.textBaseline){case"bottom":return A-e;case"top":return A+t;case"hanging":return A+t-e;case"middle":return A+t/2-e;case"ideographic":return A;case"alphabetic":default:return A}}};var t=A.context2d;function e(){this._isStrokeTransparent=!1,this._strokeOpacity=1,this.strokeStyle="#000000",this.fillStyle="#000000",this._isFillTransparent=!1,this._fillOpacity=1,this.font="12pt times",this.textBaseline="alphabetic",this.textAlign="start",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this._transform=[1,0,0,1,0,0],this.globalCompositeOperation="normal",this.globalAlpha=1,this._clip_path=[],this.ignoreClearRect=!1,this.copy=function(A){this._isStrokeTransparent=A._isStrokeTransparent,this._strokeOpacity=A._strokeOpacity,this.strokeStyle=A.strokeStyle,this._isFillTransparent=A._isFillTransparent,this._fillOpacity=A._fillOpacity,this.fillStyle=A.fillStyle,this.font=A.font,this.lineWidth=A.lineWidth,this.lineJoin=A.lineJoin,this.lineCap=A.lineCap,this.textBaseline=A.textBaseline,this.textAlign=A.textAlign,this._fontSize=A._fontSize,this._transform=A._transform.slice(0),this.globalCompositeOperation=A.globalCompositeOperation,this.globalAlpha=A.globalAlpha,this._clip_path=A._clip_path.slice(0),this.ignoreClearRect=A.ignoreClearRect}}Object.defineProperty(t,"fillStyle",{set:function(A){this.setFillStyle(A)},get:function(){return this.ctx.fillStyle}}),Object.defineProperty(t,"strokeStyle",{set:function(A){this.setStrokeStyle(A)},get:function(){return this.ctx.strokeStyle}}),Object.defineProperty(t,"lineWidth",{set:function(A){this.setLineWidth(A)},get:function(){return this.ctx.lineWidth}}),Object.defineProperty(t,"lineCap",{set:function(A){this.setLineCap(A)},get:function(){return this.ctx.lineCap}}),Object.defineProperty(t,"lineJoin",{set:function(A){this.setLineJoin(A)},get:function(){return this.ctx.lineJoin}}),Object.defineProperty(t,"miterLimit",{set:function(A){this.ctx.miterLimit=A},get:function(){return this.ctx.miterLimit}}),Object.defineProperty(t,"textBaseline",{set:function(A){this.setTextBaseline(A)},get:function(){return this.getTextBaseline()}}),Object.defineProperty(t,"textAlign",{set:function(A){this.setTextAlign(A)},get:function(){return this.getTextAlign()}}),Object.defineProperty(t,"font",{set:function(A){this.setFont(A)},get:function(){return this.ctx.font}}),Object.defineProperty(t,"globalCompositeOperation",{set:function(A){this.ctx.globalCompositeOperation=A},get:function(){return this.ctx.globalCompositeOperation}}),Object.defineProperty(t,"globalAlpha",{set:function(A){this.ctx.globalAlpha=A},get:function(){return this.ctx.globalAlpha}}),Object.defineProperty(t,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(t,"ignoreClearRect",{set:function(A){this.ctx.ignoreClearRect=A},get:function(){return this.ctx.ignoreClearRect}}),t.internal={},t.internal.rxRgb=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,t.internal.rxRgba=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/,t.internal.rxTransparent=/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/,t.internal.arc=function(A,t,e,r,n,i,o,s){for(var a=this.pdf.internal.scaleFactor,c=this.pdf.internal.pageSize.getHeight(),l=this.pdf.internal.f2,u=n*(Math.PI/180),h=i*(Math.PI/180),d=this.createArc(r,u,h,o),f=0;f<d.length;f++){var g=d[f];0===f?this.pdf.internal.out([l((g.x1+t)*a),l((c-(g.y1+e))*a),"m",l((g.x2+t)*a),l((c-(g.y2+e))*a),l((g.x3+t)*a),l((c-(g.y3+e))*a),l((g.x4+t)*a),l((c-(g.y4+e))*a),"c"].join(" ")):this.pdf.internal.out([l((g.x2+t)*a),l((c-(g.y2+e))*a),l((g.x3+t)*a),l((c-(g.y3+e))*a),l((g.x4+t)*a),l((c-(g.y4+e))*a),"c"].join(" ")),A._lastPoint={x:t,y:e}}null!==s&&this.pdf.internal.out(this.pdf.internal.getStyle(s))},t.internal.arc2=function(A,t,e,r,n,i,o,s,a){var c=t,l=e;a?(this.arc(A,c,l,r,n,i,o,null),this.pdf.clip_fixed()):this.arc(A,c,l,r,n,i,o,s)},t.internal.move2=function(A,t,e){var r=this.pdf.internal.scaleFactor,n=this.pdf.internal.pageSize.getHeight(),i=this.pdf.internal.f2;this.pdf.internal.out([i(t*r),i((n-e)*r),"m"].join(" ")),A._lastPoint={x:t,y:e}},t.internal.line2=function(A,t,e){var r=this.pdf.internal.scaleFactor,n=this.pdf.internal.pageSize.getHeight(),i=this.pdf.internal.f2,o={x:t,y:e};this.pdf.internal.out([i(o.x*r),i((n-o.y)*r),"l"].join(" ")),A._lastPoint=o},t.internal.createArc=function(A,t,e,r){var n=2*Math.PI,i=Math.PI/2,o=t;for((o<n||n<o)&&(o%=n),o<0&&(o=n+o);e<t;)t-=n;var s=Math.abs(e-t);s<n&&r&&(s=n-s);for(var a=[],c=r?-1:1,l=o;1e-5<s;){var u=l+c*Math.min(s,i);a.push(this.createSmallArc(A,l,u)),s-=Math.abs(u-l),l=u}return a},t.internal.getCurrentPage=function(){return this.pdf.internal.pages[this.pdf.internal.getCurrentPageInfo().pageNumber]},t.internal.createSmallArc=function(A,t,e){var r=(e-t)/2,n=A*Math.cos(r),i=A*Math.sin(r),o=n,s=-i,a=o*o+s*s,c=a+o*n+s*i,l=4/3*(Math.sqrt(2*a*c)-c)/(o*i-s*n),u=o-l*s,h=s+l*o,d=u,f=-h,g=r+t,p=Math.cos(g),B=Math.sin(g);return{x1:A*Math.cos(t),y1:A*Math.sin(t),x2:u*p-h*B,y2:u*B+h*p,x3:d*p-f*B,y3:d*B+f*p,x4:A*Math.cos(e),y4:A*Math.sin(e)}}}(sA.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),
/** @preserve
   * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser
   * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
   *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
   *               2014 Diego Casorran, https://github.com/diegocr
   *               2014 Daniel Husar, https://github.com/danielhusar
   *               2014 Wolfgang Gassler, https://github.com/woolfg
   *               2014 Steven Spungin, https://github.com/flamenco
   *
   * 
   * ====================================================================
   */
function(A){var t,e,r,n,i,o,s,a,c,l,u,h,d,f,g,p,B,w,m,y;t=function(){return function(t){return A.prototype=t,new A};function A(){}}(),l=function(A){var t,e,r,n,i,o,s;for(e=0,r=A.length,t=void 0,o=n=!1;!n&&e!==r;)(t=A[e]=A[e].trimLeft())&&(n=!0),e++;for(e=r-1;r&&!o&&-1!==e;)(t=A[e]=A[e].trimRight())&&(o=!0),e--;for(i=/\s+$/g,s=!0,e=0;e!==r;)"\u2028"!=A[e]&&(t=A[e].replace(/\s+/g," "),s&&(t=t.trimLeft()),t&&(s=i.test(t)),A[e]=t),e++;return A},h=function(A){var t,e,n;for(t=void 0,e=(n=A.split(",")).shift();!t&&e;)t=r[e.trim().toLowerCase()],e=n.shift();return t},d=function(A){var t;return-1<(A="auto"===A?"0px":A).indexOf("em")&&!isNaN(Number(A.replace("em","")))&&(A=18.719*Number(A.replace("em",""))+"px"),-1<A.indexOf("pt")&&!isNaN(Number(A.replace("pt","")))&&(A=1.333*Number(A.replace("pt",""))+"px"),(t=f[A])?t:void 0!==(t={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[A])||(t=parseFloat(A))?f[A]=t/16:(t=A.match(/([\d\.]+)(px)/),Array.isArray(t)&&3===t.length?f[A]=parseFloat(t[1])/16:f[A]=1)},c=function(A){var t,e,r,c,l;return l=A,c=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(l,null):l.currentStyle?l.currentStyle:l.style,e=void 0,(t={})["font-family"]=h((r=function(A){return A=A.replace(/-\D/g,(function(A){return A.charAt(1).toUpperCase()})),c[A]})("font-family"))||"times",t["font-style"]=n[r("font-style")]||"normal",t["text-align"]=i[r("text-align")]||"left","bold"===(e=o[r("font-weight")]||"normal")&&("normal"===t["font-style"]?t["font-style"]=e:t["font-style"]=e+t["font-style"]),t["font-size"]=d(r("font-size"))||1,t["line-height"]=d(r("line-height"))||1,t.display="inline"===r("display")?"inline":"block",e="block"===t.display,t["margin-top"]=e&&d(r("margin-top"))||0,t["margin-bottom"]=e&&d(r("margin-bottom"))||0,t["padding-top"]=e&&d(r("padding-top"))||0,t["padding-bottom"]=e&&d(r("padding-bottom"))||0,t["margin-left"]=e&&d(r("margin-left"))||0,t["margin-right"]=e&&d(r("margin-right"))||0,t["padding-left"]=e&&d(r("padding-left"))||0,t["padding-right"]=e&&d(r("padding-right"))||0,t["page-break-before"]=r("page-break-before")||"auto",t.float=s[r("cssFloat")]||"none",t.clear=a[r("clear")]||"none",t.color=r("color"),t},g=function(A,t,e){var r,n,i,o,s;if(i=!1,o=n=void 0,r=e["#"+A.id])if("function"==typeof r)i=r(A,t);else for(n=0,o=r.length;!i&&n!==o;)i=r[n](A,t),n++;if(r=e[A.nodeName],!i&&r)if("function"==typeof r)i=r(A,t);else for(n=0,o=r.length;!i&&n!==o;)i=r[n](A,t),n++;for(s="string"==typeof A.className?A.className.split(" "):[],n=0;n<s.length;n++)if(r=e["."+s[n]],!i&&r)if("function"==typeof r)i=r(A,t);else for(n=0,o=r.length;!i&&n!==o;)i=r[n](A,t),n++;return i},y=function(A,t){var e,r,n,i,o,s,a,c,l;for(e=[],r=[],n=0,l=A.rows[0].cells.length,a=A.clientWidth;n<l;)c=A.rows[0].cells[n],r[n]={name:c.textContent.toLowerCase().replace(/\s+/g,""),prompt:c.textContent.replace(/\r?\n/g,""),width:c.clientWidth/a*t.pdf.internal.pageSize.getWidth()},n++;for(n=1;n<A.rows.length;){for(s=A.rows[n],o={},i=0;i<s.cells.length;)o[r[i].name]=s.cells[i].textContent.replace(/\r?\n/g,""),i++;e.push(o),n++}return{rows:e,headers:r}};var C={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},Q=1;e=function(A,r,n){var i,o,s,a,l,u,h,d;for(o=A.childNodes,i=void 0,(l="block"===(s=c(A)).display)&&(r.setBlockBoundary(),r.setBlockStyle(s)),a=0,u=o.length;a<u;){if("object"===(void 0===(i=o[a])?"undefined":oA(i))){if(r.executeWatchFunctions(i),1===i.nodeType&&"HEADER"===i.nodeName){var f=i,B=r.pdf.margins_doc.top;r.pdf.internal.events.subscribe("addPage",(function(A){r.y=B,e(f,r,n),r.pdf.margins_doc.top=r.y+10,r.y+=10}),!1)}if(8===i.nodeType&&"#comment"===i.nodeName)~i.textContent.indexOf("ADD_PAGE")&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top);else if(1!==i.nodeType||C[i.nodeName])if(3===i.nodeType){var w=i.nodeValue;if(i.nodeValue&&"LI"===i.parentNode.nodeName)if("OL"===i.parentNode.parentNode.nodeName)w=Q+++". "+w;else{var m=s["font-size"],F=(3-.75*m)*r.pdf.internal.scaleFactor,U=.75*m*r.pdf.internal.scaleFactor,v=1.74*m/r.pdf.internal.scaleFactor;d=function(A,t){this.pdf.circle(A+F,t+U,v,"FD")}}16&i.ownerDocument.body.compareDocumentPosition(i)&&r.addText(w,s)}else"string"==typeof i&&r.addText(i,s);else{var b;if("IMG"===i.nodeName){var x=i.getAttribute("src");b=p[r.pdf.sHashCode(x)||x]}if(b){r.pdf.internal.pageSize.getHeight()-r.pdf.margins_doc.bottom<r.y+i.height&&r.y>r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(i));var I=c(i),E=r.x,H=12/r.pdf.internal.scaleFactor,S=(I["margin-left"]+I["padding-left"])*H,k=(I["margin-right"]+I["padding-right"])*H,L=(I["margin-top"]+I["padding-top"])*H,D=(I["margin-bottom"]+I["padding-bottom"])*H;void 0!==I.float&&"right"===I.float?E+=r.settings.width-i.width-k:E+=S,r.pdf.addImage(b,E,r.y+L,i.width,i.height),b=void 0,"right"===I.float||"left"===I.float?(r.watchFunctions.push(function(A,t,e,n){return r.y>=t?(r.x+=A,r.settings.width+=e,!0):!!(n&&1===n.nodeType&&!C[n.nodeName]&&r.x+n.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=A,r.y=t,r.settings.width+=e,!0)}.bind(this,"left"===I.float?-i.width-S-k:0,r.y+i.height+L+D,i.width)),r.watchFunctions.push(function(A,t,e){return!(r.y<A&&t===r.pdf.internal.getNumberOfPages())||1===e.nodeType&&"both"===c(e).clear&&(r.y=A,!0)}.bind(this,r.y+i.height,r.pdf.internal.getNumberOfPages())),r.settings.width-=i.width+S+k,"left"===I.float&&(r.x+=i.width+S+k)):r.y+=i.height+L+D}else if("TABLE"===i.nodeName)h=y(i,r),r.y+=10,r.pdf.table(r.x,r.y,h.rows,h.headers,{autoSize:!1,printHeaders:n.printHeaders,margins:r.pdf.margins_doc,css:c(i)}),r.y=r.pdf.lastCellPos.y+r.pdf.lastCellPos.h+20;else if("OL"===i.nodeName||"UL"===i.nodeName)Q=1,g(i,r,n)||e(i,r,n),r.y+=10;else if("LI"===i.nodeName){var T=r.x;r.x+=20/r.pdf.internal.scaleFactor,r.y+=3,g(i,r,n)||e(i,r,n),r.x=T}else"BR"===i.nodeName?(r.y+=s["font-size"]*r.pdf.internal.scaleFactor,r.addText("\u2028",t(s))):g(i,r,n)||e(i,r,n)}}a++}if(n.outY=r.y,l)return r.setBlockBoundary(d)},p={},B=function(A,t,e,r){var n,i=A.getElementsByTagName("img"),o=i.length,s=0;function a(){t.pdf.internal.events.publish("imagesLoaded"),r(n)}function c(A,e,r){if(A){var i=new Image;n=++s,i.crossOrigin="",i.onerror=i.onload=function(){if(i.complete&&(0===i.src.indexOf("data:image/")&&(i.width=e||i.width||0,i.height=r||i.height||0),i.width+i.height)){var n=t.pdf.sHashCode(A)||A;p[n]=p[n]||i}--s||a()},i.src=A}}for(;o--;)c(i[o].getAttribute("src"),i[o].width,i[o].height);return s||a()},w=function(A,t,r){var n=A.getElementsByTagName("footer");if(0<n.length){n=n[0];var i=t.pdf.internal.write,o=t.y;t.pdf.internal.write=function(){},e(n,t,r);var s=Math.ceil(t.y-o)+5;t.y=o,t.pdf.internal.write=i,t.pdf.margins_doc.bottom+=s;for(var a=function(A){var i=void 0!==A?A.pageNumber:1,o=t.y;t.y=t.pdf.internal.pageSize.getHeight()-t.pdf.margins_doc.bottom,t.pdf.margins_doc.bottom-=s;for(var a=n.getElementsByTagName("span"),c=0;c<a.length;++c)-1<(" "+a[c].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(a[c].innerHTML=i),-1<(" "+a[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(a[c].innerHTML="###jsPDFVarTotalPages###");e(n,t,r),t.pdf.margins_doc.bottom+=s,t.y=o},c=n.getElementsByTagName("span"),l=0;l<c.length;++l)-1<(" "+c[l].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&t.pdf.internal.events.subscribe("htmlRenderingFinished",t.pdf.putTotalPages.bind(t.pdf,"###jsPDFVarTotalPages###"),!0);t.pdf.internal.events.subscribe("addPage",a,!1),a(),C.FOOTER=1}},m=function(A,t,r,n,i,o){if(!t)return!1;var s,a,c,l;"string"==typeof t||t.parentNode||(t=""+t.innerHTML),"string"==typeof t&&(s=t.replace(/<\/?script[^>]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='<iframe style="height:1px;width:1px" name="'+l+'" />',document.body.appendChild(c),(a=window.frames[l]).document.open(),a.document.writeln(s),a.document.close(),t=a.document.body);var h,d=new u(A,r,n,i);return B.call(this,t,d,i.elementHandlers,(function(A){w(t,d,i.elementHandlers),e(t,d,i.elementHandlers),d.pdf.internal.events.publish("htmlRenderingFinished"),h=d.dispose(),"function"==typeof o?o(h):A&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")})),h||{x:d.x,y:d.y}},(u=function(A,t,e,r){return this.pdf=A,this.x=t,this.y=e,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},u.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},u.prototype.executeWatchFunctions=function(A){var t=!1,e=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](A)?t=!0:e.push(this.watchFunctions[r]);this.watchFunctions=e}return t},u.prototype.splitFragmentsIntoLines=function(A,e){var r,n,i,o,s,a,c,l,u,h,d,f,g,p;for(h=this.pdf.internal.scaleFactor,o={},a=c=l=p=s=i=u=n=void 0,f=[d=[]],r=0,g=this.settings.width;A.length;)if(s=A.shift(),p=e.shift(),s)if((i=o[(n=p["font-family"])+(u=p["font-style"])])||(i=this.pdf.internal.getFont(n,u).metadata.Unicode,o[n+u]=i),l={widths:i.widths,kerning:i.kerning,fontSize:12*p["font-size"],textIndent:r},c=this.pdf.getStringUnitWidth(s,l)*l.fontSize/h,"\u2028"==s)d=[],f.push(d);else if(g<r+c){for(a=this.pdf.splitTextToSize(s,g,l),d.push([a.shift(),p]);a.length;)d=[[a.shift(),p]],f.push(d);r=this.pdf.getStringUnitWidth(d[0][0],l)*l.fontSize/h}else d.push([s,p]),r+=c;if(void 0!==p["text-align"]&&("center"===p["text-align"]||"right"===p["text-align"]||"justify"===p["text-align"]))for(var B=0;B<f.length;++B){var w=this.pdf.getStringUnitWidth(f[B][0][0],l)*l.fontSize/h;0<B&&(f[B][0][1]=t(f[B][0][1]));var m=g-w;if("right"===p["text-align"])f[B][0][1]["margin-left"]=m;else if("center"===p["text-align"])f[B][0][1]["margin-left"]=m/2;else if("justify"===p["text-align"]){var y=f[B][0][0].split(" ").length-1;f[B][0][1]["word-spacing"]=m/y,B===f.length-1&&(f[B][0][1]["word-spacing"]=0)}}return f},u.prototype.RenderTextFragment=function(A,t){var e,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(t.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,t["line-height"],t["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),e=this.pdf.internal.getFont(t["font-family"],t["font-style"]);var n=this.getPdfColor(t.color);n!==this.lastTextColor&&(this.pdf.internal.write(n),this.lastTextColor=n),void 0!==t["word-spacing"]&&0<t["word-spacing"]&&this.pdf.internal.write(t["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+e.id,(12*t["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(A)+") Tj"),void 0!==t["word-spacing"]&&this.pdf.internal.write(0,"Tw")},u.prototype.getPdfColor=function(A){var t,e,r,n=new RGBColor(A),i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(A);if(null!=i?(t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3])):("#"!=A.charAt(0)&&(A=n.ok?n.toHex():"#000000"),t=A.substring(1,3),t=parseInt(t,16),e=A.substring(3,5),e=parseInt(e,16),r=A.substring(5,7),r=parseInt(r,16)),"string"==typeof t&&/^#[0-9A-Fa-f]{6}$/.test(t)){var o=parseInt(t.substr(1),16);t=o>>16&255,e=o>>8&255,r=255&o}var s=this.f3;return 0===t&&0===e&&0===r||void 0===e?s(t/255)+" g":[s(t/255),s(e/255),s(r/255),"rg"].join(" ")},u.prototype.f3=function(A){return A.toFixed(3)},u.prototype.renderParagraph=function(A){var t,e,r,n,i,o,s,a,c,u,h,d,f;if(r=l(this.paragraph.text),d=this.paragraph.style,t=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:t},r.join("").trim()){s=this.splitFragmentsIntoLines(r,d),a=o=void 0,e=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,h=(Math.max((t["margin-top"]||0)-this.priorMarginBottom,0)+(t["padding-top"]||0))*e,u=((t["margin-bottom"]||0)+(t["padding-bottom"]||0))*e,this.priorMarginBottom=t["margin-bottom"]||0,"always"===t["page-break-before"]&&(this.pdf.addPage(),this.y=0,h=((t["margin-top"]||0)+(t["padding-top"]||0))*e),c=this.pdf.internal.write,i=n=void 0,this.y+=h,c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var g=0;s.length;){for(n=a=0,i=(o=s.shift()).length;n!==i;)o[n][0].trim()&&(a=Math.max(a,o[n][1]["line-height"],o[n][1]["font-size"]),f=7*o[n][1]["font-size"]),n++;var p=0,B=0;for(void 0!==o[0][1]["margin-left"]&&0<o[0][1]["margin-left"]&&(p=(B=this.pdf.internal.getCoordinateString(o[0][1]["margin-left"]))-g,g=B),c(p+Math.max(t["margin-left"]||0,0)*e,(-12*a).toFixed(2),"Td"),n=0,i=o.length;n!==i;)o[n][0]&&this.RenderTextFragment(o[n][0],o[n][1]),n++;if(this.y+=a*e,this.executeWatchFunctions(o[0][1])&&0<s.length){var w=[],m=[];s.forEach((function(A){for(var t=0,e=A.length;t!==e;)A[t][0]&&(w.push(A[t][0]+" "),m.push(A[t][1])),++t})),s=this.splitFragmentsIntoLines(l(w),m),c("ET","Q"),c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return A&&"function"==typeof A&&A.call(this,this.x-9,this.y-f/2),c("ET","Q"),this.y+=u}},u.prototype.setBlockBoundary=function(A){return this.renderParagraph(A)},u.prototype.setBlockStyle=function(A){return this.paragraph.blockstyle=A},u.prototype.addText=function(A,t){return this.paragraph.text.push(A),this.paragraph.style.push(t)},r={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},o={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},n={normal:"normal",italic:"italic",oblique:"italic"},i={left:"left",right:"right",center:"center",justify:"justify"},s={none:"none",right:"right",left:"left"},a={none:"none",both:"both"},f={normal:1},A.fromHTML=function(A,t,e,r,n,i){return this.margins_doc=i||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),m(this,A,isNaN(t)?4:t,isNaN(e)?4:e,r,n)}}(sA.API),sA.API.addJS=function(A){return Q=A,this.internal.events.subscribe("postPutResources",(function(A){y=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(y+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),C=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Q+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==y&&void 0!==C&&this.internal.out("/Names <</JavaScript "+y+" 0 R>>")})),this},(F=sA.API).events.push(["postPutResources",function(){var A=this,t=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var e=A.outline.render().split(/\r\n/),r=0;r<e.length;r++){var n=e[r],i=t.exec(n);if(null!=i){var o=i[1];A.internal.newObjectDeferredBegin(o)}A.internal.write(n)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,a=[];for(r=0;r<s;r++){var c=A.internal.newObject();a.push(c);var l=A.internal.getPageInfo(r+1);A.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var u=A.internal.newObject();for(A.internal.write("<< /Names [ "),r=0;r<a.length;r++)A.internal.write("(page_"+(r+1)+")"+a[r]+" 0 R");A.internal.write(" ] >>","endobj"),A.internal.newObject(),A.internal.write("<< /Dests "+u+" 0 R"),A.internal.write(">>","endobj")}}]),F.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),F.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(A,t,e){var r={title:t,options:e,children:[]};return null==A&&(A=this.root),A.children.push(r),r},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(t){t.id=A.internal.newObjectDeferred();for(var e=0;e<t.children.length;e++)this.genIds_r(t.children[e])},A.outline.renderRoot=function(A){this.objStart(A),this.line("/Type /Outlines"),0<A.children.length&&(this.line("/First "+this.makeRef(A.children[0])),this.line("/Last "+this.makeRef(A.children[A.children.length-1]))),this.line("/Count "+this.count_r({count:0},A)),this.objEnd()},A.outline.renderItems=function(t){for(var e=0;e<t.children.length;e++){var r=t.children[e];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(t)),0<e&&this.line("/Prev "+this.makeRef(t.children[e-1])),e<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[e+1])),0<r.children.length&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var n=this.count=this.count_r({count:0},r);if(0<n&&this.line("/Count "+n),r.options&&r.options.pageNumber){var i=A.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+i.objId+" 0 R /XYZ 0 "+this.ctx.pdf.internal.pageSize.getHeight()*this.ctx.pdf.internal.scaleFactor+" 0]")}this.objEnd()}for(e=0;e<t.children.length;e++)r=t.children[e],this.renderItems(r)},A.outline.line=function(A){this.ctx.val+=A+"\r\n"},A.outline.makeRef=function(A){return A.id+" 0 R"},A.outline.makeString=function(t){return"("+A.internal.pdfEscape(t)+")"},A.outline.objStart=function(A){this.ctx.val+="\r\n"+A.id+" 0 obj\r\n<<\r\n"},A.outline.objEnd=function(A){this.ctx.val+=">> \r\nendobj\r\n"},A.outline.count_r=function(A,t){for(var e=0;e<t.children.length;e++)A.count++,this.count_r(A,t.children[e]);return A.count}}]),
/**@preserve
   *  ====================================================================
   * jsPDF PNG PlugIn
   * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
   *
   * 
   * ====================================================================
   */
U=sA.API,v=function(){var A="function"==typeof Deflater;if(!A)throw new Error("requires deflate.js for compression");return A},b=function(A,t,e,r){var n=5,i=k;switch(r){case U.image_compression.FAST:n=3,i=S;break;case U.image_compression.MEDIUM:n=6,i=L;break;case U.image_compression.SLOW:n=9,i=D}A=E(A,t,e,i);var o=new Uint8Array(x(n)),s=I(A),a=new Deflater(n),c=a.append(A),l=a.flush(),u=o.length+c.length+l.length,h=new Uint8Array(u+4);return h.set(o),h.set(c,o.length),h.set(l,o.length+c.length),h[u++]=s>>>24&255,h[u++]=s>>>16&255,h[u++]=s>>>8&255,h[u++]=255&s,U.arrayBufferToBinaryString(h)},x=function(A,t){var e=Math.LOG2E*Math.log(32768)-8<<4|8,r=e<<8;return r|=Math.min(3,(t-1&255)>>1)<<6,r|=0,[e,255&(r+=31-r%31)]},I=function(A,t){for(var e,r=1,n=0,i=A.length,o=0;0<i;){for(i-=e=t<i?t:i;n+=r+=A[o++],--e;);r%=65521,n%=65521}return(n<<16|r)>>>0},E=function(A,t,e,r){for(var n,i,o,s=A.length/t,a=new Uint8Array(A.length+s),c=K(),l=0;l<s;l++){if(o=l*t,n=A.subarray(o,o+t),r)a.set(r(n,e,i),o+l);else{for(var u=0,h=c.length,d=[];u<h;u++)d[u]=c[u](n,e,i);var f=O(d.concat());a.set(d[f],o+l)}i=n}return a},H=function(A,t,e){var r=Array.apply([],A);return r.unshift(0),r},S=function(A,t,e){var r,n=[],i=0,o=A.length;for(n[0]=1;i<o;i++)r=A[i-t]||0,n[i+1]=A[i]-r+256&255;return n},k=function(A,t,e){var r,n=[],i=0,o=A.length;for(n[0]=2;i<o;i++)r=e&&e[i]||0,n[i+1]=A[i]-r+256&255;return n},L=function(A,t,e){var r,n,i=[],o=0,s=A.length;for(i[0]=3;o<s;o++)r=A[o-t]||0,n=e&&e[o]||0,i[o+1]=A[o]+256-(r+n>>>1)&255;return i},D=function(A,t,e){var r,n,i,o,s=[],a=0,c=A.length;for(s[0]=4;a<c;a++)r=A[a-t]||0,n=e&&e[a]||0,i=e&&e[a-t]||0,o=T(r,n,i),s[a+1]=A[a]-o+256&255;return s},T=function(A,t,e){var r=A+t-e,n=Math.abs(r-A),i=Math.abs(r-t),o=Math.abs(r-e);return n<=i&&n<=o?A:i<=o?t:e},K=function(){return[H,S,k,L,D]},O=function(A){for(var t,e,r,n=0,i=A.length;n<i;)((t=_(A[n].slice(1)))<e||!e)&&(e=t,r=n),n++;return r},_=function(A){for(var t=0,e=A.length,r=0;t<e;)r+=Math.abs(A[t++]);return r},U.processPNG=function(A,t,e,r,n){var i,o,s,a,c,l,u=this.color_spaces.DEVICE_RGB,h=this.decode.FLATE_DECODE,d=8;if(this.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.isArrayBufferView(A)){if("function"!=typeof PNG||"function"!=typeof HA)throw new Error("PNG support requires png.js and zlib.js");if(A=(i=new PNG(A)).imgData,d=i.bits,u=i.colorSpace,a=i.colors,-1!==[4,6].indexOf(i.colorType)){if(8===i.bits)for(var f,g=(E=32==i.pixelBitlength?new Uint32Array(i.decodePixels().buffer):16==i.pixelBitlength?new Uint16Array(i.decodePixels().buffer):new Uint8Array(i.decodePixels().buffer)).length,p=new Uint8Array(g*i.colors),B=new Uint8Array(g),w=i.pixelBitlength-i.bits,m=0,y=0;m<g;m++){for(C=E[m],f=0;f<w;)p[y++]=C>>>f&255,f+=i.bits;B[m]=C>>>f&255}if(16===i.bits){g=(E=new Uint32Array(i.decodePixels().buffer)).length,p=new Uint8Array(g*(32/i.pixelBitlength)*i.colors),B=new Uint8Array(g*(32/i.pixelBitlength));for(var C,Q=1<i.colors,F=y=m=0;m<g;)C=E[m++],p[y++]=C>>>0&255,Q&&(p[y++]=C>>>16&255,C=E[m++],p[y++]=C>>>0&255),B[F++]=C>>>16&255;d=8}r!==U.image_compression.NONE&&v()?(A=b(p,i.width*i.colors,i.colors,r),l=b(B,i.width,1,r)):(A=p,l=B,h=null)}if(3===i.colorType&&(u=this.color_spaces.INDEXED,c=i.palette,i.transparency.indexed)){var x=i.transparency.indexed,I=0;for(m=0,g=x.length;m<g;++m)I+=x[m];if((I/=255)==g-1&&-1!==x.indexOf(0))s=[x.indexOf(0)];else if(I!==g){var E=i.decodePixels();for(B=new Uint8Array(E.length),m=0,g=E.length;m<g;m++)B[m]=x[E[m]];l=b(B,i.width,1)}}var H=function(A){var t;switch(A){case U.image_compression.FAST:t=11;break;case U.image_compression.MEDIUM:t=13;break;case U.image_compression.SLOW:t=14;break;default:t=12}return t}(r);return o=h===this.decode.FLATE_DECODE?"/Predictor "+H+" /Colors "+a+" /BitsPerComponent "+d+" /Columns "+i.width:"/Colors "+a+" /BitsPerComponent "+d+" /Columns "+i.width,(this.isArrayBuffer(A)||this.isArrayBufferView(A))&&(A=this.arrayBufferToBinaryString(A)),(l&&this.isArrayBuffer(l)||this.isArrayBufferView(l))&&(l=this.arrayBufferToBinaryString(l)),this.createImageInfo(A,i.width,i.height,u,d,h,t,e,o,s,c,l,H)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(M=sA.API).processGIF89A=function(A,t,e,r,n){var i=new vA(A),o=i.width,s=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var c={data:a,width:o,height:s},l=new xA(100).encode(c,100);return M.processJPEG.call(this,l,t,e,r)},M.processGIF87A=M.processGIF89A,(P=sA.API).processBMP=function(A,t,e,r,n){var i=new IA(A,!1),o=i.width,s=i.height,a={data:i.getData(),width:o,height:s},c=new xA(100).encode(a,100);return P.processJPEG.call(this,c,t,e,r)},sA.API.setLanguage=function(A){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[A]&&(this.internal.languageSettings.languageCode=A,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this
/** @preserve
   * jsPDF split_text_to_size plugin - MIT license.
   * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
   *               2014 Diego Casorran, https://github.com/diegocr
   */},R=sA.API,N=R.getCharWidthsArray=function(A,t){var e,r,n,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,c=a.fof?a.fof:1,l=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,h=0,d=a[0]||c,f=[];for(e=0,r=A.length;e<r;e++)n=A.charCodeAt(e),"function"==typeof i.metadata.widthOfString?f.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/o)||0)/1e3):f.push((a[n]||d)/c+(l[n]&&l[n][h]||0)/u),h=n;return f},G=R.getArraySum=function(A){for(var t=A.length,e=0;t;)e+=A[--t];return e},V=R.getStringUnitWidth=function(A,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(A,e,n)/e:G(N.apply(this,arguments))},q=function(A,t,e,r){for(var n=[],i=0,o=A.length,s=0;i!==o&&s+t[i]<e;)s+=t[i],i++;n.push(A.slice(0,i));var a=i;for(s=0;i!==o;)s+t[i]>r&&(n.push(A.slice(a,i)),s=0,a=i),s+=t[i],i++;return a!==i&&n.push(A.slice(a,i)),n},j=function(A,t,e){e||(e={});var r,n,i,o,s,a,c=[],l=[c],u=e.textIndent||0,h=0,d=0,f=A.split(" "),g=N.apply(this,[" ",e])[0];if(a=-1===e.lineIndent?f[0].length+2:e.lineIndent||0){var p=Array(a).join(" "),B=[];f.map((function(A){1<(A=A.split(/\s*\n/)).length?B=B.concat(A.map((function(A,t){return(t&&A.length?"\n":"")+A}))):B.push(A[0])})),f=B,a=V.apply(this,[p,e])}for(i=0,o=f.length;i<o;i++){var w=0;if(r=f[i],a&&"\n"==r[0]&&(r=r.substr(1),w=1),n=N.apply(this,[r,e]),t<u+h+(d=G(n))||w){if(t<d){for(s=q.apply(this,[r,n,t-(u+h),t]),c.push(s.shift()),c=[s.pop()];s.length;)l.push([s.shift()]);d=G(n.slice(r.length-(c[0]?c[0].length:0)))}else c=[r];l.push(c),u=d+a,h=g}else c.push(r),u+=h+d,h=g}if(a)var m=function(A,t){return(t?p:"")+A.join(" ")};else m=function(A){return A.join(" ")};return l.map(m)},R.splitTextToSize=function(A,t,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=function(A){var t={0:1},e={};if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var r=this.internal.getFont(A.fontName,A.fontStyle),n="Unicode";return r.metadata[n]?{widths:r.metadata[n].widths||t,kerning:r.metadata[n].kerning||e}:{font:r.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(A)?A:A.split(/\r?\n/);var o=1*this.internal.scaleFactor*t/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var s,a,c=[];for(s=0,a=r.length;s<a;s++)c=c.concat(j.apply(this,[r[s],o,i]));return c},
/** @preserve 
  jsPDF standard_fonts_metrics plugin
  Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
  MIT license.
  */
X=sA.API,J={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(W=function(A){for(var t="klmnopqrstuvwxyz",e={},r=0;r<t.length;r++)e[t[r]]="0123456789abcdef"[r];var n,i,o,s,a,c={},l=1,u=c,h=[],d="",f="",g=A.length-1;for(r=1;r!=g;)a=A[r],r+=1,"'"==a?i?(s=i.join(""),i=n):i=[]:i?i.push(a):"{"==a?(h.push([u,s]),u={},s=n):"}"==a?((o=h.pop())[0][o[1]]=u,s=n,u=o[0]):"-"==a?l=-1:s===n?e.hasOwnProperty(a)?(d+=e[a],s=parseInt(d,16)*l,l=1,d=""):d+=a:e.hasOwnProperty(a)?(f+=e[a],u[s]=parseInt(f,16)*l,l=1,s=n,f=""):f+=a;return c})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},z={Unicode:{Courier:J,"Courier-Bold":J,"Courier-BoldOblique":J,"Courier-Oblique":J,Helvetica:J,"Helvetica-Bold":J,"Helvetica-BoldOblique":J,"Helvetica-Oblique":J,"Times-Roman":J,"Times-Bold":J,"Times-BoldItalic":J,"Times-Italic":J}},Y={Unicode:{"Courier-Oblique":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":W("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":W("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":W("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:W("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:W("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":W("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:W("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":W("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":W("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":W("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}},X.events.push(["addFont",function(A){var t,e,r,n="Unicode";(t=Y[n][A.postScriptName])&&((e=A.metadata[n]?A.metadata[n]:A.metadata[n]={}).widths=t.widths,e.kerning=t.kerning),(r=z[n][A.postScriptName])&&((e=A.metadata[n]?A.metadata[n]:A.metadata[n]={}).encoding=r).codePages&&r.codePages.length&&(A.encoding=r.codePages[0])}]),Z=sA,"undefined"!=typeof self&&self||"undefined"!=typeof r&&r||"undefined"!=typeof window&&window||Function("return this")(),Z.API.events.push(["addFont",function(A){Z.API.existsFileInVFS(A.postScriptName)?(A.metadata=Z.API.TTFFont.open(A.postScriptName,A.fontName,Z.API.getFileFromVFS(A.postScriptName),A.encoding),A.metadata.Unicode=A.metadata.Unicode||{encoding:{},kerning:{},widths:[]}):14<A.id.slice(1)&&console.error("Font does not exist in FileInVFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').")}]),
/** @preserve
  jsPDF SVG plugin
  Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
  */($=sA.API).addSvg=function(A,t,e,r,n){if(void 0===t||void 0===e)throw new Error("addSVG needs values for 'x' and 'y'");function i(A){for(var t=parseFloat(A[1]),e=parseFloat(A[2]),r=[],n=3,i=A.length;n<i;)"c"===A[n]?(r.push([parseFloat(A[n+1]),parseFloat(A[n+2]),parseFloat(A[n+3]),parseFloat(A[n+4]),parseFloat(A[n+5]),parseFloat(A[n+6])]),n+=7):"l"===A[n]?(r.push([parseFloat(A[n+1]),parseFloat(A[n+2])]),n+=3):n+=1;return[t,e,r]}var o,s,a,c,l,u,h,d,f=(c=document,d=c.createElement("iframe"),l=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(h=(u=c).createElement("style")).type="text/css",h.styleSheet?h.styleSheet.cssText=l:h.appendChild(u.createTextNode(l)),u.getElementsByTagName("head")[0].appendChild(h),d.name="childframe",d.setAttribute("width",0),d.setAttribute("height",0),d.setAttribute("frameborder","0"),d.setAttribute("scrolling","no"),d.setAttribute("seamless","seamless"),d.setAttribute("class","jsPDF_sillysvg_iframe"),c.body.appendChild(d),d),g=(o=A,(a=((s=f).contentWindow||s.contentDocument).document).write(o),a.close(),a.getElementsByTagName("svg")[0]),p=[1,1],B=parseFloat(g.getAttribute("width")),w=parseFloat(g.getAttribute("height"));B&&w&&(r&&n?p=[r/B,n/w]:r?p=[r/B,r/B]:n&&(p=[n/w,n/w]));var m,y,C,Q,F=g.childNodes;for(m=0,y=F.length;m<y;m++)(C=F[m]).tagName&&"PATH"===C.tagName.toUpperCase()&&((Q=i(C.getAttribute("d").split(" ")))[0]=Q[0]*p[0]+t,Q[1]=Q[1]*p[1]+e,this.lines.call(this,Q[2],Q[0],Q[1],p));return this},$.addSVG=$.addSvg,$.addSvgAsImage=function(A,t,e,r,n,i,o,s){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var a=document.createElement("canvas");a.width=r,a.height=n;var c=a.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,a.width,a.height),canvg(a,A,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(a.toDataURL("image/jpeg",1),t,e,r,n,o,s),this},sA.API.putTotalPages=function(A){for(var t=new RegExp(A,"g"),e=1;e<=this.internal.getNumberOfPages();e++)for(var r=0;r<this.internal.pages[e].length;r++)this.internal.pages[e][r]=this.internal.pages[e][r].replace(t,this.internal.getNumberOfPages());return this},sA.API.viewerPreferences=function(A,t){var e;A=A||{},t=t||!1;var r,n,i={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(i),s=[],a=0,c=0,l=0,u=!0;function h(A,t){var e,r=!1;for(e=0;e<A.length;e+=1)A[e]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,"reset"===A||!0===t){var d=o.length;for(l=0;l<d;l+=1)e[o[l]].value=e[o[l]].defaultValue,e[o[l]].explicitSet=!1}if("object"===(void 0===A?"undefined":oA(A)))for(r in A)if(n=A[r],h(o,r)&&void 0!==n){if("boolean"===e[r].type&&"boolean"==typeof n)e[r].value=n;else if("name"===e[r].type&&h(e[r].valueSet,n))e[r].value=n;else if("integer"===e[r].type&&Number.isInteger(n))e[r].value=n;else if("array"===e[r].type){for(a=0;a<n.length;a+=1)if(u=!0,1===n[a].length&&"number"==typeof n[a][0])s.push(String(n[a]));else if(1<n[a].length){for(c=0;c<n[a].length;c+=1)"number"!=typeof n[a][c]&&(u=!1);!0===u&&s.push(String(n[a].join("-")))}e[r].value=String(s)}else e[r].value=e[r].defaultValue;e[r].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var A,t=[];for(A in e)!0===e[A].explicitSet&&("name"===e[A].type?t.push("/"+A+" /"+e[A].value):t.push("/"+A+" "+e[A].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},AA=sA.API,rA=eA=tA="",AA.addMetadata=function(A,t){return eA=t||"http://jspdf.default.namespaceuri/",tA=A,this.internal.events.subscribe("postPutResources",(function(){if(tA){var A='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+eA+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),e=unescape(encodeURIComponent(A)),r=unescape(encodeURIComponent(tA)),n=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=e.length+r.length+n.length+t.length+i.length;rA=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(t+e+r+n+i),this.internal.write("endstream"),this.internal.write("endobj")}else rA=""})),this.internal.events.subscribe("putCatalog",(function(){rA&&this.internal.write("/Metadata "+rA+" 0 R")})),this},function(A,t){var e=A.API,r=[0];e.events.push(["putFont",function(t){!function(t,e,n){if(t.metadata instanceof A.API.TTFFont&&"Identity-H"===t.encoding){for(var i=t.metadata.Unicode.widths,o=t.metadata.subset.encode(r),s="",a=0;a<o.length;a++)s+=String.fromCharCode(o[a]);var c=n();e("<<"),e("/Length "+s.length),e("/Length1 "+s.length),e(">>"),e("stream"),e(s),e("endstream"),e("endobj");var l=n();e("<<"),e("/Type /FontDescriptor"),e("/FontName /"+t.fontName),e("/FontFile2 "+c+" 0 R"),e("/FontBBox "+A.API.PDFObject.convert(t.metadata.bbox)),e("/Flags "+t.metadata.flags),e("/StemV "+t.metadata.stemV),e("/ItalicAngle "+t.metadata.italicAngle),e("/Ascent "+t.metadata.ascender),e("/Descent "+t.metadata.decender),e("/CapHeight "+t.metadata.capHeight),e(">>"),e("endobj");var u=n();e("<<"),e("/Type /Font"),e("/BaseFont /"+t.fontName),e("/FontDescriptor "+l+" 0 R"),e("/W "+A.API.PDFObject.convert(i)),e("/CIDToGIDMap /Identity"),e("/DW 1000"),e("/Subtype /CIDFontType2"),e("/CIDSystemInfo"),e("<<"),e("/Supplement 0"),e("/Registry (Adobe)"),e("/Ordering ("+t.encoding+")"),e(">>"),e(">>"),e("endobj"),t.objectNumber=n(),e("<<"),e("/Type /Font"),e("/Subtype /Type0"),e("/BaseFont /"+t.fontName),e("/Encoding /"+t.encoding),e("/DescendantFonts ["+u+" 0 R]"),e(">>"),e("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject)}]),e.events.push(["putFont",function(t){!function(t,e,r){if(t.metadata instanceof A.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var n=t.metadata.rawData,i="",o=0;o<n.length;o++)i+=String.fromCharCode(n[o]);var s=r();e("<<"),e("/Length "+i.length),e("/Length1 "+i.length),e(">>"),e("stream"),e(i),e("endstream"),e("endobj");var a=r();for(e("<<"),e("/Descent "+t.metadata.decender),e("/CapHeight "+t.metadata.capHeight),e("/StemV "+t.metadata.stemV),e("/Type /FontDescriptor"),e("/FontFile2 "+s+" 0 R"),e("/Flags 96"),e("/FontBBox "+A.API.PDFObject.convert(t.metadata.bbox)),e("/FontName /"+t.fontName),e("/ItalicAngle "+t.metadata.italicAngle),e("/Ascent "+t.metadata.ascender),e(">>"),e("endobj"),t.objectNumber=r(),o=0;o<t.metadata.hmtx.widths.length;o++)t.metadata.hmtx.widths[o]=parseInt(t.metadata.hmtx.widths[o]*(1e3/t.metadata.head.unitsPerEm));e("<</Subtype/TrueType/Type/Font/BaseFont/"+t.fontName+"/FontDescriptor "+a+" 0 R/Encoding/"+t.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(t.metadata.hmtx.widths)+">>"),e("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject)}]);var n=function(A){var t,e,n=A.text||"",i=A.x,o=A.y,s=A.options||{},a=A.mutex||{},c=a.pdfEscape,l=a.activeFontKey,u=a.fonts,h=(a.activeFontSize,""),d=0,f="",g=u[e=l].encoding;if("Identity-H"!==u[e].encoding)return{text:n,x:i,y:o,options:s,mutex:a};for(f=n,e=l,"[object Array]"===Object.prototype.toString.call(n)&&(f=n[0]),d=0;d<f.length;d+=1)u[e].metadata.hasOwnProperty("cmap")&&(t=u[e].metadata.cmap.unicode.codeMap[f[d].charCodeAt(0)]),t||f[d].charCodeAt(0)<256&&u[e].metadata.hasOwnProperty("Unicode")?h+=f[d]:h+="";var p="";return parseInt(e.slice(1))<14||"WinAnsiEncoding"===g?p=function(A){for(var t="",e=0;e<A.length;e++)t+=""+A.charCodeAt(e).toString(16);return t}(c(h,e)):"Identity-H"===g&&(p=function(A,t){for(var e,n=t.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],s=0,a=A.length;s<a;++s){if(e=t.metadata.characterToGlyph(A.charCodeAt(s)),r.push(e),-1==n.indexOf(e)&&(n.push(e),n.push([parseInt(t.metadata.widthOfGlyph(e),10)])),"0"==e)return o.join("");e=e.toString(16),o.push(i[4-e.length],e)}return o.join("")}(h,u[e])),a.isHex=!0,{text:p,x:i,y:o,options:s,mutex:a}};e.events.push(["postProcessText",function(A){var t=A.text||"",e=A.x,r=A.y,i=A.options,o=A.mutex,s=(i.lang,[]),a={text:t,x:e,y:r,options:i,mutex:o};if("[object Array]"===Object.prototype.toString.call(t)){var c=0;for(c=0;c<t.length;c+=1)"[object Array]"===Object.prototype.toString.call(t[c])&&3===t[c].length?s.push([n(Object.assign({},a,{text:t[c][0]})).text,t[c][1],t[c][2]]):s.push(n(Object.assign({},a,{text:t[c]})).text);A.text=s}else A.text=n(Object.assign({},a,{text:t})).text}])}(sA,"undefined"!=typeof self&&self||"undefined"!=typeof r&&r||"undefined"!=typeof window&&window||Function("return this")()),nA=sA.API,iA={},nA.existsFileInVFS=function(A){return iA.hasOwnProperty(A)},nA.addFileToVFS=function(A,t){return iA[A]=t,this},nA.getFileFromVFS=function(A){return iA.hasOwnProperty(A)?iA[A]:null},function(A){if(A.URL=A.URL||A.webkitURL,A.Blob&&A.URL)try{return new Blob}catch(A){}var t=A.BlobBuilder||A.WebKitBlobBuilder||A.MozBlobBuilder||function(A){var t=function(A){return Object.prototype.toString.call(A).match(/^\[object\s(.*)\]$/)[1]},e=function(){this.data=[]},r=function(A,t,e){this.data=A,this.size=A.length,this.type=t,this.encoding=e},n=e.prototype,i=r.prototype,o=A.FileReaderSync,s=function(A){this.code=this[this.name=A]},a="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=a.length,l=A.URL||A.webkitURL||A,u=l.createObjectURL,h=l.revokeObjectURL,d=l,f=A.btoa,g=A.atob,p=A.ArrayBuffer,B=A.Uint8Array,w=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=i.fake=!0;c--;)s.prototype[a[c]]=c+1;return l.createObjectURL||(d=A.URL=function(A){var t,e=document.createElementNS("http://www.w3.org/1999/xhtml","a");return e.href=A,"origin"in e||("data:"===e.protocol.toLowerCase()?e.origin=null:(t=A.match(w),e.origin=t&&t[1])),e}),d.createObjectURL=function(A){var t,e=A.type;return null===e&&(e="application/octet-stream"),A instanceof r?(t="data:"+e,"base64"===A.encoding?t+";base64,"+A.data:"URI"===A.encoding?t+","+decodeURIComponent(A.data):f?t+";base64,"+f(A.data):t+","+encodeURIComponent(A.data)):u?u.call(l,A):void 0},d.revokeObjectURL=function(A){"data:"!==A.substring(0,5)&&h&&h.call(l,A)},n.append=function(A){var e=this.data;if(B&&(A instanceof p||A instanceof B)){for(var n="",i=new B(A),a=0,c=i.length;a<c;a++)n+=String.fromCharCode(i[a]);e.push(n)}else if("Blob"===t(A)||"File"===t(A)){if(!o)throw new s("NOT_READABLE_ERR");var l=new o;e.push(l.readAsBinaryString(A))}else A instanceof r?"base64"===A.encoding&&g?e.push(g(A.data)):"URI"===A.encoding?e.push(decodeURIComponent(A.data)):"raw"===A.encoding&&e.push(A.data):("string"!=typeof A&&(A+=""),e.push(unescape(encodeURIComponent(A))))},n.getBlob=function(A){return arguments.length||(A=null),new r(this.data.join(""),A,"raw")},n.toString=function(){return"[object BlobBuilder]"},i.slice=function(A,t,e){var n=arguments.length;return n<3&&(e=null),new r(this.data.slice(A,1<n?t:this.data.length),e,this.encoding)},i.toString=function(){return"[object Blob]"},i.close=function(){this.size=0,delete this.data},e}(A);A.Blob=function(A,e){var r=e&&e.type||"",n=new t;if(A)for(var i=0,o=A.length;i<o;i++)Uint8Array&&A[i]instanceof Uint8Array?n.append(A[i].buffer):n.append(A[i]);var s=n.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var e=Object.getPrototypeOf||function(A){return A.__proto__};A.Blob.prototype=e(new A.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||window.content||window);var aA,cA,lA,uA,hA,dA,fA,gA,pA,BA,wA,mA,yA,CA,QA,FA,UA=UA||function(A){if(!(void 0===A||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=A.document,e=function(){return A.URL||A.webkitURL||A},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),n="download"in r,i=/constructor/i.test(A.HTMLElement)||A.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(t){(A.setImmediate||A.setTimeout)((function(){throw t}),0)},a=function(A){setTimeout((function(){"string"==typeof A?e().revokeObjectURL(A):A.remove()}),4e4)},c=function(A){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob([String.fromCharCode(65279),A],{type:A.type}):A},l=function(t,l,u){u||(t=c(t));var h,d=this,f="application/octet-stream"===t.type,g=function(){!function(A,t,e){for(var r=(t=[].concat(t)).length;r--;){var n=A["on"+t[r]];if("function"==typeof n)try{n.call(A,e||A)}catch(A){s(A)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,n)return h=e().createObjectURL(t),void setTimeout((function(){var A,t;r.href=h,r.download=l,A=r,t=new MouseEvent("click"),A.dispatchEvent(t),g(),a(h),d.readyState=d.DONE}));!function(){if((o||f&&i)&&A.FileReader){var r=new FileReader;return r.onloadend=function(){var t=o?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");A.open(t,"_blank")||(A.location.href=t),t=void 0,d.readyState=d.DONE,g()},r.readAsDataURL(t),d.readyState=d.INIT}h||(h=e().createObjectURL(t)),f?A.location.href=h:A.open(h,"_blank")||(A.location.href=h),d.readyState=d.DONE,g(),a(h)}()},u=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(A,t,e){return t=t||A.name||"download",e||(A=c(A)),navigator.msSaveOrOpenBlob(A,t)}:(u.abort=function(){},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(A,t,e){return new l(A,t||A.name||"download",e)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||window.content);function vA(A){var t=0;if(71!==A[t++]||73!==A[t++]||70!==A[t++]||56!==A[t++]||56!=(A[t++]+1&253)||97!==A[t++])throw"Invalid GIF 87a/89a header.";var e=A[t++]|A[t++]<<8,r=A[t++]|A[t++]<<8,n=A[t++],i=n>>7,o=1<<1+(7&n);A[t++],A[t++];var s=null;i&&(s=t,t+=3*o);var a=!0,c=[],l=0,u=null,h=0,d=null;for(this.width=e,this.height=r;a&&t<A.length;)switch(A[t++]){case 33:switch(A[t++]){case 255:if(11!==A[t]||78==A[t+1]&&69==A[t+2]&&84==A[t+3]&&83==A[t+4]&&67==A[t+5]&&65==A[t+6]&&80==A[t+7]&&69==A[t+8]&&50==A[t+9]&&46==A[t+10]&&48==A[t+11]&&3==A[t+12]&&1==A[t+13]&&0==A[t+16])t+=14,d=A[t++]|A[t++]<<8,t++;else for(t+=12;;){if(0===(U=A[t++]))break;t+=U}break;case 249:if(4!==A[t++]||0!==A[t+4])throw"Invalid graphics extension block.";var f=A[t++];l=A[t++]|A[t++]<<8,u=A[t++],0==(1&f)&&(u=null),h=f>>2&7,t++;break;case 254:for(;;){if(0===(U=A[t++]))break;t+=U}break;default:throw"Unknown graphic control label: 0x"+A[t-1].toString(16)}break;case 44:var g=A[t++]|A[t++]<<8,p=A[t++]|A[t++]<<8,B=A[t++]|A[t++]<<8,w=A[t++]|A[t++]<<8,m=A[t++],y=m>>6&1,C=s,Q=!1;m>>7&&(Q=!0,C=t,t+=3*(1<<1+(7&m)));var F=t;for(t++;;){var U;if(0===(U=A[t++]))break;t+=U}c.push({x:g,y:p,width:B,height:w,has_local_palette:Q,palette_offset:C,data_offset:F,data_length:t-F,transparent_index:u,interlaced:!!y,delay:l,disposal:h});break;case 59:a=!1;break;default:throw"Unknown gif block: 0x"+A[t-1].toString(16)}this.numFrames=function(){return c.length},this.loopCount=function(){return d},this.frameInfo=function(A){if(A<0||A>=c.length)throw"Frame index out of range.";return c[A]},this.decodeAndBlitFrameBGRA=function(t,r){var n=this.frameInfo(t),i=n.width*n.height,o=new Uint8Array(i);bA(A,n.data_offset,o,i);var s=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var c=n.width,l=e-c,u=c,h=4*(n.y*e+n.x),d=4*((n.y+n.height)*e+n.x),f=h,g=4*l;!0===n.interlaced&&(g+=4*(c+l)*7);for(var p=8,B=0,w=o.length;B<w;++B){var m=o[B];if(0===u&&(u=c,d<=(f+=g)&&(g=l+4*(c+l)*(p-1),f=h+(c+l)*(p<<1),p>>=1)),m===a)f+=4;else{var y=A[s+3*m],C=A[s+3*m+1],Q=A[s+3*m+2];r[f++]=Q,r[f++]=C,r[f++]=y,r[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(t,r){var n=this.frameInfo(t),i=n.width*n.height,o=new Uint8Array(i);bA(A,n.data_offset,o,i);var s=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var c=n.width,l=e-c,u=c,h=4*(n.y*e+n.x),d=4*((n.y+n.height)*e+n.x),f=h,g=4*l;!0===n.interlaced&&(g+=4*(c+l)*7);for(var p=8,B=0,w=o.length;B<w;++B){var m=o[B];if(0===u&&(u=c,d<=(f+=g)&&(g=l+4*(c+l)*(p-1),f=h+(c+l)*(p<<1),p>>=1)),m===a)f+=4;else{var y=A[s+3*m],C=A[s+3*m+1],Q=A[s+3*m+2];r[f++]=y,r[f++]=C,r[f++]=Q,r[f++]=255}--u}}}function bA(A,t,e,r){for(var n=A[t++],i=1<<n,o=i+1,s=o+1,a=n+1,c=(1<<a)-1,l=0,u=0,h=0,d=A[t++],f=new Int32Array(4096),g=null;;){for(;l<16&&0!==d;)u|=A[t++]<<l,l+=8,1===d?d=A[t++]:--d;if(l<a)break;var p=u&c;if(u>>=a,l-=a,p!==i){if(p===o)break;for(var B=p<s?p:g,w=0,m=B;i<m;)m=f[m]>>8,++w;var y=m;if(r<h+w+(B!==p?1:0))return void console.log("Warning, gif stream longer than expected.");e[h++]=y;var C=h+=w;for(B!==p&&(e[h++]=y),m=B;w--;)m=f[m],e[--C]=255&m,m>>=8;null!==g&&s<4096&&(f[s++]=g<<8|y,c+1<=s&&a<12&&(++a,c=c<<1|1)),g=p}else s=o+1,c=(1<<(a=n+1))-1,g=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),e}A.exports?A.exports.saveAs=UA:null!==e("07d6")&&null!==e("3c35")&&(i=function(){return UA}.call(t,e,t,A),void 0!==i&&(A.exports=i)),sA.API.adler32cs=(dA="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,fA=null,gA=function(){if(!dA)return function(){return!1};try{var A={};"function"==typeof A.Buffer&&(fA=A.Buffer)}catch(A){}return function(A){return A instanceof ArrayBuffer||null!==fA&&A instanceof fA}}(),pA=null!==fA?function(A){return new fA(A,"utf8").toString("binary")}:function(A){return unescape(encodeURIComponent(A))},BA=65521,wA=function(A,t){for(var e=65535&A,r=A>>>16,n=0,i=t.length;n<i;n++)e=(e+(255&t.charCodeAt(n)))%BA,r=(r+e)%BA;return(r<<16|e)>>>0},mA=function(A,t){for(var e=65535&A,r=A>>>16,n=0,i=t.length;n<i;n++)e=(e+t[n])%BA,r=(r+e)%BA;return(r<<16|e)>>>0},CA=(yA={}).Adler32=(((hA=(uA=function(A){if(!(this instanceof uA))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(A=null==A?1:+A))throw new Error("First arguments needs to be a finite number.");this.checksum=A>>>0}).prototype={}).constructor=uA).from=((aA=function(A){if(!(this instanceof uA))throw new TypeError("Constructor cannot called be as a function.");if(null==A)throw new Error("First argument needs to be a string.");this.checksum=wA(1,A.toString())}).prototype=hA,aA),uA.fromUtf8=((cA=function(A){if(!(this instanceof uA))throw new TypeError("Constructor cannot called be as a function.");if(null==A)throw new Error("First argument needs to be a string.");var t=pA(A.toString());this.checksum=wA(1,t)}).prototype=hA,cA),dA&&(uA.fromBuffer=((lA=function(A){if(!(this instanceof uA))throw new TypeError("Constructor cannot called be as a function.");if(!gA(A))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(A);return this.checksum=mA(1,t)}).prototype=hA,lA)),hA.update=function(A){if(null==A)throw new Error("First argument needs to be a string.");return A=A.toString(),this.checksum=wA(this.checksum,A)},hA.updateUtf8=function(A){if(null==A)throw new Error("First argument needs to be a string.");var t=pA(A.toString());return this.checksum=wA(this.checksum,t)},dA&&(hA.updateBuffer=function(A){if(!gA(A))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(A);return this.checksum=mA(this.checksum,t)}),hA.clone=function(){return new CA(this.checksum)},uA),yA.from=function(A){if(null==A)throw new Error("First argument needs to be a string.");return wA(1,A.toString())},yA.fromUtf8=function(A){if(null==A)throw new Error("First argument needs to be a string.");var t=pA(A.toString());return wA(1,t)},dA&&(yA.fromBuffer=function(A){if(!gA(A))throw new Error("First argument need to be ArrayBuffer.");var t=new Uint8Array(A);return mA(1,t)}),yA);try{t.GifWriter=function(A,t,e,r){var n=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,o=void 0===r.palette?null:r.palette;if(t<=0||e<=0||65535<t||65535<e)throw"Width/Height invalid.";function s(A){var t=A.length;if(t<2||256<t||t&t-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return t}A[n++]=71,A[n++]=73,A[n++]=70,A[n++]=56,A[n++]=57,A[n++]=97;var a=0,c=0;if(null!==o){for(var l=s(o);l>>=1;)++a;if(l=1<<a,--a,void 0!==r.background){if(l<=(c=r.background))throw"Background index out of range.";if(0===c)throw"Background index explicitly passed as 0."}}if(A[n++]=255&t,A[n++]=t>>8&255,A[n++]=255&e,A[n++]=e>>8&255,A[n++]=(null!==o?128:0)|a,A[n++]=c,A[n++]=0,null!==o)for(var u=0,h=o.length;u<h;++u){var d=o[u];A[n++]=d>>16&255,A[n++]=d>>8&255,A[n++]=255&d}if(null!==i){if(i<0||65535<i)throw"Loop count invalid.";A[n++]=33,A[n++]=255,A[n++]=11,A[n++]=78,A[n++]=69,A[n++]=84,A[n++]=83,A[n++]=67,A[n++]=65,A[n++]=80,A[n++]=69,A[n++]=50,A[n++]=46,A[n++]=48,A[n++]=3,A[n++]=1,A[n++]=255&i,A[n++]=i>>8&255,A[n++]=0}var f=!1;this.addFrame=function(t,e,r,i,a,c){if(!0===f&&(--n,f=!1),c=void 0===c?{}:c,t<0||e<0||65535<t||65535<e)throw"x/y invalid.";if(r<=0||i<=0||65535<r||65535<i)throw"Width/Height invalid.";if(a.length<r*i)throw"Not enough pixels for the frame size.";var l=!0,u=c.palette;if(null==u&&(l=!1,u=o),null==u)throw"Must supply either a local or global palette.";for(var h=s(u),d=0;h>>=1;)++d;h=1<<d;var g=void 0===c.delay?0:c.delay,p=void 0===c.disposal?0:c.disposal;if(p<0||3<p)throw"Disposal out of range.";var B=!1,w=0;if(void 0!==c.transparent&&null!==c.transparent&&(B=!0,(w=c.transparent)<0||h<=w))throw"Transparent color index.";if((0!==p||B||0!==g)&&(A[n++]=33,A[n++]=249,A[n++]=4,A[n++]=p<<2|(!0===B?1:0),A[n++]=255&g,A[n++]=g>>8&255,A[n++]=w,A[n++]=0),A[n++]=44,A[n++]=255&t,A[n++]=t>>8&255,A[n++]=255&e,A[n++]=e>>8&255,A[n++]=255&r,A[n++]=r>>8&255,A[n++]=255&i,A[n++]=i>>8&255,A[n++]=!0===l?128|d-1:0,!0===l)for(var m=0,y=u.length;m<y;++m){var C=u[m];A[n++]=C>>16&255,A[n++]=C>>8&255,A[n++]=255&C}n=function(A,t,e,r){A[t++]=e;var n=t++,i=1<<e,o=i-1,s=i+1,a=s+1,c=e+1,l=0,u=0;function h(e){for(;e<=l;)A[t++]=255&u,u>>=8,l-=8,t===n+256&&(A[n]=255,n=t++)}function d(A){u|=A<<l,l+=c,h(8)}var f=r[0]&o,g={};d(i);for(var p=1,B=r.length;p<B;++p){var w=r[p]&o,m=f<<8|w,y=g[m];if(void 0===y){for(u|=f<<l,l+=c;8<=l;)A[t++]=255&u,u>>=8,l-=8,t===n+256&&(A[n]=255,n=t++);4096===a?(d(i),a=s+1,c=e+1,g={}):(1<<c<=a&&++c,g[m]=a++),f=w}else f=y}return d(f),d(s),h(1),n+1===t?A[n]=0:(A[n]=t-n-1,A[t++]=0),t}(A,n,d<2?2:d,a)},this.end=function(){return!1===f&&(A[n++]=59,f=!0),n}},t.GifReader=vA}catch(s){}function xA(A){var t,e,r,n,i,o=Math.floor,s=new Array(64),a=new Array(64),c=new Array(64),l=new Array(64),u=new Array(65535),h=new Array(65535),d=new Array(64),f=new Array(64),g=[],p=0,B=7,w=new Array(64),m=new Array(64),y=new Array(64),C=new Array(256),Q=new Array(2048),F=[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],U=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],v=[0,1,2,3,4,5,6,7,8,9,10,11],b=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[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],I=[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],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],S=[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 k(A,t){for(var e=0,r=0,n=new Array,i=1;i<=16;i++){for(var o=1;o<=A[i];o++)n[t[r]]=[],n[t[r]][0]=e,n[t[r]][1]=i,r++,e++;e*=2}return n}function L(A){for(var t=A[0],e=A[1]-1;0<=e;)t&1<<e&&(p|=1<<B),e--,--B<0&&(255==p?(D(255),D(0)):D(p),B=7,p=0)}function D(A){g.push(A)}function T(A){D(A>>8&255),D(255&A)}function K(A,t,e,r,n){for(var i,o=n[0],s=n[240],a=function(A,t){var e,r,n,i,o,s,a,c,l,u,h=0;for(l=0;l<8;++l){e=A[h],r=A[h+1],n=A[h+2],i=A[h+3],o=A[h+4],s=A[h+5],a=A[h+6];var f=e+(c=A[h+7]),g=e-c,p=r+a,B=r-a,w=n+s,m=n-s,y=i+o,C=i-o,Q=f+y,F=f-y,U=p+w,v=p-w;A[h]=Q+U,A[h+4]=Q-U;var b=.707106781*(v+F);A[h+2]=F+b,A[h+6]=F-b;var x=.382683433*((Q=C+m)-(v=B+g)),I=.5411961*Q+x,E=1.306562965*v+x,H=.707106781*(U=m+B),S=g+H,k=g-H;A[h+5]=k+I,A[h+3]=k-I,A[h+1]=S+E,A[h+7]=S-E,h+=8}for(l=h=0;l<8;++l){e=A[h],r=A[h+8],n=A[h+16],i=A[h+24],o=A[h+32],s=A[h+40],a=A[h+48];var L=e+(c=A[h+56]),D=e-c,T=r+a,K=r-a,O=n+s,_=n-s,M=i+o,P=i-o,R=L+M,N=L-M,G=T+O,V=T-O;A[h]=R+G,A[h+32]=R-G;var q=.707106781*(V+N);A[h+16]=N+q,A[h+48]=N-q;var j=.382683433*((R=P+_)-(V=K+D)),X=.5411961*R+j,W=1.306562965*V+j,J=.707106781*(G=_+K),z=D+J,Y=D-J;A[h+40]=Y+X,A[h+24]=Y-X,A[h+8]=z+W,A[h+56]=z-W,h++}for(l=0;l<64;++l)u=A[l]*t[l],d[l]=0<u?u+.5|0:u-.5|0;return d}(A,t),c=0;c<64;++c)f[F[c]]=a[c];var l=f[0]-e;e=f[0],0==l?L(r[0]):(L(r[h[i=32767+l]]),L(u[i]));for(var g=63;0<g&&0==f[g];g--);if(0==g)return L(o),e;for(var p,B=1;B<=g;){for(var w=B;0==f[B]&&B<=g;++B);var m=B-w;if(16<=m){p=m>>4;for(var y=1;y<=p;++y)L(s);m&=15}i=32767+f[B],L(n[(m<<4)+h[i]]),L(u[i]),B++}return 63!=g&&L(o),e}function O(A){A<=0&&(A=1),100<A&&(A=100),i!=A&&(function(A){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],e=0;e<64;e++){var r=o((t[e]*A+50)/100);r<1?r=1:255<r&&(r=255),s[F[e]]=r}for(var n=[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],i=0;i<64;i++){var u=o((n[i]*A+50)/100);u<1?u=1:255<u&&(u=255),a[F[i]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,f=0;f<8;f++)for(var g=0;g<8;g++)c[d]=1/(s[F[d]]*h[f]*h[g]*8),l[d]=1/(a[F[d]]*h[f]*h[g]*8),d++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),i=A)}this.encode=function(A,i){var o,u;(new Date).getTime(),i&&O(i),g=new Array,p=0,B=7,T(65496),T(65504),T(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),T(1),T(1),D(0),D(0),function(){T(65499),T(132),D(0);for(var A=0;A<64;A++)D(s[A]);D(1);for(var t=0;t<64;t++)D(a[t])}(),o=A.width,u=A.height,T(65472),T(17),D(8),T(u),T(o),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1),function(){T(65476),T(418),D(0);for(var A=0;A<16;A++)D(U[A+1]);for(var t=0;t<=11;t++)D(v[t]);D(16);for(var e=0;e<16;e++)D(b[e+1]);for(var r=0;r<=161;r++)D(x[r]);D(1);for(var n=0;n<16;n++)D(I[n+1]);for(var i=0;i<=11;i++)D(E[i]);D(17);for(var o=0;o<16;o++)D(H[o+1]);for(var s=0;s<=161;s++)D(S[s])}(),T(65498),T(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var h=0,d=0,f=0;p=0,B=7,this.encode.displayName="_encode_";for(var C,F,k,_,M,P,R,N,G,V=A.data,q=A.width,j=A.height,X=4*q,W=0;W<j;){for(C=0;C<X;){for(P=M=X*W+C,R=-1,G=N=0;G<64;G++)P=M+(N=G>>3)*X+(R=4*(7&G)),j<=W+N&&(P-=X*(W+1+N-j)),X<=C+R&&(P-=C+R-X+4),F=V[P++],k=V[P++],_=V[P++],w[G]=(Q[F]+Q[k+256>>0]+Q[_+512>>0]>>16)-128,m[G]=(Q[F+768>>0]+Q[k+1024>>0]+Q[_+1280>>0]>>16)-128,y[G]=(Q[F+1280>>0]+Q[k+1536>>0]+Q[_+1792>>0]>>16)-128;h=K(w,c,h,t,r),d=K(m,l,d,e,n),f=K(y,l,f,e,n),C+=32}W+=8}if(0<=B){var J=[];J[1]=B+1,J[0]=(1<<B+1)-1,L(J)}return T(65497),new Uint8Array(g)},function(){(new Date).getTime(),A||(A=50),function(){for(var A=String.fromCharCode,t=0;t<256;t++)C[t]=A(t)}(),t=k(U,v),e=k(I,E),r=k(b,x),n=k(H,S),function(){for(var A=1,t=2,e=1;e<=15;e++){for(var r=A;r<t;r++)h[32767+r]=e,u[32767+r]=[],u[32767+r][1]=e,u[32767+r][0]=r;for(var n=-(t-1);n<=-A;n++)h[32767+n]=e,u[32767+n]=[],u[32767+n][1]=e,u[32767+n][0]=t-1+n;A<<=1,t<<=1}}(),function(){for(var A=0;A<256;A++)Q[A]=19595*A,Q[A+256>>0]=38470*A,Q[A+512>>0]=7471*A+32768,Q[A+768>>0]=-11059*A,Q[A+1024>>0]=-21709*A,Q[A+1280>>0]=32768*A+8421375,Q[A+1536>>0]=-27439*A,Q[A+1792>>0]=-5329*A}(),O(A),(new Date).getTime()}()}try{A.exports=xA}catch(s){}function IA(A,t){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.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()}IA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},IA.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[A]()}catch(A){console.log("bit decode error:"+A)}},IA.prototype.bit1=function(){var A=Math.ceil(this.width/8),t=A%4,e=0<=this.height?this.height-1:-this.height;for(e=this.height-1;0<=e;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var a=this.palette[i>>7-s&1];this.data[o+4*s]=a.blue,this.data[o+4*s+1]=a.green,this.data[o+4*s+2]=a.red,this.data[o+4*s+3]=255}0!=t&&(this.pos+=4-t)}},IA.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;0<=e;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*n*4,s=i>>4,a=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*n+1>=this.width)break;c=this.palette[a],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!=t&&(this.pos+=4-t)}},IA.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var o=this.palette[n];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!=A&&(this.pos+=4-A)}},IA.prototype.bit15=function(){for(var A=this.width%3,t=parseInt("11111",2),e=this.height-1;0<=e;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,a=(i>>10&t)/t*255|0,c=i>>15?255:0,l=r*this.width*4+4*n;this.data[l]=a,this.data[l+1]=s,this.data[l+2]=o,this.data[l+3]=c}this.pos+=A}},IA.prototype.bit16=function(){for(var A=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&e)/e*255|0,c=(o>>11)/t*255|0,l=n*this.width*4+4*i;this.data[l]=c,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=255}this.pos+=A}},IA.prototype.bit24=function(){for(var A=this.height-1;0<=A;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*e;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},IA.prototype.bit32=function(){for(var A=this.height-1;0<=A;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=o}},IA.prototype.getData=function(){return this.data};try{A.exports=function(A){var t=new IA(A);return{data:t.getData(),width:t.width,height:t.height}}}catch(s){}!function(A){var t=15,e=573,r=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function n(){var A=this;function r(A,t){for(var e=0;e|=1&A,A>>>=1,e<<=1,0<--t;);return e>>>1}A.build_tree=function(n){var i,o,s,a=A.dyn_tree,c=A.stat_desc.static_tree,l=A.stat_desc.elems,u=-1;for(n.heap_len=0,n.heap_max=e,i=0;i<l;i++)0!==a[2*i]?(n.heap[++n.heap_len]=u=i,n.depth[i]=0):a[2*i+1]=0;for(;n.heap_len<2;)a[2*(s=n.heap[++n.heap_len]=u<2?++u:0)]=1,n.depth[s]=0,n.opt_len--,c&&(n.static_len-=c[2*s+1]);for(A.max_code=u,i=Math.floor(n.heap_len/2);1<=i;i--)n.pqdownheap(a,i);for(s=l;i=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(a,1),o=n.heap[1],n.heap[--n.heap_max]=i,n.heap[--n.heap_max]=o,a[2*s]=a[2*i]+a[2*o],n.depth[s]=Math.max(n.depth[i],n.depth[o])+1,a[2*i+1]=a[2*o+1]=s,n.heap[1]=s++,n.pqdownheap(a,1),2<=n.heap_len;);n.heap[--n.heap_max]=n.heap[1],function(r){var n,i,o,s,a,c,l=A.dyn_tree,u=A.stat_desc.static_tree,h=A.stat_desc.extra_bits,d=A.stat_desc.extra_base,f=A.stat_desc.max_length,g=0;for(s=0;s<=t;s++)r.bl_count[s]=0;for(l[2*r.heap[r.heap_max]+1]=0,n=r.heap_max+1;n<e;n++)f<(s=l[2*l[2*(i=r.heap[n])+1]+1]+1)&&(s=f,g++),l[2*i+1]=s,i>A.max_code||(r.bl_count[s]++,a=0,d<=i&&(a=h[i-d]),c=l[2*i],r.opt_len+=c*(s+a),u&&(r.static_len+=c*(u[2*i+1]+a)));if(0!==g){do{for(s=f-1;0===r.bl_count[s];)s--;r.bl_count[s]--,r.bl_count[s+1]+=2,r.bl_count[f]--,g-=2}while(0<g);for(s=f;0!==s;s--)for(i=r.bl_count[s];0!==i;)(o=r.heap[--n])>A.max_code||(l[2*o+1]!=s&&(r.opt_len+=(s-l[2*o+1])*l[2*o],l[2*o+1]=s),i--)}}(n),function(A,e,n){var i,o,s,a=[],c=0;for(i=1;i<=t;i++)a[i]=c=c+n[i-1]<<1;for(o=0;o<=e;o++)0!==(s=A[2*o+1])&&(A[2*o]=r(a[s]++,s))}(a,A.max_code,n.bl_count)}}function i(A,t,e,r,n){var i=this;i.static_tree=A,i.extra_bits=t,i.extra_base=e,i.elems=r,i.max_length=n}function o(A,t,e,r,n){var i=this;i.good_length=A,i.max_lazy=t,i.nice_length=e,i.max_chain=r,i.func=n}n._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],n.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],n.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],n.d_code=function(A){return A<256?r[A]:r[256+(A>>>7)]},n.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],n.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],n.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],n.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],i.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],i.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],i.static_l_desc=new i(i.static_ltree,n.extra_lbits,257,286,t),i.static_d_desc=new i(i.static_dtree,n.extra_dbits,0,30,t),i.static_bl_desc=new i(null,n.extra_blbits,0,19,7);var s=[new o(0,0,0,0,0),new o(4,4,8,4,1),new o(4,5,16,8,1),new o(4,6,32,32,1),new o(4,4,16,16,2),new o(8,16,32,32,2),new o(8,16,128,128,2),new o(8,32,128,256,2),new o(32,128,258,1024,2),new o(32,258,258,4096,2)],a=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],c=262;function l(A,t,e,r){var n=A[2*t],i=A[2*e];return n<i||n==i&&r[t]<=r[e]}function u(){var A,t,e,r,o,u,h,d,f,g,p,B,w,m,y,C,Q,F,U,v,b,x,I,E,H,S,k,L,D,T,K,O,_,M,P,R,N,G,V,q,j,X=this,W=new n,J=new n,z=new n;function Y(){var A;for(A=0;A<286;A++)K[2*A]=0;for(A=0;A<30;A++)O[2*A]=0;for(A=0;A<19;A++)_[2*A]=0;K[512]=1,X.opt_len=X.static_len=0,R=G=0}function Z(A,t){var e,r,n=-1,i=A[1],o=0,s=7,a=4;for(0===i&&(s=138,a=3),A[2*(t+1)+1]=65535,e=0;e<=t;e++)r=i,i=A[2*(e+1)+1],++o<s&&r==i||(o<a?_[2*r]+=o:0!==r?(r!=n&&_[2*r]++,_[32]++):o<=10?_[34]++:_[36]++,n=r,(o=0)===i?(s=138,a=3):r==i?(s=6,a=3):(s=7,a=4))}function $(A){X.pending_buf[X.pending++]=A}function AA(A){$(255&A),$(A>>>8&255)}function tA(A,t){var e,r=t;16-r<j?(AA(q|=(e=A)<<j&65535),q=e>>>16-j,j+=r-16):(q|=A<<j&65535,j+=r)}function eA(A,t){var e=2*A;tA(65535&t[e],65535&t[e+1])}function rA(A,t){var e,r,n=-1,i=A[1],o=0,s=7,a=4;for(0===i&&(s=138,a=3),e=0;e<=t;e++)if(r=i,i=A[2*(e+1)+1],!(++o<s&&r==i)){if(o<a)for(;eA(r,_),0!=--o;);else 0!==r?(r!=n&&(eA(r,_),o--),eA(16,_),tA(o-3,2)):o<=10?(eA(17,_),tA(o-3,3)):(eA(18,_),tA(o-11,7));n=r,(o=0)===i?(s=138,a=3):r==i?(s=6,a=3):(s=7,a=4)}}function nA(){16==j?(AA(q),j=q=0):8<=j&&($(255&q),q>>>=8,j-=8)}function iA(A,t){var e,r,i;if(X.pending_buf[N+2*R]=A>>>8&255,X.pending_buf[N+2*R+1]=255&A,X.pending_buf[M+R]=255&t,R++,0===A?K[2*t]++:(G++,A--,K[2*(n._length_code[t]+256+1)]++,O[2*n.d_code(A)]++),0==(8191&R)&&2<k){for(e=8*R,r=b-Q,i=0;i<30;i++)e+=O[2*i]*(5+n.extra_dbits[i]);if(e>>>=3,G<Math.floor(R/2)&&e<Math.floor(r/2))return!0}return R==P-1}function oA(A,t){var e,r,i,o,s=0;if(0!==R)for(;e=X.pending_buf[N+2*s]<<8&65280|255&X.pending_buf[N+2*s+1],r=255&X.pending_buf[M+s],s++,0===e?eA(r,A):(eA((i=n._length_code[r])+256+1,A),0!==(o=n.extra_lbits[i])&&tA(r-=n.base_length[i],o),eA(i=n.d_code(--e),t),0!==(o=n.extra_dbits[i])&&tA(e-=n.base_dist[i],o)),s<R;);eA(256,A),V=A[513]}function sA(){8<j?AA(q):0<j&&$(255&q),j=q=0}function aA(A,t,e){var r,n,i;tA(0+(e?1:0),3),r=A,n=t,i=!0,sA(),V=8,i&&(AA(n),AA(~n)),X.pending_buf.set(d.subarray(r,r+n),X.pending),X.pending+=n}function cA(A,t,e){var r,o,s=0;0<k?(W.build_tree(X),J.build_tree(X),s=function(){var A;for(Z(K,W.max_code),Z(O,J.max_code),z.build_tree(X),A=18;3<=A&&0===_[2*n.bl_order[A]+1];A--);return X.opt_len+=3*(A+1)+5+5+4,A}(),r=X.opt_len+3+7>>>3,(o=X.static_len+3+7>>>3)<=r&&(r=o)):r=o=t+5,t+4<=r&&-1!=A?aA(A,t,e):o==r?(tA(2+(e?1:0),3),oA(i.static_ltree,i.static_dtree)):(tA(4+(e?1:0),3),function(A,t,e){var r;for(tA(A-257,5),tA(t-1,5),tA(e-4,4),r=0;r<e;r++)tA(_[2*n.bl_order[r]+1],3);rA(K,A-1),rA(O,t-1)}(W.max_code+1,J.max_code+1,s+1),oA(K,O)),Y(),e&&sA()}function lA(t){cA(0<=Q?Q:-1,b-Q,t),Q=b,A.flush_pending()}function uA(){var t,e,r,n;do{if(0===(n=f-I-b)&&0===b&&0===I)n=o;else if(-1==n)n--;else if(o+o-c<=b){for(d.set(d.subarray(o,o+o),0),x-=o,b-=o,Q-=o,r=t=w;e=65535&p[--r],p[r]=o<=e?e-o:0,0!=--t;);for(r=t=o;e=65535&g[--r],g[r]=o<=e?e-o:0,0!=--t;);n+=o}if(0===A.avail_in)return;t=A.read_buf(d,b+I,n),3<=(I+=t)&&(B=((B=255&d[b])<<C^255&d[b+1])&y)}while(I<c&&0!==A.avail_in)}function hA(A){var t,e,r=H,n=b,i=E,s=o-c<b?b-(o-c):0,a=T,l=h,u=b+258,f=d[n+i-1],p=d[n+i];D<=E&&(r>>=2),I<a&&(a=I);do{if(d[(t=A)+i]==p&&d[t+i-1]==f&&d[t]==d[n]&&d[++t]==d[n+1]){n+=2,t++;do{}while(d[++n]==d[++t]&&d[++n]==d[++t]&&d[++n]==d[++t]&&d[++n]==d[++t]&&d[++n]==d[++t]&&d[++n]==d[++t]&&d[++n]==d[++t]&&d[++n]==d[++t]&&n<u);if(e=258-(u-n),n=u-258,i<e){if(x=A,a<=(i=e))break;f=d[n+i-1],p=d[n+i]}}}while((A=65535&g[A&l])>s&&0!=--r);return i<=I?i:I}function dA(A){return A.total_in=A.total_out=0,A.msg=null,X.pending=0,X.pending_out=0,t=113,r=0,W.dyn_tree=K,W.stat_desc=i.static_l_desc,J.dyn_tree=O,J.stat_desc=i.static_d_desc,z.dyn_tree=_,z.stat_desc=i.static_bl_desc,j=q=0,V=8,Y(),function(){var A;for(f=2*o,A=p[w-1]=0;A<w-1;A++)p[A]=0;S=s[k].max_lazy,D=s[k].good_length,T=s[k].nice_length,H=s[k].max_chain,F=E=2,B=v=I=Q=b=0}(),0}X.depth=[],X.bl_count=[],X.heap=[],K=[],O=[],_=[],X.pqdownheap=function(A,t){for(var e=X.heap,r=e[t],n=t<<1;n<=X.heap_len&&(n<X.heap_len&&l(A,e[n+1],e[n],X.depth)&&n++,!l(A,r,e[n],X.depth));)e[t]=e[n],t=n,n<<=1;e[t]=r},X.deflateInit=function(A,t,r,n,i,s){return n||(n=8),i||(i=8),s||(s=0),A.msg=null,-1==t&&(t=6),i<1||9<i||8!=n||r<9||15<r||t<0||9<t||s<0||2<s?-2:(A.dstate=X,h=(o=1<<(u=r))-1,y=(w=1<<(m=i+7))-1,C=Math.floor((m+3-1)/3),d=new Uint8Array(2*o),g=[],p=[],P=1<<i+6,X.pending_buf=new Uint8Array(4*P),e=4*P,N=Math.floor(P/2),M=3*P,k=t,L=s,dA(A))},X.deflateEnd=function(){return 42!=t&&113!=t&&666!=t?-2:(X.pending_buf=null,d=g=p=null,X.dstate=null,113==t?-3:0)},X.deflateParams=function(A,t,e){var r=0;return-1==t&&(t=6),t<0||9<t||e<0||2<e?-2:(s[k].func!=s[t].func&&0!==A.total_in&&(r=A.deflate(1)),k!=t&&(S=s[k=t].max_lazy,D=s[k].good_length,T=s[k].nice_length,H=s[k].max_chain),L=e,r)},X.deflateSetDictionary=function(A,e,r){var n,i=r,s=0;if(!e||42!=t)return-2;if(i<3)return 0;for(o-c<i&&(s=r-(i=o-c)),d.set(e.subarray(s,s+i),0),Q=b=i,B=((B=255&d[0])<<C^255&d[1])&y,n=0;n<=i-3;n++)B=(B<<C^255&d[n+2])&y,g[n&h]=p[B],p[B]=n;return 0},X.deflate=function(n,l){var f,m,H,D,T,K;if(4<l||l<0)return-2;if(!n.next_out||!n.next_in&&0!==n.avail_in||666==t&&4!=l)return n.msg=a[4],-2;if(0===n.avail_out)return n.msg=a[7],-5;if(A=n,D=r,r=l,42==t&&(m=8+(u-8<<4)<<8,3<(H=(k-1&255)>>1)&&(H=3),m|=H<<6,0!==b&&(m|=32),t=113,$((K=m+=31-m%31)>>8&255),$(255&K)),0!==X.pending){if(A.flush_pending(),0===A.avail_out)return r=-1,0}else if(0===A.avail_in&&l<=D&&4!=l)return A.msg=a[7],-5;if(666==t&&0!==A.avail_in)return n.msg=a[7],-5;if(0!==A.avail_in||0!==I||0!=l&&666!=t){switch(T=-1,s[k].func){case 0:T=function(t){var r,n=65535;for(e-5<n&&(n=e-5);;){if(I<=1){if(uA(),0===I&&0==t)return 0;if(0===I)break}if(b+=I,r=Q+n,((I=0)===b||r<=b)&&(I=b-r,b=r,lA(!1),0===A.avail_out))return 0;if(o-c<=b-Q&&(lA(!1),0===A.avail_out))return 0}return lA(4==t),0===A.avail_out?4==t?2:0:4==t?3:1}(l);break;case 1:T=function(t){for(var e,r=0;;){if(I<c){if(uA(),I<c&&0==t)return 0;if(0===I)break}if(3<=I&&(B=(B<<C^255&d[b+2])&y,r=65535&p[B],g[b&h]=p[B],p[B]=b),0!==r&&(b-r&65535)<=o-c&&2!=L&&(F=hA(r)),3<=F)if(e=iA(b-x,F-3),I-=F,F<=S&&3<=I){for(F--;B=(B<<C^255&d[2+ ++b])&y,r=65535&p[B],g[b&h]=p[B],p[B]=b,0!=--F;);b++}else b+=F,F=0,B=((B=255&d[b])<<C^255&d[b+1])&y;else e=iA(0,255&d[b]),I--,b++;if(e&&(lA(!1),0===A.avail_out))return 0}return lA(4==t),0===A.avail_out?4==t?2:0:4==t?3:1}(l);break;case 2:T=function(t){for(var e,r,n=0;;){if(I<c){if(uA(),I<c&&0==t)return 0;if(0===I)break}if(3<=I&&(B=(B<<C^255&d[b+2])&y,n=65535&p[B],g[b&h]=p[B],p[B]=b),E=F,U=x,F=2,0!==n&&E<S&&(b-n&65535)<=o-c&&(2!=L&&(F=hA(n)),F<=5&&(1==L||3==F&&4096<b-x)&&(F=2)),3<=E&&F<=E){for(r=b+I-3,e=iA(b-1-U,E-3),I-=E-1,E-=2;++b<=r&&(B=(B<<C^255&d[b+2])&y,n=65535&p[B],g[b&h]=p[B],p[B]=b),0!=--E;);if(v=0,F=2,b++,e&&(lA(!1),0===A.avail_out))return 0}else if(0!==v){if((e=iA(0,255&d[b-1]))&&lA(!1),b++,I--,0===A.avail_out)return 0}else v=1,b++,I--}return 0!==v&&(e=iA(0,255&d[b-1]),v=0),lA(4==t),0===A.avail_out?4==t?2:0:4==t?3:1}(l)}if(2!=T&&3!=T||(t=666),0==T||2==T)return 0===A.avail_out&&(r=-1),0;if(1==T){if(1==l)tA(2,3),eA(256,i.static_ltree),nA(),1+V+10-j<9&&(tA(2,3),eA(256,i.static_ltree),nA()),V=7;else if(aA(0,0,!1),3==l)for(f=0;f<w;f++)p[f]=0;if(A.flush_pending(),0===A.avail_out)return r=-1,0}}return 4!=l?0:1}}function h(){var A=this;A.next_in_index=0,A.next_out_index=0,A.avail_in=0,A.total_in=0,A.avail_out=0,A.total_out=0}h.prototype={deflateInit:function(A,e){return this.dstate=new u,e||(e=t),this.dstate.deflateInit(this,A,e)},deflate:function(A){return this.dstate?this.dstate.deflate(this,A):-2},deflateEnd:function(){if(!this.dstate)return-2;var A=this.dstate.deflateEnd();return this.dstate=null,A},deflateParams:function(A,t){return this.dstate?this.dstate.deflateParams(this,A,t):-2},deflateSetDictionary:function(A,t){return this.dstate?this.dstate.deflateSetDictionary(this,A,t):-2},read_buf:function(A,t,e){var r=this,n=r.avail_in;return e<n&&(n=e),0===n?0:(r.avail_in-=n,A.set(r.next_in.subarray(r.next_in_index,r.next_in_index+n),t),r.next_in_index+=n,r.total_in+=n,n)},flush_pending:function(){var A=this,t=A.dstate.pending;t>A.avail_out&&(t=A.avail_out),0!==t&&(A.next_out.set(A.dstate.pending_buf.subarray(A.dstate.pending_out,A.dstate.pending_out+t),A.next_out_index),A.next_out_index+=t,A.dstate.pending_out+=t,A.total_out+=t,A.avail_out-=t,A.dstate.pending-=t,0===A.dstate.pending&&(A.dstate.pending_out=0))}};var d=A.zip||A;d.Deflater=d._jzlib_Deflater=function(A){var t=new h,e=new Uint8Array(512),r=A?A.level:-1;void 0===r&&(r=-1),t.deflateInit(r),t.next_out=e,this.append=function(A,r){var n,i=[],o=0,s=0,a=0;if(A.length){t.next_in_index=0,t.next_in=A,t.avail_in=A.length;do{if(t.next_out_index=0,t.avail_out=512,0!=t.deflate(0))throw new Error("deflating: "+t.msg);t.next_out_index&&(512==t.next_out_index?i.push(new Uint8Array(e)):i.push(new Uint8Array(e.subarray(0,t.next_out_index)))),a+=t.next_out_index,r&&0<t.next_in_index&&t.next_in_index!=o&&(r(t.next_in_index),o=t.next_in_index)}while(0<t.avail_in||0===t.avail_out);return n=new Uint8Array(a),i.forEach((function(A){n.set(A,s),s+=A.length})),n}},this.flush=function(){var A,r,n=[],i=0,o=0;do{if(t.next_out_index=0,t.avail_out=512,1!=(A=t.deflate(4))&&0!=A)throw new Error("deflating: "+t.msg);0<512-t.avail_out&&n.push(new Uint8Array(e.subarray(0,t.next_out_index))),o+=t.next_out_index}while(0<t.avail_in||0===t.avail_out);return t.deflateEnd(),r=new Uint8Array(o),n.forEach((function(A){r.set(A,i),i+=A.length})),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),
/**
   * A class to parse color values
   * @author Stoyan Stefanov <sstoo@gmail.com>
   * @link   http://www.phpied.com/rgb-color-parser-in-javascript/
   * @license Use it if you like it
   */
function(r){function n(A){var t;this.ok=!1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A=(A=A.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var r in e)A==r&&(A=e[r]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],o=0;o<i.length;o++){var s=i[o].re,a=i[o].process,c=s.exec(A);c&&(t=a(c),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var A=this.r.toString(16),t=this.g.toString(16),e=this.b.toString(16);return 1==A.length&&(A="0"+A),1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),"#"+A+t+e},this.getHelpXML=function(){for(var A=new Array,t=0;t<i.length;t++)for(var r=i[t].example,o=0;o<r.length;o++)A[A.length]=r[o];for(var s in e)A[A.length]=s;var a=document.createElement("ul");for(a.setAttribute("id","rgbcolor-examples"),t=0;t<A.length;t++)try{var c=document.createElement("li"),l=new n(A[t]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+l.toHex()+"; color:"+l.toHex(),u.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+A[t]+" -> "+l.toRGB()+" -> "+l.toHex());c.appendChild(u),c.appendChild(h),a.appendChild(c)}catch(A){}return a}}i=function(){return n}.call(t,e,t,A),void 0!==i&&(A.exports=i),r.RGBColor=n}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),function(t){A.exports=t()}((function(){return function A(t,e,r){function n(s,a){if(!e[s]){if(!t[s]){var c="function"==typeof o&&o;if(!a&&c)return o(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=e[s]={exports:{}};t[s][0].call(u.exports,(function(A){var e=t[s][1][A];return n(e||A)}),u,u.exports,A,t,e,r)}return e[s].exports}for(var i="function"==typeof o&&o,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(A,t,e){(function(A){!function(r){var n="object"==typeof e&&e,i="object"==typeof t&&t&&t.exports==n&&t,o="object"==typeof A&&A;o.global!==o&&o.window!==o||(r=o);var s,a,c=2147483647,l=36,u=1,h=26,d=38,f=700,g=72,p=128,B="-",w=/^xn--/,m=/[^ -~]/,y=/\x2E|\u3002|\uFF0E|\uFF61/g,C={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Q=l-u,F=Math.floor,U=String.fromCharCode;function v(A){throw RangeError(C[A])}function b(A,t){for(var e=A.length;e--;)A[e]=t(A[e]);return A}function x(A,t){return b(A.split(y),t).join(".")}function I(A){for(var t,e,r=[],n=0,i=A.length;n<i;)55296<=(t=A.charCodeAt(n++))&&t<=56319&&n<i?56320==(64512&(e=A.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&e)+65536):(r.push(t),n--):r.push(t);return r}function E(A){return b(A,(function(A){var t="";return 65535<A&&(t+=U((A-=65536)>>>10&1023|55296),A=56320|1023&A),t+U(A)})).join("")}function H(A,t){return A+22+75*(A<26)-((0!=t)<<5)}function S(A,t,e){var r=0;for(A=e?F(A/f):A>>1,A+=F(A/t);Q*h>>1<A;r+=l)A=F(A/Q);return F(r+(Q+1)*A/(A+d))}function k(A){var t,e,r,n,i,o,s,a,d,f,w,m=[],y=A.length,C=0,Q=p,U=g;for((e=A.lastIndexOf(B))<0&&(e=0),r=0;r<e;++r)128<=A.charCodeAt(r)&&v("not-basic"),m.push(A.charCodeAt(r));for(n=0<e?e+1:0;n<y;){for(i=C,o=1,s=l;y<=n&&v("invalid-input"),w=A.charCodeAt(n++),(l<=(a=w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:l)||a>F((c-C)/o))&&v("overflow"),C+=a*o,!(a<(d=s<=U?u:U+h<=s?h:s-U));s+=l)o>F(c/(f=l-d))&&v("overflow"),o*=f;U=S(C-i,t=m.length+1,0==i),F(C/t)>c-Q&&v("overflow"),Q+=F(C/t),C%=t,m.splice(C++,0,Q)}return E(m)}function L(A){var t,e,r,n,i,o,s,a,d,f,w,m,y,C,Q,b=[];for(m=(A=I(A)).length,t=p,i=g,o=e=0;o<m;++o)(w=A[o])<128&&b.push(U(w));for(r=n=b.length,n&&b.push(B);r<m;){for(s=c,o=0;o<m;++o)t<=(w=A[o])&&w<s&&(s=w);for(s-t>F((c-e)/(y=r+1))&&v("overflow"),e+=(s-t)*y,t=s,o=0;o<m;++o)if((w=A[o])<t&&++e>c&&v("overflow"),w==t){for(a=e,d=l;!(a<(f=d<=i?u:i+h<=d?h:d-i));d+=l)Q=a-f,C=l-f,b.push(U(H(f+Q%C,0))),a=F(Q/C);b.push(U(H(a,0))),i=S(e,y,r==n),e=0,++r}++e,++t}return b.join("")}if(s={version:"1.2.4",ucs2:{decode:I,encode:E},decode:k,encode:L,toASCII:function(A){return x(A,(function(A){return m.test(A)?"xn--"+L(A):A}))},toUnicode:function(A){return x(A,(function(A){return w.test(A)?k(A.slice(4).toLowerCase()):A}))}},n&&!n.nodeType)if(i)i.exports=s;else for(a in s)s.hasOwnProperty(a)&&(n[a]=s[a]);else r.punycode=s}(this)}).call(this,"undefined"!=typeof r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(A,t,e){var r=A("./log");function n(A,t){for(var e=3===A.nodeType?document.createTextNode(A.nodeValue):A.cloneNode(!1),i=A.firstChild;i;)!0!==t&&1===i.nodeType&&"SCRIPT"===i.nodeName||e.appendChild(n(i,t)),i=i.nextSibling;return 1===A.nodeType&&(e._scrollTop=A.scrollTop,e._scrollLeft=A.scrollLeft,"CANVAS"===A.nodeName?function(A,t){try{t&&(t.width=A.width,t.height=A.height,t.getContext("2d").putImageData(A.getContext("2d").getImageData(0,0,A.width,A.height),0,0))}catch(t){r("Unable to copy canvas content from",A,t)}}(A,e):"TEXTAREA"!==A.nodeName&&"SELECT"!==A.nodeName||(e.value=A.value)),e}t.exports=function(A,t,e,r,i,o,s){var a=n(A.documentElement,i.javascriptEnabled),c=t.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=e,c.height=r,c.scrolling="no",t.body.appendChild(c),new Promise((function(t){var e,r,n,l=c.contentWindow.document;c.contentWindow.onload=c.onload=function(){var A=setInterval((function(){0<l.body.childNodes.length&&(function A(t){if(1===t.nodeType){t.scrollTop=t._scrollTop,t.scrollLeft=t._scrollLeft;for(var e=t.firstChild;e;)A(e),e=e.nextSibling}}(l.documentElement),clearInterval(A),"view"===i.type&&(c.contentWindow.scrollTo(o,s),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.contentWindow.scrollY===s&&c.contentWindow.scrollX===o||(l.documentElement.style.top=-s+"px",l.documentElement.style.left=-o+"px",l.documentElement.style.position="absolute")),t(c))}),50)},l.open(),l.write("<!DOCTYPE html><html></html>"),r=o,n=s,!(e=A).defaultView||r===e.defaultView.pageXOffset&&n===e.defaultView.pageYOffset||e.defaultView.scrollTo(r,n),l.replaceChild(l.adoptNode(a),l.documentElement),l.close()}))}},{"./log":13}],3:[function(A,t,e){function r(A){this.r=0,this.g=0,this.b=0,this.a=null,this.fromArray(A)||this.namedColor(A)||this.rgb(A)||this.rgba(A)||this.hex6(A)||this.hex3(A)}r.prototype.darken=function(A){var t=1-A;return new r([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])},r.prototype.isTransparent=function(){return 0===this.a},r.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},r.prototype.fromArray=function(A){return Array.isArray(A)&&(this.r=Math.min(A[0],255),this.g=Math.min(A[1],255),this.b=Math.min(A[2],255),3<A.length&&(this.a=A[3])),Array.isArray(A)};var n=/^#([a-f0-9]{3})$/i;r.prototype.hex3=function(A){var t;return null!==(t=A.match(n))&&(this.r=parseInt(t[1][0]+t[1][0],16),this.g=parseInt(t[1][1]+t[1][1],16),this.b=parseInt(t[1][2]+t[1][2],16)),null!==t};var i=/^#([a-f0-9]{6})$/i;r.prototype.hex6=function(A){var t=null;return null!==(t=A.match(i))&&(this.r=parseInt(t[1].substring(0,2),16),this.g=parseInt(t[1].substring(2,4),16),this.b=parseInt(t[1].substring(4,6),16)),null!==t};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;r.prototype.rgb=function(A){var t;return null!==(t=A.match(o))&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3])),null!==t};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;r.prototype.rgba=function(A){var t;return null!==(t=A.match(s))&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3]),this.a=Number(t[4])),null!==t},r.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},r.prototype.namedColor=function(A){A=A.toLowerCase();var t=a[A];if(t)this.r=t[0],this.g=t[1],this.b=t[2];else if("transparent"===A)return this.r=this.g=this.b=this.a=0,!0;return!!t},r.prototype.isColor=!0;var a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};t.exports=r},{}],4:[function(A,t,e){var r=A("./support"),n=A("./renderers/canvas"),i=A("./imageloader"),o=A("./nodeparser"),s=A("./nodecontainer"),a=A("./log"),c=A("./utils"),l=A("./clone"),u=A("./proxy").loadUrlDocument,h=c.getBounds,d="data-html2canvas-node",f=0;function g(A,t){var e,r,i=f++;if((t=t||{}).logging&&(a.options.logging=!0,a.options.start=Date.now()),t.async=void 0===t.async||t.async,t.allowTaint=void 0!==t.allowTaint&&t.allowTaint,t.removeContainer=void 0===t.removeContainer||t.removeContainer,t.javascriptEnabled=void 0!==t.javascriptEnabled&&t.javascriptEnabled,t.imageTimeout=void 0===t.imageTimeout?1e4:t.imageTimeout,t.renderer="function"==typeof t.renderer?t.renderer:n,t.strict=!!t.strict,"string"==typeof A){if("string"!=typeof t.proxy)return Promise.reject("Proxy must be used when rendering url");var o=null!=t.width?t.width:window.innerWidth,s=null!=t.height?t.height:window.innerHeight;return u((e=A,r=document.createElement("a"),r.href=e,r.href=r.href,r),t.proxy,document,o,s,t).then((function(A){return B(A.contentWindow.document.documentElement,A,t,o,s)}))}var c,h,g,p,w,m=(void 0===A?[document.documentElement]:A.length?A:[A])[0];return m.setAttribute(d+i,i),(c=m.ownerDocument,h=t,g=m.ownerDocument.defaultView.innerWidth,p=m.ownerDocument.defaultView.innerHeight,w=i,l(c,c,g,p,h,c.defaultView.pageXOffset,c.defaultView.pageYOffset).then((function(A){a("Document cloned");var t=d+w,e="["+t+"='"+w+"']";c.querySelector(e).removeAttribute(t);var r=A.contentWindow,n=r.document.querySelector(e),i="function"==typeof h.onclone?Promise.resolve(h.onclone(r.document)):Promise.resolve(!0);return i.then((function(){return B(n,A,h,g,p)}))}))).then((function(A){return"function"==typeof t.onrendered&&(a("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),t.onrendered(A)),A}))}g.CanvasRenderer=n,g.NodeContainer=s,g.log=a,g.utils=c;var p="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:g;function B(A,t,e,n,s){var c,l,u=t.contentWindow,d=new r(u.document),f=new i(e,d),g=h(A),p="view"===e.type?n:(c=u.document,Math.max(Math.max(c.body.scrollWidth,c.documentElement.scrollWidth),Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),Math.max(c.body.clientWidth,c.documentElement.clientWidth))),B="view"===e.type?s:(l=u.document,Math.max(Math.max(l.body.scrollHeight,l.documentElement.scrollHeight),Math.max(l.body.offsetHeight,l.documentElement.offsetHeight),Math.max(l.body.clientHeight,l.documentElement.clientHeight))),m=new e.renderer(p,B,f,e,document);return new o(A,m,d,f,e).ready.then((function(){var r,n;return a("Finished rendering"),r="view"===e.type?w(m.canvas,{width:m.canvas.width,height:m.canvas.height,top:0,left:0,x:0,y:0}):A===u.document.body||A===u.document.documentElement||null!=e.canvas?m.canvas:w(m.canvas,{width:null!=e.width?e.width:g.width,height:null!=e.height?e.height:g.height,top:g.top,left:g.left,x:0,y:0}),n=t,e.removeContainer&&(n.parentNode.removeChild(n),a("Cleaned up container")),r}))}function w(A,t){var e=document.createElement("canvas"),r=Math.min(A.width-1,Math.max(0,t.left)),n=Math.min(A.width,Math.max(1,t.left+t.width)),i=Math.min(A.height-1,Math.max(0,t.top)),o=Math.min(A.height,Math.max(1,t.top+t.height));e.width=t.width,e.height=t.height;var s=n-r,c=o-i;return a("Cropping canvas at:","left:",t.left,"top:",t.top,"width:",s,"height:",c),a("Resulting crop with width",t.width,"and height",t.height,"with x",r,"and y",i),e.getContext("2d").drawImage(A,r,i,s,c,t.x,t.y,s,c),e}t.exports=p},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(A,t,e){var r=A("./log"),n=A("./utils").smallImage;t.exports=function A(t){if(this.src=t,r("DummyImageContainer for",t),!this.promise||!this.image){r("Initiating DummyImageContainer"),A.prototype.image=new Image;var e=this.image;A.prototype.promise=new Promise((function(A,t){e.onload=A,e.onerror=t,e.src=n(),!0===e.complete&&A(e)}))}}},{"./log":13,"./utils":26}],6:[function(A,t,e){var r=A("./utils").smallImage;t.exports=function(A,t){var e,n,i=document.createElement("div"),o=document.createElement("img"),s=document.createElement("span"),a="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),o.src=r(),o.width=1,o.height=1,o.style.margin=0,o.style.padding=0,o.style.verticalAlign="baseline",s.style.fontFamily=A,s.style.fontSize=t,s.style.margin=0,s.style.padding=0,s.appendChild(document.createTextNode(a)),i.appendChild(s),i.appendChild(o),e=o.offsetTop-s.offsetTop+1,i.removeChild(s),i.appendChild(document.createTextNode(a)),i.style.lineHeight="normal",o.style.verticalAlign="super",n=o.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=e,this.lineWidth=1,this.middle=n}},{"./utils":26}],7:[function(A,t,e){var r=A("./font");function n(){this.data={}}n.prototype.getMetrics=function(A,t){return void 0===this.data[A+"-"+t]&&(this.data[A+"-"+t]=new r(A,t)),this.data[A+"-"+t]},t.exports=n},{"./font":6}],8:[function(A,t,e){var r=A("./utils").getBounds,n=A("./proxy").loadUrlDocument;function i(t,e,n){this.image=null,this.src=t;var i=this,o=r(t);this.promise=(e?new Promise((function(A){"about:blank"===t.contentWindow.document.URL||null==t.contentWindow.document.documentElement?t.contentWindow.onload=t.onload=function(){A(t)}:A(t)})):this.proxyLoad(n.proxy,o,n)).then((function(t){return A("./core")(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})})).then((function(A){return i.image=A}))}i.prototype.proxyLoad=function(A,t,e){var r=this.src;return n(r.src,A,r.ownerDocument,t.width,t.height,e)},t.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(A,t,e){function r(A){this.src=A.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}r.TYPES={LINEAR:1,RADIAL:2},r.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,t.exports=r},{}],10:[function(A,t,e){t.exports=function(A,t){this.src=A,this.image=new Image;var e=this;this.tainted=null,this.promise=new Promise((function(r,n){e.image.onload=r,e.image.onerror=n,t&&(e.image.crossOrigin="anonymous"),e.image.src=A,!0===e.image.complete&&r(e.image)}))}},{}],11:[function(A,t,e){var r=A("./log"),n=A("./imagecontainer"),i=A("./dummyimagecontainer"),o=A("./proxyimagecontainer"),s=A("./framecontainer"),a=A("./svgcontainer"),c=A("./svgnodecontainer"),l=A("./lineargradientcontainer"),u=A("./webkitgradientcontainer"),h=A("./utils").bind;function d(A,t){this.link=null,this.options=A,this.support=t,this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(A){var t=[];return A.reduce((function(A,t){switch(t.node.nodeName){case"IMG":return A.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return A.concat([{args:[t.node],method:t.node.nodeName}])}return A}),[]).forEach(this.addImage(t,this.loadImage),this),t},d.prototype.findBackgroundImage=function(A,t){return t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(A,this.loadImage),this),A},d.prototype.addImage=function(A,t){return function(e){e.args.forEach((function(n){this.imageExists(A,n)||(A.splice(0,0,t.call(this,e)),r("Added image #"+A.length,"string"==typeof n?n.substring(0,100):n))}),this)}},d.prototype.hasImageBackground=function(A){return"none"!==A.method},d.prototype.loadImage=function(A){if("url"===A.method){var t=A.args[0];return!this.isSVG(t)||this.support.svg||this.options.allowTaint?t.match(/data:image\/.*;base64,/i)?new n(t.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(t)||!0===this.options.allowTaint||this.isSVG(t)?new n(t,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new n(t,!0):this.options.proxy?new o(t,this.options.proxy):new i(t):new a(t)}return"linear-gradient"===A.method?new l(A):"gradient"===A.method?new u(A):"svg"===A.method?new c(A.args[0],this.support.svg):"IFRAME"===A.method?new s(A.args[0],this.isSameOrigin(A.args[0].src),this.options):new i(A)},d.prototype.isSVG=function(A){return"svg"===A.substring(A.length-3).toLowerCase()||a.prototype.isInline(A)},d.prototype.imageExists=function(A,t){return A.some((function(A){return A.src===t}))},d.prototype.isSameOrigin=function(A){return this.getOrigin(A)===this.origin},d.prototype.getOrigin=function(A){var t=this.link||(this.link=document.createElement("a"));return t.href=A,t.href=t.href,t.protocol+t.hostname+t.port},d.prototype.getPromise=function(A){return this.timeout(A,this.options.imageTimeout).catch((function(){return new i(A.src).promise.then((function(t){A.image=t}))}))},d.prototype.get=function(A){var t=null;return this.images.some((function(e){return(t=e).src===A}))?t:null},d.prototype.fetch=function(A){return this.images=A.reduce(h(this.findBackgroundImage,this),this.findImages(A)),this.images.forEach((function(A,t){A.promise.then((function(){r("Succesfully loaded image #"+(t+1),A)}),(function(e){r("Failed loading image #"+(t+1),A,e)}))})),this.ready=Promise.all(this.images.map(this.getPromise,this)),r("Finished searching images"),this},d.prototype.timeout=function(A,t){var e,n=Promise.race([A.promise,new Promise((function(n,i){e=setTimeout((function(){r("Timed out loading image",A),i(A)}),t)}))]).then((function(A){return clearTimeout(e),A}));return n.catch((function(){clearTimeout(e)})),n},t.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(A,t,e){var r=A("./gradientcontainer"),n=A("./color");function i(A){r.apply(this,arguments),this.type=r.TYPES.LINEAR;var t=i.REGEXP_DIRECTION.test(A.args[0])||!r.REGEXP_COLORSTOP.test(A.args[0]);t?A.args[0].split(/\s+/).reverse().forEach((function(A,t){switch(A){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var e=this.y0,r=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=r,this.y1=e;break;case"center":break;default:var n=.01*parseFloat(A,10);if(isNaN(n))break;0===t?(this.y0=n,this.y1=1-this.y0):(this.x0=n,this.x1=1-this.x0)}}),this):(this.y0=0,this.y1=1),this.colorStops=A.args.slice(t?1:0).map((function(A){var t=A.match(r.REGEXP_COLORSTOP),e=+t[2],i=0===e?"%":t[3];return{color:new n(t[1]),stop:"%"===i?e/100:null}})),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach((function(A,t){null===A.stop&&this.colorStops.slice(t).some((function(e,r){return null!==e.stop&&(A.stop=(e.stop-this.colorStops[t-1].stop)/(r+1)+this.colorStops[t-1].stop,!0)}),this)}),this)}i.prototype=Object.create(r.prototype),i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,t.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(A,t,e){var r=function(){r.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-r.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};r.options={logging:!1},t.exports=r},{}],14:[function(A,t,e){var r=A("./color"),n=A("./utils"),i=n.getBounds,o=n.parseBackgrounds,s=n.offsetBounds;function a(A,t){this.node=A,this.parent=t,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function c(A){return-1!==A.toString().indexOf("%")}function l(A){return A.replace("px","")}function u(A){return parseFloat(A)}a.prototype.cloneTo=function(A){A.visible=this.visible,A.borders=this.borders,A.bounds=this.bounds,A.clip=this.clip,A.backgroundClip=this.backgroundClip,A.computedStyles=this.computedStyles,A.styles=this.styles,A.backgroundImages=this.backgroundImages,A.opacity=this.opacity},a.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},a.prototype.assignStack=function(A){(this.stack=A).children.push(this)},a.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},a.prototype.css=function(A){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[A]||(this.styles[A]=this.computedStyles[A])},a.prototype.prefixedCss=function(A){var t=this.css(A);return void 0===t&&["webkit","moz","ms","o"].some((function(e){return void 0!==(t=this.css(e+A.substr(0,1).toUpperCase()+A.substr(1)))}),this),void 0===t?null:t},a.prototype.computedStyle=function(A){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,A)},a.prototype.cssInt=function(A){var t=parseInt(this.css(A),10);return isNaN(t)?0:t},a.prototype.color=function(A){return this.colors[A]||(this.colors[A]=new r(this.css(A)))},a.prototype.cssFloat=function(A){var t=parseFloat(this.css(A));return isNaN(t)?0:t},a.prototype.fontWeight=function(){var A=this.css("fontWeight");switch(parseInt(A,10)){case 401:A="bold";break;case 400:A="normal"}return A},a.prototype.parseClip=function(){var A=this.css("clip").match(this.CLIP);return A?{top:parseInt(A[1],10),right:parseInt(A[2],10),bottom:parseInt(A[3],10),left:parseInt(A[4],10)}:null},a.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))},a.prototype.cssList=function(A,t){var e=(this.css(A)||"").split(",");return 1===(e=(e=e[t||0]||e[0]||"auto").trim().split(" ")).length&&(e=[e[0],c(e[0])?"auto":e[0]]),e},a.prototype.parseBackgroundSize=function(A,t,e){var r,n,i=this.cssList("backgroundSize",e);if(c(i[0]))r=A.width*parseFloat(i[0])/100;else{if(/contain|cover/.test(i[0])){var o=A.width/A.height,s=t.width/t.height;return o<s^"contain"===i[0]?{width:A.height*s,height:A.height}:{width:A.width,height:A.width/s}}r=parseInt(i[0],10)}return n="auto"===i[0]&&"auto"===i[1]?t.height:"auto"===i[1]?r/t.width*t.height:c(i[1])?A.height*parseFloat(i[1])/100:parseInt(i[1],10),"auto"===i[0]&&(r=n/t.height*t.width),{width:r,height:n}},a.prototype.parseBackgroundPosition=function(A,t,e,r){var n,i,o=this.cssList("backgroundPosition",e);return n=c(o[0])?(A.width-(r||t).width)*(parseFloat(o[0])/100):parseInt(o[0],10),i="auto"===o[1]?n/t.width*t.height:c(o[1])?(A.height-(r||t).height)*parseFloat(o[1])/100:parseInt(o[1],10),"auto"===o[0]&&(n=i/t.height*t.width),{left:n,top:i}},a.prototype.parseBackgroundRepeat=function(A){return this.cssList("backgroundRepeat",A)[0]},a.prototype.parseTextShadows=function(){var A=this.css("textShadow"),t=[];if(A&&"none"!==A)for(var e=A.match(this.TEXT_SHADOW_PROPERTY),n=0;e&&n<e.length;n++){var i=e[n].match(this.TEXT_SHADOW_VALUES);t.push({color:new r(i[0]),offsetX:i[1]?parseFloat(i[1].replace("px","")):0,offsetY:i[2]?parseFloat(i[2].replace("px","")):0,blur:i[3]?i[3].replace("px",""):0})}return t},a.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var A=this.parseBounds(),t=this.prefixedCss("transformOrigin").split(" ").map(l).map(u);t[0]+=A.left,t[1]+=A.top,this.transformData={origin:t,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData},a.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var A=this.prefixedCss("transform"),t=A?function(A){if(A&&"matrix"===A[1])return A[2].split(",").map((function(A){return parseFloat(A.trim())}));if(A&&"matrix3d"===A[1]){var t=A[2].split(",").map((function(A){return parseFloat(A.trim())}));return[t[0],t[1],t[4],t[5],t[12],t[13]]}}(A.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=t||[1,0,0,1,0,0]}return this.transformMatrix},a.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):i(this.node))},a.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},a.prototype.getValue=function(){var A,t,e=this.node.value||"";return"SELECT"===this.node.tagName?(A=this.node,e=(t=A.options[A.selectedIndex||0])&&t.text||""):"password"===this.node.type&&(e=Array(e.length+1).join("•")),0===e.length?this.node.placeholder||"":e},a.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/,a.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,a.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,a.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,t.exports=a},{"./color":3,"./utils":26}],15:[function(A,t,e){var r=A("./log"),n=A("punycode"),i=A("./nodecontainer"),o=A("./textcontainer"),s=A("./pseudoelementcontainer"),a=A("./fontmetrics"),c=A("./color"),l=A("./stackingcontext"),u=A("./utils"),h=u.bind,d=u.getBounds,f=u.parseBackgrounds,g=u.offsetBounds;function p(A,t,e,n,o){r("Starting NodeParser"),this.renderer=t,this.options=o,this.range=null,this.support=e,this.renderQueue=[],this.stack=new l(!0,1,A.ownerDocument,null);var s=new i(A,null);if(o.background&&t.rectangle(0,0,t.width,t.height,new c(o.background)),A===A.ownerDocument.documentElement){var u=new i(s.color("backgroundColor").isTransparent()?A.ownerDocument.body:A.ownerDocument.documentElement,null);t.rectangle(0,0,t.width,t.height,u.color("backgroundColor"))}s.visibile=s.isElementVisible(),this.createPseudoHideStyles(A.ownerDocument),this.disableAnimations(A.ownerDocument),this.nodes=N([s].concat(this.getChildren(s)).filter((function(A){return A.visible=A.isElementVisible()})).map(this.getPseudoElements,this)),this.fontMetrics=new a,r("Fetched nodes, total:",this.nodes.length),r("Calculate overflow clips"),this.calculateOverflowClips(),r("Start fetching images"),this.images=n.fetch(this.nodes.filter(K)),this.ready=this.images.ready.then(h((function(){return r("Images loaded, starting parsing"),r("Creating stacking contexts"),this.createStackingContexts(),r("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),r("Render queue created with "+this.renderQueue.length+" items"),new Promise(h((function(A){o.async?"function"==typeof o.async?o.async.call(this,this.renderQueue,A):0<this.renderQueue.length?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,A)):A():(this.renderQueue.forEach(this.paint,this),A())}),this))}),this))}function B(A){return A.parent&&A.parent.clip.length}function w(){}p.prototype.calculateOverflowClips=function(){this.nodes.forEach((function(A){if(K(A)){O(A)&&A.appendToDOM(),A.borders=this.parseBorders(A);var t="hidden"===A.css("overflow")?[A.borders.clip]:[],e=A.parseClip();e&&-1!==["absolute","fixed"].indexOf(A.css("position"))&&t.push([["rect",A.bounds.left+e.left,A.bounds.top+e.top,e.right-e.left,e.bottom-e.top]]),A.clip=B(A)?A.parent.clip.concat(t):t,A.backgroundClip="hidden"!==A.css("overflow")?A.clip.concat([A.borders.clip]):A.clip,O(A)&&A.cleanDOM()}else _(A)&&(A.clip=B(A)?A.parent.clip:[]);O(A)||(A.bounds=null)}),this)},p.prototype.asyncRenderer=function(A,t,e){e=e||Date.now(),this.paint(A[this.renderIndex++]),A.length===this.renderIndex?t():e+20>Date.now()?this.asyncRenderer(A,t,e):setTimeout(h((function(){this.asyncRenderer(A,t)}),this),0)},p.prototype.createPseudoHideStyles=function(A){this.createStyles(A,"."+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},p.prototype.disableAnimations=function(A){this.createStyles(A,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},p.prototype.createStyles=function(A,t){var e=A.createElement("style");e.innerHTML=t,A.body.appendChild(e)},p.prototype.getPseudoElements=function(A){var t=[[A]];if(A.node.nodeType===Node.ELEMENT_NODE){var e=this.getPseudoElement(A,":before"),r=this.getPseudoElement(A,":after");e&&t.push(e),r&&t.push(r)}return N(t)},p.prototype.getPseudoElement=function(A,t){var e=A.computedStyle(t);if(!e||!e.content||"none"===e.content||"-moz-alt-content"===e.content||"none"===e.display)return null;for(var r,n,i=(r=e.content,(n=r.substr(0,1))===r.substr(r.length-1)&&n.match(/'|"/)?r.substr(1,r.length-2):r),a="url"===i.substr(0,3),c=document.createElement(a?"img":"html2canvaspseudoelement"),l=new s(c,A,t),u=e.length-1;0<=u;u--){var h=e.item(u).replace(/(\-[a-z])/g,(function(A){return A.toUpperCase().replace("-","")}));c.style[h]=e[h]}if(c.className=s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,a)return c.src=f(i)[0].args[0],[l];var d=document.createTextNode(i);return c.appendChild(d),[l,new o(d,l)]},p.prototype.getChildren=function(A){return N([].filter.call(A.node.childNodes,k).map((function(t){var e=[t.nodeType===Node.TEXT_NODE?new o(t,A):new i(t,A)].filter(R);return t.nodeType===Node.ELEMENT_NODE&&e.length&&"TEXTAREA"!==t.tagName?e[0].isElementVisible()?e.concat(this.getChildren(e[0])):[]:e}),this))},p.prototype.newStackingContext=function(A,t){var e=new l(t,A.getOpacity(),A.node,A.parent);A.cloneTo(e),(t?e.getParentStack(this):e.parent.stack).contexts.push(e),A.stack=e},p.prototype.createStackingContexts=function(){this.nodes.forEach((function(A){var t,e;K(A)&&(this.isRootElement(A)||A.getOpacity()<1||(e=(t=A).css("position"),"auto"!==(-1!==["absolute","relative","fixed"].indexOf(e)?t.css("zIndex"):"auto"))||this.isBodyWithTransparentRoot(A)||A.hasTransform())?this.newStackingContext(A,!0):K(A)&&(L(A)&&I(A)||-1!==["inline-block","inline-table"].indexOf(A.css("display"))||D(A))?this.newStackingContext(A,!1):A.assignStack(A.parent.stack)}),this)},p.prototype.isBodyWithTransparentRoot=function(A){return"BODY"===A.node.nodeName&&A.parent.color("backgroundColor").isTransparent()},p.prototype.isRootElement=function(A){return null===A.parent},p.prototype.sortStackingContexts=function(A){var t;A.contexts.sort((t=A.contexts.slice(0),function(A,e){return A.cssInt("zIndex")+t.indexOf(A)/t.length-(e.cssInt("zIndex")+t.indexOf(e)/t.length)})),A.contexts.forEach(this.sortStackingContexts,this)},p.prototype.parseTextBounds=function(A){return function(t,e,r){if("none"!==A.parent.css("textDecoration").substr(0,4)||0!==t.trim().length){if(this.support.rangeBounds&&!A.parent.hasTransform()){var n=r.slice(0,e).join("").length;return this.getRangeBounds(A.node,n,t.length)}if(A.node&&"string"==typeof A.node.data){var i=A.node.splitText(t.length),o=this.getWrapperBounds(A.node,A.parent.hasTransform());return A.node=i,o}}else this.support.rangeBounds&&!A.parent.hasTransform()||(A.node=A.node.splitText(t.length));return{}}},p.prototype.getWrapperBounds=function(A,t){var e=A.ownerDocument.createElement("html2canvaswrapper"),r=A.parentNode,n=A.cloneNode(!0);e.appendChild(A.cloneNode(!0)),r.replaceChild(e,A);var i=t?g(e):d(e);return r.replaceChild(n,e),i},p.prototype.getRangeBounds=function(A,t,e){var r=this.range||(this.range=A.ownerDocument.createRange());return r.setStart(A,t),r.setEnd(A,t+e),r.getBoundingClientRect()},p.prototype.parse=function(A){var t=A.contexts.filter(b),e=A.children.filter(K),r=e.filter(T(D)),n=r.filter(T(L)).filter(T(E)),i=e.filter(T(L)).filter(D),o=r.filter(T(L)).filter(E),s=A.contexts.concat(r.filter(L)).filter(I),a=A.children.filter(_).filter(S),c=A.contexts.filter(x);t.concat(n).concat(i).concat(o).concat(s).concat(a).concat(c).forEach((function(A){this.renderQueue.push(A),H(A)&&(this.parse(A),this.renderQueue.push(new w))}),this)},p.prototype.paint=function(A){try{A instanceof w?this.renderer.ctx.restore():_(A)?(O(A.parent)&&A.parent.appendToDOM(),this.paintText(A),O(A.parent)&&A.parent.cleanDOM()):this.paintNode(A)}catch(A){if(r(A),this.options.strict)throw A}},p.prototype.paintNode=function(A){H(A)&&(this.renderer.setOpacity(A.opacity),this.renderer.ctx.save(),A.hasTransform()&&this.renderer.setTransform(A.parseTransform())),"INPUT"===A.node.nodeName&&"checkbox"===A.node.type?this.paintCheckbox(A):"INPUT"===A.node.nodeName&&"radio"===A.node.type?this.paintRadio(A):this.paintElement(A)},p.prototype.paintElement=function(A){var t=A.parseBounds();this.renderer.clip(A.backgroundClip,(function(){this.renderer.renderBackground(A,t,A.borders.borders.map(P))}),this),this.renderer.clip(A.clip,(function(){this.renderer.renderBorders(A.borders.borders)}),this),this.renderer.clip(A.backgroundClip,(function(){switch(A.node.nodeName){case"svg":case"IFRAME":var e=this.images.get(A.node);e?this.renderer.renderImage(A,t,A.borders,e):r("Error loading <"+A.node.nodeName+">",A.node);break;case"IMG":var n=this.images.get(A.node.src);n?this.renderer.renderImage(A,t,A.borders,n):r("Error loading <img>",A.node.src);break;case"CANVAS":this.renderer.renderImage(A,t,A.borders,{image:A.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(A)}}),this)},p.prototype.paintCheckbox=function(A){var t=A.parseBounds(),e=Math.min(t.width,t.height),r={width:e-1,height:e-1,top:t.top,left:t.left},n=[3,3],i=[n,n,n,n],o=[1,1,1,1].map((function(A){return{color:new c("#A5A5A5"),width:A}})),s=Q(r,i,o);this.renderer.clip(A.backgroundClip,(function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new c("#DEDEDE")),this.renderer.renderBorders(y(o,r,s,i)),A.node.checked&&(this.renderer.font(new c("#424242"),"normal","normal","bold",e-3+"px","arial"),this.renderer.text("✔",r.left+e/6,r.top+e-1))}),this)},p.prototype.paintRadio=function(A){var t=A.parseBounds(),e=Math.min(t.width,t.height)-2;this.renderer.clip(A.backgroundClip,(function(){this.renderer.circleStroke(t.left+1,t.top+1,e,new c("#DEDEDE"),1,new c("#A5A5A5")),A.node.checked&&this.renderer.circle(Math.ceil(t.left+e/4)+1,Math.ceil(t.top+e/4)+1,Math.floor(e/2),new c("#424242"))}),this)},p.prototype.paintFormValue=function(A){var t=A.getValue();if(0<t.length){var e=A.node.ownerDocument,n=e.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach((function(t){try{n.style[t]=A.css(t)}catch(t){r("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}}));var i=A.parseBounds();n.style.position="fixed",n.style.left=i.left+"px",n.style.top=i.top+"px",n.textContent=t,e.body.appendChild(n),this.paintText(new o(n.firstChild,A)),e.body.removeChild(n)}},p.prototype.paintText=function(A){A.applyTextTransform();var t,e=n.ucs2.decode(A.node.data),r=this.options.letterRendering&&!/^(normal|none|0px)$/.test(A.parent.css("letterSpacing"))||(t=A.node.data,/[^\u0000-\u00ff]/.test(t))?e.map((function(A){return n.ucs2.encode([A])})):function(A){for(var t,e,r=[],i=0,o=!1;A.length;)e=A[i],-1!==[32,13,10,9,45].indexOf(e)===o?((t=A.splice(0,i)).length&&r.push(n.ucs2.encode(t)),o=!o,i=0):i++,i>=A.length&&(t=A.splice(0,i)).length&&r.push(n.ucs2.encode(t));return r}(e),i=A.parent.fontWeight(),o=A.parent.css("fontSize"),s=A.parent.css("fontFamily"),a=A.parent.parseTextShadows();this.renderer.font(A.parent.color("color"),A.parent.css("fontStyle"),A.parent.css("fontVariant"),i,o,s),a.length?this.renderer.fontShadow(a[0].color,a[0].offsetX,a[0].offsetY,a[0].blur):this.renderer.clearShadow(),this.renderer.clip(A.parent.clip,(function(){r.map(this.parseTextBounds(A),this).forEach((function(t,e){t&&!1===/^\s*$/.test(r[e])&&(this.renderer.text(r[e],t.left,t.bottom),this.renderTextDecoration(A.parent,t,this.fontMetrics.getMetrics(s,o)))}),this)}),this)},p.prototype.renderTextDecoration=function(A,t,e){switch(A.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+e.baseline+e.lineWidth),t.width,1,A.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,A.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+e.middle+e.lineWidth),t.width,1,A.color("color"))}};var m={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};function y(A,t,e,r){return A.map((function(n,i){if(0<n.width){var o=t.left,s=t.top,a=t.width,c=t.height-A[2].width;switch(i){case 0:c=A[0].width,n.args=U({c1:[o,s],c2:[o+a,s],c3:[o+a-A[1].width,s+c],c4:[o+A[3].width,s+c]},r[0],r[1],e.topLeftOuter,e.topLeftInner,e.topRightOuter,e.topRightInner);break;case 1:o=t.left+t.width-A[1].width,a=A[1].width,n.args=U({c1:[o+a,s],c2:[o+a,s+c+A[2].width],c3:[o,s+c],c4:[o,s+A[0].width]},r[1],r[2],e.topRightOuter,e.topRightInner,e.bottomRightOuter,e.bottomRightInner);break;case 2:s=s+t.height-A[2].width,c=A[2].width,n.args=U({c1:[o+a,s+c],c2:[o,s+c],c3:[o+A[3].width,s],c4:[o+a-A[3].width,s]},r[2],r[3],e.bottomRightOuter,e.bottomRightInner,e.bottomLeftOuter,e.bottomLeftInner);break;case 3:a=A[3].width,n.args=U({c1:[o,s+c+A[2].width],c2:[o,s],c3:[o+a,s+A[0].width],c4:[o+a,s+c]},r[3],r[0],e.bottomLeftOuter,e.bottomLeftInner,e.topLeftOuter,e.topLeftInner)}}return n}))}function C(A,t,e,r){var n=(Math.sqrt(2)-1)/3*4,i=e*n,o=r*n,s=A+e,a=t+r;return{topLeft:F({x:A,y:a},{x:A,y:a-o},{x:s-i,y:t},{x:s,y:t}),topRight:F({x:A,y:t},{x:A+i,y:t},{x:s,y:a-o},{x:s,y:a}),bottomRight:F({x:s,y:t},{x:s,y:t+o},{x:A+i,y:a},{x:A,y:a}),bottomLeft:F({x:s,y:a},{x:s-i,y:a},{x:A,y:t+o},{x:A,y:t})}}function Q(A,t,e){var r=A.left,n=A.top,i=A.width,o=A.height,s=t[0][0]<i/2?t[0][0]:i/2,a=t[0][1]<o/2?t[0][1]:o/2,c=t[1][0]<i/2?t[1][0]:i/2,l=t[1][1]<o/2?t[1][1]:o/2,u=t[2][0]<i/2?t[2][0]:i/2,h=t[2][1]<o/2?t[2][1]:o/2,d=t[3][0]<i/2?t[3][0]:i/2,f=t[3][1]<o/2?t[3][1]:o/2,g=i-c,p=o-h,B=i-u,w=o-f;return{topLeftOuter:C(r,n,s,a).topLeft.subdivide(.5),topLeftInner:C(r+e[3].width,n+e[0].width,Math.max(0,s-e[3].width),Math.max(0,a-e[0].width)).topLeft.subdivide(.5),topRightOuter:C(r+g,n,c,l).topRight.subdivide(.5),topRightInner:C(r+Math.min(g,i+e[3].width),n+e[0].width,g>i+e[3].width?0:c-e[3].width,l-e[0].width).topRight.subdivide(.5),bottomRightOuter:C(r+B,n+p,u,h).bottomRight.subdivide(.5),bottomRightInner:C(r+Math.min(B,i-e[3].width),n+Math.min(p,o+e[0].width),Math.max(0,u-e[1].width),h-e[2].width).bottomRight.subdivide(.5),bottomLeftOuter:C(r,n+w,d,f).bottomLeft.subdivide(.5),bottomLeftInner:C(r+e[3].width,n+w,Math.max(0,d-e[3].width),f-e[2].width).bottomLeft.subdivide(.5)}}function F(A,t,e,r){var n=function(A,t,e){return{x:A.x+(t.x-A.x)*e,y:A.y+(t.y-A.y)*e}};return{start:A,startControl:t,endControl:e,end:r,subdivide:function(i){var o=n(A,t,i),s=n(t,e,i),a=n(e,r,i),c=n(o,s,i),l=n(s,a,i),u=n(c,l,i);return[F(A,o,c,u),F(u,l,a,r)]},curveTo:function(A){A.push(["bezierCurve",t.x,t.y,e.x,e.y,r.x,r.y])},curveToReversed:function(r){r.push(["bezierCurve",e.x,e.y,t.x,t.y,A.x,A.y])}}}function U(A,t,e,r,n,i,o){var s=[];return 0<t[0]||0<t[1]?(s.push(["line",r[1].start.x,r[1].start.y]),r[1].curveTo(s)):s.push(["line",A.c1[0],A.c1[1]]),0<e[0]||0<e[1]?(s.push(["line",i[0].start.x,i[0].start.y]),i[0].curveTo(s),s.push(["line",o[0].end.x,o[0].end.y]),o[0].curveToReversed(s)):(s.push(["line",A.c2[0],A.c2[1]]),s.push(["line",A.c3[0],A.c3[1]])),0<t[0]||0<t[1]?(s.push(["line",n[1].end.x,n[1].end.y]),n[1].curveToReversed(s)):s.push(["line",A.c4[0],A.c4[1]]),s}function v(A,t,e,r,n,i,o){0<t[0]||0<t[1]?(A.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(A),r[1].curveTo(A)):A.push(["line",i,o]),(0<e[0]||0<e[1])&&A.push(["line",n[0].start.x,n[0].start.y])}function b(A){return A.cssInt("zIndex")<0}function x(A){return 0<A.cssInt("zIndex")}function I(A){return 0===A.cssInt("zIndex")}function E(A){return-1!==["inline","inline-block","inline-table"].indexOf(A.css("display"))}function H(A){return A instanceof l}function S(A){return 0<A.node.data.trim().length}function k(A){return A.nodeType===Node.TEXT_NODE||A.nodeType===Node.ELEMENT_NODE}function L(A){return"static"!==A.css("position")}function D(A){return"none"!==A.css("float")}function T(A){var t=this;return function(){return!A.apply(t,arguments)}}function K(A){return A.node.nodeType===Node.ELEMENT_NODE}function O(A){return!0===A.isPseudoElement}function _(A){return A.node.nodeType===Node.TEXT_NODE}function M(A){return parseInt(A,10)}function P(A){return A.width}function R(A){return A.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(A.node.nodeName)}function N(A){return[].concat.apply([],A)}p.prototype.parseBorders=function(A){var t,e=A.parseBounds(),r=(t=A,["TopLeft","TopRight","BottomRight","BottomLeft"].map((function(A){var e=t.css("border"+A+"Radius"),r=e.split(" ");return r.length<=1&&(r[1]=r[0]),r.map(M)}))),n=["Top","Right","Bottom","Left"].map((function(t,e){var r=A.css("border"+t+"Style"),n=A.color("border"+t+"Color");"inset"===r&&n.isBlack()&&(n=new c([255,255,255,n.a]));var i=m[r]?m[r][e]:null;return{width:A.cssInt("border"+t+"Width"),color:i?n[i[0]](i[1]):n,args:null}})),i=Q(e,r,n);return{clip:this.parseBackgroundClip(A,i,n,r,e),borders:y(n,e,i,r)}},p.prototype.parseBackgroundClip=function(A,t,e,r,n){var i=[];switch(A.css("backgroundClip")){case"content-box":case"padding-box":v(i,r[0],r[1],t.topLeftInner,t.topRightInner,n.left+e[3].width,n.top+e[0].width),v(i,r[1],r[2],t.topRightInner,t.bottomRightInner,n.left+n.width-e[1].width,n.top+e[0].width),v(i,r[2],r[3],t.bottomRightInner,t.bottomLeftInner,n.left+n.width-e[1].width,n.top+n.height-e[2].width),v(i,r[3],r[0],t.bottomLeftInner,t.topLeftInner,n.left+e[3].width,n.top+n.height-e[2].width);break;default:v(i,r[0],r[1],t.topLeftOuter,t.topRightOuter,n.left,n.top),v(i,r[1],r[2],t.topRightOuter,t.bottomRightOuter,n.left+n.width,n.top),v(i,r[2],r[3],t.bottomRightOuter,t.bottomLeftOuter,n.left+n.width,n.top+n.height),v(i,r[3],r[0],t.bottomLeftOuter,t.topLeftOuter,n.left,n.top+n.height)}return i},t.exports=p},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(A,t,e){var r=A("./xhr"),n=A("./utils"),i=A("./log"),o=A("./clone"),s=n.decode64;function a(A,t,e){var n="withCredentials"in new XMLHttpRequest;if(!t)return Promise.reject("No proxy configured");var i=u(n),o=h(t,A,i);return n?r(o):l(e,o,i).then((function(A){return s(A.content)}))}var c=0;function l(A,t,e){return new Promise((function(r,n){var i=A.createElement("script"),o=function(){delete window.html2canvas.proxy[e],A.body.removeChild(i)};window.html2canvas.proxy[e]=function(A){o(),r(A)},i.src=t,i.onerror=function(A){o(),n(A)},A.body.appendChild(i)}))}function u(A){return A?"":"html2canvas_"+Date.now()+"_"+ ++c+"_"+Math.round(1e5*Math.random())}function h(A,t,e){return A+"?url="+encodeURIComponent(t)+(e.length?"&callback=html2canvas.proxy."+e:"")}e.Proxy=a,e.ProxyURL=function(A,t,e){var r="crossOrigin"in new Image,n=u(r),i=h(t,A,n);return r?Promise.resolve(i):l(e,i,n).then((function(A){return"data:"+A.type+";base64,"+A.content}))},e.loadUrlDocument=function(A,t,e,r,n,s){return new a(A,t,window.document).then((c=A,function(A){var t,e=new DOMParser;try{t=e.parseFromString(A,"text/html")}catch(e){i("DOMParser not supported, falling back to createHTMLDocument"),t=document.implementation.createHTMLDocument("");try{t.open(),t.write(A),t.close()}catch(e){i("createHTMLDocument write not supported, falling back to document.body.innerHTML"),t.body.innerHTML=A}}var r=t.querySelector("base");if(!r||!r.href.host){var n=t.createElement("base");n.href=c,t.head.insertBefore(n,t.head.firstChild)}return t})).then((function(A){return o(A,e,r,n,s,0,0)}));var c}},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(A,t,e){var r=A("./proxy").ProxyURL;t.exports=function(A,t){var e=document.createElement("a");e.href=A,A=e.href,this.src=A,this.image=new Image;var n=this;this.promise=new Promise((function(e,i){n.image.crossOrigin="Anonymous",n.image.onload=e,n.image.onerror=i,new r(A,t,document).then((function(A){n.image.src=A})).catch(i)}))}},{"./proxy":16}],18:[function(A,t,e){var r=A("./nodecontainer");function n(A,t,e){r.call(this,A,t),this.isPseudoElement=!0,this.before=":before"===e}n.prototype.cloneTo=function(A){n.prototype.cloneTo.call(this,A),A.isPseudoElement=!0,A.before=this.before},(n.prototype=Object.create(r.prototype)).appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},n.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},n.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},n.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",n.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",t.exports=n},{"./nodecontainer":14}],19:[function(A,t,e){var r=A("./log");function n(A,t,e,r,n){this.width=A,this.height=t,this.images=e,this.options=r,this.document=n}n.prototype.renderImage=function(A,t,e,r){var n=A.cssInt("paddingLeft"),i=A.cssInt("paddingTop"),o=A.cssInt("paddingRight"),s=A.cssInt("paddingBottom"),a=e.borders,c=t.width-(a[1].width+a[3].width+n+o),l=t.height-(a[0].width+a[2].width+i+s);this.drawImage(r,0,0,r.image.width||c,r.image.height||l,t.left+n+a[3].width,t.top+i+a[0].width,c,l)},n.prototype.renderBackground=function(A,t,e){0<t.height&&0<t.width&&(this.renderBackgroundColor(A,t),this.renderBackgroundImage(A,t,e))},n.prototype.renderBackgroundColor=function(A,t){var e=A.color("backgroundColor");e.isTransparent()||this.rectangle(t.left,t.top,t.width,t.height,e)},n.prototype.renderBorders=function(A){A.forEach(this.renderBorder,this)},n.prototype.renderBorder=function(A){A.color.isTransparent()||null===A.args||this.drawShape(A.args,A.color)},n.prototype.renderBackgroundImage=function(A,t,e){A.parseBackgroundImages().reverse().forEach((function(n,i,o){switch(n.method){case"url":var s=this.images.get(n.args[0]);s?this.renderBackgroundRepeating(A,t,s,o.length-(i+1),e):r("Error loading background-image",n.args[0]);break;case"linear-gradient":case"gradient":var a=this.images.get(n.value);a?this.renderBackgroundGradient(a,t,e):r("Error loading background-image",n.args[0]);break;case"none":break;default:r("Unknown background-image type",n.args[0])}}),this)},n.prototype.renderBackgroundRepeating=function(A,t,e,r,n){var i=A.parseBackgroundSize(t,e.image,r),o=A.parseBackgroundPosition(t,e.image,r,i);switch(A.parseBackgroundRepeat(r)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(e,o,i,t,t.left+n[3],t.top+o.top+n[0],99999,i.height,n);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(e,o,i,t,t.left+o.left+n[3],t.top+n[0],i.width,99999,n);break;case"no-repeat":this.backgroundRepeatShape(e,o,i,t,t.left+o.left+n[3],t.top+o.top+n[0],i.width,i.height,n);break;default:this.renderBackgroundRepeat(e,o,i,{top:t.top,left:t.left},n[3],n[0])}},t.exports=n},{"./log":13}],20:[function(A,t,e){var r=A("../renderer"),n=A("../lineargradientcontainer"),i=A("../log");function o(A,t){r.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=A,this.canvas.height=t),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},i("Initialized CanvasRenderer with size",A,"x",t)}function s(A){return 0<A.length}(o.prototype=Object.create(r.prototype)).setFillStyle=function(A){return this.ctx.fillStyle="object"==typeof A&&A.isColor?A.toString():A,this.ctx},o.prototype.rectangle=function(A,t,e,r,n){this.setFillStyle(n).fillRect(A,t,e,r)},o.prototype.circle=function(A,t,e,r){this.setFillStyle(r),this.ctx.beginPath(),this.ctx.arc(A+e/2,t+e/2,e/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},o.prototype.circleStroke=function(A,t,e,r,n,i){this.circle(A,t,e,r),this.ctx.strokeStyle=i.toString(),this.ctx.stroke()},o.prototype.drawShape=function(A,t){this.shape(A),this.setFillStyle(t).fill()},o.prototype.taints=function(t){if(null===t.tainted){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),t.tainted=!1}catch(A){this.taintCtx=document.createElement("canvas").getContext("2d"),t.tainted=!0}}return t.tainted},o.prototype.drawImage=function(A,t,e,r,n,i,o,s,a){this.taints(A)&&!this.options.allowTaint||this.ctx.drawImage(A.image,t,e,r,n,i,o,s,a)},o.prototype.clip=function(A,t,e){this.ctx.save(),A.filter(s).forEach((function(A){this.shape(A).clip()}),this),t.call(e),this.ctx.restore()},o.prototype.shape=function(A){return this.ctx.beginPath(),A.forEach((function(A,t){"rect"===A[0]?this.ctx.rect.apply(this.ctx,A.slice(1)):this.ctx[0===t?"moveTo":A[0]+"To"].apply(this.ctx,A.slice(1))}),this),this.ctx.closePath(),this.ctx},o.prototype.font=function(A,t,e,r,n,i){this.setFillStyle(A).font=[t,e,r,n,i].join(" ").split(",")[0]},o.prototype.fontShadow=function(A,t,e,r){this.setVariable("shadowColor",A.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",e).setVariable("shadowBlur",r)},o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},o.prototype.setOpacity=function(A){this.ctx.globalAlpha=A},o.prototype.setTransform=function(A){this.ctx.translate(A.origin[0],A.origin[1]),this.ctx.transform.apply(this.ctx,A.matrix),this.ctx.translate(-A.origin[0],-A.origin[1])},o.prototype.setVariable=function(A,t){return this.variables[A]!==t&&(this.variables[A]=this.ctx[A]=t),this},o.prototype.text=function(A,t,e){this.ctx.fillText(A,t,e)},o.prototype.backgroundRepeatShape=function(A,t,e,r,n,i,o,s,a){var c=[["line",Math.round(n),Math.round(i)],["line",Math.round(n+o),Math.round(i)],["line",Math.round(n+o),Math.round(s+i)],["line",Math.round(n),Math.round(s+i)]];this.clip([c],(function(){this.renderBackgroundRepeat(A,t,e,r,a[3],a[0])}),this)},o.prototype.renderBackgroundRepeat=function(A,t,e,r,n,i){var o=Math.round(r.left+t.left+n),s=Math.round(r.top+t.top+i);this.setFillStyle(this.ctx.createPattern(this.resizeImage(A,e),"repeat")),this.ctx.translate(o,s),this.ctx.fill(),this.ctx.translate(-o,-s)},o.prototype.renderBackgroundGradient=function(A,t){if(A instanceof n){var e=this.ctx.createLinearGradient(t.left+t.width*A.x0,t.top+t.height*A.y0,t.left+t.width*A.x1,t.top+t.height*A.y1);A.colorStops.forEach((function(A){e.addColorStop(A.stop,A.color.toString())})),this.rectangle(t.left,t.top,t.width,t.height,e)}},o.prototype.resizeImage=function(A,t){var e=A.image;if(e.width===t.width&&e.height===t.height)return e;var r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t.width,t.height),r},t.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(A,t,e){var r=A("./nodecontainer");function n(A,t,e,n){r.call(this,e,n),this.ownStacking=A,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*t}(n.prototype=Object.create(r.prototype)).getParentStack=function(A){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(A):A.stack},t.exports=n},{"./nodecontainer":14}],22:[function(A,t,e){function r(A){this.rangeBounds=this.testRangeBounds(A),this.cors=this.testCORS(),this.svg=this.testSVG()}r.prototype.testRangeBounds=function(A){var t,e,r=!1;return A.createRange&&(t=A.createRange()).getBoundingClientRect&&((e=A.createElement("boundtest")).style.height="123px",e.style.display="block",A.body.appendChild(e),t.selectNode(e),123===t.getBoundingClientRect().height&&(r=!0),A.body.removeChild(e)),r},r.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},r.prototype.testSVG=function(){var A=new Image,t=document.createElement("canvas"),e=t.getContext("2d");A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{e.drawImage(A,0,0),t.toDataURL()}catch(A){return!1}return!0},t.exports=r},{}],23:[function(A,t,e){var r=A("./xhr"),n=A("./utils").decode64;function i(A){this.src=A,this.image=null;var t=this;this.promise=this.hasFabric().then((function(){return t.isInline(A)?Promise.resolve(t.inlineFormatting(A)):r(A)})).then((function(A){return new Promise((function(e){window.html2canvas.svg.fabric.loadSVGFromString(A,t.createCanvas.call(t,e))}))}))}i.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},i.prototype.inlineFormatting=function(A){return/^data:image\/svg\+xml;base64,/.test(A)?this.decode64(this.removeContentType(A)):this.removeContentType(A)},i.prototype.removeContentType=function(A){return A.replace(/^data:image\/svg\+xml(;base64)?,/,"")},i.prototype.isInline=function(A){return/^data:image\/svg\+xml/i.test(A)},i.prototype.createCanvas=function(A){var t=this;return function(e,r){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");t.image=n.lowerCanvasEl,n.setWidth(r.width).setHeight(r.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(e,r)).renderAll(),A(n.lowerCanvasEl)}},i.prototype.decode64=function(A){return"function"==typeof window.atob?window.atob(A):n(A)},t.exports=i},{"./utils":26,"./xhr":28}],24:[function(A,t,e){var r=A("./svgcontainer");function n(A,t){this.src=A,this.image=null;var e=this;this.promise=t?new Promise((function(t,r){e.image=new Image,e.image.onload=t,e.image.onerror=r,e.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(A),!0===e.image.complete&&t(e.image)})):this.hasFabric().then((function(){return new Promise((function(t){window.html2canvas.svg.fabric.parseSVGDocument(A,e.createCanvas.call(e,t))}))}))}n.prototype=Object.create(r.prototype),t.exports=n},{"./svgcontainer":23}],25:[function(A,t,e){var r=A("./nodecontainer");function n(A,t){r.call(this,A,t)}function i(A,t,e){if(0<A.length)return t+e.toUpperCase()}(n.prototype=Object.create(r.prototype)).applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},n.prototype.transform=function(A){var t=this.node.data;switch(A){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,i);case"uppercase":return t.toUpperCase();default:return t}},t.exports=n},{"./nodecontainer":14}],26:[function(A,t,e){e.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},e.bind=function(A,t){return function(){return A.apply(t,arguments)}},e.decode64=function(A){var t,e,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=A.length,l="";for(t=0;t<c;t+=4)i=a.indexOf(A[t])<<2|(e=a.indexOf(A[t+1]))>>4,o=(15&e)<<4|(r=a.indexOf(A[t+2]))>>2,s=(3&r)<<6|(n=a.indexOf(A[t+3])),l+=64===r?String.fromCharCode(i):64===n||-1===n?String.fromCharCode(i,o):String.fromCharCode(i,o,s);return l},e.getBounds=function(A){if(A.getBoundingClientRect){var t=A.getBoundingClientRect(),e=null==A.offsetWidth?t.width:A.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+e,left:t.left,width:e,height:null==A.offsetHeight?t.height:A.offsetHeight}}return{}},e.offsetBounds=function(A){var t=A.offsetParent?e.offsetBounds(A.offsetParent):{top:0,left:0};return{top:A.offsetTop+t.top,bottom:A.offsetTop+A.offsetHeight+t.top,right:A.offsetLeft+t.left+A.offsetWidth,left:A.offsetLeft+t.left,width:A.offsetWidth,height:A.offsetHeight}},e.parseBackgrounds=function(A){var t,e,r,n,i,o,s,a=[],c=0,l=0,u=function(){t&&('"'===e.substr(0,1)&&(e=e.substr(1,e.length-2)),e&&s.push(e),"-"===t.substr(0,1)&&0<(n=t.indexOf("-",1)+1)&&(r=t.substr(0,n),t=t.substr(n)),a.push({prefix:r,method:t.toLowerCase(),value:i,args:s,image:null})),s=[],t=r=e=i=""};return s=[],t=r=e=i="",A.split("").forEach((function(A){if(!(0===c&&-1<" \r\n\t".indexOf(A))){switch(A){case'"':o?o===A&&(o=null):o=A;break;case"(":if(o)break;if(0===c)return c=1,void(i+=A);l++;break;case")":if(o)break;if(1===c){if(0===l)return c=0,i+=A,void u();l--}break;case",":if(o)break;if(0===c)return void u();if(1===c&&0===l&&!t.match(/^url$/i))return s.push(e),e="",void(i+=A)}i+=A,0===c?t+=A:e+=A}})),u(),a}},{}],27:[function(A,t,e){var r=A("./gradientcontainer");function n(A){r.apply(this,arguments),this.type="linear"===A.args[0]?r.TYPES.LINEAR:r.TYPES.RADIAL}n.prototype=Object.create(r.prototype),t.exports=n},{"./gradientcontainer":9}],28:[function(A,t,e){t.exports=function(A){return new Promise((function(t,e){var r=new XMLHttpRequest;r.open("GET",A),r.onload=function(){200===r.status?t(r.responseText):e(new Error(r.statusText))},r.onerror=function(){e(new Error("Network Error"))},r.send()}))}},{}]},{},[4])(4)})),function(A){var t="+".charCodeAt(0),e="/".charCodeAt(0),r="0".charCodeAt(0),n="a".charCodeAt(0),i="A".charCodeAt(0),o="-".charCodeAt(0),s="_".charCodeAt(0),a=function(A){var a=A.charCodeAt(0);return a===t||a===o?62:a===e||a===s?63:a<r?-1:a<r+10?a-r+26+26:a<i+26?a-i:a<n+26?a-n+26:void 0};A.API.TTFFont=function(){function A(A,t,e){var r;if(this.rawData=A,r=this.contents=new l(A),this.contents.pos=4,"ttcf"===r.readString(4)){if(!t)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+t+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new E(this),this.registerTTF()}return A.open=function(t,e,r,n){return new A(function(A){var t,e,r,n,i,o;if(0<A.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=A.length;i="="===A.charAt(s-2)?2:"="===A.charAt(s-1)?1:0,o=new Uint8Array(3*A.length/4-i),r=0<i?A.length-4:A.length;var c=0;function l(A){o[c++]=A}for(e=t=0;t<r;t+=4,e+=3)l((16711680&(n=a(A.charAt(t))<<18|a(A.charAt(t+1))<<12|a(A.charAt(t+2))<<6|a(A.charAt(t+3))))>>16),l((65280&n)>>8),l(255&n);return 2===i?l(255&(n=a(A.charAt(t))<<2|a(A.charAt(t+1))>>4)):1===i&&(l((n=a(A.charAt(t))<<10|a(A.charAt(t+1))<<4|a(A.charAt(t+2))>>2)>>8&255),l(255&n)),o}(r),e,n)},A.prototype.parse=function(){return this.directory=new u(this.contents),this.head=new f(this),this.name=new C(this),this.cmap=new p(this),this.hhea=new B(this),this.maxp=new Q(this),this.hmtx=new F(this),this.post=new m(this),this.os2=new w(this),this.loca=new I(this),this.glyf=new v(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var A,t,e,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.bbox).length;t<e;t++)A=r[t],n.push(Math.round(A*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(e=255&(r=this.post.italic_angle),!0&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[A]:void 0)||0},A.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},A.prototype.widthOfString=function(A,t,e){var r,n,i,o,s;for(n=o=i=0,s=(A=""+A).length;0<=s?o<s:s<o;n=0<=s?++o:--o)r=A.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+e*(1e3/t)||0;return i*(t/1e3)},A.prototype.lineHeight=function(A,t){var e;return null==t&&(t=!1),e=t?this.lineGap:0,(this.ascender+e-this.decender)/1e3*A},A}();var c,l=function(){function A(A){this.data=null!=A?A:[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return 2147483648<=(A=this.readUInt32())?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return 32768<=(A=this.readUInt16())?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var t,e,r;for(e=[],t=r=0;0<=A?r<A:A<r;t=0<=A?++r:--r)e[t]=String.fromCharCode(this.readByte());return e.join("")},A.prototype.writeString=function(A){var t,e,r,n;for(n=[],t=e=0,r=A.length;0<=r?e<r:r<e;t=0<=r?++e:--e)n.push(this.writeByte(A.charCodeAt(t)));return n},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,t,e,r,n,i,o,s;return A=this.readByte(),t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^e)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*A+281474976710656*t+1099511627776*e+4294967296*r+16777216*n+65536*i+256*o+s},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var t,e;for(t=[],e=0;0<=A?e<A:A<e;0<=A?++e:--e)t.push(this.readByte());return t},A.prototype.write=function(A){var t,e,r,n;for(n=[],e=0,r=A.length;e<r;e++)t=A[e],n.push(this.writeByte(t));return n},A}(),u=function(){var A;function t(A){var t,e,r;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},e=0,r=this.tableCount;0<=r?e<r:r<e;0<=r?++e:--e)t={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var e,r,n,i,o,s,a,c,u,h,d,f,g;for(g in d=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(d)/s),i=Math.floor(u/s),c=16*d-u,(r=new l).writeInt(this.scalarType),r.writeShort(d),r.writeShort(u),r.writeShort(i),r.writeShort(c),n=16*d,a=r.pos+n,o=null,f=[],t)for(h=t[g],r.writeString(g),r.writeInt(A(h)),r.writeInt(a),r.writeInt(h.length),f=f.concat(h),"head"===g&&(o=a),a+=h.length;a%4;)f.push(0),a++;return r.write(f),e=2981146554-A(r.data),r.pos=o+8,r.writeUInt32(e),r.data},A=function(A){var t,e,r,n;for(A=U.call(A);A.length%4;)A.push(0);for(e=new l(A),r=t=0,n=A.length;r<n;r+=4)t+=e.readUInt32();return 4294967295&t},t}(),h={}.hasOwnProperty,d=function(A,t){for(var e in t)h.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};c=function(){function A(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var f=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="head",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},t}(),g=function(){function A(A,t){var e,r,n,i,o,s,a,c,l,u,h,d,f,g,p,B,w,m;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),l=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=p=0;p<256;s=++p)this.codeMap[s]=A.readByte();break;case 4:for(h=A.readUInt16(),u=h/2,A.pos+=6,n=function(){var t,e;for(e=[],s=t=0;0<=u?t<u:u<t;s=0<=u?++t:--t)e.push(A.readUInt16());return e}(),A.pos+=2,f=function(){var t,e;for(e=[],s=t=0;0<=u?t<u:u<t;s=0<=u?++t:--t)e.push(A.readUInt16());return e}(),a=function(){var t,e;for(e=[],s=t=0;0<=u?t<u:u<t;s=0<=u?++t:--t)e.push(A.readUInt16());return e}(),c=function(){var t,e;for(e=[],s=t=0;0<=u?t<u:u<t;s=0<=u?++t:--t)e.push(A.readUInt16());return e}(),r=(this.length-A.pos+this.offset)/2,o=function(){var t,e;for(e=[],s=t=0;0<=r?t<r:r<t;s=0<=r?++t:--t)e.push(A.readUInt16());return e}(),s=B=0,m=n.length;B<m;s=++B)for(g=n[s],e=w=d=f[s];d<=g?w<=g:g<=w;e=d<=g?++w:--w)0===c[s]?i=e+a[s]:0!==(i=o[c[s]/2+(e-d)-(u-s)]||0)&&(i+=a[s]),this.codeMap[e]=65535&i}A.pos=l}return A.encode=function(A,t){var e,r,n,i,o,s,a,c,u,h,d,f,g,p,B,w,m,y,C,Q,F,U,v,b,x,I,E,H,S,k,L,D,T,K,O,_,M,P,R,N,G,V,q,j,X,W;switch(H=new l,i=Object.keys(A).sort((function(A,t){return A-t})),t){case"macroman":for(g=0,p=function(){var A,t;for(t=[],f=A=0;A<256;f=++A)t.push(0);return t}(),w={0:0},n={},S=0,T=i.length;S<T;S++)null==w[q=A[r=i[S]]]&&(w[q]=++g),n[r]={old:A[r],new:w[A[r]]},p[r]=w[A[r]];return H.writeUInt16(1),H.writeUInt16(0),H.writeUInt32(12),H.writeUInt16(0),H.writeUInt16(262),H.writeUInt16(0),H.write(p),{charMap:n,subtable:H.data,maxGlyphID:g+1};case"unicode":for(I=[],u=[],w={},e={},B=a=null,k=m=0,K=i.length;k<K;k++)null==w[C=A[r=i[k]]]&&(w[C]=++m),e[r]={old:C,new:w[C]},o=w[C]-r,null!=B&&o===a||(B&&u.push(B),I.push(r),a=o),B=r;for(B&&u.push(B),u.push(65535),I.push(65535),b=2*(v=I.length),U=2*Math.pow(Math.log(v)/Math.LN2,2),h=Math.log(U/2)/Math.LN2,F=2*v-U,s=[],Q=[],d=[],f=L=0,O=I.length;L<O;f=++L){if(x=I[f],c=u[f],65535===x){s.push(0),Q.push(0);break}if(32768<=x-(E=e[x].new))for(s.push(0),Q.push(2*(d.length+v-f)),r=D=x;x<=c?D<=c:c<=D;r=x<=c?++D:--D)d.push(e[r].new);else s.push(E-x),Q.push(0)}for(H.writeUInt16(3),H.writeUInt16(1),H.writeUInt32(12),H.writeUInt16(4),H.writeUInt16(16+8*v+2*d.length),H.writeUInt16(0),H.writeUInt16(b),H.writeUInt16(U),H.writeUInt16(h),H.writeUInt16(F),G=0,_=u.length;G<_;G++)r=u[G],H.writeUInt16(r);for(H.writeUInt16(0),V=0,M=I.length;V<M;V++)r=I[V],H.writeUInt16(r);for(j=0,P=s.length;j<P;j++)o=s[j],H.writeUInt16(o);for(X=0,R=Q.length;X<R;X++)y=Q[X],H.writeUInt16(y);for(W=0,N=d.length;W<N;W++)g=d[W],H.writeUInt16(g);return{charMap:e,subtable:H.data,maxGlyphID:m+1}}},A}(),p=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="cmap",t.prototype.parse=function(A){var t,e,r;for(A.pos=this.offset,this.version=A.readUInt16(),e=A.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=e?r<e:e<r;0<=e?++r:--r)t=new g(A,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(A,t){var e,r;return null==t&&(t="macroman"),e=g.encode(A,t),(r=new l).writeUInt16(0),r.writeUInt16(1),e.table=r.data.concat(e.subtable),e},t}(),B=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="hhea",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},t}(),w=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="OS/2",t.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var t,e;for(e=[],t=0;t<10;++t)e.push(A.readByte());return e}(),this.charRange=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(A.readInt());return e}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),0<this.version&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var t,e;for(e=[],t=0;t<2;++t)e.push(A.readInt());return e}(),1<this.version))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},t}(),m=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="post",t.prototype.parse=function(A){var t,e,r,n;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:break;case 131072:for(e=A.readUInt16(),this.glyphNameIndex=[],r=0;0<=e?r<e:e<r;0<=e?++r:--r)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],n=[];A.pos<this.offset+this.length;)t=A.readByte(),n.push(this.names.push(A.readString(t)));return n;case 151552:return e=A.readUInt16(),this.offsets=A.read(e);case 196608:break;case 262144:return this.map=function(){var t,e,r;for(r=[],t=0,e=this.file.maxp.numGlyphs;0<=e?t<e:e<t;0<=e?++t:--t)r.push(A.readUInt32());return r}.call(this)}},t}(),y=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},C=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="name",t.prototype.parse=function(A){var t,e,r,n,i,o,s,a,c,l,u,h;for(A.pos=this.offset,A.readShort(),t=A.readShort(),o=A.readShort(),e=[],n=c=0;0<=t?c<t:t<c;n=0<=t?++c:--c)e.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+o+A.readShort()});for(s={},n=l=0,u=e.length;l<u;n=++l)r=e[n],A.pos=r.offset,a=A.readString(r.length),i=new y(a,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(i);return this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5],this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,""),this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(),Q=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="maxp",t.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},t}(),F=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="hmtx",t.prototype.parse=function(A){var t,e,r,n,i,o,s;for(A.pos=this.offset,this.metrics=[],n=0,o=this.file.hhea.numberOfMetrics;0<=o?n<o:o<n;0<=o?++n:--n)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(e=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var t,r;for(r=[],t=0;0<=e?t<e:e<t;0<=e?++t:--t)r.push(A.readInt16());return r}(),this.widths=function(){var A,t,e,n;for(n=[],A=0,t=(e=this.metrics).length;A<t;A++)r=e[A],n.push(r.advance);return n}.call(this),t=this.widths[this.widths.length-1],s=[],i=0;0<=e?i<e:e<i;0<=e?++i:--i)s.push(this.widths.push(t));return s},t.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},t}(),U=[].slice,v=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="glyf",t.prototype.parse=function(A){return this.cache={}},t.prototype.glyphFor=function(A){var t,e,r,n,i,o,s,a,c,u;return(A=A)in this.cache?this.cache[A]:(n=this.file.loca,t=this.file.contents,e=n.indexOf(A),0===(r=n.lengthOf(A))?this.cache[A]=null:(t.pos=this.offset+e,i=(o=new l(t.read(r))).readShort(),a=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[A]=-1===i?new x(o,a,u,s,c):new b(o,i,a,u,s,c),this.cache[A]))},t.prototype.encode=function(A,t,e){var r,n,i,o,s;for(i=[],n=[],o=0,s=t.length;o<s;o++)r=A[t[o]],n.push(i.length),r&&(i=i.concat(r.encode(e)));return n.push(i.length),{table:i,offsets:n}},t}(),b=function(){function A(A,t,e,r,n,i){this.raw=A,this.numberOfContours=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),x=function(){function A(A,t,e,r,n){var i,o;for(this.raw=A,this.xMin=t,this.yMin=e,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readShort()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return A.prototype.encode=function(A){var t,e,r,n,i;for(e=new l(U.call(this.raw.data)),t=r=0,n=(i=this.glyphIDs).length;r<n;t=++r)i[t],e.pos=this.glyphOffsets[t];return e.data},A}(),I=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,c),t.prototype.tag="loca",t.prototype.parse=function(A){var t;return A.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,e,r;for(r=[],t=0,e=this.length;t<e;t+=2)r.push(2*A.readUInt16());return r}.call(this):function(){var t,e,r;for(r=[],t=0,e=this.length;t<e;t+=4)r.push(A.readUInt32());return r}.call(this)},t.prototype.indexOf=function(A){return this.offsets[A]},t.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},t.prototype.encode=function(A,t){for(var e=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<e.length;++i)if(e[i]=r,n<t.length&&t[n]==i){++n,e[i]=r;var o=this.offsets[i],s=this.offsets[i+1]-o;0<s&&(r+=s)}for(var a=new Array(4*e.length),c=0;c<e.length;++c)a[4*c+3]=255&e[c],a[4*c+2]=(65280&e[c])>>8,a[4*c+1]=(16711680&e[c])>>16,a[4*c]=(4278190080&e[c])>>24;return a},t}(),E=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,t,e,r,n;for(t in r=this.font.cmap.tables[0].codeMap,A={},n=this.subset)e=n[t],A[t]=r[e];return A},A.prototype.glyphsFor=function(A){var t,e,r,n,i,o,s;for(r={},i=0,o=A.length;i<o;i++)r[n=A[i]]=this.font.glyf.glyphFor(n);for(n in t=[],r)(null!=(e=r[n])?e.compound:void 0)&&t.push.apply(t,e.glyphIDs);if(0<t.length)for(n in s=this.glyphsFor(t))e=s[n],r[n]=e;return r},A.prototype.encode=function(A){var t,e,r,n,i,o,s,a,c,l,u,h,d,f,g;for(e in t=p.encode(this.generateCmap(),"unicode"),n=this.glyphsFor(A),u={0:0},g=t.charMap)u[(o=g[e]).old]=o.new;for(h in l=t.maxGlyphID,n)h in u||(u[h]=l++);return a=function(A){var t,e;for(t in e={},A)e[A[t]]=t;return e}(u),c=Object.keys(a).sort((function(A,t){return A-t})),d=function(){var A,t,e;for(e=[],A=0,t=c.length;A<t;A++)i=c[A],e.push(a[i]);return e}(),r=this.font.glyf.encode(n,d,u),s=this.font.loca.encode(r.offsets,d),f={cmap:this.font.cmap.raw(),glyf:r.table,loca:s,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.raw()},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},A}();A.API.PDFObject=function(){var A;function t(){}return A=function(A,t){return(Array(t+1).join("0")+A).slice(-t)},t.convert=function(e){var r,n,i,o;if(Array.isArray(e))return"["+function(){var A,n,i;for(i=[],A=0,n=e.length;A<n;A++)r=e[A],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof e)return"/"+e;if(null!=e?e.isString:void 0)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(e)){for(n in i=["<<"],e)o=e[n],i.push("/"+n+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+e},t}()}(sA),QA="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")(),FA=function(){var A,t,e;function r(A){var t,e,r,n,i,o,s,a,c,l,u,h,d,f;for(this.data=A,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(t=this.readUInt32(),c=function(){var A,t;for(t=[],A=0;A<4;++A)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),n=this.readUInt16()||100,o.delay=1e3*i/n,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,t-=4),A=(null!=o?o.data:void 0)||this.imgData,h=0;0<=t?h<t:t<h;0<=t?++h:--h)A.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(0<(l=r-this.transparency.indexed.length))for(d=0;0<=l?d<l:l<d;0<=l?++d:--d)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=(u=this.read(t)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,u.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===(f=this.colorType)||6===f,e=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*e,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.load=function(A,t,e){var n;return"function"==typeof t&&(e=t),(n=new XMLHttpRequest).open("GET",A,!0),n.responseType="arraybuffer",n.onload=function(){var A;return A=new r(new Uint8Array(n.response||n.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&A.render(t),"function"==typeof e?e(A):void 0},n.send(null)},r.prototype.read=function(A){var t,e;for(e=[],t=0;0<=A?t<A:A<t;0<=A?++t:--t)e.push(this.data[this.pos++]);return e},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(A){var t=this.pixelBitlength/8,e=new Uint8Array(this.width*this.height*t),r=0,n=this;if(null==A&&(A=this.imgData),0===A.length)return new Uint8Array(0);function i(i,o,s,a){var c,l,u,h,d,f,g,p,B,w,m,y,C,Q,F,U,v,b,x,I,E,H=Math.ceil((n.width-i)/s),S=Math.ceil((n.height-o)/a),k=n.width==H&&n.height==S;for(Q=t*H,y=k?e:new Uint8Array(Q*S),f=A.length,l=C=0;C<S&&r<f;){switch(A[r++]){case 0:for(h=v=0;v<Q;h=v+=1)y[l++]=A[r++];break;case 1:for(h=b=0;b<Q;h=b+=1)c=A[r++],d=h<t?0:y[l-t],y[l++]=(c+d)%256;break;case 2:for(h=x=0;x<Q;h=x+=1)c=A[r++],u=(h-h%t)/t,F=C&&y[(C-1)*Q+u*t+h%t],y[l++]=(F+c)%256;break;case 3:for(h=I=0;I<Q;h=I+=1)c=A[r++],u=(h-h%t)/t,d=h<t?0:y[l-t],F=C&&y[(C-1)*Q+u*t+h%t],y[l++]=(c+Math.floor((d+F)/2))%256;break;case 4:for(h=E=0;E<Q;h=E+=1)c=A[r++],u=(h-h%t)/t,d=h<t?0:y[l-t],0===C?F=U=0:(F=y[(C-1)*Q+u*t+h%t],U=u&&y[(C-1)*Q+(u-1)*t+h%t]),g=d+F-U,p=Math.abs(g-d),w=Math.abs(g-F),m=Math.abs(g-U),B=p<=w&&p<=m?d:w<=m?F:U,y[l++]=(c+B)%256;break;default:throw new Error("Invalid filter algorithm: "+A[r-1])}if(!k){var L=((o+C*a)*n.width+i)*t,D=C*Q;for(h=0;h<H;h+=1){for(var T=0;T<t;T+=1)e[L++]=y[D++];L+=(s-1)*t}}C++}}return A=(A=new HA(A)).getBytes(),1==n.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),e},r.prototype.decodePalette=function(){var A,t,e,r,n,i,o,s,a;for(e=this.palette,i=this.transparency.indexed||[],n=new Uint8Array((i.length||0)+e.length),r=0,e.length,t=o=A=0,s=e.length;o<s;t=o+=3)n[r++]=e[t],n[r++]=e[t+1],n[r++]=e[t+2],n[r++]=null!=(a=i[A++])?a:255;return n},r.prototype.copyToImageData=function(A,t){var e,r,n,i,o,s,a,c,l,u,h;if(r=this.colors,l=null,e=this.hasAlphaChannel,this.palette.length&&(l=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,e=!0),c=(n=A.data||A).length,o=l||t,i=s=0,1===r)for(;i<c;)a=l?4*t[i/4]:s,u=o[a++],n[i++]=u,n[i++]=u,n[i++]=u,n[i++]=e?o[a++]:255,s=a;else for(;i<c;)a=l?4*t[i/4]:s,n[i++]=o[a++],n[i++]=o[a++],n[i++]=o[a++],n[i++]=e?o[a++]:255,s=a},r.prototype.decode=function(){var A;return A=new Uint8Array(this.width*this.height*4),this.copyToImageData(A,this.decodePixels()),A};try{t=QA.document.createElement("canvas"),e=t.getContext("2d")}catch(s){return-1}return A=function(A){var r;return e.width=A.width,e.height=A.height,e.clearRect(0,0,A.width,A.height),e.putImageData(A,0,0),(r=new Image).src=t.toDataURL(),r},r.prototype.decodeFrames=function(t){var e,r,n,i,o,s,a,c;if(this.animation){for(c=[],r=o=0,s=(a=this.animation.frames).length;o<s;r=++o)e=a[r],n=t.createImageData(e.width,e.height),i=this.decodePixels(new Uint8Array(e.data)),this.copyToImageData(n,i),e.imageData=n,c.push(e.image=A(n));return c}},r.prototype.renderFrame=function(A,t){var e,r,n;return e=(r=this.animation.frames)[t],n=r[t-1],0===t&&A.clearRect(0,0,this.width,this.height),1===(null!=n?n.disposeOp:void 0)?A.clearRect(n.xOffset,n.yOffset,n.width,n.height):2===(null!=n?n.disposeOp:void 0)&&A.putImageData(n.imageData,n.xOffset,n.yOffset),0===e.blendOp&&A.clearRect(e.xOffset,e.yOffset,e.width,e.height),A.drawImage(e.image,e.xOffset,e.yOffset)},r.prototype.animate=function(A){var t,e,r,n,i,o,s=this;return e=0,o=this.animation,n=o.numFrames,r=o.frames,i=o.numPlays,(t=function(){var o,a;if(o=e++%n,a=r[o],s.renderFrame(A,o),1<n&&e/n<i)return s.animation._timeout=setTimeout(t,a.delay)})()},r.prototype.stopAnimation=function(){var A;return clearTimeout(null!=(A=this.animation)?A._timeout:void 0)},r.prototype.render=function(A){var t,e;return A._png&&A._png.stopAnimation(),A._png=this,A.width=this.width,A.height=this.height,t=A.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(e=t.createImageData(this.width,this.height),this.copyToImageData(e,this.decodePixels()),t.putImageData(e,0,0))},r}(),QA.PNG=FA;var EA=function(){function A(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return A.prototype={ensureBuffer:function(A){var t=this.buffer,e=t?t.byteLength:0;if(A<e)return t;for(var r=512;r<A;)r<<=1;for(var n=new Uint8Array(r),i=0;i<e;++i)n[i]=t[i];return this.buffer=n},getByte:function(){for(var A=this.pos;this.bufferLength<=A;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(A){var t=this.pos;if(A){this.ensureBuffer(t+A);for(var e=t+A;!this.eof&&this.bufferLength<e;)this.readBlock();var r=this.bufferLength;r<e&&(e=r)}else{for(;!this.eof;)this.readBlock();e=this.bufferLength}return this.pos=e,this.buffer.subarray(t,e)},lookChar:function(){for(var A=this.pos;this.bufferLength<=A;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var A=this.pos;this.bufferLength<=A;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(A,t,e){for(var r=A+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,A,t,e)},skip:function(A){A||(A=1),this.pos+=A},reset:function(){this.pos=0}},A}(),HA=function(){if("undefined"!=typeof Uint32Array){var A=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),e=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),r=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],n=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(o.prototype=Object.create(EA.prototype)).getBits=function(A){for(var t,e=this.codeSize,r=this.codeBuf,n=this.bytes,o=this.bytesPos;e<A;)void 0===(t=n[o++])&&i("Bad encoding in flate stream"),r|=t<<e,e+=8;return t=r&(1<<A)-1,this.codeBuf=r>>A,this.codeSize=e-=A,this.bytesPos=o,t},o.prototype.getCode=function(A){for(var t=A[0],e=A[1],r=this.codeSize,n=this.codeBuf,o=this.bytes,s=this.bytesPos;r<e;){var a;void 0===(a=o[s++])&&i("Bad encoding in flate stream"),n|=a<<r,r+=8}var c=t[n&(1<<e)-1],l=c>>16,u=65535&c;return(0==r||r<l||0==l)&&i("Bad encoding in flate stream"),this.codeBuf=n>>l,this.codeSize=r-l,this.bytesPos=s,u},o.prototype.generateHuffmanTable=function(A){for(var t=A.length,e=0,r=0;r<t;++r)A[r]>e&&(e=A[r]);for(var n=1<<e,i=new Uint32Array(n),o=1,s=0,a=2;o<=e;++o,s<<=1,a<<=1)for(var c=0;c<t;++c)if(A[c]==o){var l=0,u=s;for(r=0;r<o;++r)l=l<<1|1&u,u>>=1;for(r=l;r<n;r+=a)i[r]=o<<16|c;++s}return[i,e]},o.prototype.readBlock=function(){function o(A,t,e,r,n){for(var i=A.getBits(e)+r;0<i--;)t[f++]=n}var s=this.getBits(3);if(1&s&&(this.eof=!0),0!=(s>>=1)){var a,c;if(1==s)a=r,c=n;else if(2==s){for(var l=this.getBits(5)+257,u=this.getBits(5)+1,h=this.getBits(4)+4,d=Array(A.length),f=0;f<h;)d[A[f++]]=this.getBits(3);for(var g=this.generateHuffmanTable(d),p=0,B=(f=0,l+u),w=new Array(B);f<B;){var m=this.getCode(g);16==m?o(this,w,2,3,p):17==m?o(this,w,3,3,p=0):18==m?o(this,w,7,11,p=0):w[f++]=p=m}a=this.generateHuffmanTable(w.slice(0,l)),c=this.generateHuffmanTable(w.slice(l,B))}else i("Unknown block type in flate stream");for(var y=(k=this.buffer)?k.length:0,C=this.bufferLength;;){var Q=this.getCode(a);if(Q<256)y<=C+1&&(y=(k=this.ensureBuffer(C+1)).length),k[C++]=Q;else{if(256==Q)return void(this.bufferLength=C);var F=(Q=t[Q-=257])>>16;0<F&&(F=this.getBits(F)),p=(65535&Q)+F,Q=this.getCode(c),0<(F=(Q=e[Q])>>16)&&(F=this.getBits(F));var U=(65535&Q)+F;y<=C+p&&(y=(k=this.ensureBuffer(C+p)).length);for(var v=0;v<p;++v,++C)k[C]=k[C-U]}}}else{var b,x=this.bytes,I=this.bytesPos;void 0===(b=x[I++])&&i("Bad block header in flate stream");var E=b;void 0===(b=x[I++])&&i("Bad block header in flate stream"),E|=b<<8,void 0===(b=x[I++])&&i("Bad block header in flate stream");var H=b;void 0===(b=x[I++])&&i("Bad block header in flate stream"),(H|=b<<8)!=(65535&~E)&&i("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var S=this.bufferLength,k=this.ensureBuffer(S+E),L=S+E;this.bufferLength=L;for(var D=S;D<L;++D){if(void 0===(b=x[I++])){this.eof=!0;break}k[D]=b}this.bytesPos=I}},o}function i(A){throw new Error(A)}function o(A){var t=0,e=A[t++],r=A[t++];-1!=e&&-1!=r||i("Invalid header in flate stream"),8!=(15&e)&&i("Unknown compression method in flate stream"),((e<<8)+r)%31!=0&&i("Bad FCHECK in flate stream"),32&r&&i("FDICT bit set in flate stream"),this.bytes=A,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,EA.call(this)}}();return function(A){if("object"!=typeof A.console){A.console={};for(var t,e,r=A.console,n=function(){},i=["memory"],o="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=i.pop();)r[t]||(r[t]={});for(;e=o.pop();)r[e]||(r[e]=n)}var s,a,c,l,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===A.btoa&&(A.btoa=function(A){var t,e,r,n,i,o=0,s=0,a="",c=[];if(!A)return A;for(;t=(i=A.charCodeAt(o++)<<16|A.charCodeAt(o++)<<8|A.charCodeAt(o++))>>18&63,e=i>>12&63,r=i>>6&63,n=63&i,c[s++]=u.charAt(t)+u.charAt(e)+u.charAt(r)+u.charAt(n),o<A.length;);a=c.join("");var l=A.length%3;return(l?a.slice(0,l-3):a)+"===".slice(l||3)}),void 0===A.atob&&(A.atob=function(A){var t,e,r,n,i,o,s=0,a=0,c=[];if(!A)return A;for(A+="";t=(o=u.indexOf(A.charAt(s++))<<18|u.indexOf(A.charAt(s++))<<12|(n=u.indexOf(A.charAt(s++)))<<6|(i=u.indexOf(A.charAt(s++))))>>16&255,e=o>>8&255,r=255&o,c[a++]=64==n?String.fromCharCode(t):64==i?String.fromCharCode(t,e):String.fromCharCode(t,e,r),s<A.length;);return c.join("")}),Array.prototype.map||(Array.prototype.map=function(A){if(null==this||"function"!=typeof A)throw new TypeError;for(var t=Object(this),e=t.length>>>0,r=new Array(e),n=1<arguments.length?arguments[1]:void 0,i=0;i<e;i++)i in t&&(r[i]=A.call(n,t[i],i,t));return r}),Array.isArray||(Array.isArray=function(A){return"[object Array]"===Object.prototype.toString.call(A)}),Array.prototype.forEach||(Array.prototype.forEach=function(A,t){if(null==this||"function"!=typeof A)throw new TypeError;for(var e=Object(this),r=e.length>>>0,n=0;n<r;n++)n in e&&A.call(t,e[n],n,e)}),Object.keys||(Object.keys=(s=Object.prototype.hasOwnProperty,a=!{toString:null}.propertyIsEnumerable("toString"),l=(c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(A){if("object"!=typeof A&&("function"!=typeof A||null===A))throw new TypeError;var t,e,r=[];for(t in A)s.call(A,t)&&r.push(t);if(a)for(e=0;e<l;e++)s.call(A,c[e])&&r.push(c[e]);return r})),"function"!=typeof Object.assign&&(Object.assign=function(A){if(null==A)throw new TypeError("Cannot convert undefined or null to object");A=Object(A);for(var t=1;t<arguments.length;t++){var e=arguments[t];if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r])}return A}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")})}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),sA}))}).call(this,e("c8ba"),e("4362"))},e6c9:function(A,t,e){},f1f8:function(A,t,e){"use strict";e.r(t);var r=function(){var A=this,t=A._self._c;return t("div",[t("div",{},[t("div",{staticClass:"row justify-content-center"},[t("div",{attrs:{id:"template"}},[A.certificate?t("div",{domProps:{innerHTML:A._s(A.certificate.certificate)}}):A._e()])])])])},n=[],i=e("d67e"),o=e.n(i),s={name:"VirtualClassroomDetallecertificado",data(){return{informacion:[],certificado:[],cursos:[],nombre:"",apellido:""}},props:{certificate:{type:Object}},mounted(){},methods:{async createPDF(){let A=document.getElementById("template");o()().from(A).set({filename:"certificate.pdf",image:{type:"png",quality:.98},html2canvas:{dpi:192,letterRendering:!0,useCORS:!0},jsPDF:{unit:"in",format:"letter",orientation:"landscape"}}).save()}},created(){}},a=s,c=(e("38f8"),e("2877")),l=Object(c["a"])(a,r,n,!1,null,"048df286",null);t["default"]=l.exports}}]);
//# sourceMappingURL=chunk-09437294.1c4547f4.js.map