const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es.BZwjJBOP.js","assets/index.D93ign_E.js","assets/vue.D1BjjNmv.js","assets/index.CPIWeYSE.css","assets/echarts.BCoidMgp.js","assets/_plugin-vue_export-helper.DlAUqK2U.js"])))=>i.map(i=>d[i]);
import{i as p1,t as w1,u as v1,a as m1,b as C1,c as Q1,d as F1,f as y1,g as b1,h as U1}from"./echarts.BCoidMgp.js";import{a as L1,ai as E1,s as Kl,i as po,ag as x1,f as Pi,g as I1,w as wo,l as sh,q as _1,Z as H1,t as S1,y as N1,u as D1,aj as Vn,c as qA,o as jA,S as Jr,Q as OA,b as D,M as Yt,P as Xr,R as dt,a9 as Mt,G as bt,F as Tu,aI as Pu,K as jn,L as T1,T as P1,J as Ou}from"./vue.D1BjjNmv.js";import{_ as wc,E as O1}from"./index.D93ign_E.js";import{_ as k1}from"./_plugin-vue_export-helper.DlAUqK2U.js";const M1=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function K1(e){function A(r){return(...n)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,n)}}function t(){const r=Object.create(null);return M1.forEach(n=>{r[n]=A(n)}),r}return t()}function R1(e,A,t){wo([t,e,A],([r,n,i],a,l)=>{let c=null;if(r&&n&&i){const{offsetWidth:d,offsetHeight:g}=r,B=i===!0?{}:i,{throttle:w=100,onResize:h}=B;let F=!1;const m=()=>{n.resize(),h==null||h()},_=w?w1(m,w):m;c=new ResizeObserver(()=>{!F&&(F=!0,r.offsetWidth===d&&r.offsetHeight===g)||_()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const V1={autoresize:[Boolean,Object]},j1=/^on[^a-z]/,ah=e=>j1.test(e);function G1(e){const A={};for(const t in e)ah(t)||(A[t]=e[t]);return A}function vo(e,A){const t=N1(e)?D1(e):e;return t&&typeof t=="object"&&"value"in t?t.value||A:t||A}const q1="ecLoadingOptions";function W1(e,A,t){const r=po(q1,{}),n=Pi(()=>({...vo(r,{}),...t==null?void 0:t.value}));sh(()=>{const i=e.value;i&&(A.value?i.showLoading(n.value):i.hideLoading())})}const J1={loading:Boolean,loadingOptions:Object};let Ls=null;const oh="x-vue-echarts";function X1(){if(Ls!=null)return Ls;if(typeof HTMLElement>"u"||typeof customElements>"u")return Ls=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(oh)}catch{return Ls=!1}return Ls=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
`;const z1=X1(),Y1="ecTheme",Z1="ecInitOptions",$1="ecUpdateOptions",ku=/(^&?~?!?)native:/;var Ag=L1({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...V1,...J1},emits:{},inheritAttrs:!1,setup(e,{attrs:A}){const t=Kl(),r=Kl(),n=Kl(),i=po(Y1,null),a=po(Z1,null),l=po($1,null),{autoresize:c,manualUpdate:d,loading:g,loadingOptions:B}=x1(e),w=Pi(()=>n.value||e.option||null),h=Pi(()=>e.theme||vo(i,{})),F=Pi(()=>e.initOptions||vo(a,{})),m=Pi(()=>e.updateOptions||vo(l,{})),_=Pi(()=>G1(A)),Q={},E=I1().proxy.$listeners,K={};E?Object.keys(E).forEach(G=>{ku.test(G)?Q[G.replace(ku,"$1")]=E[G]:K[G]=E[G]}):Object.keys(A).filter(G=>ah(G)).forEach(G=>{let rA=G.charAt(2).toLowerCase()+G.slice(3);if(rA.indexOf("native:")===0){const I=`on${rA.charAt(7).toUpperCase()}${rA.slice(8)}`;Q[I]=A[G];return}rA.substring(rA.length-4)==="Once"&&(rA=`~${rA.substring(0,rA.length-4)}`),K[rA]=A[G]});function V(G){if(!t.value)return;const rA=r.value=p1(t.value,h.value,F.value);e.group&&(rA.group=e.group),Object.keys(K).forEach(R=>{let k=K[R];if(!k)return;let oA=R.toLowerCase();oA.charAt(0)==="~"&&(oA=oA.substring(1),k.__once__=!0);let nA=rA;if(oA.indexOf("zr:")===0&&(nA=rA.getZr(),oA=oA.substring(3)),k.__once__){delete k.__once__;const cA=k;k=(...tA)=>{cA(...tA),nA.off(oA,k)}}nA.on(oA,k)});function I(){rA&&!rA.isDisposed()&&rA.resize()}function H(){const R=G||w.value;R&&rA.setOption(R,m.value)}c.value?S1(()=>{I(),H()}):H()}function X(G,rA){e.manualUpdate&&(n.value=G),r.value?r.value.setOption(G,rA||{}):V(G)}function Y(){r.value&&(r.value.dispose(),r.value=void 0)}let $=null;wo(d,G=>{typeof $=="function"&&($(),$=null),G||($=wo(()=>e.option,(rA,I)=>{rA&&(r.value?r.value.setOption(rA,{notMerge:rA!==I,...m.value}):V())},{deep:!0}))},{immediate:!0}),wo([h,F],()=>{Y(),V()},{deep:!0}),sh(()=>{e.group&&r.value&&(r.value.group=e.group)});const O=K1(r);return W1(r,g,B),R1(r,c,t),_1(()=>{V()}),H1(()=>{z1&&t.value?t.value.__dispose=Y:Y()}),{chart:r,root:t,setOption:X,nonEventAttrs:_,nativeListeners:Q,...O}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",E1(oh,e)}});/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
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 vc=function(e,A){return vc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},vc(e,A)};function pr(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");vc(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var mc=function(){return mc=Object.assign||function(A){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},mc.apply(this,arguments)};function Ut(e,A,t,r){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(g){try{d(r.next(g))}catch(B){a(B)}}function c(g){try{d(r.throw(g))}catch(B){a(B)}}function d(g){g.done?i(g.value):n(g.value).then(l,c)}d((r=r.apply(e,[])).next())})}function vt(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(d){return function(g){return c([d,g])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=A.call(e,t)}catch(g){d=[6,g],n=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Va(e,A,t){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}var An=function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Mo=function(e,A){return An.fromClientRect(e,A.getBoundingClientRect())},eg=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new An(0,0,r,n)},Ko=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},Ve=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Mu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ja=0;ja<Mu.length;ja++)tg[Mu.charCodeAt(ja)]=ja;var Ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ns=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ga=0;Ga<Ku.length;Ga++)Ns[Ku.charCodeAt(Ga)]=Ga;var rg=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,l,c;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(d)?d:new Uint8Array(d);for(r=0;r<t;r+=4)i=Ns[e.charCodeAt(r)],a=Ns[e.charCodeAt(r+1)],l=Ns[e.charCodeAt(r+2)],c=Ns[e.charCodeAt(r+3)],g[n++]=i<<2|a>>4,g[n++]=(a&15)<<4|l>>2,g[n++]=(l&3)<<6|c&63;return d},ng=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},ig=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},zn=5,$c=11,Rl=2,sg=$c-zn,lh=65536>>zn,ag=1<<zn,Vl=ag-1,og=1024>>zn,lg=lh+og,cg=lg,ug=32,fg=cg+ug,hg=65536>>$c,dg=1<<sg,gg=dg-1,Ru=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},Bg=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},pg=function(e,A){var t=rg(e),r=Array.isArray(t)?ig(t):new Uint32Array(t),n=Array.isArray(t)?ng(t):new Uint16Array(t),i=24,a=Ru(n,i/2,r[4]/2),l=r[5]===2?Ru(n,(i+r[4])/2):Bg(r,Math.ceil((i+r[4])/4));return new wg(r[0],r[1],r[2],r[3],a,l)},wg=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>zn],t=(t<<Rl)+(A&Vl),this.data[t];if(A<=65535)return t=this.index[lh+(A-55296>>zn)],t=(t<<Rl)+(A&Vl),this.data[t];if(A<this.highStart)return t=fg-hg+(A>>$c),t=this.index[t],t+=A>>zn&gg,t=this.index[t],t=(t<<Rl)+(A&Vl),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var qa=0;qa<Vu.length;qa++)vg[Vu.charCodeAt(qa)]=qa;var mg="[encoded data, 52888 characters]",ju=50,Cg=1,ch=2,uh=3,Qg=4,Fg=5,Gu=7,fh=8,qu=9,Cn=10,Cc=11,Wu=12,Qc=13,yg=14,Ds=15,Fc=16,Wa=17,Es=18,bg=19,Ju=20,yc=21,xs=22,jl=23,xi=24,Kt=25,Ts=26,Ps=27,Ii=28,Ug=29,Wn=30,Lg=31,Ja=32,Xa=33,bc=34,Uc=35,Lc=36,Ws=37,Ec=38,mo=39,Co=40,Gl=41,hh=42,Eg=43,xg=[9001,65288],dh="!",le="×",za="÷",xc=pg(mg),zr=[Wn,Lc],Ic=[Cg,ch,uh,Fg],gh=[Cn,fh],Xu=[Ps,Ts],Ig=Ic.concat(gh),zu=[Ec,mo,Co,bc,Uc],_g=[Ds,Qc],Hg=function(e,A){A===void 0&&(A="strict");var t=[],r=[],n=[];return e.forEach(function(i,a){var l=xc.get(i);if(l>ju?(n.push(!0),l-=ju):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),t.push(Fc);if(l===Qg||l===Cc){if(a===0)return r.push(a),t.push(Wn);var c=t[a-1];return Ig.indexOf(c)===-1?(r.push(r[a-1]),t.push(c)):(r.push(a),t.push(Wn))}if(r.push(a),l===Lg)return t.push(A==="strict"?yc:Ws);if(l===hh||l===Ug)return t.push(Wn);if(l===Eg)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(Ws):t.push(Wn);t.push(l)}),[r,t,n]},ql=function(e,A,t,r){var n=r[t];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var i=t;i<=r.length;){i++;var a=r[i];if(a===A)return!0;if(a!==Cn)break}if(n===Cn)for(var i=t;i>0;){i--;var l=r[i];if(Array.isArray(e)?e.indexOf(l)!==-1:e===l)for(var c=t;c<=r.length;){c++;var a=r[c];if(a===A)return!0;if(a!==Cn)break}if(l!==Cn)break}return!1},Yu=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===Cn)t--;else return r}return 0},Sg=function(e,A,t,r,n){if(t[r]===0)return le;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return le;var a=i-1,l=i+1,c=A[i],d=a>=0?A[a]:0,g=A[l];if(c===ch&&g===uh)return le;if(Ic.indexOf(c)!==-1)return dh;if(Ic.indexOf(g)!==-1||gh.indexOf(g)!==-1)return le;if(Yu(i,A)===fh)return za;if(xc.get(e[i])===Cc||(c===Ja||c===Xa)&&xc.get(e[l])===Cc||c===Gu||g===Gu||c===qu||[Cn,Qc,Ds].indexOf(c)===-1&&g===qu||[Wa,Es,bg,xi,Ii].indexOf(g)!==-1||Yu(i,A)===xs||ql(jl,xs,i,A)||ql([Wa,Es],yc,i,A)||ql(Wu,Wu,i,A))return le;if(c===Cn)return za;if(c===jl||g===jl)return le;if(g===Fc||c===Fc)return za;if([Qc,Ds,yc].indexOf(g)!==-1||c===yg||d===Lc&&_g.indexOf(c)!==-1||c===Ii&&g===Lc||g===Ju||zr.indexOf(g)!==-1&&c===Kt||zr.indexOf(c)!==-1&&g===Kt||c===Ps&&[Ws,Ja,Xa].indexOf(g)!==-1||[Ws,Ja,Xa].indexOf(c)!==-1&&g===Ts||zr.indexOf(c)!==-1&&Xu.indexOf(g)!==-1||Xu.indexOf(c)!==-1&&zr.indexOf(g)!==-1||[Ps,Ts].indexOf(c)!==-1&&(g===Kt||[xs,Ds].indexOf(g)!==-1&&A[l+1]===Kt)||[xs,Ds].indexOf(c)!==-1&&g===Kt||c===Kt&&[Kt,Ii,xi].indexOf(g)!==-1)return le;if([Kt,Ii,xi,Wa,Es].indexOf(g)!==-1)for(var B=i;B>=0;){var w=A[B];if(w===Kt)return le;if([Ii,xi].indexOf(w)!==-1)B--;else break}if([Ps,Ts].indexOf(g)!==-1)for(var B=[Wa,Es].indexOf(c)!==-1?a:i;B>=0;){var w=A[B];if(w===Kt)return le;if([Ii,xi].indexOf(w)!==-1)B--;else break}if(Ec===c&&[Ec,mo,bc,Uc].indexOf(g)!==-1||[mo,bc].indexOf(c)!==-1&&[mo,Co].indexOf(g)!==-1||[Co,Uc].indexOf(c)!==-1&&g===Co||zu.indexOf(c)!==-1&&[Ju,Ts].indexOf(g)!==-1||zu.indexOf(g)!==-1&&c===Ps||zr.indexOf(c)!==-1&&zr.indexOf(g)!==-1||c===xi&&zr.indexOf(g)!==-1||zr.concat(Kt).indexOf(c)!==-1&&g===xs&&xg.indexOf(e[l])===-1||zr.concat(Kt).indexOf(g)!==-1&&c===Es)return le;if(c===Gl&&g===Gl){for(var h=t[i],F=1;h>0&&(h--,A[h]===Gl);)F++;if(F%2!==0)return le}return c===Ja&&g===Xa?le:za},Ng=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=Hg(e,A.lineBreak),r=t[0],n=t[1],i=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(l){return[Kt,Wn,hh].indexOf(l)!==-1?Ws:l}));var a=A.wordBreak==="keep-all"?i.map(function(l,c){return l&&e[c]>=19968&&e[c]<=40959}):void 0;return[r,n,a]},Dg=function(){function e(A,t,r,n){this.codePoints=A,this.required=t===dh,this.start=r,this.end=n}return e.prototype.slice=function(){return Ve.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Tg=function(e,A){var t=Ko(e),r=Ng(t,A),n=r[0],i=r[1],a=r[2],l=t.length,c=0,d=0;return{next:function(){if(d>=l)return{done:!0,value:null};for(var g=le;d<l&&(g=Sg(t,i,n,++d,a))===le;);if(g!==le||d===l){var B=new Dg(t,g,c,d);return c=d,{value:B,done:!1}}return{done:!0,value:null}}}},Pg=1,Og=2,Ys=4,Zu=8,Eo=10,$u=47,Ks=92,kg=9,Mg=32,Ya=34,Is=61,Kg=35,Rg=36,Vg=37,Za=39,$a=40,_s=41,jg=95,St=45,Gg=33,qg=60,Wg=62,Jg=64,Xg=91,zg=93,Yg=61,Zg=123,Ao=63,$g=125,Af=124,A0=126,e0=128,ef=65533,Wl=42,Xn=43,t0=44,r0=58,n0=59,Js=46,i0=0,s0=8,a0=11,o0=14,l0=31,c0=127,Ir=-1,Bh=48,ph=97,wh=101,u0=102,f0=117,h0=122,vh=65,mh=69,Ch=70,d0=85,g0=90,mt=function(e){return e>=Bh&&e<=57},B0=function(e){return e>=55296&&e<=57343},_i=function(e){return mt(e)||e>=vh&&e<=Ch||e>=ph&&e<=u0},p0=function(e){return e>=ph&&e<=h0},w0=function(e){return e>=vh&&e<=g0},v0=function(e){return p0(e)||w0(e)},m0=function(e){return e>=e0},eo=function(e){return e===Eo||e===kg||e===Mg},xo=function(e){return v0(e)||m0(e)||e===jg},tf=function(e){return xo(e)||mt(e)||e===St},C0=function(e){return e>=i0&&e<=s0||e===a0||e>=o0&&e<=l0||e===c0},mn=function(e,A){return e!==Ks?!1:A!==Eo},to=function(e,A,t){return e===St?xo(A)||mn(A,t):xo(e)?!0:!!(e===Ks&&mn(e,A))},Jl=function(e,A,t){return e===Xn||e===St?mt(A)?!0:A===Js&&mt(t):mt(e===Js?A:e)},Q0=function(e){var A=0,t=1;(e[A]===Xn||e[A]===St)&&(e[A]===St&&(t=-1),A++);for(var r=[];mt(e[A]);)r.push(e[A++]);var n=r.length?parseInt(Ve.apply(void 0,r),10):0;e[A]===Js&&A++;for(var i=[];mt(e[A]);)i.push(e[A++]);var a=i.length,l=a?parseInt(Ve.apply(void 0,i),10):0;(e[A]===mh||e[A]===wh)&&A++;var c=1;(e[A]===Xn||e[A]===St)&&(e[A]===St&&(c=-1),A++);for(var d=[];mt(e[A]);)d.push(e[A++]);var g=d.length?parseInt(Ve.apply(void 0,d),10):0;return t*(n+l*Math.pow(10,-a))*Math.pow(10,c*g)},F0={type:2},y0={type:3},b0={type:4},U0={type:13},L0={type:8},E0={type:21},x0={type:9},I0={type:10},_0={type:11},H0={type:12},S0={type:14},ro={type:23},N0={type:1},D0={type:25},T0={type:24},P0={type:26},O0={type:27},k0={type:28},M0={type:29},K0={type:31},_c={type:32},Qh=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Ko(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==_c;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Ya:return this.consumeStringToken(Ya);case Kg:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(tf(t)||mn(r,n)){var i=to(t,r,n)?Og:Pg,a=this.consumeName();return{type:5,value:a,flags:i}}break;case Rg:if(this.peekCodePoint(0)===Is)return this.consumeCodePoint(),U0;break;case Za:return this.consumeStringToken(Za);case $a:return F0;case _s:return y0;case Wl:if(this.peekCodePoint(0)===Is)return this.consumeCodePoint(),S0;break;case Xn:if(Jl(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case t0:return b0;case St:var l=A,c=this.peekCodePoint(0),d=this.peekCodePoint(1);if(Jl(l,c,d))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(to(l,c,d))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===St&&d===Wg)return this.consumeCodePoint(),this.consumeCodePoint(),T0;break;case Js:if(Jl(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case $u:if(this.peekCodePoint(0)===Wl)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Wl&&(g=this.consumeCodePoint(),g===$u))return this.consumeToken();if(g===Ir)return this.consumeToken()}break;case r0:return P0;case n0:return O0;case qg:if(this.peekCodePoint(0)===Gg&&this.peekCodePoint(1)===St&&this.peekCodePoint(2)===St)return this.consumeCodePoint(),this.consumeCodePoint(),D0;break;case Jg:var B=this.peekCodePoint(0),w=this.peekCodePoint(1),h=this.peekCodePoint(2);if(to(B,w,h)){var a=this.consumeName();return{type:7,value:a}}break;case Xg:return k0;case Ks:if(mn(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case zg:return M0;case Yg:if(this.peekCodePoint(0)===Is)return this.consumeCodePoint(),L0;break;case Zg:return _0;case $g:return H0;case f0:case d0:var F=this.peekCodePoint(0),m=this.peekCodePoint(1);return F===Xn&&(_i(m)||m===Ao)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Af:if(this.peekCodePoint(0)===Is)return this.consumeCodePoint(),x0;if(this.peekCodePoint(0)===Af)return this.consumeCodePoint(),E0;break;case A0:if(this.peekCodePoint(0)===Is)return this.consumeCodePoint(),I0;break;case Ir:return _c}return eo(A)?(this.consumeWhiteSpace(),K0):mt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):xo(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:Ve(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();_i(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===Ao&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(Ve.apply(void 0,A.map(function(c){return c===Ao?Bh:c})),16),i=parseInt(Ve.apply(void 0,A.map(function(c){return c===Ao?Ch:c})),16);return{type:30,start:n,end:i}}var a=parseInt(Ve.apply(void 0,A),16);if(this.peekCodePoint(0)===St&&_i(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var l=[];_i(t)&&l.length<6;)l.push(t),t=this.consumeCodePoint();var i=parseInt(Ve.apply(void 0,l),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===$a?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===$a?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ir)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Za||t===Ya){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ir||this.peekCodePoint(0)===_s)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),ro)}for(;;){var n=this.consumeCodePoint();if(n===Ir||n===_s)return{type:22,value:Ve.apply(void 0,A)};if(eo(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ir||this.peekCodePoint(0)===_s?(this.consumeCodePoint(),{type:22,value:Ve.apply(void 0,A)}):(this.consumeBadUrlRemnants(),ro);if(n===Ya||n===Za||n===$a||C0(n))return this.consumeBadUrlRemnants(),ro;if(n===Ks)if(mn(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ro;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;eo(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===_s||A===Ir)return;mn(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var n=Math.min(t,A);r+=Ve.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var n=this._value[r];if(n===Ir||n===void 0||n===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===Eo)return this._value.splice(0,r),N0;if(n===Ks){var i=this._value[r+1];i!==Ir&&i!==void 0&&(i===Eo?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):mn(n,i)&&(t+=this.consumeStringSlice(r),t+=Ve(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=Ys,r=this.peekCodePoint(0);for((r===Xn||r===St)&&A.push(this.consumeCodePoint());mt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Js&&mt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Zu;mt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===mh||r===wh)&&((n===Xn||n===St)&&mt(i)||mt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Zu;mt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Q0(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(to(n,i,a)){var l=this.consumeName();return{type:15,number:t,flags:r,unit:l}}return n===Vg?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(_i(A)){for(var t=Ve(A);_i(this.peekCodePoint(0))&&t.length<6;)t+=Ve(this.consumeCodePoint());eo(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||B0(r)||r>1114111?ef:r}return A===Ir?ef:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(tf(t))A+=Ve(t);else if(mn(t,this.peekCodePoint(0)))A+=Ve(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e}(),Fh=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new Qh;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.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},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||V0(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?_c:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Zs=function(e){return e.type===15},zi=function(e){return e.type===17},Fe=function(e){return e.type===20},R0=function(e){return e.type===0},Hc=function(e,A){return Fe(e)&&e.value===A},yh=function(e){return e.type!==31},Xi=function(e){return e.type!==31&&e.type!==4},Nr=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},V0=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},Ln=function(e){return e.type===17||e.type===15},Ye=function(e){return e.type===16||Ln(e)},bh=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},ct={type:17,number:0,flags:Ys},Au={type:16,number:50,flags:Ys},Qn={type:16,number:100,flags:Ys},Os=function(e,A,t){var r=e[0],n=e[1];return[xe(r,A),xe(typeof n<"u"?n:r,t)]},xe=function(e,A){if(e.type===16)return e.number/100*A;if(Zs(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Uh="deg",Lh="grad",Eh="rad",xh="turn",Ro={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Uh:return Math.PI*A.number/180;case Lh:return Math.PI/200*A.number;case Eh:return A.number;case xh:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Ih=function(e){return e.type===15&&(e.unit===Uh||e.unit===Lh||e.unit===Eh||e.unit===xh)},_h=function(e){var A=e.filter(Fe).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ct,ct];case"to top":case"bottom":return Ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ct,Qn];case"to right":case"left":return Ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qn,Qn];case"to bottom":case"top":return Ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qn,ct];case"to left":case"right":return Ar(270)}return 0},Ar=function(e){return Math.PI*e/180},bn={name:"color",parse:function(e,A){if(A.type===18){var t=j0[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return Fn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),a=A.value.substring(3,4);return Fn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return Fn(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),a=A.value.substring(6,8);return Fn(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(A.type===20){var l=$r[A.value.toUpperCase()];if(typeof l<"u")return l}return $r.TRANSPARENT}},Un=function(e){return(255&e)===0},nt=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+r+","+t+","+A/255+")":"rgb("+n+","+r+","+t+")"},Fn=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},rf=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},nf=function(e,A){var t=A.filter(Xi);if(t.length===3){var r=t.map(rf),n=r[0],i=r[1],a=r[2];return Fn(n,i,a,1)}if(t.length===4){var l=t.map(rf),n=l[0],i=l[1],a=l[2],c=l[3];return Fn(n,i,a,c)}return 0};function Xl(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var sf=function(e,A){var t=A.filter(Xi),r=t[0],n=t[1],i=t[2],a=t[3],l=(r.type===17?Ar(r.number):Ro.parse(e,r))/(Math.PI*2),c=Ye(n)?n.number/100:0,d=Ye(i)?i.number/100:0,g=typeof a<"u"&&Ye(a)?xe(a,1):1;if(c===0)return Fn(d*255,d*255,d*255,1);var B=d<=.5?d*(c+1):d+c-d*c,w=d*2-B,h=Xl(w,B,l+1/3),F=Xl(w,B,l),m=Xl(w,B,l-1/3);return Fn(h*255,F*255,m*255,g)},j0={hsl:sf,hsla:sf,rgb:nf,rgba:nf},Rs=function(e,A){return bn.parse(e,Fh.create(A).parseComponentValue())},$r={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},G0={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(Fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},q0={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Vo=function(e,A){var t=bn.parse(e,A[0]),r=A[1];return r&&Ye(r)?{color:t,stop:r}:{color:t,stop:null}},af=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=ct),r.stop===null&&(r.stop=Qn);for(var n=[],i=0,a=0;a<e.length;a++){var l=e[a].stop;if(l!==null){var c=xe(l,A);c>i?n.push(c):n.push(i),i=c}else n.push(null)}for(var d=null,a=0;a<n.length;a++){var g=n[a];if(g===null)d===null&&(d=a);else if(d!==null){for(var B=a-d,w=n[d-1],h=(g-w)/(B+1),F=1;F<=B;F++)n[d+F-1]=h*F;d=null}}return e.map(function(m,_){var Q=m.color;return{color:Q,stop:Math.max(Math.min(1,n[_]/A),0)}})},W0=function(e,A,t){var r=A/2,n=t/2,i=xe(e[0],A)-r,a=n-xe(e[1],t);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},J0=function(e,A,t){var r=typeof e=="number"?e:W0(e,A,t),n=Math.abs(A*Math.sin(r))+Math.abs(t*Math.cos(r)),i=A/2,a=t/2,l=n/2,c=Math.sin(r-Math.PI/2)*l,d=Math.cos(r-Math.PI/2)*l;return[n,i-d,i+d,a-c,a+c]},gr=function(e,A){return Math.sqrt(e*e+A*A)},of=function(e,A,t,r,n){var i=[[0,0],[0,A],[e,0],[e,A]];return i.reduce(function(a,l){var c=l[0],d=l[1],g=gr(t-c,r-d);return(n?g<a.optimumDistance:g>a.optimumDistance)?{optimumCorner:l,optimumDistance:g}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},X0=function(e,A,t,r,n){var i=0,a=0;switch(e.size){case 0:e.shape===0?i=a=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),a=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(e.shape===0)i=a=Math.min(gr(A,t),gr(A,t-n),gr(A-r,t),gr(A-r,t-n));else if(e.shape===1){var l=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(A),Math.abs(A-r)),c=of(r,n,A,t,!0),d=c[0],g=c[1];i=gr(d-A,(g-t)/l),a=l*i}break;case 1:e.shape===0?i=a=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),a=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(e.shape===0)i=a=Math.max(gr(A,t),gr(A,t-n),gr(A-r,t),gr(A-r,t-n));else if(e.shape===1){var l=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(A),Math.abs(A-r)),B=of(r,n,A,t,!1),d=B[0],g=B[1];i=gr(d-A,(g-t)/l),a=l*i}break}return Array.isArray(e.size)&&(i=xe(e.size[0],r),a=e.size.length===2?xe(e.size[1],n):i),[i,a]},z0=function(e,A){var t=Ar(180),r=[];return Nr(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){t=_h(n);return}else if(Ih(a)){t=Ro.parse(e,a);return}}var l=Vo(e,n);r.push(l)}),{angle:t,stops:r,type:1}},no=function(e,A){var t=Ar(180),r=[];return Nr(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=_h(n);return}else if(Ih(a)){t=(Ro.parse(e,a)+Ar(270))%Ar(360);return}}var l=Vo(e,n);r.push(l)}),{angle:t,stops:r,type:1}},Y0=function(e,A){var t=Ar(180),r=[],n=1,i=0,a=3,l=[];return Nr(A).forEach(function(c,d){var g=c[0];if(d===0){if(Fe(g)&&g.value==="linear"){n=1;return}else if(Fe(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=bn.parse(e,g.values[0]);r.push({stop:ct,color:B})}else if(g.name==="to"){var B=bn.parse(e,g.values[0]);r.push({stop:Qn,color:B})}else if(g.name==="color-stop"){var w=g.values.filter(Xi);if(w.length===2){var B=bn.parse(e,w[1]),h=w[0];zi(h)&&r.push({stop:{type:16,number:h.number*100,flags:h.flags},color:B})}}}}),n===1?{angle:(t+Ar(180))%Ar(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:l,type:n}},Hh="closest-side",Sh="farthest-side",Nh="closest-corner",Dh="farthest-corner",Th="circle",Ph="ellipse",Oh="cover",kh="contain",Z0=function(e,A){var t=0,r=3,n=[],i=[];return Nr(A).forEach(function(a,l){var c=!0;if(l===0){var d=!1;c=a.reduce(function(B,w){if(d)if(Fe(w))switch(w.value){case"center":return i.push(Au),B;case"top":case"left":return i.push(ct),B;case"right":case"bottom":return i.push(Qn),B}else(Ye(w)||Ln(w))&&i.push(w);else if(Fe(w))switch(w.value){case Th:return t=0,!1;case Ph:return t=1,!1;case"at":return d=!0,!1;case Hh:return r=0,!1;case Oh:case Sh:return r=1,!1;case kh:case Nh:return r=2,!1;case Dh:return r=3,!1}else if(Ln(w)||Ye(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return B},c)}if(c){var g=Vo(e,a);n.push(g)}}),{size:r,shape:t,stops:n,position:i,type:2}},io=function(e,A){var t=0,r=3,n=[],i=[];return Nr(A).forEach(function(a,l){var c=!0;if(l===0?c=a.reduce(function(g,B){if(Fe(B))switch(B.value){case"center":return i.push(Au),!1;case"top":case"left":return i.push(ct),!1;case"right":case"bottom":return i.push(Qn),!1}else if(Ye(B)||Ln(B))return i.push(B),!1;return g},c):l===1&&(c=a.reduce(function(g,B){if(Fe(B))switch(B.value){case Th:return t=0,!1;case Ph:return t=1,!1;case kh:case Hh:return r=0,!1;case Sh:return r=1,!1;case Nh:return r=2,!1;case Oh:case Dh:return r=3,!1}else if(Ln(B)||Ye(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return g},c)),c){var d=Vo(e,a);n.push(d)}}),{size:r,shape:t,stops:n,position:i,type:2}},$0=function(e){return e.type===1},AB=function(e){return e.type===2},eu={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=Mh[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function eB(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Mh[e.name])}var Mh={"linear-gradient":z0,"-moz-linear-gradient":no,"-ms-linear-gradient":no,"-o-linear-gradient":no,"-webkit-linear-gradient":no,"radial-gradient":Z0,"-moz-radial-gradient":io,"-ms-radial-gradient":io,"-o-radial-gradient":io,"-webkit-radial-gradient":io,"-webkit-gradient":Y0},tB={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return Xi(r)&&eB(r)}).map(function(r){return eu.parse(e,r)})}},rB={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(Fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},nB={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return Nr(A).map(function(t){return t.filter(Ye)}).map(bh)}},iB={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return Nr(A).map(function(t){return t.filter(Fe).map(function(r){return r.value}).join(" ")}).map(sB)}},sB=function(e){switch(e){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}},ji;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ji||(ji={}));var aB={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return Nr(A).map(function(t){return t.filter(oB)})}},oB=function(e){return Fe(e)||Ye(e)},jo=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},lB=jo("top"),cB=jo("right"),uB=jo("bottom"),fB=jo("left"),Go=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return bh(t.filter(Ye))}}},hB=Go("top-left"),dB=Go("top-right"),gB=Go("bottom-right"),BB=Go("bottom-left"),qo=function(e){return{name:"border-"+e+"-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}}},pB=qo("top"),wB=qo("right"),vB=qo("bottom"),mB=qo("left"),Wo=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Zs(t)?t.number:0}}},CB=Wo("top"),QB=Wo("right"),FB=Wo("bottom"),yB=Wo("left"),bB={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},UB={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},LB={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(Fe).reduce(function(t,r){return t|EB(r.value)},0)}},EB=function(e){switch(e){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},xB={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},IB={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Io;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Io||(Io={}));var _B={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return Io.STRICT;case"normal":default:return Io.NORMAL}}},HB={name:"line-height",initialValue:"normal",prefix:!1,type:4},lf=function(e,A){return Fe(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:Ye(e)?xe(e,A):A},SB={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:eu.parse(e,A)}},NB={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Sc={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){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}}},Jo=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},DB=Jo("top"),TB=Jo("right"),PB=Jo("bottom"),OB=Jo("left"),kB={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(Fe).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},MB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Xo=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},KB=Xo("top"),RB=Xo("right"),VB=Xo("bottom"),jB=Xo("left"),GB={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},qB={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},WB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Hc(A[0],"none")?[]:Nr(A).map(function(t){for(var r={color:$r.TRANSPARENT,offsetX:ct,offsetY:ct,blur:ct},n=0,i=0;i<t.length;i++){var a=t[i];Ln(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=bn.parse(e,a)}return r})}},JB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},XB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var t=ZB[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},zB=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},YB=function(e){var A=e.filter(function(c){return c.type===17}).map(function(c){return c.number}),t=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var a=A[12],l=A[13];return A[14],A[15],A.length===16?[t,r,n,i,a,l]:null},ZB={matrix:zB,matrix3d:YB},cf={type:16,number:50,flags:Ys},$B=[cf,cf],Ap={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(Ye);return t.length!==2?$B:[t[0],t[1]]}},ep={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Vs;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Vs||(Vs={}));var tp={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Vs.BREAK_ALL;case"keep-all":return Vs.KEEP_ALL;case"normal":default:return Vs.NORMAL}}},rp={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(zi(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Kh={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},np={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return zi(A)?A.number:1}},ip={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},sp={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(Fe).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},ap={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},op={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},lp={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(zi(A))return A.number;if(Fe(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},cp={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(Fe).map(function(t){return t.value})}},up={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},At=function(e,A){return(e&A)!==0},fp={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},hp={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=A.filter(yh),i=0;i<n.length;i++){var a=n[i],l=n[i+1];if(a.type===20){var c=l&&zi(l)?l.number:1;r.push({counter:a.value,increment:c})}}return r}},dp={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var t=[],r=A.filter(yh),n=0;n<r.length;n++){var i=r[n],a=r[n+1];if(Fe(i)&&i.value!=="none"){var l=a&&zi(a)?a.number:0;t.push({counter:i.value,reset:l})}}return t}},gp={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Zs).map(function(t){return Kh.parse(e,t)})}},Bp={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;var r=[],n=A.filter(R0);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,l=n[i+1].value;r.push({open:a,close:l})}return r}},uf=function(e,A,t){if(!e)return"";var r=e[Math.min(A,e.length-1)];return r?t?r.open:r.close:""},pp={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Hc(A[0],"none")?[]:Nr(A).map(function(t){for(var r={color:255,offsetX:ct,offsetY:ct,blur:ct,spread:ct,inset:!1},n=0,i=0;i<t.length;i++){var a=t[i];Hc(a,"inset")?r.inset=!0:Ln(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=bn.parse(e,a)}return r})}},wp={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],r=[];return A.filter(Fe).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},vp={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mp={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Zs(A)?A.number:0}},Cp=function(){function e(A,t){var r,n;this.animationDuration=PA(A,gp,t.animationDuration),this.backgroundClip=PA(A,G0,t.backgroundClip),this.backgroundColor=PA(A,q0,t.backgroundColor),this.backgroundImage=PA(A,tB,t.backgroundImage),this.backgroundOrigin=PA(A,rB,t.backgroundOrigin),this.backgroundPosition=PA(A,nB,t.backgroundPosition),this.backgroundRepeat=PA(A,iB,t.backgroundRepeat),this.backgroundSize=PA(A,aB,t.backgroundSize),this.borderTopColor=PA(A,lB,t.borderTopColor),this.borderRightColor=PA(A,cB,t.borderRightColor),this.borderBottomColor=PA(A,uB,t.borderBottomColor),this.borderLeftColor=PA(A,fB,t.borderLeftColor),this.borderTopLeftRadius=PA(A,hB,t.borderTopLeftRadius),this.borderTopRightRadius=PA(A,dB,t.borderTopRightRadius),this.borderBottomRightRadius=PA(A,gB,t.borderBottomRightRadius),this.borderBottomLeftRadius=PA(A,BB,t.borderBottomLeftRadius),this.borderTopStyle=PA(A,pB,t.borderTopStyle),this.borderRightStyle=PA(A,wB,t.borderRightStyle),this.borderBottomStyle=PA(A,vB,t.borderBottomStyle),this.borderLeftStyle=PA(A,mB,t.borderLeftStyle),this.borderTopWidth=PA(A,CB,t.borderTopWidth),this.borderRightWidth=PA(A,QB,t.borderRightWidth),this.borderBottomWidth=PA(A,FB,t.borderBottomWidth),this.borderLeftWidth=PA(A,yB,t.borderLeftWidth),this.boxShadow=PA(A,pp,t.boxShadow),this.color=PA(A,bB,t.color),this.direction=PA(A,UB,t.direction),this.display=PA(A,LB,t.display),this.float=PA(A,xB,t.cssFloat),this.fontFamily=PA(A,ap,t.fontFamily),this.fontSize=PA(A,op,t.fontSize),this.fontStyle=PA(A,up,t.fontStyle),this.fontVariant=PA(A,cp,t.fontVariant),this.fontWeight=PA(A,lp,t.fontWeight),this.letterSpacing=PA(A,IB,t.letterSpacing),this.lineBreak=PA(A,_B,t.lineBreak),this.lineHeight=PA(A,HB,t.lineHeight),this.listStyleImage=PA(A,SB,t.listStyleImage),this.listStylePosition=PA(A,NB,t.listStylePosition),this.listStyleType=PA(A,Sc,t.listStyleType),this.marginTop=PA(A,DB,t.marginTop),this.marginRight=PA(A,TB,t.marginRight),this.marginBottom=PA(A,PB,t.marginBottom),this.marginLeft=PA(A,OB,t.marginLeft),this.opacity=PA(A,np,t.opacity);var i=PA(A,kB,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=PA(A,MB,t.overflowWrap),this.paddingTop=PA(A,KB,t.paddingTop),this.paddingRight=PA(A,RB,t.paddingRight),this.paddingBottom=PA(A,VB,t.paddingBottom),this.paddingLeft=PA(A,jB,t.paddingLeft),this.paintOrder=PA(A,wp,t.paintOrder),this.position=PA(A,qB,t.position),this.textAlign=PA(A,GB,t.textAlign),this.textDecorationColor=PA(A,ip,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=PA(A,sp,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=PA(A,WB,t.textShadow),this.textTransform=PA(A,JB,t.textTransform),this.transform=PA(A,XB,t.transform),this.transformOrigin=PA(A,Ap,t.transformOrigin),this.visibility=PA(A,ep,t.visibility),this.webkitTextStrokeColor=PA(A,vp,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=PA(A,mp,t.webkitTextStrokeWidth),this.wordBreak=PA(A,tp,t.wordBreak),this.zIndex=PA(A,rp,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return Un(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return At(this.display,4)||At(this.display,33554432)||At(this.display,268435456)||At(this.display,536870912)||At(this.display,67108864)||At(this.display,134217728)},e}(),Qp=function(){function e(A,t){this.content=PA(A,fp,t.content),this.quotes=PA(A,Bp,t.quotes)}return e}(),ff=function(){function e(A,t){this.counterIncrement=PA(A,hp,t.counterIncrement),this.counterReset=PA(A,dp,t.counterReset)}return e}(),PA=function(e,A,t){var r=new Qh,n=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(n);var i=new Fh(r.read());switch(A.type){case 2:var a=i.parseComponentValue();return A.parse(e,Fe(a)?a.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return Ro.parse(e,i.parseComponentValue());case"color":return bn.parse(e,i.parseComponentValue());case"image":return eu.parse(e,i.parseComponentValue());case"length":var l=i.parseComponentValue();return Ln(l)?l:ct;case"length-percentage":var c=i.parseComponentValue();return Ye(c)?c:ct;case"time":return Kh.parse(e,i.parseComponentValue())}break}},Fp="data-html2canvas-debug",yp=function(e){var A=e.getAttribute(Fp);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Nc=function(e,A){var t=yp(e);return t===1||A===t},Dr=function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Nc(t,3))debugger;this.styles=new Cp(A,window.getComputedStyle(t,null)),Pc(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Mo(this.context,t),Nc(t,4)&&(this.flags|=16)}return e}(),bp="[encoded data, 26156 characters]",hf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var so=0;so<hf.length;so++)ks[hf.charCodeAt(so)]=so;var Up=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,l,c;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(d)?d:new Uint8Array(d);for(r=0;r<t;r+=4)i=ks[e.charCodeAt(r)],a=ks[e.charCodeAt(r+1)],l=ks[e.charCodeAt(r+2)],c=ks[e.charCodeAt(r+3)],g[n++]=i<<2|a>>4,g[n++]=(a&15)<<4|l>>2,g[n++]=(l&3)<<6|c&63;return d},Lp=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},Ep=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},Yn=5,tu=11,zl=2,xp=tu-Yn,Rh=65536>>Yn,Ip=1<<Yn,Yl=Ip-1,_p=1024>>Yn,Hp=Rh+_p,Sp=Hp,Np=32,Dp=Sp+Np,Tp=65536>>tu,Pp=1<<xp,Op=Pp-1,df=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},kp=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},Mp=function(e,A){var t=Up(e),r=Array.isArray(t)?Ep(t):new Uint32Array(t),n=Array.isArray(t)?Lp(t):new Uint16Array(t),i=24,a=df(n,i/2,r[4]/2),l=r[5]===2?df(n,(i+r[4])/2):kp(r,Math.ceil((i+r[4])/4));return new Kp(r[0],r[1],r[2],r[3],a,l)},Kp=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>Yn],t=(t<<zl)+(A&Yl),this.data[t];if(A<=65535)return t=this.index[Rh+(A-55296>>Yn)],t=(t<<zl)+(A&Yl),this.data[t];if(A<this.highStart)return t=Dp-Tp+(A>>tu),t=this.index[t],t+=A>>Yn&Op,t=this.index[t],t=(t<<zl)+(A&Yl),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),gf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rp=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ao=0;ao<gf.length;ao++)Rp[gf.charCodeAt(ao)]=ao;var Vp=1,Zl=2,$l=3,Bf=4,pf=5,jp=7,wf=8,Ac=9,ec=10,vf=11,mf=12,Cf=13,Qf=14,tc=15,Gp=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},qp=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Wp=Mp(bp),Zt="×",rc="÷",Jp=function(e){return Wp.get(e)},Xp=function(e,A,t){var r=t-2,n=A[r],i=A[t-1],a=A[t];if(i===Zl&&a===$l)return Zt;if(i===Zl||i===$l||i===Bf||a===Zl||a===$l||a===Bf)return rc;if(i===wf&&[wf,Ac,vf,mf].indexOf(a)!==-1||(i===vf||i===Ac)&&(a===Ac||a===ec)||(i===mf||i===ec)&&a===ec||a===Cf||a===pf||a===jp||i===Vp)return Zt;if(i===Cf&&a===Qf){for(;n===pf;)n=A[--r];if(n===Qf)return Zt}if(i===tc&&a===tc){for(var l=0;n===tc;)l++,n=A[--r];if(l%2===0)return Zt}return rc},zp=function(e){var A=Gp(e),t=A.length,r=0,n=0,i=A.map(Jp);return{next:function(){if(r>=t)return{done:!0,value:null};for(var a=Zt;r<t&&(a=Xp(A,i,++r))===Zt;);if(a!==Zt||r===t){var l=qp.apply(null,A.slice(n,r));return n=r,{value:l,done:!1}}return{done:!0,value:null}}}},Yp=function(e){for(var A=zp(e),t=[],r;!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t},Zp=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=A+"px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(e.body.removeChild(r),i===A)return!0}}return!1},$p=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,n=Ko(r.data).map(function(c){return Ve(c)}),i=0,a={},l=n.every(function(c,d){t.setStart(r,i),t.setEnd(r,i+c.length);var g=t.getBoundingClientRect();i+=c.length;var B=g.x>a.x||g.y>a.y;return a=g,d===0?!0:B});return e.body.removeChild(A),l},A2=function(){return typeof new Image().crossOrigin<"u"},e2=function(){return typeof new XMLHttpRequest().responseType=="string"},t2=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},Ff=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},r2=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=A.toDataURL();n.src=i;var a=Dc(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),yf(a).then(function(l){r.drawImage(l,0,0);var c=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var d=e.createElement("div");return d.style.backgroundImage="url("+i+")",d.style.height=t+"px",Ff(c)?yf(Dc(t,t,0,0,d)):Promise.reject(!1)}).then(function(l){return r.drawImage(l,0,0),Ff(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Dc=function(e,A,t,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),l=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",A.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",t.toString()),l.setAttributeNS(null,"y",r.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(l),l.appendChild(n),a},yf=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},lt={get SUPPORT_RANGE_BOUNDS(){var e=Zp(document);return Object.defineProperty(lt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=lt.SUPPORT_RANGE_BOUNDS&&$p(document);return Object.defineProperty(lt,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=t2(document);return Object.defineProperty(lt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?r2(document):Promise.resolve(!1);return Object.defineProperty(lt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=A2();return Object.defineProperty(lt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=e2();return Object.defineProperty(lt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(lt,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(lt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},js=function(){function e(A,t){this.text=A,this.bounds=t}return e}(),n2=function(e,A,t,r){var n=a2(A,t),i=[],a=0;return n.forEach(function(l){if(t.textDecorationLine.length||l.trim().length>0)if(lt.SUPPORT_RANGE_BOUNDS){var c=bf(r,a,l.length).getClientRects();if(c.length>1){var d=ru(l),g=0;d.forEach(function(w){i.push(new js(w,An.fromDOMRectList(e,bf(r,g+a,w.length).getClientRects()))),g+=w.length})}else i.push(new js(l,An.fromDOMRectList(e,c)))}else{var B=r.splitText(l.length);i.push(new js(l,i2(e,r))),r=B}else lt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(l.length));a+=l.length}),i},i2=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=Mo(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return An.EMPTY},bf=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,A),n.setEnd(e,A+t),n},ru=function(e){if(lt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return Yp(e)},s2=function(e,A){if(lt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return l2(e,A)},a2=function(e,A){return A.letterSpacing!==0?ru(e):s2(e,A)},o2=[32,160,4961,65792,65793,4153,4241],l2=function(e,A){for(var t=Tg(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),l=Ko(a),c="";l.forEach(function(d){o2.indexOf(d)===-1?c+=Ve(d):(c.length&&r.push(c),r.push(Ve(d)),c="")}),c.length&&r.push(c)}};!(n=t.next()).done;)i();return r},c2=function(){function e(A,t,r){this.text=u2(t.data,r.textTransform),this.textBounds=n2(A,this.text,r,t)}return e}(),u2=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(f2,h2);case 2:return e.toUpperCase();default:return e}},f2=/(^|\s|:|-|\(|\))([a-z])/g,h2=function(e,A,t){return e.length>0?A+t.toUpperCase():e},Vh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A}(Dr),jh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(Dr),Gh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=new XMLSerializer,a=Mo(t,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(Dr),qh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(Dr),Tc=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(Dr),d2=[{type:15,flags:0,unit:"px",number:3}],g2=[{type:16,flags:0,number:50}],B2=function(e){return e.width>e.height?new An(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new An(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},p2=function(e){var A=e.type===w2?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},_o="checkbox",Ho="radio",w2="password",Uf=707406591,nu=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=p2(r),(n.type===_o||n.type===Ho)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=B2(n.bounds)),n.type){case _o:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=d2;break;case Ho:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=g2;break}return n}return A}(Dr),Wh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(Dr),Jh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(Dr),Xh=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=Yh(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Rs(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):$r.TRANSPARENT,a=r.contentWindow.document.body?Rs(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):$r.TRANSPARENT;n.backgroundColor=Un(i)?Un(a)?n.styles.backgroundColor:a:i}}catch{}return n}return A}(Dr),v2=["OL","UL","MENU"],Qo=function(e,A,t,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,Zh(n)&&n.data.trim().length>0)t.textNodes.push(new c2(e,n,t.styles));else if(Ri(n))if(td(n)&&n.assignedNodes)n.assignedNodes().forEach(function(l){return Qo(e,l,t,r)});else{var a=zh(e,n);a.styles.isVisible()&&(m2(n,a,r)?a.flags|=4:C2(a.styles)&&(a.flags|=2),v2.indexOf(n.tagName)!==-1&&(a.flags|=8),t.elements.push(a),n.slot,n.shadowRoot?Qo(e,n.shadowRoot,a,r):!So(n)&&!$h(n)&&!No(n)&&Qo(e,n,a,r))}},zh=function(e,A){return Oc(A)?new Vh(e,A):Ad(A)?new jh(e,A):$h(A)?new Gh(e,A):Q2(A)?new qh(e,A):F2(A)?new Tc(e,A):y2(A)?new nu(e,A):No(A)?new Wh(e,A):So(A)?new Jh(e,A):ed(A)?new Xh(e,A):new Dr(e,A)},Yh=function(e,A){var t=zh(e,A);return t.flags|=4,Qo(e,A,t,t),t},m2=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||iu(e)&&t.styles.isTransparent()},C2=function(e){return e.isPositioned()||e.isFloating()},Zh=function(e){return e.nodeType===Node.TEXT_NODE},Ri=function(e){return e.nodeType===Node.ELEMENT_NODE},Pc=function(e){return Ri(e)&&typeof e.style<"u"&&!Fo(e)},Fo=function(e){return typeof e.className=="object"},Q2=function(e){return e.tagName==="LI"},F2=function(e){return e.tagName==="OL"},y2=function(e){return e.tagName==="INPUT"},b2=function(e){return e.tagName==="HTML"},$h=function(e){return e.tagName==="svg"},iu=function(e){return e.tagName==="BODY"},Ad=function(e){return e.tagName==="CANVAS"},Lf=function(e){return e.tagName==="VIDEO"},Oc=function(e){return e.tagName==="IMG"},ed=function(e){return e.tagName==="IFRAME"},Ef=function(e){return e.tagName==="STYLE"},U2=function(e){return e.tagName==="SCRIPT"},So=function(e){return e.tagName==="TEXTAREA"},No=function(e){return e.tagName==="SELECT"},td=function(e){return e.tagName==="SLOT"},xf=function(e){return e.tagName.indexOf("-")>0},L2=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(l){var c=t.counters[l.counter];c&&l.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=l.increment)});var a=[];return i&&n.forEach(function(l){var c=t.counters[l.counter];a.push(l.counter),c||(c=t.counters[l.counter]=[]),c.push(l.reset)}),a},e}(),If={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"]},_f={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E2={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},x2={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Hi=function(e,A,t,r,n,i){return e<A||e>t?Xs(e,n,i.length>0):r.integers.reduce(function(a,l,c){for(;e>=l;)e-=l,a+=r.values[c];return a},"")+i},rd=function(e,A,t,r){var n="";do t||e--,n=r(e)+n,e/=A;while(e*A>=A);return n},Re=function(e,A,t,r,n){var i=t-A+1;return(e<0?"-":"")+(rd(Math.abs(e),i,r,function(a){return Ve(Math.floor(a%i)+A)})+n)},Gn=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return rd(Math.abs(e),r,!1,function(n){return A[Math.floor(n%r)]})+t},Oi=1,wn=2,vn=4,Ms=8,Yr=function(e,A,t,r,n,i){if(e<-9999||e>9999)return Xs(e,4,n.length>0);var a=Math.abs(e),l=n;if(a===0)return A[0]+l;for(var c=0;a>0&&c<=4;c++){var d=a%10;d===0&&At(i,Oi)&&l!==""?l=A[d]+l:d>1||d===1&&c===0||d===1&&c===1&&At(i,wn)||d===1&&c===1&&At(i,vn)&&e>100||d===1&&c>1&&At(i,Ms)?l=A[d]+(c>0?t[c-1]:"")+l:d===1&&c>0&&(l=t[c-1]+l),a=Math.floor(a/10)}return(e<0?r:"")+l},Hf="十百千萬",Sf="拾佰仟萬",Nf="マイナス",nc="마이너스",Xs=function(e,A,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",a=t?" ":"";switch(A){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var l=Re(e,48,57,!0,r);return l.length<4?"0"+l:l;case 4:return Gn(e,"〇一二三四五六七八九",n);case 6:return Hi(e,1,3999,If,3,r).toLowerCase();case 7:return Hi(e,1,3999,If,3,r);case 8:return Re(e,945,969,!1,r);case 9:return Re(e,97,122,!1,r);case 10:return Re(e,65,90,!1,r);case 11:return Re(e,1632,1641,!0,r);case 12:case 49:return Hi(e,1,9999,_f,3,r);case 35:return Hi(e,1,9999,_f,3,r).toLowerCase();case 13:return Re(e,2534,2543,!0,r);case 14:case 30:return Re(e,6112,6121,!0,r);case 15:return Gn(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Gn(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Yr(e,"零一二三四五六七八九",Hf,"負",n,wn|vn|Ms);case 47:return Yr(e,"零壹貳參肆伍陸柒捌玖",Sf,"負",n,Oi|wn|vn|Ms);case 42:return Yr(e,"零一二三四五六七八九",Hf,"负",n,wn|vn|Ms);case 41:return Yr(e,"零壹贰叁肆伍陆柒捌玖",Sf,"负",n,Oi|wn|vn|Ms);case 26:return Yr(e,"〇一二三四五六七八九","十百千万",Nf,n,0);case 25:return Yr(e,"零壱弐参四伍六七八九","拾百千万",Nf,n,Oi|wn|vn);case 31:return Yr(e,"영일이삼사오육칠팔구","십백천만",nc,i,Oi|wn|vn);case 33:return Yr(e,"零一二三四五六七八九","十百千萬",nc,i,0);case 32:return Yr(e,"零壹貳參四五六七八九","拾百千",nc,i,Oi|wn|vn);case 18:return Re(e,2406,2415,!0,r);case 20:return Hi(e,1,19999,x2,3,r);case 21:return Re(e,2790,2799,!0,r);case 22:return Re(e,2662,2671,!0,r);case 22:return Hi(e,1,10999,E2,3,r);case 23:return Gn(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Gn(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Re(e,3302,3311,!0,r);case 28:return Gn(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Gn(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Re(e,3792,3801,!0,r);case 37:return Re(e,6160,6169,!0,r);case 38:return Re(e,4160,4169,!0,r);case 39:return Re(e,2918,2927,!0,r);case 40:return Re(e,1776,1785,!0,r);case 43:return Re(e,3046,3055,!0,r);case 44:return Re(e,3174,3183,!0,r);case 45:return Re(e,3664,3673,!0,r);case 46:return Re(e,3872,3881,!0,r);case 3:default:return Re(e,48,57,!0,r)}},nd="data-html2canvas-ignore",Df=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new L2,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 e.prototype.toIFrame=function(A,t){var r=this,n=I2(A,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,l=n.contentWindow,c=l.document,d=S2(n).then(function(){return Ut(r,void 0,void 0,function(){var g,B;return vt(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(P2),l&&(l.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==t.top||l.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[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:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,H2(c)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(c,B)}).then(function(){return n})]:[2,n]}})})});return c.open(),c.write(D2(document.doctype)+"<html></html>"),T2(this.referenceElement.ownerDocument,i,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),d},e.prototype.createElementClone=function(A){if(Nc(A,2))debugger;if(Ad(A))return this.createCanvasClone(A);if(Lf(A))return this.createVideoClone(A);if(Ef(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Oc(t)&&(Oc(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),xf(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return ic(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var l=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(l){var c=l.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}a.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,t,r){(!Ri(t)||!U2(t)&&!t.hasAttribute(nd)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Ri(t)||!Ef(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(Ri(i)&&td(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(l){return n.appendChildNode(t,l,r)})}else this.appendChildNode(t,i,r)},e.prototype.cloneNode=function(A,t){if(Zh(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&Ri(A)&&(Pc(A)||Fo(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),a=r.getComputedStyle(A,":before"),l=r.getComputedStyle(A,":after");this.referenceElement===A&&Pc(n)&&(this.clonedReferenceElement=n),iu(n)&&M2(n);var c=this.counters.parse(new ff(this.context,i)),d=this.resolvePseudoContent(A,n,a,Gs.BEFORE);xf(A)&&(t=!0),Lf(A)||this.cloneChildNodes(A,n,t),d&&n.insertBefore(d,n.firstChild);var g=this.resolvePseudoContent(A,n,l,Gs.AFTER);return g&&n.appendChild(g),this.counters.pop(c),(i&&(this.options.copyStyles||Fo(A))&&!ed(A)||t)&&ic(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(So(A)||No(A))&&(So(n)||No(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,n){var i=this;if(r){var a=r.content,l=t.ownerDocument;if(!(!l||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new ff(this.context,r));var c=new Qp(this.context,r),d=l.createElement("html2canvaspseudoelement");ic(r,d),c.content.forEach(function(B){if(B.type===0)d.appendChild(l.createTextNode(B.value));else if(B.type===22){var w=l.createElement("img");w.src=B.value,w.style.opacity="1",d.appendChild(w)}else if(B.type===18){if(B.name==="attr"){var h=B.values.filter(Fe);h.length&&d.appendChild(l.createTextNode(A.getAttribute(h[0].value)||""))}else if(B.name==="counter"){var F=B.values.filter(Xi),m=F[0],_=F[1];if(m&&Fe(m)){var Q=i.counters.getCounterValue(m.value),E=_&&Fe(_)?Sc.parse(i.context,_.value):3;d.appendChild(l.createTextNode(Xs(Q,E,!1)))}}else if(B.name==="counters"){var K=B.values.filter(Xi),m=K[0],V=K[1],_=K[2];if(m&&Fe(m)){var X=i.counters.getCounterValues(m.value),Y=_&&Fe(_)?Sc.parse(i.context,_.value):3,$=V&&V.type===0?V.value:"",O=X.map(function(I){return Xs(I,Y,!1)}).join($);d.appendChild(l.createTextNode(O))}}}else if(B.type===20)switch(B.value){case"open-quote":d.appendChild(l.createTextNode(uf(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":d.appendChild(l.createTextNode(uf(c.quotes,--i.quoteDepth,!1)));break;default:d.appendChild(l.createTextNode(B.value))}}),d.className=kc+" "+Mc;var g=n===Gs.BEFORE?" "+kc:" "+Mc;return Fo(t)?t.className.baseValue+=g:t.className+=g,d}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),Gs;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Gs||(Gs={}));var I2=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(nd,"true"),e.body.appendChild(t),t},_2=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},H2=function(e){return Promise.all([].slice.call(e.images,0).map(_2))},S2=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(e))},50)}})},N2=["all","d","content"],ic=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);N2.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},D2=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},T2=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},P2=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},O2=":before",k2=":after",kc="___html2canvas___pseudoelement_before",Mc="___html2canvas___pseudoelement_after",Tf=`{
    content: "" !important;
    display: none !important;
}`,M2=function(e){K2(e,"."+kc+O2+Tf+`
         .`+Mc+k2+Tf)},K2=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},id=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),R2=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(ac(A)||q2(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return Ut(this,void 0,void 0,function(){var t,r,n,i,a=this;return vt(this,function(l){switch(l.label){case 0:return t=id.isSameOrigin(A),r=!sc(A)&&this._options.useCORS===!0&&lt.SUPPORT_CORS_IMAGES&&!t,n=!sc(A)&&!t&&!ac(A)&&typeof this._options.proxy=="string"&&lt.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!sc(A)&&!ac(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,d){var g=new Image;g.onload=function(){return c(g)},g.onerror=d,(W2(i)||r)&&(g.crossOrigin="anonymous"),g.src=i,g.complete===!0&&setTimeout(function(){return c(g)},500),a._options.imageTimeout>0&&setTimeout(function(){return d("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,a){var l=lt.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(l==="text")i(c.response);else{var B=new FileReader;B.addEventListener("load",function(){return i(B.result)},!1),B.addEventListener("error",function(w){return a(w)},!1),B.readAsDataURL(c.response)}else a("Failed to proxy resource "+n+" with status code "+c.status)},c.onerror=a;var d=r.indexOf("?")>-1?"&":"?";if(c.open("GET",""+r+d+"url="+encodeURIComponent(A)+"&responseType="+l),l!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=l),t._options.imageTimeout){var g=t._options.imageTimeout;c.timeout=g,c.ontimeout=function(){return a("Timed out ("+g+"ms) proxying "+n)}}c.send()})},e}(),V2=/^data:image\/svg\+xml/i,j2=/^data:image\/.*;base64,/i,G2=/^data:image\/.*/i,q2=function(e){return lt.SUPPORT_SVG_DRAWING||!J2(e)},sc=function(e){return G2.test(e)},W2=function(e){return j2.test(e)},ac=function(e){return e.substr(0,4)==="blob"},J2=function(e){return e.substr(-3).toLowerCase()==="svg"||V2.test(e)},NA=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),Si=function(e,A,t){return new NA(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},oo=function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=Si(this.start,this.startControl,A),n=Si(this.startControl,this.endControl,A),i=Si(this.endControl,this.end,A),a=Si(r,n,A),l=Si(n,i,A),c=Si(a,l,A);return t?new e(this.start,r,a,c):new e(c,l,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),$t=function(e){return e.type===1},X2=function(){function e(A){var t=A.styles,r=A.bounds,n=Os(t.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],l=Os(t.borderTopRightRadius,r.width,r.height),c=l[0],d=l[1],g=Os(t.borderBottomRightRadius,r.width,r.height),B=g[0],w=g[1],h=Os(t.borderBottomLeftRadius,r.width,r.height),F=h[0],m=h[1],_=[];_.push((i+c)/r.width),_.push((F+B)/r.width),_.push((a+m)/r.height),_.push((d+w)/r.height);var Q=Math.max.apply(Math,_);Q>1&&(i/=Q,a/=Q,c/=Q,d/=Q,B/=Q,w/=Q,F/=Q,m/=Q);var E=r.width-c,K=r.height-w,V=r.width-B,X=r.height-m,Y=t.borderTopWidth,$=t.borderRightWidth,O=t.borderBottomWidth,G=t.borderLeftWidth,rA=xe(t.paddingTop,A.bounds.width),I=xe(t.paddingRight,A.bounds.width),H=xe(t.paddingBottom,A.bounds.width),R=xe(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?He(r.left+G/3,r.top+Y/3,i-G/3,a-Y/3,pe.TOP_LEFT):new NA(r.left+G/3,r.top+Y/3),this.topRightBorderDoubleOuterBox=i>0||a>0?He(r.left+E,r.top+Y/3,c-$/3,d-Y/3,pe.TOP_RIGHT):new NA(r.left+r.width-$/3,r.top+Y/3),this.bottomRightBorderDoubleOuterBox=B>0||w>0?He(r.left+V,r.top+K,B-$/3,w-O/3,pe.BOTTOM_RIGHT):new NA(r.left+r.width-$/3,r.top+r.height-O/3),this.bottomLeftBorderDoubleOuterBox=F>0||m>0?He(r.left+G/3,r.top+X,F-G/3,m-O/3,pe.BOTTOM_LEFT):new NA(r.left+G/3,r.top+r.height-O/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?He(r.left+G*2/3,r.top+Y*2/3,i-G*2/3,a-Y*2/3,pe.TOP_LEFT):new NA(r.left+G*2/3,r.top+Y*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?He(r.left+E,r.top+Y*2/3,c-$*2/3,d-Y*2/3,pe.TOP_RIGHT):new NA(r.left+r.width-$*2/3,r.top+Y*2/3),this.bottomRightBorderDoubleInnerBox=B>0||w>0?He(r.left+V,r.top+K,B-$*2/3,w-O*2/3,pe.BOTTOM_RIGHT):new NA(r.left+r.width-$*2/3,r.top+r.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=F>0||m>0?He(r.left+G*2/3,r.top+X,F-G*2/3,m-O*2/3,pe.BOTTOM_LEFT):new NA(r.left+G*2/3,r.top+r.height-O*2/3),this.topLeftBorderStroke=i>0||a>0?He(r.left+G/2,r.top+Y/2,i-G/2,a-Y/2,pe.TOP_LEFT):new NA(r.left+G/2,r.top+Y/2),this.topRightBorderStroke=i>0||a>0?He(r.left+E,r.top+Y/2,c-$/2,d-Y/2,pe.TOP_RIGHT):new NA(r.left+r.width-$/2,r.top+Y/2),this.bottomRightBorderStroke=B>0||w>0?He(r.left+V,r.top+K,B-$/2,w-O/2,pe.BOTTOM_RIGHT):new NA(r.left+r.width-$/2,r.top+r.height-O/2),this.bottomLeftBorderStroke=F>0||m>0?He(r.left+G/2,r.top+X,F-G/2,m-O/2,pe.BOTTOM_LEFT):new NA(r.left+G/2,r.top+r.height-O/2),this.topLeftBorderBox=i>0||a>0?He(r.left,r.top,i,a,pe.TOP_LEFT):new NA(r.left,r.top),this.topRightBorderBox=c>0||d>0?He(r.left+E,r.top,c,d,pe.TOP_RIGHT):new NA(r.left+r.width,r.top),this.bottomRightBorderBox=B>0||w>0?He(r.left+V,r.top+K,B,w,pe.BOTTOM_RIGHT):new NA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=F>0||m>0?He(r.left,r.top+X,F,m,pe.BOTTOM_LEFT):new NA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?He(r.left+G,r.top+Y,Math.max(0,i-G),Math.max(0,a-Y),pe.TOP_LEFT):new NA(r.left+G,r.top+Y),this.topRightPaddingBox=c>0||d>0?He(r.left+Math.min(E,r.width-$),r.top+Y,E>r.width+$?0:Math.max(0,c-$),Math.max(0,d-Y),pe.TOP_RIGHT):new NA(r.left+r.width-$,r.top+Y),this.bottomRightPaddingBox=B>0||w>0?He(r.left+Math.min(V,r.width-G),r.top+Math.min(K,r.height-O),Math.max(0,B-$),Math.max(0,w-O),pe.BOTTOM_RIGHT):new NA(r.left+r.width-$,r.top+r.height-O),this.bottomLeftPaddingBox=F>0||m>0?He(r.left+G,r.top+Math.min(X,r.height-O),Math.max(0,F-G),Math.max(0,m-O),pe.BOTTOM_LEFT):new NA(r.left+G,r.top+r.height-O),this.topLeftContentBox=i>0||a>0?He(r.left+G+R,r.top+Y+rA,Math.max(0,i-(G+R)),Math.max(0,a-(Y+rA)),pe.TOP_LEFT):new NA(r.left+G+R,r.top+Y+rA),this.topRightContentBox=c>0||d>0?He(r.left+Math.min(E,r.width+G+R),r.top+Y+rA,E>r.width+G+R?0:c-G+R,d-(Y+rA),pe.TOP_RIGHT):new NA(r.left+r.width-($+I),r.top+Y+rA),this.bottomRightContentBox=B>0||w>0?He(r.left+Math.min(V,r.width-(G+R)),r.top+Math.min(K,r.height+Y+rA),Math.max(0,B-($+I)),w-(O+H),pe.BOTTOM_RIGHT):new NA(r.left+r.width-($+I),r.top+r.height-(O+H)),this.bottomLeftContentBox=F>0||m>0?He(r.left+G+R,r.top+X,Math.max(0,F-(G+R)),m-(O+H),pe.BOTTOM_LEFT):new NA(r.left+G+R,r.top+r.height-(O+H))}return e}(),pe;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(pe||(pe={}));var He=function(e,A,t,r,n){var i=4*((Math.sqrt(2)-1)/3),a=t*i,l=r*i,c=e+t,d=A+r;switch(n){case pe.TOP_LEFT:return new oo(new NA(e,d),new NA(e,d-l),new NA(c-a,A),new NA(c,A));case pe.TOP_RIGHT:return new oo(new NA(e,A),new NA(e+a,A),new NA(c,d-l),new NA(c,d));case pe.BOTTOM_RIGHT:return new oo(new NA(c,A),new NA(c,A+l),new NA(e+a,d),new NA(e,d));case pe.BOTTOM_LEFT:default:return new oo(new NA(c,d),new NA(c-a,d),new NA(e,A+l),new NA(e,A))}},Do=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},z2=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},To=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Y2=function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e}(),lo=function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e}(),Z2=function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e}(),$2=function(e){return e.type===0},sd=function(e){return e.type===1},A5=function(e){return e.type===2},Pf=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},e5=function(e,A,t,r,n){return e.map(function(i,a){switch(a){case 0:return i.add(A,t);case 1:return i.add(A+r,t);case 2:return i.add(A+r,t+n);case 3:return i.add(A,t+n)}return i})},ad=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),od=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new X2(this.container),this.container.styles.opacity<1&&this.effects.push(new Z2(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Y2(r,n,i))}if(this.container.styles.overflowX!==0){var a=Do(this.curves),l=To(this.curves);Pf(a,l)?this.effects.push(new lo(a,6)):(this.effects.push(new lo(a,2)),this.effects.push(new lo(l,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(c){return!sd(c)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=Do(r.curves),l=To(r.curves);Pf(a,l)||n.unshift(new lo(l,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(c){return At(c.target,A)})},e}(),Kc=function(e,A,t,r){e.container.elements.forEach(function(n){var i=At(n.flags,4),a=At(n.flags,2),l=new od(n,e);At(n.styles.display,2048)&&r.push(l);var c=At(n.flags,8)?[]:r;if(i||a){var d=i||n.styles.isPositioned()?t:A,g=new ad(l);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var w=0;d.negativeZIndex.some(function(F,m){return B>F.element.container.styles.zIndex.order?(w=m,!1):w>0}),d.negativeZIndex.splice(w,0,g)}else if(B>0){var h=0;d.positiveZIndex.some(function(F,m){return B>=F.element.container.styles.zIndex.order?(h=m+1,!1):h>0}),d.positiveZIndex.splice(h,0,g)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?d.nonPositionedFloats.push(g):d.nonPositionedInlineLevel.push(g);Kc(l,g,i?g:t,c)}else n.styles.isInlineLevel()?A.inlineLevel.push(l):A.nonInlineLevel.push(l),Kc(l,A,t,c);At(n.flags,8)&&ld(n,c)})},ld=function(e,A){for(var t=e instanceof Tc?e.start:1,r=e instanceof Tc?e.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof qh&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=Xs(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},t5=function(e){var A=new od(e,null),t=new ad(A),r=[];return Kc(A,t,t,r),ld(A.container,r),t},Of=function(e,A){switch(A){case 0:return er(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return er(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return er(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return er(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},r5=function(e,A){switch(A){case 0:return er(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return er(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return er(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return er(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},n5=function(e,A){switch(A){case 0:return er(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return er(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return er(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return er(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},i5=function(e,A){switch(A){case 0:return co(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return co(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return co(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return co(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},co=function(e,A){var t=[];return $t(e)?t.push(e.subdivide(.5,!1)):t.push(e),$t(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},er=function(e,A,t,r){var n=[];return $t(e)?n.push(e.subdivide(.5,!1)):n.push(e),$t(t)?n.push(t.subdivide(.5,!0)):n.push(t),$t(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),$t(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},cd=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Po=function(e){var A=e.styles,t=e.bounds,r=xe(A.paddingLeft,t.width),n=xe(A.paddingRight,t.width),i=xe(A.paddingTop,t.width),a=xe(A.paddingBottom,t.width);return t.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+a))},s5=function(e,A){return e===0?A.bounds:e===2?Po(A):cd(A)},a5=function(e,A){return e===0?A.bounds:e===2?Po(A):cd(A)},oc=function(e,A,t){var r=s5(ki(e.styles.backgroundOrigin,A),e),n=a5(ki(e.styles.backgroundClip,A),e),i=o5(ki(e.styles.backgroundSize,A),t,r),a=i[0],l=i[1],c=Os(ki(e.styles.backgroundPosition,A),r.width-a,r.height-l),d=l5(ki(e.styles.backgroundRepeat,A),c,i,r,n),g=Math.round(r.left+c[0]),B=Math.round(r.top+c[1]);return[d,g,B,a,l]},Ni=function(e){return Fe(e)&&e.value===ji.AUTO},uo=function(e){return typeof e=="number"},o5=function(e,A,t){var r=A[0],n=A[1],i=A[2],a=e[0],l=e[1];if(!a)return[0,0];if(Ye(a)&&l&&Ye(l))return[xe(a,t.width),xe(l,t.height)];var c=uo(i);if(Fe(a)&&(a.value===ji.CONTAIN||a.value===ji.COVER)){if(uo(i)){var d=t.width/t.height;return d<i!=(a.value===ji.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var g=uo(r),B=uo(n),w=g||B;if(Ni(a)&&(!l||Ni(l))){if(g&&B)return[r,n];if(!c&&!w)return[t.width,t.height];if(w&&c){var h=g?r:n*i,F=B?n:r/i;return[h,F]}var m=g?r:t.width,_=B?n:t.height;return[m,_]}if(c){var Q=0,E=0;return Ye(a)?Q=xe(a,t.width):Ye(l)&&(E=xe(l,t.height)),Ni(a)?Q=E*i:(!l||Ni(l))&&(E=Q/i),[Q,E]}var K=null,V=null;if(Ye(a)?K=xe(a,t.width):l&&Ye(l)&&(V=xe(l,t.height)),K!==null&&(!l||Ni(l))&&(V=g&&B?K/r*n:t.height),V!==null&&Ni(a)&&(K=g&&B?V/n*r:t.width),K!==null&&V!==null)return[K,V];throw new Error("Unable to calculate background-size for element")},ki=function(e,A){var t=e[A];return typeof t>"u"?e[0]:t},l5=function(e,A,t,r,n){var i=A[0],a=A[1],l=t[0],c=t[1];switch(e){case 2:return[new NA(Math.round(r.left),Math.round(r.top+a)),new NA(Math.round(r.left+r.width),Math.round(r.top+a)),new NA(Math.round(r.left+r.width),Math.round(c+r.top+a)),new NA(Math.round(r.left),Math.round(c+r.top+a))];case 3:return[new NA(Math.round(r.left+i),Math.round(r.top)),new NA(Math.round(r.left+i+l),Math.round(r.top)),new NA(Math.round(r.left+i+l),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+a)),new NA(Math.round(r.left+i+l),Math.round(r.top+a)),new NA(Math.round(r.left+i+l),Math.round(r.top+a+c)),new NA(Math.round(r.left+i),Math.round(r.top+a+c))];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))]}},c5="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",kf="Hidden Text",u5=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=c5,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(kf)),r.appendChild(i),r.appendChild(n);var l=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(kf)),r.style.lineHeight="normal",n.style.verticalAlign="super";var c=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:l,middle:c}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),ud=function(){function e(A,t){this.context=A,this.options=t}return e}(),f5=1e4,h5=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new u5(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(t){this.ctx.save(),A5(t)&&(this.ctx.globalAlpha=t.opacity),$2(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),sd(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return Ut(this,void 0,void 0,function(){var r;return vt(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return Ut(this,void 0,void 0,function(){return vt(this,function(r){switch(r.label){case 0:if(At(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var a=ru(t.text);a.reduce(function(l,c){return i.ctx.fillText(c,l,t.bounds.top+n),l+i.ctx.measureText(c).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=w5(t.fontFamily).join(", "),i=Zs(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(t,r){return Ut(this,void 0,void 0,function(){var n,i,a,l,c,d,g,B,w=this;return vt(this,function(h){return n=this.createFontStyle(r),i=n[0],a=n[1],l=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(a,l),d=c.baseline,g=c.middle,B=r.paintOrder,t.textBounds.forEach(function(F){B.forEach(function(m){switch(m){case 0:w.ctx.fillStyle=nt(r.color),w.renderTextWithLetterSpacing(F,r.letterSpacing,d);var _=r.textShadow;_.length&&F.text.trim().length&&(_.slice(0).reverse().forEach(function(Q){w.ctx.shadowColor=nt(Q.color),w.ctx.shadowOffsetX=Q.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=Q.offsetY.number*w.options.scale,w.ctx.shadowBlur=Q.blur.number,w.renderTextWithLetterSpacing(F,r.letterSpacing,d)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=nt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(Q){switch(Q){case 1:w.ctx.fillRect(F.bounds.left,Math.round(F.bounds.top+d),F.bounds.width,1);break;case 2:w.ctx.fillRect(F.bounds.left,Math.round(F.bounds.top),F.bounds.width,1);break;case 3:w.ctx.fillRect(F.bounds.left,Math.ceil(F.bounds.top+g),F.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&F.text.trim().length&&(w.ctx.strokeStyle=nt(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(F.text,F.bounds.left,F.bounds.top+d)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Po(t),a=To(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return Ut(this,void 0,void 0,function(){var r,n,i,a,l,c,E,E,d,g,B,w,V,h,F,X,m,_,Q,E,K,V,X;return vt(this,function(Y){switch(Y.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,a=0,l=r.textNodes,Y.label=1;case 1:return a<l.length?(c=l[a],[4,this.renderTextNode(c,i)]):[3,4];case 2:Y.sent(),Y.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof Vh))return[3,8];Y.label=5;case 5:return Y.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return E=Y.sent(),this.renderReplacedElement(r,n,E),[3,8];case 7:return Y.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof jh&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Gh))return[3,12];Y.label=9;case 9:return Y.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return E=Y.sent(),this.renderReplacedElement(r,n,E),[3,12];case 11:return Y.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Xh&&r.tree?(d=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,d.render(r.tree)]):[3,14];case 13:g=Y.sent(),r.width&&r.height&&this.ctx.drawImage(g,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),Y.label=14;case 14:if(r instanceof nu&&(B=Math.min(r.bounds.width,r.bounds.height),r.type===_o?r.checked&&(this.ctx.save(),this.path([new NA(r.bounds.left+B*.39363,r.bounds.top+B*.79),new NA(r.bounds.left+B*.16,r.bounds.top+B*.5549),new NA(r.bounds.left+B*.27347,r.bounds.top+B*.44071),new NA(r.bounds.left+B*.39694,r.bounds.top+B*.5649),new NA(r.bounds.left+B*.72983,r.bounds.top+B*.23),new NA(r.bounds.left+B*.84,r.bounds.top+B*.34085),new NA(r.bounds.left+B*.39363,r.bounds.top+B*.79)]),this.ctx.fillStyle=nt(Uf),this.ctx.fill(),this.ctx.restore()):r.type===Ho&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+B/2,r.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=nt(Uf),this.ctx.fill(),this.ctx.restore())),d5(r)&&r.value.length){switch(w=this.createFontStyle(i),V=w[0],h=w[1],F=this.fontMetrics.getMetrics(V,h).baseline,this.ctx.font=V,this.ctx.fillStyle=nt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=B5(r.styles.textAlign),X=Po(r),m=0,r.styles.textAlign){case 1:m+=X.width/2;break;case 2:m+=X.width;break}_=X.add(m,0,0,-X.height/2+1),this.ctx.save(),this.path([new NA(X.left,X.top),new NA(X.left+X.width,X.top),new NA(X.left+X.width,X.top+X.height),new NA(X.left,X.top+X.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new js(r.value,_),i.letterSpacing,F),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!At(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(Q=r.styles.listStyleImage,Q.type!==0)return[3,18];E=void 0,K=Q.url,Y.label=15;case 15:return Y.trys.push([15,17,,18]),[4,this.context.cache.match(K)];case 16:return E=Y.sent(),this.ctx.drawImage(E,r.bounds.left-(E.width+10),r.bounds.top),[3,18];case 17:return Y.sent(),this.context.logger.error("Error loading list-style-image "+K),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(V=this.createFontStyle(i)[0],this.ctx.font=V,this.ctx.fillStyle=nt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",X=new An(r.bounds.left,r.bounds.top+xe(r.styles.paddingTop,r.bounds.width),r.bounds.width,lf(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new js(t.listValue,X),i.letterSpacing,lf(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Y.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(t){return Ut(this,void 0,void 0,function(){var r,n,Q,i,a,Q,l,c,Q,d,g,Q,B,w,Q,h,F,Q,m,_,Q;return vt(this,function(E){switch(E.label){case 0:if(At(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:E.sent(),r=0,n=t.negativeZIndex,E.label=2;case 2:return r<n.length?(Q=n[r],[4,this.renderStack(Q)]):[3,5];case 3:E.sent(),E.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:E.sent(),i=0,a=t.nonInlineLevel,E.label=7;case 7:return i<a.length?(Q=a[i],[4,this.renderNode(Q)]):[3,10];case 8:E.sent(),E.label=9;case 9:return i++,[3,7];case 10:l=0,c=t.nonPositionedFloats,E.label=11;case 11:return l<c.length?(Q=c[l],[4,this.renderStack(Q)]):[3,14];case 12:E.sent(),E.label=13;case 13:return l++,[3,11];case 14:d=0,g=t.nonPositionedInlineLevel,E.label=15;case 15:return d<g.length?(Q=g[d],[4,this.renderStack(Q)]):[3,18];case 16:E.sent(),E.label=17;case 17:return d++,[3,15];case 18:B=0,w=t.inlineLevel,E.label=19;case 19:return B<w.length?(Q=w[B],[4,this.renderNode(Q)]):[3,22];case 20:E.sent(),E.label=21;case 21:return B++,[3,19];case 22:h=0,F=t.zeroOrAutoZIndexOrTransformedOrOpacity,E.label=23;case 23:return h<F.length?(Q=F[h],[4,this.renderStack(Q)]):[3,26];case 24:E.sent(),E.label=25;case 25:return h++,[3,23];case 26:m=0,_=t.positiveZIndex,E.label=27;case 27:return m<_.length?(Q=_[m],[4,this.renderStack(Q)]):[3,30];case 28:E.sent(),E.label=29;case 29:return m++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(t){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(t.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var a=$t(n)?n.start:n;i===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),$t(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(t,r,n){var i;if(t.width===r&&t.height===n)return t;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,l=a.createElement("canvas");l.width=Math.max(1,r),l.height=Math.max(1,n);var c=l.getContext("2d");return c.drawImage(t,0,0,t.width,t.height,0,0,r,n),l},A.prototype.renderBackgroundImage=function(t){return Ut(this,void 0,void 0,function(){var r,n,i,a,l,c;return vt(this,function(d){switch(d.label){case 0:r=t.styles.backgroundImage.length-1,n=function(g){var B,w,h,rA,nA,cA,R,k,O,F,rA,nA,cA,R,k,m,_,Q,E,K,V,X,Y,$,O,G,rA,I,H,R,k,oA,nA,cA,tA,fA,dA,bA,U,N,P,j;return vt(this,function(Z){switch(Z.label){case 0:if(g.type!==0)return[3,5];B=void 0,w=g.url,Z.label=1;case 1:return Z.trys.push([1,3,,4]),[4,i.context.cache.match(w)];case 2:return B=Z.sent(),[3,4];case 3:return Z.sent(),i.context.logger.error("Error loading background-image "+w),[3,4];case 4:return B&&(h=oc(t,r,[B.width,B.height,B.width/B.height]),rA=h[0],nA=h[1],cA=h[2],R=h[3],k=h[4],O=i.ctx.createPattern(i.resizeImage(B,R,k),"repeat"),i.renderRepeat(rA,O,nA,cA)),[3,6];case 5:$0(g)?(F=oc(t,r,[null,null,null]),rA=F[0],nA=F[1],cA=F[2],R=F[3],k=F[4],m=J0(g.angle,R,k),_=m[0],Q=m[1],E=m[2],K=m[3],V=m[4],X=document.createElement("canvas"),X.width=R,X.height=k,Y=X.getContext("2d"),$=Y.createLinearGradient(Q,K,E,V),af(g.stops,_).forEach(function(aA){return $.addColorStop(aA.stop,nt(aA.color))}),Y.fillStyle=$,Y.fillRect(0,0,R,k),R>0&&k>0&&(O=i.ctx.createPattern(X,"repeat"),i.renderRepeat(rA,O,nA,cA))):AB(g)&&(G=oc(t,r,[null,null,null]),rA=G[0],I=G[1],H=G[2],R=G[3],k=G[4],oA=g.position.length===0?[Au]:g.position,nA=xe(oA[0],R),cA=xe(oA[oA.length-1],k),tA=X0(g,nA,cA,R,k),fA=tA[0],dA=tA[1],fA>0&&dA>0&&(bA=i.ctx.createRadialGradient(I+nA,H+cA,0,I+nA,H+cA,fA),af(g.stops,fA*2).forEach(function(aA){return bA.addColorStop(aA.stop,nt(aA.color))}),i.path(rA),i.ctx.fillStyle=bA,fA!==dA?(U=t.bounds.left+.5*t.bounds.width,N=t.bounds.top+.5*t.bounds.height,P=dA/fA,j=1/P,i.ctx.save(),i.ctx.translate(U,N),i.ctx.transform(1,0,0,P,0,0),i.ctx.translate(-U,-N),i.ctx.fillRect(I,j*(H-N)+N,R,k*j),i.ctx.restore()):i.ctx.fill())),Z.label=6;case 6:return r--,[2]}})},i=this,a=0,l=t.styles.backgroundImage.slice(0).reverse(),d.label=1;case 1:return a<l.length?(c=l[a],[5,n(c)]):[3,4];case 2:d.sent(),d.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(t,r,n){return Ut(this,void 0,void 0,function(){return vt(this,function(i){return this.path(Of(n,r)),this.ctx.fillStyle=nt(t),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(t,r,n,i){return Ut(this,void 0,void 0,function(){var a,l;return vt(this,function(c){switch(c.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return c.sent(),[2];case 2:return a=r5(i,n),this.path(a),this.ctx.fillStyle=nt(t),this.ctx.fill(),l=n5(i,n),this.path(l),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(t){return Ut(this,void 0,void 0,function(){var r,n,i,a,l,c,d,g,B=this;return vt(this,function(w){switch(w.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!Un(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],a=g5(ki(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),Un(r.backgroundColor)||(this.ctx.fillStyle=nt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(h){B.ctx.save();var F=Do(t.curves),m=h.inset?0:f5,_=e5(F,-m+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(B.path(F),B.ctx.clip(),B.mask(_)):(B.mask(F),B.ctx.clip(),B.path(_)),B.ctx.shadowOffsetX=h.offsetX.number+m,B.ctx.shadowOffsetY=h.offsetY.number,B.ctx.shadowColor=nt(h.color),B.ctx.shadowBlur=h.blur.number,B.ctx.fillStyle=h.inset?nt(h.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),w.label=2;case 2:l=0,c=0,d=i,w.label=3;case 3:return c<d.length?(g=d[c],g.style!==0&&!Un(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,l,t.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,l,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,l,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,l,t.curves)];case 10:w.sent(),w.label=11;case 11:l++,w.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,n,i,a){return Ut(this,void 0,void 0,function(){var l,c,d,g,B,w,h,F,m,_,Q,E,K,V,X,Y,X,Y;return vt(this,function($){return this.ctx.save(),l=i5(i,n),c=Of(i,n),a===2&&(this.path(c),this.ctx.clip()),$t(c[0])?(d=c[0].start.x,g=c[0].start.y):(d=c[0].x,g=c[0].y),$t(c[1])?(B=c[1].end.x,w=c[1].end.y):(B=c[1].x,w=c[1].y),n===0||n===2?h=Math.abs(d-B):h=Math.abs(g-w),this.ctx.beginPath(),a===3?this.formatPath(l):this.formatPath(c.slice(0,2)),F=r<3?r*3:r*2,m=r<3?r*2:r,a===3&&(F=r,m=r),_=!0,h<=F*2?_=!1:h<=F*2+m?(Q=h/(2*F+m),F*=Q,m*=Q):(E=Math.floor((h+m)/(F+m)),K=(h-E*F)/(E-1),V=(h-(E+1)*F)/E,m=V<=0||Math.abs(m-K)<Math.abs(m-V)?K:V),_&&(a===3?this.ctx.setLineDash([0,F+m]):this.ctx.setLineDash([F,m])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=nt(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&($t(c[0])&&(X=c[3],Y=c[0],this.ctx.beginPath(),this.formatPath([new NA(X.end.x,X.end.y),new NA(Y.start.x,Y.start.y)]),this.ctx.stroke()),$t(c[1])&&(X=c[1],Y=c[2],this.ctx.beginPath(),this.formatPath([new NA(X.end.x,X.end.y),new NA(Y.start.x,Y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(t){return Ut(this,void 0,void 0,function(){var r;return vt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=nt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=t5(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(ud),d5=function(e){return e instanceof Jh||e instanceof Wh?!0:e instanceof nu&&e.type!==Ho&&e.type!==_o},g5=function(e,A){switch(e){case 0:return Do(A);case 2:return z2(A);case 1:default:return To(A)}},B5=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},p5=["-apple-system","system-ui"],w5=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return p5.indexOf(A)===-1}):e},v5=function(e){pr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(t){return Ut(this,void 0,void 0,function(){var r,n;return vt(this,function(i){switch(i.label){case 0:return r=Dc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,m5(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=nt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(ud),m5=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},C5=function(){function e(A){var t=A.id,r=A.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Va([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Va([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Va([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Va([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e}(),Q5=function(){function e(A,t){var r;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new C5({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new R2(this,A)}return e.instanceCount=1,e}(),fd=function(e,A){return A===void 0&&(A={}),F5(e,A)};typeof window<"u"&&id.setContext(window);var F5=function(e,A){return Ut(void 0,void 0,void 0,function(){var t,r,n,i,a,l,c,d,g,B,w,h,F,m,_,Q,E,K,V,X,$,Y,$,O,G,rA,I,H,R,k,oA,nA,cA,tA,fA,dA,bA,U,N,P;return vt(this,function(j){switch(j.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=e.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(O=A.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(G=A.imageTimeout)!==null&&G!==void 0?G:15e3,proxy:A.proxy,useCORS:(rA=A.useCORS)!==null&&rA!==void 0?rA:!1},i=mc({logging:(I=A.logging)!==null&&I!==void 0?I:!0,cache:A.cache},n),a={windowWidth:(H=A.windowWidth)!==null&&H!==void 0?H:r.innerWidth,windowHeight:(R=A.windowHeight)!==null&&R!==void 0?R:r.innerHeight,scrollX:(k=A.scrollX)!==null&&k!==void 0?k:r.pageXOffset,scrollY:(oA=A.scrollY)!==null&&oA!==void 0?oA:r.pageYOffset},l=new An(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),c=new Q5(i,l),d=(nA=A.foreignObjectRendering)!==null&&nA!==void 0?nA:!1,g={allowTaint:(cA=A.allowTaint)!==null&&cA!==void 0?cA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:d,copyStyles:d},c.logger.debug("Starting document clone with size "+l.width+"x"+l.height+" scrolled to "+-l.left+","+-l.top),B=new Df(c,e,g),w=B.clonedReferenceElement,w?[4,B.toIFrame(t,l)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=j.sent(),F=iu(w)||b2(w)?eg(w.ownerDocument):Mo(c,w),m=F.width,_=F.height,Q=F.left,E=F.top,K=y5(c,w,A.backgroundColor),V={canvas:A.canvas,backgroundColor:K,scale:(fA=(tA=A.scale)!==null&&tA!==void 0?tA:r.devicePixelRatio)!==null&&fA!==void 0?fA:1,x:((dA=A.x)!==null&&dA!==void 0?dA:0)+Q,y:((bA=A.y)!==null&&bA!==void 0?bA:0)+E,width:(U=A.width)!==null&&U!==void 0?U:Math.ceil(m),height:(N=A.height)!==null&&N!==void 0?N:Math.ceil(_)},d?(c.logger.debug("Document cloned, using foreign object rendering"),$=new v5(c,V),[4,$.render(w)]):[3,3];case 2:return X=j.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+Q+","+E+" with size "+m+"x"+_+" using computed rendering"),c.logger.debug("Starting DOM parsing"),Y=Yh(c,w),K===Y.styles.backgroundColor&&(Y.styles.backgroundColor=$r.TRANSPARENT),c.logger.debug("Starting renderer for element at "+V.x+","+V.y+" with size "+V.width+"x"+V.height),$=new h5(c,V),[4,$.render(Y)];case 4:X=j.sent(),j.label=5;case 5:return(!((P=A.removeContainer)!==null&&P!==void 0)||P)&&(Df.destroy(h)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,X]}})})},y5=function(e,A,t){var r=A.ownerDocument,n=r.documentElement?Rs(e,getComputedStyle(r.documentElement).backgroundColor):$r.TRANSPARENT,i=r.body?Rs(e,getComputedStyle(r.body).backgroundColor):$r.TRANSPARENT,a=typeof t=="string"?Rs(e,t):t===null?$r.TRANSPARENT:4294967295;return A===r.documentElement?Un(n)?Un(i)?a:i:n:a};const b5=Object.freeze(Object.defineProperty({__proto__:null,default:fd},Symbol.toStringTag,{value:"Module"}));function me(e){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},me(e)}var Ct=Uint8Array,Rt=Uint16Array,su=Int32Array,zo=new Ct([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,0,0,0]),Yo=new Ct([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,0,0]),Rc=new Ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hd=function(e,A){for(var t=new Rt(31),r=0;r<31;++r)t[r]=A+=1<<e[r-1];for(var n=new su(t[30]),r=1;r<30;++r)for(var i=t[r];i<t[r+1];++i)n[i]=i-t[r]<<5|r;return{b:t,r:n}},dd=hd(zo,2),gd=dd.b,Vc=dd.r;gd[28]=258,Vc[258]=28;var Bd=hd(Yo,0),U5=Bd.b,Mf=Bd.r,jc=new Rt(32768);for(var Ie=0;Ie<32768;++Ie){var Bn=(Ie&43690)>>1|(Ie&21845)<<1;Bn=(Bn&52428)>>2|(Bn&13107)<<2,Bn=(Bn&61680)>>4|(Bn&3855)<<4,jc[Ie]=((Bn&65280)>>8|(Bn&255)<<8)>>1}var Sr=function(e,A,t){for(var r=e.length,n=0,i=new Rt(A);n<r;++n)e[n]&&++i[e[n]-1];var a=new Rt(A);for(n=1;n<A;++n)a[n]=a[n-1]+i[n-1]<<1;var l;if(t){l=new Rt(1<<A);var c=15-A;for(n=0;n<r;++n)if(e[n])for(var d=n<<4|e[n],g=A-e[n],B=a[e[n]-1]++<<g,w=B|(1<<g)-1;B<=w;++B)l[jc[B]>>c]=d}else for(l=new Rt(r),n=0;n<r;++n)e[n]&&(l[n]=jc[a[e[n]-1]++]>>15-e[n]);return l},En=new Ct(288);for(var Ie=0;Ie<144;++Ie)En[Ie]=8;for(var Ie=144;Ie<256;++Ie)En[Ie]=9;for(var Ie=256;Ie<280;++Ie)En[Ie]=7;for(var Ie=280;Ie<288;++Ie)En[Ie]=8;var zs=new Ct(32);for(var Ie=0;Ie<32;++Ie)zs[Ie]=5;var L5=Sr(En,9,0),E5=Sr(En,9,1),x5=Sr(zs,5,0),I5=Sr(zs,5,1),lc=function(e){for(var A=e[0],t=1;t<e.length;++t)e[t]>A&&(A=e[t]);return A},hr=function(e,A,t){var r=A/8|0;return(e[r]|e[r+1]<<8)>>(A&7)&t},cc=function(e,A){var t=A/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(A&7)},au=function(e){return(e+7)/8|0},pd=function(e,A,t){return(t==null||t>e.length)&&(t=e.length),new Ct(e.subarray(A,t))},_5=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Br=function(e,A,t){var r=new Error(A||_5[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Br),!t)throw r;return r},H5=function(e,A,t,r){var n=e.length,i=0;if(!n||A.f&&!A.l)return t||new Ct(0);var a=!t,l=a||A.i!=2,c=A.i;a&&(t=new Ct(n*3));var d=function(FA){var _A=t.length;if(FA>_A){var EA=new Ct(Math.max(_A*2,FA));EA.set(t),t=EA}},g=A.f||0,B=A.p||0,w=A.b||0,h=A.l,F=A.d,m=A.m,_=A.n,Q=n*8;do{if(!h){g=hr(e,B,1);var E=hr(e,B+1,3);if(B+=3,E)if(E==1)h=E5,F=I5,m=9,_=5;else if(E==2){var Y=hr(e,B,31)+257,$=hr(e,B+10,15)+4,O=Y+hr(e,B+5,31)+1;B+=14;for(var G=new Ct(O),rA=new Ct(19),I=0;I<$;++I)rA[Rc[I]]=hr(e,B+I*3,7);B+=$*3;for(var H=lc(rA),R=(1<<H)-1,k=Sr(rA,H,1),I=0;I<O;){var oA=k[hr(e,B,R)];B+=oA&15;var K=oA>>4;if(K<16)G[I++]=K;else{var nA=0,cA=0;for(K==16?(cA=3+hr(e,B,3),B+=2,nA=G[I-1]):K==17?(cA=3+hr(e,B,7),B+=3):K==18&&(cA=11+hr(e,B,127),B+=7);cA--;)G[I++]=nA}}var tA=G.subarray(0,Y),fA=G.subarray(Y);m=lc(tA),_=lc(fA),h=Sr(tA,m,1),F=Sr(fA,_,1)}else Br(1);else{var K=au(B)+4,V=e[K-4]|e[K-3]<<8,X=K+V;if(X>n){c&&Br(0);break}l&&d(w+V),t.set(e.subarray(K,X),w),A.b=w+=V,A.p=B=X*8,A.f=g;continue}if(B>Q){c&&Br(0);break}}l&&d(w+131072);for(var dA=(1<<m)-1,bA=(1<<_)-1,U=B;;U=B){var nA=h[cc(e,B)&dA],N=nA>>4;if(B+=nA&15,B>Q){c&&Br(0);break}if(nA||Br(2),N<256)t[w++]=N;else if(N==256){U=B,h=null;break}else{var P=N-254;if(N>264){var I=N-257,j=zo[I];P=hr(e,B,(1<<j)-1)+gd[I],B+=j}var Z=F[cc(e,B)&bA],aA=Z>>4;Z||Br(3),B+=Z&15;var fA=U5[aA];if(aA>3){var j=Yo[aA];fA+=cc(e,B)&(1<<j)-1,B+=j}if(B>Q){c&&Br(0);break}l&&d(w+131072);var lA=w+P;if(w<fA){var uA=i-fA,yA=Math.min(fA,lA);for(uA+w<0&&Br(3);w<yA;++w)t[w]=r[uA+w]}for(;w<lA;++w)t[w]=t[w-fA]}}A.l=h,A.p=U,A.b=w,A.f=g,h&&(g=1,A.m=m,A.d=F,A.n=_)}while(!g);return w!=t.length&&a?pd(t,0,w):t.subarray(0,w)},Zr=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8},Hs=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},uc=function(e,A){for(var t=[],r=0;r<e.length;++r)e[r]&&t.push({s:r,f:e[r]});var n=t.length,i=t.slice();if(!n)return{t:vd,l:0};if(n==1){var a=new Ct(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(X,Y){return X.f-Y.f}),t.push({s:-1,f:25001});var l=t[0],c=t[1],d=0,g=1,B=2;for(t[0]={s:-1,f:l.f+c.f,l,r:c};g!=n-1;)l=t[t[d].f<t[B].f?d++:B++],c=t[d!=g&&t[d].f<t[B].f?d++:B++],t[g++]={s:-1,f:l.f+c.f,l,r:c};for(var w=i[0].s,r=1;r<n;++r)i[r].s>w&&(w=i[r].s);var h=new Rt(w+1),F=Gc(t[g-1],h,0);if(F>A){var r=0,m=0,_=F-A,Q=1<<_;for(i.sort(function(Y,$){return h[$.s]-h[Y.s]||Y.f-$.f});r<n;++r){var E=i[r].s;if(h[E]>A)m+=Q-(1<<F-h[E]),h[E]=A;else break}for(m>>=_;m>0;){var K=i[r].s;h[K]<A?m-=1<<A-h[K]++-1:++r}for(;r>=0&&m;--r){var V=i[r].s;h[V]==A&&(--h[V],++m)}F=A}return{t:new Ct(h),l:F}},Gc=function(e,A,t){return e.s==-1?Math.max(Gc(e.l,A,t+1),Gc(e.r,A,t+1)):A[e.s]=t},Kf=function(e){for(var A=e.length;A&&!e[--A];);for(var t=new Rt(++A),r=0,n=e[0],i=1,a=function(c){t[r++]=c},l=1;l<=A;++l)if(e[l]==n&&l!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(n),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(n);i=1,n=e[l]}return{c:t.subarray(0,r),n:A}},Ss=function(e,A){for(var t=0,r=0;r<A.length;++r)t+=e[r]*A[r];return t},wd=function(e,A,t){var r=t.length,n=au(A+2);e[n]=r&255,e[n+1]=r>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var i=0;i<r;++i)e[n+i+4]=t[i];return(n+4+r)*8},Rf=function(e,A,t,r,n,i,a,l,c,d,g){Zr(A,g++,t),++n[256];for(var B=uc(n,15),w=B.t,h=B.l,F=uc(i,15),m=F.t,_=F.l,Q=Kf(w),E=Q.c,K=Q.n,V=Kf(m),X=V.c,Y=V.n,$=new Rt(19),O=0;O<E.length;++O)++$[E[O]&31];for(var O=0;O<X.length;++O)++$[X[O]&31];for(var G=uc($,7),rA=G.t,I=G.l,H=19;H>4&&!rA[Rc[H-1]];--H);var R=d+5<<3,k=Ss(n,En)+Ss(i,zs)+a,oA=Ss(n,w)+Ss(i,m)+a+14+3*H+Ss($,rA)+2*$[16]+3*$[17]+7*$[18];if(c>=0&&R<=k&&R<=oA)return wd(A,g,e.subarray(c,c+d));var nA,cA,tA,fA;if(Zr(A,g,1+(oA<k)),g+=2,oA<k){nA=Sr(w,h,0),cA=w,tA=Sr(m,_,0),fA=m;var dA=Sr(rA,I,0);Zr(A,g,K-257),Zr(A,g+5,Y-1),Zr(A,g+10,H-4),g+=14;for(var O=0;O<H;++O)Zr(A,g+3*O,rA[Rc[O]]);g+=3*H;for(var bA=[E,X],U=0;U<2;++U)for(var N=bA[U],O=0;O<N.length;++O){var P=N[O]&31;Zr(A,g,dA[P]),g+=rA[P],P>15&&(Zr(A,g,N[O]>>5&127),g+=N[O]>>12)}}else nA=L5,cA=En,tA=x5,fA=zs;for(var O=0;O<l;++O){var j=r[O];if(j>255){var P=j>>18&31;Hs(A,g,nA[P+257]),g+=cA[P+257],P>7&&(Zr(A,g,j>>23&31),g+=zo[P]);var Z=j&31;Hs(A,g,tA[Z]),g+=fA[Z],Z>3&&(Hs(A,g,j>>5&8191),g+=Yo[Z])}else Hs(A,g,nA[j]),g+=cA[j]}return Hs(A,g,nA[256]),g+cA[256]},S5=new su([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vd=new Ct(0),N5=function(e,A,t,r,n,i){var a=i.z||e.length,l=new Ct(r+a+5*(1+Math.ceil(a/7e3))+n),c=l.subarray(r,l.length-n),d=i.l,g=(i.r||0)&7;if(A){g&&(c[0]=i.r>>3);for(var B=S5[A-1],w=B>>13,h=B&8191,F=(1<<t)-1,m=i.p||new Rt(32768),_=i.h||new Rt(F+1),Q=Math.ceil(t/3),E=2*Q,K=function(JA){return(e[JA]^e[JA+1]<<Q^e[JA+2]<<E)&F},V=new su(25e3),X=new Rt(288),Y=new Rt(32),$=0,O=0,G=i.i||0,rA=0,I=i.w||0,H=0;G+2<a;++G){var R=K(G),k=G&32767,oA=_[R];if(m[k]=oA,_[R]=k,I<=G){var nA=a-G;if(($>7e3||rA>24576)&&(nA>423||!d)){g=Rf(e,c,0,V,X,Y,O,rA,H,G-H,g),rA=$=O=0,H=G;for(var cA=0;cA<286;++cA)X[cA]=0;for(var cA=0;cA<30;++cA)Y[cA]=0}var tA=2,fA=0,dA=h,bA=k-oA&32767;if(nA>2&&R==K(G-bA))for(var U=Math.min(w,nA)-1,N=Math.min(32767,G),P=Math.min(258,nA);bA<=N&&--dA&&k!=oA;){if(e[G+tA]==e[G+tA-bA]){for(var j=0;j<P&&e[G+j]==e[G+j-bA];++j);if(j>tA){if(tA=j,fA=bA,j>U)break;for(var Z=Math.min(bA,j-2),aA=0,cA=0;cA<Z;++cA){var lA=G-bA+cA&32767,uA=m[lA],yA=lA-uA&32767;yA>aA&&(aA=yA,oA=lA)}}}k=oA,oA=m[k],bA+=k-oA&32767}if(fA){V[rA++]=268435456|Vc[tA]<<18|Mf[fA];var FA=Vc[tA]&31,_A=Mf[fA]&31;O+=zo[FA]+Yo[_A],++X[257+FA],++Y[_A],I=G+tA,++$}else V[rA++]=e[G],++X[e[G]]}}for(G=Math.max(G,I);G<a;++G)V[rA++]=e[G],++X[e[G]];g=Rf(e,c,d,V,X,Y,O,rA,H,G-H,g),d||(i.r=g&7|c[g/8|0]<<3,g-=7,i.h=_,i.p=m,i.i=G,i.w=I)}else{for(var G=i.w||0;G<a+d;G+=65535){var EA=G+65535;EA>=a&&(c[g/8|0]=d,EA=a),g=wd(c,g+1,e.subarray(G,EA))}i.i=a}return pd(l,0,r+au(g)+n)},md=function(){var e=1,A=0;return{p:function(t){for(var r=e,n=A,i=t.length|0,a=0;a!=i;){for(var l=Math.min(a+2655,i);a<l;++a)n+=r+=t[a];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}e=r,A=n},d:function(){return e%=65521,A%=65521,(e&255)<<24|(e&65280)<<8|(A&255)<<8|A>>8}}},D5=function(e,A,t,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),a=new Ct(i.length+e.length);a.set(i),a.set(e,i.length),e=a,n.w=i.length}return N5(e,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+A.mem,t,r,n)},Cd=function(e,A,t){for(;t;++A)e[A]=t,t>>>=8},T5=function(e,A){var t=A.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(A.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,A.dictionary){var n=md();n.p(A.dictionary),Cd(e,2,n.d())}},P5=function(e,A){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Br(6,"invalid zlib data"),(e[1]>>5&1)==1&&Br(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function qc(e,A){A||(A={});var t=md();t.p(e);var r=D5(e,A,A.dictionary?6:2,4);return T5(r,A),Cd(r,r.length-4,t.d()),r}function O5(e,A){return H5(e.subarray(P5(e),-4),{i:2},A,A)}var k5=typeof TextDecoder<"u"&&new TextDecoder,M5=0;try{k5.decode(vd,{stream:!0}),M5=1}catch{}var XA=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function fc(){XA.console&&typeof XA.console.log=="function"&&XA.console.log.apply(XA.console,arguments)}var Ue={log:fc,warn:function(e){XA.console&&(typeof XA.console.warn=="function"?XA.console.warn.apply(XA.console,arguments):fc.call(null,arguments))},error:function(e){XA.console&&(typeof XA.console.error=="function"?XA.console.error.apply(XA.console,arguments):fc(e))}};function hc(e,A,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){qn(r.response,A,t)},r.onerror=function(){Ue.error("could not download file")},r.send()}function Vf(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function fo(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var qs,Wc,qn=XA.saveAs||((typeof window>"u"?"undefined":me(window))!=="object"||window!==XA?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,A,t){var r=XA.URL||XA.webkitURL,n=document.createElement("a");A=A||e.name||"download",n.download=A,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?Vf(n.href)?hc(e,A,t):fo(n,n.target="_blank"):fo(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){fo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,t){if(A=A||e.name||"download",typeof e=="string")if(Vf(e))hc(e,A,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){fo(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:me(i)!=="object"&&(Ue.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(e,t),A)}:function(e,A,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return hc(e,A,t);var n=e.type==="application/octet-stream",i=/constructor/i.test(XA.HTMLElement)||XA.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":me(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=a?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(e)}else{var c=XA.URL||XA.webkitURL,d=c.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/**
 * 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 Qd(e){var A;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,a=n.exec(e);a&&(A=i(a),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+l+c+d}}/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function dc(e,A){var t=e[0],r=e[1],n=e[2],i=e[3];t=gt(t,r,n,i,A[0],7,-680876936),i=gt(i,t,r,n,A[1],12,-389564586),n=gt(n,i,t,r,A[2],17,606105819),r=gt(r,n,i,t,A[3],22,-1044525330),t=gt(t,r,n,i,A[4],7,-176418897),i=gt(i,t,r,n,A[5],12,1200080426),n=gt(n,i,t,r,A[6],17,-1473231341),r=gt(r,n,i,t,A[7],22,-45705983),t=gt(t,r,n,i,A[8],7,1770035416),i=gt(i,t,r,n,A[9],12,-1958414417),n=gt(n,i,t,r,A[10],17,-42063),r=gt(r,n,i,t,A[11],22,-1990404162),t=gt(t,r,n,i,A[12],7,1804603682),i=gt(i,t,r,n,A[13],12,-40341101),n=gt(n,i,t,r,A[14],17,-1502002290),t=Bt(t,r=gt(r,n,i,t,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Bt(i,t,r,n,A[6],9,-1069501632),n=Bt(n,i,t,r,A[11],14,643717713),r=Bt(r,n,i,t,A[0],20,-373897302),t=Bt(t,r,n,i,A[5],5,-701558691),i=Bt(i,t,r,n,A[10],9,38016083),n=Bt(n,i,t,r,A[15],14,-660478335),r=Bt(r,n,i,t,A[4],20,-405537848),t=Bt(t,r,n,i,A[9],5,568446438),i=Bt(i,t,r,n,A[14],9,-1019803690),n=Bt(n,i,t,r,A[3],14,-187363961),r=Bt(r,n,i,t,A[8],20,1163531501),t=Bt(t,r,n,i,A[13],5,-1444681467),i=Bt(i,t,r,n,A[2],9,-51403784),n=Bt(n,i,t,r,A[7],14,1735328473),t=pt(t,r=Bt(r,n,i,t,A[12],20,-1926607734),n,i,A[5],4,-378558),i=pt(i,t,r,n,A[8],11,-2022574463),n=pt(n,i,t,r,A[11],16,1839030562),r=pt(r,n,i,t,A[14],23,-35309556),t=pt(t,r,n,i,A[1],4,-1530992060),i=pt(i,t,r,n,A[4],11,1272893353),n=pt(n,i,t,r,A[7],16,-155497632),r=pt(r,n,i,t,A[10],23,-1094730640),t=pt(t,r,n,i,A[13],4,681279174),i=pt(i,t,r,n,A[0],11,-358537222),n=pt(n,i,t,r,A[3],16,-722521979),r=pt(r,n,i,t,A[6],23,76029189),t=pt(t,r,n,i,A[9],4,-640364487),i=pt(i,t,r,n,A[12],11,-421815835),n=pt(n,i,t,r,A[15],16,530742520),t=wt(t,r=pt(r,n,i,t,A[2],23,-995338651),n,i,A[0],6,-198630844),i=wt(i,t,r,n,A[7],10,1126891415),n=wt(n,i,t,r,A[14],15,-1416354905),r=wt(r,n,i,t,A[5],21,-57434055),t=wt(t,r,n,i,A[12],6,1700485571),i=wt(i,t,r,n,A[3],10,-1894986606),n=wt(n,i,t,r,A[10],15,-1051523),r=wt(r,n,i,t,A[1],21,-2054922799),t=wt(t,r,n,i,A[8],6,1873313359),i=wt(i,t,r,n,A[15],10,-30611744),n=wt(n,i,t,r,A[6],15,-1560198380),r=wt(r,n,i,t,A[13],21,1309151649),t=wt(t,r,n,i,A[4],6,-145523070),i=wt(i,t,r,n,A[11],10,-1120210379),n=wt(n,i,t,r,A[2],15,718787259),r=wt(r,n,i,t,A[9],21,-343485551),e[0]=yn(t,e[0]),e[1]=yn(r,e[1]),e[2]=yn(n,e[2]),e[3]=yn(i,e[3])}function Zo(e,A,t,r,n,i){return A=yn(yn(A,e),yn(r,i)),yn(A<<n|A>>>32-n,t)}function gt(e,A,t,r,n,i,a){return Zo(A&t|~A&r,e,A,n,i,a)}function Bt(e,A,t,r,n,i,a){return Zo(A&r|t&~r,e,A,n,i,a)}function pt(e,A,t,r,n,i,a){return Zo(A^t^r,e,A,n,i,a)}function wt(e,A,t,r,n,i,a){return Zo(t^(A|~r),e,A,n,i,a)}function Fd(e){var A,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=e.length;A+=64)dc(r,K5(e.substring(A-64,A)));e=e.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<e.length;A++)n[A>>2]|=e.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(dc(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*t,dc(r,n),r}function K5(e){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=e.charCodeAt(A)+(e.charCodeAt(A+1)<<8)+(e.charCodeAt(A+2)<<16)+(e.charCodeAt(A+3)<<24);return t}qs=XA.atob.bind(XA),Wc=XA.btoa.bind(XA);var jf="0123456789abcdef".split("");function R5(e){for(var A="",t=0;t<4;t++)A+=jf[e>>8*t+4&15]+jf[e>>8*t&15];return A}function V5(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Jc(e){return Fd(e).map(V5).join("")}var j5=function(e){for(var A=0;A<e.length;A++)e[A]=R5(e[A]);return e.join("")}(Fd("hello"))!="5d41402abc4b2a76b9719d911017c592";function yn(e,A){if(j5){var t=(65535&e)+(65535&A);return(e>>16)+(A>>16)+(t>>16)<<16|65535&t}return e+A&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function Xc(e,A){var t,r,n,i;if(e!==t){for(var a=(n=e,i=1+(256/e.length>>0),new Array(i+1).join(n)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var g=l[c];d=(d+g+a.charCodeAt(c))%256,l[c]=l[d],l[d]=g}t=e,r=l}else l=r;var B=A.length,w=0,h=0,F="";for(c=0;c<B;c++)h=(h+(g=l[w=(w+1)%256]))%256,l[w]=l[h],l[h]=g,a=l[(l[w]+l[h])%256],F+=String.fromCharCode(A.charCodeAt(c)^a);return F}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var Gf={print:4,modify:8,copy:16,"annot-forms":32};function Mi(e,A,t,r){this.v=1,this.r=2;var n=192;e.forEach(function(l){if(Gf.perm!==void 0)throw new Error("Invalid permission: "+l);n+=Gf[l]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=Jc(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Xc(this.encryptionKey,this.padding)}function Ki(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var A="",t=e.length,r=0;r<t;r++){var n=e.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=e[r]}return A}function qf(e){if(me(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(t,r,n){if(n=n||!1,typeof t!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(t)||(A[t]={});var i=Math.random().toString(35);return A[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in A)if(A[r][t])return delete A[r][t],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[t]){var a=A[t][i];try{a[0].apply(e,r)}catch(l){XA.console&&Ue.error("jsPDF PubSub Error",l.message,l)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Oo(e){if(!(this instanceof Oo))return new Oo(e);var A="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function yd(e,A){this.gState=e,this.matrix=A,this.id="",this.objectNumber=-1}function Jn(e,A,t,r,n){if(!(this instanceof Jn))return new Jn(e,A,t,r,n);this.type=e==="axial"?2:3,this.coords=A,this.colors=t,yd.call(this,r,n)}function Vi(e,A,t,r,n){if(!(this instanceof Vi))return new Vi(e,A,t,r,n);this.boundingBox=e,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,yd.call(this,r,n)}function WA(e){var A,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],l=1,c=16,d="S",g=null;me(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(g=e.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(A=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),d=e.defaultPathOperation||"S"),a=e.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",t=(""+(t||"P")).toLowerCase();var B=e.putOnlyUsedFonts||!1,w={},h={internal:{},__private__:{}};h.__private__.PubSub=qf;var F="1.3",m=h.__private__.getPdfVersion=function(){return F};h.__private__.setPdfVersion=function(u){F=u};var _={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]};h.__private__.getPageFormats=function(){return _};var Q=h.__private__.getPageFormat=function(u){return _[u]};n=n||"a4";var E={COMPAT:"compat",ADVANCED:"advanced"},K=E.COMPAT;function V(){this.saveGraphicsState(),M(new GA(SA,0,0,-SA,0,rn()*SA).toString()+" cm"),this.setFontSize(this.getFontSize()/SA),d="n",K=E.ADVANCED}function X(){this.restoreGraphicsState(),d="S",K=E.COMPAT}var Y=h.__private__.combineFontStyleAndFontWeight=function(u,C){if(u=="bold"&&C=="normal"||u=="bold"&&C==400||u=="normal"&&C=="italic"||u=="bold"&&C=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return C&&(u=C==400||C==="normal"?u==="italic"?"italic":"normal":C!=700&&C!=="bold"||u!=="normal"?(C==700?"bold":C)+""+u:"bold"),u};h.advancedAPI=function(u){var C=K===E.COMPAT;return C&&V.call(this),typeof u!="function"||(u(this),C&&X.call(this)),this},h.compatAPI=function(u){var C=K===E.ADVANCED;return C&&X.call(this),typeof u!="function"||(u(this),C&&V.call(this)),this},h.isAdvancedAPI=function(){return K===E.ADVANCED};var $,O=function(u){if(K!==E.ADVANCED)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},G=h.roundToPrecision=h.__private__.roundToPrecision=function(u,C){var T=A||C;if(isNaN(u)||isNaN(T))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(T).replace(/0+$/,"")};$=h.hpf=h.__private__.hpf=typeof c=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return G(u,c)}:c==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return G(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return G(u,16)};var rA=h.f2=h.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return G(u,2)},I=h.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return G(u,3)},H=h.scale=h.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return K===E.COMPAT?u*SA:K===E.ADVANCED?u:void 0},R=function(u){return K===E.COMPAT?rn()-u:K===E.ADVANCED?u:void 0},k=function(u){return H(R(u))};h.__private__.setPrecision=h.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(A=parseInt(u,10))};var oA,nA="00000000000000000000000000000000",cA=h.__private__.getFileId=function(){return nA},tA=h.__private__.setFileId=function(u){return nA=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():nA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(ft=new Mi(g.userPermissions,g.userPassword,g.ownerPassword,nA)),nA};h.setFileId=function(u){return tA(u),this},h.getFileId=function(){return cA()};var fA=h.__private__.convertDateToPDFDate=function(u){var C=u.getTimezoneOffset(),T=C<0?"+":"-",q=Math.floor(Math.abs(C/60)),eA=Math.abs(C%60),gA=[T,P(q),"'",P(eA),"'"].join("");return["D:",u.getFullYear(),P(u.getMonth()+1),P(u.getDate()),P(u.getHours()),P(u.getMinutes()),P(u.getSeconds()),gA].join("")},dA=h.__private__.convertPDFDateToDate=function(u){var C=parseInt(u.substr(2,4),10),T=parseInt(u.substr(6,2),10)-1,q=parseInt(u.substr(8,2),10),eA=parseInt(u.substr(10,2),10),gA=parseInt(u.substr(12,2),10),CA=parseInt(u.substr(14,2),10);return new Date(C,T,q,eA,gA,CA,0)},bA=h.__private__.setCreationDate=function(u){var C;if(u===void 0&&(u=new Date),u instanceof Date)C=fA(u);else{if(!/^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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");C=u}return oA=C},U=h.__private__.getCreationDate=function(u){var C=oA;return u==="jsDate"&&(C=dA(oA)),C};h.setCreationDate=function(u){return bA(u),this},h.getCreationDate=function(u){return U(u)};var N,P=h.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},j=h.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},Z=0,aA=[],lA=[],uA=0,yA=[],FA=[],_A=!1,EA=lA,JA=function(){Z=0,uA=0,lA=[],aA=[],yA=[],Or=We(),ir=We()};h.__private__.setCustomOutputDestination=function(u){_A=!0,EA=u};var BA=function(u){_A||(EA=u)};h.__private__.resetCustomOutputDestination=function(){_A=!1,EA=lA};var M=h.__private__.out=function(u){return u=u.toString(),uA+=u.length+1,EA.push(u),EA},te=h.__private__.write=function(u){return M(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},MA=h.__private__.getArrayBuffer=function(u){for(var C=u.length,T=new ArrayBuffer(C),q=new Uint8Array(T);C--;)q[C]=u.charCodeAt(C);return T},QA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return QA};var UA=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(u){return UA=K===E.ADVANCED?u/SA:u,this};var HA,IA=h.__private__.getFontSize=h.getFontSize=function(){return K===E.COMPAT?UA:UA*SA},KA=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(u){return KA=u,this},h.__private__.getR2L=h.getR2L=function(){return KA};var ZA,ie=h.__private__.setZoomMode=function(u){var C=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))HA=u;else if(isNaN(u)){if(C.indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');HA=u}else HA=parseInt(u,10)};h.__private__.getZoomMode=function(){return HA};var se,ue=h.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');ZA=u};h.__private__.getPageMode=function(){return ZA};var Ce=h.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');se=u};h.__private__.getLayoutMode=function(){return se},h.__private__.setDisplayMode=h.setDisplayMode=function(u,C,T){return ie(u),Ce(C),ue(T),this};var zA={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(u){if(Object.keys(zA).indexOf(u)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zA[u]},h.__private__.getDocumentProperties=function(){return zA},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(u){for(var C in zA)zA.hasOwnProperty(C)&&u[C]&&(zA[C]=u[C]);return this},h.__private__.setDocumentProperty=function(u,C){if(Object.keys(zA).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zA[u]=C};var ae,SA,ut,he,tr,ye={},_e={},mr=[],ge={},In={},Ne={},rr={},Pr=null,De=0,$A=[],Be=new qf(h),_n=e.hotfixes||[],st={},Cr={},Qr=[],GA=function u(C,T,q,eA,gA,CA){if(!(this instanceof u))return new u(C,T,q,eA,gA,CA);isNaN(C)&&(C=1),isNaN(T)&&(T=0),isNaN(q)&&(q=0),isNaN(eA)&&(eA=1),isNaN(gA)&&(gA=0),isNaN(CA)&&(CA=0),this._matrix=[C,T,q,eA,gA,CA]};Object.defineProperty(GA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(GA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(GA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(GA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(GA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(GA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(GA.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(GA.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(GA.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(GA.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(GA.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(GA.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(GA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(GA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(GA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(GA.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),GA.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map($).join(u)},GA.prototype.multiply=function(u){var C=u.sx*this.sx+u.shy*this.shx,T=u.sx*this.shy+u.shy*this.sy,q=u.shx*this.sx+u.sy*this.shx,eA=u.shx*this.shy+u.sy*this.sy,gA=u.tx*this.sx+u.ty*this.shx+this.tx,CA=u.tx*this.shy+u.ty*this.sy+this.ty;return new GA(C,T,q,eA,gA,CA)},GA.prototype.decompose=function(){var u=this.sx,C=this.shy,T=this.shx,q=this.sy,eA=this.tx,gA=this.ty,CA=Math.sqrt(u*u+C*C),DA=(u/=CA)*T+(C/=CA)*q;T-=u*DA,q-=C*DA;var RA=Math.sqrt(T*T+q*q);return DA/=RA,u*(q/=RA)<C*(T/=RA)&&(u=-u,C=-C,DA=-DA,CA=-CA),{scale:new GA(CA,0,0,RA,0,0),translate:new GA(1,0,0,1,eA,gA),rotate:new GA(u,C,-C,u,0,0),skew:new GA(1,0,DA,1,0,0)}},GA.prototype.toString=function(u){return this.join(" ")},GA.prototype.inversed=function(){var u=this.sx,C=this.shy,T=this.shx,q=this.sy,eA=this.tx,gA=this.ty,CA=1/(u*q-C*T),DA=q*CA,RA=-C*CA,re=-T*CA,Ae=u*CA;return new GA(DA,RA,re,Ae,-DA*eA-re*gA,-RA*eA-Ae*gA)},GA.prototype.applyToPoint=function(u){var C=u.x*this.sx+u.y*this.shx+this.tx,T=u.x*this.shy+u.y*this.sy+this.ty;return new hi(C,T)},GA.prototype.applyToRectangle=function(u){var C=this.applyToPoint(u),T=this.applyToPoint(new hi(u.x+u.w,u.y+u.h));return new as(C.x,C.y,T.x-C.x,T.y-C.y)},GA.prototype.clone=function(){var u=this.sx,C=this.shy,T=this.shx,q=this.sy,eA=this.tx,gA=this.ty;return new GA(u,C,T,q,eA,gA)},h.Matrix=GA;var nr=h.matrixMult=function(u,C){return C.multiply(u)},Fr=new GA(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Fr;var Lt=function(u,C){if(!In[u]){var T=(C instanceof Jn?"Sh":"P")+(Object.keys(ge).length+1).toString(10);C.id=T,In[u]=T,ge[T]=C,Be.publish("addPattern",C)}};h.ShadingPattern=Jn,h.TilingPattern=Vi,h.addShadingPattern=function(u,C){return O("addShadingPattern()"),Lt(u,C),this},h.beginTilingPattern=function(u){O("beginTilingPattern()"),pa(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},h.endTilingPattern=function(u,C){O("endTilingPattern()"),C.stream=FA[N].join(`
`),Lt(u,C),Be.publish("endTilingPattern",C),Qr.pop().restore()};var Ze=h.__private__.newObject=function(){var u=We();return Dt(u,!0),u},We=h.__private__.newObjectDeferred=function(){return Z++,aA[Z]=function(){return uA},Z},Dt=function(u,C){return C=typeof C=="boolean"&&C,aA[u]=uA,C&&M(u+" 0 obj"),u},Ai=h.__private__.newAdditionalObject=function(){var u={objId:We(),content:""};return yA.push(u),u},Or=We(),ir=We(),sr=h.__private__.decodeColorString=function(u){var C=u.split(" ");if(C.length!==2||C[1]!=="g"&&C[1]!=="G")C.length===5&&(C[4]==="k"||C[4]==="K")&&(C=[(1-C[0])*(1-C[3]),(1-C[1])*(1-C[3]),(1-C[2])*(1-C[3]),"r"]);else{var T=parseFloat(C[0]);C=[T,T,T,"r"]}for(var q="#",eA=0;eA<3;eA++)q+=("0"+Math.floor(255*parseFloat(C[eA])).toString(16)).slice(-2);return q},ar=h.__private__.encodeColorString=function(u){var C;typeof u=="string"&&(u={ch1:u});var T=u.ch1,q=u.ch2,eA=u.ch3,gA=u.ch4,CA=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof T=="string"&&T.charAt(0)!=="#"){var DA=new Qd(T);if(DA.ok)T=DA.toHex();else if(!/^\d*\.?\d*$/.test(T))throw new Error('Invalid color "'+T+'" passed to jsPDF.encodeColorString.')}if(typeof T=="string"&&/^#[0-9A-Fa-f]{3}$/.test(T)&&(T="#"+T[1]+T[1]+T[2]+T[2]+T[3]+T[3]),typeof T=="string"&&/^#[0-9A-Fa-f]{6}$/.test(T)){var RA=parseInt(T.substr(1),16);T=RA>>16&255,q=RA>>8&255,eA=255&RA}if(q===void 0||gA===void 0&&T===q&&q===eA)if(typeof T=="string")C=T+" "+CA[0];else switch(u.precision){case 2:C=rA(T/255)+" "+CA[0];break;case 3:default:C=I(T/255)+" "+CA[0]}else if(gA===void 0||me(gA)==="object"){if(gA&&!isNaN(gA.a)&&gA.a===0)return C=["1.","1.","1.",CA[1]].join(" ");if(typeof T=="string")C=[T,q,eA,CA[1]].join(" ");else switch(u.precision){case 2:C=[rA(T/255),rA(q/255),rA(eA/255),CA[1]].join(" ");break;default:case 3:C=[I(T/255),I(q/255),I(eA/255),CA[1]].join(" ")}}else if(typeof T=="string")C=[T,q,eA,gA,CA[2]].join(" ");else switch(u.precision){case 2:C=[rA(T),rA(q),rA(eA),rA(gA),CA[2]].join(" ");break;case 3:default:C=[I(T),I(q),I(eA),I(gA),CA[2]].join(" ")}return C},yr=h.__private__.getFilters=function(){return a},Vt=h.__private__.putStream=function(u){var C=(u=u||{}).data||"",T=u.filters||yr(),q=u.alreadyAppliedFilters||[],eA=u.addLength1||!1,gA=C.length,CA=u.objectId,DA=function(ht){return ht};if(g!==null&&CA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(DA=ft.encryptor(CA,0));var RA={};T===!0&&(T=["FlateEncode"]);var re=u.additionalKeyValues||[],Ae=(RA=WA.API.processDataByFilters!==void 0?WA.API.processDataByFilters(C,T):{data:C,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(RA.data.length!==0&&(re.push({key:"Length",value:RA.data.length}),eA===!0&&re.push({key:"Length1",value:gA})),Ae.length!=0)if(Ae.split("/").length-1==1)re.push({key:"Filter",value:Ae});else{re.push({key:"Filter",value:"["+Ae+"]"});for(var ce=0;ce<re.length;ce+=1)if(re[ce].key==="DecodeParms"){for(var Se=[],Te=0;Te<RA.reverseChain.split("/").length-1;Te+=1)Se.push("null");Se.push(re[ce].value),re[ce].value="["+Se.join(" ")+"]"}}M("<<");for(var Je=0;Je<re.length;Je++)M("/"+re[Je].key+" "+re[Je].value);M(">>"),RA.data.length!==0&&(M("stream"),M(DA(RA.data)),M("endstream"))},br=h.__private__.putPage=function(u){var C=u.number,T=u.data,q=u.objId,eA=u.contentsObjId;Dt(q,!0),M("<</Type /Page"),M("/Parent "+u.rootDictionaryObjId+" 0 R"),M("/Resources "+u.resourceDictionaryObjId+" 0 R"),M("/MediaBox ["+parseFloat($(u.mediaBox.bottomLeftX))+" "+parseFloat($(u.mediaBox.bottomLeftY))+" "+$(u.mediaBox.topRightX)+" "+$(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&M("/CropBox ["+$(u.cropBox.bottomLeftX)+" "+$(u.cropBox.bottomLeftY)+" "+$(u.cropBox.topRightX)+" "+$(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&M("/BleedBox ["+$(u.bleedBox.bottomLeftX)+" "+$(u.bleedBox.bottomLeftY)+" "+$(u.bleedBox.topRightX)+" "+$(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&M("/TrimBox ["+$(u.trimBox.bottomLeftX)+" "+$(u.trimBox.bottomLeftY)+" "+$(u.trimBox.topRightX)+" "+$(u.trimBox.topRightY)+"]"),u.artBox!==null&&M("/ArtBox ["+$(u.artBox.bottomLeftX)+" "+$(u.artBox.bottomLeftY)+" "+$(u.artBox.topRightX)+" "+$(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&M("/UserUnit "+u.userUnit),Be.publish("putPage",{objId:q,pageContext:$A[C],pageNumber:C,page:T}),M("/Contents "+eA+" 0 R"),M(">>"),M("endobj");var gA=T.join(`
`);return K===E.ADVANCED&&(gA+=`
Q`),Dt(eA,!0),Vt({data:gA,filters:yr(),objectId:eA}),M("endobj"),q},Hn=h.__private__.putPages=function(){var u,C,T=[];for(u=1;u<=De;u++)$A[u].objId=We(),$A[u].contentsObjId=We();for(u=1;u<=De;u++)T.push(br({number:u,data:FA[u],objId:$A[u].objId,contentsObjId:$A[u].contentsObjId,mediaBox:$A[u].mediaBox,cropBox:$A[u].cropBox,bleedBox:$A[u].bleedBox,trimBox:$A[u].trimBox,artBox:$A[u].artBox,userUnit:$A[u].userUnit,rootDictionaryObjId:Or,resourceDictionaryObjId:ir}));Dt(Or,!0),M("<</Type /Pages");var q="/Kids [";for(C=0;C<De;C++)q+=T[C]+" 0 R ";M(q+"]"),M("/Count "+De),M(">>"),M("endobj"),Be.publish("postPutPages")},ei=function(u){Be.publish("putFont",{font:u,out:M,newObject:Ze,putStream:Vt}),u.isAlreadyPutted!==!0&&(u.objectNumber=Ze(),M("<<"),M("/Type /Font"),M("/BaseFont /"+Ki(u.postScriptName)),M("/Subtype /Type1"),typeof u.encoding=="string"&&M("/Encoding /"+u.encoding),M("/FirstChar 32"),M("/LastChar 255"),M(">>"),M("endobj"))},ti=function(){for(var u in ye)ye.hasOwnProperty(u)&&(B===!1||B===!0&&w.hasOwnProperty(u))&&ei(ye[u])},ri=function(u){u.objectNumber=Ze();var C=[];C.push({key:"Type",value:"/XObject"}),C.push({key:"Subtype",value:"/Form"}),C.push({key:"BBox",value:"["+[$(u.x),$(u.y),$(u.x+u.width),$(u.y+u.height)].join(" ")+"]"}),C.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var T=u.pages[1].join(`
`);Vt({data:T,additionalKeyValues:C,objectId:u.objectNumber}),M("endobj")},ni=function(){for(var u in st)st.hasOwnProperty(u)&&ri(st[u])},$s=function(u,C){var T,q=[],eA=1/(C-1);for(T=0;T<1;T+=eA)q.push(T);if(q.push(1),u[0].offset!=0){var gA={offset:0,color:u[0].color};u.unshift(gA)}if(u[u.length-1].offset!=1){var CA={offset:1,color:u[u.length-1].color};u.push(CA)}for(var DA="",RA=0,re=0;re<q.length;re++){for(T=q[re];T>u[RA+1].offset;)RA++;var Ae=u[RA].offset,ce=(T-Ae)/(u[RA+1].offset-Ae),Se=u[RA].color,Te=u[RA+1].color;DA+=j(Math.round((1-ce)*Se[0]+ce*Te[0]).toString(16))+j(Math.round((1-ce)*Se[1]+ce*Te[1]).toString(16))+j(Math.round((1-ce)*Se[2]+ce*Te[2]).toString(16))}return DA.trim()},$o=function(u,C){C||(C=21);var T=Ze(),q=$s(u.colors,C),eA=[];eA.push({key:"FunctionType",value:"0"}),eA.push({key:"Domain",value:"[0.0 1.0]"}),eA.push({key:"Size",value:"["+C+"]"}),eA.push({key:"BitsPerSample",value:"8"}),eA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),eA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Vt({data:q,additionalKeyValues:eA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:T}),M("endobj"),u.objectNumber=Ze(),M("<< /ShadingType "+u.type),M("/ColorSpace /DeviceRGB");var gA="/Coords ["+$(parseFloat(u.coords[0]))+" "+$(parseFloat(u.coords[1]))+" ";u.type===2?gA+=$(parseFloat(u.coords[2]))+" "+$(parseFloat(u.coords[3])):gA+=$(parseFloat(u.coords[2]))+" "+$(parseFloat(u.coords[3]))+" "+$(parseFloat(u.coords[4]))+" "+$(parseFloat(u.coords[5])),M(gA+="]"),u.matrix&&M("/Matrix ["+u.matrix.toString()+"]"),M("/Function "+T+" 0 R"),M("/Extend [true true]"),M(">>"),M("endobj")},Al=function(u,C){var T=We(),q=Ze();C.push({resourcesOid:T,objectOid:q}),u.objectNumber=q;var eA=[];eA.push({key:"Type",value:"/Pattern"}),eA.push({key:"PatternType",value:"1"}),eA.push({key:"PaintType",value:"1"}),eA.push({key:"TilingType",value:"1"}),eA.push({key:"BBox",value:"["+u.boundingBox.map($).join(" ")+"]"}),eA.push({key:"XStep",value:$(u.xStep)}),eA.push({key:"YStep",value:$(u.yStep)}),eA.push({key:"Resources",value:T+" 0 R"}),u.matrix&&eA.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),Vt({data:u.stream,additionalKeyValues:eA,objectId:u.objectNumber}),M("endobj")},ii=function(u){var C;for(C in ge)ge.hasOwnProperty(C)&&(ge[C]instanceof Jn?$o(ge[C]):ge[C]instanceof Vi&&Al(ge[C],u))},Aa=function(u){for(var C in u.objectNumber=Ze(),M("<<"),u)switch(C){case"opacity":M("/ca "+rA(u[C]));break;case"stroke-opacity":M("/CA "+rA(u[C]))}M(">>"),M("endobj")},el=function(){var u;for(u in Ne)Ne.hasOwnProperty(u)&&Aa(Ne[u])},Yi=function(){for(var u in M("/XObject <<"),st)st.hasOwnProperty(u)&&st[u].objectNumber>=0&&M("/"+u+" "+st[u].objectNumber+" 0 R");Be.publish("putXobjectDict"),M(">>")},tl=function(){ft.oid=Ze(),M("<<"),M("/Filter /Standard"),M("/V "+ft.v),M("/R "+ft.r),M("/U <"+ft.toHexString(ft.U)+">"),M("/O <"+ft.toHexString(ft.O)+">"),M("/P "+ft.P),M(">>"),M("endobj")},ea=function(){for(var u in M("/Font <<"),ye)ye.hasOwnProperty(u)&&(B===!1||B===!0&&w.hasOwnProperty(u))&&M("/"+u+" "+ye[u].objectNumber+" 0 R");M(">>")},rl=function(){if(Object.keys(ge).length>0){for(var u in M("/Shading <<"),ge)ge.hasOwnProperty(u)&&ge[u]instanceof Jn&&ge[u].objectNumber>=0&&M("/"+u+" "+ge[u].objectNumber+" 0 R");Be.publish("putShadingPatternDict"),M(">>")}},si=function(u){if(Object.keys(ge).length>0){for(var C in M("/Pattern <<"),ge)ge.hasOwnProperty(C)&&ge[C]instanceof h.TilingPattern&&ge[C].objectNumber>=0&&ge[C].objectNumber<u&&M("/"+C+" "+ge[C].objectNumber+" 0 R");Be.publish("putTilingPatternDict"),M(">>")}},nl=function(){if(Object.keys(Ne).length>0){var u;for(u in M("/ExtGState <<"),Ne)Ne.hasOwnProperty(u)&&Ne[u].objectNumber>=0&&M("/"+u+" "+Ne[u].objectNumber+" 0 R");Be.publish("putGStateDict"),M(">>")}},ke=function(u){Dt(u.resourcesOid,!0),M("<<"),M("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ea(),rl(),si(u.objectOid),nl(),Yi(),M(">>"),M("endobj")},ta=function(){var u=[];ti(),el(),ni(),ii(u),Be.publish("putResources"),u.forEach(ke),ke({resourcesOid:ir,objectOid:Number.MAX_SAFE_INTEGER}),Be.publish("postPutResources")},ra=function(){Be.publish("putAdditionalObjects");for(var u=0;u<yA.length;u++){var C=yA[u];Dt(C.objId,!0),M(C.content),M("endobj")}Be.publish("postPutAdditionalObjects")},na=function(u){_e[u.fontName]=_e[u.fontName]||{},_e[u.fontName][u.fontStyle]=u.id},Zi=function(u,C,T,q,eA){var gA={id:"F"+(Object.keys(ye).length+1).toString(10),postScriptName:u,fontName:C,fontStyle:T,encoding:q,isStandardFont:eA||!1,metadata:{}};return Be.publish("addFont",{font:gA,instance:this}),ye[gA.id]=gA,na(gA),gA.id},il=function(u){for(var C=0,T=QA.length;C<T;C++){var q=Zi.call(this,u[C][0],u[C][1],u[C][2],QA[C][3],!0);B===!1&&(w[q]=!0);var eA=u[C][0].split("-");na({id:q,fontName:eA[0],fontStyle:eA[1]||""})}Be.publish("addFonts",{fonts:ye,dictionary:_e})},or=function(u){return u.foo=function(){try{return u.apply(this,arguments)}catch(q){var C=q.stack||"";~C.indexOf(" at ")&&(C=C.split(" at ")[1]);var T="Error in function "+C.split(`
`)[0].split("<")[0]+": "+q.message;if(!XA.console)throw new Error(T);XA.console.error(T,q),XA.alert&&alert(T)}},u.foo.bar=u,u.foo},ai=function(u,C){var T,q,eA,gA,CA,DA,RA,re,Ae;if(eA=(C=C||{}).sourceEncoding||"Unicode",CA=C.outputEncoding,(C.autoencode||CA)&&ye[ae].metadata&&ye[ae].metadata[eA]&&ye[ae].metadata[eA].encoding&&(gA=ye[ae].metadata[eA].encoding,!CA&&ye[ae].encoding&&(CA=ye[ae].encoding),!CA&&gA.codePages&&(CA=gA.codePages[0]),typeof CA=="string"&&(CA=gA[CA]),CA)){for(RA=!1,DA=[],T=0,q=u.length;T<q;T++)(re=CA[u.charCodeAt(T)])?DA.push(String.fromCharCode(re)):DA.push(u[T]),DA[T].charCodeAt(0)>>8&&(RA=!0);u=DA.join("")}for(T=u.length;RA===void 0&&T!==0;)u.charCodeAt(T-1)>>8&&(RA=!0),T--;if(!RA)return u;for(DA=C.noBOM?[]:[254,255],T=0,q=u.length;T<q;T++){if((Ae=(re=u.charCodeAt(T))>>8)>>8)throw new Error("Character at position "+T+" of string '"+u+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");DA.push(Ae),DA.push(re-(Ae<<8))}return String.fromCharCode.apply(void 0,DA)},Et=h.__private__.pdfEscape=h.pdfEscape=function(u,C){return ai(u,C).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$i=h.__private__.beginPage=function(u){FA[++De]=[],$A[De]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},sa(De),BA(FA[N])},ia=function(u,C){var T,q,eA;switch(t=C||t,typeof u=="string"&&(T=Q(u.toLowerCase()),Array.isArray(T)&&(q=T[0],eA=T[1])),Array.isArray(u)&&(q=u[0]*SA,eA=u[1]*SA),isNaN(q)&&(q=n[0],eA=n[1]),(q>14400||eA>14400)&&(Ue.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),eA=Math.min(14400,eA)),n=[q,eA],t.substr(0,1)){case"l":eA>q&&(n=[eA,q]);break;case"p":q>eA&&(n=[eA,q])}$i(n),fa(rs),M(lr),is!==0&&M(is+" J"),ss!==0&&M(ss+" j"),Be.publish("addPage",{pageNumber:De})},sl=function(u){u>0&&u<=De&&(FA.splice(u,1),$A.splice(u,1),De--,N>De&&(N=De),this.setPage(N))},sa=function(u){u>0&&u<=De&&(N=u)},al=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return FA.length-1},aa=function(u,C,T){var q,eA=void 0;return T=T||{},u=u!==void 0?u:ye[ae].fontName,C=C!==void 0?C:ye[ae].fontStyle,q=u.toLowerCase(),_e[q]!==void 0&&_e[q][C]!==void 0?eA=_e[q][C]:_e[u]!==void 0&&_e[u][C]!==void 0?eA=_e[u][C]:T.disableWarning===!1&&Ue.warn("Unable to look up font label for font '"+u+"', '"+C+"'. Refer to getFontList() for available fonts."),eA||T.noFallback||(eA=_e.times[C])==null&&(eA=_e.times.normal),eA},ol=h.__private__.putInfo=function(){var u=Ze(),C=function(q){return q};for(var T in g!==null&&(C=ft.encryptor(u,0)),M("<<"),M("/Producer ("+Et(C("jsPDF "+WA.version))+")"),zA)zA.hasOwnProperty(T)&&zA[T]&&M("/"+T.substr(0,1).toUpperCase()+T.substr(1)+" ("+Et(C(zA[T]))+")");M("/CreationDate ("+Et(C(oA))+")"),M(">>"),M("endobj")},As=h.__private__.putCatalog=function(u){var C=(u=u||{}).rootDictionaryObjId||Or;switch(Ze(),M("<<"),M("/Type /Catalog"),M("/Pages "+C+" 0 R"),HA||(HA="fullwidth"),HA){case"fullwidth":M("/OpenAction [3 0 R /FitH null]");break;case"fullheight":M("/OpenAction [3 0 R /FitV null]");break;case"fullpage":M("/OpenAction [3 0 R /Fit]");break;case"original":M("/OpenAction [3 0 R /XYZ null null 1]");break;default:var T=""+HA;T.substr(T.length-1)==="%"&&(HA=parseInt(HA)/100),typeof HA=="number"&&M("/OpenAction [3 0 R /XYZ null null "+rA(HA)+"]")}switch(se||(se="continuous"),se){case"continuous":M("/PageLayout /OneColumn");break;case"single":M("/PageLayout /SinglePage");break;case"two":case"twoleft":M("/PageLayout /TwoColumnLeft");break;case"tworight":M("/PageLayout /TwoColumnRight")}ZA&&M("/PageMode /"+ZA),Be.publish("putCatalog"),M(">>"),M("endobj")},ll=h.__private__.putTrailer=function(){M("trailer"),M("<<"),M("/Size "+(Z+1)),M("/Root "+Z+" 0 R"),M("/Info "+(Z-1)+" 0 R"),g!==null&&M("/Encrypt "+ft.oid+" 0 R"),M("/ID [ <"+nA+"> <"+nA+"> ]"),M(">>")},cl=h.__private__.putHeader=function(){M("%PDF-"+F),M("%ºß¬à")},ul=h.__private__.putXRef=function(){var u="0000000000";M("xref"),M("0 "+(Z+1)),M("0000000000 65535 f ");for(var C=1;C<=Z;C++)typeof aA[C]=="function"?M((u+aA[C]()).slice(-10)+" 00000 n "):aA[C]!==void 0?M((u+aA[C]).slice(-10)+" 00000 n "):M("0000000000 00000 n ")},kr=h.__private__.buildDocument=function(){JA(),BA(lA),Be.publish("buildDocument"),cl(),Hn(),ra(),ta(),g!==null&&tl(),ol(),As();var u=uA;return ul(),ll(),M("startxref"),M(""+u),M("%%EOF"),BA(FA[N]),lA.join(`
`)},oi=h.__private__.getBlob=function(u){return new Blob([MA(u)],{type:"application/pdf"})},li=h.output=h.__private__.output=or(function(u,C){switch(typeof(C=C||{})=="string"?C={filename:C}:C.filename=C.filename||"generated.pdf",u){case void 0:return kr();case"save":h.save(C.filename);break;case"arraybuffer":return MA(kr());case"blob":return oi(kr());case"bloburi":case"bloburl":if(XA.URL!==void 0&&typeof XA.URL.createObjectURL=="function")return XA.URL&&XA.URL.createObjectURL(oi(kr()))||void 0;Ue.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var T="",q=kr();try{T=Wc(q)}catch{T=Wc(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+C.filename+";base64,"+T;case"pdfobjectnewwindow":if(Object.prototype.toString.call(XA)==="[object Window]"){var eA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",gA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';C.pdfObjectUrl&&(eA=C.pdfObjectUrl,gA="");var CA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+eA+'"'+gA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(C)+");<\/script></body></html>",DA=XA.open();return DA!==null&&DA.document.write(CA),DA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(XA)==="[object Window]"){var RA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(C.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+C.filename+'" width="500px" height="400px" /></body></html>',re=XA.open();if(re!==null){re.document.write(RA);var Ae=this;re.document.documentElement.querySelector("#pdfViewer").onload=function(){re.document.title=C.filename,re.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ae.output("bloburl"))}}return re}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(XA)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",C)+'"></iframe></body></html>',Se=XA.open();if(Se!==null&&(Se.document.write(ce),Se.document.title=C.filename),Se||typeof safari>"u")return Se;break;case"datauri":case"dataurl":return XA.document.location.href=this.output("datauristring",C);default:return null}}),oa=function(u){return Array.isArray(_n)===!0&&_n.indexOf(u)>-1};switch(r){case"pt":SA=1;break;case"mm":SA=72/25.4;break;case"cm":SA=72/2.54;break;case"in":SA=72;break;case"px":SA=oa("px_scaling")==1?.75:96/72;break;case"pc":case"em":SA=12;break;case"ex":SA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);SA=r}var ft=null;bA(),tA();var fl=function(u){return g!==null?ft.encryptor(u,0):function(C){return C}},la=h.__private__.getPageInfo=h.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:$A[u].objId,pageNumber:u,pageContext:$A[u]}},YA=h.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var C in $A)if($A[C].objId===u)break;return la(C)},hl=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:$A[N].objId,pageNumber:N,pageContext:$A[N]}};h.addPage=function(){return ia.apply(this,arguments),this},h.setPage=function(){return sa.apply(this,arguments),BA.call(this,FA[N]),this},h.insertPage=function(u){return this.addPage(),this.movePage(N,u),this},h.movePage=function(u,C){var T,q;if(u>C){T=FA[u],q=$A[u];for(var eA=u;eA>C;eA--)FA[eA]=FA[eA-1],$A[eA]=$A[eA-1];FA[C]=T,$A[C]=q,this.setPage(C)}else if(u<C){T=FA[u],q=$A[u];for(var gA=u;gA<C;gA++)FA[gA]=FA[gA+1],$A[gA]=$A[gA+1];FA[C]=T,$A[C]=q,this.setPage(C)}return this},h.deletePage=function(){return sl.apply(this,arguments),this},h.__private__.text=h.text=function(u,C,T,q,eA){var gA,CA,DA,RA,re,Ae,ce,Se,Te,Je=(q=q||{}).scope||this;if(typeof u=="number"&&typeof C=="number"&&(typeof T=="string"||Array.isArray(T))){var ht=T;T=C,C=u,u=ht}if(arguments[3]instanceof GA?(O("The transform parameter of text() with a Matrix value"),Te=eA):(DA=arguments[4],RA=arguments[5],me(ce=arguments[3])==="object"&&ce!==null||(typeof DA=="string"&&(RA=DA,DA=null),typeof ce=="string"&&(RA=ce,ce=null),typeof ce=="number"&&(DA=ce,ce=null),q={flags:ce,angle:DA,align:RA})),isNaN(C)||isNaN(T)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return Je;var et="",cr=!1,Tt=typeof q.lineHeightFactor=="number"?q.lineHeightFactor:Nn,Er=Je.internal.scaleFactor;function wa(Le){return Le=Le.split("	").join(Array(q.TabLen||9).join(" ")),Et(Le,ce)}function us(Le){for(var Ee,Ke=Le.concat(),$e=[],jr=Ke.length;jr--;)typeof(Ee=Ke.shift())=="string"?$e.push(Ee):Array.isArray(Le)&&(Ee.length===1||Ee[1]===void 0&&Ee[2]===void 0)?$e.push(Ee[0]):$e.push([Ee[0],Ee[1],Ee[2]]);return $e}function fs(Le,Ee){var Ke;if(typeof Le=="string")Ke=Ee(Le)[0];else if(Array.isArray(Le)){for(var $e,jr,ms=Le.concat(),yi=[],Fa=ms.length;Fa--;)typeof($e=ms.shift())=="string"?yi.push(Ee($e)[0]):Array.isArray($e)&&typeof $e[0]=="string"&&(jr=Ee($e[0],$e[1],$e[2]),yi.push([jr[0],jr[1],jr[2]]));Ke=yi}return Ke}var gi=!1,hs=!0;if(typeof u=="string")gi=!0;else if(Array.isArray(u)){var ds=u.concat();CA=[];for(var Bi,at=ds.length;at--;)(typeof(Bi=ds.shift())!="string"||Array.isArray(Bi)&&typeof Bi[0]!="string")&&(hs=!1);gi=hs}if(gi===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var pi=UA/Je.internal.scaleFactor,wi=pi*(Tt-1);switch(q.baseline){case"bottom":T-=wi;break;case"top":T+=pi-wi;break;case"hanging":T+=pi-2*wi;break;case"middle":T+=pi/2-wi}if((Ae=q.maxWidth||0)>0&&(typeof u=="string"?u=Je.splitTextToSize(u,Ae):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Le,Ee){return Le.concat(Je.splitTextToSize(Ee,Ae))},[]))),gA={text:u,x:C,y:T,options:q,mutex:{pdfEscape:Et,activeFontKey:ae,fonts:ye,activeFontSize:UA}},Be.publish("preProcessText",gA),u=gA.text,DA=(q=gA.options).angle,!(Te instanceof GA)&&DA&&typeof DA=="number"){DA*=Math.PI/180,q.rotationDirection===0&&(DA=-DA),K===E.ADVANCED&&(DA=-DA);var vi=Math.cos(DA),gs=Math.sin(DA);Te=new GA(vi,gs,-gs,vi,0,0)}else DA&&DA instanceof GA&&(Te=DA);K!==E.ADVANCED||Te||(Te=Fr),(re=q.charSpace||fi)!==void 0&&(et+=$(H(re))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Se=q.horizontalScale)!==void 0&&(et+=$(100*Se)+` Tz
`),q.lang;var xt=-1,Fl=q.renderingMode!==void 0?q.renderingMode:q.stroke,Bs=Je.internal.getCurrentPageInfo().pageContext;switch(Fl){case 0:case!1:case"fill":xt=0;break;case 1:case!0:case"stroke":xt=1;break;case 2:case"fillThenStroke":xt=2;break;case 3:case"invisible":xt=3;break;case 4:case"fillAndAddForClipping":xt=4;break;case 5:case"strokeAndAddPathForClipping":xt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":xt=6;break;case 7:case"addToPathForClipping":xt=7}var va=Bs.usedRenderingMode!==void 0?Bs.usedRenderingMode:-1;xt!==-1?et+=xt+` Tr
`:va!==-1&&(et+=`0 Tr
`),xt!==-1&&(Bs.usedRenderingMode=xt),RA=q.align||"left";var jt,mi=UA*Tt,ma=Je.internal.pageSize.getWidth(),Ca=ye[ae];re=q.charSpace||fi,Ae=q.maxWidth||0,ce=Object.assign({autoencode:!0,noBOM:!0},q.flags);var nn=[],Pn=function(Le){return Je.getStringUnitWidth(Le,{font:Ca,charSpace:re,fontSize:UA,doKerning:!1})*UA/Er};if(Object.prototype.toString.call(u)==="[object Array]"){var It;CA=us(u),RA!=="left"&&(jt=CA.map(Pn));var Qt,sn=0;if(RA==="right"){C-=jt[0],u=[],at=CA.length;for(var Kr=0;Kr<at;Kr++)Kr===0?(Qt=Lr(C),It=Mr(T)):(Qt=H(sn-jt[Kr]),It=-mi),u.push([CA[Kr],Qt,It]),sn=jt[Kr]}else if(RA==="center"){C-=jt[0]/2,u=[],at=CA.length;for(var Rr=0;Rr<at;Rr++)Rr===0?(Qt=Lr(C),It=Mr(T)):(Qt=H((sn-jt[Rr])/2),It=-mi),u.push([CA[Rr],Qt,It]),sn=jt[Rr]}else if(RA==="left"){u=[],at=CA.length;for(var Ci=0;Ci<at;Ci++)u.push(CA[Ci])}else if(RA==="justify"&&Ca.encoding==="Identity-H"){u=[],at=CA.length,Ae=Ae!==0?Ae:ma;for(var Vr=0,Me=0;Me<at;Me++)if(It=Me===0?Mr(T):-mi,Qt=Me===0?Lr(C):Vr,Me<at-1){var ps=H((Ae-jt[Me])/(CA[Me].split(" ").length-1)),Ft=CA[Me].split(" ");u.push([Ft[0]+" ",Qt,It]),Vr=0;for(var Gt=1;Gt<Ft.length;Gt++){var Qi=(Pn(Ft[Gt-1]+" "+Ft[Gt])-Pn(Ft[Gt]))*Er+ps;Gt==Ft.length-1?u.push([Ft[Gt],Qi,0]):u.push([Ft[Gt]+" ",Qi,0]),Vr-=Qi}}else u.push([CA[Me],Qt,It]);u.push(["",Vr,0])}else{if(RA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],at=CA.length,Ae=Ae!==0?Ae:ma,Me=0;Me<at;Me++)It=Me===0?Mr(T):-mi,Qt=Me===0?Lr(C):0,Me<at-1?nn.push($(H((Ae-jt[Me])/(CA[Me].split(" ").length-1)))):nn.push(0),u.push([CA[Me],Qt,It])}}var Qa=typeof q.R2L=="boolean"?q.R2L:KA;Qa===!0&&(u=fs(u,function(Le,Ee,Ke){return[Le.split("").reverse().join(""),Ee,Ke]})),gA={text:u,x:C,y:T,options:q,mutex:{pdfEscape:Et,activeFontKey:ae,fonts:ye,activeFontSize:UA}},Be.publish("postProcessText",gA),u=gA.text,cr=gA.mutex.isHex||!1;var ws=ye[ae].encoding;ws!=="WinAnsiEncoding"&&ws!=="StandardEncoding"||(u=fs(u,function(Le,Ee,Ke){return[wa(Le),Ee,Ke]})),CA=us(u),u=[];for(var On,kn,an,Mn=0,Fi=1,Kn=Array.isArray(CA[0])?Fi:Mn,on="",vs=function(Le,Ee,Ke){var $e="";return Ke instanceof GA?(Ke=typeof q.angle=="number"?nr(Ke,new GA(1,0,0,1,Le,Ee)):nr(new GA(1,0,0,1,Le,Ee),Ke),K===E.ADVANCED&&(Ke=nr(new GA(1,0,0,-1,0,0),Ke)),$e=Ke.join(" ")+` Tm
`):$e=$(Le)+" "+$(Ee)+` Td
`,$e},qt=0;qt<CA.length;qt++){switch(on="",Kn){case Fi:an=(cr?"<":"(")+CA[qt][0]+(cr?">":")"),On=parseFloat(CA[qt][1]),kn=parseFloat(CA[qt][2]);break;case Mn:an=(cr?"<":"(")+CA[qt]+(cr?">":")"),On=Lr(C),kn=Mr(T)}nn!==void 0&&nn[qt]!==void 0&&(on=nn[qt]+` Tw
`),qt===0?u.push(on+vs(On,kn,Te)+an):Kn===Mn?u.push(on+an):Kn===Fi&&u.push(on+vs(On,kn,Te)+an)}u=Kn===Mn?u.join(` Tj
T* `):u.join(` Tj
`),u+=` Tj
`;var Wt=`BT
/`;return Wt+=ae+" "+UA+` Tf
`,Wt+=$(UA*Tt)+` TL
`,Wt+=Dn+`
`,Wt+=et,Wt+=u,M(Wt+="ET"),w[ae]=!0,Je};var dl=h.__private__.clip=h.clip=function(u){return M(u==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return dl("evenodd")},h.__private__.discardPath=h.discardPath=function(){return M("n"),this};var Ur=h.__private__.isValidStyle=function(u){var C=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(C=!0),C};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(u){return Ur(u)&&(d=u),this};var ca=h.__private__.getStyle=h.getStyle=function(u){var C=d;switch(u){case"D":case"S":C="S";break;case"F":C="f";break;case"FD":case"DF":C="B";break;case"f":case"f*":case"B":case"B*":C=u}return C},ua=h.close=function(){return M("h"),this};h.stroke=function(){return M("S"),this},h.fill=function(u){return ci("f",u),this},h.fillEvenOdd=function(u){return ci("f*",u),this},h.fillStroke=function(u){return ci("B",u),this},h.fillStrokeEvenOdd=function(u){return ci("B*",u),this};var ci=function(u,C){me(C)==="object"?Bl(C,u):M(u)},es=function(u){u===null||K===E.ADVANCED&&u===void 0||(u=ca(u),M(u))};function gl(u,C,T,q,eA){var gA=new Vi(C||this.boundingBox,T||this.xStep,q||this.yStep,this.gState,eA||this.matrix);gA.stream=this.stream;var CA=u+"$$"+this.cloneIndex+++"$$";return Lt(CA,gA),gA}var Bl=function(u,C){var T=In[u.key],q=ge[T];if(q instanceof Jn)M("q"),M(pl(C)),q.gState&&h.setGState(q.gState),M(u.matrix.toString()+" cm"),M("/"+T+" sh"),M("Q");else if(q instanceof Vi){var eA=new GA(1,0,0,-1,0,rn());u.matrix&&(eA=eA.multiply(u.matrix||Fr),T=gl.call(q,u.key,u.boundingBox,u.xStep,u.yStep,eA).id),M("q"),M("/Pattern cs"),M("/"+T+" scn"),q.gState&&h.setGState(q.gState),M(C),M("Q")}},pl=function(u){switch(u){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ts=h.moveTo=function(u,C){return M($(H(u))+" "+$(k(C))+" m"),this},Sn=h.lineTo=function(u,C){return M($(H(u))+" "+$(k(C))+" l"),this},en=h.curveTo=function(u,C,T,q,eA,gA){return M([$(H(u)),$(k(C)),$(H(T)),$(k(q)),$(H(eA)),$(k(gA)),"c"].join(" ")),this};h.__private__.line=h.line=function(u,C,T,q,eA){if(isNaN(u)||isNaN(C)||isNaN(T)||isNaN(q)||!Ur(eA))throw new Error("Invalid arguments passed to jsPDF.line");return K===E.COMPAT?this.lines([[T-u,q-C]],u,C,[1,1],eA||"S"):this.lines([[T-u,q-C]],u,C,[1,1]).stroke()},h.__private__.lines=h.lines=function(u,C,T,q,eA,gA){var CA,DA,RA,re,Ae,ce,Se,Te,Je,ht,et,cr;if(typeof u=="number"&&(cr=T,T=C,C=u,u=cr),q=q||[1,1],gA=gA||!1,isNaN(C)||isNaN(T)||!Array.isArray(u)||!Array.isArray(q)||!Ur(eA)||typeof gA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ts(C,T),CA=q[0],DA=q[1],re=u.length,ht=C,et=T,RA=0;RA<re;RA++)(Ae=u[RA]).length===2?(ht=Ae[0]*CA+ht,et=Ae[1]*DA+et,Sn(ht,et)):(ce=Ae[0]*CA+ht,Se=Ae[1]*DA+et,Te=Ae[2]*CA+ht,Je=Ae[3]*DA+et,ht=Ae[4]*CA+ht,et=Ae[5]*DA+et,en(ce,Se,Te,Je,ht,et));return gA&&ua(),es(eA),this},h.path=function(u){for(var C=0;C<u.length;C++){var T=u[C],q=T.c;switch(T.op){case"m":ts(q[0],q[1]);break;case"l":Sn(q[0],q[1]);break;case"c":en.apply(this,q);break;case"h":ua()}}return this},h.__private__.rect=h.rect=function(u,C,T,q,eA){if(isNaN(u)||isNaN(C)||isNaN(T)||isNaN(q)||!Ur(eA))throw new Error("Invalid arguments passed to jsPDF.rect");return K===E.COMPAT&&(q=-q),M([$(H(u)),$(k(C)),$(H(T)),$(H(q)),"re"].join(" ")),es(eA),this},h.__private__.triangle=h.triangle=function(u,C,T,q,eA,gA,CA){if(isNaN(u)||isNaN(C)||isNaN(T)||isNaN(q)||isNaN(eA)||isNaN(gA)||!Ur(CA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[T-u,q-C],[eA-T,gA-q],[u-eA,C-gA]],u,C,[1,1],CA,!0),this},h.__private__.roundedRect=h.roundedRect=function(u,C,T,q,eA,gA,CA){if(isNaN(u)||isNaN(C)||isNaN(T)||isNaN(q)||isNaN(eA)||isNaN(gA)||!Ur(CA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var DA=4/3*(Math.SQRT2-1);return eA=Math.min(eA,.5*T),gA=Math.min(gA,.5*q),this.lines([[T-2*eA,0],[eA*DA,0,eA,gA-gA*DA,eA,gA],[0,q-2*gA],[0,gA*DA,-eA*DA,gA,-eA,gA],[2*eA-T,0],[-eA*DA,0,-eA,-gA*DA,-eA,-gA],[0,2*gA-q],[0,-gA*DA,eA*DA,-gA,eA,-gA]],u+eA,C,[1,1],CA,!0),this},h.__private__.ellipse=h.ellipse=function(u,C,T,q,eA){if(isNaN(u)||isNaN(C)||isNaN(T)||isNaN(q)||!Ur(eA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var gA=4/3*(Math.SQRT2-1)*T,CA=4/3*(Math.SQRT2-1)*q;return ts(u+T,C),en(u+T,C-CA,u+gA,C-q,u,C-q),en(u-gA,C-q,u-T,C-CA,u-T,C),en(u-T,C+CA,u-gA,C+q,u,C+q),en(u+gA,C+q,u+T,C+CA,u+T,C),es(eA),this},h.__private__.circle=h.circle=function(u,C,T,q){if(isNaN(u)||isNaN(C)||isNaN(T)||!Ur(q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,C,T,T,q)},h.setFont=function(u,C,T){return T&&(C=Y(C,T)),ae=aa(u,C,{disableWarning:!1}),this};var wl=h.__private__.getFont=h.getFont=function(){return ye[aa.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var u,C,T={};for(u in _e)if(_e.hasOwnProperty(u))for(C in T[u]=[],_e[u])_e[u].hasOwnProperty(C)&&T[u].push(C);return T},h.addFont=function(u,C,T,q,eA){var gA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&gA.indexOf(arguments[3])!==-1?eA=arguments[3]:arguments[3]&&gA.indexOf(arguments[3])==-1&&(T=Y(T,q)),eA=eA||"Identity-H",Zi.call(this,u,C,T,eA)};var Nn,rs=e.lineWidth||.200025,ui=h.__private__.getLineWidth=h.getLineWidth=function(){return rs},fa=h.__private__.setLineWidth=h.setLineWidth=function(u){return rs=u,M($(H(u))+" w"),this};h.__private__.setLineDash=WA.API.setLineDash=WA.API.setLineDashPattern=function(u,C){if(u=u||[],C=C||0,isNaN(C)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(T){return $(H(T))}).join(" "),C=$(H(C)),M("["+u+"] "+C+" d"),this};var ha=h.__private__.getLineHeight=h.getLineHeight=function(){return UA*Nn};h.__private__.getLineHeight=h.getLineHeight=function(){return UA*Nn};var da=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(Nn=u),this},ga=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Nn};da(e.lineHeight);var Lr=h.__private__.getHorizontalCoordinate=function(u){return H(u)},Mr=h.__private__.getVerticalCoordinate=function(u){return K===E.ADVANCED?u:$A[N].mediaBox.topRightY-$A[N].mediaBox.bottomLeftY-H(u)},vl=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(u){return $(Lr(u))},tn=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(u){return $(Mr(u))},lr=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return sr(lr)},h.__private__.setStrokeColor=h.setDrawColor=function(u,C,T,q){return lr=ar({ch1:u,ch2:C,ch3:T,ch4:q,pdfColorType:"draw",precision:2}),M(lr),this};var ns=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return sr(ns)},h.__private__.setFillColor=h.setFillColor=function(u,C,T,q){return ns=ar({ch1:u,ch2:C,ch3:T,ch4:q,pdfColorType:"fill",precision:2}),M(ns),this};var Dn=e.textColor||"0 g",ml=h.__private__.getTextColor=h.getTextColor=function(){return sr(Dn)};h.__private__.setTextColor=h.setTextColor=function(u,C,T,q){return Dn=ar({ch1:u,ch2:C,ch3:T,ch4:q,pdfColorType:"text",precision:3}),this};var fi=e.charSpace,Cl=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(fi||0)};h.__private__.setCharSpace=h.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return fi=u,this};var is=0;h.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},h.__private__.setLineCap=h.setLineCap=function(u){var C=h.CapJoinStyles[u];if(C===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return is=C,M(C+" J"),this};var ss=0;h.__private__.setLineJoin=h.setLineJoin=function(u){var C=h.CapJoinStyles[u];if(C===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ss=C,M(C+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return M($(H(u))+" M"),this},h.GState=Oo,h.setGState=function(u){(u=typeof u=="string"?Ne[rr[u]]:Ba(null,u)).equals(Pr)||(M("/"+u.id+" gs"),Pr=u)};var Ba=function(u,C){if(!u||!rr[u]){var T=!1;for(var q in Ne)if(Ne.hasOwnProperty(q)&&Ne[q].equals(C)){T=!0;break}if(T)C=Ne[q];else{var eA="GS"+(Object.keys(Ne).length+1).toString(10);Ne[eA]=C,C.id=eA}return u&&(rr[u]=C.id),Be.publish("addGState",C),C}};h.addGState=function(u,C){return Ba(u,C),this},h.saveGraphicsState=function(){return M("q"),mr.push({key:ae,size:UA,color:Dn}),this},h.restoreGraphicsState=function(){M("Q");var u=mr.pop();return ae=u.key,UA=u.size,Dn=u.color,Pr=null,this},h.setCurrentTransformationMatrix=function(u){return M(u.toString()+" cm"),this},h.comment=function(u){return M("#"+u),this};var hi=function(u,C){var T=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return T},set:function(gA){isNaN(gA)||(T=parseFloat(gA))}});var q=C||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return q},set:function(gA){isNaN(gA)||(q=parseFloat(gA))}});var eA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return eA},set:function(gA){eA=gA.toString()}}),this},as=function(u,C,T,q){hi.call(this,u,C),this.type="rect";var eA=T||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return eA},set:function(CA){isNaN(CA)||(eA=parseFloat(CA))}});var gA=q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return gA},set:function(CA){isNaN(CA)||(gA=parseFloat(CA))}}),this},os=function(){this.page=De,this.currentPage=N,this.pages=FA.slice(0),this.pagesContext=$A.slice(0),this.x=ut,this.y=he,this.matrix=tr,this.width=Tn(N),this.height=rn(N),this.outputDestination=EA,this.id="",this.objectNumber=-1};os.prototype.restore=function(){De=this.page,N=this.currentPage,$A=this.pagesContext,FA=this.pages,ut=this.x,he=this.y,tr=this.matrix,ls(N,this.width),cs(N,this.height),EA=this.outputDestination};var pa=function(u,C,T,q,eA){Qr.push(new os),De=N=0,FA=[],ut=u,he=C,tr=eA,$i([T,q])},Ql=function(u){if(Cr[u])Qr.pop().restore();else{var C=new os,T="Xo"+(Object.keys(st).length+1).toString(10);C.id=T,Cr[u]=T,st[T]=C,Be.publish("addFormObject",C),Qr.pop().restore()}};for(var di in h.beginFormObject=function(u,C,T,q,eA){return pa(u,C,T,q,eA),this},h.endFormObject=function(u){return Ql(u),this},h.doFormObject=function(u,C){var T=st[Cr[u]];return M("q"),M(C.toString()+" cm"),M("/"+T.id+" Do"),M("Q"),this},h.getFormObject=function(u){var C=st[Cr[u]];return{x:C.x,y:C.y,width:C.width,height:C.height,matrix:C.matrix}},h.save=function(u,C){return u=u||"generated.pdf",(C=C||{}).returnPromise=C.returnPromise||!1,C.returnPromise===!1?(qn(oi(kr()),u),typeof qn.unload=="function"&&XA.setTimeout&&setTimeout(qn.unload,911),this):new Promise(function(T,q){try{var eA=qn(oi(kr()),u);typeof qn.unload=="function"&&XA.setTimeout&&setTimeout(qn.unload,911),T(eA)}catch(gA){q(gA.message)}})},WA.API)WA.API.hasOwnProperty(di)&&(di==="events"&&WA.API.events.length?function(u,C){var T,q,eA;for(eA=C.length-1;eA!==-1;eA--)T=C[eA][0],q=C[eA][1],u.subscribe.apply(u,[T].concat(typeof q=="function"?[q]:q))}(Be,WA.API.events):h[di]=WA.API[di]);var Tn=h.getPageWidth=function(u){return($A[u=u||N].mediaBox.topRightX-$A[u].mediaBox.bottomLeftX)/SA},ls=h.setPageWidth=function(u,C){$A[u].mediaBox.topRightX=C*SA+$A[u].mediaBox.bottomLeftX},rn=h.getPageHeight=function(u){return($A[u=u||N].mediaBox.topRightY-$A[u].mediaBox.bottomLeftY)/SA},cs=h.setPageHeight=function(u,C){$A[u].mediaBox.topRightY=C*SA+$A[u].mediaBox.bottomLeftY};return h.internal={pdfEscape:Et,getStyle:ca,getFont:wl,getFontSize:IA,getCharSpace:Cl,getTextColor:ml,getLineHeight:ha,getLineHeightFactor:ga,getLineWidth:ui,write:te,getHorizontalCoordinate:Lr,getVerticalCoordinate:Mr,getCoordinateString:vl,getVerticalCoordinateString:tn,collections:{},newObject:Ze,newAdditionalObject:Ai,newObjectDeferred:We,newObjectDeferredBegin:Dt,getFilters:yr,putStream:Vt,events:Be,scaleFactor:SA,pageSize:{getWidth:function(){return Tn(N)},setWidth:function(u){ls(N,u)},getHeight:function(){return rn(N)},setHeight:function(u){cs(N,u)}},encryptionOptions:g,encryption:ft,getEncryptor:fl,output:li,getNumberOfPages:al,pages:FA,out:M,f2:rA,f3:I,getPageInfo:la,getPageInfoByObjId:YA,getCurrentPageInfo:hl,getPDFVersion:m,Point:hi,Rectangle:as,Matrix:GA,hasHotfix:oa},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return Tn(N)},set:function(u){ls(N,u)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return rn(N)},set:function(u){cs(N,u)},enumerable:!0,configurable:!0}),il.call(h,QA),ae="F1",ia(n,t),Be.publish("initialized"),h}Mi.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Mi.prototype.toHexString=function(e){return e.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Mi.prototype.hexToBytes=function(e){for(var A=[],t=0;t<e.length;t+=2)A.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return A.join("")},Mi.prototype.processOwnerPassword=function(e,A){return Xc(Jc(A).substr(0,5),e)},Mi.prototype.encryptor=function(e,A){var t=Jc(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return Xc(t,r)}},Oo.prototype.equals=function(e){var A,t="id,objectNumber,equals";if(!e||me(e)!==me(this))return!1;var r=0;for(A in this)if(!(t.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!e.hasOwnProperty(A)||this[A]!==e[A])return!1;r++}for(A in e)e.hasOwnProperty(A)&&t.indexOf(A)<0&&r--;return r===0},WA.API={events:[]},WA.version="3.0.1";var Oe=WA.API,ou=1,$n=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Di=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ee=function(e){return e.toFixed(2)},pn=function(e){return e.toFixed(5)};Oe.__acroform__={};var Nt=function(e,A){e.prototype=Object.create(A.prototype),e.prototype.constructor=e},Wf=function(e){return e*ou},_r=function(e){var A=new Ud,t=kA.internal.getHeight(e)||0,r=kA.internal.getWidth(e)||0;return A.BBox=[0,0,Number(ee(r)),Number(ee(t))],A},G5=Oe.__acroform__.setBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<A},q5=Oe.__acroform__.clearBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<A)},W5=Oe.__acroform__.getBit=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<A?1:0},je=Oe.__acroform__.getBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return W5(e,A-1)},Ge=Oe.__acroform__.setBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return G5(e,A-1)},qe=Oe.__acroform__.clearBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return q5(e,A-1)},J5=Oe.__acroform__.calculateCoordinates=function(e,A){var t=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=e[0],i=e[1],a=e[2],l=e[3],c={};return c.lowerLeft_X=t(n)||0,c.lowerLeft_Y=r(i+l)||0,c.upperRight_X=t(n+a)||0,c.upperRight_Y=r(i)||0,[Number(ee(c.lowerLeft_X)),Number(ee(c.lowerLeft_Y)),Number(ee(c.upperRight_X)),Number(ee(c.upperRight_Y))]},X5=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var A=[],t=e._V||e.DV,r=zc(e,t),n=e.scope.internal.getFont(e.fontName,e.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(e.scope.__private__.encodeColorString(e.color)),A.push("/"+n+" "+ee(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=_r(e);return i.scope=e.scope,i.stream=A.join(`
`),i}},zc=function(e,A){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=e.multiline?n.map(function(I){return I.split(`
`)}):n.map(function(I){return[I]});var i=t,a=kA.internal.getHeight(e)||0;a=a<0?-a:a;var l=kA.internal.getWidth(e)||0;l=l<0?-l:l;var c=function(I,H,R){if(I+1<n.length){var k=H+" "+n[I+1][0];return ho(k,e,R).width<=l-4}return!1};i++;A:for(;i>0;){A="",i--;var d,g,B=ho("3",e,i).height,w=e.multiline?a-i:(a-B)/2,h=w+=2,F=0,m=0,_=0;if(i<=0){A=`(...) Tj
`,A+="% Width of Text: "+ho(A,e,i=12).width+", FieldWidth:"+l+`
`;break}for(var Q="",E=0,K=0;K<n.length;K++)if(n.hasOwnProperty(K)){var V=!1;if(n[K].length!==1&&_!==n[K].length-1){if((B+2)*(E+2)+2>a)continue A;Q+=n[K][_],V=!0,m=K,K--}else{Q=(Q+=n[K][_]+" ").substr(Q.length-1)==" "?Q.substr(0,Q.length-1):Q;var X=parseInt(K),Y=c(X,Q,i),$=K>=n.length-1;if(Y&&!$){Q+=" ",_=0;continue}if(Y||$){if($)m=X;else if(e.multiline&&(B+2)*(E+2)+2>a)continue A}else{if(!e.multiline||(B+2)*(E+2)+2>a)continue A;m=X}}for(var O="",G=F;G<=m;G++){var rA=n[G];if(e.multiline){if(G===m){O+=rA[_]+" ",_=(_+1)%rA.length;continue}if(G===F){O+=rA[rA.length-1]+" ";continue}}O+=rA[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,g=ho(O,e,i).width,e.textAlign){case"right":d=l-g-2;break;case"center":d=(l-g)/2;break;case"left":default:d=2}A+=ee(d)+" "+ee(h)+` Td
`,A+="("+$n(O)+`) Tj
`,A+=-ee(d)+` 0 Td
`,h=-(i+2),g=0,F=V?m:m+1,E++,Q=""}break}return r.text=A,r.fontSize=i,r},ho=function(e,A,t){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},z5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Y5=function(e,A){var t={type:"reference",object:e};A.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&A.internal.getPageInfo(e.page).pageContext.annotations.push(t)},Z5=function(e,A){for(var t in e)if(e.hasOwnProperty(t)){var r=t,n=e[t];A.internal.newObjectDeferredBegin(n.objId,!0),me(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete e[r]}},$5=function(e,A){if(A.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(wr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(z5)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ou=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Ld,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&Y5(i,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(r,n){var i=!r;for(var a in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(a)){var l=r[a],c=[],d=l.Rect;if(l.Rect&&(l.Rect=J5(l.Rect,n)),n.internal.newObjectDeferredBegin(l.objId,!0),l.DA=kA.createDefaultAppearanceStream(l),me(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var g=X5(l);c.push({key:"AP",value:"<</N "+g+">>"}),n.internal.acroformPlugin.xForms.push(g)}if(l.appearanceStreamContent){var B="";for(var w in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(w)){var h=l.appearanceStreamContent[w];if(B+="/"+w+" ",B+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var a in h)if(h.hasOwnProperty(a)){var F=h[a];typeof F=="function"&&(F=F.call(n,l)),B+="/"+a+" "+F+" ",n.internal.acroformPlugin.xForms.indexOf(F)>=0||n.internal.acroformPlugin.xForms.push(F)}}else typeof(F=h)=="function"&&(F=F.call(n,l)),B+="/"+a+" "+F,n.internal.acroformPlugin.xForms.indexOf(F)>=0||n.internal.acroformPlugin.xForms.push(F);B+=">>"}c.push({key:"AP",value:`<<
`+B+">>"})}n.internal.putStream({additionalKeyValues:c,objectId:l.objId}),n.internal.out("endobj")}i&&Z5(n.internal.acroformPlugin.xForms,n)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},bd=Oe.__acroform__.arrayToPdfArray=function(e,A,t){var r=function(a){return a};if(Array.isArray(e)){for(var n="[",i=0;i<e.length;i++)switch(i!==0&&(n+=" "),me(e[i])){case"boolean":case"number":case"object":n+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(A!==void 0&&t&&(r=t.internal.getEncryptor(A)),n+="("+$n(r(e[i].toString()))+")"):n+=e[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},gc=function(e,A,t){var r=function(n){return n};return A!==void 0&&t&&(r=t.internal.getEncryptor(A)),(e=e||"").toString(),e="("+$n(r(e))+")"},Hr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Hr.prototype.toString=function(){return this.objId+" 0 R"},Hr.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Hr.prototype.getKeyValueListForStream=function(){var e=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in A)if(Object.getOwnPropertyDescriptor(this,A[t]).configurable===!1){var r=A[t],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:bd(n,this.objId,this.scope)}):n instanceof Hr?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var Ud=function(){Hr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Nt(Ud,Hr);var Ld=function(){Hr.call(this);var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+$n(t(e))+")"}},set:function(t){e=t}})};Nt(Ld,Hr);var wr=function e(){Hr.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(Q){if(isNaN(Q))throw new Error('Invalid value "'+Q+'" for attribute F supplied.');A=Q}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!je(A,3)},set:function(Q){Q?this.F=Ge(A,3):this.F=qe(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(Q){if(isNaN(Q))throw new Error('Invalid value "'+Q+'" for attribute Ff supplied.');t=Q}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(Q){r=Q!==void 0?Q:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(Q){r[0]=Q}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(Q){r[1]=Q}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(Q){r[2]=Q}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(Q){r[3]=Q}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(Q){switch(Q){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=Q;break;default:throw new Error('Invalid value "'+Q+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof ko)return;i="FieldObject"+e.FieldNum++}var Q=function(E){return E};return this.scope&&(Q=this.scope.internal.getEncryptor(this.objId)),"("+$n(Q(i))+")"},set:function(Q){i=Q.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(Q){i=Q}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(Q){a=Q}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(Q){l=Q}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(Q){c=Q}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/ou:d},set:function(Q){d=Q}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(Q){g=Q}});var B="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!B||this instanceof ko||this instanceof Zn))return gc(B,this.objId,this.scope)},set:function(Q){Q=Q.toString(),B=Q}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof it?w:gc(w,this.objId,this.scope)},set:function(Q){Q=Q.toString(),w=this instanceof it?Q:Q.substr(0,1)==="("?Di(Q.substr(1,Q.length-2)):Di(Q)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof it?Di(w.substr(1,w.length-1)):w},set:function(Q){Q=Q.toString(),w=this instanceof it?"/"+Q:Q}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(Q){this.V=Q}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof it?h:gc(h,this.objId,this.scope)},set:function(Q){Q=Q.toString(),h=this instanceof it?Q:Q.substr(0,1)==="("?Di(Q.substr(1,Q.length-2)):Di(Q)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof it?Di(h.substr(1,h.length-1)):h},set:function(Q){Q=Q.toString(),h=this instanceof it?"/"+Q:Q}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var F,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(Q){Q=!!Q,m=Q}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(F)return F},set:function(Q){F=Q}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,1)},set:function(Q){Q?this.Ff=Ge(this.Ff,1):this.Ff=qe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,2)},set:function(Q){Q?this.Ff=Ge(this.Ff,2):this.Ff=qe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,3)},set:function(Q){Q?this.Ff=Ge(this.Ff,3):this.Ff=qe(this.Ff,3)}});var _=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_!==null)return _},set:function(Q){if([0,1,2].indexOf(Q)===-1)throw new Error('Invalid value "'+Q+'" for attribute Q supplied.');_=Q}}),Object.defineProperty(this,"textAlign",{get:function(){var Q;switch(_){case 0:default:Q="left";break;case 1:Q="center";break;case 2:Q="right"}return Q},configurable:!0,enumerable:!0,set:function(Q){switch(Q){case"right":case 2:_=2;break;case"center":case 1:_=1;break;case"left":case 0:default:_=0}}})};Nt(wr,Hr);var Gi=function(){wr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return bd(A,this.objId,this.scope)},set:function(t){var r,n;n=[],typeof(r=t)=="string"&&(n=function(i,a,l){l||(l=1);for(var c,d=[];c=a.exec(i);)d.push(c[l]);return d}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(t){A=t,this.sort&&A.sort()},this.addOption=function(t){t=(t=t||"").toString(),A.push(t),this.sort&&A.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();A.indexOf(t)!==-1&&(A.splice(A.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,18)},set:function(t){t?this.Ff=Ge(this.Ff,18):this.Ff=qe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=Ge(this.Ff,19):this.Ff=qe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,20)},set:function(t){t?(this.Ff=Ge(this.Ff,20),A.sort()):this.Ff=qe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,22)},set:function(t){t?this.Ff=Ge(this.Ff,22):this.Ff=qe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,23)},set:function(t){t?this.Ff=Ge(this.Ff,23):this.Ff=qe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,27)},set:function(t){t?this.Ff=Ge(this.Ff,27):this.Ff=qe(this.Ff,27)}}),this.hasAppearanceStream=!1};Nt(Gi,wr);var qi=function(){Gi.call(this),this.fontName="helvetica",this.combo=!1};Nt(qi,Gi);var Wi=function(){qi.call(this),this.combo=!0};Nt(Wi,qi);var yo=function(){Wi.call(this),this.edit=!0};Nt(yo,Wi);var it=function(){wr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,15)},set:function(t){t?this.Ff=Ge(this.Ff,15):this.Ff=qe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,16)},set:function(t){t?this.Ff=Ge(this.Ff,16):this.Ff=qe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,17)},set:function(t){t?this.Ff=Ge(this.Ff,17):this.Ff=qe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,26)},set:function(t){t?this.Ff=Ge(this.Ff,26):this.Ff=qe(this.Ff,26)}});var e,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+$n(t(A[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(t){me(t)==="object"&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){typeof t=="string"&&(A.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Nt(it,wr);var bo=function(){it.call(this),this.pushButton=!0};Nt(bo,it);var Ji=function(){it.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A!==void 0?A:[]}})};Nt(Ji,it);var ko=function(){var e,A;wr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(l){return l};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+$n(n(r[i]))+")");return a.push(">>"),a.join(`
`)},set:function(n){me(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=kA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Nt(ko,wr),Ji.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},Ji.prototype.createOption=function(e){var A=new ko;return A.Parent=this,A.optionName=e,this.Kids.push(A),Aw.call(this.scope,A),A};var Uo=function(){it.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=kA.CheckBox.createAppearanceStream()};Nt(Uo,it);var Zn=function(){wr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,13)},set:function(A){A?this.Ff=Ge(this.Ff,13):this.Ff=qe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,21)},set:function(A){A?this.Ff=Ge(this.Ff,21):this.Ff=qe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,23)},set:function(A){A?this.Ff=Ge(this.Ff,23):this.Ff=qe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,24)},set:function(A){A?this.Ff=Ge(this.Ff,24):this.Ff=qe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,25)},set:function(A){A?this.Ff=Ge(this.Ff,25):this.Ff=qe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,26)},set:function(A){A?this.Ff=Ge(this.Ff,26):this.Ff=qe(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){Number.isInteger(A)&&(e=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Nt(Zn,wr);var Lo=function(){Zn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,14)},set:function(e){e?this.Ff=Ge(this.Ff,14):this.Ff=qe(this.Ff,14)}}),this.password=!0};Nt(Lo,Zn);var kA={CheckBox:{createAppearanceStream:function(){return{N:{On:kA.CheckBox.YesNormal},D:{On:kA.CheckBox.YesPushDown,Off:kA.CheckBox.OffPushDown}}},YesPushDown:function(e){var A=_r(e);A.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=zc(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+ee(kA.internal.getWidth(e))+" "+ee(kA.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+ee(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join(`
`),A},YesNormal:function(e){var A=_r(e);A.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],i=kA.internal.getHeight(e),a=kA.internal.getWidth(e),l=zc(e,e.caption);return n.push("1 g"),n.push("0 0 "+ee(a)+" "+ee(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ee(a-1)+" "+ee(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+ee(l.fontSize)+" Tf "+r),n.push(l.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
`),A},OffPushDown:function(e){var A=_r(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ee(kA.internal.getWidth(e))+" "+ee(kA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
`),A}},RadioButton:{Circle:{createAppearanceStream:function(e){var A={D:{Off:kA.RadioButton.Circle.OffPushDown},N:{}};return A.N[e]=kA.RadioButton.Circle.YesNormal,A.D[e]=kA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(e){var A=_r(e);A.scope=e.scope;var t=[],r=kA.internal.getWidth(e)<=kA.internal.getHeight(e)?kA.internal.getWidth(e)/4:kA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=kA.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+pn(kA.internal.getWidth(e)/2)+" "+pn(kA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
`),A},YesPushDown:function(e){var A=_r(e);A.scope=e.scope;var t=[],r=kA.internal.getWidth(e)<=kA.internal.getHeight(e)?kA.internal.getWidth(e)/4:kA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*kA.internal.Bezier_C).toFixed(5)),a=Number((r*kA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+pn(kA.internal.getWidth(e)/2)+" "+pn(kA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+pn(kA.internal.getWidth(e)/2)+" "+pn(kA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
`),A},OffPushDown:function(e){var A=_r(e);A.scope=e.scope;var t=[],r=kA.internal.getWidth(e)<=kA.internal.getHeight(e)?kA.internal.getWidth(e)/4:kA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*kA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+pn(kA.internal.getWidth(e)/2)+" "+pn(kA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
`),A}},Cross:{createAppearanceStream:function(e){var A={D:{Off:kA.RadioButton.Cross.OffPushDown},N:{}};return A.N[e]=kA.RadioButton.Cross.YesNormal,A.D[e]=kA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(e){var A=_r(e);A.scope=e.scope;var t=[],r=kA.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+ee(kA.internal.getWidth(e)-2)+" "+ee(kA.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(ee(r.x1.x)+" "+ee(r.x1.y)+" m"),t.push(ee(r.x2.x)+" "+ee(r.x2.y)+" l"),t.push(ee(r.x4.x)+" "+ee(r.x4.y)+" m"),t.push(ee(r.x3.x)+" "+ee(r.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(`
`),A},YesPushDown:function(e){var A=_r(e);A.scope=e.scope;var t=kA.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ee(kA.internal.getWidth(e))+" "+ee(kA.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ee(kA.internal.getWidth(e)-2)+" "+ee(kA.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ee(t.x1.x)+" "+ee(t.x1.y)+" m"),r.push(ee(t.x2.x)+" "+ee(t.x2.y)+" l"),r.push(ee(t.x4.x)+" "+ee(t.x4.y)+" m"),r.push(ee(t.x3.x)+" "+ee(t.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
`),A},OffPushDown:function(e){var A=_r(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ee(kA.internal.getWidth(e))+" "+ee(kA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
`),A}}},createDefaultAppearanceStream:function(e){var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+A+" "+e.fontSize+" Tf "+t}};kA.internal={Bezier_C:.551915024494,calculateCross:function(e){var A=kA.internal.getWidth(e),t=kA.internal.getHeight(e),r=Math.min(A,t);return{x1:{x:(A-r)/2,y:(t-r)/2+r},x2:{x:(A-r)/2+r,y:(t-r)/2},x3:{x:(A-r)/2,y:(t-r)/2},x4:{x:(A-r)/2+r,y:(t-r)/2+r}}}},kA.internal.getWidth=function(e){var A=0;return me(e)==="object"&&(A=Wf(e.Rect[2])),A},kA.internal.getHeight=function(e){var A=0;return me(e)==="object"&&(A=Wf(e.Rect[3])),A};var Aw=Oe.addField=function(e){if($5(this,e),!(e instanceof wr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=e).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Oe.AcroFormChoiceField=Gi,Oe.AcroFormListBox=qi,Oe.AcroFormComboBox=Wi,Oe.AcroFormEditBox=yo,Oe.AcroFormButton=it,Oe.AcroFormPushButton=bo,Oe.AcroFormRadioButton=Ji,Oe.AcroFormCheckBox=Uo,Oe.AcroFormTextField=Zn,Oe.AcroFormPasswordField=Lo,Oe.AcroFormAppearance=kA,Oe.AcroForm={ChoiceField:Gi,ListBox:qi,ComboBox:Wi,EditBox:yo,Button:it,PushButton:bo,RadioButton:Ji,CheckBox:Uo,TextField:Zn,PasswordField:Lo,Appearance:kA},WA.AcroForm={ChoiceField:Gi,ListBox:qi,ComboBox:Wi,EditBox:yo,Button:it,PushButton:bo,RadioButton:Ji,CheckBox:Uo,TextField:Zn,PasswordField:Lo,Appearance:kA};WA.AcroForm;function Ed(e){return e.reduce(function(A,t,r){return A[t]=r,A},{})}(function(e){e.__addimage__={};var A="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(I,H){var R,k,oA,nA,cA,tA=A;if((H=H||A)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(Y(I))for(cA in t)for(oA=t[cA],R=0;R<oA.length;R+=1){for(nA=!0,k=0;k<oA[R].length;k+=1)if(oA[R][k]!==void 0&&oA[R][k]!==I[k]){nA=!1;break}if(nA===!0){tA=cA;break}}else for(cA in t)for(oA=t[cA],R=0;R<oA.length;R+=1){for(nA=!0,k=0;k<oA[R].length;k+=1)if(oA[R][k]!==void 0&&oA[R][k]!==I.charCodeAt(k)){nA=!1;break}if(nA===!0){tA=cA;break}}return tA===A&&H!==A&&(tA=H),tA},n=function I(H){for(var R=this.internal.write,k=this.internal.putStream,oA=(0,this.internal.getFilters)();oA.indexOf("FlateEncode")!==-1;)oA.splice(oA.indexOf("FlateEncode"),1);H.objectId=this.internal.newObject();var nA=[];if(nA.push({key:"Type",value:"/XObject"}),nA.push({key:"Subtype",value:"/Image"}),nA.push({key:"Width",value:H.width}),nA.push({key:"Height",value:H.height}),H.colorSpace===_.INDEXED?nA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(H.palette.length/3-1)+" "+("sMask"in H&&H.sMask!==void 0?H.objectId+2:H.objectId+1)+" 0 R]"}):(nA.push({key:"ColorSpace",value:"/"+H.colorSpace}),H.colorSpace===_.DEVICE_CMYK&&nA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),nA.push({key:"BitsPerComponent",value:H.bitsPerComponent}),"decodeParameters"in H&&H.decodeParameters!==void 0&&nA.push({key:"DecodeParms",value:"<<"+H.decodeParameters+">>"}),"transparency"in H&&Array.isArray(H.transparency)){for(var cA="",tA=0,fA=H.transparency.length;tA<fA;tA++)cA+=H.transparency[tA]+" "+H.transparency[tA]+" ";nA.push({key:"Mask",value:"["+cA+"]"})}H.sMask!==void 0&&nA.push({key:"SMask",value:H.objectId+1+" 0 R"});var dA=H.filter!==void 0?["/"+H.filter]:void 0;if(k({data:H.data,additionalKeyValues:nA,alreadyAppliedFilters:dA,objectId:H.objectId}),R("endobj"),"sMask"in H&&H.sMask!==void 0){var bA="/Predictor "+H.predictor+" /Colors 1 /BitsPerComponent "+H.bitsPerComponent+" /Columns "+H.width,U={width:H.width,height:H.height,colorSpace:"DeviceGray",bitsPerComponent:H.bitsPerComponent,decodeParameters:bA,data:H.sMask};"filter"in H&&(U.filter=H.filter),I.call(this,U)}if(H.colorSpace===_.INDEXED){var N=this.internal.newObject();k({data:O(new Uint8Array(H.palette)),objectId:N}),R("endobj")}},i=function(){var I=this.internal.collections.addImage_images;for(var H in I)n.call(this,I[H])},a=function(){var I,H=this.internal.collections.addImage_images,R=this.internal.write;for(var k in H)R("/I"+(I=H[k]).index,I.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var I=this.internal.collections.addImage_images;return l.call(this),I},d=function(){return Object.keys(this.internal.collections.addImage_images).length},g=function(I){return typeof e["process"+I.toUpperCase()]=="function"},B=function(I){return me(I)==="object"&&I.nodeType===1},w=function(I,H){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var R=""+I.getAttribute("src");if(R.indexOf("data:image/")===0)return qs(unescape(R).split("base64,").pop());var k=e.loadFile(R,!0);if(k!==void 0)return k}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var oA;switch(H){case"PNG":oA="image/png";break;case"WEBP":oA="image/webp";break;case"JPEG":case"JPG":default:oA="image/jpeg"}return qs(I.toDataURL(oA,1).split("base64,").pop())}},h=function(I){var H=this.internal.collections.addImage_images;if(H){for(var R in H)if(I===H[R].alias)return H[R]}},F=function(I,H,R){return I||H||(I=-96,H=-96),I<0&&(I=-1*R.width*72/I/this.internal.scaleFactor),H<0&&(H=-1*R.height*72/H/this.internal.scaleFactor),I===0&&(I=H*R.width/R.height),H===0&&(H=I*R.height/R.width),[I,H]},m=function(I,H,R,k,oA,nA){var cA=F.call(this,R,k,oA),tA=this.internal.getCoordinateString,fA=this.internal.getVerticalCoordinateString,dA=c.call(this);if(R=cA[0],k=cA[1],dA[oA.index]=oA,nA){nA*=Math.PI/180;var bA=Math.cos(nA),U=Math.sin(nA),N=function(j){return j.toFixed(4)},P=[N(bA),N(U),N(-1*U),N(bA),0,0,"cm"]}this.internal.write("q"),nA?(this.internal.write([1,"0","0",1,tA(I),fA(H+k),"cm"].join(" ")),this.internal.write(P.join(" ")),this.internal.write([tA(R),"0","0",tA(k),"0","0","cm"].join(" "))):this.internal.write([tA(R),"0","0",tA(k),tA(I),fA(H+k),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+oA.index+" Do"),this.internal.write("Q")},_=e.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"};e.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"};var Q=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=e.__addimage__.sHashCode=function(I){var H,R,k=0;if(typeof I=="string")for(R=I.length,H=0;H<R;H++)k=(k<<5)-k+I.charCodeAt(H),k|=0;else if(Y(I))for(R=I.byteLength/2,H=0;H<R;H++)k=(k<<5)-k+I[H],k|=0;return k},K=e.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var H=!0;return I.length===0&&(H=!1),I.length%4!=0&&(H=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(H=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(H=!1),H},V=e.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var H=I.indexOf(",");return H<0?null:I.substring(0,H).trim().endsWith("base64")?I.substring(H+1):null},X=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(I){return X()&&I instanceof ArrayBuffer};var Y=e.__addimage__.isArrayBufferView=function(I){return X()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},$=e.__addimage__.binaryStringToUint8Array=function(I){for(var H=I.length,R=new Uint8Array(H),k=0;k<H;k++)R[k]=I.charCodeAt(k);return R},O=e.__addimage__.arrayBufferToBinaryString=function(I){for(var H="",R=Y(I)?I:new Uint8Array(I),k=0;k<R.length;k+=8192)H+=String.fromCharCode.apply(null,R.subarray(k,k+8192));return H};e.addImage=function(){var I,H,R,k,oA,nA,cA,tA,fA;if(typeof arguments[1]=="number"?(H=A,R=arguments[1],k=arguments[2],oA=arguments[3],nA=arguments[4],cA=arguments[5],tA=arguments[6],fA=arguments[7]):(H=arguments[1],R=arguments[2],k=arguments[3],oA=arguments[4],nA=arguments[5],cA=arguments[6],tA=arguments[7],fA=arguments[8]),me(I=arguments[0])==="object"&&!B(I)&&"imageData"in I){var dA=I;I=dA.imageData,H=dA.format||H||A,R=dA.x||R||0,k=dA.y||k||0,oA=dA.w||dA.width||oA,nA=dA.h||dA.height||nA,cA=dA.alias||cA,tA=dA.compression||tA,fA=dA.rotation||dA.angle||fA}var bA=this.internal.getFilters();if(tA===void 0&&bA.indexOf("FlateEncode")!==-1&&(tA="SLOW"),isNaN(R)||isNaN(k))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var U=G.call(this,I,H,cA,tA);return m.call(this,R,k,oA,nA,U,fA),this};var G=function(I,H,R,k){var oA,nA,cA;if(typeof I=="string"&&r(I)===A){I=unescape(I);var tA=rA(I,!1);(tA!==""||(tA=e.loadFile(I,!0))!==void 0)&&(I=tA)}if(B(I)&&(I=w(I,H)),H=r(I,H),!g(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(((cA=R)==null||cA.length===0)&&(R=function(fA){return typeof fA=="string"||Y(fA)?E(fA):Y(fA.data)?E(fA.data):null}(I)),(oA=h.call(this,R))||(X()&&(I instanceof Uint8Array||H==="RGBA"||(nA=I,I=$(I))),oA=this["process"+H.toUpperCase()](I,d.call(this),R,function(fA){return fA&&typeof fA=="string"&&(fA=fA.toUpperCase()),fA in e.image_compression?fA:Q.NONE}(k),nA)),!oA)throw new Error("An unknown error occurred whilst processing the image.");return oA},rA=e.__addimage__.convertBase64ToBinaryString=function(I,H){H=typeof H!="boolean"||H;var R,k="";if(typeof I=="string"){var oA;R=(oA=V(I))!==null&&oA!==void 0?oA:I;try{k=qs(R)}catch(nA){if(H)throw K(R)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+nA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return k};e.getImageProperties=function(I){var H,R,k="";if(B(I)&&(I=w(I)),typeof I=="string"&&r(I)===A&&((k=rA(I,!1))===""&&(k=e.loadFile(I)||""),I=k),R=r(I),!g(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(!X()||I instanceof Uint8Array||(I=$(I)),!(H=this["process"+R.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return H.fileType=R,H}})(WA.API),function(e){var A=function(t){if(t!==void 0&&t!="")return!0};WA.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(t.objId),d=t.pageContext.annotations,g=!1,B=0;B<d.length&&!g;B++)switch((r=d[B]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var w=0;w<d.length;w++){r=d[w];var h=this.internal.pdfEscape,F=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),_=this.internal.newAdditionalObject(),Q=this.internal.getEncryptor(m.objId),E=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+h(Q(r.contents))+")",i+=" /Popup "+_.objId+" 0 R",i+=" /P "+c.objId+" 0 R",i+=" /T ("+h(Q(E))+") >>",m.content=i;var K=m.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+K,r.open&&(i+=" /Open true"),i+=" >>",_.content=i,this.internal.write(m.objId,"0 R",_.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+l(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var V=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(F(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+V+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var X=this.annotations._nameMap[r.options.name];r.options.pageNumber=X.page,r.options.top=X.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(F(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var Y=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+Y+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},e.link=function(t,r,n,i,a){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(t),y:d(r),w:c(t+n),h:d(r+i)},options:a,type:"link"})},e.textWithLink=function(t,r,n,i){var a,l,c=this.getTextWidth(t),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){l=i.maxWidth;var g=this.splitTextToSize(t,l).length;a=Math.ceil(d*g)}else l=c,a=d;return this.text(t,r,n,i),n+=.2*d,i.align==="center"&&(r-=c/2),i.align==="right"&&(r-=c),this.link(r,n-d,l,a,i),c},e.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}}(WA.API),function(e){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(m){return A[m.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},l=e.__arabicParser__.isArabicEndLetter=function(m){return a(m)&&i(m)&&A[m.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(m){return a(m)&&n.indexOf(m.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return a(m)&&i(m)&&A[m.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(m){return a(m)&&i(m)&&A[m.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(m){return a(m)&&i(m)&&A[m.charCodeAt(0)].length>=3};var g=e.__arabicParser__.arabicLetterHasMedialForm=function(m){return a(m)&&i(m)&&A[m.charCodeAt(0)].length==4},B=e.__arabicParser__.resolveLigatures=function(m){var _=0,Q=t,E="",K=0;for(_=0;_<m.length;_+=1)Q[m.charCodeAt(_)]!==void 0?(K++,typeof(Q=Q[m.charCodeAt(_)])=="number"&&(E+=String.fromCharCode(Q),Q=t,K=0),_===m.length-1&&(Q=t,E+=m.charAt(_-(K-1)),_-=K-1,K=0)):(Q=t,E+=m.charAt(_-K),_-=K,K=0);return E};e.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&r[m.charCodeAt(0)]!==void 0};var w=e.__arabicParser__.getCorrectForm=function(m,_,Q){return a(m)?i(m)===!1?-1:!d(m)||!a(_)&&!a(Q)||!a(Q)&&l(_)||l(m)&&!a(_)||l(m)&&c(_)||l(m)&&l(_)?0:g(m)&&a(_)&&!l(_)&&a(Q)&&d(Q)?3:l(m)||!a(Q)?1:2:-1},h=function(m){var _=0,Q=0,E=0,K="",V="",X="",Y=(m=m||"").split("\\s+"),$=[];for(_=0;_<Y.length;_+=1){for($.push(""),Q=0;Q<Y[_].length;Q+=1)K=Y[_][Q],V=Y[_][Q-1],X=Y[_][Q+1],a(K)?(E=w(K,V,X),$[_]+=E!==-1?String.fromCharCode(A[K.charCodeAt(0)][E]):K):$[_]+=K;$[_]=B($[_])}return $.join(" ")},F=e.__arabicParser__.processArabic=e.processArabic=function(){var m,_=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Q=[];if(Array.isArray(_)){var E=0;for(Q=[],E=0;E<_.length;E+=1)Array.isArray(_[E])?Q.push([h(_[E][0]),_[E][1],_[E][2]]):Q.push([h(_[E])]);m=Q}else m=h(_);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};e.events.push(["preProcessText",F])}(WA.API),WA.API.autoPrint=function(e){var A;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){A=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 "+A+" 0 R")})}return this},function(e){var A=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(l){t=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(l){n=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(l){i=l}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(l){a=l}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(t,r){var n;if((t=t||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(WA.API),function(e){var A={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(m){d=m}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(m){g=m}});var B=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return B},set:function(m){B=m}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(m){w=m}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(m){h=m}});var F=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return F},set:function(m){F=m}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,d){r.call(this);var g=(d=d||{}).fontSize||this.getFontSize(),B=d.font||this.getFont(),w=d.scaleFactor||this.internal.scaleFactor,h=0,F=0,m=0,_=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var Q=d.maxWidth;Q>0?typeof c=="string"?c=this.splitTextToSize(c,Q):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(K,V){return K.concat(_.splitTextToSize(V,Q))},[])):c=Array.isArray(c)?c:[c];for(var E=0;E<c.length;E++)h<(m=this.getStringUnitWidth(c[E],{font:B})*g)&&(h=m);return h!==0&&(F=c.length),{w:h/=w,h:Math.max((F*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/w,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var c;c=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var d=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,B=this.internal.__cell__.margins||A,w=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===c.lineNumber?(c.x=(d.x||0)+(d.width||0),c.y=d.y||0):d.y+d.height+c.height+B.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=B.top,h&&w&&(this.printHeaderRow(c.lineNumber,!0),c.y+=w[0].height)):c.y=d.y+d.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,t===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-g,c.y+g,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+g,{align:"center",baseline:"top",maxWidth:c.width-g-g}):this.text(c.text,c.x+g,c.y+g,{align:"left",baseline:"top",maxWidth:c.width-g-g})),this.internal.__cell__.lastCell=c,this};e.table=function(c,d,g,B,w){if(r.call(this),!g)throw new Error("No data for PDF table.");var h,F,m,_,Q=[],E=[],K=[],V={},X={},Y=[],$=[],O=(w=w||{}).autoSize||!1,G=w.printHeaders!==!1,rA=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,I=w.margins||Object.assign({width:this.getPageWidth()},A),H=typeof w.padding=="number"?w.padding:3,R=w.headerBackgroundColor||"#c8c8c8",k=w.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=G,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=rA,this.internal.__cell__.padding=H,this.internal.__cell__.headerBackgroundColor=R,this.internal.__cell__.headerTextColor=k,this.setFontSize(rA),B==null)E=Q=Object.keys(g[0]),K=Q.map(function(){return"left"});else if(Array.isArray(B)&&me(B[0])==="object")for(Q=B.map(function(dA){return dA.name}),E=B.map(function(dA){return dA.prompt||dA.name||""}),K=B.map(function(dA){return dA.align||"left"}),h=0;h<B.length;h+=1)X[B[h].name]=B[h].width*(19.049976/25.4);else Array.isArray(B)&&typeof B[0]=="string"&&(E=Q=B,K=Q.map(function(){return"left"}));if(O||Array.isArray(B)&&typeof B[0]=="string")for(h=0;h<Q.length;h+=1){for(V[_=Q[h]]=g.map(function(dA){return dA[_]}),this.setFont(void 0,"bold"),Y.push(this.getTextDimensions(E[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),F=V[_],this.setFont(void 0,"normal"),m=0;m<F.length;m+=1)Y.push(this.getTextDimensions(F[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);X[_]=Math.max.apply(null,Y)+H+H,Y=[]}if(G){var oA={};for(h=0;h<Q.length;h+=1)oA[Q[h]]={},oA[Q[h]].text=E[h],oA[Q[h]].align=K[h];var nA=l.call(this,oA,X);$=Q.map(function(dA){return new i(c,d,X[dA],nA,oA[dA].text,void 0,oA[dA].align)}),this.setTableHeaderRow($),this.printHeaderRow(1,!1)}var cA=B.reduce(function(dA,bA){return dA[bA.name]=bA.align,dA},{});for(h=0;h<g.length;h+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:h,data:g[h]},this);var tA=l.call(this,g[h],X);for(m=0;m<Q.length;m+=1){var fA=g[h][Q[m]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:h,col:m,data:fA},this),a.call(this,new i(c,d,X[Q[m]],tA,fA,h+2,cA[Q[m]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=d,this};var l=function(c,d){var g=this.internal.__cell__.padding,B=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(c).map(function(h){var F=c[h];return this.splitTextToSize(F.hasOwnProperty("text")?F.text:F,d[h]-g-g)},this).map(function(h){return this.getLineHeightFactor()*h.length*B/w+g+g},this).reduce(function(h,F){return Math.max(h,F)},0)};e.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var B=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(B[0],B[1],B[2],B[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){g=this.internal.__cell__.tableHeaderRow[h].clone(),d&&(g.y=this.internal.__cell__.margins.top||0,w.push(g)),g.lineNumber=c;var F=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,g),this.setTextColor(F)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),t=!1}}(WA.API);var xd={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Id=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yc=Ed(Id),_d=[100,200,300,400,500,600,700,800,900],ew=Ed(_d);function Zc(e){var A=e.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return xd[i=i||"normal"]?i:"normal"}(e.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(e.weight),n=function(i){return typeof Yc[i=i||"normal"]=="number"?i:"normal"}(e.stretch);return{family:A,style:t,weight:r,stretch:n,src:e.src||[],ref:e.ref||{name:A,style:[n,t,r].join(" ")}}}function Jf(e,A,t,r){var n;for(n=t;n>=0&&n<A.length;n+=r)if(e[A[n]])return e[A[n]];for(n=t;n>=0&&n<A.length;n-=r)if(e[A[n]])return e[A[n]]}var tw={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Xf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function zf(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function rw(e,A,t){for(var r=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},tw,t.genericFontFamilies||{}),i=null,a=null,l=0;l<A.length;++l)if(n[(i=Zc(A[l])).family]&&(i.family=n[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+zf(i)+"' and default family '"+r+"'.");if(a=function(c,d){if(d[c])return d[c];var g=Yc[c],B=g<=Yc.normal?-1:1,w=Jf(d,Id,g,B);if(!w)throw new Error("Could not find a matching font-stretch value for "+c);return w}(i.stretch,a),a=function(c,d){if(d[c])return d[c];for(var g=xd[c],B=0;B<g.length;++B)if(d[g[B]])return d[g[B]];throw new Error("Could not find a matching font-style for "+c)}(i.style,a),!(a=function(c,d){if(d[c])return d[c];if(c===400&&d[500])return d[500];if(c===500&&d[400])return d[400];var g=ew[c],B=Jf(d,_d,g,c<400?-1:1);if(!B)throw new Error("Could not find a matching font-weight for value "+c);return B}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+zf(i)+"'.");return a}function Yf(e){return e.trimLeft()}function nw(e,A){for(var t=0;t<e.length;){if(e.charAt(t)===A)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function iw(e){var A=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],e.substring(A[0].length)]}var go,Zf,$f,Bc=["times"];(function(e){var A,t,r,n,i,a,l,c,d,g=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new c,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new a,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new a,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new B(this),A=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,d=new g}]);var B=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var N=U;Object.defineProperty(this,"pdf",{get:function(){return N}});var P=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return P},set:function(BA){P=!!BA}});var j=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return j},set:function(BA){j=!!BA}});var Z=0;Object.defineProperty(this,"posX",{get:function(){return Z},set:function(BA){isNaN(BA)||(Z=BA)}});var aA=0;Object.defineProperty(this,"posY",{get:function(){return aA},set:function(BA){isNaN(BA)||(aA=BA)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(BA){var M;typeof BA=="number"?M=[BA,BA,BA,BA]:((M=new Array(4))[0]=BA[0],M[1]=BA.length>=2?BA[1]:M[0],M[2]=BA.length>=3?BA[2]:M[0],M[3]=BA.length>=4?BA[3]:M[1]),d.margin=M}});var lA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return lA},set:function(BA){lA=BA}});var uA=0;Object.defineProperty(this,"lastBreak",{get:function(){return uA},set:function(BA){uA=BA}});var yA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return yA},set:function(BA){yA=BA}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(BA){BA instanceof g&&(d=BA)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(BA){d.path=BA}});var FA=[];Object.defineProperty(this,"ctxStack",{get:function(){return FA},set:function(BA){FA=BA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(BA){var M;M=w(BA),this.ctx.fillStyle=M.style,this.ctx.isFillTransparent=M.a===0,this.ctx.fillOpacity=M.a,this.pdf.setFillColor(M.r,M.g,M.b,{a:M.a}),this.pdf.setTextColor(M.r,M.g,M.b,{a:M.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(BA){var M=w(BA);this.ctx.strokeStyle=M.style,this.ctx.isStrokeTransparent=M.a===0,this.ctx.strokeOpacity=M.a,M.a===0?this.pdf.setDrawColor(255,255,255):(M.a,this.pdf.setDrawColor(M.r,M.g,M.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(BA){["butt","round","square"].indexOf(BA)!==-1&&(this.ctx.lineCap=BA,this.pdf.setLineCap(BA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(BA){isNaN(BA)||(this.ctx.lineWidth=BA,this.pdf.setLineWidth(BA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(BA){["bevel","round","miter"].indexOf(BA)!==-1&&(this.ctx.lineJoin=BA,this.pdf.setLineJoin(BA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(BA){isNaN(BA)||(this.ctx.miterLimit=BA,this.pdf.setMiterLimit(BA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(BA){this.ctx.textBaseline=BA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(BA){["right","end","center","left","start"].indexOf(BA)!==-1&&(this.ctx.textAlign=BA)}});var _A=null;function EA(BA,M){if(_A===null){var te=function(MA){var QA=[];return Object.keys(MA).forEach(function(UA){MA[UA].forEach(function(HA){var IA=null;switch(HA){case"bold":IA={family:UA,weight:"bold"};break;case"italic":IA={family:UA,style:"italic"};break;case"bolditalic":IA={family:UA,weight:"bold",style:"italic"};break;case"":case"normal":IA={family:UA}}IA!==null&&(IA.ref={name:UA,style:HA},QA.push(IA))})}),QA}(BA.getFontList());_A=function(MA){for(var QA={},UA=0;UA<MA.length;++UA){var HA=Zc(MA[UA]),IA=HA.family,KA=HA.stretch,ZA=HA.style,ie=HA.weight;QA[IA]=QA[IA]||{},QA[IA][KA]=QA[IA][KA]||{},QA[IA][KA][ZA]=QA[IA][KA][ZA]||{},QA[IA][KA][ZA][ie]=HA}return QA}(te.concat(M))}return _A}var JA=null;Object.defineProperty(this,"fontFaces",{get:function(){return JA},set:function(BA){_A=null,JA=BA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(BA){var M;if(this.ctx.font=BA,(M=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(BA))!==null){var te=M[1];M[2];var MA=M[3],QA=M[4];M[5];var UA=M[6],HA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(QA)[2];QA=Math.floor(HA==="px"?parseFloat(QA)*this.pdf.internal.scaleFactor:HA==="em"?parseFloat(QA)*this.pdf.getFontSize():parseFloat(QA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(QA);var IA=function(zA){var ae,SA,ut=[],he=zA.trim();if(he==="")return Bc;if(he in Xf)return[Xf[he]];for(;he!=="";){switch(SA=null,ae=(he=Yf(he)).charAt(0)){case'"':case"'":SA=nw(he.substring(1),ae);break;default:SA=iw(he)}if(SA===null||(ut.push(SA[0]),(he=Yf(SA[1]))!==""&&he.charAt(0)!==","))return Bc;he=he.replace(/^,/,"")}return ut}(UA);if(this.fontFaces){var KA=rw(EA(this.pdf,this.fontFaces),IA.map(function(zA){return{family:zA,stretch:"normal",weight:MA,style:te}}));this.pdf.setFont(KA.ref.name,KA.ref.style)}else{var ZA="";(MA==="bold"||parseInt(MA,10)>=700||te==="bold")&&(ZA="bold"),te==="italic"&&(ZA+="italic"),ZA.length===0&&(ZA="normal");for(var ie="",se={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ue=0;ue<IA.length;ue++){if(this.pdf.internal.getFont(IA[ue],ZA,{noFallback:!0,disableWarning:!0})!==void 0){ie=IA[ue];break}if(ZA==="bolditalic"&&this.pdf.internal.getFont(IA[ue],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ie=IA[ue],ZA="bold";else if(this.pdf.internal.getFont(IA[ue],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ie=IA[ue],ZA="normal";break}}if(ie===""){for(var Ce=0;Ce<IA.length;Ce++)if(se[IA[Ce]]){ie=se[IA[Ce]];break}}ie=ie===""?"Times":ie,this.pdf.setFont(ie,ZA)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(BA){this.ctx.globalCompositeOperation=BA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(BA){this.ctx.globalAlpha=BA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(BA){this.ctx.lineDashOffset=BA,bA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(BA){this.ctx.lineDash=BA,bA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(BA){this.ctx.ignoreClearRect=!!BA}})};B.prototype.setLineDash=function(U){this.lineDash=U},B.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},B.prototype.fill=function(){V.call(this,"fill",!1)},B.prototype.stroke=function(){V.call(this,"stroke",!1)},B.prototype.beginPath=function(){this.path=[{type:"begin"}]},B.prototype.moveTo=function(U,N){if(isNaN(U)||isNaN(N))throw Ue.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var P=this.ctx.transform.applyToPoint(new a(U,N));this.path.push({type:"mt",x:P.x,y:P.y}),this.ctx.lastPoint=new a(U,N)},B.prototype.closePath=function(){var U=new a(0,0),N=0;for(N=this.path.length-1;N!==-1;N--)if(this.path[N].type==="begin"&&me(this.path[N+1])==="object"&&typeof this.path[N+1].x=="number"){U=new a(this.path[N+1].x,this.path[N+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(U.x,U.y)},B.prototype.lineTo=function(U,N){if(isNaN(U)||isNaN(N))throw Ue.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var P=this.ctx.transform.applyToPoint(new a(U,N));this.path.push({type:"lt",x:P.x,y:P.y}),this.ctx.lastPoint=new a(P.x,P.y)},B.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),V.call(this,null,!0)},B.prototype.quadraticCurveTo=function(U,N,P,j){if(isNaN(P)||isNaN(j)||isNaN(U)||isNaN(N))throw Ue.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Z=this.ctx.transform.applyToPoint(new a(P,j)),aA=this.ctx.transform.applyToPoint(new a(U,N));this.path.push({type:"qct",x1:aA.x,y1:aA.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new a(Z.x,Z.y)},B.prototype.bezierCurveTo=function(U,N,P,j,Z,aA){if(isNaN(Z)||isNaN(aA)||isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j))throw Ue.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var lA=this.ctx.transform.applyToPoint(new a(Z,aA)),uA=this.ctx.transform.applyToPoint(new a(U,N)),yA=this.ctx.transform.applyToPoint(new a(P,j));this.path.push({type:"bct",x1:uA.x,y1:uA.y,x2:yA.x,y2:yA.y,x:lA.x,y:lA.y}),this.ctx.lastPoint=new a(lA.x,lA.y)},B.prototype.arc=function(U,N,P,j,Z,aA){if(isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j)||isNaN(Z))throw Ue.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(aA=!!aA,!this.ctx.transform.isIdentity){var lA=this.ctx.transform.applyToPoint(new a(U,N));U=lA.x,N=lA.y;var uA=this.ctx.transform.applyToPoint(new a(0,P)),yA=this.ctx.transform.applyToPoint(new a(0,0));P=Math.sqrt(Math.pow(uA.x-yA.x,2)+Math.pow(uA.y-yA.y,2))}Math.abs(Z-j)>=2*Math.PI&&(j=0,Z=2*Math.PI),this.path.push({type:"arc",x:U,y:N,radius:P,startAngle:j,endAngle:Z,counterclockwise:aA})},B.prototype.arcTo=function(U,N,P,j,Z){throw new Error("arcTo not implemented.")},B.prototype.rect=function(U,N,P,j){if(isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j))throw Ue.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,N),this.lineTo(U+P,N),this.lineTo(U+P,N+j),this.lineTo(U,N+j),this.lineTo(U,N),this.lineTo(U+P,N),this.lineTo(U,N)},B.prototype.fillRect=function(U,N,P,j){if(isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j))throw Ue.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var Z={};this.lineCap!=="butt"&&(Z.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Z.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,N,P,j),this.fill(),Z.hasOwnProperty("lineCap")&&(this.lineCap=Z.lineCap),Z.hasOwnProperty("lineJoin")&&(this.lineJoin=Z.lineJoin)}},B.prototype.strokeRect=function(U,N,P,j){if(isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j))throw Ue.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");F.call(this)||(this.beginPath(),this.rect(U,N,P,j),this.stroke())},B.prototype.clearRect=function(U,N,P,j){if(isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j))throw Ue.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,N,P,j))},B.prototype.save=function(U){U=typeof U!="boolean"||U;for(var N=this.pdf.internal.getCurrentPageInfo().pageNumber,P=0;P<this.pdf.internal.getNumberOfPages();P++)this.pdf.setPage(P+1),this.pdf.internal.out("q");if(this.pdf.setPage(N),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var j=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=j}},B.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var N=this.pdf.internal.getCurrentPageInfo().pageNumber,P=0;P<this.pdf.internal.getNumberOfPages();P++)this.pdf.setPage(P+1),this.pdf.internal.out("Q");this.pdf.setPage(N),U&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},B.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(U){var N,P,j,Z;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))N=0,P=0,j=0,Z=0;else{var aA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(aA!==null)N=parseInt(aA[1]),P=parseInt(aA[2]),j=parseInt(aA[3]),Z=1;else if((aA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)N=parseInt(aA[1]),P=parseInt(aA[2]),j=parseInt(aA[3]),Z=parseFloat(aA[4]);else{if(Z=1,typeof U=="string"&&U.charAt(0)!=="#"){var lA=new Qd(U);U=lA.ok?lA.toHex():"#000000"}U.length===4?(N=U.substring(1,2),N+=N,P=U.substring(2,3),P+=P,j=U.substring(3,4),j+=j):(N=U.substring(1,3),P=U.substring(3,5),j=U.substring(5,7)),N=parseInt(N,16),P=parseInt(P,16),j=parseInt(j,16)}}return{r:N,g:P,b:j,a:Z,style:U}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},F=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};B.prototype.fillText=function(U,N,P,j){if(isNaN(N)||isNaN(P)||typeof U!="string")throw Ue.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(j=isNaN(j)?void 0:j,!h.call(this)){var Z=tA(this.ctx.transform.rotation),aA=this.ctx.transform.scaleX;H.call(this,{text:U,x:N,y:P,scale:aA,angle:Z,align:this.textAlign,maxWidth:j})}},B.prototype.strokeText=function(U,N,P,j){if(isNaN(N)||isNaN(P)||typeof U!="string")throw Ue.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!F.call(this)){j=isNaN(j)?void 0:j;var Z=tA(this.ctx.transform.rotation),aA=this.ctx.transform.scaleX;H.call(this,{text:U,x:N,y:P,scale:aA,renderingMode:"stroke",angle:Z,align:this.textAlign,maxWidth:j})}},B.prototype.measureText=function(U){if(typeof U!="string")throw Ue.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var N=this.pdf,P=this.pdf.internal.scaleFactor,j=N.internal.getFontSize(),Z=N.getStringUnitWidth(U)*j/N.internal.scaleFactor,aA=function(lA){var uA=(lA=lA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return uA}}),this};return new aA({width:Z*=Math.round(96*P/72*1e4)/1e4})},B.prototype.scale=function(U,N){if(isNaN(U)||isNaN(N))throw Ue.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var P=new c(U,0,0,N,0,0);this.ctx.transform=this.ctx.transform.multiply(P)},B.prototype.rotate=function(U){if(isNaN(U))throw Ue.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var N=new c(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(N)},B.prototype.translate=function(U,N){if(isNaN(U)||isNaN(N))throw Ue.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var P=new c(1,0,0,1,U,N);this.ctx.transform=this.ctx.transform.multiply(P)},B.prototype.transform=function(U,N,P,j,Z,aA){if(isNaN(U)||isNaN(N)||isNaN(P)||isNaN(j)||isNaN(Z)||isNaN(aA))throw Ue.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var lA=new c(U,N,P,j,Z,aA);this.ctx.transform=this.ctx.transform.multiply(lA)},B.prototype.setTransform=function(U,N,P,j,Z,aA){U=isNaN(U)?1:U,N=isNaN(N)?0:N,P=isNaN(P)?0:P,j=isNaN(j)?1:j,Z=isNaN(Z)?0:Z,aA=isNaN(aA)?0:aA,this.ctx.transform=new c(U,N,P,j,Z,aA)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};B.prototype.drawImage=function(U,N,P,j,Z,aA,lA,uA,yA){var FA=this.pdf.getImageProperties(U),_A=1,EA=1,JA=1,BA=1;j!==void 0&&uA!==void 0&&(JA=uA/j,BA=yA/Z,_A=FA.width/j*uA/j,EA=FA.height/Z*yA/Z),aA===void 0&&(aA=N,lA=P,N=0,P=0),j!==void 0&&uA===void 0&&(uA=j,yA=Z),j===void 0&&uA===void 0&&(uA=FA.width,yA=FA.height);for(var M,te=this.ctx.transform.decompose(),MA=tA(te.rotate.shx),QA=new c,UA=(QA=(QA=(QA=QA.multiply(te.translate)).multiply(te.skew)).multiply(te.scale)).applyToRectangle(new l(aA-N*JA,lA-P*BA,j*_A,Z*EA)),HA=_.call(this,UA),IA=[],KA=0;KA<HA.length;KA+=1)IA.indexOf(HA[KA])===-1&&IA.push(HA[KA]);if(K(IA),this.autoPaging)for(var ZA=IA[0],ie=IA[IA.length-1],se=ZA;se<ie+1;se++){this.pdf.setPage(se);var ue=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ce=se===1?this.posY+this.margin[0]:this.margin[0],zA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ae=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],SA=se===1?0:zA+(se-2)*ae;if(this.ctx.clip_path.length!==0){var ut=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(M,this.posX+this.margin[3],-SA+Ce+this.ctx.prevPageLastElemOffset),X.call(this,"fill",!0),this.path=ut}var he=JSON.parse(JSON.stringify(UA));he=E([he],this.posX+this.margin[3],-SA+Ce+this.ctx.prevPageLastElemOffset)[0];var tr=(se>ZA||se<ie)&&m.call(this);tr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ue,ae,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",he.x,he.y,he.w,he.h,null,null,MA),tr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(U,"JPEG",UA.x,UA.y,UA.w,UA.h,null,null,MA)};var _=function(U,N,P){var j=[];N=N||this.pdf.internal.pageSize.width,P=P||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Z=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":j.push(Math.floor((U.y+Z)/P)+1);break;case"arc":j.push(Math.floor((U.y+Z-U.radius)/P)+1),j.push(Math.floor((U.y+Z+U.radius)/P)+1);break;case"qct":var aA=fA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);j.push(Math.floor((aA.y+Z)/P)+1),j.push(Math.floor((aA.y+aA.h+Z)/P)+1);break;case"bct":var lA=dA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);j.push(Math.floor((lA.y+Z)/P)+1),j.push(Math.floor((lA.y+lA.h+Z)/P)+1);break;case"rect":j.push(Math.floor((U.y+Z)/P)+1),j.push(Math.floor((U.y+U.h+Z)/P)+1)}for(var uA=0;uA<j.length;uA+=1)for(;this.pdf.internal.getNumberOfPages()<j[uA];)Q.call(this);return j},Q=function(){var U=this.fillStyle,N=this.strokeStyle,P=this.font,j=this.lineCap,Z=this.lineWidth,aA=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=N,this.font=P,this.lineCap=j,this.lineWidth=Z,this.lineJoin=aA},E=function(U,N,P){for(var j=0;j<U.length;j++)switch(U[j].type){case"bct":U[j].x2+=N,U[j].y2+=P;case"qct":U[j].x1+=N,U[j].y1+=P;case"mt":case"lt":case"arc":default:U[j].x+=N,U[j].y+=P}return U},K=function(U){return U.sort(function(N,P){return N-P})},V=function(U,N){for(var P,j,Z=this.fillStyle,aA=this.strokeStyle,lA=this.lineCap,uA=this.lineWidth,yA=Math.abs(uA*this.ctx.transform.scaleX),FA=this.lineJoin,_A=JSON.parse(JSON.stringify(this.path)),EA=JSON.parse(JSON.stringify(this.path)),JA=[],BA=0;BA<EA.length;BA++)if(EA[BA].x!==void 0)for(var M=_.call(this,EA[BA]),te=0;te<M.length;te+=1)JA.indexOf(M[te])===-1&&JA.push(M[te]);for(var MA=0;MA<JA.length;MA++)for(;this.pdf.internal.getNumberOfPages()<JA[MA];)Q.call(this);if(K(JA),this.autoPaging)for(var QA=JA[0],UA=JA[JA.length-1],HA=QA;HA<UA+1;HA++){this.pdf.setPage(HA),this.fillStyle=Z,this.strokeStyle=aA,this.lineCap=lA,this.lineWidth=yA,this.lineJoin=FA;var IA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],KA=HA===1?this.posY+this.margin[0]:this.margin[0],ZA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ie=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],se=HA===1?0:ZA+(HA-2)*ie;if(this.ctx.clip_path.length!==0){var ue=this.path;P=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(P,this.posX+this.margin[3],-se+KA+this.ctx.prevPageLastElemOffset),X.call(this,U,!0),this.path=ue}if(j=JSON.parse(JSON.stringify(_A)),this.path=E(j,this.posX+this.margin[3],-se+KA+this.ctx.prevPageLastElemOffset),N===!1||HA===0){var Ce=(HA>QA||HA<UA)&&m.call(this);Ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],IA,ie,null).clip().discardPath()),X.call(this,U,N),Ce&&this.pdf.restoreGraphicsState()}this.lineWidth=uA}else this.lineWidth=yA,X.call(this,U,N),this.lineWidth=uA;this.path=_A},X=function(U,N){if((U!=="stroke"||N||!F.call(this))&&(U==="stroke"||N||!h.call(this))){for(var P,j,Z=[],aA=this.path,lA=0;lA<aA.length;lA++){var uA=aA[lA];switch(uA.type){case"begin":Z.push({begin:!0});break;case"close":Z.push({close:!0});break;case"mt":Z.push({start:uA,deltas:[],abs:[]});break;case"lt":var yA=Z.length;if(aA[lA-1]&&!isNaN(aA[lA-1].x)&&(P=[uA.x-aA[lA-1].x,uA.y-aA[lA-1].y],yA>0)){for(;yA>=0;yA--)if(Z[yA-1].close!==!0&&Z[yA-1].begin!==!0){Z[yA-1].deltas.push(P),Z[yA-1].abs.push(uA);break}}break;case"bct":P=[uA.x1-aA[lA-1].x,uA.y1-aA[lA-1].y,uA.x2-aA[lA-1].x,uA.y2-aA[lA-1].y,uA.x-aA[lA-1].x,uA.y-aA[lA-1].y],Z[Z.length-1].deltas.push(P);break;case"qct":var FA=aA[lA-1].x+2/3*(uA.x1-aA[lA-1].x),_A=aA[lA-1].y+2/3*(uA.y1-aA[lA-1].y),EA=uA.x+2/3*(uA.x1-uA.x),JA=uA.y+2/3*(uA.y1-uA.y),BA=uA.x,M=uA.y;P=[FA-aA[lA-1].x,_A-aA[lA-1].y,EA-aA[lA-1].x,JA-aA[lA-1].y,BA-aA[lA-1].x,M-aA[lA-1].y],Z[Z.length-1].deltas.push(P);break;case"arc":Z.push({deltas:[],abs:[],arc:!0}),Array.isArray(Z[Z.length-1].abs)&&Z[Z.length-1].abs.push(uA)}}j=N?null:U==="stroke"?"stroke":"fill";for(var te=!1,MA=0;MA<Z.length;MA++)if(Z[MA].arc)for(var QA=Z[MA].abs,UA=0;UA<QA.length;UA++){var HA=QA[UA];HA.type==="arc"?O.call(this,HA.x,HA.y,HA.radius,HA.startAngle,HA.endAngle,HA.counterclockwise,void 0,N,!te):R.call(this,HA.x,HA.y),te=!0}else if(Z[MA].close===!0)this.pdf.internal.out("h"),te=!1;else if(Z[MA].begin!==!0){var IA=Z[MA].start.x,KA=Z[MA].start.y;k.call(this,Z[MA].deltas,IA,KA),te=!0}j&&G.call(this,j),N&&rA.call(this)}},Y=function(U){var N=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,P=N*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-P;case"top":return U+N-P;case"hanging":return U+N-2*P;case"middle":return U+N/2-P;case"ideographic":return U;case"alphabetic":default:return U}},$=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};B.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(N,P){this.colorStops.push([N,P])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},B.prototype.createPattern=function(){return this.createLinearGradient()},B.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(U,N,P,j,Z,aA,lA,uA,yA){for(var FA=nA.call(this,P,j,Z,aA),_A=0;_A<FA.length;_A++){var EA=FA[_A];_A===0&&(yA?I.call(this,EA.x1+U,EA.y1+N):R.call(this,EA.x1+U,EA.y1+N)),oA.call(this,U,N,EA.x2,EA.y2,EA.x3,EA.y3,EA.x4,EA.y4)}uA?rA.call(this):G.call(this,lA)},G=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},rA=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(U,N){this.pdf.internal.out(t(U)+" "+r(N)+" m")},H=function(U){var N;switch(U.align){case"right":case"end":N="right";break;case"center":N="center";break;case"left":case"start":default:N="left"}var P=this.pdf.getTextDimensions(U.text),j=Y.call(this,U.y),Z=$.call(this,j)-P.h,aA=this.ctx.transform.applyToPoint(new a(U.x,j)),lA=this.ctx.transform.decompose(),uA=new c;uA=(uA=(uA=uA.multiply(lA.translate)).multiply(lA.skew)).multiply(lA.scale);for(var yA,FA,_A,EA=this.ctx.transform.applyToRectangle(new l(U.x,j,P.w,P.h)),JA=uA.applyToRectangle(new l(U.x,Z,P.w,P.h)),BA=_.call(this,JA),M=[],te=0;te<BA.length;te+=1)M.indexOf(BA[te])===-1&&M.push(BA[te]);if(K(M),this.autoPaging)for(var MA=M[0],QA=M[M.length-1],UA=MA;UA<QA+1;UA++){this.pdf.setPage(UA);var HA=UA===1?this.posY+this.margin[0]:this.margin[0],IA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],KA=this.pdf.internal.pageSize.height-this.margin[2],ZA=KA-this.margin[0],ie=this.pdf.internal.pageSize.width-this.margin[1],se=ie-this.margin[3],ue=UA===1?0:IA+(UA-2)*ZA;if(this.ctx.clip_path.length!==0){var Ce=this.path;yA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(yA,this.posX+this.margin[3],-1*ue+HA),X.call(this,"fill",!0),this.path=Ce}var zA=E([JSON.parse(JSON.stringify(JA))],this.posX+this.margin[3],-ue+HA+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*U.scale),_A=this.lineWidth,this.lineWidth=_A*U.scale);var ae=this.autoPaging!=="text";if(ae||zA.y+zA.h<=KA){if(ae||zA.y>=HA&&zA.x<=ie){var SA=ae?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||ie-zA.x)[0],ut=E([JSON.parse(JSON.stringify(EA))],this.posX+this.margin[3],-ue+HA+this.ctx.prevPageLastElemOffset)[0],he=ae&&(UA>MA||UA<QA)&&m.call(this);he&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],se,ZA,null).clip().discardPath()),this.pdf.text(SA,ut.x,ut.y,{angle:U.angle,align:N,renderingMode:U.renderingMode}),he&&this.pdf.restoreGraphicsState()}}else zA.y<KA&&(this.ctx.prevPageLastElemOffset+=KA-zA.y);U.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=_A)}else U.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*U.scale),_A=this.lineWidth,this.lineWidth=_A*U.scale),this.pdf.text(U.text,aA.x+this.posX,aA.y+this.posY,{angle:U.angle,align:N,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=_A)},R=function(U,N,P,j){P=P||0,j=j||0,this.pdf.internal.out(t(U+P)+" "+r(N+j)+" l")},k=function(U,N,P){return this.pdf.lines(U,N,P,null,null)},oA=function(U,N,P,j,Z,aA,lA,uA){this.pdf.internal.out([A(n(P+U)),A(i(j+N)),A(n(Z+U)),A(i(aA+N)),A(n(lA+U)),A(i(uA+N)),"c"].join(" "))},nA=function(U,N,P,j){for(var Z=2*Math.PI,aA=Math.PI/2;N>P;)N-=Z;var lA=Math.abs(P-N);lA<Z&&j&&(lA=Z-lA);for(var uA=[],yA=j?-1:1,FA=N;lA>1e-5;){var _A=FA+yA*Math.min(lA,aA);uA.push(cA.call(this,U,FA,_A)),lA-=Math.abs(_A-FA),FA=_A}return uA},cA=function(U,N,P){var j=(P-N)/2,Z=U*Math.cos(j),aA=U*Math.sin(j),lA=Z,uA=-aA,yA=lA*lA+uA*uA,FA=yA+lA*Z+uA*aA,_A=4/3*(Math.sqrt(2*yA*FA)-FA)/(lA*aA-uA*Z),EA=lA-_A*uA,JA=uA+_A*lA,BA=EA,M=-JA,te=j+N,MA=Math.cos(te),QA=Math.sin(te);return{x1:U*Math.cos(N),y1:U*Math.sin(N),x2:EA*MA-JA*QA,y2:EA*QA+JA*MA,x3:BA*MA-M*QA,y3:BA*QA+M*MA,x4:U*Math.cos(P),y4:U*Math.sin(P)}},tA=function(U){return 180*U/Math.PI},fA=function(U,N,P,j,Z,aA){var lA=U+.5*(P-U),uA=N+.5*(j-N),yA=Z+.5*(P-Z),FA=aA+.5*(j-aA),_A=Math.min(U,Z,lA,yA),EA=Math.max(U,Z,lA,yA),JA=Math.min(N,aA,uA,FA),BA=Math.max(N,aA,uA,FA);return new l(_A,JA,EA-_A,BA-JA)},dA=function(U,N,P,j,Z,aA,lA,uA){var yA,FA,_A,EA,JA,BA,M,te,MA,QA,UA,HA,IA,KA,ZA=P-U,ie=j-N,se=Z-P,ue=aA-j,Ce=lA-Z,zA=uA-aA;for(FA=0;FA<41;FA++)MA=(M=(_A=U+(yA=FA/40)*ZA)+yA*((JA=P+yA*se)-_A))+yA*(JA+yA*(Z+yA*Ce-JA)-M),QA=(te=(EA=N+yA*ie)+yA*((BA=j+yA*ue)-EA))+yA*(BA+yA*(aA+yA*zA-BA)-te),FA==0?(UA=MA,HA=QA,IA=MA,KA=QA):(UA=Math.min(UA,MA),HA=Math.min(HA,QA),IA=Math.max(IA,MA),KA=Math.max(KA,QA));return new l(Math.round(UA),Math.round(HA),Math.round(IA-UA),Math.round(KA-HA))},bA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,N,P=(U=this.ctx.lineDash,N=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:N}));this.prevLineDash!==P&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=P)}}})(WA.API),function(e){var A=function(i){var a,l,c,d,g,B,w,h,F,m;for(l=[],c=0,d=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;d>c;c+=4)(g=(i.charCodeAt(c)<<24)+(i.charCodeAt(c+1)<<16)+(i.charCodeAt(c+2)<<8)+i.charCodeAt(c+3))!==0?(B=(g=((g=((g=((g=(g-(m=g%85))/85)-(F=g%85))/85)-(h=g%85))/85)-(w=g%85))/85)%85,l.push(B+33,w+33,h+33,F+33,m+33)):l.push(122);return function(_,Q){for(var E=Q;E>0;E--)_.pop()}(l,a.length),String.fromCharCode.apply(String,l)+"~>"},t=function(i){var a,l,c,d,g,B=String,w="length",h=255,F="charCodeAt",m="slice",_="replace";for(i[m](-2),i=i[m](0,-2)[_](/\s/g,"")[_]("z","!!!!!"),c=[],d=0,g=(i+=a="uuuuu"[m](i[w]%5||5))[w];g>d;d+=5)l=52200625*(i[F](d)-33)+614125*(i[F](d+1)-33)+7225*(i[F](d+2)-33)+85*(i[F](d+3)-33)+(i[F](d+4)-33),c.push(h&l>>24,h&l>>16,h&l>>8,h&l);return function(Q,E){for(var K=E;K>0;K--)Q.pop()}(c,a[w]),B.fromCharCode.apply(B,c)},r=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var l="",c=0;c<i.length;c+=2)l+=String.fromCharCode("0x"+(i[c]+i[c+1]));return l},n=function(i){for(var a=new Uint8Array(i.length),l=i.length;l--;)a[l]=i.charCodeAt(l);return i=(a=qc(a)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(i,a){var l=0,c=i||"",d=[];for(typeof(a=a||[])=="string"&&(a=[a]),l=0;l<a.length;l+=1)switch(a[l]){case"ASCII85Decode":case"/ASCII85Decode":c=t(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=A(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=r(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=c.split("").map(function(g){return("0"+g.charCodeAt().toString(16)).slice(-2)}).join("")+">",d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=n(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[l]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}}(WA.API),function(e){e.loadFile=function(A,t,r){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var l=void 0;try{l=function(c,d,g){var B=new XMLHttpRequest,w=0,h=function(F){var m=F.length,_=[],Q=String.fromCharCode;for(w=0;w<m;w+=1)_.push(Q(255&F.charCodeAt(w)));return _.join("")};if(B.open("GET",c,!d),B.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(B.onload=function(){B.status===200?g(h(this.responseText)):g(void 0)}),B.send(null),d&&B.status===200)return h(B.responseText)}(n,i,a)}catch{}return l}(A,t,r)},e.loadImageFile=e.loadFile}(WA.API),function(e){function A(){return(XA.html2canvas?Promise.resolve(XA.html2canvas):wc(()=>Promise.resolve().then(()=>b5),void 0)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function t(){return(XA.DOMPurify?Promise.resolve(XA.DOMPurify):wc(()=>import("./purify.es.CQJ0hv7W.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var l=me(a);return l==="undefined"?"undefined":l==="string"||a instanceof String?"string":l==="number"||a instanceof Number?"number":l==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":l==="object"?"object":"unknown"},n=function(a,l){var c=document.createElement(a);for(var d in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[d]=l.style[d];return c},i=function a(l){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),d=a.convert(Promise.resolve(),c);return d=(d=d.setProgress(1,a,1,[a])).set(l)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,l){return a.__proto__=l||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,l){return this.then(function(){switch(l=l||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(t).then(function(c){return this.set({src:n("div",{innerHTML:a,dompurify:c})})});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.")}})},i.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.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=function c(d,g){for(var B=d.nodeType===3?document.createTextNode(d.nodeValue):d.cloneNode(!1),w=d.firstChild;w;w=w.nextSibling)g!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||B.appendChild(c(w,g));return d.nodeType===1&&(d.nodeName==="CANVAS"?(B.width=d.width,B.height=d.height,B.getContext("2d").drawImage(d,0,0)):d.nodeName!=="TEXTAREA"&&d.nodeName!=="SELECT"||(B.value=d.value),B.addEventListener("load",function(){B.scrollTop=d.scrollTop,B.scrollLeft=d.scrollLeft},!0)),B}(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(l){var c=this.opt.jsPDF,d=this.opt.fontFaces,g=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,B=Object.assign({async:!0,allowTaint:!0,scale:g,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete B.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var w=0;w<d.length;++w){var h=d[w],F=h.src.find(function(m){return m.format==="truetype"});F&&c.addFont(F.url,h.ref.name,h.ref.style)}return B.windowHeight=B.windowHeight||0,B.windowHeight=B.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):B.windowHeight,c.context2d.save(!0),l(this.prop.container,B)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).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})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,l):this.outputPdf(a,l)},i.prototype.outputPdf=function(a,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,l)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).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.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(r(a)!=="object")return this;var l=Object.keys(a||{}).map(function(c){if(c in i.template.prop)return function(){this.prop[c]=a[c]};switch(c){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[c]=a[c]}}},this);return this.then(function(){return this.thenList(l)})},i.prototype.get=function(a,l){return this.then(function(){var c=a in i.template.prop?this.prop[a]:this.opt[a];return l?l(c):c})},i.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function l(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(a=a||WA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:l(a.inner.width,a.k),height:l(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,l,c,d){return a!=null&&(this.progress.val=a),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,l,c,d){return this.setProgress(a?this.progress.val+a:null,l||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},i.prototype.then=function(a,l){var c=this;return this.thenCore(a,l,function(d,g){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(B){return c.updateProgress(null,d),B}).then(d,g).then(function(B){return c.updateProgress(1),B})})},i.prototype.thenCore=function(a,l,c){c=c||Promise.prototype.then,a&&(a=a.bind(this)),l&&(l=l.bind(this));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),g=c.call(d,a,l);return i.convert(g,this.__proto__)},i.prototype.thenExternal=function(a,l){return Promise.prototype.then.call(this,a,l)},i.prototype.thenList=function(a){var l=this;return a.forEach(function(c){l=l.thenCore(c)}),l},i.prototype.catch=function(a){a&&(a=a.bind(this));var l=Promise.prototype.catch.call(this,a);return i.convert(l,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,WA.getPageSize=function(a,l,c){if(me(a)==="object"){var d=a;a=d.orientation,l=d.unit||l,c=d.format||c}l=l||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var g,B=(""+c).toLowerCase(),w={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(l){case"pt":g=1;break;case"mm":g=72/25.4;break;case"cm":g=72/2.54;break;case"in":g=72;break;case"px":g=.75;break;case"pc":case"em":g=12;break;case"ex":g=6;break;default:throw"Invalid unit: "+l}var h,F=0,m=0;if(w.hasOwnProperty(B))F=w[B][1]/g,m=w[B][0]/g;else try{F=c[1],m=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",m>F&&(h=m,m=F,F=h);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",F>m&&(h=m,m=F,F=h)}return{width:m,height:F,unit:l,k:g,orientation:a}},e.html=function(a,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(Zc):null;var c=new i(l);return l.worker?c:c.from(a).doCallback()}}(WA.API),WA.API.addJS=function(e){return $f=e,this.internal.events.subscribe("postPutResources",function(){go=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(go+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Zf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+$f+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){go!==void 0&&Zf!==void 0&&this.internal.out("/Names <</JavaScript "+go+" 0 R>>")}),this},function(e){var A;e.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],l=r.exec(a);if(l!=null){var c=l[1];t.internal.newObjectDeferredBegin(c,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,g=[];for(i=0;i<d;i++){var B=t.internal.newObject();g.push(B);var w=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<g.length;i++)t.internal.write("(page_"+(i+1)+")"+g[i]+" 0 R");t.internal.write(" ] >>","endobj"),A=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,n,i){var a={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},t.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},t.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var a=r.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var l=this.count=this.count_r({count:0},a);if(l>0&&this.line("/Count "+l),a.options&&a.options.pageNumber){var c=t.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},t.outline.line=function(r){this.ctx.val+=r+`\r
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},t.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(WA.API),function(e){var A=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,n,i,a,l){var c,d=this.decode.DCT_DECODE,g=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(c=function(B){for(var w,h=256*B.charCodeAt(4)+B.charCodeAt(5),F=B.length,m={width:0,height:0,numcomponents:1},_=4;_<F;_+=2){if(_+=h,A.indexOf(B.charCodeAt(_+1))!==-1){w=256*B.charCodeAt(_+5)+B.charCodeAt(_+6),m={width:256*B.charCodeAt(_+7)+B.charCodeAt(_+8),height:w,numcomponents:B.charCodeAt(_+9)};break}h=256*B.charCodeAt(_+2)+B.charCodeAt(_+3)}return m}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}g={data:t,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:d,index:r,alias:n}}return g}}(WA.API);var Ti,Bo,Ah,eh,th,sw=function(){var e,A,t;function r(i){var a,l,c,d,g,B,w,h,F,m,_,Q,E,K;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},B=null;;){switch(a=this.readUInt32(),F=(function(){var V,X;for(X=[],V=0;V<4;++V)X.push(String.fromCharCode(this.data[this.pos++]));return X}).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(a);break;case"fcTL":B&&this.animation.frames.push(B),this.pos+=4,B={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},g=this.readUInt16(),d=this.readUInt16()||100,B.delay=1e3*g/d,B.disposeOp=this.data[this.pos++],B.blendOp=this.data[this.pos++],B.data=[];break;case"IDAT":case"fdAT":for(F==="fdAT"&&(this.pos+=4,a-=4),i=(B!=null?B.data:void 0)||this.imgData,Q=0;0<=a?Q<a:Q>a;0<=a?++Q:--Q)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(c=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>c)throw new Error("More transparent colors than palette size");if((m=c-this.transparency.indexed.length)>0)for(E=0;0<=m?E<m:E>m;0<=m?++E:--E)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":w=(_=this.read(a)).indexOf(0),h=String.fromCharCode.apply(String,_.slice(0,w)),this.text[h]=String.fromCharCode.apply(String,_.slice(w+1));break;case"IEND":return B&&this.animation.frames.push(B),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(K=this.colorType)===4||K===6,l=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*l,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+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var a,l;for(l=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)l.push(this.data[this.pos++]);return l},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(i){var a=this.pixelBitlength/8,l=new Uint8Array(this.width*this.height*a),c=0,d=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function g(B,w,h,F){var m,_,Q,E,K,V,X,Y,$,O,G,rA,I,H,R,k,oA,nA,cA,tA,fA,dA=Math.ceil((d.width-B)/h),bA=Math.ceil((d.height-w)/F),U=d.width==dA&&d.height==bA;for(H=a*dA,rA=U?l:new Uint8Array(H*bA),V=i.length,I=0,_=0;I<bA&&c<V;){switch(i[c++]){case 0:for(E=oA=0;oA<H;E=oA+=1)rA[_++]=i[c++];break;case 1:for(E=nA=0;nA<H;E=nA+=1)m=i[c++],K=E<a?0:rA[_-a],rA[_++]=(m+K)%256;break;case 2:for(E=cA=0;cA<H;E=cA+=1)m=i[c++],Q=(E-E%a)/a,R=I&&rA[(I-1)*H+Q*a+E%a],rA[_++]=(R+m)%256;break;case 3:for(E=tA=0;tA<H;E=tA+=1)m=i[c++],Q=(E-E%a)/a,K=E<a?0:rA[_-a],R=I&&rA[(I-1)*H+Q*a+E%a],rA[_++]=(m+Math.floor((K+R)/2))%256;break;case 4:for(E=fA=0;fA<H;E=fA+=1)m=i[c++],Q=(E-E%a)/a,K=E<a?0:rA[_-a],I===0?R=k=0:(R=rA[(I-1)*H+Q*a+E%a],k=Q&&rA[(I-1)*H+(Q-1)*a+E%a]),X=K+R-k,Y=Math.abs(X-K),O=Math.abs(X-R),G=Math.abs(X-k),$=Y<=O&&Y<=G?K:O<=G?R:k,rA[_++]=(m+$)%256;break;default:throw new Error("Invalid filter algorithm: "+i[c-1])}if(!U){var N=((w+I*F)*d.width+B)*a,P=I*H;for(E=0;E<dA;E+=1){for(var j=0;j<a;j+=1)l[N++]=rA[P++];N+=(h-1)*a}}I++}}return i=O5(i),d.interlaceMethod==1?(g(0,0,8,8),g(4,0,8,8),g(0,4,4,8),g(2,0,4,4),g(0,2,2,4),g(1,0,2,2),g(0,1,1,2)):g(0,0,1,1),l},r.prototype.decodePalette=function(){var i,a,l,c,d,g,B,w,h;for(l=this.palette,g=this.transparency.indexed||[],d=new Uint8Array((g.length||0)+l.length),c=0,i=0,a=B=0,w=l.length;B<w;a=B+=3)d[c++]=l[a],d[c++]=l[a+1],d[c++]=l[a+2],d[c++]=(h=g[i++])!=null?h:255;return d},r.prototype.copyToImageData=function(i,a){var l,c,d,g,B,w,h,F,m,_,Q;if(c=this.colors,m=null,l=this.hasAlphaChannel,this.palette.length&&(m=(Q=this._decodedPalette)!=null?Q:this._decodedPalette=this.decodePalette(),c=4,l=!0),F=(d=i.data||i).length,B=m||a,g=w=0,c===1)for(;g<F;)h=m?4*a[g/4]:w,_=B[h++],d[g++]=_,d[g++]=_,d[g++]=_,d[g++]=l?B[h++]:255,w=h;else for(;g<F;)h=m?4*a[g/4]:w,d[g++]=B[h++],d[g++]=B[h++],d[g++]=B[h++],d[g++]=l?B[h++]:255,w=h},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(XA)==="[object Window]"){try{A=XA.document.createElement("canvas"),t=A.getContext("2d")}catch{return!1}return!0}return!1};return n(),e=function(i){var a;if(n()===!0)return t.width=i.width,t.height=i.height,t.clearRect(0,0,i.width,i.height),t.putImageData(i,0,0),(a=new Image).src=A.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var a,l,c,d,g,B,w,h;if(this.animation){for(h=[],l=g=0,B=(w=this.animation.frames).length;g<B;l=++g)a=w[l],c=i.createImageData(a.width,a.height),d=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(c,d),a.imageData=c,h.push(a.image=e(c));return h}},r.prototype.renderFrame=function(i,a){var l,c,d;return l=(c=this.animation.frames)[a],d=c[a-1],a===0&&i.clearRect(0,0,this.width,this.height),(d!=null?d.disposeOp:void 0)===1?i.clearRect(d.xOffset,d.yOffset,d.width,d.height):(d!=null?d.disposeOp:void 0)===2&&i.putImageData(d.imageData,d.xOffset,d.yOffset),l.blendOp===0&&i.clearRect(l.xOffset,l.yOffset,l.width,l.height),i.drawImage(l.image,l.xOffset,l.yOffset)},r.prototype.animate=function(i){var a,l,c,d,g,B,w=this;return l=0,B=this.animation,d=B.numFrames,c=B.frames,g=B.numPlays,(a=function(){var h,F;if(h=l++%d,F=c[h],w.renderFrame(i,h),d>1&&l/d<g)return w.animation._timeout=setTimeout(a,F.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var a,l;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(l=a.createImageData(this.width,this.height),this.copyToImageData(l,this.decodePixels()),a.putImageData(l,0,0))},r}();/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 *//**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function aw(e){var A=0;if(e[A++]!==71||e[A++]!==73||e[A++]!==70||e[A++]!==56||(e[A++]+1&253)!=56||e[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[A++]|e[A++]<<8,r=e[A++]|e[A++]<<8,n=e[A++],i=n>>7,a=1<<(7&n)+1;e[A++],e[A++];var l=null,c=null;i&&(l=A,c=a,A+=3*a);var d=!0,g=[],B=0,w=null,h=0,F=null;for(this.width=t,this.height=r;d&&A<e.length;)switch(e[A++]){case 33:switch(e[A++]){case 255:if(e[A]!==11||e[A+1]==78&&e[A+2]==69&&e[A+3]==84&&e[A+4]==83&&e[A+5]==67&&e[A+6]==65&&e[A+7]==80&&e[A+8]==69&&e[A+9]==50&&e[A+10]==46&&e[A+11]==48&&e[A+12]==3&&e[A+13]==1&&e[A+16]==0)A+=14,F=e[A++]|e[A++]<<8,A++;else for(A+=12;;){if(!((I=e[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}break;case 249:if(e[A++]!==4||e[A+4]!==0)throw new Error("Invalid graphics extension block.");var m=e[A++];B=e[A++]|e[A++]<<8,w=e[A++],!(1&m)&&(w=null),h=m>>2&7,A++;break;case 254:for(;;){if(!((I=e[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[A-1].toString(16))}break;case 44:var _=e[A++]|e[A++]<<8,Q=e[A++]|e[A++]<<8,E=e[A++]|e[A++]<<8,K=e[A++]|e[A++]<<8,V=e[A++],X=V>>6&1,Y=1<<(7&V)+1,$=l,O=c,G=!1;V>>7&&(G=!0,$=A,O=Y,A+=3*Y);var rA=A;for(A++;;){var I;if(!((I=e[A++])>=0))throw Error("Invalid block size");if(I===0)break;A+=I}g.push({x:_,y:Q,width:E,height:K,has_local_palette:G,palette_offset:$,palette_size:O,data_offset:rA,data_length:A-rA,transparent_index:w,interlaced:!!X,delay:B,disposal:h});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[A-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return F},this.frameInfo=function(H){if(H<0||H>=g.length)throw new Error("Frame index out of range.");return g[H]},this.decodeAndBlitFrameBGRA=function(H,R){var k=this.frameInfo(H),oA=k.width*k.height,nA=new Uint8Array(oA);rh(e,k.data_offset,nA,oA);var cA=k.palette_offset,tA=k.transparent_index;tA===null&&(tA=256);var fA=k.width,dA=t-fA,bA=fA,U=4*(k.y*t+k.x),N=4*((k.y+k.height)*t+k.x),P=U,j=4*dA;k.interlaced===!0&&(j+=4*t*7);for(var Z=8,aA=0,lA=nA.length;aA<lA;++aA){var uA=nA[aA];if(bA===0&&(bA=fA,(P+=j)>=N&&(j=4*dA+4*t*(Z-1),P=U+(fA+dA)*(Z<<1),Z>>=1)),uA===tA)P+=4;else{var yA=e[cA+3*uA],FA=e[cA+3*uA+1],_A=e[cA+3*uA+2];R[P++]=_A,R[P++]=FA,R[P++]=yA,R[P++]=255}--bA}},this.decodeAndBlitFrameRGBA=function(H,R){var k=this.frameInfo(H),oA=k.width*k.height,nA=new Uint8Array(oA);rh(e,k.data_offset,nA,oA);var cA=k.palette_offset,tA=k.transparent_index;tA===null&&(tA=256);var fA=k.width,dA=t-fA,bA=fA,U=4*(k.y*t+k.x),N=4*((k.y+k.height)*t+k.x),P=U,j=4*dA;k.interlaced===!0&&(j+=4*t*7);for(var Z=8,aA=0,lA=nA.length;aA<lA;++aA){var uA=nA[aA];if(bA===0&&(bA=fA,(P+=j)>=N&&(j=4*dA+4*t*(Z-1),P=U+(fA+dA)*(Z<<1),Z>>=1)),uA===tA)P+=4;else{var yA=e[cA+3*uA],FA=e[cA+3*uA+1],_A=e[cA+3*uA+2];R[P++]=yA,R[P++]=FA,R[P++]=_A,R[P++]=255}--bA}}}function rh(e,A,t,r){for(var n=e[A++],i=1<<n,a=i+1,l=a+1,c=n+1,d=(1<<c)-1,g=0,B=0,w=0,h=e[A++],F=new Int32Array(4096),m=null;;){for(;g<16&&h!==0;)B|=e[A++]<<g,g+=8,h===1?h=e[A++]:--h;if(g<c)break;var _=B&d;if(B>>=c,g-=c,_!==i){if(_===a)break;for(var Q=_<l?_:m,E=0,K=Q;K>i;)K=F[K]>>8,++E;var V=K;if(w+E+(Q!==_?1:0)>r)return void Ue.log("Warning, gif stream longer than expected.");t[w++]=V;var X=w+=E;for(Q!==_&&(t[w++]=V),K=Q;E--;)K=F[K],t[--X]=255&K,K>>=8;m!==null&&l<4096&&(F[l++]=m<<8|V,l>=d+1&&c<12&&(++c,d=d<<1|1)),m=_}else l=a+1,d=(1<<(c=n+1))-1,m=null}return w!==r&&Ue.log("Warning, gif stream shorter than expected."),t}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function pc(e){var A,t,r,n,i,a=Math.floor,l=new Array(64),c=new Array(64),d=new Array(64),g=new Array(64),B=new Array(65535),w=new Array(65535),h=new Array(64),F=new Array(64),m=[],_=0,Q=7,E=new Array(64),K=new Array(64),V=new Array(64),X=new Array(256),Y=new Array(2048),$=[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],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],rA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[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],H=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],oA=[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 nA(U,N){for(var P=0,j=0,Z=new Array,aA=1;aA<=16;aA++){for(var lA=1;lA<=U[aA];lA++)Z[N[j]]=[],Z[N[j]][0]=P,Z[N[j]][1]=aA,j++,P++;P*=2}return Z}function cA(U){for(var N=U[0],P=U[1]-1;P>=0;)N&1<<P&&(_|=1<<Q),P--,--Q<0&&(_==255?(tA(255),tA(0)):tA(_),Q=7,_=0)}function tA(U){m.push(U)}function fA(U){tA(U>>8&255),tA(255&U)}function dA(U,N,P,j,Z){for(var aA,lA=Z[0],uA=Z[240],yA=function(QA,UA){var HA,IA,KA,ZA,ie,se,ue,Ce,zA,ae,SA=0;for(zA=0;zA<8;++zA){HA=QA[SA],IA=QA[SA+1],KA=QA[SA+2],ZA=QA[SA+3],ie=QA[SA+4],se=QA[SA+5],ue=QA[SA+6];var ut=HA+(Ce=QA[SA+7]),he=HA-Ce,tr=IA+ue,ye=IA-ue,_e=KA+se,mr=KA-se,ge=ZA+ie,In=ZA-ie,Ne=ut+ge,rr=ut-ge,Pr=tr+_e,De=tr-_e;QA[SA]=Ne+Pr,QA[SA+4]=Ne-Pr;var $A=.707106781*(De+rr);QA[SA+2]=rr+$A,QA[SA+6]=rr-$A;var Be=.382683433*((Ne=In+mr)-(De=ye+he)),_n=.5411961*Ne+Be,st=1.306562965*De+Be,Cr=.707106781*(Pr=mr+ye),Qr=he+Cr,GA=he-Cr;QA[SA+5]=GA+_n,QA[SA+3]=GA-_n,QA[SA+1]=Qr+st,QA[SA+7]=Qr-st,SA+=8}for(SA=0,zA=0;zA<8;++zA){HA=QA[SA],IA=QA[SA+8],KA=QA[SA+16],ZA=QA[SA+24],ie=QA[SA+32],se=QA[SA+40],ue=QA[SA+48];var nr=HA+(Ce=QA[SA+56]),Fr=HA-Ce,Lt=IA+ue,Ze=IA-ue,We=KA+se,Dt=KA-se,Ai=ZA+ie,Or=ZA-ie,ir=nr+Ai,sr=nr-Ai,ar=Lt+We,yr=Lt-We;QA[SA]=ir+ar,QA[SA+32]=ir-ar;var Vt=.707106781*(yr+sr);QA[SA+16]=sr+Vt,QA[SA+48]=sr-Vt;var br=.382683433*((ir=Or+Dt)-(yr=Ze+Fr)),Hn=.5411961*ir+br,ei=1.306562965*yr+br,ti=.707106781*(ar=Dt+Ze),ri=Fr+ti,ni=Fr-ti;QA[SA+40]=ni+Hn,QA[SA+24]=ni-Hn,QA[SA+8]=ri+ei,QA[SA+56]=ri-ei,SA++}for(zA=0;zA<64;++zA)ae=QA[zA]*UA[zA],h[zA]=ae>0?ae+.5|0:ae-.5|0;return h}(U,N),FA=0;FA<64;++FA)F[$[FA]]=yA[FA];var _A=F[0]-P;P=F[0],_A==0?cA(j[0]):(cA(j[w[aA=32767+_A]]),cA(B[aA]));for(var EA=63;EA>0&&F[EA]==0;)EA--;if(EA==0)return cA(lA),P;for(var JA,BA=1;BA<=EA;){for(var M=BA;F[BA]==0&&BA<=EA;)++BA;var te=BA-M;if(te>=16){JA=te>>4;for(var MA=1;MA<=JA;++MA)cA(uA);te&=15}aA=32767+F[BA],cA(Z[(te<<4)+w[aA]]),cA(B[aA]),BA++}return EA!=63&&cA(lA),P}function bA(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(N){for(var P=[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],j=0;j<64;j++){var Z=a((P[j]*N+50)/100);Z=Math.min(Math.max(Z,1),255),l[$[j]]=Z}for(var aA=[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],lA=0;lA<64;lA++){var uA=a((aA[lA]*N+50)/100);uA=Math.min(Math.max(uA,1),255),c[$[lA]]=uA}for(var yA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],FA=0,_A=0;_A<8;_A++)for(var EA=0;EA<8;EA++)d[FA]=1/(l[$[FA]]*yA[_A]*yA[EA]*8),g[FA]=1/(c[$[FA]]*yA[_A]*yA[EA]*8),FA++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,N){N&&bA(N),m=new Array,_=0,Q=7,fA(65496),fA(65504),fA(16),tA(74),tA(70),tA(73),tA(70),tA(0),tA(1),tA(1),tA(0),fA(1),fA(1),tA(0),tA(0),function(){fA(65499),fA(132),tA(0);for(var IA=0;IA<64;IA++)tA(l[IA]);tA(1);for(var KA=0;KA<64;KA++)tA(c[KA])}(),function(IA,KA){fA(65472),fA(17),tA(8),fA(KA),fA(IA),tA(3),tA(1),tA(17),tA(0),tA(2),tA(17),tA(1),tA(3),tA(17),tA(1)}(U.width,U.height),function(){fA(65476),fA(418),tA(0);for(var IA=0;IA<16;IA++)tA(O[IA+1]);for(var KA=0;KA<=11;KA++)tA(G[KA]);tA(16);for(var ZA=0;ZA<16;ZA++)tA(rA[ZA+1]);for(var ie=0;ie<=161;ie++)tA(I[ie]);tA(1);for(var se=0;se<16;se++)tA(H[se+1]);for(var ue=0;ue<=11;ue++)tA(R[ue]);tA(17);for(var Ce=0;Ce<16;Ce++)tA(k[Ce+1]);for(var zA=0;zA<=161;zA++)tA(oA[zA])}(),fA(65498),fA(12),tA(3),tA(1),tA(0),tA(2),tA(17),tA(3),tA(17),tA(0),tA(63),tA(0);var P=0,j=0,Z=0;_=0,Q=7,this.encode.displayName="_encode_";for(var aA,lA,uA,yA,FA,_A,EA,JA,BA,M=U.data,te=U.width,MA=U.height,QA=4*te,UA=0;UA<MA;){for(aA=0;aA<QA;){for(FA=QA*UA+aA,EA=-1,JA=0,BA=0;BA<64;BA++)_A=FA+(JA=BA>>3)*QA+(EA=4*(7&BA)),UA+JA>=MA&&(_A-=QA*(UA+1+JA-MA)),aA+EA>=QA&&(_A-=aA+EA-QA+4),lA=M[_A++],uA=M[_A++],yA=M[_A++],E[BA]=(Y[lA]+Y[uA+256>>0]+Y[yA+512>>0]>>16)-128,K[BA]=(Y[lA+768>>0]+Y[uA+1024>>0]+Y[yA+1280>>0]>>16)-128,V[BA]=(Y[lA+1280>>0]+Y[uA+1536>>0]+Y[yA+1792>>0]>>16)-128;P=dA(E,d,P,A,r),j=dA(K,g,j,t,n),Z=dA(V,g,Z,t,n),aA+=32}UA+=8}if(Q>=0){var HA=[];HA[1]=Q+1,HA[0]=(1<<Q+1)-1,cA(HA)}return fA(65497),new Uint8Array(m)},e=e||50,function(){for(var U=String.fromCharCode,N=0;N<256;N++)X[N]=U(N)}(),A=nA(O,G),t=nA(H,R),r=nA(rA,I),n=nA(k,oA),function(){for(var U=1,N=2,P=1;P<=15;P++){for(var j=U;j<N;j++)w[32767+j]=P,B[32767+j]=[],B[32767+j][1]=P,B[32767+j][0]=j;for(var Z=-(N-1);Z<=-U;Z++)w[32767+Z]=P,B[32767+Z]=[],B[32767+Z][1]=P,B[32767+Z][0]=N-1+Z;U<<=1,N<<=1}}(),function(){for(var U=0;U<256;U++)Y[U]=19595*U,Y[U+256>>0]=38470*U,Y[U+512>>0]=7471*U+32768,Y[U+768>>0]=-11059*U,Y[U+1024>>0]=-21709*U,Y[U+1280>>0]=32768*U+8421375,Y[U+1536>>0]=-27439*U,Y[U+1792>>0]=-5329*U}(),bA(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function dr(e,A){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function nh(e){function A(O){if(!O)throw Error("assert :P")}function t(O,G,rA){for(var I=0;4>I;I++)if(O[G+I]!=rA.charCodeAt(I))return!0;return!1}function r(O,G,rA,I,H){for(var R=0;R<H;R++)O[G+R]=rA[I+R]}function n(O,G,rA,I){for(var H=0;H<I;H++)O[G+H]=rA}function i(O){return new Int32Array(O)}function a(O,G){for(var rA=[],I=0;I<O;I++)rA.push(new G);return rA}function l(O,G){var rA=[];return function I(H,R,k){for(var oA=k[R],nA=0;nA<oA&&(H.push(k.length>R+1?[]:new G),!(k.length<R+1));nA++)I(H[nA],R+1,k)}(rA,0,O),rA}var c=function(){var O=this;function G(s,o){for(var f=1<<o-1>>>0;s&f;)f>>>=1;return f?(s&f-1)+f:s}function rA(s,o,f,p,v){A(!(p%f));do s[o+(p-=f)]=v;while(0<p)}function I(s,o,f,p,v){if(A(2328>=v),512>=v)var y=i(512);else if((y=i(v))==null)return 0;return function(b,L,x,S,W,iA){var sA,AA,vA=L,hA=1<<x,J=i(16),z=i(16);for(A(W!=0),A(S!=null),A(b!=null),A(0<x),AA=0;AA<W;++AA){if(15<S[AA])return 0;++J[S[AA]]}if(J[0]==W)return 0;for(z[1]=0,sA=1;15>sA;++sA){if(J[sA]>1<<sA)return 0;z[sA+1]=z[sA]+J[sA]}for(AA=0;AA<W;++AA)sA=S[AA],0<S[AA]&&(iA[z[sA]++]=AA);if(z[15]==1)return(S=new H).g=0,S.value=iA[0],rA(b,vA,1,hA,S),hA;var pA,mA=-1,wA=hA-1,TA=0,LA=1,VA=1,xA=1<<x;for(AA=0,sA=1,W=2;sA<=x;++sA,W<<=1){if(LA+=VA<<=1,0>(VA-=J[sA]))return 0;for(;0<J[sA];--J[sA])(S=new H).g=sA,S.value=iA[AA++],rA(b,vA+TA,W,xA,S),TA=G(TA,sA)}for(sA=x+1,W=2;15>=sA;++sA,W<<=1){if(LA+=VA<<=1,0>(VA-=J[sA]))return 0;for(;0<J[sA];--J[sA]){if(S=new H,(TA&wA)!=mA){for(vA+=xA,pA=1<<(mA=sA)-x;15>mA&&!(0>=(pA-=J[mA]));)++mA,pA<<=1;hA+=xA=1<<(pA=mA-x),b[L+(mA=TA&wA)].g=pA+x,b[L+mA].value=vA-L-mA}S.g=sA-x,S.value=iA[AA++],rA(b,vA+(TA>>x),W,xA,S),TA=G(TA,sA)}}return LA!=2*z[15]-1?0:hA}(s,o,f,p,v,y)}function H(){this.value=this.g=0}function R(){this.value=this.g=0}function k(){this.G=a(5,H),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(at,R)}function oA(s,o,f,p){A(s!=null),A(o!=null),A(2147483648>p),s.Ca=254,s.I=0,s.b=-8,s.Ka=0,s.oa=o,s.pa=f,s.Jd=o,s.Yc=f+p,s.Zc=4<=p?f+p-4+1:f,aA(s)}function nA(s,o){for(var f=0;0<o--;)f|=uA(s,128)<<o;return f}function cA(s,o){var f=nA(s,o);return lA(s)?-f:f}function tA(s,o,f,p){var v,y=0;for(A(s!=null),A(o!=null),A(4294967288>p),s.Sb=p,s.Ra=0,s.u=0,s.h=0,4<p&&(p=4),v=0;v<p;++v)y+=o[f+v]<<8*v;s.Ra=y,s.bb=p,s.oa=o,s.pa=f}function fA(s){for(;8<=s.u&&s.bb<s.Sb;)s.Ra>>>=8,s.Ra+=s.oa[s.pa+s.bb]<<vi-8>>>0,++s.bb,s.u-=8;P(s)&&(s.h=1,s.u=0)}function dA(s,o){if(A(0<=o),!s.h&&o<=wi){var f=N(s)&pi[o];return s.u+=o,fA(s),f}return s.h=1,s.u=0}function bA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function N(s){return s.Ra>>>(s.u&vi-1)>>>0}function P(s){return A(s.bb<=s.Sb),s.h||s.bb==s.Sb&&s.u>vi}function j(s,o){s.u=o,s.h=P(s)}function Z(s){s.u>=gs&&(A(s.u>=gs),fA(s))}function aA(s){A(s!=null&&s.oa!=null),s.pa<s.Zc?(s.I=(s.oa[s.pa++]|s.I<<8)>>>0,s.b+=8):(A(s!=null&&s.oa!=null),s.pa<s.Yc?(s.b+=8,s.I=s.oa[s.pa++]|s.I<<8):s.Ka?s.b=0:(s.I<<=8,s.b+=8,s.Ka=1))}function lA(s){return nA(s,1)}function uA(s,o){var f=s.Ca;0>s.b&&aA(s);var p=s.b,v=f*o>>>8,y=(s.I>>>p>v)+0;for(y?(f-=v,s.I-=v+1<<p>>>0):f=v+1,p=f,v=0;256<=p;)v+=8,p>>=8;return p=7^v+xt[p],s.b-=p,s.Ca=(f<<p)-1,y}function yA(s,o,f){s[o+0]=f>>24&255,s[o+1]=f>>16&255,s[o+2]=f>>8&255,s[o+3]=f>>0&255}function FA(s,o){return s[o+0]<<0|s[o+1]<<8}function _A(s,o){return FA(s,o)|s[o+2]<<16}function EA(s,o){return FA(s,o)|FA(s,o+2)<<16}function JA(s,o){var f=1<<o;return A(s!=null),A(0<o),s.X=i(f),s.X==null?0:(s.Mb=32-o,s.Xa=o,1)}function BA(s,o){A(s!=null),A(o!=null),A(s.Xa==o.Xa),r(o.X,0,s.X,0,1<<o.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function te(s,o,f,p){A(f!=null),A(p!=null);var v=f[0],y=p[0];return v==0&&(v=(s*y+o/2)/o),y==0&&(y=(o*v+s/2)/s),0>=v||0>=y?0:(f[0]=v,p[0]=y,1)}function MA(s,o){return s+(1<<o)-1>>>o}function QA(s,o){return((4278255360&s)+(4278255360&o)>>>0&4278255360)+((16711935&s)+(16711935&o)>>>0&16711935)>>>0}function UA(s,o){O[o]=function(f,p,v,y,b,L,x){var S;for(S=0;S<b;++S){var W=O[s](L[x+S-1],v,y+S);L[x+S]=QA(f[p+S],W)}}}function HA(){this.ud=this.hd=this.jd=0}function IA(s,o){return((4278124286&(s^o))>>>1)+(s&o)>>>0}function KA(s){return 0<=s&&256>s?s:0>s?0:255<s?255:void 0}function ZA(s,o){return KA(s+(s-o+.5>>1))}function ie(s,o,f){return Math.abs(o-f)-Math.abs(s-f)}function se(s,o,f,p,v,y,b){for(p=y[b-1],f=0;f<v;++f)y[b+f]=p=QA(s[o+f],p)}function ue(s,o,f,p,v){var y;for(y=0;y<f;++y){var b=s[o+y],L=b>>8&255,x=16711935&(x=(x=16711935&b)+((L<<16)+L));p[v+y]=(4278255360&b)+x>>>0}}function Ce(s,o){o.jd=s>>0&255,o.hd=s>>8&255,o.ud=s>>16&255}function zA(s,o,f,p,v,y){var b;for(b=0;b<p;++b){var L=o[f+b],x=L>>>8,S=L,W=255&(W=(W=L>>>16)+((s.jd<<24>>24)*(x<<24>>24)>>>5));S=255&(S=(S=S+((s.hd<<24>>24)*(x<<24>>24)>>>5))+((s.ud<<24>>24)*(W<<24>>24)>>>5)),v[y+b]=(4278255360&L)+(W<<16)+S}}function ae(s,o,f,p,v){O[o]=function(y,b,L,x,S,W,iA,sA,AA){for(x=iA;x<sA;++x)for(iA=0;iA<AA;++iA)S[W++]=v(L[p(y[b++])])},O[s]=function(y,b,L,x,S,W,iA){var sA=8>>y.b,AA=y.Ea,vA=y.K[0],hA=y.w;if(8>sA)for(y=(1<<y.b)-1,hA=(1<<sA)-1;b<L;++b){var J,z=0;for(J=0;J<AA;++J)J&y||(z=p(x[S++])),W[iA++]=v(vA[z&hA]),z>>=sA}else O["VP8LMapColor"+f](x,S,vA,hA,W,iA,b,L,AA)}}function SA(s,o,f,p,v){for(f=o+f;o<f;){var y=s[o++];p[v++]=y>>16&255,p[v++]=y>>8&255,p[v++]=y>>0&255}}function ut(s,o,f,p,v){for(f=o+f;o<f;){var y=s[o++];p[v++]=y>>16&255,p[v++]=y>>8&255,p[v++]=y>>0&255,p[v++]=y>>24&255}}function he(s,o,f,p,v){for(f=o+f;o<f;){var y=(b=s[o++])>>16&240|b>>12&15,b=b>>0&240|b>>28&15;p[v++]=y,p[v++]=b}}function tr(s,o,f,p,v){for(f=o+f;o<f;){var y=(b=s[o++])>>16&248|b>>13&7,b=b>>5&224|b>>3&31;p[v++]=y,p[v++]=b}}function ye(s,o,f,p,v){for(f=o+f;o<f;){var y=s[o++];p[v++]=y>>0&255,p[v++]=y>>8&255,p[v++]=y>>16&255}}function _e(s,o,f,p,v,y){if(y==0)for(f=o+f;o<f;)yA(p,((y=s[o++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),v+=32;else r(p,v,s,o,f)}function mr(s,o){O[o][0]=O[s+"0"],O[o][1]=O[s+"1"],O[o][2]=O[s+"2"],O[o][3]=O[s+"3"],O[o][4]=O[s+"4"],O[o][5]=O[s+"5"],O[o][6]=O[s+"6"],O[o][7]=O[s+"7"],O[o][8]=O[s+"8"],O[o][9]=O[s+"9"],O[o][10]=O[s+"10"],O[o][11]=O[s+"11"],O[o][12]=O[s+"12"],O[o][13]=O[s+"13"],O[o][14]=O[s+"0"],O[o][15]=O[s+"0"]}function ge(s){return s==Ul||s==Ll||s==xa||s==El}function In(){this.eb=[],this.size=this.A=this.fb=0}function Ne(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function rr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new In,this.f.kb=new Ne,this.sd=null}function Pr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function De(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function $A(s){return alert("todo:WebPSamplerProcessPlane"),s.T}function Be(s,o){var f=s.T,p=o.ba.f.RGBA,v=p.eb,y=p.fb+s.ka*p.A,b=Xt[o.ba.S],L=s.y,x=s.O,S=s.f,W=s.N,iA=s.ea,sA=s.W,AA=o.cc,vA=o.dc,hA=o.Mc,J=o.Nc,z=s.ka,pA=s.ka+s.T,mA=s.U,wA=mA+1>>1;for(z==0?b(L,x,null,null,S,W,iA,sA,S,W,iA,sA,v,y,null,null,mA):(b(o.ec,o.fc,L,x,AA,vA,hA,J,S,W,iA,sA,v,y-p.A,v,y,mA),++f);z+2<pA;z+=2)AA=S,vA=W,hA=iA,J=sA,W+=s.Rc,sA+=s.Rc,y+=2*p.A,b(L,(x+=2*s.fa)-s.fa,L,x,AA,vA,hA,J,S,W,iA,sA,v,y-p.A,v,y,mA);return x+=s.fa,s.j+pA<s.o?(r(o.ec,o.fc,L,x,mA),r(o.cc,o.dc,S,W,wA),r(o.Mc,o.Nc,iA,sA,wA),f--):1&pA||b(L,x,null,null,S,W,iA,sA,S,W,iA,sA,v,y+p.A,null,null,mA),f}function _n(s,o,f){var p=s.F,v=[s.J];if(p!=null){var y=s.U,b=o.ba.S,L=b==Ea||b==xa;o=o.ba.f.RGBA;var x=[0],S=s.ka;x[0]=s.T,s.Kb&&(S==0?--x[0]:(--S,v[0]-=s.width),s.j+s.ka+s.T==s.o&&(x[0]=s.o-s.j-S));var W=o.eb;S=o.fb+S*o.A,s=Ee(p,v[0],s.width,y,x,W,S+(L?0:3),o.A),A(f==x),s&&ge(b)&&Wt(W,S,L,y,x,o.A)}return 0}function st(s){var o=s.ma,f=o.ba.S,p=11>f,v=f==Ua||f==La||f==Ea||f==bl||f==12||ge(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!hs(o.Oa,s,v?11:12))return 0;if(v&&ge(f)&&CA(),s.da)alert("todo:use_scaling");else{if(p){if(o.Ib=$A,s.Kb){if(f=s.U+1>>1,o.memory=i(s.U+2*f),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+s.U,o.Mc=o.cc,o.Nc=o.dc+f,o.Ib=Be,CA()}}else alert("todo:EmitYUV");v&&(o.Jb=_n,p&&eA())}if(p&&!wu){for(s=0;256>s;++s)Zd[s]=89858*(s-128)+_a>>Ia,e1[s]=-22014*(s-128)+_a,A1[s]=-45773*(s-128),$d[s]=113618*(s-128)+_a>>Ia;for(s=Qs;s<_l;++s)o=76283*(s-16)+_a>>Ia,t1[s-Qs]=Tt(o,255),r1[s-Qs]=Tt(o+8>>4,15);wu=1}return 1}function Cr(s){var o=s.ma,f=s.U,p=s.T;return A(!(1&s.ka)),0>=f||0>=p?0:(f=o.Ib(s,o),o.Jb!=null&&o.Jb(s,o,f),o.Dc+=f,1)}function Qr(s){s.ma.memory=null}function GA(s,o,f,p){return dA(s,8)!=47?0:(o[0]=dA(s,14)+1,f[0]=dA(s,14)+1,p[0]=dA(s,1),dA(s,3)!=0?0:!s.h)}function nr(s,o){if(4>s)return s+1;var f=s-2>>1;return(2+(1&s)<<f)+dA(o,f)+1}function Fr(s,o){return 120<o?o-120:1<=(f=((f=Od[o-1])>>4)*s+(8-(15&f)))?f:1;var f}function Lt(s,o,f){var p=N(f),v=s[o+=255&p].g-8;return 0<v&&(j(f,f.u+8),p=N(f),o+=s[o].value,o+=p&(1<<v)-1),j(f,f.u+s[o].g),s[o].value}function Ze(s,o,f){return f.g+=s.g,f.value+=s.value<<o>>>0,A(8>=f.g),s.g}function We(s,o,f){var p=s.xc;return A((o=p==0?0:s.vc[s.md*(f>>p)+(o>>p)])<s.Wb),s.Ya[o]}function Dt(s,o,f,p){var v=s.ab,y=s.c*o,b=s.C;o=b+o;var L=f,x=p;for(p=s.Ta,f=s.Ua;0<v--;){var S=s.gc[v],W=b,iA=o,sA=L,AA=x,vA=(x=p,L=f,S.Ea);switch(A(W<iA),A(iA<=S.nc),S.hc){case 2:va(sA,AA,(iA-W)*vA,x,L);break;case 0:var hA=W,J=iA,z=x,pA=L,mA=(xA=S).Ea;hA==0&&(Fl(sA,AA,null,null,1,z,pA),se(sA,AA+1,0,0,mA-1,z,pA+1),AA+=mA,pA+=mA,++hA);for(var wA=1<<xA.b,TA=wA-1,LA=MA(mA,xA.b),VA=xA.K,xA=xA.w+(hA>>xA.b)*LA;hA<J;){var de=VA,we=xA,fe=1;for(Bs(sA,AA,z,pA-mA,1,z,pA);fe<mA;){var oe=(fe&~TA)+wA;oe>mA&&(oe=mA),(0,nn[de[we++]>>8&15])(sA,AA+ +fe,z,pA+fe-mA,oe-fe,z,pA+fe),fe=oe}AA+=mA,pA+=mA,++hA&TA||(xA+=LA)}iA!=S.nc&&r(x,L-vA,x,L+(iA-W-1)*vA,vA);break;case 1:for(vA=sA,J=AA,mA=(sA=S.Ea)-(pA=sA&~(z=(AA=1<<S.b)-1)),hA=MA(sA,S.b),wA=S.K,S=S.w+(W>>S.b)*hA;W<iA;){for(TA=wA,LA=S,VA=new HA,xA=J+pA,de=J+sA;J<xA;)Ce(TA[LA++],VA),Pn(VA,vA,J,AA,x,L),J+=AA,L+=AA;J<de&&(Ce(TA[LA++],VA),Pn(VA,vA,J,mA,x,L),J+=mA,L+=mA),++W&z||(S+=hA)}break;case 3:if(sA==x&&AA==L&&0<S.b){for(J=x,sA=vA=L+(iA-W)*vA-(pA=(iA-W)*MA(S.Ea,S.b)),AA=x,z=L,hA=[],pA=(mA=pA)-1;0<=pA;--pA)hA[pA]=AA[z+pA];for(pA=mA-1;0<=pA;--pA)J[sA+pA]=hA[pA];jt(S,W,iA,x,vA,x,L)}else jt(S,W,iA,sA,AA,x,L)}L=p,x=f}x!=f&&r(p,f,L,x,y)}function Ai(s,o){var f=s.V,p=s.Ba+s.c*s.C,v=o-s.C;if(A(o<=s.l.o),A(16>=v),0<v){var y=s.l,b=s.Ta,L=s.Ua,x=y.width;if(Dt(s,v,f,p),v=L=[L],A((f=s.C)<(p=o)),A(y.v<y.va),p>y.o&&(p=y.o),f<y.j){var S=y.j-f;f=y.j,v[0]+=S*x}if(f>=p?f=0:(v[0]+=4*y.v,y.ka=f-y.j,y.U=y.va-y.v,y.T=p-f,f=1),f){if(L=L[0],11>(f=s.ca).S){var W=f.f.RGBA,iA=(p=f.S,v=y.U,y=y.T,S=W.eb,W.A),sA=y;for(W=W.fb+s.Ma*W.A;0<sA--;){var AA=b,vA=L,hA=v,J=S,z=W;switch(p){case ba:It(AA,vA,hA,J,z);break;case Ua:Qt(AA,vA,hA,J,z);break;case Ul:Qt(AA,vA,hA,J,z),Wt(J,z,0,hA,1,0);break;case lu:Rr(AA,vA,hA,J,z);break;case La:_e(AA,vA,hA,J,z,1);break;case Ll:_e(AA,vA,hA,J,z,1),Wt(J,z,0,hA,1,0);break;case Ea:_e(AA,vA,hA,J,z,0);break;case xa:_e(AA,vA,hA,J,z,0),Wt(J,z,1,hA,1,0);break;case bl:sn(AA,vA,hA,J,z);break;case El:sn(AA,vA,hA,J,z),Le(J,z,hA,1,0);break;case cu:Kr(AA,vA,hA,J,z);break;default:A(0)}L+=x,W+=iA}s.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");A(s.Ma<=f.height)}}s.C=o,A(s.C<=s.i)}function Or(s){var o;if(0<s.ua)return 0;for(o=0;o<s.Wb;++o){var f=s.Ya[o].G,p=s.Ya[o].H;if(0<f[1][p[1]+0].g||0<f[2][p[2]+0].g||0<f[3][p[3]+0].g)return 0}return 1}function ir(s,o,f,p,v,y){if(s.Z!=0){var b=s.qd,L=s.rd;for(A(cn[s.Z]!=null);o<f;++o)cn[s.Z](b,L,p,v,p,v,y),b=p,L=v,v+=y;s.qd=b,s.rd=L}}function sr(s,o){var f=s.l.ma,p=f.Z==0||f.Z==1?s.l.j:s.C;if(p=s.C<p?p:s.C,A(o<=s.l.o),o>p){var v=s.l.width,y=f.ca,b=f.tb+v*p,L=s.V,x=s.Ba+s.c*p,S=s.gc;A(s.ab==1),A(S[0].hc==3),ma(S[0],p,o,L,x,y,b),ir(f,p,o,y,b,v)}s.C=s.Ma=o}function ar(s,o,f,p,v,y,b){var L=s.$/p,x=s.$%p,S=s.m,W=s.s,iA=f+s.$,sA=iA;v=f+p*v;var AA=f+p*y,vA=280+W.ua,hA=s.Pb?L:16777216,J=0<W.ua?W.Wa:null,z=W.wc,pA=iA<AA?We(W,x,L):null;A(s.C<y),A(AA<=v);var mA=!1;A:for(;;){for(;mA||iA<AA;){var wA=0;if(L>=hA){var TA=iA-f;A((hA=s).Pb),hA.wd=hA.m,hA.xd=TA,0<hA.s.ua&&BA(hA.s.Wa,hA.s.vb),hA=L+Md}if(x&z||(pA=We(W,x,L)),A(pA!=null),pA.Qb&&(o[iA]=pA.qb,mA=!0),!mA)if(Z(S),pA.jc){wA=S,TA=o;var LA=iA,VA=pA.pd[N(wA)&at-1];A(pA.jc),256>VA.g?(j(wA,wA.u+VA.g),TA[LA]=VA.value,wA=0):(j(wA,wA.u+VA.g-256),A(256<=VA.value),wA=VA.value),wA==0&&(mA=!0)}else wA=Lt(pA.G[0],pA.H[0],S);if(S.h)break;if(mA||256>wA){if(!mA)if(pA.nd)o[iA]=(pA.qb|wA<<8)>>>0;else{if(Z(S),mA=Lt(pA.G[1],pA.H[1],S),Z(S),TA=Lt(pA.G[2],pA.H[2],S),LA=Lt(pA.G[3],pA.H[3],S),S.h)break;o[iA]=(LA<<24|mA<<16|wA<<8|TA)>>>0}if(mA=!1,++iA,++x>=p&&(x=0,++L,b!=null&&L<=y&&!(L%16)&&b(s,L),J!=null))for(;sA<iA;)wA=o[sA++],J.X[(506832829*wA&4294967295)>>>J.Mb]=wA}else if(280>wA){if(wA=nr(wA-256,S),TA=Lt(pA.G[4],pA.H[4],S),Z(S),TA=Fr(p,TA=nr(TA,S)),S.h)break;if(iA-f<TA||v-iA<wA)break A;for(LA=0;LA<wA;++LA)o[iA+LA]=o[iA+LA-TA];for(iA+=wA,x+=wA;x>=p;)x-=p,++L,b!=null&&L<=y&&!(L%16)&&b(s,L);if(A(iA<=v),x&z&&(pA=We(W,x,L)),J!=null)for(;sA<iA;)wA=o[sA++],J.X[(506832829*wA&4294967295)>>>J.Mb]=wA}else{if(!(wA<vA))break A;for(mA=wA-280,A(J!=null);sA<iA;)wA=o[sA++],J.X[(506832829*wA&4294967295)>>>J.Mb]=wA;wA=iA,A(!(mA>>>(TA=J).Xa)),o[wA]=TA.X[mA],mA=!0}mA||A(S.h==P(S))}if(s.Pb&&S.h&&iA<v)A(s.m.h),s.a=5,s.m=s.wd,s.$=s.xd,0<s.s.ua&&BA(s.s.vb,s.s.Wa);else{if(S.h)break A;b!=null&&b(s,L>y?y:L),s.a=0,s.$=iA-f}return 1}return s.a=3,0}function yr(s){A(s!=null),s.vc=null,s.yc=null,s.Ya=null;var o=s.Wa;o!=null&&(o.X=null),s.vb=null,A(s!=null)}function Vt(){var s=new Ql;return s==null?null:(s.a=0,s.xb=hu,mr("Predictor","VP8LPredictors"),mr("Predictor","VP8LPredictors_C"),mr("PredictorAdd","VP8LPredictorsAdd"),mr("PredictorAdd","VP8LPredictorsAdd_C"),va=ue,Pn=zA,It=SA,Qt=ut,sn=he,Kr=tr,Rr=ye,O.VP8LMapColor32b=mi,O.VP8LMapColor8b=Ca,s)}function br(s,o,f,p,v){var y=1,b=[s],L=[o],x=p.m,S=p.s,W=null,iA=0;A:for(;;){if(f)for(;y&&dA(x,1);){var sA=b,AA=L,vA=p,hA=1,J=vA.m,z=vA.gc[vA.ab],pA=dA(J,2);if(vA.Oc&1<<pA)y=0;else{switch(vA.Oc|=1<<pA,z.hc=pA,z.Ea=sA[0],z.nc=AA[0],z.K=[null],++vA.ab,A(4>=vA.ab),pA){case 0:case 1:z.b=dA(J,3)+2,hA=br(MA(z.Ea,z.b),MA(z.nc,z.b),0,vA,z.K),z.K=z.K[0];break;case 3:var mA,wA=dA(J,8)+1,TA=16<wA?0:4<wA?1:2<wA?2:3;if(sA[0]=MA(z.Ea,TA),z.b=TA,mA=hA=br(wA,1,0,vA,z.K)){var LA,VA=wA,xA=z,de=1<<(8>>xA.b),we=i(de);if(we==null)mA=0;else{var fe=xA.K[0],oe=xA.w;for(we[0]=xA.K[0][0],LA=1;LA<1*VA;++LA)we[LA]=QA(fe[oe+LA],we[LA-1]);for(;LA<4*de;++LA)we[LA]=0;xA.K[0]=null,xA.K[0]=we,mA=1}}hA=mA;break;case 2:break;default:A(0)}y=hA}}if(b=b[0],L=L[0],y&&dA(x,1)&&!(y=1<=(iA=dA(x,4))&&11>=iA)){p.a=3;break A}var be;if(be=y)e:{var Qe,ne,Xe,_t=p,ze=b,Ht=L,ve=iA,Ot=f,kt=_t.m,tt=_t.s,ot=[null],yt=1,zt=0,xr=kd[ve];t:for(;;){if(Ot&&dA(kt,1)){var rt=dA(kt,3)+2,qr=MA(ze,rt),Rn=MA(Ht,rt),bi=qr*Rn;if(!br(qr,Rn,0,_t,ot))break t;for(ot=ot[0],tt.xc=rt,Qe=0;Qe<bi;++Qe){var un=ot[Qe]>>8&65535;ot[Qe]=un,un>=yt&&(yt=un+1)}}if(kt.h)break t;for(ne=0;5>ne;++ne){var Pe=uu[ne];!ne&&0<ve&&(Pe+=1<<ve),zt<Pe&&(zt=Pe)}var Hl=a(yt*xr,H),Cu=yt,Qu=a(Cu,k);if(Qu==null)var Sa=null;else A(65536>=Cu),Sa=Qu;var Fs=i(zt);if(Sa==null||Fs==null||Hl==null){_t.a=1;break t}var Na=Hl;for(Qe=Xe=0;Qe<yt;++Qe){var fr=Sa[Qe],Ui=fr.G,Li=fr.H,Fu=0,Da=1,yu=0;for(ne=0;5>ne;++ne){Pe=uu[ne],Ui[ne]=Na,Li[ne]=Xe,!ne&&0<ve&&(Pe+=1<<ve);n:{var Ta,Sl=Pe,Pa=_t,ys=Fs,s1=Na,a1=Xe,Nl=0,fn=Pa.m,o1=dA(fn,1);if(n(ys,0,0,Sl),o1){var l1=dA(fn,1)+1,c1=dA(fn,1),bu=dA(fn,c1==0?1:8);ys[bu]=1,l1==2&&(ys[bu=dA(fn,8)]=1);var Oa=1}else{var Uu=i(19),Lu=dA(fn,4)+4;if(19<Lu){Pa.a=3;var ka=0;break n}for(Ta=0;Ta<Lu;++Ta)Uu[Pd[Ta]]=dA(fn,3);var Dl=void 0,bs=void 0,Eu=Pa,u1=Uu,Ma=Sl,xu=ys,Tl=0,hn=Eu.m,Iu=8,_u=a(128,H);r:for(;I(_u,0,7,u1,19);){if(dA(hn,1)){var f1=2+2*dA(hn,3);if((Dl=2+dA(hn,f1))>Ma)break r}else Dl=Ma;for(bs=0;bs<Ma&&Dl--;){Z(hn);var Hu=_u[0+(127&N(hn))];j(hn,hn.u+Hu.g);var Ei=Hu.value;if(16>Ei)xu[bs++]=Ei,Ei!=0&&(Iu=Ei);else{var h1=Ei==16,Su=Ei-16,d1=Dd[Su],Nu=dA(hn,Nd[Su])+d1;if(bs+Nu>Ma)break r;for(var g1=h1?Iu:0;0<Nu--;)xu[bs++]=g1}}Tl=1;break r}Tl||(Eu.a=3),Oa=Tl}(Oa=Oa&&!fn.h)&&(Nl=I(s1,a1,8,ys,Sl)),Oa&&Nl!=0?ka=Nl:(Pa.a=3,ka=0)}if(ka==0)break t;if(Da&&Td[ne]==1&&(Da=Na[Xe].g==0),Fu+=Na[Xe].g,Xe+=ka,3>=ne){var Us,Pl=Fs[0];for(Us=1;Us<Pe;++Us)Fs[Us]>Pl&&(Pl=Fs[Us]);yu+=Pl}}if(fr.nd=Da,fr.Qb=0,Da&&(fr.qb=(Ui[3][Li[3]+0].value<<24|Ui[1][Li[1]+0].value<<16|Ui[2][Li[2]+0].value)>>>0,Fu==0&&256>Ui[0][Li[0]+0].value&&(fr.Qb=1,fr.qb+=Ui[0][Li[0]+0].value<<8)),fr.jc=!fr.Qb&&6>yu,fr.jc){var Ka,Wr=fr;for(Ka=0;Ka<at;++Ka){var dn=Ka,gn=Wr.pd[dn],Ra=Wr.G[0][Wr.H[0]+dn];256<=Ra.value?(gn.g=Ra.g+256,gn.value=Ra.value):(gn.g=0,gn.value=0,dn>>=Ze(Ra,8,gn),dn>>=Ze(Wr.G[1][Wr.H[1]+dn],16,gn),dn>>=Ze(Wr.G[2][Wr.H[2]+dn],0,gn),Ze(Wr.G[3][Wr.H[3]+dn],24,gn))}}}tt.vc=ot,tt.Wb=yt,tt.Ya=Sa,tt.yc=Hl,be=1;break e}be=0}if(!(y=be)){p.a=3;break A}if(0<iA){if(S.ua=1<<iA,!JA(S.Wa,iA)){p.a=1,y=0;break A}}else S.ua=0;var Ol=p,Du=b,B1=L,kl=Ol.s,Ml=kl.xc;if(Ol.c=Du,Ol.i=B1,kl.md=MA(Du,Ml),kl.wc=Ml==0?-1:(1<<Ml)-1,f){p.xb=Wd;break A}if((W=i(b*L))==null){p.a=1,y=0;break A}y=(y=ar(p,W,0,b,L,L,null))&&!x.h;break A}return y?(v!=null?v[0]=W:(A(W==null),A(f)),p.$=0,f||yr(S)):yr(S),y}function Hn(s,o){var f=s.c*s.i,p=f+o+16*o;return A(s.c<=o),s.V=i(p),s.V==null?(s.Ta=null,s.Ua=0,s.a=1,0):(s.Ta=s.V,s.Ua=s.Ba+f+o,1)}function ei(s,o){var f=s.C,p=o-f,v=s.V,y=s.Ba+s.c*f;for(A(o<=s.l.o);0<p;){var b=16<p?16:p,L=s.l.ma,x=s.l.width,S=x*b,W=L.ca,iA=L.tb+x*f,sA=s.Ta,AA=s.Ua;Dt(s,b,v,y),Ke(sA,AA,W,iA,S),ir(L,f,f+b,W,iA,x),p-=b,v+=b*s.c,f+=b}A(f==o),s.C=s.Ma=o}function ti(){this.ub=this.yd=this.td=this.Rb=0}function ri(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ni(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function $s(){this.Yb=function(){var s=[];return function o(f,p,v){for(var y=v[p],b=0;b<y&&(f.push(v.length>p+1?[]:0),!(v.length<p+1));b++)o(f[b],p+1,v)}(s,0,[3,11]),s}()}function $o(){this.jb=i(3),this.Wc=l([4,8],$s),this.Xc=l([4,17],$s)}function Al(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function ii(){this.ld=this.La=this.dd=this.tc=0}function Aa(){this.Na=this.la=0}function el(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Yi(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function tl(){this.uc=this.M=this.Nb=0,this.wa=Array(new ii),this.Y=0,this.ya=Array(new Yi),this.aa=0,this.l=new si}function ea(){this.y=i(16),this.f=i(8),this.ea=i(8)}function rl(){this.cb=this.a=0,this.sc="",this.m=new bA,this.Od=new ti,this.Kc=new ri,this.ed=new Al,this.Qa=new ni,this.Ic=this.$c=this.Aa=0,this.D=new tl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,bA),this.ia=0,this.pb=a(4,el),this.Pa=new $o,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ea),this.Hd=0,this.rb=Array(new Aa),this.sb=0,this.wa=Array(new ii),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Yi),this.L=this.aa=0,this.gd=l([4,2],ii),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function si(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function nl(){var s=new rl;return s!=null&&(s.a=0,s.sc="OK",s.cb=0,s.Xb=0,Cs||(Cs=na)),s}function ke(s,o,f){return s.a==0&&(s.a=o,s.sc=f,s.cb=0),0}function ta(s,o,f){return 3<=f&&s[o+0]==157&&s[o+1]==1&&s[o+2]==42}function ra(s,o){if(s==null)return 0;if(s.a=0,s.sc="OK",o==null)return ke(s,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,p=o.w,v=o.ha;if(4>v)return ke(s,7,"Truncated header.");var y=f[p+0]|f[p+1]<<8|f[p+2]<<16,b=s.Od;if(b.Rb=!(1&y),b.td=y>>1&7,b.yd=y>>4&1,b.ub=y>>5,3<b.td)return ke(s,3,"Incorrect keyframe parameters.");if(!b.yd)return ke(s,4,"Frame not displayable.");p+=3,v-=3;var L=s.Kc;if(b.Rb){if(7>v)return ke(s,7,"cannot parse picture header");if(!ta(f,p,v))return ke(s,3,"Bad code word");L.c=16383&(f[p+4]<<8|f[p+3]),L.Td=f[p+4]>>6,L.i=16383&(f[p+6]<<8|f[p+5]),L.Ud=f[p+6]>>6,p+=7,v-=7,s.za=L.c+15>>4,s.Ub=L.i+15>>4,o.width=L.c,o.height=L.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,n((y=s.Pa).jb,0,255,y.jb.length),A((y=s.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,n(y.Zb,0,0,y.Zb.length),n(y.Lb,0,0,y.Lb)}if(b.ub>v)return ke(s,7,"bad partition length");oA(y=s.m,f,p,b.ub),p+=b.ub,v-=b.ub,b.Rb&&(L.Ld=lA(y),L.Kd=lA(y)),L=s.Qa;var x,S=s.Pa;if(A(y!=null),A(L!=null),L.Cb=lA(y),L.Cb){if(L.Bb=lA(y),lA(y)){for(L.Fb=lA(y),x=0;4>x;++x)L.Zb[x]=lA(y)?cA(y,7):0;for(x=0;4>x;++x)L.Lb[x]=lA(y)?cA(y,6):0}if(L.Bb)for(x=0;3>x;++x)S.jb[x]=lA(y)?nA(y,8):255}else L.Bb=0;if(y.Ka)return ke(s,3,"cannot parse segment header");if((L=s.ed).zd=lA(y),L.Tb=nA(y,6),L.wb=nA(y,3),L.Pc=lA(y),L.Pc&&lA(y)){for(S=0;4>S;++S)lA(y)&&(L.vd[S]=cA(y,6));for(S=0;4>S;++S)lA(y)&&(L.od[S]=cA(y,6))}if(s.L=L.Tb==0?0:L.zd?1:2,y.Ka)return ke(s,3,"cannot parse filter header");var W=v;if(v=x=p,p=x+W,L=W,s.Xb=(1<<nA(s.m,2))-1,W<3*(S=s.Xb))f=7;else{for(x+=3*S,L-=3*S,W=0;W<S;++W){var iA=f[v+0]|f[v+1]<<8|f[v+2]<<16;iA>L&&(iA=L),oA(s.Jc[+W],f,x,iA),x+=iA,L-=iA,v+=3}oA(s.Jc[+S],f,x,L),f=x<p?0:5}if(f!=0)return ke(s,f,"cannot parse partitions");for(f=nA(x=s.m,7),v=lA(x)?cA(x,4):0,p=lA(x)?cA(x,4):0,L=lA(x)?cA(x,4):0,S=lA(x)?cA(x,4):0,x=lA(x)?cA(x,4):0,W=s.Qa,iA=0;4>iA;++iA){if(W.Cb){var sA=W.Zb[iA];W.Fb||(sA+=f)}else{if(0<iA){s.pb[iA]=s.pb[0];continue}sA=f}var AA=s.pb[iA];AA.Sc[0]=xl[Tt(sA+v,127)],AA.Sc[1]=Il[Tt(sA+0,127)],AA.Eb[0]=2*xl[Tt(sA+p,127)],AA.Eb[1]=101581*Il[Tt(sA+L,127)]>>16,8>AA.Eb[1]&&(AA.Eb[1]=8),AA.Qc[0]=xl[Tt(sA+S,117)],AA.Qc[1]=Il[Tt(sA+x,127)],AA.lc=sA+x}if(!b.Rb)return ke(s,4,"Not a key frame.");for(lA(y),b=s.Pa,f=0;4>f;++f){for(v=0;8>v;++v)for(p=0;3>p;++p)for(L=0;11>L;++L)S=uA(y,Gd[f][v][p][L])?nA(y,8):Vd[f][v][p][L],b.Wc[f][v].Yb[p][L]=S;for(v=0;17>v;++v)b.Xc[f][v]=b.Wc[f][qd[v]]}return s.kc=lA(y),s.kc&&(s.Bd=nA(y,8)),s.cb=1}function na(s,o,f,p,v,y,b){var L=o[v].Yb[f];for(f=0;16>v;++v){if(!uA(s,L[f+0]))return v;for(;!uA(s,L[f+1]);)if(L=o[++v].Yb[0],f=0,v==16)return 16;var x=o[v+1].Yb;if(uA(s,L[f+2])){var S=s,W=0;if(uA(S,(sA=L)[(iA=f)+3]))if(uA(S,sA[iA+6])){for(L=0,iA=2*(W=uA(S,sA[iA+8]))+(sA=uA(S,sA[iA+9+W])),W=0,sA=Kd[iA];sA[L];++L)W+=W+uA(S,sA[L]);W+=3+(8<<iA)}else uA(S,sA[iA+7])?(W=7+2*uA(S,165),W+=uA(S,145)):W=5+uA(S,159);else W=uA(S,sA[iA+4])?3+uA(S,sA[iA+5]):2;L=x[2]}else W=1,L=x[1];x=b+Rd[v],0>(S=s).b&&aA(S);var iA,sA=S.b,AA=(iA=S.Ca>>1)-(S.I>>sA)>>31;--S.b,S.Ca+=AA,S.Ca|=1,S.I-=(iA+1&AA)<<sA,y[x]=((W^AA)-AA)*p[(0<v)+0]}return 16}function Zi(s){var o=s.rb[s.sb-1];o.la=0,o.Na=0,n(s.zc,0,0,s.zc.length),s.ja=0}function il(s,o){if(s==null)return 0;if(o==null)return ke(s,2,"NULL VP8Io parameter in VP8Decode().");if(!s.cb&&!ra(s,o))return 0;if(A(s.cb),o.ac==null||o.ac(o)){o.ob&&(s.L=0);var f=Ha[s.L];if(s.L==2?(s.yb=0,s.zb=0):(s.yb=o.v-f>>4,s.zb=o.j-f>>4,0>s.yb&&(s.yb=0),0>s.zb&&(s.zb=0)),s.Va=o.o+15+f>>4,s.Hb=o.va+15+f>>4,s.Hb>s.za&&(s.Hb=s.za),s.Va>s.Ub&&(s.Va=s.Ub),0<s.L){var p=s.ed;for(f=0;4>f;++f){var v;if(s.Qa.Cb){var y=s.Qa.Lb[f];s.Qa.Fb||(y+=p.Tb)}else y=p.Tb;for(v=0;1>=v;++v){var b=s.gd[f][v],L=y;if(p.Pc&&(L+=p.vd[0],v&&(L+=p.od[0])),0<(L=0>L?0:63<L?63:L)){var x=L;0<p.wb&&(x=4<p.wb?x>>2:x>>1)>9-p.wb&&(x=9-p.wb),1>x&&(x=1),b.dd=x,b.tc=2*L+x,b.ld=40<=L?2:15<=L?1:0}else b.tc=0;b.La=v}}}f=0}else ke(s,6,"Frame setup failed"),f=s.a;if(f=f==0){if(f){s.$c=0,0<s.Aa||(s.Ic=i1);A:{f=s.Ic,p=4*(x=s.za);var S=32*x,W=x+1,iA=0<s.L?x*(0<s.Aa?2:1):0,sA=(s.Aa==2?2:1)*x;if((b=p+832+(v=3*(16*f+Ha[s.L])/2*S)+(y=s.Fa!=null&&0<s.Fa.length?s.Kc.c*s.Kc.i:0))!=b)f=0;else{if(b>s.Vb){if(s.Vb=0,s.Ec=i(b),s.Fc=0,s.Ec==null){f=ke(s,1,"no memory during frame initialization.");break A}s.Vb=b}b=s.Ec,L=s.Fc,s.Ac=b,s.Bc=L,L+=p,s.Gd=a(S,ea),s.Hd=0,s.rb=a(W+1,Aa),s.sb=1,s.wa=iA?a(iA,ii):null,s.Y=0,s.D.Nb=0,s.D.wa=s.wa,s.D.Y=s.Y,0<s.Aa&&(s.D.Y+=x),A(!0),s.oc=b,s.pc=L,L+=832,s.ya=a(sA,Yi),s.aa=0,s.D.ya=s.ya,s.D.aa=s.aa,s.Aa==2&&(s.D.aa+=x),s.R=16*x,s.B=8*x,x=(S=Ha[s.L])*s.R,S=S/2*s.B,s.sa=b,s.ta=L+x,s.qa=s.sa,s.ra=s.ta+16*f*s.R+S,s.Ha=s.qa,s.Ia=s.ra+8*f*s.B+S,s.$c=0,L+=v,s.mb=y?b:null,s.nb=y?L:null,A(L+y<=s.Fc+s.Vb),Zi(s),n(s.Ac,s.Bc,0,p),f=1}}if(f){if(o.ka=0,o.y=s.sa,o.O=s.ta,o.f=s.qa,o.N=s.ra,o.ea=s.Ha,o.Vd=s.Ia,o.fa=s.R,o.Rc=s.B,o.F=null,o.J=0,!Fa){for(f=-255;255>=f;++f)$e[255+f]=0>f?-f:f;for(f=-1020;1020>=f;++f)jr[1020+f]=-128>f?-128:127<f?127:f;for(f=-112;112>=f;++f)ms[112+f]=-16>f?-16:15<f?15:f;for(f=-255;510>=f;++f)yi[255+f]=0>f?0:255<f?255:f;Fa=1}Ci=ol,Vr=sl,ps=sa,Ft=al,Gt=aa,Me=ia,Qi=ns,Qa=Dn,ws=Cl,On=is,kn=ml,an=fi,Mn=ss,Fi=Ba,Kn=ga,on=Lr,vs=Mr,qt=vl,ur[0]=Ur,ur[1]=ll,ur[2]=hl,ur[3]=dl,ur[4]=ca,ur[5]=ci,ur[6]=ua,ur[7]=es,ur[8]=Bl,ur[9]=gl,ln[0]=oa,ln[1]=ul,ln[2]=kr,ln[3]=oi,ln[4]=ft,ln[5]=fl,ln[6]=la,Gr[0]=en,Gr[1]=cl,Gr[2]=pl,Gr[3]=ts,Gr[4]=Nn,Gr[5]=wl,Gr[6]=rs,f=1}else f=0}f&&(f=function(AA,vA){for(AA.M=0;AA.M<AA.Va;++AA.M){var hA,J=AA.Jc[AA.M&AA.Xb],z=AA.m,pA=AA;for(hA=0;hA<pA.za;++hA){var mA=z,wA=pA,TA=wA.Ac,LA=wA.Bc+4*hA,VA=wA.zc,xA=wA.ya[wA.aa+hA];if(wA.Qa.Bb?xA.$b=uA(mA,wA.Pa.jb[0])?2+uA(mA,wA.Pa.jb[2]):uA(mA,wA.Pa.jb[1]):xA.$b=0,wA.kc&&(xA.Ad=uA(mA,wA.Bd)),xA.Za=!uA(mA,145)+0,xA.Za){var de=xA.Ob,we=0;for(wA=0;4>wA;++wA){var fe,oe=VA[0+wA];for(fe=0;4>fe;++fe){oe=jd[TA[LA+fe]][oe];for(var be=fu[uA(mA,oe[0])];0<be;)be=fu[2*be+uA(mA,oe[be])];oe=-be,TA[LA+fe]=oe}r(de,we,TA,LA,4),we+=4,VA[0+wA]=oe}}else oe=uA(mA,156)?uA(mA,128)?1:3:uA(mA,163)?2:0,xA.Ob[0]=oe,n(TA,LA,oe,4),n(VA,0,oe,4);xA.Dd=uA(mA,142)?uA(mA,114)?uA(mA,183)?1:3:2:0}if(pA.m.Ka)return ke(AA,7,"Premature end-of-partition0 encountered.");for(;AA.ja<AA.za;++AA.ja){if(pA=J,mA=(z=AA).rb[z.sb-1],TA=z.rb[z.sb+z.ja],hA=z.ya[z.aa+z.ja],LA=z.kc?hA.Ad:0)mA.la=TA.la=0,hA.Za||(mA.Na=TA.Na=0),hA.Hc=0,hA.Gc=0,hA.ia=0;else{var Qe,ne;if(mA=TA,TA=pA,LA=z.Pa.Xc,VA=z.ya[z.aa+z.ja],xA=z.pb[VA.$b],wA=VA.ad,de=0,we=z.rb[z.sb-1],oe=fe=0,n(wA,de,0,384),VA.Za)var Xe=0,_t=LA[3];else{be=i(16);var ze=mA.Na+we.Na;if(ze=Cs(TA,LA[1],ze,xA.Eb,0,be,0),mA.Na=we.Na=(0<ze)+0,1<ze)Ci(be,0,wA,de);else{var Ht=be[0]+3>>3;for(be=0;256>be;be+=16)wA[de+be]=Ht}Xe=1,_t=LA[0]}var ve=15&mA.la,Ot=15&we.la;for(be=0;4>be;++be){var kt=1&Ot;for(Ht=ne=0;4>Ht;++Ht)ve=ve>>1|(kt=(ze=Cs(TA,_t,ze=kt+(1&ve),xA.Sc,Xe,wA,de))>Xe)<<7,ne=ne<<2|(3<ze?3:1<ze?2:wA[de+0]!=0),de+=16;ve>>=4,Ot=Ot>>1|kt<<7,fe=(fe<<8|ne)>>>0}for(_t=ve,Xe=Ot>>4,Qe=0;4>Qe;Qe+=2){for(ne=0,ve=mA.la>>4+Qe,Ot=we.la>>4+Qe,be=0;2>be;++be){for(kt=1&Ot,Ht=0;2>Ht;++Ht)ze=kt+(1&ve),ve=ve>>1|(kt=0<(ze=Cs(TA,LA[2],ze,xA.Qc,0,wA,de)))<<3,ne=ne<<2|(3<ze?3:1<ze?2:wA[de+0]!=0),de+=16;ve>>=2,Ot=Ot>>1|kt<<5}oe|=ne<<4*Qe,_t|=ve<<4<<Qe,Xe|=(240&Ot)<<Qe}mA.la=_t,we.la=Xe,VA.Hc=fe,VA.Gc=oe,VA.ia=43690&oe?0:xA.ia,LA=!(fe|oe)}if(0<z.L&&(z.wa[z.Y+z.ja]=z.gd[hA.$b][hA.Za],z.wa[z.Y+z.ja].La|=!LA),pA.Ka)return ke(AA,7,"Premature end-of-file encountered.")}if(Zi(AA),z=vA,pA=1,hA=(J=AA).D,mA=0<J.L&&J.M>=J.zb&&J.M<=J.Va,J.Aa==0)A:{if(hA.M=J.M,hA.uc=mA,fs(J,hA),pA=1,hA=(ne=J.D).Nb,mA=(oe=Ha[J.L])*J.R,TA=oe/2*J.B,be=16*hA*J.R,Ht=8*hA*J.B,LA=J.sa,VA=J.ta-mA+be,xA=J.qa,wA=J.ra-TA+Ht,de=J.Ha,we=J.Ia-TA+Ht,Ot=(ve=ne.M)==0,fe=ve>=J.Va-1,J.Aa==2&&fs(J,ne),ne.uc)for(kt=(ze=J).D.M,A(ze.D.uc),ne=ze.yb;ne<ze.Hb;++ne){Xe=ne,_t=kt;var tt=(ot=(Pe=ze).D).Nb;Qe=Pe.R;var ot=ot.wa[ot.Y+Xe],yt=Pe.sa,zt=Pe.ta+16*tt*Qe+16*Xe,xr=ot.dd,rt=ot.tc;if(rt!=0)if(A(3<=rt),Pe.L==1)0<Xe&&on(yt,zt,Qe,rt+4),ot.La&&qt(yt,zt,Qe,rt),0<_t&&Kn(yt,zt,Qe,rt+4),ot.La&&vs(yt,zt,Qe,rt);else{var qr=Pe.B,Rn=Pe.qa,bi=Pe.ra+8*tt*qr+8*Xe,un=Pe.Ha,Pe=Pe.Ia+8*tt*qr+8*Xe;tt=ot.ld,0<Xe&&(Qa(yt,zt,Qe,rt+4,xr,tt),On(Rn,bi,un,Pe,qr,rt+4,xr,tt)),ot.La&&(an(yt,zt,Qe,rt,xr,tt),Fi(Rn,bi,un,Pe,qr,rt,xr,tt)),0<_t&&(Qi(yt,zt,Qe,rt+4,xr,tt),ws(Rn,bi,un,Pe,qr,rt+4,xr,tt)),ot.La&&(kn(yt,zt,Qe,rt,xr,tt),Mn(Rn,bi,un,Pe,qr,rt,xr,tt))}}if(J.ia&&alert("todo:DitherRow"),z.put!=null){if(ne=16*ve,ve=16*(ve+1),Ot?(z.y=J.sa,z.O=J.ta+be,z.f=J.qa,z.N=J.ra+Ht,z.ea=J.Ha,z.W=J.Ia+Ht):(ne-=oe,z.y=LA,z.O=VA,z.f=xA,z.N=wA,z.ea=de,z.W=we),fe||(ve-=oe),ve>z.o&&(ve=z.o),z.F=null,z.J=null,J.Fa!=null&&0<J.Fa.length&&ne<ve&&(z.J=cs(J,z,ne,ve-ne),z.F=J.mb,z.F==null&&z.F.length==0)){pA=ke(J,3,"Could not decode alpha data.");break A}ne<z.j&&(oe=z.j-ne,ne=z.j,A(!(1&oe)),z.O+=J.R*oe,z.N+=J.B*(oe>>1),z.W+=J.B*(oe>>1),z.F!=null&&(z.J+=z.width*oe)),ne<ve&&(z.O+=z.v,z.N+=z.v>>1,z.W+=z.v>>1,z.F!=null&&(z.J+=z.v),z.ka=ne-z.j,z.U=z.va-z.v,z.T=ve-ne,pA=z.put(z))}hA+1!=J.Ic||fe||(r(J.sa,J.ta-mA,LA,VA+16*J.R,mA),r(J.qa,J.ra-TA,xA,wA+8*J.B,TA),r(J.Ha,J.Ia-TA,de,we+8*J.B,TA))}if(!pA)return ke(AA,6,"Output aborted.")}return 1}(s,o)),o.bc!=null&&o.bc(o),f&=1}return f?(s.cb=0,f):0}function or(s,o,f,p,v){v=s[o+f+32*p]+(v>>3),s[o+f+32*p]=-256&v?0>v?0:255:v}function ai(s,o,f,p,v,y){or(s,o,0,f,p+v),or(s,o,1,f,p+y),or(s,o,2,f,p-y),or(s,o,3,f,p-v)}function Et(s){return(20091*s>>16)+s}function $i(s,o,f,p){var v,y=0,b=i(16);for(v=0;4>v;++v){var L=s[o+0]+s[o+8],x=s[o+0]-s[o+8],S=(35468*s[o+4]>>16)-Et(s[o+12]),W=Et(s[o+4])+(35468*s[o+12]>>16);b[y+0]=L+W,b[y+1]=x+S,b[y+2]=x-S,b[y+3]=L-W,y+=4,o++}for(v=y=0;4>v;++v)L=(s=b[y+0]+4)+b[y+8],x=s-b[y+8],S=(35468*b[y+4]>>16)-Et(b[y+12]),or(f,p,0,0,L+(W=Et(b[y+4])+(35468*b[y+12]>>16))),or(f,p,1,0,x+S),or(f,p,2,0,x-S),or(f,p,3,0,L-W),y++,p+=32}function ia(s,o,f,p){var v=s[o+0]+4,y=35468*s[o+4]>>16,b=Et(s[o+4]),L=35468*s[o+1]>>16;ai(f,p,0,v+b,s=Et(s[o+1]),L),ai(f,p,1,v+y,s,L),ai(f,p,2,v-y,s,L),ai(f,p,3,v-b,s,L)}function sl(s,o,f,p,v){$i(s,o,f,p),v&&$i(s,o+16,f,p+4)}function sa(s,o,f,p){Vr(s,o+0,f,p,1),Vr(s,o+32,f,p+128,1)}function al(s,o,f,p){var v;for(s=s[o+0]+4,v=0;4>v;++v)for(o=0;4>o;++o)or(f,p,o,v,s)}function aa(s,o,f,p){s[o+0]&&Ft(s,o+0,f,p),s[o+16]&&Ft(s,o+16,f,p+4),s[o+32]&&Ft(s,o+32,f,p+128),s[o+48]&&Ft(s,o+48,f,p+128+4)}function ol(s,o,f,p){var v,y=i(16);for(v=0;4>v;++v){var b=s[o+0+v]+s[o+12+v],L=s[o+4+v]+s[o+8+v],x=s[o+4+v]-s[o+8+v],S=s[o+0+v]-s[o+12+v];y[0+v]=b+L,y[8+v]=b-L,y[4+v]=S+x,y[12+v]=S-x}for(v=0;4>v;++v)b=(s=y[0+4*v]+3)+y[3+4*v],L=y[1+4*v]+y[2+4*v],x=y[1+4*v]-y[2+4*v],S=s-y[3+4*v],f[p+0]=b+L>>3,f[p+16]=S+x>>3,f[p+32]=b-L>>3,f[p+48]=S-x>>3,p+=64}function As(s,o,f){var p,v=o-32,y=Pt,b=255-s[v-1];for(p=0;p<f;++p){var L,x=y,S=b+s[o-1];for(L=0;L<f;++L)s[o+L]=x[S+s[v+L]];o+=32}}function ll(s,o){As(s,o,4)}function cl(s,o){As(s,o,8)}function ul(s,o){As(s,o,16)}function kr(s,o){var f;for(f=0;16>f;++f)r(s,o+32*f,s,o-32,16)}function oi(s,o){var f;for(f=16;0<f;--f)n(s,o,s[o-1],16),o+=32}function li(s,o,f){var p;for(p=0;16>p;++p)n(o,f+32*p,s,16)}function oa(s,o){var f,p=16;for(f=0;16>f;++f)p+=s[o-1+32*f]+s[o+f-32];li(p>>5,s,o)}function ft(s,o){var f,p=8;for(f=0;16>f;++f)p+=s[o-1+32*f];li(p>>4,s,o)}function fl(s,o){var f,p=8;for(f=0;16>f;++f)p+=s[o+f-32];li(p>>4,s,o)}function la(s,o){li(128,s,o)}function YA(s,o,f){return s+2*o+f+2>>2}function hl(s,o){var f,p=o-32;for(p=new Uint8Array([YA(s[p-1],s[p+0],s[p+1]),YA(s[p+0],s[p+1],s[p+2]),YA(s[p+1],s[p+2],s[p+3]),YA(s[p+2],s[p+3],s[p+4])]),f=0;4>f;++f)r(s,o+32*f,p,0,p.length)}function dl(s,o){var f=s[o-1],p=s[o-1+32],v=s[o-1+64],y=s[o-1+96];yA(s,o+0,16843009*YA(s[o-1-32],f,p)),yA(s,o+32,16843009*YA(f,p,v)),yA(s,o+64,16843009*YA(p,v,y)),yA(s,o+96,16843009*YA(v,y,y))}function Ur(s,o){var f,p=4;for(f=0;4>f;++f)p+=s[o+f-32]+s[o-1+32*f];for(p>>=3,f=0;4>f;++f)n(s,o+32*f,p,4)}function ca(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1-32],b=s[o+0-32],L=s[o+1-32],x=s[o+2-32],S=s[o+3-32];s[o+0+96]=YA(p,v,s[o-1+96]),s[o+1+96]=s[o+0+64]=YA(f,p,v),s[o+2+96]=s[o+1+64]=s[o+0+32]=YA(y,f,p),s[o+3+96]=s[o+2+64]=s[o+1+32]=s[o+0+0]=YA(b,y,f),s[o+3+64]=s[o+2+32]=s[o+1+0]=YA(L,b,y),s[o+3+32]=s[o+2+0]=YA(x,L,b),s[o+3+0]=YA(S,x,L)}function ua(s,o){var f=s[o+1-32],p=s[o+2-32],v=s[o+3-32],y=s[o+4-32],b=s[o+5-32],L=s[o+6-32],x=s[o+7-32];s[o+0+0]=YA(s[o+0-32],f,p),s[o+1+0]=s[o+0+32]=YA(f,p,v),s[o+2+0]=s[o+1+32]=s[o+0+64]=YA(p,v,y),s[o+3+0]=s[o+2+32]=s[o+1+64]=s[o+0+96]=YA(v,y,b),s[o+3+32]=s[o+2+64]=s[o+1+96]=YA(y,b,L),s[o+3+64]=s[o+2+96]=YA(b,L,x),s[o+3+96]=YA(L,x,x)}function ci(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1-32],b=s[o+0-32],L=s[o+1-32],x=s[o+2-32],S=s[o+3-32];s[o+0+0]=s[o+1+64]=y+b+1>>1,s[o+1+0]=s[o+2+64]=b+L+1>>1,s[o+2+0]=s[o+3+64]=L+x+1>>1,s[o+3+0]=x+S+1>>1,s[o+0+96]=YA(v,p,f),s[o+0+64]=YA(p,f,y),s[o+0+32]=s[o+1+96]=YA(f,y,b),s[o+1+32]=s[o+2+96]=YA(y,b,L),s[o+2+32]=s[o+3+96]=YA(b,L,x),s[o+3+32]=YA(L,x,S)}function es(s,o){var f=s[o+0-32],p=s[o+1-32],v=s[o+2-32],y=s[o+3-32],b=s[o+4-32],L=s[o+5-32],x=s[o+6-32],S=s[o+7-32];s[o+0+0]=f+p+1>>1,s[o+1+0]=s[o+0+64]=p+v+1>>1,s[o+2+0]=s[o+1+64]=v+y+1>>1,s[o+3+0]=s[o+2+64]=y+b+1>>1,s[o+0+32]=YA(f,p,v),s[o+1+32]=s[o+0+96]=YA(p,v,y),s[o+2+32]=s[o+1+96]=YA(v,y,b),s[o+3+32]=s[o+2+96]=YA(y,b,L),s[o+3+64]=YA(b,L,x),s[o+3+96]=YA(L,x,S)}function gl(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1+96];s[o+0+0]=f+p+1>>1,s[o+2+0]=s[o+0+32]=p+v+1>>1,s[o+2+32]=s[o+0+64]=v+y+1>>1,s[o+1+0]=YA(f,p,v),s[o+3+0]=s[o+1+32]=YA(p,v,y),s[o+3+32]=s[o+1+64]=YA(v,y,y),s[o+3+64]=s[o+2+64]=s[o+0+96]=s[o+1+96]=s[o+2+96]=s[o+3+96]=y}function Bl(s,o){var f=s[o-1+0],p=s[o-1+32],v=s[o-1+64],y=s[o-1+96],b=s[o-1-32],L=s[o+0-32],x=s[o+1-32],S=s[o+2-32];s[o+0+0]=s[o+2+32]=f+b+1>>1,s[o+0+32]=s[o+2+64]=p+f+1>>1,s[o+0+64]=s[o+2+96]=v+p+1>>1,s[o+0+96]=y+v+1>>1,s[o+3+0]=YA(L,x,S),s[o+2+0]=YA(b,L,x),s[o+1+0]=s[o+3+32]=YA(f,b,L),s[o+1+32]=s[o+3+64]=YA(p,f,b),s[o+1+64]=s[o+3+96]=YA(v,p,f),s[o+1+96]=YA(y,v,p)}function pl(s,o){var f;for(f=0;8>f;++f)r(s,o+32*f,s,o-32,8)}function ts(s,o){var f;for(f=0;8>f;++f)n(s,o,s[o-1],8),o+=32}function Sn(s,o,f){var p;for(p=0;8>p;++p)n(o,f+32*p,s,8)}function en(s,o){var f,p=8;for(f=0;8>f;++f)p+=s[o+f-32]+s[o-1+32*f];Sn(p>>4,s,o)}function wl(s,o){var f,p=4;for(f=0;8>f;++f)p+=s[o+f-32];Sn(p>>3,s,o)}function Nn(s,o){var f,p=4;for(f=0;8>f;++f)p+=s[o-1+32*f];Sn(p>>3,s,o)}function rs(s,o){Sn(128,s,o)}function ui(s,o,f){var p=s[o-f],v=s[o+0],y=3*(v-p)+yl[1020+s[o-2*f]-s[o+f]],b=ya[112+(y+4>>3)];s[o-f]=Pt[255+p+ya[112+(y+3>>3)]],s[o+0]=Pt[255+v-b]}function fa(s,o,f,p){var v=s[o+0],y=s[o+f];return Jt[255+s[o-2*f]-s[o-f]]>p||Jt[255+y-v]>p}function ha(s,o,f,p){return 4*Jt[255+s[o-f]-s[o+0]]+Jt[255+s[o-2*f]-s[o+f]]<=p}function da(s,o,f,p,v){var y=s[o-3*f],b=s[o-2*f],L=s[o-f],x=s[o+0],S=s[o+f],W=s[o+2*f],iA=s[o+3*f];return 4*Jt[255+L-x]+Jt[255+b-S]>p?0:Jt[255+s[o-4*f]-y]<=v&&Jt[255+y-b]<=v&&Jt[255+b-L]<=v&&Jt[255+iA-W]<=v&&Jt[255+W-S]<=v&&Jt[255+S-x]<=v}function ga(s,o,f,p){var v=2*p+1;for(p=0;16>p;++p)ha(s,o+p,f,v)&&ui(s,o+p,f)}function Lr(s,o,f,p){var v=2*p+1;for(p=0;16>p;++p)ha(s,o+p*f,1,v)&&ui(s,o+p*f,1)}function Mr(s,o,f,p){var v;for(v=3;0<v;--v)ga(s,o+=4*f,f,p)}function vl(s,o,f,p){var v;for(v=3;0<v;--v)Lr(s,o+=4,f,p)}function tn(s,o,f,p,v,y,b,L){for(y=2*y+1;0<v--;){if(da(s,o,f,y,b))if(fa(s,o,f,L))ui(s,o,f);else{var x=s,S=o,W=f,iA=x[S-2*W],sA=x[S-W],AA=x[S+0],vA=x[S+W],hA=x[S+2*W],J=27*(pA=yl[1020+3*(AA-sA)+yl[1020+iA-vA]])+63>>7,z=18*pA+63>>7,pA=9*pA+63>>7;x[S-3*W]=Pt[255+x[S-3*W]+pA],x[S-2*W]=Pt[255+iA+z],x[S-W]=Pt[255+sA+J],x[S+0]=Pt[255+AA-J],x[S+W]=Pt[255+vA-z],x[S+2*W]=Pt[255+hA-pA]}o+=p}}function lr(s,o,f,p,v,y,b,L){for(y=2*y+1;0<v--;){if(da(s,o,f,y,b))if(fa(s,o,f,L))ui(s,o,f);else{var x=s,S=o,W=f,iA=x[S-W],sA=x[S+0],AA=x[S+W],vA=ya[112+((hA=3*(sA-iA))+4>>3)],hA=ya[112+(hA+3>>3)],J=vA+1>>1;x[S-2*W]=Pt[255+x[S-2*W]+J],x[S-W]=Pt[255+iA+hA],x[S+0]=Pt[255+sA-vA],x[S+W]=Pt[255+AA-J]}o+=p}}function ns(s,o,f,p,v,y){tn(s,o,f,1,16,p,v,y)}function Dn(s,o,f,p,v,y){tn(s,o,1,f,16,p,v,y)}function ml(s,o,f,p,v,y){var b;for(b=3;0<b;--b)lr(s,o+=4*f,f,1,16,p,v,y)}function fi(s,o,f,p,v,y){var b;for(b=3;0<b;--b)lr(s,o+=4,1,f,16,p,v,y)}function Cl(s,o,f,p,v,y,b,L){tn(s,o,v,1,8,y,b,L),tn(f,p,v,1,8,y,b,L)}function is(s,o,f,p,v,y,b,L){tn(s,o,1,v,8,y,b,L),tn(f,p,1,v,8,y,b,L)}function ss(s,o,f,p,v,y,b,L){lr(s,o+4*v,v,1,8,y,b,L),lr(f,p+4*v,v,1,8,y,b,L)}function Ba(s,o,f,p,v,y,b,L){lr(s,o+4,1,v,8,y,b,L),lr(f,p+4,1,v,8,y,b,L)}function hi(){this.ba=new rr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new De,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function as(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function os(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function pa(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new k,this.yc=new H}function Ql(){this.xb=this.a=0,this.l=new si,this.ca=new rr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new pa,this.ab=0,this.gc=a(4,os),this.Oc=0}function di(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new si,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Tn(s,o,f,p,v,y,b){for(s=s==null?0:s[o+0],o=0;o<b;++o)v[y+o]=s+f[p+o]&255,s=v[y+o]}function ls(s,o,f,p,v,y,b){var L;if(s==null)Tn(null,null,f,p,v,y,b);else for(L=0;L<b;++L)v[y+L]=s[o+L]+f[p+L]&255}function rn(s,o,f,p,v,y,b){if(s==null)Tn(null,null,f,p,v,y,b);else{var L,x=s[o+0],S=x,W=x;for(L=0;L<b;++L)S=W+(x=s[o+L])-S,W=f[p+L]+(-256&S?0>S?0:255:S)&255,S=x,v[y+L]=W}}function cs(s,o,f,p){var v=o.width,y=o.o;if(A(s!=null&&o!=null),0>f||0>=p||f+p>y)return null;if(!s.Cc){if(s.ga==null){var b;if(s.ga=new di,(b=s.ga==null)||(b=o.width*o.o,A(s.Gb.length==0),s.Gb=i(b),s.Uc=0,s.Gb==null?b=0:(s.mb=s.Gb,s.nb=s.Uc,s.rc=null,b=1),b=!b),!b){b=s.ga;var L=s.Fa,x=s.P,S=s.qc,W=s.mb,iA=s.nb,sA=x+1,AA=S-1,vA=b.l;if(A(L!=null&&W!=null&&o!=null),cn[0]=null,cn[1]=Tn,cn[2]=ls,cn[3]=rn,b.ca=W,b.tb=iA,b.c=o.width,b.i=o.height,A(0<b.c&&0<b.i),1>=S)o=0;else if(b.$a=L[x+0]>>0&3,b.Z=L[x+0]>>2&3,b.Lc=L[x+0]>>4&3,x=L[x+0]>>6&3,0>b.$a||1<b.$a||4<=b.Z||1<b.Lc||x)o=0;else if(vA.put=Cr,vA.ac=st,vA.bc=Qr,vA.ma=b,vA.width=o.width,vA.height=o.height,vA.Da=o.Da,vA.v=o.v,vA.va=o.va,vA.j=o.j,vA.o=o.o,b.$a)A:{A(b.$a==1),o=Vt();e:for(;;){if(o==null){o=0;break A}if(A(b!=null),b.mc=o,o.c=b.c,o.i=b.i,o.l=b.l,o.l.ma=b,o.l.width=b.c,o.l.height=b.i,o.a=0,tA(o.m,L,sA,AA),!br(b.c,b.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&Or(o.s)?(b.ic=1,L=o.c*o.i,o.Ta=null,o.Ua=0,o.V=i(L),o.Ba=0,o.V==null?(o.a=1,o=0):o=1):(b.ic=0,o=Hn(o,b.c)),!o))break e;o=1;break A}b.mc=null,o=0}else o=AA>=b.c*b.i;b=!o}if(b)return null;s.ga.Lc!=1?s.Ga=0:p=y-f}A(s.ga!=null),A(f+p<=y);A:{if(o=(L=s.ga).c,y=L.l.o,L.$a==0){if(sA=s.rc,AA=s.Vc,vA=s.Fa,x=s.P+1+f*o,S=s.mb,W=s.nb+f*o,A(x<=s.P+s.qc),L.Z!=0)for(A(cn[L.Z]!=null),b=0;b<p;++b)cn[L.Z](sA,AA,vA,x,S,W,o),sA=S,AA=W,W+=o,x+=o;else for(b=0;b<p;++b)r(S,W,vA,x,o),sA=S,AA=W,W+=o,x+=o;s.rc=sA,s.Vc=AA}else{if(A(L.mc!=null),o=f+p,A((b=L.mc)!=null),A(o<=b.i),b.C>=o)o=1;else if(L.ic||eA(),L.ic){L=b.V,sA=b.Ba,AA=b.c;var hA=b.i,J=(vA=1,x=b.$/AA,S=b.$%AA,W=b.m,iA=b.s,b.$),z=AA*hA,pA=AA*o,mA=iA.wc,wA=J<pA?We(iA,S,x):null;A(J<=z),A(o<=hA),A(Or(iA));e:for(;;){for(;!W.h&&J<pA;){if(S&mA||(wA=We(iA,S,x)),A(wA!=null),Z(W),256>(hA=Lt(wA.G[0],wA.H[0],W)))L[sA+J]=hA,++J,++S>=AA&&(S=0,++x<=o&&!(x%16)&&sr(b,x));else{if(!(280>hA)){vA=0;break e}hA=nr(hA-256,W);var TA,LA=Lt(wA.G[4],wA.H[4],W);if(Z(W),!(J>=(LA=Fr(AA,LA=nr(LA,W)))&&z-J>=hA)){vA=0;break e}for(TA=0;TA<hA;++TA)L[sA+J+TA]=L[sA+J+TA-LA];for(J+=hA,S+=hA;S>=AA;)S-=AA,++x<=o&&!(x%16)&&sr(b,x);J<pA&&S&mA&&(wA=We(iA,S,x))}A(W.h==P(W))}sr(b,x>o?o:x);break e}!vA||W.h&&J<z?(vA=0,b.a=W.h?5:3):b.$=J,o=vA}else o=ar(b,b.V,b.Ba,b.c,b.i,o,ei);if(!o){p=0;break A}}f+p>=y&&(s.Cc=1),p=1}if(!p)return null;if(s.Cc&&((p=s.ga)!=null&&(p.mc=null),s.ga=null,0<s.Ga))return alert("todo:WebPDequantizeLevels"),null}return s.nb+f*v}function u(s,o,f,p,v,y){for(;0<v--;){var b,L=s,x=o+(f?1:0),S=s,W=o+(f?0:3);for(b=0;b<p;++b){var iA=S[W+4*b];iA!=255&&(iA*=32897,L[x+4*b+0]=L[x+4*b+0]*iA>>23,L[x+4*b+1]=L[x+4*b+1]*iA>>23,L[x+4*b+2]=L[x+4*b+2]*iA>>23)}o+=y}}function C(s,o,f,p,v){for(;0<p--;){var y;for(y=0;y<f;++y){var b=s[o+2*y+0],L=15&(S=s[o+2*y+1]),x=4369*L,S=(240&S|S>>4)*x>>16;s[o+2*y+0]=(240&b|b>>4)*x>>16&240|(15&b|b<<4)*x>>16>>4&15,s[o+2*y+1]=240&S|L}o+=v}}function T(s,o,f,p,v,y,b,L){var x,S,W=255;for(S=0;S<v;++S){for(x=0;x<p;++x){var iA=s[o+x];y[b+4*x]=iA,W&=iA}o+=f,b+=L}return W!=255}function q(s,o,f,p,v){var y;for(y=0;y<v;++y)f[p+y]=s[o+y]>>8}function eA(){Wt=u,Le=C,Ee=T,Ke=q}function gA(s,o,f){O[s]=function(p,v,y,b,L,x,S,W,iA,sA,AA,vA,hA,J,z,pA,mA){var wA,TA=mA-1>>1,LA=L[x+0]|S[W+0]<<16,VA=iA[sA+0]|AA[vA+0]<<16;A(p!=null);var xA=3*LA+VA+131074>>2;for(o(p[v+0],255&xA,xA>>16,hA,J),y!=null&&(xA=3*VA+LA+131074>>2,o(y[b+0],255&xA,xA>>16,z,pA)),wA=1;wA<=TA;++wA){var de=L[x+wA]|S[W+wA]<<16,we=iA[sA+wA]|AA[vA+wA]<<16,fe=LA+de+VA+we+524296,oe=fe+2*(de+VA)>>3;xA=oe+LA>>1,LA=(fe=fe+2*(LA+we)>>3)+de>>1,o(p[v+2*wA-1],255&xA,xA>>16,hA,J+(2*wA-1)*f),o(p[v+2*wA-0],255&LA,LA>>16,hA,J+(2*wA-0)*f),y!=null&&(xA=fe+VA>>1,LA=oe+we>>1,o(y[b+2*wA-1],255&xA,xA>>16,z,pA+(2*wA-1)*f),o(y[b+2*wA+0],255&LA,LA>>16,z,pA+(2*wA+0)*f)),LA=de,VA=we}1&mA||(xA=3*LA+VA+131074>>2,o(p[v+mA-1],255&xA,xA>>16,hA,J+(mA-1)*f),y!=null&&(xA=3*VA+LA+131074>>2,o(y[b+mA-1],255&xA,xA>>16,z,pA+(mA-1)*f)))}}function CA(){Xt[ba]=Jd,Xt[Ua]=du,Xt[lu]=Xd,Xt[La]=gu,Xt[Ea]=Bu,Xt[bl]=pu,Xt[cu]=zd,Xt[Ul]=du,Xt[Ll]=gu,Xt[xa]=Bu,Xt[El]=pu}function DA(s){return s&-16384?0>s?0:255:s>>Yd}function RA(s,o){return DA((19077*s>>8)+(26149*o>>8)-14234)}function re(s,o,f){return DA((19077*s>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function Ae(s,o){return DA((19077*s>>8)+(33050*o>>8)-17685)}function ce(s,o,f,p,v){p[v+0]=RA(s,f),p[v+1]=re(s,o,f),p[v+2]=Ae(s,o)}function Se(s,o,f,p,v){p[v+0]=Ae(s,o),p[v+1]=re(s,o,f),p[v+2]=RA(s,f)}function Te(s,o,f,p,v){var y=re(s,o,f);o=y<<3&224|Ae(s,o)>>3,p[v+0]=248&RA(s,f)|y>>5,p[v+1]=o}function Je(s,o,f,p,v){var y=240&Ae(s,o)|15;p[v+0]=240&RA(s,f)|re(s,o,f)>>4,p[v+1]=y}function ht(s,o,f,p,v){p[v+0]=255,ce(s,o,f,p,v+1)}function et(s,o,f,p,v){Se(s,o,f,p,v),p[v+3]=255}function cr(s,o,f,p,v){ce(s,o,f,p,v),p[v+3]=255}function Tt(s,o){return 0>s?0:s>o?o:s}function Er(s,o,f){O[s]=function(p,v,y,b,L,x,S,W,iA){for(var sA=W+(-2&iA)*f;W!=sA;)o(p[v+0],y[b+0],L[x+0],S,W),o(p[v+1],y[b+0],L[x+0],S,W+f),v+=2,++b,++x,W+=2*f;1&iA&&o(p[v+0],y[b+0],L[x+0],S,W)}}function wa(s,o,f){return f==0?s==0?o==0?6:5:o==0?4:0:f}function us(s,o,f,p,v){switch(s>>>30){case 3:Vr(o,f,p,v,0);break;case 2:Me(o,f,p,v);break;case 1:Ft(o,f,p,v)}}function fs(s,o){var f,p,v=o.M,y=o.Nb,b=s.oc,L=s.pc+40,x=s.oc,S=s.pc+584,W=s.oc,iA=s.pc+600;for(f=0;16>f;++f)b[L+32*f-1]=129;for(f=0;8>f;++f)x[S+32*f-1]=129,W[iA+32*f-1]=129;for(0<v?b[L-1-32]=x[S-1-32]=W[iA-1-32]=129:(n(b,L-32-1,127,21),n(x,S-32-1,127,9),n(W,iA-32-1,127,9)),p=0;p<s.za;++p){var sA=o.ya[o.aa+p];if(0<p){for(f=-1;16>f;++f)r(b,L+32*f-4,b,L+32*f+12,4);for(f=-1;8>f;++f)r(x,S+32*f-4,x,S+32*f+4,4),r(W,iA+32*f-4,W,iA+32*f+4,4)}var AA=s.Gd,vA=s.Hd+p,hA=sA.ad,J=sA.Hc;if(0<v&&(r(b,L-32,AA[vA].y,0,16),r(x,S-32,AA[vA].f,0,8),r(W,iA-32,AA[vA].ea,0,8)),sA.Za){var z=b,pA=L-32+16;for(0<v&&(p>=s.za-1?n(z,pA,AA[vA].y[15],4):r(z,pA,AA[vA+1].y,0,4)),f=0;4>f;f++)z[pA+128+f]=z[pA+256+f]=z[pA+384+f]=z[pA+0+f];for(f=0;16>f;++f,J<<=2)z=b,pA=L+vu[f],ur[sA.Ob[f]](z,pA),us(J,hA,16*+f,z,pA)}else if(z=wa(p,v,sA.Ob[0]),ln[z](b,L),J!=0)for(f=0;16>f;++f,J<<=2)us(J,hA,16*+f,b,L+vu[f]);for(f=sA.Gc,z=wa(p,v,sA.Dd),Gr[z](x,S),Gr[z](W,iA),J=hA,z=x,pA=S,255&(sA=f>>0)&&(170&sA?ps(J,256,z,pA):Gt(J,256,z,pA)),sA=W,J=iA,255&(f>>=8)&&(170&f?ps(hA,320,sA,J):Gt(hA,320,sA,J)),v<s.Ub-1&&(r(AA[vA].y,0,b,L+480,16),r(AA[vA].f,0,x,S+224,8),r(AA[vA].ea,0,W,iA+224,8)),f=8*y*s.B,AA=s.sa,vA=s.ta+16*p+16*y*s.R,hA=s.qa,sA=s.ra+8*p+f,J=s.Ha,z=s.Ia+8*p+f,f=0;16>f;++f)r(AA,vA+f*s.R,b,L+32*f,16);for(f=0;8>f;++f)r(hA,sA+f*s.B,x,S+32*f,8),r(J,z+f*s.B,W,iA+32*f,8)}}function gi(s,o,f,p,v,y,b,L,x){var S=[0],W=[0],iA=0,sA=x!=null?x.kd:0,AA=x??new as;if(s==null||12>f)return 7;AA.data=s,AA.w=o,AA.ha=f,o=[o],f=[f],AA.gb=[AA.gb];A:{var vA=o,hA=f,J=AA.gb;if(A(s!=null),A(hA!=null),A(J!=null),J[0]=0,12<=hA[0]&&!t(s,vA[0],"RIFF")){if(t(s,vA[0]+8,"WEBP")){J=3;break A}var z=EA(s,vA[0]+4);if(12>z||4294967286<z){J=3;break A}if(sA&&z>hA[0]-8){J=7;break A}J[0]=z,vA[0]+=12,hA[0]-=12}J=0}if(J!=0)return J;for(z=0<AA.gb[0],f=f[0];;){A:{var pA=s;hA=o,J=f;var mA=S,wA=W,TA=vA=[0];if((xA=iA=[iA])[0]=0,8>J[0])J=7;else{if(!t(pA,hA[0],"VP8X")){if(EA(pA,hA[0]+4)!=10){J=3;break A}if(18>J[0]){J=7;break A}var LA=EA(pA,hA[0]+8),VA=1+_A(pA,hA[0]+12);if(2147483648<=VA*(pA=1+_A(pA,hA[0]+15))){J=3;break A}TA!=null&&(TA[0]=LA),mA!=null&&(mA[0]=VA),wA!=null&&(wA[0]=pA),hA[0]+=18,J[0]-=18,xA[0]=1}J=0}}if(iA=iA[0],vA=vA[0],J!=0)return J;if(hA=!!(2&vA),!z&&iA)return 3;if(y!=null&&(y[0]=!!(16&vA)),b!=null&&(b[0]=hA),L!=null&&(L[0]=0),b=S[0],vA=W[0],iA&&hA&&x==null){J=0;break}if(4>f){J=7;break}if(z&&iA||!z&&!iA&&!t(s,o[0],"ALPH")){f=[f],AA.na=[AA.na],AA.P=[AA.P],AA.Sa=[AA.Sa];A:{LA=s,J=o,z=f;var xA=AA.gb;mA=AA.na,wA=AA.P,TA=AA.Sa,VA=22,A(LA!=null),A(z!=null),pA=J[0];var de=z[0];for(A(mA!=null),A(TA!=null),mA[0]=null,wA[0]=null,TA[0]=0;;){if(J[0]=pA,z[0]=de,8>de){J=7;break A}var we=EA(LA,pA+4);if(4294967286<we){J=3;break A}var fe=8+we+1&-2;if(VA+=fe,0<xA&&VA>xA){J=3;break A}if(!t(LA,pA,"VP8 ")||!t(LA,pA,"VP8L")){J=0;break A}if(de[0]<fe){J=7;break A}t(LA,pA,"ALPH")||(mA[0]=LA,wA[0]=pA+8,TA[0]=we),pA+=fe,de-=fe}}if(f=f[0],AA.na=AA.na[0],AA.P=AA.P[0],AA.Sa=AA.Sa[0],J!=0)break}f=[f],AA.Ja=[AA.Ja],AA.xa=[AA.xa];A:if(xA=s,J=o,z=f,mA=AA.gb[0],wA=AA.Ja,TA=AA.xa,LA=J[0],pA=!t(xA,LA,"VP8 "),VA=!t(xA,LA,"VP8L"),A(xA!=null),A(z!=null),A(wA!=null),A(TA!=null),8>z[0])J=7;else{if(pA||VA){if(xA=EA(xA,LA+4),12<=mA&&xA>mA-12){J=3;break A}if(sA&&xA>z[0]-8){J=7;break A}wA[0]=xA,J[0]+=8,z[0]-=8,TA[0]=VA}else TA[0]=5<=z[0]&&xA[LA+0]==47&&!(xA[LA+4]>>5),wA[0]=z[0];J=0}if(f=f[0],AA.Ja=AA.Ja[0],AA.xa=AA.xa[0],o=o[0],J!=0)break;if(4294967286<AA.Ja)return 3;if(L==null||hA||(L[0]=AA.xa?2:1),b=[b],vA=[vA],AA.xa){if(5>f){J=7;break}L=b,sA=vA,hA=y,s==null||5>f?s=0:5<=f&&s[o+0]==47&&!(s[o+4]>>5)?(z=[0],xA=[0],mA=[0],tA(wA=new U,s,o,f),GA(wA,z,xA,mA)?(L!=null&&(L[0]=z[0]),sA!=null&&(sA[0]=xA[0]),hA!=null&&(hA[0]=mA[0]),s=1):s=0):s=0}else{if(10>f){J=7;break}L=vA,s==null||10>f||!ta(s,o+3,f-3)?s=0:(sA=s[o+0]|s[o+1]<<8|s[o+2]<<16,hA=16383&(s[o+7]<<8|s[o+6]),s=16383&(s[o+9]<<8|s[o+8]),1&sA||3<(sA>>1&7)||!(sA>>4&1)||sA>>5>=AA.Ja||!hA||!s?s=0:(b&&(b[0]=hA),L&&(L[0]=s),s=1))}if(!s||(b=b[0],vA=vA[0],iA&&(S[0]!=b||W[0]!=vA)))return 3;x!=null&&(x[0]=AA,x.offset=o-x.w,A(4294967286>o-x.w),A(x.offset==x.ha-f));break}return J==0||J==7&&iA&&x==null?(y!=null&&(y[0]|=AA.na!=null&&0<AA.na.length),p!=null&&(p[0]=b),v!=null&&(v[0]=vA),0):J}function hs(s,o,f){var p=o.width,v=o.height,y=0,b=0,L=p,x=v;if(o.Da=s!=null&&0<s.Da,o.Da&&(L=s.cd,x=s.bd,y=s.v,b=s.j,11>f||(y&=-2,b&=-2),0>y||0>b||0>=L||0>=x||y+L>p||b+x>v))return 0;if(o.v=y,o.j=b,o.va=y+L,o.o=b+x,o.U=L,o.T=x,o.da=s!=null&&0<s.da,o.da){if(!te(L,x,f=[s.ib],y=[s.hb]))return 0;o.ib=f[0],o.hb=y[0]}return o.ob=s!=null&&s.ob,o.Kb=s==null||!s.Sd,o.da&&(o.ob=o.ib<3*p/4&&o.hb<3*v/4,o.Kb=0),1}function ds(s){if(s==null)return 2;if(11>s.S){var o=s.f.RGBA;o.fb+=(s.height-1)*o.A,o.A=-o.A}else o=s.f.kb,s=s.height,o.O+=(s-1)*o.fa,o.fa=-o.fa,o.N+=(s-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(s-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(s-1)*o.lb,o.lb=-o.lb);return 0}function Bi(s,o,f,p){if(p==null||0>=s||0>=o)return 2;if(f!=null){if(f.Da){var v=f.cd,y=f.bd,b=-2&f.v,L=-2&f.j;if(0>b||0>L||0>=v||0>=y||b+v>s||L+y>o)return 2;s=v,o=y}if(f.da){if(!te(s,o,v=[f.ib],y=[f.hb]))return 2;s=v[0],o=y[0]}}p.width=s,p.height=o;A:{var x=p.width,S=p.height;if(s=p.S,0>=x||0>=S||!(s>=ba&&13>s))s=2;else{if(0>=p.Rd&&p.sd==null){b=y=v=o=0;var W=(L=x*mu[s])*S;if(11>s||(y=(S+1)/2*(o=(x+1)/2),s==12&&(b=(v=x)*S)),(S=i(W+2*y+b))==null){s=1;break A}p.sd=S,11>s?((x=p.f.RGBA).eb=S,x.fb=0,x.A=L,x.size=W):((x=p.f.kb).y=S,x.O=0,x.fa=L,x.Fd=W,x.f=S,x.N=0+W,x.Ab=o,x.Cd=y,x.ea=S,x.W=0+W+y,x.Db=o,x.Ed=y,s==12&&(x.F=S,x.J=0+W+2*y),x.Tc=b,x.lb=v)}if(o=1,v=p.S,y=p.width,b=p.height,v>=ba&&13>v)if(11>v)s=p.f.RGBA,o&=(L=Math.abs(s.A))*(b-1)+y<=s.size,o&=L>=y*mu[v],o&=s.eb!=null;else{s=p.f.kb,L=(y+1)/2,W=(b+1)/2,x=Math.abs(s.fa),S=Math.abs(s.Ab);var iA=Math.abs(s.Db),sA=Math.abs(s.lb),AA=sA*(b-1)+y;o&=x*(b-1)+y<=s.Fd,o&=S*(W-1)+L<=s.Cd,o=(o&=iA*(W-1)+L<=s.Ed)&x>=y&S>=L&iA>=L,o&=s.y!=null,o&=s.f!=null,o&=s.ea!=null,v==12&&(o&=sA>=y,o&=AA<=s.Tc,o&=s.F!=null)}else o=0;s=o?0:2}}return s!=0||f!=null&&f.fd&&(s=ds(p)),s}var at=64,pi=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],wi=24,vi=32,gs=8,xt=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];UA("Predictor0","PredictorAdd0"),O.Predictor0=function(){return 4278190080},O.Predictor1=function(s){return s},O.Predictor2=function(s,o,f){return o[f+0]},O.Predictor3=function(s,o,f){return o[f+1]},O.Predictor4=function(s,o,f){return o[f-1]},O.Predictor5=function(s,o,f){return IA(IA(s,o[f+1]),o[f+0])},O.Predictor6=function(s,o,f){return IA(s,o[f-1])},O.Predictor7=function(s,o,f){return IA(s,o[f+0])},O.Predictor8=function(s,o,f){return IA(o[f-1],o[f+0])},O.Predictor9=function(s,o,f){return IA(o[f+0],o[f+1])},O.Predictor10=function(s,o,f){return IA(IA(s,o[f-1]),IA(o[f+0],o[f+1]))},O.Predictor11=function(s,o,f){var p=o[f+0];return 0>=ie(p>>24&255,s>>24&255,(o=o[f-1])>>24&255)+ie(p>>16&255,s>>16&255,o>>16&255)+ie(p>>8&255,s>>8&255,o>>8&255)+ie(255&p,255&s,255&o)?p:s},O.Predictor12=function(s,o,f){var p=o[f+0];return(KA((s>>24&255)+(p>>24&255)-((o=o[f-1])>>24&255))<<24|KA((s>>16&255)+(p>>16&255)-(o>>16&255))<<16|KA((s>>8&255)+(p>>8&255)-(o>>8&255))<<8|KA((255&s)+(255&p)-(255&o)))>>>0},O.Predictor13=function(s,o,f){var p=o[f-1];return(ZA((s=IA(s,o[f+0]))>>24&255,p>>24&255)<<24|ZA(s>>16&255,p>>16&255)<<16|ZA(s>>8&255,p>>8&255)<<8|ZA(s>>0&255,p>>0&255))>>>0};var Fl=O.PredictorAdd0;O.PredictorAdd1=se,UA("Predictor2","PredictorAdd2"),UA("Predictor3","PredictorAdd3"),UA("Predictor4","PredictorAdd4"),UA("Predictor5","PredictorAdd5"),UA("Predictor6","PredictorAdd6"),UA("Predictor7","PredictorAdd7"),UA("Predictor8","PredictorAdd8"),UA("Predictor9","PredictorAdd9"),UA("Predictor10","PredictorAdd10"),UA("Predictor11","PredictorAdd11"),UA("Predictor12","PredictorAdd12"),UA("Predictor13","PredictorAdd13");var Bs=O.PredictorAdd2;ae("ColorIndexInverseTransform","MapARGB","32b",function(s){return s>>8&255},function(s){return s}),ae("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(s){return s},function(s){return s>>8&255});var va,jt=O.ColorIndexInverseTransform,mi=O.MapARGB,ma=O.VP8LColorIndexInverseTransformAlpha,Ca=O.MapAlpha,nn=O.VP8LPredictorsAdd=[];nn.length=16,(O.VP8LPredictors=[]).length=16,(O.VP8LPredictorsAdd_C=[]).length=16,(O.VP8LPredictors_C=[]).length=16;var Pn,It,Qt,sn,Kr,Rr,Ci,Vr,Me,ps,Ft,Gt,Qi,Qa,ws,On,kn,an,Mn,Fi,Kn,on,vs,qt,Wt,Le,Ee,Ke,$e=i(511),jr=i(2041),ms=i(225),yi=i(767),Fa=0,yl=jr,ya=ms,Pt=yi,Jt=$e,ba=0,Ua=1,lu=2,La=3,Ea=4,bl=5,cu=6,Ul=7,Ll=8,xa=9,El=10,Nd=[2,3,7],Dd=[3,3,11],uu=[280,256,256,256,40],Td=[0,1,1,1,0],Pd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Od=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],kd=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Md=8,xl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Il=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Cs=null,Kd=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Rd=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Vd=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],jd=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Gd=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],qd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ln=[],ur=[],Gr=[],Wd=1,hu=2,cn=[],Xt=[];gA("UpsampleRgbLinePair",ce,3),gA("UpsampleBgrLinePair",Se,3),gA("UpsampleRgbaLinePair",cr,4),gA("UpsampleBgraLinePair",et,4),gA("UpsampleArgbLinePair",ht,4),gA("UpsampleRgba4444LinePair",Je,2),gA("UpsampleRgb565LinePair",Te,2);var Jd=O.UpsampleRgbLinePair,Xd=O.UpsampleBgrLinePair,du=O.UpsampleRgbaLinePair,gu=O.UpsampleBgraLinePair,Bu=O.UpsampleArgbLinePair,pu=O.UpsampleRgba4444LinePair,zd=O.UpsampleRgb565LinePair,Ia=16,_a=1<<Ia-1,Qs=-227,_l=482,Yd=6,wu=0,Zd=i(256),$d=i(256),A1=i(256),e1=i(256),t1=i(_l-Qs),r1=i(_l-Qs);Er("YuvToRgbRow",ce,3),Er("YuvToBgrRow",Se,3),Er("YuvToRgbaRow",cr,4),Er("YuvToBgraRow",et,4),Er("YuvToArgbRow",ht,4),Er("YuvToRgba4444Row",Je,2),Er("YuvToRgb565Row",Te,2);var vu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ha=[0,2,8],n1=[8,7,6,4,4,2,2,2,1,1,1,1],i1=1;this.WebPDecodeRGBA=function(s,o,f,p,v){var y=Ua,b=new hi,L=new rr;b.ba=L,L.S=y,L.width=[L.width],L.height=[L.height];var x=L.width,S=L.height,W=new Pr;if(W==null||s==null)var iA=2;else A(W!=null),iA=gi(s,o,f,W.width,W.height,W.Pd,W.Qd,W.format,null);if(iA!=0?x=0:(x!=null&&(x[0]=W.width[0]),S!=null&&(S[0]=W.height[0]),x=1),x){L.width=L.width[0],L.height=L.height[0],p!=null&&(p[0]=L.width),v!=null&&(v[0]=L.height);A:{if(p=new si,(v=new as).data=s,v.w=o,v.ha=f,v.kd=1,o=[0],A(v!=null),((s=gi(v.data,v.w,v.ha,null,null,null,o,null,v))==0||s==7)&&o[0]&&(s=4),(o=s)==0){if(A(b!=null),p.data=v.data,p.w=v.w+v.offset,p.ha=v.ha-v.offset,p.put=Cr,p.ac=st,p.bc=Qr,p.ma=b,v.xa){if((s=Vt())==null){b=1;break A}if(function(sA,AA){var vA=[0],hA=[0],J=[0];e:for(;;){if(sA==null)return 0;if(AA==null)return sA.a=2,0;if(sA.l=AA,sA.a=0,tA(sA.m,AA.data,AA.w,AA.ha),!GA(sA.m,vA,hA,J)){sA.a=3;break e}if(sA.xb=hu,AA.width=vA[0],AA.height=hA[0],!br(vA[0],hA[0],1,sA,null))break e;return 1}return A(sA.a!=0),0}(s,p)){if(p=(o=Bi(p.width,p.height,b.Oa,b.ba))==0){e:{p=s;t:for(;;){if(p==null){p=0;break e}if(A(p.s.yc!=null),A(p.s.Ya!=null),A(0<p.s.Wb),A((f=p.l)!=null),A((v=f.ma)!=null),p.xb!=0){if(p.ca=v.ba,p.tb=v.tb,A(p.ca!=null),!hs(v.Oa,f,La)){p.a=2;break t}if(!Hn(p,f.width)||f.da)break t;if((f.da||ge(p.ca.S))&&eA(),11>p.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),p.ca.f.kb.F!=null&&eA()),p.Pb&&0<p.s.ua&&p.s.vb.X==null&&!JA(p.s.vb,p.s.Wa.Xa)){p.a=1;break t}p.xb=0}if(!ar(p,p.V,p.Ba,p.c,p.i,f.o,Ai))break t;v.Dc=p.Ma,p=1;break e}A(p.a!=0),p=0}p=!p}p&&(o=s.a)}else o=s.a}else{if((s=new nl)==null){b=1;break A}if(s.Fa=v.na,s.P=v.P,s.qc=v.Sa,ra(s,p)){if((o=Bi(p.width,p.height,b.Oa,b.ba))==0){if(s.Aa=0,f=b.Oa,A((v=s)!=null),f!=null){if(0<(x=0>(x=f.Md)?0:100<x?255:255*x/100)){for(S=W=0;4>S;++S)12>(iA=v.pb[S]).lc&&(iA.ia=x*n1[0>iA.lc?0:iA.lc]>>3),W|=iA.ia;W&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=f.Id,100<v.Ga?v.Ga=100:0>v.Ga&&(v.Ga=0)}il(s,p)||(o=s.a)}}else o=s.a}o==0&&b.Oa!=null&&b.Oa.fd&&(o=ds(b.ba))}b=o}y=b!=0?null:11>y?L.f.RGBA.eb:L.f.kb.y}else y=null;return y};var mu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(O,G){for(var rA="",I=0;I<4;I++)rA+=String.fromCharCode(O[G++]);return rA}function g(O,G){return(O[G+0]<<0|O[G+1]<<8|O[G+2]<<16)>>>0}function B(O,G){return(O[G+0]<<0|O[G+1]<<8|O[G+2]<<16|O[G+3]<<24)>>>0}new c;var w=[0],h=[0],F=[],m=new c,_=e,Q=function(O,G){var rA={},I=0,H=!1,R=0,k=0;if(rA.frames=[],!function(N,P,j,Z){for(var aA=0;aA<Z;aA++)if(N[P+aA]!=j.charCodeAt(aA))return!0;return!1}(O,G,"RIFF",4)){for(B(O,G+=4),G+=8;G<O.length;){var oA=d(O,G),nA=B(O,G+=4);G+=4;var cA=nA+(1&nA);switch(oA){case"VP8 ":case"VP8L":rA.frames[I]===void 0&&(rA.frames[I]={}),(dA=rA.frames[I]).src_off=H?k:G-8,dA.src_size=R+nA+8,I++,H&&(H=!1,R=0,k=0);break;case"VP8X":(dA=rA.header={}).feature_flags=O[G];var tA=G+4;dA.canvas_width=1+g(O,tA),tA+=3,dA.canvas_height=1+g(O,tA),tA+=3;break;case"ALPH":H=!0,R=cA+8,k=G-8;break;case"ANIM":(dA=rA.header).bgcolor=B(O,G),tA=G+4,dA.loop_count=(bA=O)[(U=tA)+0]<<0|bA[U+1]<<8,tA+=2;break;case"ANMF":var fA,dA;(dA=rA.frames[I]={}).offset_x=2*g(O,G),G+=3,dA.offset_y=2*g(O,G),G+=3,dA.width=1+g(O,G),G+=3,dA.height=1+g(O,G),G+=3,dA.duration=g(O,G),G+=3,fA=O[G++],dA.dispose=1&fA,dA.blend=fA>>1&1}oA!="ANMF"&&(G+=cA)}var bA,U;return rA}}(_,0);Q.response=_,Q.rgbaoutput=!0,Q.dataurl=!1;var E=Q.header?Q.header:null,K=Q.frames?Q.frames:null;if(E){E.loop_counter=E.loop_count,w=[E.canvas_height],h=[E.canvas_width];for(var V=0;V<K.length&&K[V].blend!=0;V++);}var X=K[0],Y=m.WebPDecodeRGBA(_,X.src_off,X.src_size,h,w);X.rgba=Y,X.imgwidth=h[0],X.imgheight=w[0];for(var $=0;$<h[0]*w[0]*4;$++)F[$]=Y[$];return this.width=h,this.height=w,this.data=F,this}(function(e){var A=function(){return typeof qc=="function"},t=function(w,h,F,m){var _=4,Q=a;switch(m){case e.image_compression.FAST:_=1,Q=i;break;case e.image_compression.MEDIUM:_=6,Q=l;break;case e.image_compression.SLOW:_=9,Q=c}w=r(w,h,F,Q);var E=qc(w,{level:_});return e.__addimage__.arrayBufferToBinaryString(E)},r=function(w,h,F,m){for(var _,Q,E,K=w.length/h,V=new Uint8Array(w.length+K),X=g(),Y=0;Y<K;Y+=1){if(E=Y*h,_=w.subarray(E,E+h),m)V.set(m(_,F,Q),E+Y);else{for(var $,O=X.length,G=[];$<O;$+=1)G[$]=X[$](_,F,Q);var rA=B(G.concat());V.set(G[rA],E+Y)}Q=_}return V},n=function(w){var h=Array.apply([],w);return h.unshift(0),h},i=function(w,h){var F,m=[],_=w.length;m[0]=1;for(var Q=0;Q<_;Q+=1)F=w[Q-h]||0,m[Q+1]=w[Q]-F+256&255;return m},a=function(w,h,F){var m,_=[],Q=w.length;_[0]=2;for(var E=0;E<Q;E+=1)m=F&&F[E]||0,_[E+1]=w[E]-m+256&255;return _},l=function(w,h,F){var m,_,Q=[],E=w.length;Q[0]=3;for(var K=0;K<E;K+=1)m=w[K-h]||0,_=F&&F[K]||0,Q[K+1]=w[K]+256-(m+_>>>1)&255;return Q},c=function(w,h,F){var m,_,Q,E,K=[],V=w.length;K[0]=4;for(var X=0;X<V;X+=1)m=w[X-h]||0,_=F&&F[X]||0,Q=F&&F[X-h]||0,E=d(m,_,Q),K[X+1]=w[X]-E+256&255;return K},d=function(w,h,F){if(w===h&&h===F)return w;var m=Math.abs(h-F),_=Math.abs(w-F),Q=Math.abs(w+h-F-F);return m<=_&&m<=Q?w:_<=Q?h:F},g=function(){return[n,i,a,l,c]},B=function(w){var h=w.map(function(F){return F.reduce(function(m,_){return m+Math.abs(_)},0)});return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(w,h,F,m){var _,Q,E,K,V,X,Y,$,O,G,rA,I,H,R,k,oA=this.decode.FLATE_DECODE,nA="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(E=new sw(w)).imgData,Q=E.bits,_=E.colorSpace,V=E.colors,[4,6].indexOf(E.colorType)!==-1){if(E.bits===8){O=($=E.pixelBitlength==32?new Uint32Array(E.decodePixels().buffer):E.pixelBitlength==16?new Uint16Array(E.decodePixels().buffer):new Uint8Array(E.decodePixels().buffer)).length,rA=new Uint8Array(O*E.colors),G=new Uint8Array(O);var cA,tA=E.pixelBitlength-E.bits;for(R=0,k=0;R<O;R++){for(H=$[R],cA=0;cA<tA;)rA[k++]=H>>>cA&255,cA+=E.bits;G[R]=H>>>cA&255}}if(E.bits===16){O=($=new Uint32Array(E.decodePixels().buffer)).length,rA=new Uint8Array(O*(32/E.pixelBitlength)*E.colors),G=new Uint8Array(O*(32/E.pixelBitlength)),I=E.colors>1,R=0,k=0;for(var fA=0;R<O;)H=$[R++],rA[k++]=H>>>0&255,I&&(rA[k++]=H>>>16&255,H=$[R++],rA[k++]=H>>>0&255),G[fA++]=H>>>16&255;Q=8}m!==e.image_compression.NONE&&A()?(w=t(rA,E.width*E.colors,E.colors,m),Y=t(G,E.width,1,m)):(w=rA,Y=G,oA=void 0)}if(E.colorType===3&&(_=this.color_spaces.INDEXED,X=E.palette,E.transparency.indexed)){var dA=E.transparency.indexed,bA=0;for(R=0,O=dA.length;R<O;++R)bA+=dA[R];if((bA/=255)===O-1&&dA.indexOf(0)!==-1)K=[dA.indexOf(0)];else if(bA!==O){for($=E.decodePixels(),G=new Uint8Array($.length),R=0,O=$.length;R<O;R++)G[R]=dA[$[R]];Y=t(G,E.width,1)}}var U=function(N){var P;switch(N){case e.image_compression.FAST:P=11;break;case e.image_compression.MEDIUM:P=13;break;case e.image_compression.SLOW:P=14;break;default:P=12}return P}(m);return oA===this.decode.FLATE_DECODE&&(nA="/Predictor "+U+" "),nA+="/Colors "+V+" /BitsPerComponent "+Q+" /Columns "+E.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),(Y&&this.__addimage__.isArrayBuffer(Y)||this.__addimage__.isArrayBufferView(Y))&&(Y=this.__addimage__.arrayBufferToBinaryString(Y)),{alias:F,data:w,index:h,filter:oA,decodeParameters:nA,transparency:K,palette:X,sMask:Y,predictor:U,width:E.width,height:E.height,bitsPerComponent:Q,colorSpace:_}}}})(WA.API),function(e){e.processGIF89A=function(A,t,r,n){var i=new aw(A),a=i.width,l=i.height,c=[];i.decodeAndBlitFrameRGBA(0,c);var d={data:c,width:a,height:l},g=new pc(100).encode(d,100);return e.processJPEG.call(this,g,t,r,n)},e.processGIF87A=e.processGIF89A}(WA.API),dr.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,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var A=0;A<e;A++){var t=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[A]={red:n,green:r,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},dr.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[e]()}catch(t){Ue.log("bit decode error:"+t)}},dr.prototype.bit1=function(){var e,A=Math.ceil(this.width/8),t=A%4;for(e=this.height-1;e>=0;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),a=r*this.width*4+8*n*4,l=0;l<8&&8*n+l<this.width;l++){var c=this.palette[i>>7-l&1];this.data[a+4*l]=c.blue,this.data[a+4*l+1]=c.green,this.data[a+4*l+2]=c.red,this.data[a+4*l+3]=255}t!==0&&(this.pos+=4-t)}},dr.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),A=e%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<e;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*n*4,l=i>>4,c=15&i,d=this.palette[l];if(this.data[a]=d.blue,this.data[a+1]=d.green,this.data[a+2]=d.red,this.data[a+3]=255,2*n+1>=this.width)break;d=this.palette[c],this.data[a+4]=d.blue,this.data[a+4+1]=d.green,this.data[a+4+2]=d.red,this.data[a+4+3]=255}A!==0&&(this.pos+=4-A)}},dr.prototype.bit8=function(){for(var e=this.width%4,A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;if(n<this.palette.length){var a=this.palette[n];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.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}e!==0&&(this.pos+=4-e)}},dr.prototype.bit15=function(){for(var e=this.width%3,A=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&A)/A*255|0,l=(i>>5&A)/A*255|0,c=(i>>10&A)/A*255|0,d=i>>15?255:0,g=r*this.width*4+4*n;this.data[g]=c,this.data[g+1]=l,this.data[g+2]=a,this.data[g+3]=d}this.pos+=e}},dr.prototype.bit16=function(){for(var e=this.width%3,A=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(a&A)/A*255|0,c=(a>>5&t)/t*255|0,d=(a>>11)/A*255|0,g=n*this.width*4+4*i;this.data[g]=d,this.data[g+1]=c,this.data[g+2]=l,this.data[g+3]=255}this.pos+=e}},dr.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var A=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*t;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},dr.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var A=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),l=A*this.width*4+4*t;this.data[l]=i,this.data[l+1]=n,this.data[l+2]=r,this.data[l+3]=a}},dr.prototype.getData=function(){return this.data},function(e){e.processBMP=function(A,t,r,n){var i=new dr(A,!1),a=i.width,l=i.height,c={data:i.getData(),width:a,height:l},d=new pc(100).encode(c,100);return e.processJPEG.call(this,d,t,r,n)}}(WA.API),nh.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(A,t,r,n){var i=new nh(A),a=i.width,l=i.height,c={data:i.getData(),width:a,height:l},d=new pc(100).encode(c,100);return e.processJPEG.call(this,d,t,r,n)}}(WA.API),WA.API.processRGBA=function(e,A,t){for(var r=e.data,n=r.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),l=0,c=0,d=0;d<n;d+=4){var g=r[d],B=r[d+1],w=r[d+2],h=r[d+3];i[l++]=g,i[l++]=B,i[l++]=w,a[c++]=h}var F=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:F,index:A,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},WA.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{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:"North Macedonia",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"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ti=WA.API,Bo=Ti.getCharWidthsArray=function(e,A){var t,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),a=A.charSpace||this.internal.getCharSpace(),l=A.widths?A.widths:n.metadata.Unicode.widths,c=l.fof?l.fof:1,d=A.kerning?A.kerning:n.metadata.Unicode.kerning,g=d.fof?d.fof:1,B=A.doKerning!==!1,w=0,h=e.length,F=0,m=l[0]||c,_=[];for(t=0;t<h;t++)r=e.charCodeAt(t),typeof n.metadata.widthOfString=="function"?_.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+a*(1e3/i)||0)/1e3):(w=B&&me(d[r])==="object"&&!isNaN(parseInt(d[r][F],10))?d[r][F]/g:0,_.push((l[r]||m)/c+w)),F=r;return _},Ah=Ti.getStringUnitWidth=function(e,A){var t=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return Ti.processArabic&&(e=Ti.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,t,n)/t:Bo.apply(this,arguments).reduce(function(i,a){return i+a},0)},eh=function(e,A,t,r){for(var n=[],i=0,a=e.length,l=0;i!==a&&l+A[i]<t;)l+=A[i],i++;n.push(e.slice(0,i));var c=i;for(l=0;i!==a;)l+A[i]>r&&(n.push(e.slice(c,i)),l=0,c=i),l+=A[i],i++;return c!==i&&n.push(e.slice(c,i)),n},th=function(e,A,t){t||(t={});var r,n,i,a,l,c,d,g=[],B=[g],w=t.textIndent||0,h=0,F=0,m=e.split(" "),_=Bo.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?m[0].length+2:t.lineIndent||0){var Q=Array(c).join(" "),E=[];m.map(function(V){(V=V.split(/\s*\n/)).length>1?E=E.concat(V.map(function(X,Y){return(Y&&X.length?`
`:"")+X})):E.push(V[0])}),m=E,c=Ah.apply(this,[Q,t])}for(i=0,a=m.length;i<a;i++){var K=0;if(r=m[i],c&&r[0]==`
`&&(r=r.substr(1),K=1),w+h+(F=(n=Bo.apply(this,[r,t])).reduce(function(V,X){return V+X},0))>A||K){if(F>A){for(l=eh.apply(this,[r,n,A-(w+h),A]),g.push(l.shift()),g=[l.pop()];l.length;)B.push([l.shift()]);F=n.slice(r.length-(g[0]?g[0].length:0)).reduce(function(V,X){return V+X},0)}else g=[r];B.push(g),w=F+c,h=_}else g.push(r),w+=h+F,h=_}return d=c?function(V,X){return(X?Q:"")+V.join(" ")}:function(V){return V.join(" ")},B.map(d)},Ti.splitTextToSize=function(e,A,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var B=this.internal.getFont(g.fontName,g.fontStyle);return B.metadata.Unicode?{widths:B.metadata.Unicode.widths||{0:1},kerning:B.metadata.Unicode.kerning||{}}:{font:B.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*A/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var l,c,d=[];for(l=0,c=r.length;l<c;l++)d=d.concat(th.apply(this,[r[l],a,i]));return d},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},r={},n=0;n<A.length;n++)t[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(B){return"0x"+parseInt(B,10).toString(16)},a=e.__fontmetrics__.compress=function(B){var w,h,F,m,_=["{"];for(var Q in B){if(w=B[Q],isNaN(parseInt(Q,10))?h="'"+Q+"'":(Q=parseInt(Q,10),h=(h=i(Q).slice(2)).slice(0,-1)+r[h.slice(-1)]),typeof w=="number")w<0?(F=i(w).slice(3),m="-"):(F=i(w).slice(2),m=""),F=m+F.slice(0,-1)+r[F.slice(-1)];else{if(me(w)!=="object")throw new Error("Don't know what to do with value type "+me(w)+".");F=a(w)}_.push(h+F)}return _.push("}"),_.join("")},l=e.__fontmetrics__.uncompress=function(B){if(typeof B!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,h,F,m,_={},Q=1,E=_,K=[],V="",X="",Y=B.length-1,$=1;$<Y;$+=1)(m=B[$])=="'"?w?(F=w.join(""),w=void 0):w=[]:w?w.push(m):m=="{"?(K.push([E,F]),E={},F=void 0):m=="}"?((h=K.pop())[0][h[1]]=E,F=void 0,E=h[0]):m=="-"?Q=-1:F===void 0?t.hasOwnProperty(m)?(V+=t[m],F=parseInt(V,16)*Q,Q=1,V=""):V+=m:t.hasOwnProperty(m)?(X+=t[m],E[F]=parseInt(X,16)*Q,Q=1,F=void 0,X=""):X+=m;return _},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},g={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'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":l("{'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:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'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:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'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":l("{'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:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'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":l("{'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":l("{'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}}}")}};e.events.push(["addFont",function(B){var w=B.font,h=g.Unicode[w.postScriptName];h&&(w.metadata.Unicode={},w.metadata.Unicode.widths=h.widths,w.metadata.Unicode.kerning=h.kerning);var F=d.Unicode[w.postScriptName];F&&(w.metadata.Unicode.encoding=F,w.encoding=F.codePages[0])}])}(WA.API),function(e){var A=function(t){for(var r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n};e.API.events.push(["addFont",function(t){var r=void 0,n=t.font,i=t.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,l){l=/^\x00\x01\x00\x00/.test(l)?A(l):A(qs(l)),a.metadata=e.API.TTFFont.open(l),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,r)}}])}(WA),function(e){function A(){return(XA.canvg?Promise.resolve(XA.canvg):wc(()=>import("./index.es.BZwjJBOP.js"),__vite__mapDeps([0,1,2,3,4,5]))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}WA.API.addSvgAsImage=function(t,r,n,i,a,l,c,d){if(isNaN(r)||isNaN(n))throw Ue.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Ue.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var g=document.createElement("canvas");g.width=i,g.height=a;var B=g.getContext("2d");B.fillStyle="#fff",B.fillRect(0,0,g.width,g.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return A().then(function(F){return F.fromString(B,t,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(F){return F.render(w)}).then(function(){h.addImage(g.toDataURL("image/jpeg",1),r,n,i,a,c,d)})}}(),WA.API.putTotalPages=function(e){var A,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(A,t);return this},WA.API.viewerPreferences=function(e,A){var t;e=e||{},A=A||!1;var r,n,i,a={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}},l=Object.keys(a),c=[],d=0,g=0,B=0;function w(F,m){var _,Q=!1;for(_=0;_<F.length;_+=1)F[_]===m&&(Q=!0);return Q}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||A===!0){var h=l.length;for(B=0;B<h;B+=1)t[l[B]].value=t[l[B]].defaultValue,t[l[B]].explicitSet=!1}if(me(e)==="object"){for(n in e)if(i=e[n],w(l,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&w(t[n].valueSet,i))t[n].value=i;else if(t[n].type==="integer"&&Number.isInteger(i))t[n].value=i;else if(t[n].type==="array"){for(d=0;d<i.length;d+=1)if(r=!0,i[d].length===1&&typeof i[d][0]=="number")c.push(String(i[d]-1));else if(i[d].length>1){for(g=0;g<i[d].length;g+=1)typeof i[d][g]!="number"&&(r=!1);r===!0&&c.push([i[d][0]-1,i[d][1]-1].join(" "))}t[n].value="["+c.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var F,m=[];for(F in t)t[F].explicitSet===!0&&(t[F].type==="name"?m.push("/"+F+" /"+t[F].value):m.push("/"+F+" "+t[F].value));m.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+m.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(e){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),c=unescape(encodeURIComponent("</x:xmpmeta>")),d=i.length+a.length+l.length+n.length+c.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+l+c),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}(WA.API),function(e){var A=e.API,t=A.pdfEscape16=function(i,a){for(var l,c=a.metadata.Unicode.widths,d=["","0","00","000","0000"],g=[""],B=0,w=i.length;B<w;++B){if(l=a.metadata.characterToGlyph(i.charCodeAt(B)),a.metadata.glyIdsUsed.push(l),a.metadata.toUnicode[l]=i.charCodeAt(B),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(a.metadata.widthOfGlyph(l),10)])),l=="0")return g.join("");l=l.toString(16),g.push(d[4-l.length],l)}return g.join("")},r=function(i){var a,l,c,d,g,B,w;for(g=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,c=[],B=0,w=(l=Object.keys(i).sort(function(h,F){return h-F})).length;B<w;B++)a=l[B],c.length>=100&&(g+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar`,c=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(d=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),c.push("<"+a+"><"+d+">"));return c.length&&(g+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar
`),g+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};A.events.push(["putFont",function(i){(function(a){var l=a.font,c=a.out,d=a.newObject,g=a.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="Identity-H"){for(var B=l.metadata.Unicode.widths,w=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),h="",F=0;F<w.length;F++)h+=String.fromCharCode(w[F]);var m=d();g({data:h,addLength1:!0,objectId:m}),c("endobj");var _=d();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:_}),c("endobj");var Q=d();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Ki(l.fontName)),c("/FontFile2 "+m+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var E=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+Ki(l.fontName)),c("/FontDescriptor "+Q+" 0 R"),c("/W "+e.API.PDFObject.convert(B)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+_+" 0 R"),c("/BaseFont /"+Ki(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+E+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(a){var l=a.font,c=a.out,d=a.newObject,g=a.putStream;if(l.metadata instanceof e.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var B=l.metadata.rawData,w="",h=0;h<B.length;h++)w+=String.fromCharCode(B[h]);var F=d();g({data:w,addLength1:!0,objectId:F}),c("endobj");var m=d();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:m}),c("endobj");var _=d();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+F+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+Ki(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=d();for(var Q=0;Q<l.metadata.hmtx.widths.length;Q++)l.metadata.hmtx.widths[Q]=parseInt(l.metadata.hmtx.widths[Q]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Ki(l.fontName)+"/FontDescriptor "+_+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,l=i.text||"",c=i.x,d=i.y,g=i.options||{},B=i.mutex||{},w=B.pdfEscape,h=B.activeFontKey,F=B.fonts,m=h,_="",Q=0,E="",K=F[m].encoding;if(F[m].encoding!=="Identity-H")return{text:l,x:c,y:d,options:g,mutex:B};for(E=l,m=h,Array.isArray(l)&&(E=l[0]),Q=0;Q<E.length;Q+=1)F[m].metadata.hasOwnProperty("cmap")&&(a=F[m].metadata.cmap.unicode.codeMap[E[Q].charCodeAt(0)]),a||E[Q].charCodeAt(0)<256&&F[m].metadata.hasOwnProperty("Unicode")?_+=E[Q]:_+="";var V="";return parseInt(m.slice(1))<14||K==="WinAnsiEncoding"?V=w(_,m).split("").map(function(X){return X.charCodeAt(0).toString(16)}).join(""):K==="Identity-H"&&(V=t(_,F[m])),B.isHex=!0,{text:V,x:c,y:d,options:g,mutex:B}};A.events.push(["postProcessText",function(i){var a=i.text||"",l=[],c={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var d=0;for(d=0;d<a.length;d+=1)Array.isArray(a[d])&&a[d].length===3?l.push([n(Object.assign({},c,{text:a[d][0]})).text,a[d][1],a[d][2]]):l.push(n(Object.assign({},c,{text:a[d]})).text);i.text=l}else i.text=n(Object.assign({},c,{text:a})).text}])}(WA),function(e){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return A.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(WA.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var n,i,a,l,c,d,g,B=A,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],F={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},_=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],Q=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),E=!1,K=0;this.__bidiEngine__={};var V=function(I){var H=I.charCodeAt(),R=H>>8,k=m[R];return k!==void 0?B[256*k+(255&H)]:R===252||R===253?"AL":Q.test(R)?"L":R===8?"R":"N"},X=function(I){for(var H,R=0;R<I.length;R++){if((H=V(I.charAt(R)))==="L")return!1;if(H==="R")return!0}return!1},Y=function(I,H,R,k){var oA,nA,cA,tA,fA=H[k];switch(fA){case"L":case"R":E=!1;break;case"N":case"AN":break;case"EN":E&&(fA="AN");break;case"AL":E=!0,fA="R";break;case"WS":fA="N";break;case"CS":k<1||k+1>=H.length||(oA=R[k-1])!=="EN"&&oA!=="AN"||(nA=H[k+1])!=="EN"&&nA!=="AN"?fA="N":E&&(nA="AN"),fA=nA===oA?nA:"N";break;case"ES":fA=(oA=k>0?R[k-1]:"B")==="EN"&&k+1<H.length&&H[k+1]==="EN"?"EN":"N";break;case"ET":if(k>0&&R[k-1]==="EN"){fA="EN";break}if(E){fA="N";break}for(cA=k+1,tA=H.length;cA<tA&&H[cA]==="ET";)cA++;fA=cA<tA&&H[cA]==="EN"?"EN":"N";break;case"NSM":if(a&&!l){for(tA=H.length,cA=k+1;cA<tA&&H[cA]==="NSM";)cA++;if(cA<tA){var dA=I[k],bA=dA>=1425&&dA<=2303||dA===64286;if(oA=H[cA],bA&&(oA==="R"||oA==="AL")){fA="R";break}}}fA=k<1||(oA=H[k-1])==="B"?"N":R[k-1];break;case"B":E=!1,n=!0,fA=K;break;case"S":i=!0,fA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":E=!1;break;case"BN":fA="N"}return fA},$=function(I,H,R){var k=I.split("");return R&&O(k,R,{hiLevel:K}),k.reverse(),H&&H.reverse(),k.join("")},O=function(I,H,R){var k,oA,nA,cA,tA,fA=-1,dA=I.length,bA=0,U=[],N=K?h:w,P=[];for(E=!1,n=!1,i=!1,oA=0;oA<dA;oA++)P[oA]=V(I[oA]);for(nA=0;nA<dA;nA++){if(tA=bA,U[nA]=Y(I,P,U,nA),k=240&(bA=N[tA][F[U[nA]]]),bA&=15,H[nA]=cA=N[bA][5],k>0)if(k===16){for(oA=fA;oA<nA;oA++)H[oA]=1;fA=-1}else fA=-1;if(N[bA][6])fA===-1&&(fA=nA);else if(fA>-1){for(oA=fA;oA<nA;oA++)H[oA]=cA;fA=-1}P[nA]==="B"&&(H[nA]=0),R.hiLevel|=cA}i&&function(j,Z,aA){for(var lA=0;lA<aA;lA++)if(j[lA]==="S"){Z[lA]=K;for(var uA=lA-1;uA>=0&&j[uA]==="WS";uA--)Z[uA]=K}}(P,H,dA)},G=function(I,H,R,k,oA){if(!(oA.hiLevel<I)){if(I===1&&K===1&&!n)return H.reverse(),void(R&&R.reverse());for(var nA,cA,tA,fA,dA=H.length,bA=0;bA<dA;){if(k[bA]>=I){for(tA=bA+1;tA<dA&&k[tA]>=I;)tA++;for(fA=bA,cA=tA-1;fA<cA;fA++,cA--)nA=H[fA],H[fA]=H[cA],H[cA]=nA,R&&(nA=R[fA],R[fA]=R[cA],R[cA]=nA);bA=tA}bA++}}},rA=function(I,H,R){var k=I.split(""),oA={hiLevel:K};return R||(R=[]),O(k,R,oA),function(nA,cA,tA){if(tA.hiLevel!==0&&g)for(var fA,dA=0;dA<nA.length;dA++)cA[dA]===1&&(fA=_.indexOf(nA[dA]))>=0&&(nA[dA]=_[fA+1])}(k,R,oA),G(2,k,H,R,oA),G(1,k,H,R,oA),k.join("")};return this.__bidiEngine__.doBidiReorder=function(I,H,R){if(function(oA,nA){if(nA)for(var cA=0;cA<oA.length;cA++)nA[cA]=cA;l===void 0&&(l=X(oA)),d===void 0&&(d=X(oA))}(I,H),a||!c||d)if(a&&c&&l^d)K=l?1:0,I=$(I,H,R);else if(!a&&c&&d)K=l?1:0,I=rA(I,H,R),I=$(I,H);else if(!a||l||c||d){if(a&&!c&&l^d)I=$(I,H),l?(K=0,I=rA(I,H,R)):(K=1,I=rA(I,H,R),I=$(I,H));else if(a&&l&&!c&&d)K=1,I=rA(I,H,R),I=$(I,H);else if(!a&&!c&&l^d){var k=g;l?(K=1,I=rA(I,H,R),K=0,g=!1,I=rA(I,H,R),g=k):(K=0,I=rA(I,H,R),I=$(I,H),K=1,g=!1,I=rA(I,H,R),g=k,I=$(I,H))}}else K=0,I=rA(I,H,R);else K=l?1:0,I=rA(I,H,R);return I},this.__bidiEngine__.setOptions=function(I){I&&(a=I.isInputVisual,c=I.isOutputVisual,l=I.isInputRtl,d=I.isOutputRtl,g=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var a=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,t.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var l=0;for(a=[],l=0;l<n.length;l+=1)Object.prototype.toString.call(n[l])==="[object Array]"?a.push([t.doBidiReorder(n[l][0]),n[l][1],n[l][2]]):a.push([t.doBidiReorder(n[l])]);r.text=a}else r.text=t.doBidiReorder(n);t.setOptions({isInputVisual:!0})}])}(WA),WA.API.TTFFont=function(){function e(A){var t;if(this.rawData=A,t=this.contents=new xn(A),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Qw(this),this.registerTTF()}return e.open=function(A){return new e(A)},e.prototype.parse=function(){return this.directory=new ow(this.contents),this.head=new cw(this),this.name=new gw(this),this.cmap=new Hd(this),this.toUnicode={},this.hhea=new uw(this),this.maxp=new Bw(this),this.hmtx=new pw(this),this.post=new hw(this),this.os2=new fw(this),this.loca=new Cw(this),this.glyf=new ww(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]},e.prototype.registerTTF=function(){var A,t,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,l,c,d;for(d=[],a=0,l=(c=this.bbox).length;a<l;a++)A=c[a],d.push(Math.round(A*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(t=n>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(A){var t;return((t=this.cmap.unicode)!=null?t.codeMap[A]:void 0)||0},e.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},e.prototype.widthOfString=function(A,t,r){var n,i,a,l;for(a=0,i=0,l=(A=""+A).length;0<=l?i<l:i>l;i=0<=l?++i:--i)n=A.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return a*(t/1e3)},e.prototype.lineHeight=function(A,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},e}();var vr,xn=function(){function e(A){this.data=A??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(A){return this.data[this.pos++]=A},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},e.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},e.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},e.prototype.readString=function(A){var t,r;for(r=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(A){var t,r,n;for(n=[],t=0,r=A.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(A.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(A){return this.writeInt16(A)},e.prototype.readLongLong=function(){var A,t,r,n,i,a,l,c;return A=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),l=this.readByte(),c=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^l)+(255^c)+1):72057594037927940*A+281474976710656*t+1099511627776*r+4294967296*n+16777216*i+65536*a+256*l+c},e.prototype.writeLongLong=function(A){var t,r;return t=Math.floor(A/4294967296),r=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(A){return this.writeInt32(A)},e.prototype.read=function(A){var t,r;for(t=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(A){var t,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)t=A[r],i.push(this.writeByte(t));return i},e}(),ow=function(){var e;function A(t){var r,n,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return A.prototype.encode=function(t){var r,n,i,a,l,c,d,g,B,w,h,F,m;for(m in h=Object.keys(t).length,c=Math.log(2),B=16*Math.floor(Math.log(h)/c),a=Math.floor(B/c),g=16*h-B,(n=new xn).writeInt(this.scalarType),n.writeShort(h),n.writeShort(B),n.writeShort(a),n.writeShort(g),i=16*h,d=n.pos+i,l=null,F=[],t)for(w=t[m],n.writeString(m),n.writeInt(e(w)),n.writeInt(d),n.writeInt(w.length),F=F.concat(w),m==="head"&&(l=d),d+=w.length;d%4;)F.push(0),d++;return n.write(F),r=2981146554-e(n.data),n.pos=l+8,n.writeUInt32(r),n.data},e=function(t){var r,n,i,a;for(t=Sd.call(t);t.length%4;)t.push(0);for(i=new xn(t),n=0,r=0,a=t.length;r<a;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),lw={}.hasOwnProperty,Tr=function(e,A){for(var t in A)lw.call(A,t)&&(e[t]=A[t]);function r(){this.constructor=e}return r.prototype=A.prototype,e.prototype=new r,e.__super__=A.prototype,e};vr=function(){function e(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 e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var cw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="head",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},A.prototype.encode=function(t){var r;return(r=new xn).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},A}(),ih=function(){function e(A,t){var r,n,i,a,l,c,d,g,B,w,h,F,m,_,Q,E,K;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),B=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=A.readByte();break;case 4:for(h=A.readUInt16(),w=h/2,A.pos+=6,i=function(){var V,X;for(X=[],c=V=0;0<=w?V<w:V>w;c=0<=w?++V:--V)X.push(A.readUInt16());return X}(),A.pos+=2,m=function(){var V,X;for(X=[],c=V=0;0<=w?V<w:V>w;c=0<=w?++V:--V)X.push(A.readUInt16());return X}(),d=function(){var V,X;for(X=[],c=V=0;0<=w?V<w:V>w;c=0<=w?++V:--V)X.push(A.readUInt16());return X}(),g=function(){var V,X;for(X=[],c=V=0;0<=w?V<w:V>w;c=0<=w?++V:--V)X.push(A.readUInt16());return X}(),n=(this.length-A.pos+this.offset)/2,l=function(){var V,X;for(X=[],c=V=0;0<=n?V<n:V>n;c=0<=n?++V:--V)X.push(A.readUInt16());return X}(),c=Q=0,K=i.length;Q<K;c=++Q)for(_=i[c],r=E=F=m[c];F<=_?E<=_:E>=_;r=F<=_?++E:--E)g[c]===0?a=r+d[c]:(a=l[g[c]/2+(r-F)-(w-c)]||0)!==0&&(a+=d[c]),this.codeMap[r]=65535&a}A.pos=B}return e.encode=function(A,t){var r,n,i,a,l,c,d,g,B,w,h,F,m,_,Q,E,K,V,X,Y,$,O,G,rA,I,H,R,k,oA,nA,cA,tA,fA,dA,bA,U,N,P,j,Z,aA,lA,uA,yA,FA,_A;switch(k=new xn,a=Object.keys(A).sort(function(EA,JA){return EA-JA}),t){case"macroman":for(m=0,_=function(){var EA=[];for(F=0;F<256;++F)EA.push(0);return EA}(),E={0:0},i={},oA=0,fA=a.length;oA<fA;oA++)E[uA=A[n=a[oA]]]==null&&(E[uA]=++m),i[n]={old:A[n],new:E[A[n]]},_[n]=E[A[n]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(_),{charMap:i,subtable:k.data,maxGlyphID:m+1};case"unicode":for(H=[],B=[],K=0,E={},r={},Q=d=null,nA=0,dA=a.length;nA<dA;nA++)E[X=A[n=a[nA]]]==null&&(E[X]=++K),r[n]={old:X,new:E[X]},l=E[X]-n,Q!=null&&l===d||(Q&&B.push(Q),H.push(n),d=l),Q=n;for(Q&&B.push(Q),B.push(65535),H.push(65535),rA=2*(G=H.length),O=2*Math.pow(Math.log(G)/Math.LN2,2),w=Math.log(O/2)/Math.LN2,$=2*G-O,c=[],Y=[],h=[],F=cA=0,bA=H.length;cA<bA;F=++cA){if(I=H[F],g=B[F],I===65535){c.push(0),Y.push(0);break}if(I-(R=r[I].new)>=32768)for(c.push(0),Y.push(2*(h.length+G-F)),n=tA=I;I<=g?tA<=g:tA>=g;n=I<=g?++tA:--tA)h.push(r[n].new);else c.push(R-I),Y.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*G+2*h.length),k.writeUInt16(0),k.writeUInt16(rA),k.writeUInt16(O),k.writeUInt16(w),k.writeUInt16($),aA=0,U=B.length;aA<U;aA++)n=B[aA],k.writeUInt16(n);for(k.writeUInt16(0),lA=0,N=H.length;lA<N;lA++)n=H[lA],k.writeUInt16(n);for(yA=0,P=c.length;yA<P;yA++)l=c[yA],k.writeUInt16(l);for(FA=0,j=Y.length;FA<j;FA++)V=Y[FA],k.writeUInt16(V);for(_A=0,Z=h.length;_A<Z;_A++)m=h[_A],k.writeUInt16(m);return{charMap:r,subtable:k.data,maxGlyphID:K+1}}},e}(),Hd=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="cmap",A.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new ih(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},A.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=ih.encode(t,r),(i=new xn).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),uw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="hhea",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},A}(),fw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="OS/2",A.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},A}(),hw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="post",A.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var a;for(n=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=(function(){var l,c,d;for(d=[],a=l=0,c=this.file.maxp.numGlyphs;0<=c?l<c:l>c;a=0<=c?++l:--l)d.push(t.readUInt32());return d}).call(this)}},A}(),dw=function(e,A){this.raw=e,this.length=e.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},gw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="name",A.prototype.parse=function(t){var r,n,i,a,l,c,d,g,B,w,h;for(t.pos=this.offset,t.readShort(),r=t.readShort(),c=t.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+c+t.readShort()});for(d={},a=B=0,w=n.length;B<w;a=++B)i=n[a],t.pos=i.offset,g=t.readString(i.length),l=new dw(g,i),d[h=i.nameID]==null&&(d[h]=[]),d[i.nameID].push(l);this.strings=d,this.copyright=d[0],this.fontFamily=d[1],this.fontSubfamily=d[2],this.uniqueSubfamily=d[3],this.fontName=d[4],this.version=d[5];try{this.postscriptName=d[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=d[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=d[7],this.manufacturer=d[8],this.designer=d[9],this.description=d[10],this.vendorUrl=d[11],this.designerUrl=d[12],this.license=d[13],this.licenseUrl=d[14],this.preferredFamily=d[15],this.preferredSubfamily=d[17],this.compatibleFull=d[18],this.sampleText=d[19]},A}(),Bw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="maxp",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},A}(),pw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="hmtx",A.prototype.parse=function(t){var r,n,i,a,l,c,d;for(t.pos=this.offset,this.metrics=[],r=0,c=this.file.hhea.numberOfMetrics;0<=c?r<c:r>c;r=0<=c?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var g,B;for(B=[],r=g=0;0<=i?g<i:g>i;r=0<=i?++g:--g)B.push(t.readInt16());return B}(),this.widths=(function(){var g,B,w,h;for(h=[],g=0,B=(w=this.metrics).length;g<B;g++)a=w[g],h.push(a.advance);return h}).call(this),n=this.widths[this.widths.length-1],d=[],r=l=0;0<=i?l<i:l>i;r=0<=i?++l:--l)d.push(this.widths.push(n));return d},A.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},A}(),Sd=[].slice,ww=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(t){var r,n,i,a,l,c,d,g,B,w;return t in this.cache?this.cache[t]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,l=(c=new xn(r.read(i))).readShort(),g=c.readShort(),w=c.readShort(),d=c.readShort(),B=c.readShort(),this.cache[t]=l===-1?new mw(c,g,w,d,B):new vw(c,l,g,w,d,B),this.cache[t]))},A.prototype.encode=function(t,r,n){var i,a,l,c,d;for(l=[],a=[],c=0,d=r.length;c<d;c++)i=t[r[c]],a.push(l.length),i&&(l=l.concat(i.encode(n)));return a.push(l.length),{table:l,offsets:a}},A}(),vw=function(){function e(A,t,r,n,i,a){this.raw=A,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),mw=function(){function e(A,t,r,n,i){var a,l;for(this.raw=A,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;l=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&l;)a.pos+=1&l?4:2,128&l?a.pos+=8:64&l?a.pos+=4:8&l&&(a.pos+=2)}return e.prototype.encode=function(){var A,t,r;for(t=new xn(Sd.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)t.pos=this.glyphOffsets[A];return t.data},e}(),Cw=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Tr(A,vr),A.prototype.tag="loca",A.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(t.readUInt32());return a}).call(this)},A.prototype.indexOf=function(t){return this.offsets[t]},A.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},A.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,l=0;l<n.length;++l)if(n[l]=i,a<r.length&&r[a]==l){++a,n[l]=i;var c=this.offsets[l],d=this.offsets[l+1]-c;d>0&&(i+=d)}for(var g=new Array(4*n.length),B=0;B<n.length;++B)g[4*B+3]=255&n[B],g[4*B+2]=(65280&n[B])>>8,g[4*B+1]=(16711680&n[B])>>16,g[4*B]=(4278190080&n[B])>>24;return g},A}(),Qw=function(){function e(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var A,t,r,n,i;for(t in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[t],A[t]=n[r];return A},e.prototype.glyphsFor=function(A){var t,r,n,i,a,l,c;for(n={},a=0,l=A.length;a<l;a++)n[i=A[a]]=this.font.glyf.glyphFor(i);for(i in t=[],n)(r=n[i])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(i in c=this.glyphsFor(t))r=c[i],n[i]=r;return n},e.prototype.encode=function(A,t){var r,n,i,a,l,c,d,g,B,w,h,F,m,_,Q;for(n in r=Hd.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(A),h={0:0},Q=r.charMap)h[(c=Q[n]).old]=c.new;for(F in w=r.maxGlyphID,a)F in h||(h[F]=w++);return g=function(E){var K,V;for(K in V={},E)V[E[K]]=K;return V}(h),B=Object.keys(g).sort(function(E,K){return E-K}),m=function(){var E,K,V;for(V=[],E=0,K=B.length;E<K;E++)l=B[E],V.push(g[l]);return V}(),i=this.font.glyf.encode(a,m,h),d=this.font.loca.encode(i.offsets,m),_={cmap:this.font.cmap.raw(),glyf:i.table,loca:d,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.encode(t)},this.font.os2.exists&&(_["OS/2"]=this.font.os2.raw()),this.font.directory.encode(_)},e}();WA.API.PDFObject=function(){var e;function A(){}return e=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},A.convert=function(t){var r,n,i,a;if(Array.isArray(t))return"["+function(){var l,c,d;for(d=[],l=0,c=t.length;l<c;l++)r=t[l],d.push(A.convert(r));return d}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(n in i=["<<"],t)a=t[n],i.push("/"+n+" "+A.convert(a));return i.push(">>"),i.join(`
`)}return""+t},A}();const Fw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAMCAYAAACNzvbFAAAAAXNSR0IArs4c6QAAA0NJREFUOE91019sU2UYx/Hv6Tk9W7v+SWm3MecamcAGyzoGjGRcCIaEZKgwnUFvEFwMGWGZhpjFGzEhJGiCCQQNF0aN8wIjMUQNGSbEiToYTqsDGjpwLnTtxkZX2q3t6ek5PUd7jPGK3+Xzvvkk7/M8r2BagbmFLO+fjfD1cJxYPE+59kSwij1dj9N3oInGoIdcXuPC8D0++vwu4YkUhYKJ2y3R2RHg0Ktr2LUjiGSzIRiGYY5cnaX39TGqq+2s8MoohRKlEni9EnP3C4DAm4fX881wgp+vL9Ae8rKU0RAEAUUt4fNJjIczvPBMPWdOdCLcvvvQ3NFzmfY2D7ejWRyVIj3PNmBgcuHiDOX0PFfPxM0MU/eyuJwS8bkC27ZW09LsZfSXJOPhFB0bvfzxz519exsRet/40bwZTTMTL/Di7gaODbbj81ZYWHpJ5eTZW8w/ULg2nqQ6UIGimHz4XgebWgPWC4qawe+RJCfP3MLlFMkXDIS60BfmpjYf0TtZfvq2i1qfBIaGYJNAtKNqJQaPhbk6Pk8urzPwWjN9+5st8FERxLohc8+ux0gt6nz16XY8yjTmlc8wVz6JffPz5AQXh98aJzKZwmazcfp4B52bax8Jlg+EYPt5M9TiITK5zOXzOwn6VMyP+7BNjmJsP8BM6CAH37lDOqMiyxIfnNhCS5OPClm0YBPQNIPMUhGbDQwDhCNHx8yR0XkyyxodG/y8faSNGnuaynP9VCYmuFH/EscntjK7LFNb7WBljYPuriAbQwFku428onPl2n2GvpzC75PRdRCmZzJm9/4fcLtEHqY1nA47q1dV0VqTprdwGu/SFNdrX+ZUtJN1bfXciKT5868ca1e7WeGrIJ7IE0vkCDY4mZrOMdi/HqG8+mPheY6+O2FNOeCXSaZUXFUS3Ruy7Fs+hVuZY3HbAEOxLZy7uIjfL1NQdfJ5A49LQi8ZqEV4ZW8j/b3r/kXLvYklslz6PsHYbws8WFStH7Uq6ODQ03nWRj/BFCWWnhrg12Qd343MMh3LohYNnJUiTWs87N7ZQHurH9ku/o+WYcM0yeY0FKVkoU6niLMCxGIO9CJUVoFchVoskc3paLph9dXtslvYf/kbJpJvaPuWCZUAAAAASUVORK5CYII=",yw="/assets/notPass.DHv04sgr.png",bw="/assets/pass.CAwr4jML.png",Uw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABt9JREFUaEPNml1sFFUUx8/sbLsfQNld+oFl2yVUo5hA/XrBR014kfBsCEiiL/igiQ9GjPHJF4gPJPIAPmBUlJCYGDBqAR8QUIIoUKiIgEuZdpe0dru7Xbb70d2ZMWfYO969c2fmzrLWTjLZduZ+nN/8z7l37rkjgbdDcijudM+pF93hptO9pmoinbNl6P9F6nt5VLThLIQjlJsh5L7bLzHWrT0Wys5Yct3u1/Jw7DrmGY7X6BMbY8t5efp0WZ7BeI0+sTxbzmyDB0IbxxrvKxQKO0Kh0EuyLD8jSVI/AMitWs/UU3Vdv6eq6uVyufxdV1fXYQDQGBgCRkMZzdj5Pw3gw3KFQuGV5cuXvy9J0kCbDHdsRtf1yWKx+EFXV9fnDRgWqgmGB8JC+CqVyr5AILBrMQDYPqrV6sFgMPhWQx2eQhZFCJShAADg7/8KQaBsYBDKVIUX1AYAntlsdmc0Gj3YihK6LjwF/Buwkv2gl8vldsVisc8oZYg6BgwvsAmIrKrqTZ/PF/cCggAX7v4F5+/ehmx5Xqjqis4gbH96E/RHY+DzYffWQ9O0lCzLjwOAynMzFsSEmJmZ2dnd3X1AyBKisa7DsbFLcPLW716qGWVfHHgUtmx8FkKhkG3dTCbzek9PD6pigSGBjZVNlwIAf7VaPdLZ2blV1CJUolUI7OP5njhsHX4OIpGIbZcLCwvfBAKBbQBQZ1ysaYJDKJwTjFNV1RuiboUQx8cuwYkWlCBWb+peY4BEo1FbkIZ7rW8ogqrgacwtlqEW1cBT1/WsyGTXDgi0XAQEDZckKdZQhFbFAoJqEJC8m1s9rDvR7QuCgCRJ6HsIgSeJFRPEDHIKJOcE0k4ID4ogCPoeC6IR12JBOhquZctyZXIcPv7ljJtowvc9KIKuVWMUsYAYbkXFCNcQVOPQhR/ht7QibKhbQY8gRBEzTlhFCAgqMmvXuaZpsP/ccdA6b0BkWQlWhCogSToUSmGYK4XgzlQvLNSxKfHDA8gqSpEmEPrdSghkfO4nuJo5Bj4ftmM96qoM1yfikM7aD6VsrYcEMYKdgJA5BGFsFbl7/2e4lvlK6FGPjifgniBMiyDmXOIJpFSfhdOpPaDqGGvuR02V4ez19VCtubvZooJcnjkMqeIlV4JscRn4JN2In/HpHriRWuNaZxFBdBhR3oOaVnI0CgO9Wu+A9fG0Ua5YCcLZ608sHZCaVoYR5V3TIE3zg6br4JfRTcEYpTAmosvm4bH+qSbDT1zZCJrGfz0nBRdNkbpWge+V3aaBxfleuHinB55aqxjrydE7CVi3+m9Y2ztjefqnRjcAjmROx6KBoBEjym6oaRXTnvRsDK4pA8a754a1ExBfhe+ZzQcG/A+jG5aOa6ElV2a+hMnir01GZQorQNV80BeZ4xqbyiDs4NICuV+bgtOpvVSezNk+XCjg8DtfCSwtELTmVv4k/JkbcTUMC+Cwi8OvyNHOGMFhRegVZWz2axgvnHW072b6EUhO9YkwGGVaBCHvWk2vKMIg+NJ44PxRgEAS+mM5kH0PUkw4MqVnozCR6Yb75aAwRLtAzGQcpQgudXEc5Y6ZCLLv9AjczlmHWk/WU4UFFcGlLvqq62s8Wep21Ov1MVmWue8WCPLphTNw8V771iOb+9fBC09udMyiqKqa9vv9OJa7LqzMNXupVDocCoW28J4wLqwKhQKcu/UHzJdK0EpWkW431NEBw2sS0NvbC+Fw2FbUcrn8bTgc3uG01CXuZYJMTk7uiMfj++1aRVXK5TJUq1XAv1s9JEkysovBYBACgYBtphHbT6VSbwwMDOB2g23ygQah3euqnXu1anir9RpuNcy4lSWLQpa89OLKryjK9sHBwY9a7byd9SYmJt5MJBJfMGpYEnTYJ51JMV0sn8/vXbly5WvtNMprW3Nzc4cikcg7HAj0acOvbZPY9FCcy+X2RCKRV70a0I7y+Xz+k2g0ihD49C35LDplSoDojAoqQiZIQ51kMrktkUi8vVgxgzGhKMqHQ0NDR6gcFpnJzdjggRAgOitvJrVJcjuZTL7c19e3ORgMDsuyvFokPyyojKqq6lSlUrk6PT19amho6CiTrCaJBuJO3I0eVhV6FEMwohD5JZkXdrua2Gy/9fSgBG9/nd6KJsaSJ8/+WrauhTZDG27GQtAwdLwJCmAWo/fO8W/ypFkY8j9v/118e5oa1egUEr1R5KaCHSALwoOhr3H32nmd8/YVLfvu1FcQD6MGgXOCYRXgfv1g9xTp6zQEqwC7K+zVrZxASCyxn3HwYsziWqwhvO1rdv6h63h1r//8oxo7INaNvBruppjdZ06um/ZeDXEq77Ut1q14kK4ApNI/12uBidpnTjUAAAAASUVORK5CYII=",Lw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAABUxJREFUaEPtms9v40QUx9/EaWyHkib9iaBtkCKx4oAWcYATVy4gzmhFWQkuywEkDogTJy4gDkhwYC8gwaIV5wUuCPgD9oBUgYQWKaC0AW3a0qRWNo7b2EbPmzGv4xl7nIZdFiWS5daeH+8z3/c8njdmkO/HUoqn3UvrJUy5mXbvVDWdzsUy9H+d+nmGihouQqRCZRnC72edubFZ7YlQKmP5ddU5MTiqjmWG4zV6YGNiuTyjT8vKDMZr9MDyYrm4DRkINU40vuA4zpZt288ahvEEY+xBADAmtV6o54dh+Kfv+z+6rvtNpVK5AgCBAMPBKFTUjMr/KUAByzmO89L8/PzbjLGNKRme2kwYhrv9fv+dSqXy+RhGhDoFIwMRIQrD4fAD0zQv3QkAsQ/P8y5blvXGWB2ZQglFOFSkAADg+a5CcCgFDELFqsiCOgLA4/Dw8GKtVrs8iRJhqD0F/BOwTP3Q63a7lxYXFz8jynB1IhhZYHMQw/f9G4VCYT0PCAIEt34FGNwAFvS1qgZgwej+p6FkL0GhgN0nf0EQtA3DOAcAvszNRJAYYn9//+Ly8vLHWpZwjRGidx0MdztPtahsNzgH1tKTYNu2su7BwcGrKysrqEoChgc2Vo5dCgCKnuddLZVKz+taFClxdB2MQX4I7KMzqIO5/BRUq1Vll8fHx9dM07wAACPBxU5NcAiFc0J0+L7/i65bnRUCLb95azMCqdVqSpCxez06VgRVwSOaWxKPWlQDjzAMD3Umu2lA6IKg4YyxxbEiVJUECKrBQXpZbjUtiBwgwBhD30MIPHisxCBxkBOQbhpIBDFhYMva1XEtrMcYQ98TQQLuWiLI3Ni1lCyjfhOKzvdZomnfzwGCrnUiKJIAidyKxIjUEFRjdPAdzJ38rm1oVsGcIFyROE5ERTgIKvKXqvMgCGC09xWUgk6Wfdr3c4AsEUVOgdB3K22Qk841MMM9bUOzCp4RJAp2DsLnEITJVOQ/AhLPJTOQmSKKYJkwRmauFY0nPn5nrjVzrdsjwBijE+IsRu6JGMEZ/n/xinLPg8TJOKIILnX3VUvdu/j4xaXuCllYKV/j+VJ3bjQa/WQYxkOypyWCeHs/gB38lvVSq32/3X8E5lcfT82i+L7/R7FYfExnYRWv2QeDwRXbtp+TWYILK8dxYHD4M3juACbJKtJ2AyiBcd/DsLq6CuVyWQnvuu7X5XJ5K22py90rBtnd3d1aX1//KG1x5boueJ4XzfST/hhjUXbRsiwwTVOZacT22+32axsbG7jdoEw+UBDqXtsq95rU8Enrjd3qvOBWiSwKX/LSxVWx1Wq9uLm5+eGknU+z3s7Ozuv1ev0LQY1Egg77pJmU2MV6vd57CwsLr0zTqLxtHR0dfVKtVt+SQKBPR36tTGLTR3G32323Wq2+nNeAaZTv9Xqf1mo1hMDRT+SzaMqUA9GMCirCJ8hInWazeaFer795p2IGY6LVar3faDSukhwWnzfi2JCBcCCalY+T2jy53Ww2X1hbW3vGsqzzhmE8oJMf1lTG933/5nA43O50Ot82Go0vhWQ1f9Pl7iTd6BFVoU8xBOMK8TPPvIjb1dxm9dbT7RKy/XW6Fc2N5SMvnhNb11qboWM3EyEoDI03TQHiYnTvHP/mIy3C8P9l++/629PkqUZTSHSjKEsFFaAIIoOh16R77bLOZfuKiX138hXEWdTgcGkwogLSrx9Uo0ivUwhRAXFXOK9bpYHwWBI/45DFWMK1RENk29fi/EPr5HWvf/2jGhWQ6EZ5Dc9STPWZU+amfV5D0srnbUt0KxlkJgCv9Dfa+0eJPECHGQAAAABJRU5ErkJggg==",Ew="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAeVJREFUOE+tlD9oU1EUh7/z8m5NGqRoERXFP1irhSYv6GYHQRepu4OzQhdBsa8OLhkcii92VCx0cnAouDh0bEFXMVerlCqS4tCCIg5G2ryXHElMapM8WwfveM/vfPecc3/3Cv9hSSdDbwzsCpO9Y4KcB4aAo6AlkCWFeZPe80jyC9HWvDbIxu3M6YQ4z1UY2KbAd27NuSwPXq+0NJuQjTuZjFNzFoC9/9DhWjVRG0lOvv1U1zYgmj/bG5WjZeBQB+ALKlcQnQZOdsSW3NLgsMzOVhuQcDx3F9F7MRWsmcAeDMe9IoLXNT/Vaz2FNzO/IX7OgmZjIN9MYPtDP/sepD7k9iUyZ+4XR0XzOFHZCwGnS6T8MAW7O/JzHxU9EXPIVxPYfdKcR/kvw1w3gU1V/OyKIEfiNG5p0G2241UAEycygZXQ91aBAzHxnyaw6RbkJTASW43qRUSeAX0x8XkT2AsNSMX3bglMxUFUeSLCVSDRfTuM9RTs46ZPjiWjct8H4HCHsIJwCeUpsL8tJiy7391hmX4V/nHsxJkhR6MXIP07OlZYjRw5l5osljYd20pan8ieclXmFI5vA1p0q9VRmVr83PV2Whv1Vxyl0jdF5XqbNxSrwowpDT6sW33rIV1fwY6txAh+AbLgpb7IpONgAAAAAElFTkSuQmCC";v1([m1,C1,Q1,F1,y1,b1,U1]);const xw={name:"JobApplicationReport",components:{VChart:Ag},data(){return{userInfo:{avatar:"/@/assets/default-avatar.png",name:"张某三",interviewTime:"2021-06-30 18:00",duration:"18分 12秒",idNumber:"24893119999999999",phone:"14893725981",pass:60,visual_analysis_done:!1},totalScore:52,abilityItems:[],isPassed:!1,hireRecommendation:"",failReason:"候选人答题过程中存在非正常表现和应答，同时，可行性较为不足，候选人表现出来的综合能力也不符合岗位要求的行为和动机表现，在特定学习方面，候选人未能呈现出明显的优势和发展潜质。",qualityDetails:{strengths:[],weaknesses:[]},activeTab:"comprehensive",tabs:[{id:"comprehensive",name:"综合评价"},{id:"ability",name:"能力素质"},{id:"cheat",name:"作弊检测"},{id:"psychology",name:"心理检测"},{id:"body",name:"肢体检测"},{id:"personal-info",name:"个人详细信息",isInfo:!0},{id:"answers",name:"问答记录"},{id:"other-answers",name:"其余答题详情",isLink:!0}],isNavFixed:!1,navHeight:0,navOffsetTop:0,loading:!1,error:null,analysisMap:{clear_expression:"表达清晰",logical_thinking:"逻辑思维能力强",professional_knowledge:"专业知识扎实",communication_skills:"沟通能力出色",problem_solving:"问题解决能力强",team_collaboration:"团队协作意识好",learning_ability:"学习能力强",lack_experience:"经验不足",weak_professional:"专业知识有待提升",poor_expression:"表达能力需要提高",weak_logic:"逻辑思维需要加强",weak_communication:"沟通技巧需要改进",weak_teamwork:"团队协作意识不足",weak_learning:"学习能力有待提升"},psychologyData:{score:35,description:"轻微焦虑或负面情绪，仍具备岗位适应力。候选人在某些方面可能存在轻微的心理压力，但总体上仍保持稳定，基本符合岗位要求。",recommendation:"可考虑录取"},redLineQuestions:{allCorrect:!1,failedQuestions:[]},handVerificationData:{left:[],right:[]},reportTime:"2025.5.19",reportId:"2489372598",isMobile:!1,showInfoDialog:!1,userProfile:{name:"",gender:"",age:"",education:"",phone:"",email:"",address:"",position:"",experience:"",expectedSalary:"",idCard:"",height:"",weight:"",nativePlace:"",politicalStatus:"",ethnicity:"",maritalStatus:"",specialties:"",schoolName:"",major:"",graduationDate:"",currentCompany:"",department:""},showBodyVerification:!1,competencyMap:{communication_cooperation:"团队协作能力",learning_ability:"应变能力",service_awareness:"服务意识",customer_insight:"客户需求洞察力",position_matching:"应变能力",communication_expression:"沟通表达能力"},radarData:{indicator:[{name:"团队协作能力",value:50,max:100},{name:"应变能力",value:50,max:100},{name:"服务意识",value:50,max:100},{name:"客户需求洞察力",value:50,max:100},{name:"应变能力",value:50,max:100},{name:"沟通表达能力",value:50,max:100}],values:[50,50,50,50,50,50]},exporting:!1,radarChartInstance:null,interviewRecords:[],followUpQuestions:[],noTableHeight:0}},async created(){await this.fetchApplicationDetail()},mounted(){this.$nextTick(()=>{const e=this.$refs.navTabs;e&&(this.navHeight=e.offsetHeight,this.navOffsetTop=e.offsetTop,window.addEventListener("scroll",this.handleScroll))}),this.checkDevice(),window.addEventListener("resize",this.checkDevice),this.$nextTick(()=>{this.radarChartInstance=this.$refs.radarChart}),this.$nextTick(()=>{this.$refs.radarChart&&(this.radarChartInstance=this.$refs.radarChart)})},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.checkDevice)},computed:{radarOption(){return{radar:{indicator:this.radarData.indicator,center:["50%","50%"],radius:"65%",splitNumber:4,shape:"circle",axisName:{color:"#666",fontSize:12,formatter:e=>{const A=this.radarData.indicator.findIndex(i=>i.name===e),t=this.radarData.values[A],n={团队协作能力:"团队协作",应变能力:"应变能力",服务意识:"服务意识",客户需求洞察力:"需求洞察",沟通表达能力:"沟通表达"}[e]||e;return`${t}
${n}`}},nameGap:15,axisLabel:{show:!1},splitArea:{show:!0,areaStyle:{color:["#fff"]}},splitLine:{show:!0,lineStyle:{color:"#E7E9ED",type:"solid",width:1}},axisLine:{show:!0,lineStyle:{color:"#E7E9ED",width:1}}},series:[{type:"radar",symbol:"none",itemStyle:{normal:{lineStyle:{color:"#c1dafc",width:2},areaStyle:{type:"default",color:"rgba(193, 218, 252, 0.6)",shadowBlur:10,shadowColor:"rgba(193, 218, 252, 0.5)",shadowOffsetY:5}}},data:[{value:this.radarData.values}]}]}},getPsychologyScoreClass(){const e=this.psychologyData.score;return e<=20?"low-risk":e<=55?"medium-risk":"high-risk"},getPsychologyRiskLevel(){const e=this.psychologyData.score;return e<=20?"低风险":e<=55?"中风险":"高风险"}},methods:{async fetchApplicationDetail(){var e,A,t,r,n,i,a,l,c,d,g,B;try{const w=this.$route.query.id||this.$route.params.id;console.log(w),this.loading=!0;const h=await fetch(`https://backend.qicai321.com/api/job/application_detail?tenant_id=1&application_id=${w}`);if(!h.ok)throw new Error("获取数据失败");const F=await h.json();if(F.code===2e3){const m=F.data||{};if(this.reportTime=((e=m.application)==null?void 0:e.update_datetime)||"",this.userInfo={avatar:this.getFacePhoto(m.posture_photos)||"/@/assets/default-avatar.png",name:((A=m.applicant)==null?void 0:A.name)||"未知",interviewTime:((t=m.application)==null?void 0:t.interview_completion_time)||"-",duration:((r=m.application)==null?void 0:r.interview_duration_formatted)||"-",idNumber:((n=m.applicant)==null?void 0:n.id_card)||"-",phone:((i=m.applicant)==null?void 0:i.phone)||"-",pass:((a=m.application)==null?void 0:a.comprehensive_score)||0,visual_analysis_done:m.application.analysis_status.visual_analysis_done},this.reportId=((l=m.application)==null?void 0:l.report_id)||"",m.posture_photos&&Array.isArray(m.posture_photos)){const E=m.posture_photos.filter(V=>{var X,Y;return((X=V==null?void 0:V.description)==null?void 0:X.includes("left_"))||((Y=V==null?void 0:V.description)==null?void 0:Y.includes("左手"))})||[],K=m.posture_photos.filter(V=>{var X,Y;return((X=V==null?void 0:V.description)==null?void 0:X.includes("right_"))||((Y=V==null?void 0:V.description)==null?void 0:Y.includes("右手"))})||[];this.handVerificationData.left=E.map(V=>{var X,Y;return{url:(V==null?void 0:V.photo_url)||"/@/assets/default-image.png",description:this.getPhotoDescription((V==null?void 0:V.description)||""),part_verification:{is_correct_part:((X=V==null?void 0:V.part_verification)==null?void 0:X.is_correct_part)??!0,explanation:((Y=V==null?void 0:V.part_verification)==null?void 0:Y.explanation)||"手势验证通过"}}}),this.handVerificationData.right=K.map(V=>{var X,Y;return{url:(V==null?void 0:V.photo_url)||"/@/assets/default-image.png",description:this.getPhotoDescription((V==null?void 0:V.description)||""),part_verification:{is_correct_part:((X=V==null?void 0:V.part_verification)==null?void 0:X.is_correct_part)??!0,explanation:((Y=V==null?void 0:V.part_verification)==null?void 0:Y.explanation)||"手势验证通过"}}})}m.application&&(this.totalScore=m.application.comprehensive_score||0,this.hireRecommendation=m.application.hire_recommendation||"",this.failReason=m.application.hire_reason||"");const _=(d=(c=m.application)==null?void 0:c.comprehensive_analysis)==null?void 0:d.video_analysis_data;_!=null&&_.competency_scores?this.abilityItems=Object.entries(_.competency_scores).map(([E,K])=>({tag_name:this.getCompetencyName(E)||K.tag_name||E,weighted_score:Math.round(K.weighted_score||0)})):this.abilityItems=[{tag_name:"团队协作能力",weighted_score:0},{tag_name:"应变能力",weighted_score:0},{tag_name:"服务意识",weighted_score:0},{tag_name:"客户需求洞察力",weighted_score:0},{tag_name:"沟通表达能力",weighted_score:0}],_?this.qualityDetails={strengths:_.strengths||[],weaknesses:_.weaknesses||[]}:this.qualityDetails={strengths:[],weaknesses:[]},m.required_questions_summary&&(this.redLineQuestions={allCorrect:m.required_questions_summary.all_correct||!1,failedQuestions:m.required_questions_summary.failed_questions_details||[]});const Q=(g=m.scoring_summary)==null?void 0:g.total_score_obtained;this.psychologyData={score:Q||0,description:this.getPsychologyDescription(Q),recommendation:this.getHireRecommendation(Q)},_!=null&&_.competency_scores?this.updateRadarData(_.competency_scores):this.radarData={indicator:[{name:"团队协作能力",max:100},{name:"应变能力",max:100},{name:"服务意识",max:100},{name:"客户需求洞察力",max:100},{name:"沟通表达能力",max:100}],values:[0,0,0,0,0]},this.followUpQuestions=m.follow_up_records.map(E=>{let K=null;try{K=JSON.parse(E.user_text.replace(/'/g,'"')),console.log(K)}catch(Y){console.error("Failed to parse user_text:",Y)}const X=((K==null?void 0:K.text)||"暂无提问").replace(/^"|"$/g,"");return{...E,user_text:X}}),console.log(this.followUpQuestions),(B=F.data)!=null&&B.interview_progress&&(this.interviewRecords=this.processInterviewRecords(F.data.interview_progress),console.log(this.interviewRecords))}}catch(w){console.error("获取应用详情失败:",w),this.error=w.message}finally{this.loading=!1}},formats(e){return console.log(e),`${e}分`},format(e){return`${e}分`},scrollToSection(e){if(e==="other-answers"){const t=this.$route.query.id||this.$route.params.id,r=window.location.origin;window.open(`${r}/#/topic?applicationId=${t}`,"_blank");return}this.activeTab=e;const A=this.$refs[e];A&&A.scrollIntoView({behavior:"smooth"})},handleScroll(){const e=window.pageYOffset||document.documentElement.scrollTop;this.isNavFixed=e>this.navOffsetTop,this.updateActiveTab(e)},updateActiveTab(e){const A=this.navHeight,t=this.tabs.map(r=>{const n=this.$refs[r.id];return{id:r.id,top:n.getBoundingClientRect().top+window.pageYOffset-A-20}});for(let r=t.length-1;r>=0;r--)if(e>=t[r].top){this.activeTab=t[r].id;break}},getChineseAnalysis(e){return this.analysisMap[e]||e},getPsychologyDescription(e){return e===void 0?"未进行心理测评或数据缺失":e<=20?"心理状态健康，情绪稳定、认知正常。候选人在心理测评中表现出稳定的情绪状态和健康的心理特质，适合岗位要求。":e<=35?"轻微焦虑或负面情绪，仍具备岗位适应力。候选人在某些方面可能存在轻微的心理压力，但总体上仍保持稳定，基本符合岗位要求。":e<=55?"存在一定情绪波动或压力反应。候选人在测评中表现出一定程度的心理压力或情绪波动，建议进一步面谈评估。":e<=70?"心理压力较大，可能影响工作稳定性。候选人在测评中表现出较明显的心理压力或情绪不稳定性，建议慎重录用或考虑调岗。":"可能存在较严重心理或精神问题。候选人在测评中表现出明显的心理或情绪问题，不建议录用。"},getHireRecommendation(e){return e===void 0?"无法给出建议":e<=20?"建议优先录取":e<=35?"可考虑录取":e<=55?"建议进一步面谈评估":e<=70?"慎重录用或建议调岗":"不建议录用"},getPhotoDescription(e){return{left_palm:"左手手心",left_back:"左手手背",left_fist:"左手腕拳",right_palm:"右手手心",right_back:"右手手背",right_fist:"右手腕拳",左手手心:"左手手心",左手手背:"左手手背",左手腕拳:"左手腕拳",右手手心:"右手手心",右手手背:"右手手背",右手腕拳:"右手腕拳"}[e]||e},getHandPhotos(e){return(this.handVerificationData[e]||[]).map(t=>({url:t.url,status:"normal",photo_id:1,detections:[],description:t.description,photo_index:1,analysis_model:"",part_verification:t.part_verification,analysis_timestamp:"",overall_assessment:"正常"}))},handleImageError(e){const A=e.target;A&&(A.src="/@/assets/default-image.png")},checkDevice(){this.isMobile=window.innerWidth<=768},async handleTabClick(e){e.isInfo?(await this.fetchUserProfile(),this.showInfoDialog=!0):e.isLink?this.scrollToSection(e.id):this.scrollToSection(e.id)},handleDialogClose(){this.showInfoDialog=!1},async fetchUserProfile(){try{const e=this.$route.query.application_id,t=await fetch(`https://backend.qicai321.com/api/system/wechat/user/profile/get?user_id=${e}&tenant_id=1`);if(!t.ok)throw new Error("获取用户信息失败");const r=await t.json();if(r.success&&r.profile){const n=r.profile.basic_info,i=r.profile.educations[0]||{},a=r.profile.work_experiences[0]||{};this.userProfile={name:n.name||this.userInfo.name,gender:n.gender===1?"男":"女",age:n.age||"",education:this.getEducationLevel(i.degree),phone:n.phone||this.userInfo.phone,email:"",address:n.current_address||"",position:a.position||"",experience:this.formatWorkExperience(a),expectedSalary:n.expected_salary?`${n.expected_salary}元/月`:"",idCard:n.id_card||"",height:n.height?`${n.height}cm`:"",weight:n.weight?`${n.weight}kg`:"",nativePlace:n.native_place||"",politicalStatus:n.political_status||"",ethnicity:n.ethnicity||"",maritalStatus:this.getMaritalStatus(n.marital_status),specialties:n.specialties||"",schoolName:i.school_name||"",major:i.major||"",graduationDate:i.end_date||"",currentCompany:a.company_name||"",department:a.department||""}}}catch(e){console.error("获取用户详细信息失败:",e)}},getEducationLevel(e){return{1:"专科",2:"本科",3:"硕士",4:"博士"}[e]||"未知"},formatWorkExperience(e){if(!e.start_date)return"无工作经验";const A=new Date(e.start_date),t=e.end_date?new Date(e.end_date):new Date;return`${Math.floor((t-A)/(365*24*60*60*1e3))}年`},getMaritalStatus(e){return e===0?"未婚":"已婚"},getPositionLabel(e,A){var n;const t=this.getPhotoType(e,A);return((n={left:{palm:"①左手手心",back:"②左手手背",fist:"③左手腕拳"},right:{palm:"④右手手心",back:"⑤右手手背",fist:"⑥右手腕拳"}}[e])==null?void 0:n[t])||`${e==="left"?"左":"右"}手部位${A+1}`},getDefaultDescription(e,A){var n;const t=this.getPhotoType(e,A);return((n={left:{palm:"手掌纹理清晰，活动自然",back:"手背皮肤正常，关节灵活",fist:"腕关节活动度正常"},right:{palm:"手掌纹理清晰，活动自然",back:"手背皮肤正常，关节灵活",fist:"腕关节活动度正常"}}[e])==null?void 0:n[t])||"手部动作正常"},getPhotoType(e,A){var i,a,l;const t=(i=this.handVerificationData[e])==null?void 0:i[A];if(!t)return null;const r=((a=t.description)==null?void 0:a.toLowerCase())||"";return r.includes("palm")||r.includes("手心")?"palm":r.includes("back")||r.includes("手背")?"back":r.includes("fist")||r.includes("腕拳")?"fist":(l=t.part_verification)!=null&&l.part_type?t.part_verification.part_type:["palm","back","fist"][A]||"unknown"},handleBodyVerificationClose(){this.showBodyVerification=!1},getCompetencyName(e){return{communication_cooperation:"团队协作能力",learning_ability:"应变能力",service_awareness:"服务意识",customer_insight:"客户需求洞察力",position_matching:"岗位匹配度",communication_expression:"沟通表达能力"}[e]},updateRadarData(e){if(!e)return;const A=Object.entries(e).map(([t,r])=>({name:this.getCompetencyName(t)||r.tag_name||t,score:Math.round(r.weighted_score||0)})).sort((t,r)=>r.score-t.score).slice(0,6);this.radarData={indicator:A.map(t=>({name:t.name,max:100})),values:A.map(t=>t.score)}},async ensureChartRendered(){var t,r;let e=0;const A=5;for(;!((t=this.$refs.radarChart)!=null&&t.chart)&&e<A;)await new Promise(n=>setTimeout(n,200)),e++;return(r=this.$refs.radarChart)==null?void 0:r.chart},getFacePhoto(e){var r;if(!e||!Array.isArray(e))return null;const A=["face","facial","面部","人脸","头像"],t=e.find(n=>{const i=((n==null?void 0:n.description)||"").toLowerCase();return A.some(a=>i.includes(a))});return(t==null?void 0:t.photo_url)||((r=e[0])==null?void 0:r.photo_url)},getQuestionTypeName(e){return{0:"视频问答题",1:"单选题",2:"多选题",3:"图片选择题",4:"问卷题",5:"开放问答题"}[e]||"未知题型"},processInterviewRecords(e){if(!e||!Array.isArray(e))return[];const A=e.filter(t=>(t.question_form===0||t.question_form===5)&&(t.video_answer||t.answer_data)).map(t=>{var r,n,i,a,l;return{question:t.question_text||"未提供问题",answer:((r=t.video_answer)==null?void 0:r.transcript)||((n=t.answer_data)==null?void 0:n.text_answer)||"",analysis:((a=(i=t.video_answer)==null?void 0:i.ai_analysis)==null?void 0:a.comment)||"",score:(l=t.video_answer)!=null&&l.ai_score?`${t.video_answer.ai_score}`:"",question_form:t.question_form,question_id:t.question_id,parent_question_id:t.parent_question_id,follow_up_questions:[],video_url:t.video_answer.video_url}});return e.filter(t=>t.question_form===5&&t.parent_question_id).forEach(t=>{var n,i,a,l;const r=A.find(c=>c.question_id===t.parent_question_id);r&&r.follow_up_questions.push({question:t.question_text||"未提供问题",answer:((n=t.video_answer)==null?void 0:n.transcript)||"",analysis:((a=(i=t.video_answer)==null?void 0:i.ai_analysis)==null?void 0:a.comment)||"",score:(l=t.video_answer)!=null&&l.ai_score?`${t.video_answer.ai_score}分`:"",question_form:t.question_form,question_id:t.question_id,parent_question_id:t.parent_question_id,follow_up_questions:[],video_url:t.video_answer.video_url})}),A},getProgressColor(e){return e>=80?[{color:"#00b050",percentage:0},{color:"#6aff05",percentage:100}]:[{color:"#f7681d",percentage:0},{color:"#fdd1bb",percentage:100}]},formatAnalysis(e){return e?e.replace(/^\s+/,"").replace(/【/g,`
【`).replace(/^\n/,""):""},extractAssessmentPoints(e){if(!e)return[];const A=/【([^】]+)】评价：([^【]+)(?=【|$)/g,t=[];let r;for(;(r=A.exec(e))!==null;){const n=r[1].trim(),i=r[2].trim();let a="";i.includes("优秀")?a="优秀":i.includes("良好")?a="良好":i.includes("一般")?a="一般":i.includes("较差")?a="较差":a="一般";const l=i.replace(/(优秀|良好|一般|较差)，/,"").trim();t.push({name:n,score:a,detail:l})}return t},getScoreClass(e){switch(e){case"优秀":return"score-excellent";case"良好":return"score-good";case"一般":return"score-average";case"较差":return"score-poor";default:return"score-average"}},getPsychologyScoreClass(){const e=this.psychologyData.score;return e<=20?"low-risk":e<=55?"medium-risk":"high-risk"},getPsychologyRiskLevel(){const e=this.psychologyData.score;return e<=20?"低风险":e<=55?"中风险":"高风险"},async exportPDF(){try{this.exporting=!0;const e=document.querySelector(".report-container");if(!e)throw new Error("未找到要导出的内容");const A={allowTaint:!1,useCORS:!0,scale:2,logging:!1,backgroundColor:"#ffffff",height:e.scrollHeight,windowHeight:e.scrollHeight,imageTimeout:0,onclone:d=>{const g=d.createElement("style");g.innerHTML=`
              @media print {
                body {
                  -webkit-print-color-adjust: exact !important;
                  print-color-adjust: exact !important;
                }
                .report-container {
                  width: 100% !important;
                  margin: 0 !important;
                  padding: 20px !important;
                  display: block !important;
                }
                .report-header {
                  display: flex !important;
                  justify-content: space-between !important;
                  align-items: flex-end !important;
                  height: 80px !important;
                  margin-bottom: 30px !important;
                }
                 :v-deep(.status-tag),
                .status-tag[style*="background"],
                span[class="status-tag"] {
                  background: none !important;
                  background-color: transparent !important;
                  -webkit-print-color-adjust: exact !important;
                  print-color-adjust: exact !important;
                  color: #000000 !important;
                  border: 1px solid #000000 !important;
                }
                /* 确保内联样式不会覆盖我们的设置 */
                span[style*="background"].status-tag {
                  background: none !important;
                  background-color: transparent !important;
                }
                .header {
                  display: flex !important;
                  gap: 20px !important;
                }
                .header-right {
                  display: flex !important;
                  position: relative !important;
                }
                .nav-tabs {
                  display: flex !important;
                  gap: 32px !important;
                  justify-content: flex-start !important;
                  align-items: center !important;
                }
                .evaluation-result {
                  display: flex !important;
                  justify-content: space-between !important;
                  align-items: flex-start !important;
                }
                .score-section {
                  display: flex !important;
                  flex-direction: column !important;
                  gap: 24px !important;
                }
                .score-section-left {
                  display: flex !important;
                  justify-content: flex-start !important;
                  align-items: center !important;
                  gap: 16px !important;
                }
                .detection-results {
                  display: flex !important;
                  align-items: center !important;
                  gap: 8px !important;
                }
                .ability-quality {
                  display: block !important;
                }
                .quality-details {
                  display: block !important;
                }
                .quality-item {
                  display: flex !important;
                  gap: 24px !important;
                }
                .psychology_box {
                  display: flex !important;
                  flex-direction: row !important;
                  gap: 16px !important;
                  justify-content: space-between !important;
                  align-items: center !important;
                }
                .detection-section-content {
                  display: flex !important;
                  justify-content: space-between !important;
                  gap: 16px !important;
                }
                .fixed-btn {
                  display: none !important;
                }
                
                /* 确保所有flex容器在打印时保持flex布局 */
                [class*="flex"] {
                  display: flex !important;
                }
                
                /* 确保图表容器保持正确的尺寸 */
                .radar-chart {
                  width: 500px !important;
                  height: 350px !important;
                }
                
                /* 确保进度条样式正确 */
                .el-progress-bar__outer {
                  height: 8px !important;
                  background-color: #EBEEF5 !important;
                }
                
                .el-progress-bar__inner {
                  transition: none !important;
                }
                :v-deep(.el-progress__text){
                  display: none !important;
                }
                
                /* 确保文字样式正确 
                .text-[14px] {
                  font-size: 14px !important;
                  line-height: 16px !important;
                }*/
                
                /* 确保边距和间距正确 */
                .mt-6 { margin-top: 1.5rem !important; }
                .mb-4 { margin-bottom: 1rem !important; }
                .p-4 { padding: 1rem !important; }
                
                /* 确保圆角样式正确 */
                .rounded-lg { border-radius: 0.5rem !important; }
                
                /* 确保背景色正确 */
                .bg-white { background-color: #ffffff !important; }
                .bg-gray-50 { background-color: #F9FAFB !important; }
              }
            `,d.head.appendChild(g),d.querySelectorAll("*").forEach(w=>{w.style.visibility="visible",w.style.opacity="1"})}},t=await fd(e,A),r=595.28,i=841.89,a=t.toDataURL("image/jpeg",1),l=new WA({orientation:"p",unit:"pt",format:"a4",compress:!0}),c=Math.ceil(t.height*r/t.width/i);for(let d=0;d<c;d++){d>0&&l.addPage();const g=-d*i;l.addImage(a,"JPEG",0,g,r,t.height*r/t.width,"","FAST")}l.save(`AI面试结果检验报告_${this.userInfo.name||"未知"}_${this.reportId}.pdf`)}catch(e){console.error("导出PDF失败:",e),O1.error("导出PDF失败，请稍后重试")}finally{this.exporting=!1}},getFooterElement(e,A=0){const t=document.createElement("div");return t.style.background="#ffffff",t.style.width="calc(100% + 8px)",t.style.marginLeft="-4px",t.style.marginBottom="0px",t.classList.add("divRemove"),t.style.height=e+A+"px",t},isSplit(e,A,t){return e[A+1]?(e[A].localName!=="tr"&&(this.noTableHeight+=e[A].clientHeight),e[A].localName!=="tr"?e[A].offsetTop+e[A].offsetHeight<t&&e[A+1]&&e[A+1].offsetTop+e[A+1].offsetHeight>t:e[A].offsetTop+e[A].offsetHeight+this.noTableHeight<t&&e[A+1]&&e[A+1].offsetTop+e[A+1].offsetHeight+this.noTableHeight>t):!1},getBarChartOption(e){const A=e.weighted_score>=80?[{offset:0,color:"#00b050"},{offset:1,color:"#6aff05"}]:[{offset:0,color:"#f7681d"},{offset:1,color:"#fdd1bb"}];return{grid:{left:0,right:40,top:0,bottom:0,containLabel:!1},xAxis:{type:"value",show:!1,max:100},yAxis:{type:"category",show:!1},series:[{type:"bar",data:[e.weighted_score],barWidth:8,label:{show:!0,position:"right",formatter:"{c}分",fontSize:12,color:"#808080"},itemStyle:{borderRadius:[0,4,4,0],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:A}}}]}},formatTextWithBrackets(e){return e?e.replace(/【(.*?)】/g,'<span  style="color:#81b337; font-weight: 500;">【$1】</span>'):""},formatTextWithBrackets2(e){return e?e.replace(/【(.*?)】/g,'<span  style="color:#fb752f; font-weight: 500;">【$1】</span>'):""}}},Iw={key:0,class:"loading-state"},_w={key:1,class:"error-state"},Hw={key:2,class:"report-container"},Sw={class:"report-header"},Nw={class:"header-right"},Dw={class:"report-id"},Tw={class:"header"},Pw={class:"header-left"},Ow=["src"],kw={class:"header-right"},Mw={class:"left-section"},Kw={class:"info-row"},Rw={class:"value"},Vw={class:"info-row"},jw={class:"value"},Gw={class:"info-row"},qw={class:"value"},Ww={class:"right-section"},Jw={class:"info-row"},Xw={class:"value"},zw={class:"info-row"},Yw={class:"value"},Zw={class:"stamp"},$w={key:0,src:yw,alt:"不通过印章"},Av={key:1,src:bw,alt:"通过印章"},ev=["onClick"],tv={key:0,class:"el-icon-link"},rv={key:1,class:"el-icon-info"},nv={ref:"comprehensive",class:"evaluation-result pdfRef"},iv={class:"score-section"},sv={class:"score-section-left"},av={class:"score-value"},ov={class:"number"},lv={key:0,class:"status-tag"},cv={key:1,class:"status-tag",style:{background:"#67C23A"}},uv={class:"detection-results"},fv={class:"detection-item"},hv={class:"detection-item"},dv={class:"detection-item"},gv={class:"fail-reason"},Bv={class:"reason-header"},pv={class:"reason-content"},wv={class:"reason-content redline-section"},vv={class:"redline-header"},mv={key:0,class:"failed-questions"},Cv={class:"failed-list"},Qv={class:"question-text"},Fv={class:"radar-chart"},yv={ref:"ability",class:"ability-quality pdfRef"},bv={style:{"font-size":"16px","font-weight":"bold"}},Uv={style:{"font-size":"14px","font-weight":"normal"}},Lv={class:"score-text"},Ev={class:"quality-details"},xv={class:"quality-item"},Iv={class:"quality-left"},_v={class:"content"},Hv=["innerHTML"],Sv={key:1},Nv={class:"quality-right"},Dv={class:"content"},Tv=["innerHTML"],Pv={key:1},Ov={class:"detailed-evaluation"},kv={class:"ability-scores"},Mv={class:"ability-name"},Kv={class:"bar-chart-container"},Rv={ref:"cheat",class:"detection-section"},Vv={ref:"psychology",class:"psychology-section"},jv={class:"psychology_box"},Gv={class:"psychology_body"},qv={class:"psychology-desc"},Wv={class:"psychology-recommendation"},Jv={class:"value"},Xv={class:"duv-score"},zv={ref:"body",class:"body-detection-section"},Yv={class:"detection-section-header"},Zv={class:"detection-results mt-6"},$v={class:"grid grid-cols-2 gap-4"},Am={class:"position",style:{color:"#6c6c6c"}},em={class:"description text-gray-500 text-sm"},tm={class:"position",style:{color:"#6c6c6c"}},rm={class:"description text-gray-500 text-sm"},nm={ref:"answers",class:"report-footer"},im={class:"qa-section"},sm={class:"qa-content"},am={class:"space-y-4"},om={key:0,class:"mb-4"},lm={class:"flex items-start space-x-2 w-2/3"},cm={class:"px-2 py-1 rounded text-sm",style:{"font-size":"14px","font-weight":"600","font-family":"微软雅黑"}},um={class:"flex-1"},fm={class:"text-gray-800 color-black",style:{"font-size":"14px"}},hm={key:0,class:"mt-4"},dm={class:"flex space-x-4"},gm={class:"w-2/3"},Bm={class:"bg-white p-4 rounded-xl"},pm={class:""},wm={class:"flex flex-col space-x-2"},vm={class:"flex-1"},mm={class:"text-gray-700 mb-0",style:{"font-size":"14px","line-height":"20px",color:"#808080"}},Cm={class:"w-1/3"},Qm={class:"video-container"},Fm=["src","poster"],ym={key:0,class:"mt-2 border-gray-200"},bm={class:"flex items-start space-x-2"},Um={class:"flex-1"},Lm={class:"mt-2"},Em={class:"flex space-x-4"},xm={class:"w-2/3"},Im={class:"p-4 rounded-xl bg-white"},_m={class:""},Hm={class:"flex items-start space-x-2"},Sm={class:"flex-1"},Nm={class:"font-medium text-gray-800",style:{"font-size":"14px"}},Dm={class:"text-gray-700 mb-0",style:{"font-size":"14px","line-height":"20px",color:"#808080"}},Tm={key:0,class:"w-1/3"},Pm={class:"video-container"},Om=["src","poster"],km={class:"flex flex-col items-start bg-[#f8f8f8] p-4 rounded-lg"},Mm={class:"flex items-center"},Km={class:"text-[#409EFF] font-medium"},Rm={class:"flex ml-0"},Vm={class:"analysis-content flex-1"},jm={class:"text-[14px] text-[#666666] m-0 ml-4 analysis-text"},Gm={class:"flex items-center"},qm={class:"analysis-content flex-1"},Wm={class:"assessment-points"},Jm={class:"assessment-item"},Xm={class:"point-name"},zm={key:0,class:"separator"},Ym={class:"progress-bar",style:{"margin-left":"20px",width:"180px","font-size":"12px",color:"#808080"}},Zm={key:0,class:"mt-2 border-gray-200"},$m={class:"flex items-start space-x-2 pb-4"},A4={class:"flex-1"},e4={class:"text-gray-800 color-black",style:{"font-size":"14px"}},t4={class:"bg-white p-4 rounded-xl mb-4"},r4={class:""},n4={class:"flex flex-col space-x-2"},i4={class:"flex-1"},s4={class:"text-gray-700 mb-0",style:{"font-size":"14px","line-height":"20px",color:"#808080"}},a4={class:"info-content"},o4={class:"info-section"},l4={class:"info-grid"},c4={class:"info-item"},u4={class:"value"},f4={class:"info-item"},h4={class:"value"},d4={class:"info-item"},g4={class:"value"},B4={class:"info-item"},p4={class:"value"},w4={class:"info-item"},v4={class:"value"},m4={class:"info-item"},C4={class:"value"},Q4={class:"info-item"},F4={class:"value"},y4={class:"info-item"},b4={class:"value"},U4={class:"info-item"},L4={class:"value"},E4={class:"info-section"},x4={class:"info-grid"},I4={class:"info-item"},_4={class:"value"},H4={class:"info-item"},S4={class:"value"},N4={class:"info-item"},D4={class:"value"},T4={class:"info-section"},P4={class:"info-grid"},O4={class:"info-item"},k4={class:"value"},M4={class:"info-item"},K4={class:"value"},R4={class:"info-item"},V4={class:"value"},j4={class:"info-item"},G4={class:"value"},q4={class:"info-section"},W4={class:"info-grid"},J4={class:"info-item"},X4={class:"value"},z4={class:"info-item"},Y4={class:"value"},Z4={class:"info-item"},$4={class:"value"},AC={class:"info-item"},eC={class:"value"},tC={class:"info-item"},rC={class:"value"},nC={class:"info-section"},iC={class:"info-grid"},sC={class:"info-item"},aC={class:"value"},oC={class:"hand-verification"},lC={class:"grid grid-cols-2 gap-8"},cC={class:"grid grid-cols-3 gap-2"},uC={class:"w-full h-full"},fC=["src","alt"],hC=["src","alt"],dC={class:"grid grid-cols-3 gap-2"},gC={class:"w-full h-full"},BC=["src","alt"],pC=["src","alt"];function wC(e,A,t,r,n,i){const a=Vn("v-chart"),l=Vn("el-button"),c=Vn("el-progress"),d=Vn("Download"),g=Vn("el-icon"),B=Vn("el-dialog"),w=Vn("el-tooltip");return jA(),qA("div",{class:bt(["outer-container",{mobile:n.isMobile}])},[n.loading?(jA(),qA("div",Iw," 加载中... ")):n.error?(jA(),qA("div",_w,OA(n.error),1)):(jA(),qA("div",Hw,[D("div",Sw,[A[11]||(A[11]=D("div",{class:"header-left"},[D("img",{src:Fw,class:"cc-icon",alt:"cc icon"}),Xr(" AI面试结果检验报告 ")],-1)),D("div",Nw,[D("div",null,"报告生成时间："+OA(n.reportTime),1),D("div",Dw,"报告ID："+OA(n.reportId),1)])]),D("div",Tw,[D("div",Pw,[D("img",{class:"avatar",src:n.userInfo.avatar,alt:"用户头像"},null,8,Ow)]),D("div",kw,[D("div",Mw,[D("div",Kw,[A[12]||(A[12]=D("span",{class:"label"},"姓名：",-1)),D("span",Rw,OA(n.userInfo.name),1)]),D("div",Vw,[A[13]||(A[13]=D("span",{class:"label"},"面试时间：",-1)),D("span",jw,OA(n.userInfo.interviewTime),1)]),D("div",Gw,[A[14]||(A[14]=D("span",{class:"label"},"面试时长：",-1)),D("span",qw,OA(n.userInfo.duration),1)])]),D("div",Ww,[A[17]||(A[17]=D("div",{class:"info-row"},[D("span",{class:"label"},"实名认证："),D("span",{class:"value verified"},"已核验")],-1)),D("div",Jw,[A[15]||(A[15]=D("span",{class:"label"},"身份证号：",-1)),D("span",Xw,OA(n.userInfo.idNumber),1)]),D("div",zw,[A[16]||(A[16]=D("span",{class:"label"},"手机号码：",-1)),D("span",Yw,OA(n.userInfo.phone),1)])]),D("div",Zw,[n.userInfo.pass<60?(jA(),qA("img",$w)):(jA(),qA("img",Av))])])]),D("div",{class:bt(["nav-tabs",{fixed:n.isNavFixed}]),ref:"navTabs"},[(jA(!0),qA(dt,null,Mt(n.tabs,h=>(jA(),qA("div",{key:h.id,class:bt(["tab-item",{active:n.activeTab===h.id,"link-tab":h.isLink,"info-tab":h.isInfo}]),onClick:F=>i.handleTabClick(h)},[Xr(OA(h.name)+" ",1),h.isLink?(jA(),qA("i",tv)):Yt("",!0),h.isInfo?(jA(),qA("i",rv)):Yt("",!0)],10,ev))),128))],2),n.isNavFixed?(jA(),qA("div",{key:0,class:"nav-placeholder",style:Tu({height:n.navHeight+"px"})},null,4)):Yt("",!0),D("div",nv,[D("div",iv,[D("div",sv,[A[24]||(A[24]=D("div",{class:"score-title"},"综合评价",-1)),D("div",av,[D("span",ov,OA(n.userInfo.pass),1),A[18]||(A[18]=D("span",{class:"unit"},"分",-1)),n.userInfo.pass<60?(jA(),qA("p",lv,"不通过")):(jA(),qA("p",cv,"通过"))]),D("div",uv,[D("span",fv,[A[19]||(A[19]=Xr(" 身份认证 ")),D("span",{class:bt(n.userInfo.idNumber?"status-normal":"status-warning")},OA(n.userInfo.idNumber?"无异常":"有异常"),3)]),A[22]||(A[22]=D("span",{class:"separator"},"/",-1)),D("span",hv,[A[20]||(A[20]=Xr(" 手机号实名认证 ")),D("span",{class:bt(n.userInfo.phone?"status-normal":"status-warning")},OA(n.userInfo.phone?"无异常":"有异常"),3)]),A[23]||(A[23]=D("span",{class:"separator"},"/",-1)),D("span",dv,[A[21]||(A[21]=Xr(" 手部综合检测 ")),D("span",{class:"status-normal",style:Tu(n.userInfo.visual_analysis_done?"":"color:#f56c6c;")},OA(n.userInfo.visual_analysis_done?"无异常":"有异常"),5)])])]),D("div",gv,[D("div",Bv,[D("span",null,"录用建议："+OA(n.hireRecommendation||"正在分析中"),1)]),D("div",pv,OA(n.failReason),1)]),D("div",wv,[D("div",vv,[A[25]||(A[25]=D("span",{class:"redline-title"},"红线题检测结果",-1)),D("span",{class:bt({"status-normal":n.redLineQuestions.allCorrect,"status-warning":!n.redLineQuestions.allCorrect})},OA(n.redLineQuestions.allCorrect?"全部正确":"存在错误，建议不录用"),3)]),!n.redLineQuestions.allCorrect&&n.redLineQuestions.failedQuestions.length>0?(jA(),qA("div",mv,[A[27]||(A[27]=D("div",{class:"failed-title"},"未通过的红线题：",-1)),D("div",Cv,[(jA(!0),qA(dt,null,Mt(n.redLineQuestions.failedQuestions,(h,F)=>(jA(),qA("div",{key:"failed-"+F,class:"failed-item"},[A[26]||(A[26]=D("span",{class:"bullet"},"•",-1)),D("span",Qv,OA(h.question_text||`问题 ${F+1}`),1)]))),128))])])):Yt("",!0)])]),D("div",Fv,[Jr(a,{ref:"radarChart",class:"radar",option:i.radarOption,autoresize:""},null,8,["option"])])],512),D("div",yv,[D("h3",bv,[A[29]||(A[29]=Xr("能力素质 ")),D("span",Uv,[A[28]||(A[28]=Xr("综合得分")),D("span",Lv,OA(n.totalScore||"正在分析中"),1),Xr(OA(n.totalScore?"/100 分":""),1)])]),D("div",Ev,[D("div",xv,[D("div",Iv,[A[30]||(A[30]=D("div",{class:"icon-box"},[D("div",{class:"icon advantage-icon"},[D("img",{src:Uw,alt:"优势展现"})]),D("h5",null,"优势展现")],-1)),D("div",_v,[n.qualityDetails.strengths&&n.qualityDetails.strengths.length?(jA(!0),qA(dt,{key:0},Mt(n.qualityDetails.strengths,(h,F)=>(jA(),qA("p",{key:F,innerHTML:i.formatTextWithBrackets(i.getChineseAnalysis(h))},null,8,Hv))),128)):(jA(),qA("p",Sv,"正在分析中"))])]),D("div",Nv,[A[31]||(A[31]=D("div",{class:"icon-box"},[D("div",{class:"icon suggestion-icon",style:{position:"relative"}},[D("img",{src:Lw,alt:"发展建议"}),D("img",{style:{width:"10px",height:"10px",position:"absolute",top:"32%",left:"5px"},src:Ew,alt:""})]),D("h5",null,"发展建议")],-1)),D("div",Dv,[n.qualityDetails.weaknesses&&n.qualityDetails.weaknesses.length?(jA(!0),qA(dt,{key:0},Mt(n.qualityDetails.weaknesses,(h,F)=>(jA(),qA("p",{key:F,innerHTML:i.formatTextWithBrackets2(i.getChineseAnalysis(h))},null,8,Tv))),128)):(jA(),qA("p",Pv,"正在分析中"))])])])])],512),D("div",null,[D("div",Ov,[A[32]||(A[32]=Pu('<div class="line-info" data-v-4b7db6af><div class="line-info-left" data-v-4b7db6af>低</div><div class="line-info-center" data-v-4b7db6af>中</div><div class="line-info-right" data-v-4b7db6af>高</div></div><div class="line-chart" data-v-4b7db6af><div class="line-chart-left" data-v-4b7db6af></div><div class="line_left" data-v-4b7db6af></div><div class="line_center" data-v-4b7db6af></div><div class="line_right" data-v-4b7db6af></div></div>',2)),D("div",kv,[(jA(!0),qA(dt,null,Mt(n.abilityItems,(h,F)=>(jA(),qA("div",{key:F,class:"ability-item"},[D("span",Mv,OA(h.tag_name),1),D("div",Kv,[Jr(a,{option:i.getBarChartOption(h),autoresize:!0,style:{width:"100%",height:"30px"}},null,8,["option"])])]))),128))])])]),D("div",Rv,A[33]||(A[33]=[Pu('<div class="detection-section-header" data-v-4b7db6af><div class="section-title" data-v-4b7db6af>作弊检测</div><div class="status-tag normal" data-v-4b7db6af>无异常</div></div><div class="detection-section-content" data-v-4b7db6af><div class="detection-items" data-v-4b7db6af><div class="item" data-v-4b7db6af><span class="status normal" data-v-4b7db6af>无风险</span><span class="separator" data-v-4b7db6af>/</span><span class="desc" data-v-4b7db6af>转移、替考：检测无异常</span></div><div class="item" data-v-4b7db6af><span class="status normal" data-v-4b7db6af>无风险</span><span class="separator" data-v-4b7db6af>/</span><span class="desc" data-v-4b7db6af>读稿：检测无异常</span></div><div class="item" data-v-4b7db6af><span class="status normal" data-v-4b7db6af>无风险</span><span class="separator" data-v-4b7db6af>/</span><span class="desc" data-v-4b7db6af>录屏/切屏：检测无异常</span></div></div><div class="risk-standards" data-v-4b7db6af><div class="standards-title" data-v-4b7db6af>风险等级标准</div><div class="standards-content" data-v-4b7db6af><div class="standard-item" data-v-4b7db6af><span class="level" data-v-4b7db6af>无异常：</span><span class="desc" data-v-4b7db6af>候选人提供的信息真实/无切屏录屏行为/无互联网查询行为/无互联网传行为</span></div><div class="standard-item" data-v-4b7db6af><span class="level" data-v-4b7db6af>低风险：</span><span class="desc" data-v-4b7db6af>候选人提供信息真实/可切屏录屏行为/可互联网查询行为/无互联网传行为</span></div><div class="standard-item" data-v-4b7db6af><span class="level" data-v-4b7db6af>高风险：</span><span class="desc" data-v-4b7db6af>面试者与候选人为一不同人/可切屏录屏行为/可互联网查询行为/过程存在传输行为</span></div></div></div></div>',2)]),512),D("div",Vv,[A[35]||(A[35]=D("div",{class:"section-title"},"心理检测",-1)),D("div",jv,[D("div",Gv,[D("div",qv,OA(n.psychologyData.description),1),D("div",Wv,[A[34]||(A[34]=D("span",{class:"label"},"录用建议：",-1)),D("span",Jv,OA(n.psychologyData.recommendation),1)])]),D("div",Xv,[D("span",{class:bt(["risk-level",i.getPsychologyScoreClass])},OA(i.getPsychologyRiskLevel),3)])])],512),D("div",zv,[D("div",Yv,[A[37]||(A[37]=D("div",{class:"section-title"},"肢体检测",-1)),Jr(l,{type:"primary",link:"",onClick:A[0]||(A[0]=h=>n.showBodyVerification=!0)},{default:jn(()=>A[36]||(A[36]=[Xr(" 查看肢体核验结果 ")])),_:1})]),D("div",Zv,[D("div",$v,[(jA(!0),qA(dt,null,Mt(i.getHandPhotos("left"),(h,F)=>{var m,_,Q,E,K;return jA(),qA("div",{key:"left-"+F,class:"detection-item",style:{"background-color":"#f8f8f8"}},[D("span",Am,OA(i.getPositionLabel("left",F)),1),D("span",{class:bt(["status",{"status-normal":(m=h.part_verification)==null?void 0:m.is_correct_part,"status-error":!((_=h.part_verification)!=null&&_.is_correct_part)}])},OA((Q=h.part_verification)!=null&&Q.is_correct_part?"动作检测无异常":"动作检测异常"),3),D("span",em,OA((E=h.part_verification)!=null&&E.is_correct_part?i.getDefaultDescription("left",F):((K=h.part_verification)==null?void 0:K.explanation)||"检测未通过"),1)])}),128)),(jA(!0),qA(dt,null,Mt(i.getHandPhotos("right"),(h,F)=>{var m,_,Q,E,K;return jA(),qA("div",{key:"right-"+F,class:"detection-item",style:{"background-color":"#f8f8f8"}},[D("span",tm,OA(i.getPositionLabel("right",F)),1),D("span",{class:bt(["status",{"status-normal":(m=h.part_verification)==null?void 0:m.is_correct_part,"status-error":!((_=h.part_verification)!=null&&_.is_correct_part)}])},OA((Q=h.part_verification)!=null&&Q.is_correct_part?"动作检测无异常":"动作检测异常"),3),D("span",rm,OA((E=h.part_verification)!=null&&E.is_correct_part?i.getDefaultDescription("right",F):((K=h.part_verification)==null?void 0:K.explanation)||"检测未通过"),1)])}),128))])])],512),D("div",nm,[D("div",im,[A[48]||(A[48]=D("h3",{class:"section-title"},"问答记录",-1)),D("div",sm,[D("div",am,[(jA(!0),qA(dt,null,Mt(n.interviewRecords,(h,F)=>T1((jA(),qA("div",{key:F,class:"rounded-lg p-4"},[h.question_form===0?(jA(),qA("div",om,[D("div",lm,[D("div",cm,"第"+OA(F+1)+"题:",1),D("div",um,[D("span",fm,OA(h.question),1)])]),h.question_form===0?(jA(),qA("div",hm,[D("div",dm,[D("div",gm,[D("div",Bm,[D("div",pm,[D("div",wm,[A[38]||(A[38]=D("div",{class:"px-2 py-1 rounded text-sm",id:"candidate-answer",style:{"font-size":"14px"}},"候选人回答:",-1)),D("div",vm,[D("p",mm,OA(h.answer),1)])])]),A[39]||(A[39]=D("div",null,null,-1))])]),D("div",Cm,[D("div",Qm,[D("video",{class:"w-full h-full object-cover rounded-lg",controls:"",src:h.video_url,preload:"metadata",poster:e.fallbackImageBase64Ref,onLoadeddata:A[1]||(A[1]=(...m)=>e.handleVideoLoaded&&e.handleVideoLoaded(...m)),onError:A[2]||(A[2]=(...m)=>e.handleVideoError&&e.handleVideoError(...m))}," 您的浏览器不支持视频播放。 ",40,Fm)])])]),h.follow_up_questions&&h.follow_up_questions.length>0?(jA(),qA("div",ym,[(jA(!0),qA(dt,null,Mt(h.follow_up_questions,(m,_)=>(jA(),qA("div",{key:_,class:""},[D("div",bm,[D("div",Um,[D("div",Lm,[D("div",Em,[D("div",xm,[D("div",Im,[D("div",_m,[D("div",Hm,[A[40]||(A[40]=D("div",{class:"bg-purple-100 text-purple-800 px-2 py-1 rounded text-sm",style:{"font-size":"14px","background-color":"#fdd3bd",color:"#f7681d"}},"追问题",-1)),D("div",Sm,[D("span",Nm,OA(m.question),1),D("p",Dm,OA(m.answer),1)])])]),A[41]||(A[41]=D("div",null,null,-1))])]),m.video_url?(jA(),qA("div",Tm,[D("div",Pm,[D("video",{class:"w-full h-full object-cover rounded-lg",controls:"",src:m.video_url,preload:"metadata",poster:e.fallbackImageBase64Ref,onLoadeddata:A[3]||(A[3]=(...Q)=>e.handleVideoLoaded&&e.handleVideoLoaded(...Q)),onError:A[4]||(A[4]=(...Q)=>e.handleVideoError&&e.handleVideoError(...Q))}," 您的浏览器不支持视频播放。 ",40,Om)])])):Yt("",!0)])])])])]))),128))])):Yt("",!0),D("div",km,[D("div",Mm,[A[42]||(A[42]=D("div",{class:"text-[14px] text-[#000] mr-2"},"本题评分：",-1)),D("div",Km,OA(h.score)+"分",1)]),D("div",Rm,[A[43]||(A[43]=D("div",{class:"text-[14px] text-[#f7681d] mr-2"},"整体分析：",-1)),D("div",Vm,[D("p",jm,OA(i.formatAnalysis(h.analysis)),1)])]),D("div",Gm,[A[44]||(A[44]=D("div",{class:"text-[14px] text-[#666666] mr-2"},"考核点：",-1)),D("div",qm,[D("div",Wm,[(jA(!0),qA(dt,null,Mt(i.extractAssessmentPoints(h.analysis),(m,_)=>(jA(),qA(dt,{key:_},[D("div",Jm,[D("span",Xm,OA(m.name),1)]),_<i.extractAssessmentPoints(h.analysis).length-1?(jA(),qA("span",zm,"/")):Yt("",!0)],64))),128))])]),D("div",Ym,[Jr(c,{percentage:Number(h.score),"stroke-width":6,format:i.formats,color:i.getProgressColor(h.score),class:"custom-progress",style:{"font-size":"12px",color:"#808080"}},null,8,["percentage","format","color"])])])])])):Yt("",!0)])):Yt("",!0)])),[[P1,h.question_form===0]])),128))]),n.followUpQuestions&&n.followUpQuestions.length>0?(jA(),qA("div",Zm,[(jA(!0),qA(dt,null,Mt([n.followUpQuestions[n.followUpQuestions.length-1]],(h,F)=>(jA(),qA("div",{key:F,class:""},[D("div",$m,[A[45]||(A[45]=D("div",{class:"px-2 py-1 rounded text-sm",style:{"font-size":"14px","font-weight":"600","font-family":"微软雅黑"}},"候选人提问:",-1)),D("div",A4,[D("span",e4,OA(h.user_text),1)])]),D("div",t4,[D("div",r4,[D("div",n4,[A[46]||(A[46]=D("div",{class:"px-2 py-1 rounded text-sm",id:"candidate-answer",style:{"font-size":"14px"}},"智能体回答:",-1)),D("div",i4,[D("p",s4,OA(h.ai_reply),1)])])]),A[47]||(A[47]=D("div",null,null,-1))])]))),128))])):Yt("",!0)])])],512),Jr(l,{type:"primary",circle:"",class:"export-btn fixed-btn",loading:n.exporting,onClick:i.exportPDF},{default:jn(()=>[Jr(g,null,{default:jn(()=>[Jr(d)]),_:1})]),_:1},8,["loading","onClick"])])),Jr(B,{title:"个人详细信息",modelValue:n.showInfoDialog,"onUpdate:modelValue":A[5]||(A[5]=h=>n.showInfoDialog=h),width:"60%","before-close":i.handleDialogClose,class:"info-dialog"},{default:jn(()=>[D("div",a4,[D("div",o4,[A[58]||(A[58]=D("h4",null,"基本信息",-1)),D("div",l4,[D("div",c4,[A[49]||(A[49]=D("span",{class:"label"},"姓名：",-1)),D("span",u4,OA(n.userProfile.name),1)]),D("div",f4,[A[50]||(A[50]=D("span",{class:"label"},"性别：",-1)),D("span",h4,OA(n.userProfile.gender),1)]),D("div",d4,[A[51]||(A[51]=D("span",{class:"label"},"年龄：",-1)),D("span",g4,OA(n.userProfile.age)+"岁",1)]),D("div",B4,[A[52]||(A[52]=D("span",{class:"label"},"身份证：",-1)),D("span",p4,OA(n.userProfile.idCard),1)]),D("div",w4,[A[53]||(A[53]=D("span",{class:"label"},"民族：",-1)),D("span",v4,OA(n.userProfile.ethnicity),1)]),D("div",m4,[A[54]||(A[54]=D("span",{class:"label"},"政治面貌：",-1)),D("span",C4,OA(n.userProfile.politicalStatus),1)]),D("div",Q4,[A[55]||(A[55]=D("span",{class:"label"},"婚姻状况：",-1)),D("span",F4,OA(n.userProfile.maritalStatus),1)]),D("div",y4,[A[56]||(A[56]=D("span",{class:"label"},"身高：",-1)),D("span",b4,OA(n.userProfile.height),1)]),D("div",U4,[A[57]||(A[57]=D("span",{class:"label"},"体重：",-1)),D("span",L4,OA(n.userProfile.weight),1)])])]),D("div",E4,[A[62]||(A[62]=D("h4",null,"联系方式",-1)),D("div",x4,[D("div",I4,[A[59]||(A[59]=D("span",{class:"label"},"手机号码：",-1)),D("span",_4,OA(n.userProfile.phone),1)]),D("div",H4,[A[60]||(A[60]=D("span",{class:"label"},"籍贯：",-1)),D("span",S4,OA(n.userProfile.nativePlace),1)]),D("div",N4,[A[61]||(A[61]=D("span",{class:"label"},"现居地址：",-1)),D("span",D4,OA(n.userProfile.address),1)])])]),D("div",T4,[A[67]||(A[67]=D("h4",null,"教育背景",-1)),D("div",P4,[D("div",O4,[A[63]||(A[63]=D("span",{class:"label"},"学历：",-1)),D("span",k4,OA(n.userProfile.education),1)]),D("div",M4,[A[64]||(A[64]=D("span",{class:"label"},"毕业院校：",-1)),D("span",K4,OA(n.userProfile.schoolName),1)]),D("div",R4,[A[65]||(A[65]=D("span",{class:"label"},"专业：",-1)),D("span",V4,OA(n.userProfile.major),1)]),D("div",j4,[A[66]||(A[66]=D("span",{class:"label"},"毕业时间：",-1)),D("span",G4,OA(n.userProfile.graduationDate),1)])])]),D("div",q4,[A[73]||(A[73]=D("h4",null,"工作信息",-1)),D("div",W4,[D("div",J4,[A[68]||(A[68]=D("span",{class:"label"},"当前公司：",-1)),D("span",X4,OA(n.userProfile.currentCompany),1)]),D("div",z4,[A[69]||(A[69]=D("span",{class:"label"},"所在部门：",-1)),D("span",Y4,OA(n.userProfile.department),1)]),D("div",Z4,[A[70]||(A[70]=D("span",{class:"label"},"当前职位：",-1)),D("span",$4,OA(n.userProfile.position),1)]),D("div",AC,[A[71]||(A[71]=D("span",{class:"label"},"工作经验：",-1)),D("span",eC,OA(n.userProfile.experience),1)]),D("div",tC,[A[72]||(A[72]=D("span",{class:"label"},"期望薪资：",-1)),D("span",rC,OA(n.userProfile.expectedSalary),1)])])]),D("div",nC,[A[75]||(A[75]=D("h4",null,"其他信息",-1)),D("div",iC,[D("div",sC,[A[74]||(A[74]=D("span",{class:"label"},"特长爱好：",-1)),D("span",aC,OA(n.userProfile.specialties),1)])])])])]),_:1},8,["modelValue","before-close"]),Jr(B,{title:"肢体核验结果",modelValue:n.showBodyVerification,"onUpdate:modelValue":A[10]||(A[10]=h=>n.showBodyVerification=h),width:"80%","before-close":i.handleBodyVerificationClose,class:"body-verification-dialog"},{default:jn(()=>[D("div",oC,[D("div",lC,[D("div",null,[A[76]||(A[76]=D("h4",{class:"text-gray-600 mb-2"},"左手手势验证",-1)),D("div",cC,[(jA(!0),qA(dt,null,Mt(i.getHandPhotos("left"),(h,F)=>{var m;return jA(),qA("div",{key:F,class:bt(["relative aspect-square rounded-lg overflow-hidden bg-gray-100",{"border-2":h.part_verification,"border-green-500":(m=h.part_verification)==null?void 0:m.is_correct_part,"border-red-500":h.part_verification&&!h.part_verification.is_correct_part}])},[h.part_verification&&!h.part_verification.is_correct_part?(jA(),Ou(w,{key:0,content:h.part_verification.explanation||"未提供失败原因",placement:"top",effect:"dark","show-after":200},{default:jn(()=>{var _,Q;return[D("div",uC,[D("img",{src:h.url,alt:h.description,class:"w-full h-full object-cover",onError:A[6]||(A[6]=(...E)=>i.handleImageError&&i.handleImageError(...E))},null,40,fC),D("div",{class:bt(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":(_=h.part_verification)==null?void 0:_.is_correct_part,"bg-red-500 bg-opacity-90":h.part_verification&&!h.part_verification.is_correct_part}])},OA((Q=h.part_verification)!=null&&Q.is_correct_part?"通过":"未通过"),3)])]}),_:2},1032,["content"])):(jA(),qA(dt,{key:1},[D("img",{src:h.url,alt:h.description,class:"w-full h-full object-cover",onError:A[7]||(A[7]=(..._)=>i.handleImageError&&i.handleImageError(..._))},null,40,hC),h.part_verification?(jA(),qA("div",{key:0,class:bt(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":h.part_verification.is_correct_part,"bg-red-500 bg-opacity-90":!h.part_verification.is_correct_part}])},OA(h.part_verification.is_correct_part?"通过":"未通过"),3)):Yt("",!0)],64))],2)}),128))])]),D("div",null,[A[77]||(A[77]=D("h4",{class:"text-gray-600 mb-2"},"右手手势验证",-1)),D("div",dC,[(jA(!0),qA(dt,null,Mt(i.getHandPhotos("right"),(h,F)=>{var m;return jA(),qA("div",{key:F,class:bt(["relative aspect-square rounded-lg overflow-hidden bg-gray-100",{"border-2":h.part_verification,"border-green-500":(m=h.part_verification)==null?void 0:m.is_correct_part,"border-red-500":h.part_verification&&!h.part_verification.is_correct_part}])},[h.part_verification&&!h.part_verification.is_correct_part?(jA(),Ou(w,{key:0,content:h.part_verification.explanation||"未提供失败原因",placement:"top",effect:"dark","show-after":200},{default:jn(()=>{var _,Q;return[D("div",gC,[D("img",{src:h.url,alt:h.description,class:"w-full h-full object-cover",onError:A[8]||(A[8]=(...E)=>i.handleImageError&&i.handleImageError(...E))},null,40,BC),D("div",{class:bt(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":(_=h.part_verification)==null?void 0:_.is_correct_part,"bg-red-500 bg-opacity-90":h.part_verification&&!h.part_verification.is_correct_part}])},OA((Q=h.part_verification)!=null&&Q.is_correct_part?"通过":"未通过"),3)])]}),_:2},1032,["content"])):(jA(),qA(dt,{key:1},[D("img",{src:h.url,alt:h.description,class:"w-full h-full object-cover",onError:A[9]||(A[9]=(..._)=>i.handleImageError&&i.handleImageError(..._))},null,40,pC),h.part_verification?(jA(),qA("div",{key:0,class:bt(["absolute bottom-0 left-0 right-0 py-1 px-2 text-xs text-center text-white z-10",{"bg-green-500 bg-opacity-90":h.part_verification.is_correct_part,"bg-red-500 bg-opacity-90":!h.part_verification.is_correct_part}])},OA(h.part_verification.is_correct_part?"通过":"未通过"),3)):Yt("",!0)],64))],2)}),128))])])])])]),_:1},8,["modelValue","before-close"])],2)}const vC=k1(xw,[["render",wC],["__scopeId","data-v-4b7db6af"]]),yC=Object.freeze(Object.defineProperty({__proto__:null,default:vC},Symbol.toStringTag,{value:"Module"}));export{me as _,yC as r};
