/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@watergis/maplibre-gl-export@4.1.2/dist/maplibre-gl-export.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(A,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("maplibre-gl")):"function"==typeof define&&define.amd?define(["exports","maplibre-gl"],t):t((A=typeof globalThis<"u"?globalThis:A||self).MaplibreExportControl={},A.maplibregl)}(this,(function(A,t){Object.defineProperty(A,Symbol.toStringTag,{value:"Module"});var e=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(A,t)=>()=>(A&&(t=A(A=0)),t),l=(A,t)=>()=>(t||A((t={exports:{}}).exports,t),t.exports),c=(A,t)=>{let e={};for(var n in A)r(e,n,{get:A[n],enumerable:!0});return t||r(e,Symbol.toStringTag,{value:"Module"}),e},u=(A,t,e,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var o,l=i(t),c=0,u=l.length;c<u;c++)o=l[c],!a.call(A,o)&&o!==e&&r(A,o,{get:(A=>t[A]).bind(null,o),enumerable:!(s=n(t,o))||s.enumerable});return A},h=(A,t,n)=>(n=null==A?{}:e(s(A)),u(!t&&A&&A.__esModule?n:r(n,"default",{value:A,enumerable:!0}),A)),f=class{map;width;height;svgCanvas;xLine;yLine;color="#535353";constructor(A){this.map=A,this.mapResize=this.mapResize.bind(this)}create(){this.updateValues(),void 0===this.map?console.error("map object is null"):(this.map.on("resize",this.mapResize),this.createCanvas(this.map.getCanvasContainer()))}updateValues(){this.width=this.map?.getCanvas().clientWidth,this.height=this.map?.getCanvas().clientHeight}mapResize(){this.updateValues(),this.updateCanvas()}updateCanvas(){if(void 0!==this.svgCanvas&&void 0!==this.yLine&&void 0!==this.xLine&&void 0!==this.width&&void 0!==this.height){this.svgCanvas.setAttribute("width",`${this.width}px`),this.svgCanvas.setAttribute("height",`${this.height}px`);let A=this.width/2,t=this.height/2;this.yLine.setAttribute("x1",`${A}px`),this.yLine.setAttribute("y1","0px"),this.yLine.setAttribute("x2",`${A}px`),this.yLine.setAttribute("y2",`${this.height}px`),this.xLine.setAttribute("x1","0px"),this.xLine.setAttribute("y1",`${t}px`),this.xLine.setAttribute("x2",`${this.width}px`),this.xLine.setAttribute("y2",`${t}px`)}else console.error("element value is null")}createCanvas(A){if(void 0!==this.width&&void 0!==this.height){let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.style.position="relative",t.setAttribute("width",`${this.width}px`),t.setAttribute("height",`${this.height}px`);let e=this.width/2,r=this.height/2;this.yLine=t.appendChild(this.createLine(`${e}`,"0",`${e}`,`${this.height}`,this.color,"2px")),this.xLine=t.appendChild(this.createLine("0",`${r}`,`${this.width}`,`${r}`,this.color,"2px")),A?.appendChild(t),this.svgCanvas=t}}createLine(A,t,e,r,n,i){let s=document.createElementNS("http://www.w3.org/2000/svg","line");return s.setAttribute("x1",A),s.setAttribute("y1",t),s.setAttribute("x2",e),s.setAttribute("y2",r),s.setAttribute("stroke-dasharray","5,5"),s.setAttribute("stroke",n),s.setAttribute("stroke-width",i),s}destroy(){void 0!==this.xLine&&(this.xLine.remove(),this.xLine=void 0),void 0!==this.yLine&&(this.yLine.remove(),this.yLine=void 0),void 0!==this.svgCanvas&&(this.svgCanvas.remove(),this.svgCanvas=void 0),void 0!==this.map&&(this.map.off("resize",this.mapResize),this.map=void 0)}},d={72:72,96:96,200:200,300:300,400:400},g={JPEG:"jpg",PNG:"png",PDF:"pdf",SVG:"svg"},p={Landscape:"landscape",Portrait:"portrait"},B={LETTER:[279,216],A2:[594,420],A3:[420,297],A4:[297,210],A5:[210,148],A6:[148,105],B2:[707,500],B3:[500,353],B4:[353,250],B5:[250,176],B6:[176,125]},w={in:"in",mm:"mm"},m=class{map;width;height;unit;svgCanvas;svgPath;constructor(A){if(this.map=A,void 0===this.map)return;this.mapResize=this.mapResize.bind(this),this.map.on("resize",this.mapResize);let t=this.map?.getCanvas().clientWidth,e=this.map?.getCanvas().clientHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.setAttribute("width",`${t}px`),r.setAttribute("height",`${e}px`);let n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("style","fill:#888888;stroke-width:0"),n.setAttribute("fill-opacity","0.5"),r.append(n),this.map?.getCanvasContainer().appendChild(r),this.svgCanvas=r,this.svgPath=n}mapResize(){this.generateCutOut()}updateArea(A,t){this.width=A,this.height=t,this.unit=w.mm,this.generateCutOut()}generateCutOut(){if(void 0===this.map||void 0===this.svgCanvas||void 0===this.svgPath)return;let A=this.toPixels(this.width),t=this.toPixels(this.height),e=this.map?.getCanvas().clientWidth,r=this.map?.getCanvas().clientHeight,n=e/2-A/2,i=n+A,s=r/2-t/2,a=s+t;this.svgCanvas.setAttribute("width",`${e}px`),this.svgCanvas.setAttribute("height",`${r}px`),this.svgPath.setAttribute("d",`M 0 0 L ${e} 0 L ${e} ${r} L 0 ${r} M ${n} ${s} L ${n} ${a} L ${i} ${a} L ${i} ${s}`)}destroy(){void 0!==this.svgCanvas&&(this.svgCanvas.remove(),this.svgCanvas=void 0),void 0!==this.map&&(this.map=void 0)}toPixels(A,t=96){return this.unit===w.mm&&(t/=25.4),t*A}},y={PageSize:"Page Size",PageOrientation:"Page Orientation",Format:"Format",DPI:"DPI",Generate:"Generate",LanguageName:"English",LanguageCode:"en"},v=[y,{PageSize:"Taille de page",PageOrientation:"Orientation de la page",Format:"Format",DPI:"DPI",Generate:"Générer",LanguageName:"Français",LanguageCode:"fr"},{PageSize:"Sivukoko",PageOrientation:"Sivun suunta",Format:"Muoto",DPI:"DPI",Generate:"Generoi",LanguageName:"Suomalainen",LanguageCode:"fi"},{PageSize:"Papierformat",PageOrientation:"Papierausrichtung",Format:"Dateiformat",DPI:"Druckauflösung",Generate:"Erstellen",LanguageName:"Deutsch",LanguageCode:"de"},{PageSize:"Sidstorlek",PageOrientation:"Sidorientering",Format:"Format",DPI:"DPI",Generate:"Generera",LanguageName:"Svenska",LanguageCode:"sv"},{PageSize:"Tamaño de página",PageOrientation:"Orientación de página",Format:"Formato",DPI:"DPI",Generate:"Generar",LanguageName:"Española",LanguageCode:"es"},{PageSize:"Mida",PageOrientation:"Orientació",Format:"Format",DPI:"DPI",Generate:"Genera",LanguageName:"Catalan",LanguageCode:"ca"},{PageSize:"Kích thước trang",PageOrientation:"Loại trang",Format:"Định dạng",DPI:"Mật độ điểm ảnh (DPI)",Generate:"Tạo",LanguageName:"Tiếng Việt",LanguageCode:"vi"},{PageSize:"Розмір сторінки",PageOrientation:"Орієнтація сторінки",Format:"Формат",DPI:"DPI",Generate:"Згенерувати",LanguageName:"українська",LanguageCode:"uk"},{PageSize:"页面大小",PageOrientation:"页面方向",Format:"格式",DPI:"像素",Generate:"导出",LanguageName:"简体字",LanguageCode:"zhHans"},{PageSize:"頁面大小",PageOrientation:"頁面方向",Format:"格式",DPI:"像素",Generate:"導出",LanguageName:"繁体字",LanguageCode:"zhHant"},{PageSize:"ページサイズ",PageOrientation:"ページ方向",Format:"フォーマット",DPI:"DPI（解像度）",Generate:"出力",LanguageName:"日本語",LanguageCode:"ja"},{PageSize:"Tamanho da página",PageOrientation:"Orientação da página",Format:"Formato",DPI:"DPI",Generate:"Gerar",LanguageName:"Português",LanguageCode:"pt"},{PageSize:"Размер страницы",PageOrientation:"Ориентация страницы",Format:"Формат",DPI:"Разрешение (DPI)",Generate:"Сгенерировать",LanguageName:"русский",LanguageCode:"ru"}],b=["en","fr","fi","de","sv","es","ca","vi","uk","zhHans","zhHant","ja","pt","ru"],C=A=>v.find((t=>t.LanguageCode===A))??y;function F(A){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},F(A)}var Q=o((()=>{}));Q();var x=Uint8Array,U=Uint16Array,E=Int32Array,L=new x([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]),_=new x([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]),S=new x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),I=function(A,t){for(var e=new U(31),r=0;r<31;++r)e[r]=t+=1<<A[r-1];var n=new E(e[30]);for(r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)n[i]=i-e[r]<<5|r;return{b:e,r:n}},N=I(L,2),H=N.b,P=N.r;H[28]=258,P[258]=28;var k=I(_,0);k.b;for(var O=k.r,T=new U(32768),D=0;D<32768;++D){var M=(43690&D)>>1|(21845&D)<<1;M=(61680&(M=(52428&M)>>2|(13107&M)<<2))>>4|(3855&M)<<4,T[D]=((65280&M)>>8|(255&M)<<8)>>1}var R=function(A,t,e){for(var r=A.length,n=0,i=new U(t);n<r;++n)A[n]&&++i[A[n]-1];var s,a=new U(t);for(n=1;n<t;++n)a[n]=a[n-1]+i[n-1]<<1;if(e){s=new U(1<<t);var o=15-t;for(n=0;n<r;++n)if(A[n])for(var l=n<<4|A[n],c=t-A[n],u=a[A[n]-1]++<<c,h=u|(1<<c)-1;u<=h;++u)s[T[u]>>o]=l}else for(s=new U(r),n=0;n<r;++n)A[n]&&(s[n]=T[a[A[n]-1]++]>>15-A[n]);return s},K=new x(288);for(D=0;D<144;++D)K[D]=8;for(D=144;D<256;++D)K[D]=9;for(D=256;D<280;++D)K[D]=7;for(D=280;D<288;++D)K[D]=8;var V=new x(32);for(D=0;D<32;++D)V[D]=5;var j=R(K,9,0),G=R(V,5,0),z=function(A){return(A+7)/8|0},q=function(A,t,e){e<<=7&t;var r=t/8|0;A[r]|=e,A[r+1]|=e>>8},X=function(A,t,e){e<<=7&t;var r=t/8|0;A[r]|=e,A[r+1]|=e>>8,A[r+2]|=e>>16},W=function(A,t){for(var e=[],r=0;r<A.length;++r)A[r]&&e.push({s:r,f:A[r]});var n=e.length,i=e.slice();if(!n)return{t:eA,l:0};if(1==n){var s=new x(e[0].s+1);return s[e[0].s]=1,{t:s,l:1}}e.sort((function(A,t){return A.f-t.f})),e.push({s:-1,f:25001});var a=e[0],o=e[1],l=0,c=1,u=2;for(e[0]={s:-1,f:a.f+o.f,l:a,r:o};c!=n-1;)a=e[e[l].f<e[u].f?l++:u++],o=e[l!=c&&e[l].f<e[u].f?l++:u++],e[c++]={s:-1,f:a.f+o.f,l:a,r:o};var h=i[0].s;for(r=1;r<n;++r)i[r].s>h&&(h=i[r].s);var f=new U(h+1),d=Y(e[c-1],f,0);if(d>t){r=0;var g=0,p=d-t,B=1<<p;for(i.sort((function(A,t){return f[t.s]-f[A.s]||A.f-t.f}));r<n;++r){var w=i[r].s;if(!(f[w]>t))break;g+=B-(1<<d-f[w]),f[w]=t}for(g>>=p;g>0;){var m=i[r].s;f[m]<t?g-=1<<t-f[m]++-1:++r}for(;r>=0&&g;--r){var y=i[r].s;f[y]==t&&(--f[y],++g)}d=t}return{t:new x(f),l:d}},Y=function(A,t,e){return-1==A.s?Math.max(Y(A.l,t,e+1),Y(A.r,t,e+1)):t[A.s]=e},J=function(A){for(var t=A.length;t&&!A[--t];);for(var e=new U(++t),r=0,n=A[0],i=1,s=function(A){e[r++]=A},a=1;a<=t;++a)if(A[a]==n&&a!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=A[a]}return{c:e.subarray(0,r),n:t}},Z=function(A,t){for(var e=0,r=0;r<t.length;++r)e+=A[r]*t[r];return e},$=function(A,t,e){var r=e.length,n=z(t+2);A[n]=255&r,A[n+1]=r>>8,A[n+2]=255^A[n],A[n+3]=255^A[n+1];for(var i=0;i<r;++i)A[n+i+4]=e[i];return 8*(n+4+r)},AA=function(A,t,e,r,n,i,s,a,o,l,c){q(t,c++,e),++n[256];for(var u=W(n,15),h=u.t,f=u.l,d=W(i,15),g=d.t,p=d.l,B=J(h),w=B.c,m=B.n,y=J(g),v=y.c,b=y.n,C=new U(19),F=0;F<w.length;++F)++C[31&w[F]];for(F=0;F<v.length;++F)++C[31&v[F]];for(var Q=W(C,7),x=Q.t,E=Q.l,I=19;I>4&&!x[S[I-1]];--I);var N,H,P,k,O=l+5<<3,T=Z(n,K)+Z(i,V)+s,D=Z(n,h)+Z(i,g)+s+14+3*I+Z(C,x)+2*C[16]+3*C[17]+7*C[18];if(o>=0&&O<=T&&O<=D)return $(t,c,A.subarray(o,o+l));if(q(t,c,1+(D<T)),c+=2,D<T){N=R(h,f,0),H=h,P=R(g,p,0),k=g;var M=R(x,E,0);q(t,c,m-257),q(t,c+5,b-1),q(t,c+10,I-4),c+=14;for(F=0;F<I;++F)q(t,c+3*F,x[S[F]]);c+=3*I;for(var z=[w,v],Y=0;Y<2;++Y){var AA=z[Y];for(F=0;F<AA.length;++F){var tA=31&AA[F];q(t,c,M[tA]),c+=x[tA],tA>15&&(q(t,c,AA[F]>>5&127),c+=AA[F]>>12)}}}else N=j,H=K,P=G,k=V;for(F=0;F<a;++F){var eA=r[F];if(eA>255){X(t,c,N[(tA=eA>>18&31)+257]),c+=H[tA+257],tA>7&&(q(t,c,eA>>23&31),c+=L[tA]);var rA=31&eA;X(t,c,P[rA]),c+=k[rA],rA>3&&(X(t,c,eA>>5&8191),c+=_[rA])}else X(t,c,N[eA]),c+=H[eA]}return X(t,c,N[256]),c+H[256]},tA=new E([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),eA=new x(0),rA=function(A,t,e,r,n,i){var s=i.z||A.length,a=new x(r+s+5*(1+Math.ceil(s/7e3))+n),o=a.subarray(r,a.length-n),l=i.l,c=7&(i.r||0);if(t){c&&(o[0]=i.r>>3);for(var u=tA[t-1],h=u>>13,f=8191&u,d=(1<<e)-1,g=i.p||new U(32768),p=i.h||new U(d+1),B=Math.ceil(e/3),w=2*B,m=function(t){return(A[t]^A[t+1]<<B^A[t+2]<<w)&d},y=new E(25e3),v=new U(288),b=new U(32),C=0,F=0,Q=i.i||0,S=0,I=i.w||0,N=0;Q+2<s;++Q){var H=m(Q),k=32767&Q,T=p[H];if(g[k]=T,p[H]=k,I<=Q){var D=s-Q;if((C>7e3||S>24576)&&(D>423||!l)){c=AA(A,o,0,y,v,b,F,S,N,Q-N,c),S=C=F=0,N=Q;for(var M=0;M<286;++M)v[M]=0;for(M=0;M<30;++M)b[M]=0}var R=2,K=0,V=f,j=k-T&32767;if(D>2&&H==m(Q-j))for(var G=Math.min(h,D)-1,q=Math.min(32767,Q),X=Math.min(258,D);j<=q&&--V&&k!=T;){if(A[Q+R]==A[Q+R-j]){for(var W=0;W<X&&A[Q+W]==A[Q+W-j];++W);if(W>R){if(R=W,K=j,W>G)break;var Y=Math.min(j,W-2),J=0;for(M=0;M<Y;++M){var Z=Q-j+M&32767,eA=Z-g[Z]&32767;eA>J&&(J=eA,T=Z)}}}j+=(k=T)-(T=g[k])&32767}if(K){y[S++]=268435456|P[R]<<18|O[K];var rA=31&P[R],nA=31&O[K];F+=L[rA]+_[nA],++v[257+rA],++b[nA],I=Q+R,++C}else y[S++]=A[Q],++v[A[Q]]}}for(Q=Math.max(Q,I);Q<s;++Q)y[S++]=A[Q],++v[A[Q]];c=AA(A,o,l,y,v,b,F,S,N,Q-N,c),l||(i.r=7&c|o[c/8|0]<<3,c-=7,i.h=p,i.p=g,i.i=Q,i.w=I)}else{for(Q=i.w||0;Q<s+l;Q+=65535){var iA=Q+65535;iA>=s&&(o[c/8|0]=l,iA=s),c=$(o,c+1,A.subarray(Q,iA))}i.i=s}return function(A,t,e){return(null==t||t<0)&&(t=0),(null==e||e>A.length)&&(e=A.length),new x(A.subarray(t,e))}(a,0,r+z(c)+n)},nA=function(){var A=1,t=0;return{p:function(e){for(var r=A,n=t,i=0|e.length,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)n+=r+=e[s];r=(65535&r)+15*(r>>16),n=(65535&n)+15*(n>>16)}A=r,t=n},d:function(){return(255&(A%=65521))<<24|(65280&A)<<8|(255&(t%=65521))<<8|t>>8}}},iA=function(A,t,e){for(;e;++t)A[t]=e,e>>>=8};function sA(A,t){t||={};var e=nA();e.p(A);var r=function(A,t,e,r,n){if(!n&&(n={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new x(i.length+A.length);s.set(i),s.set(A,i.length),A=s,n.w=i.length}return rA(A,null==t.level?6:t.level,null==t.mem?n.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(A.length)))):20:12+t.mem,e,r,n)}(A,t,t.dictionary?6:2,4);return function(A,t){var e=t.level,r=0==e?0:e<6?1:9==e?3:2;if(A[0]=120,A[1]=r<<6|(t.dictionary&&32),A[1]|=31-(A[0]<<8|A[1])%31,t.dictionary){var n=nA();n.p(t.dictionary),iA(A,2,n.d())}}(r,t),iA(r,r.length-4,e.d()),r}var aA=typeof TextDecoder<"u"&&new TextDecoder;try{aA.decode(eA,{stream:!0})}catch{}function oA(A,t){(null==t||t>A.length)&&(t=A.length);for(var e=0,r=Array(t);e<t;e++)r[e]=A[e];return r}function lA(A,t){return function(A){if(Array.isArray(A))return A}(A)||function(A,t){var e=null==A?null:typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(null!=e){var r,n,i,s,a=[],o=!0,l=!1;try{if(i=(e=e.call(A)).next,0===t){if(Object(e)!==e)return;o=!1}else for(;!(o=(r=i.call(e)).done)&&(a.push(r.value),a.length!==t);o=!0);}catch(A){l=!0,n=A}finally{try{if(!o&&null!=e.return&&(s=e.return(),Object(s)!==s))return}finally{if(l)throw n}}return a}}(A,t)||function(A,t){if(A){if("string"==typeof A)return oA(A,t);var e={}.toString.call(A).slice(8,-1);return"Object"===e&&A.constructor&&(e=A.constructor.name),"Map"===e||"Set"===e?Array.from(A):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?oA(A,t):void 0}}(A,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cA(A,t="utf8"){return new TextDecoder(t).decode(A)}var uA=new TextEncoder;var hA=(()=>{let A=new Uint8Array(4);return!((new Uint32Array(A.buffer)[0]=1)&A[0])})(),fA={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},dA=class A{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let r=!1;"number"==typeof t?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);let n=e.offset?e.offset>>>0:0,i=t.byteLength-n,s=n;(ArrayBuffer.isView(t)||t instanceof A)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+n),t=t.buffer),this.lastWrittenByte=r?i:0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(A=1){return this.offset+A<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(A=1){return this.offset+=A,this}back(A=1){return this.offset-=A,this}seek(A){return this.offset=A,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let A=this._marks.pop();if(void 0===A)throw Error("Mark stack empty");return this.seek(A),this}rewind(){return this.offset=0,this}ensureAvailable(A=1){if(!this.available(A)){let t=2*(this.offset+A),e=new Uint8Array(t);e.set(new Uint8Array(this.buffer)),this.buffer=e.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(A=1){return this.readArray(A,"uint8")}readArray(A,t){let e=fA[t].BYTES_PER_ELEMENT*A,r=this.byteOffset+this.offset,n=this.buffer.slice(r,r+e);if(this.littleEndian===hA&&"uint8"!==t&&"int8"!==t){let A=new Uint8Array(this.buffer.slice(r,r+e));A.reverse();let n=new fA[t](A.buffer);return this.offset+=e,n.reverse(),n}let i=new fA[t](n);return this.offset+=e,i}readInt16(){let A=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,A}readUint16(){let A=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,A}readInt32(){let A=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,A}readUint32(){let A=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat32(){let A=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat64(){let A=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,A}readBigInt64(){let A=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,A}readBigUint64(){let A=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,A}readChar(){return String.fromCharCode(this.readInt8())}readChars(A=1){let t="";for(let e=0;e<A;e++)t+=this.readChar();return t}readUtf8(A=1){return cA(this.readBytes(A))}decodeText(A=1,t="utf8"){return cA(this.readBytes(A),t)}writeBoolean(A){return this.writeUint8(A?255:0),this}writeInt8(A){return this.ensureAvailable(1),this._data.setInt8(this.offset++,A),this._updateLastWrittenByte(),this}writeUint8(A){return this.ensureAvailable(1),this._data.setUint8(this.offset++,A),this._updateLastWrittenByte(),this}writeByte(A){return this.writeUint8(A)}writeBytes(A){this.ensureAvailable(A.length);for(let t=0;t<A.length;t++)this._data.setUint8(this.offset++,A[t]);return this._updateLastWrittenByte(),this}writeInt16(A){return this.ensureAvailable(2),this._data.setInt16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(A){return this.ensureAvailable(2),this._data.setUint16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(A){return this.ensureAvailable(4),this._data.setInt32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(A){return this.ensureAvailable(4),this._data.setUint32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(A){return this.ensureAvailable(4),this._data.setFloat32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(A){return this.ensureAvailable(8),this._data.setFloat64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(A){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(A){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(A){return this.writeUint8(A.charCodeAt(0))}writeChars(A){for(let t=0;t<A.length;t++)this.writeUint8(A.charCodeAt(t));return this}writeUtf8(A){return this.writeBytes(function(A){return uA.encode(A)}(A))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function gA(A){let t=A.length;for(;--t>=0;)A[t]=0}var pA=256,BA=286,wA=30,mA=15,yA=new Uint8Array([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]),vA=new Uint8Array([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]),bA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),CA=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),FA=Array(576);gA(FA);var QA=Array(60);gA(QA);var xA=Array(512);gA(xA);var UA=Array(256);gA(UA);var EA=Array(29);gA(EA);var LA,_A,SA,IA=Array(wA);function NA(A,t,e,r,n){this.static_tree=A,this.extra_bits=t,this.extra_base=e,this.elems=r,this.max_length=n,this.has_stree=A&&A.length}function HA(A,t){this.dyn_tree=A,this.max_code=0,this.stat_desc=t}gA(IA);var PA=A=>A<256?xA[A]:xA[256+(A>>>7)],kA=(A,t)=>{A.pending_buf[A.pending++]=255&t,A.pending_buf[A.pending++]=t>>>8&255},OA=(A,t,e)=>{A.bi_valid>16-e?(A.bi_buf|=t<<A.bi_valid&65535,kA(A,A.bi_buf),A.bi_buf=t>>16-A.bi_valid,A.bi_valid+=e-16):(A.bi_buf|=t<<A.bi_valid&65535,A.bi_valid+=e)},TA=(A,t,e)=>{OA(A,e[2*t],e[2*t+1])},DA=(A,t)=>{let e=0;do{e|=1&A,A>>>=1,e<<=1}while(--t>0);return e>>>1},MA=(A,t,e)=>{let r,n,i=Array(16),s=0;for(r=1;r<=mA;r++)s=s+e[r-1]<<1,i[r]=s;for(n=0;n<=t;n++){let t=A[2*n+1];0!==t&&(A[2*n]=DA(i[t]++,t))}},RA=A=>{let t;for(t=0;t<BA;t++)A.dyn_ltree[2*t]=0;for(t=0;t<wA;t++)A.dyn_dtree[2*t]=0;for(t=0;t<19;t++)A.bl_tree[2*t]=0;A.dyn_ltree[512]=1,A.opt_len=A.static_len=0,A.sym_next=A.matches=0},KA=A=>{A.bi_valid>8?kA(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0},VA=(A,t,e,r)=>{let n=2*t,i=2*e;return A[n]<A[i]||A[n]===A[i]&&r[t]<=r[e]},jA=(A,t,e)=>{let r=A.heap[e],n=e<<1;for(;n<=A.heap_len&&(n<A.heap_len&&VA(t,A.heap[n+1],A.heap[n],A.depth)&&n++,!VA(t,r,A.heap[n],A.depth));)A.heap[e]=A.heap[n],e=n,n<<=1;A.heap[e]=r},GA=(A,t,e)=>{let r,n,i,s,a=0;if(0!==A.sym_next)do{r=255&A.pending_buf[A.sym_buf+a++],r+=(255&A.pending_buf[A.sym_buf+a++])<<8,n=A.pending_buf[A.sym_buf+a++],0===r?TA(A,n,t):(i=UA[n],TA(A,i+pA+1,t),s=yA[i],0!==s&&(n-=EA[i],OA(A,n,s)),r--,i=PA(r),TA(A,i,e),s=vA[i],0!==s&&(r-=IA[i],OA(A,r,s)))}while(a<A.sym_next);TA(A,256,t)},zA=(A,t)=>{let e,r,n,i=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems,l=-1;for(A.heap_len=0,A.heap_max=573,e=0;e<o;e++)0===i[2*e]?i[2*e+1]=0:(A.heap[++A.heap_len]=l=e,A.depth[e]=0);for(;A.heap_len<2;)n=A.heap[++A.heap_len]=l<2?++l:0,i[2*n]=1,A.depth[n]=0,A.opt_len--,a&&(A.static_len-=s[2*n+1]);for(t.max_code=l,e=A.heap_len>>1;e>=1;e--)jA(A,i,e);n=o;do{e=A.heap[1],A.heap[1]=A.heap[A.heap_len--],jA(A,i,1),r=A.heap[1],A.heap[--A.heap_max]=e,A.heap[--A.heap_max]=r,i[2*n]=i[2*e]+i[2*r],A.depth[n]=(A.depth[e]>=A.depth[r]?A.depth[e]:A.depth[r])+1,i[2*e+1]=i[2*r+1]=n,A.heap[1]=n++,jA(A,i,1)}while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1],((A,t)=>{let e,r,n,i,s,a,o=t.dyn_tree,l=t.max_code,c=t.stat_desc.static_tree,u=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,d=t.stat_desc.max_length,g=0;for(i=0;i<=mA;i++)A.bl_count[i]=0;for(o[2*A.heap[A.heap_max]+1]=0,e=A.heap_max+1;e<573;e++)r=A.heap[e],i=o[2*o[2*r+1]+1]+1,i>d&&(i=d,g++),o[2*r+1]=i,!(r>l)&&(A.bl_count[i]++,s=0,r>=f&&(s=h[r-f]),a=o[2*r],A.opt_len+=a*(i+s),u&&(A.static_len+=a*(c[2*r+1]+s)));if(0!==g){do{for(i=d-1;0===A.bl_count[i];)i--;A.bl_count[i]--,A.bl_count[i+1]+=2,A.bl_count[d]--,g-=2}while(g>0);for(i=d;0!==i;i--)for(r=A.bl_count[i];0!==r;)n=A.heap[--e],!(n>l)&&(o[2*n+1]!==i&&(A.opt_len+=(i-o[2*n+1])*o[2*n],o[2*n+1]=i),r--)}})(A,t),MA(i,l,A.bl_count)},qA=(A,t,e)=>{let r,n,i=-1,s=t[1],a=0,o=7,l=4;for(0===s&&(o=138,l=3),t[2*(e+1)+1]=65535,r=0;r<=e;r++)n=s,s=t[2*(r+1)+1],!(++a<o&&n===s)&&(a<l?A.bl_tree[2*n]+=a:0===n?a<=10?A.bl_tree[34]++:A.bl_tree[36]++:(n!==i&&A.bl_tree[2*n]++,A.bl_tree[32]++),a=0,i=n,0===s?(o=138,l=3):n===s?(o=6,l=3):(o=7,l=4))},XA=(A,t,e)=>{let r,n,i=-1,s=t[1],a=0,o=7,l=4;for(0===s&&(o=138,l=3),r=0;r<=e;r++)if(n=s,s=t[2*(r+1)+1],!(++a<o&&n===s)){if(a<l)do{TA(A,n,A.bl_tree)}while(0!=--a);else 0===n?a<=10?(TA(A,17,A.bl_tree),OA(A,a-3,3)):(TA(A,18,A.bl_tree),OA(A,a-11,7)):(n!==i&&(TA(A,n,A.bl_tree),a--),TA(A,16,A.bl_tree),OA(A,a-3,2));a=0,i=n,0===s?(o=138,l=3):n===s?(o=6,l=3):(o=7,l=4)}},WA=!1,YA=(A,t,e,r)=>{OA(A,0+(r?1:0),3),KA(A),kA(A,e),kA(A,~e),e&&A.pending_buf.set(A.window.subarray(t,t+e),A.pending),A.pending+=e},JA={_tr_init:A=>{WA||=((()=>{let A,t,e,r,n,i=Array(16);for(e=0,r=0;r<28;r++)for(EA[r]=e,A=0;A<1<<yA[r];A++)UA[e++]=r;for(UA[e-1]=r,n=0,r=0;r<16;r++)for(IA[r]=n,A=0;A<1<<vA[r];A++)xA[n++]=r;for(n>>=7;r<wA;r++)for(IA[r]=n<<7,A=0;A<1<<vA[r]-7;A++)xA[256+n++]=r;for(t=0;t<=mA;t++)i[t]=0;for(A=0;A<=143;)FA[2*A+1]=8,A++,i[8]++;for(;A<=255;)FA[2*A+1]=9,A++,i[9]++;for(;A<=279;)FA[2*A+1]=7,A++,i[7]++;for(;A<=287;)FA[2*A+1]=8,A++,i[8]++;for(MA(FA,287,i),A=0;A<wA;A++)QA[2*A+1]=5,QA[2*A]=DA(A,5);LA=new NA(FA,yA,257,BA,mA),_A=new NA(QA,vA,0,wA,mA),SA=new NA([],bA,0,19,7)})(),!0),A.l_desc=new HA(A.dyn_ltree,LA),A.d_desc=new HA(A.dyn_dtree,_A),A.bl_desc=new HA(A.bl_tree,SA),A.bi_buf=0,A.bi_valid=0,RA(A)},_tr_stored_block:YA,_tr_flush_block:(A,t,e,r)=>{let n,i,s=0;A.level>0?(2===A.strm.data_type&&(A.strm.data_type=(A=>{let t,e=4093624447;for(t=0;t<=31;t++,e>>>=1)if(1&e&&0!==A.dyn_ltree[2*t])return 0;if(0!==A.dyn_ltree[18]||0!==A.dyn_ltree[20]||0!==A.dyn_ltree[26])return 1;for(t=32;t<pA;t++)if(0!==A.dyn_ltree[2*t])return 1;return 0})(A)),zA(A,A.l_desc),zA(A,A.d_desc),s=(A=>{let t;for(qA(A,A.dyn_ltree,A.l_desc.max_code),qA(A,A.dyn_dtree,A.d_desc.max_code),zA(A,A.bl_desc),t=18;t>=3&&0===A.bl_tree[2*CA[t]+1];t--);return A.opt_len+=3*(t+1)+5+5+4,t})(A),n=A.opt_len+3+7>>>3,i=A.static_len+3+7>>>3,i<=n&&(n=i)):n=i=e+5,e+4<=n&&-1!==t?YA(A,t,e,r):4===A.strategy||i===n?(OA(A,2+(r?1:0),3),GA(A,FA,QA)):(OA(A,4+(r?1:0),3),((A,t,e,r)=>{let n;for(OA(A,t-257,5),OA(A,e-1,5),OA(A,r-4,4),n=0;n<r;n++)OA(A,A.bl_tree[2*CA[n]+1],3);XA(A,A.dyn_ltree,t-1),XA(A,A.dyn_dtree,e-1)})(A,A.l_desc.max_code+1,A.d_desc.max_code+1,s+1),GA(A,A.dyn_ltree,A.dyn_dtree)),RA(A),r&&KA(A)},_tr_tally:(A,t,e)=>(A.pending_buf[A.sym_buf+A.sym_next++]=t,A.pending_buf[A.sym_buf+A.sym_next++]=t>>8,A.pending_buf[A.sym_buf+A.sym_next++]=e,0===t?A.dyn_ltree[2*e]++:(A.matches++,t--,A.dyn_ltree[2*(UA[e]+pA+1)]++,A.dyn_dtree[2*PA(t)]++),A.sym_next===A.sym_end),_tr_align:A=>{OA(A,2,3),TA(A,256,FA),(A=>{16===A.bi_valid?(kA(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)})(A)}},ZA=(A,t,e,r)=>{let n=65535&A,i=A>>>16&65535,s=0;for(;0!==e;){s=e>2e3?2e3:e,e-=s;do{n=n+t[r++]|0,i=i+n|0}while(--s);n%=65521,i%=65521}return n|i<<16},$A=new Uint32Array((()=>{let A,t=[];for(var e=0;e<256;e++){A=e;for(var r=0;r<8;r++)A=1&A?3988292384^A>>>1:A>>>1;t[e]=A}return t})()),At=(A,t,e,r)=>{let n=$A,i=r+e;A^=-1;for(let e=r;e<i;e++)A=A>>>8^n[255&(A^t[e])];return~A},tt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},et={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:rt,_tr_stored_block:nt,_tr_flush_block:it,_tr_tally:st,_tr_align:at}=JA,{Z_NO_FLUSH:ot,Z_PARTIAL_FLUSH:lt,Z_FULL_FLUSH:ct,Z_FINISH:ut,Z_BLOCK:ht,Z_OK:ft,Z_STREAM_END:dt,Z_STREAM_ERROR:gt,Z_DATA_ERROR:pt,Z_BUF_ERROR:Bt,Z_DEFAULT_COMPRESSION:wt,Z_FILTERED:mt,Z_HUFFMAN_ONLY:yt,Z_RLE:vt,Z_FIXED:bt,Z_DEFAULT_STRATEGY:Ct,Z_UNKNOWN:Ft,Z_DEFLATED:Qt}=et,xt=258,Ut=262,Et=42,Lt=113,_t=666,St=(A,t)=>(A.msg=tt[t],t),It=A=>2*A-(A>4?9:0),Nt=A=>{let t=A.length;for(;--t>=0;)A[t]=0},Ht=A=>{let t,e,r,n=A.w_size;t=A.hash_size,r=t;do{e=A.head[--r],A.head[r]=e>=n?e-n:0}while(--t);t=n,r=t;do{e=A.prev[--r],A.prev[r]=e>=n?e-n:0}while(--t)},Pt=(A,t,e)=>(t<<A.hash_shift^e)&A.hash_mask,kt=A=>{let t=A.state,e=t.pending;e>A.avail_out&&(e=A.avail_out),0!==e&&(A.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+e),A.next_out),A.next_out+=e,t.pending_out+=e,A.total_out+=e,A.avail_out-=e,t.pending-=e,0===t.pending&&(t.pending_out=0))},Ot=(A,t)=>{it(A,A.block_start>=0?A.block_start:-1,A.strstart-A.block_start,t),A.block_start=A.strstart,kt(A.strm)},Tt=(A,t)=>{A.pending_buf[A.pending++]=t},Dt=(A,t)=>{A.pending_buf[A.pending++]=t>>>8&255,A.pending_buf[A.pending++]=255&t},Mt=(A,t,e,r)=>{let n=A.avail_in;return n>r&&(n=r),0===n?0:(A.avail_in-=n,t.set(A.input.subarray(A.next_in,A.next_in+n),e),1===A.state.wrap?A.adler=ZA(A.adler,t,n,e):2===A.state.wrap&&(A.adler=At(A.adler,t,n,e)),A.next_in+=n,A.total_in+=n,n)},Rt=(A,t)=>{let e,r,n=A.max_chain_length,i=A.strstart,s=A.prev_length,a=A.nice_match,o=A.strstart>A.w_size-Ut?A.strstart-(A.w_size-Ut):0,l=A.window,c=A.w_mask,u=A.prev,h=A.strstart+xt,f=l[i+s-1],d=l[i+s];A.prev_length>=A.good_match&&(n>>=2),a>A.lookahead&&(a=A.lookahead);do{if(e=t,l[e+s]===d&&l[e+s-1]===f&&l[e]===l[i]&&l[++e]===l[i+1]){i+=2,e++;do{}while(l[++i]===l[++e]&&l[++i]===l[++e]&&l[++i]===l[++e]&&l[++i]===l[++e]&&l[++i]===l[++e]&&l[++i]===l[++e]&&l[++i]===l[++e]&&l[++i]===l[++e]&&i<h);if(r=xt-(h-i),i=h-xt,r>s){if(A.match_start=t,s=r,r>=a)break;f=l[i+s-1],d=l[i+s]}}}while((t=u[t&c])>o&&0!=--n);return s<=A.lookahead?s:A.lookahead},Kt=A=>{let t,e,r,n=A.w_size;do{if(e=A.window_size-A.lookahead-A.strstart,A.strstart>=n+(n-Ut)&&(A.window.set(A.window.subarray(n,n+n-e),0),A.match_start-=n,A.strstart-=n,A.block_start-=n,A.insert>A.strstart&&(A.insert=A.strstart),Ht(A),e+=n),0===A.strm.avail_in)break;if(t=Mt(A.strm,A.window,A.strstart+A.lookahead,e),A.lookahead+=t,A.lookahead+A.insert>=3)for(r=A.strstart-A.insert,A.ins_h=A.window[r],A.ins_h=Pt(A,A.ins_h,A.window[r+1]);A.insert&&(A.ins_h=Pt(A,A.ins_h,A.window[r+3-1]),A.prev[r&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=r,r++,A.insert--,!(A.lookahead+A.insert<3)););}while(A.lookahead<Ut&&0!==A.strm.avail_in)},Vt=(A,t)=>{let e,r,n,i=A.pending_buf_size-5>A.w_size?A.w_size:A.pending_buf_size-5,s=0,a=A.strm.avail_in;do{if(e=65535,n=A.bi_valid+42>>3,A.strm.avail_out<n||(n=A.strm.avail_out-n,r=A.strstart-A.block_start,e>r+A.strm.avail_in&&(e=r+A.strm.avail_in),e>n&&(e=n),e<i&&(0===e&&t!==ut||t===ot||e!==r+A.strm.avail_in)))break;s=t===ut&&e===r+A.strm.avail_in?1:0,nt(A,0,0,s),A.pending_buf[A.pending-4]=e,A.pending_buf[A.pending-3]=e>>8,A.pending_buf[A.pending-2]=~e,A.pending_buf[A.pending-1]=~e>>8,kt(A.strm),r&&(r>e&&(r=e),A.strm.output.set(A.window.subarray(A.block_start,A.block_start+r),A.strm.next_out),A.strm.next_out+=r,A.strm.avail_out-=r,A.strm.total_out+=r,A.block_start+=r,e-=r),e&&(Mt(A.strm,A.strm.output,A.strm.next_out,e),A.strm.next_out+=e,A.strm.avail_out-=e,A.strm.total_out+=e)}while(0===s);return a-=A.strm.avail_in,a&&(a>=A.w_size?(A.matches=2,A.window.set(A.strm.input.subarray(A.strm.next_in-A.w_size,A.strm.next_in),0),A.strstart=A.w_size,A.insert=A.strstart):(A.window_size-A.strstart<=a&&(A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,A.insert>A.strstart&&(A.insert=A.strstart)),A.window.set(A.strm.input.subarray(A.strm.next_in-a,A.strm.next_in),A.strstart),A.strstart+=a,A.insert+=a>A.w_size-A.insert?A.w_size-A.insert:a),A.block_start=A.strstart),A.high_water<A.strstart&&(A.high_water=A.strstart),s?4:t!==ot&&t!==ut&&0===A.strm.avail_in&&A.strstart===A.block_start?2:(n=A.window_size-A.strstart,A.strm.avail_in>n&&A.block_start>=A.w_size&&(A.block_start-=A.w_size,A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,n+=A.w_size,A.insert>A.strstart&&(A.insert=A.strstart)),n>A.strm.avail_in&&(n=A.strm.avail_in),n&&(Mt(A.strm,A.window,A.strstart,n),A.strstart+=n,A.insert+=n>A.w_size-A.insert?A.w_size-A.insert:n),A.high_water<A.strstart&&(A.high_water=A.strstart),n=A.bi_valid+42>>3,n=A.pending_buf_size-n>65535?65535:A.pending_buf_size-n,i=n>A.w_size?A.w_size:n,r=A.strstart-A.block_start,(r>=i||(r||t===ut)&&t!==ot&&0===A.strm.avail_in&&r<=n)&&(e=r>n?n:r,s=t===ut&&0===A.strm.avail_in&&e===r?1:0,nt(A,A.block_start,e,s),A.block_start+=e,kt(A.strm)),s?3:1)},jt=(A,t)=>{let e,r;for(;;){if(A.lookahead<Ut){if(Kt(A),A.lookahead<Ut&&t===ot)return 1;if(0===A.lookahead)break}if(e=0,A.lookahead>=3&&(A.ins_h=Pt(A,A.ins_h,A.window[A.strstart+3-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),0!==e&&A.strstart-e<=A.w_size-Ut&&(A.match_length=Rt(A,e)),A.match_length>=3)if(r=st(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){A.match_length--;do{A.strstart++,A.ins_h=Pt(A,A.ins_h,A.window[A.strstart+3-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart}while(0!=--A.match_length);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=Pt(A,A.ins_h,A.window[A.strstart+1]);else r=st(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(r&&(Ot(A,!1),0===A.strm.avail_out))return 1}return A.insert=A.strstart<2?A.strstart:2,t===ut?(Ot(A,!0),0===A.strm.avail_out?3:4):A.sym_next&&(Ot(A,!1),0===A.strm.avail_out)?1:2},Gt=(A,t)=>{let e,r,n;for(;;){if(A.lookahead<Ut){if(Kt(A),A.lookahead<Ut&&t===ot)return 1;if(0===A.lookahead)break}if(e=0,A.lookahead>=3&&(A.ins_h=Pt(A,A.ins_h,A.window[A.strstart+3-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),A.prev_length=A.match_length,A.prev_match=A.match_start,A.match_length=2,0!==e&&A.prev_length<A.max_lazy_match&&A.strstart-e<=A.w_size-Ut&&(A.match_length=Rt(A,e),A.match_length<=5&&(A.strategy===mt||3===A.match_length&&A.strstart-A.match_start>4096)&&(A.match_length=2)),A.prev_length>=3&&A.match_length<=A.prev_length){n=A.strstart+A.lookahead-3,r=st(A,A.strstart-1-A.prev_match,A.prev_length-3),A.lookahead-=A.prev_length-1,A.prev_length-=2;do{++A.strstart<=n&&(A.ins_h=Pt(A,A.ins_h,A.window[A.strstart+3-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart)}while(0!=--A.prev_length);if(A.match_available=0,A.match_length=2,A.strstart++,r&&(Ot(A,!1),0===A.strm.avail_out))return 1}else if(A.match_available){if(r=st(A,0,A.window[A.strstart-1]),r&&Ot(A,!1),A.strstart++,A.lookahead--,0===A.strm.avail_out)return 1}else A.match_available=1,A.strstart++,A.lookahead--}return A.match_available&&=(r=st(A,0,A.window[A.strstart-1]),0),A.insert=A.strstart<2?A.strstart:2,t===ut?(Ot(A,!0),0===A.strm.avail_out?3:4):A.sym_next&&(Ot(A,!1),0===A.strm.avail_out)?1:2};function zt(A,t,e,r,n){this.good_length=A,this.max_lazy=t,this.nice_length=e,this.max_chain=r,this.func=n}var qt=[new zt(0,0,0,0,Vt),new zt(4,4,8,4,jt),new zt(4,5,16,8,jt),new zt(4,6,32,32,jt),new zt(4,4,16,16,Gt),new zt(8,16,32,32,Gt),new zt(8,16,128,128,Gt),new zt(8,32,128,256,Gt),new zt(32,128,258,1024,Gt),new zt(32,258,258,4096,Gt)];function Xt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Qt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Nt(this.dyn_ltree),Nt(this.dyn_dtree),Nt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Nt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Nt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Wt=A=>{if(!A)return 1;let t=A.state;return!t||t.strm!==A||t.status!==Et&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==Lt&&t.status!==_t?1:0},Yt=A=>{if(Wt(A))return St(A,gt);A.total_in=A.total_out=0,A.data_type=Ft;let t=A.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?Et:Lt,A.adler=2===t.wrap?0:1,t.last_flush=-2,rt(t),ft},Jt=A=>{let t=Yt(A);return t===ft&&(A=>{A.window_size=2*A.w_size,Nt(A.head),A.max_lazy_match=qt[A.level].max_lazy,A.good_match=qt[A.level].good_length,A.nice_match=qt[A.level].nice_length,A.max_chain_length=qt[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0})(A.state),t},Zt=(A,t,e,r,n,i)=>{if(!A)return gt;let s=1;if(t===wt&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),n<1||n>9||e!==Qt||r<8||r>15||t<0||t>9||i<0||i>bt||8===r&&1!==s)return St(A,gt);8===r&&(r=9);let a=new Xt;return A.state=a,a.strm=A,a.status=Et,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=n+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new Uint8Array(2*a.w_size),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<n+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=3*(a.lit_bufsize-1),a.level=t,a.strategy=i,a.method=e,Jt(A)},$t=Zt,Ae=(A,t)=>Wt(A)||2!==A.state.wrap?gt:(A.state.gzhead=t,ft),te=(A,t)=>{if(Wt(A)||t>ht||t<0)return A?St(A,gt):gt;let e=A.state;if(!A.output||0!==A.avail_in&&!A.input||e.status===_t&&t!==ut)return St(A,0===A.avail_out?Bt:gt);let r=e.last_flush;if(e.last_flush=t,0!==e.pending){if(kt(A),0===A.avail_out)return e.last_flush=-1,ft}else if(0===A.avail_in&&It(t)<=It(r)&&t!==ut)return St(A,Bt);if(e.status===_t&&0!==A.avail_in)return St(A,Bt);if(e.status===Et&&0===e.wrap&&(e.status=Lt),e.status===Et){let t=Qt+(e.w_bits-8<<4)<<8,r=-1;if(r=e.strategy>=yt||e.level<2?0:e.level<6?1:6===e.level?2:3,t|=r<<6,0!==e.strstart&&(t|=32),t+=31-t%31,Dt(e,t),0!==e.strstart&&(Dt(e,A.adler>>>16),Dt(e,65535&A.adler)),A.adler=1,e.status=Lt,kt(A),0!==e.pending)return e.last_flush=-1,ft}if(57===e.status)if(A.adler=0,Tt(e,31),Tt(e,139),Tt(e,8),e.gzhead)Tt(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),Tt(e,255&e.gzhead.time),Tt(e,e.gzhead.time>>8&255),Tt(e,e.gzhead.time>>16&255),Tt(e,e.gzhead.time>>24&255),Tt(e,9===e.level?2:e.strategy>=yt||e.level<2?4:0),Tt(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(Tt(e,255&e.gzhead.extra.length),Tt(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(A.adler=At(A.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69;else if(Tt(e,0),Tt(e,0),Tt(e,0),Tt(e,0),Tt(e,0),Tt(e,9===e.level?2:e.strategy>=yt||e.level<2?4:0),Tt(e,3),e.status=Lt,kt(A),0!==e.pending)return e.last_flush=-1,ft;if(69===e.status){if(e.gzhead.extra){let t=e.pending,r=(65535&e.gzhead.extra.length)-e.gzindex;for(;e.pending+r>e.pending_buf_size;){let n=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+n),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>t&&(A.adler=At(A.adler,e.pending_buf,e.pending-t,t)),e.gzindex+=n,kt(A),0!==e.pending)return e.last_flush=-1,ft;t=0,r-=n}let n=new Uint8Array(e.gzhead.extra);e.pending_buf.set(n.subarray(e.gzindex,e.gzindex+r),e.pending),e.pending+=r,e.gzhead.hcrc&&e.pending>t&&(A.adler=At(A.adler,e.pending_buf,e.pending-t,t)),e.gzindex=0}e.status=73}if(73===e.status){if(e.gzhead.name){let t,r=e.pending;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>r&&(A.adler=At(A.adler,e.pending_buf,e.pending-r,r)),kt(A),0!==e.pending)return e.last_flush=-1,ft;r=0}t=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,Tt(e,t)}while(0!==t);e.gzhead.hcrc&&e.pending>r&&(A.adler=At(A.adler,e.pending_buf,e.pending-r,r)),e.gzindex=0}e.status=91}if(91===e.status){if(e.gzhead.comment){let t,r=e.pending;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>r&&(A.adler=At(A.adler,e.pending_buf,e.pending-r,r)),kt(A),0!==e.pending)return e.last_flush=-1,ft;r=0}t=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,Tt(e,t)}while(0!==t);e.gzhead.hcrc&&e.pending>r&&(A.adler=At(A.adler,e.pending_buf,e.pending-r,r))}e.status=103}if(103===e.status){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(kt(A),0!==e.pending))return e.last_flush=-1,ft;Tt(e,255&A.adler),Tt(e,A.adler>>8&255),A.adler=0}if(e.status=Lt,kt(A),0!==e.pending)return e.last_flush=-1,ft}if(0!==A.avail_in||0!==e.lookahead||t!==ot&&e.status!==_t){let r=0===e.level?Vt(e,t):e.strategy===yt?((A,t)=>{let e;for(;;){if(0===A.lookahead&&(Kt(A),0===A.lookahead)){if(t===ot)return 1;break}if(A.match_length=0,e=st(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,e&&(Ot(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,t===ut?(Ot(A,!0),0===A.strm.avail_out?3:4):A.sym_next&&(Ot(A,!1),0===A.strm.avail_out)?1:2})(e,t):e.strategy===vt?((A,t)=>{let e,r,n,i,s=A.window;for(;;){if(A.lookahead<=xt){if(Kt(A),A.lookahead<=xt&&t===ot)return 1;if(0===A.lookahead)break}if(A.match_length=0,A.lookahead>=3&&A.strstart>0&&(n=A.strstart-1,r=s[n],r===s[++n]&&r===s[++n]&&r===s[++n])){i=A.strstart+xt;do{}while(r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&n<i);A.match_length=xt-(i-n),A.match_length>A.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=3?(e=st(A,1,A.match_length-3),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(e=st(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),e&&(Ot(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,t===ut?(Ot(A,!0),0===A.strm.avail_out?3:4):A.sym_next&&(Ot(A,!1),0===A.strm.avail_out)?1:2})(e,t):qt[e.level].func(e,t);if((3===r||4===r)&&(e.status=_t),1===r||3===r)return 0===A.avail_out&&(e.last_flush=-1),ft;if(2===r&&(t===lt?at(e):t!==ht&&(nt(e,0,0,!1),t===ct&&(Nt(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),kt(A),0===A.avail_out))return e.last_flush=-1,ft}return t===ut?e.wrap<=0?dt:(2===e.wrap?(Tt(e,255&A.adler),Tt(e,A.adler>>8&255),Tt(e,A.adler>>16&255),Tt(e,A.adler>>24&255),Tt(e,255&A.total_in),Tt(e,A.total_in>>8&255),Tt(e,A.total_in>>16&255),Tt(e,A.total_in>>24&255)):(Dt(e,A.adler>>>16),Dt(e,65535&A.adler)),kt(A),e.wrap>0&&(e.wrap=-e.wrap),0===e.pending?dt:ft):ft},ee=A=>{if(Wt(A))return gt;let t=A.state.status;return A.state=null,t===Lt?St(A,pt):ft},re=(A,t)=>{let e=t.length;if(Wt(A))return gt;let r=A.state,n=r.wrap;if(2===n||1===n&&r.status!==Et||r.lookahead)return gt;if(1===n&&(A.adler=ZA(A.adler,t,e,0)),r.wrap=0,e>=r.w_size){0===n&&(Nt(r.head),r.strstart=0,r.block_start=0,r.insert=0);let A=new Uint8Array(r.w_size);A.set(t.subarray(e-r.w_size,e),0),t=A,e=r.w_size}let i=A.avail_in,s=A.next_in,a=A.input;for(A.avail_in=e,A.next_in=0,A.input=t,Kt(r);r.lookahead>=3;){let A=r.strstart,t=r.lookahead-2;do{r.ins_h=Pt(r,r.ins_h,r.window[A+3-1]),r.prev[A&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=A,A++}while(--t);r.strstart=A,r.lookahead=2,Kt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,A.next_in=s,A.input=a,A.avail_in=i,r.wrap=n,ft},ne=(A,t)=>Object.prototype.hasOwnProperty.call(A,t),ie=function(A){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let e=t.shift();if(e){if("object"!=typeof e)throw TypeError(e+"must be non-object");for(let t in e)ne(e,t)&&(A[t]=e[t])}}return A},se=A=>{let t=0;for(let e=0,r=A.length;e<r;e++)t+=A[e].length;let e=new Uint8Array(t);for(let t=0,r=0,n=A.length;t<n;t++){let n=A[t];e.set(n,r),r+=n.length}return e},ae=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ae=!1}var oe=new Uint8Array(256);for(let A=0;A<256;A++)oe[A]=A>=252?6:A>=248?5:A>=240?4:A>=224?3:A>=192?2:1;oe[254]=oe[254]=1;var le=A=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);let t,e,r,n,i,s=A.length,a=0;for(n=0;n<s;n++)e=A.charCodeAt(n),55296==(64512&e)&&n+1<s&&(r=A.charCodeAt(n+1),56320==(64512&r)&&(e=65536+(e-55296<<10)+(r-56320),n++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(a),i=0,n=0;i<a;n++)e=A.charCodeAt(n),55296==(64512&e)&&n+1<s&&(r=A.charCodeAt(n+1),56320==(64512&r)&&(e=65536+(e-55296<<10)+(r-56320),n++)),e<128?t[i++]=e:e<2048?(t[i++]=192|e>>>6,t[i++]=128|63&e):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|63&e):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|63&e);return t},ce=(A,t)=>{let e=t||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,t));let r,n,i=Array(2*e);for(n=0,r=0;r<e;){let t=A[r++];if(t<128){i[n++]=t;continue}let s=oe[t];if(s>4)i[n++]=65533,r+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&r<e;)t=t<<6|63&A[r++],s--;s>1?i[n++]=65533:t<65536?i[n++]=t:(t-=65536,i[n++]=55296|t>>10&1023,i[n++]=56320|1023&t)}}return((A,t)=>{if(t<65534&&A.subarray&&ae)return String.fromCharCode.apply(null,A.length===t?A:A.subarray(0,t));let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(A[r]);return e})(i,n)},ue=(A,t)=>{t||=A.length,t>A.length&&(t=A.length);let e=t-1;for(;e>=0&&128==(192&A[e]);)e--;return e<0||0===e?t:e+oe[A[e]]>t?e:t};var he=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},fe=Object.prototype.toString,{Z_NO_FLUSH:de,Z_SYNC_FLUSH:ge,Z_FULL_FLUSH:pe,Z_FINISH:Be,Z_OK:we,Z_STREAM_END:me,Z_DEFAULT_COMPRESSION:ye,Z_DEFAULT_STRATEGY:ve,Z_DEFLATED:be}=et;function Ce(A){this.options=ie({level:ye,method:be,chunkSize:16384,windowBits:15,memLevel:8,strategy:ve},A||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new he,this.strm.avail_out=0;let e=$t(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==we)throw Error(tt[e]);if(t.header&&Ae(this.strm,t.header),t.dictionary){let A;if(A="string"==typeof t.dictionary?le(t.dictionary):"[object ArrayBuffer]"===fe.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,e=re(this.strm,A),e!==we)throw Error(tt[e]);this._dict_set=!0}}function Fe(A,t){let e=new Ce(t);if(e.push(A,!0),e.err)throw e.msg||tt[e.err];return e.result}Ce.prototype.push=function(A,t){let e,r,n=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Be:de,"string"==typeof A?n.input=le(A):"[object ArrayBuffer]"===fe.call(A)?n.input=new Uint8Array(A):n.input=A,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(r===ge||r===pe)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(e=te(n,r),e===me)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),e=ee(this.strm),this.onEnd(e),this.ended=!0,e===we;if(0!==n.avail_out){if(r>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},Ce.prototype.onData=function(A){this.chunks.push(A)},Ce.prototype.onEnd=function(A){A===we&&(this.result=se(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var Qe={Deflate:Ce,deflate:Fe,deflateRaw:function(A,t){return t||={},t.raw=!0,Fe(A,t)},gzip:function(A,t){return t||={},t.gzip=!0,Fe(A,t)},constants:et},xe=16209,Ue=function(A,t){let e,r,n,i,s,a,o,l,c,u,h,f,d,g,p,B,w,m,y,v,b,C,F,Q,x=A.state;e=A.next_in,F=A.input,r=e+(A.avail_in-5),n=A.next_out,Q=A.output,i=n-(t-A.avail_out),s=n+(A.avail_out-257),a=x.dmax,o=x.wsize,l=x.whave,c=x.wnext,u=x.window,h=x.hold,f=x.bits,d=x.lencode,g=x.distcode,p=(1<<x.lenbits)-1,B=(1<<x.distbits)-1;A:do{f<15&&(h+=F[e++]<<f,f+=8,h+=F[e++]<<f,f+=8),w=d[h&p];t:for(;;){if(m=w>>>24,h>>>=m,f-=m,m=w>>>16&255,0===m)Q[n++]=65535&w;else{if(!(16&m)){if(64&m){if(32&m){x.mode=16191;break A}A.msg="invalid literal/length code",x.mode=xe;break A}w=d[(65535&w)+(h&(1<<m)-1)];continue t}for(y=65535&w,m&=15,m&&(f<m&&(h+=F[e++]<<f,f+=8),y+=h&(1<<m)-1,h>>>=m,f-=m),f<15&&(h+=F[e++]<<f,f+=8,h+=F[e++]<<f,f+=8),w=g[h&B];;){if(m=w>>>24,h>>>=m,f-=m,m=w>>>16&255,16&m){if(v=65535&w,m&=15,f<m&&(h+=F[e++]<<f,f+=8,f<m&&(h+=F[e++]<<f,f+=8)),v+=h&(1<<m)-1,v>a){A.msg="invalid distance too far back",x.mode=xe;break A}if(h>>>=m,f-=m,m=n-i,v>m){if(m=v-m,m>l&&x.sane){A.msg="invalid distance too far back",x.mode=xe;break A}if(b=0,C=u,0===c){if(b+=o-m,m<y){y-=m;do{Q[n++]=u[b++]}while(--m);b=n-v,C=Q}}else if(c<m){if(b+=o+c-m,m-=c,m<y){y-=m;do{Q[n++]=u[b++]}while(--m);if(b=0,c<y){m=c,y-=m;do{Q[n++]=u[b++]}while(--m);b=n-v,C=Q}}}else if(b+=c-m,m<y){y-=m;do{Q[n++]=u[b++]}while(--m);b=n-v,C=Q}for(;y>2;)Q[n++]=C[b++],Q[n++]=C[b++],Q[n++]=C[b++],y-=3;y&&(Q[n++]=C[b++],y>1&&(Q[n++]=C[b++]))}else{b=n-v;do{Q[n++]=Q[b++],Q[n++]=Q[b++],Q[n++]=Q[b++],y-=3}while(y>2);y&&(Q[n++]=Q[b++],y>1&&(Q[n++]=Q[b++]))}break}if(64&m){A.msg="invalid distance code",x.mode=xe;break A}w=g[(65535&w)+(h&(1<<m)-1)]}}break}}while(e<r&&n<s);y=f>>3,e-=y,f-=y<<3,h&=(1<<f)-1,A.next_in=e,A.next_out=n,A.avail_in=e<r?r-e+5:5-(e-r),A.avail_out=n<s?s-n+257:257-(n-s),x.hold=h,x.bits=f},Ee=15,Le=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),_e=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Se=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Ne=(A,t,e,r,n,i,s,a)=>{let o,l,c,u,h,f,d,g,p,B=a.bits,w=0,m=0,y=0,v=0,b=0,C=0,F=0,Q=0,x=0,U=0,E=null,L=new Uint16Array(16),_=new Uint16Array(16),S=null;for(w=0;w<=Ee;w++)L[w]=0;for(m=0;m<r;m++)L[t[e+m]]++;for(b=B,v=Ee;v>=1&&0===L[v];v--);if(b>v&&(b=v),0===v)return n[i++]=20971520,n[i++]=20971520,a.bits=1,0;for(y=1;y<v&&0===L[y];y++);for(b<y&&(b=y),Q=1,w=1;w<=Ee;w++)if(Q<<=1,Q-=L[w],Q<0)return-1;if(Q>0&&(0===A||1!==v))return-1;for(_[1]=0,w=1;w<Ee;w++)_[w+1]=_[w]+L[w];for(m=0;m<r;m++)0!==t[e+m]&&(s[_[t[e+m]]++]=m);if(0===A?(E=S=s,f=20):1===A?(E=Le,S=_e,f=257):(E=Se,S=Ie,f=0),U=0,m=0,w=y,h=i,C=b,F=0,c=-1,x=1<<b,u=x-1,1===A&&x>852||2===A&&x>592)return 1;for(;;){d=w-F,s[m]+1<f?(g=0,p=s[m]):s[m]>=f?(g=S[s[m]-f],p=E[s[m]-f]):(g=96,p=0),o=1<<w-F,l=1<<C,y=l;do{l-=o,n[h+(U>>F)+l]=d<<24|g<<16|p}while(0!==l);for(o=1<<w-1;U&o;)o>>=1;if(0===o?U=0:(U&=o-1,U+=o),m++,0==--L[w]){if(w===v)break;w=t[e+s[m]]}if(w>b&&(U&u)!==c){for(0===F&&(F=b),h+=y,C=w-F,Q=1<<C;C+F<v&&(Q-=L[C+F],!(Q<=0));)C++,Q<<=1;if(x+=1<<C,1===A&&x>852||2===A&&x>592)return 1;c=U&u,n[c]=b<<24|C<<16|h-i}}return 0!==U&&(n[h+U]=w-F<<24|4194304),a.bits=b,0},{Z_FINISH:He,Z_BLOCK:Pe,Z_TREES:ke,Z_OK:Oe,Z_STREAM_END:Te,Z_NEED_DICT:De,Z_STREAM_ERROR:Me,Z_DATA_ERROR:Re,Z_MEM_ERROR:Ke,Z_BUF_ERROR:Ve,Z_DEFLATED:je}=et,Ge=16180,ze=16190,qe=16191,Xe=16192,We=16194,Ye=16199,Je=16200,Ze=16206,$e=16209,Ar=A=>(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24);function tr(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var er,rr,nr=A=>{if(!A)return 1;let t=A.state;return!t||t.strm!==A||t.mode<Ge||t.mode>16211?1:0},ir=A=>{if(nr(A))return Me;let t=A.state;return A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=1&t.wrap),t.mode=Ge,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Oe},sr=A=>{if(nr(A))return Me;let t=A.state;return t.wsize=0,t.whave=0,t.wnext=0,ir(A)},ar=(A,t)=>{let e;if(nr(A))return Me;let r=A.state;return t<0?(e=0,t=-t):(e=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Me:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,sr(A))},or=(A,t)=>{if(!A)return Me;let e=new tr;A.state=e,e.strm=A,e.window=null,e.mode=Ge;let r=ar(A,t);return r!==Oe&&(A.state=null),r},lr=!0,cr=A=>{if(lr){er=new Int32Array(512),rr=new Int32Array(32);let t=0;for(;t<144;)A.lens[t++]=8;for(;t<256;)A.lens[t++]=9;for(;t<280;)A.lens[t++]=7;for(;t<288;)A.lens[t++]=8;for(Ne(1,A.lens,0,288,er,0,A.work,{bits:9}),t=0;t<32;)A.lens[t++]=5;Ne(2,A.lens,0,32,rr,0,A.work,{bits:5}),lr=!1}A.lencode=er,A.lenbits=9,A.distcode=rr,A.distbits=5},ur=(A,t,e,r)=>{let n,i=A.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(t.subarray(e-r,e-r+n),i.wnext),(r-=n)?(i.window.set(t.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},hr=sr,fr=or,dr=(A,t)=>{let e,r,n,i,s,a,o,l,c,u,h,f,d,g,p,B,w,m,y,v,b,C,F,Q,x=0,U=new Uint8Array(4),E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(nr(A)||!A.output||!A.input&&0!==A.avail_in)return Me;e=A.state,e.mode===qe&&(e.mode=Xe),s=A.next_out,n=A.output,o=A.avail_out,i=A.next_in,r=A.input,a=A.avail_in,l=e.hold,c=e.bits,u=a,h=o,C=Oe;A:for(;;)switch(e.mode){case Ge:if(0===e.wrap){e.mode=Xe;break}for(;c<16;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(2&e.wrap&&35615===l){0===e.wbits&&(e.wbits=15),e.check=0,U[0]=255&l,U[1]=l>>>8&255,e.check=At(e.check,U,2,0),l=0,c=0,e.mode=16181;break}if(e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&l)<<8)+(l>>8))%31){A.msg="incorrect header check",e.mode=$e;break}if((15&l)!==je){A.msg="unknown compression method",e.mode=$e;break}if(l>>>=4,c-=4,b=8+(15&l),0===e.wbits&&(e.wbits=b),b>15||b>e.wbits){A.msg="invalid window size",e.mode=$e;break}e.dmax=1<<e.wbits,e.flags=0,A.adler=e.check=1,e.mode=512&l?16189:qe,l=0,c=0;break;case 16181:for(;c<16;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(e.flags=l,(255&e.flags)!==je){A.msg="unknown compression method",e.mode=$e;break}if(57344&e.flags){A.msg="unknown header flags set",e.mode=$e;break}e.head&&(e.head.text=l>>8&1),512&e.flags&&4&e.wrap&&(U[0]=255&l,U[1]=l>>>8&255,e.check=At(e.check,U,2,0)),l=0,c=0,e.mode=16182;case 16182:for(;c<32;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}e.head&&(e.head.time=l),512&e.flags&&4&e.wrap&&(U[0]=255&l,U[1]=l>>>8&255,U[2]=l>>>16&255,U[3]=l>>>24&255,e.check=At(e.check,U,4,0)),l=0,c=0,e.mode=16183;case 16183:for(;c<16;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}e.head&&(e.head.xflags=255&l,e.head.os=l>>8),512&e.flags&&4&e.wrap&&(U[0]=255&l,U[1]=l>>>8&255,e.check=At(e.check,U,2,0)),l=0,c=0,e.mode=16184;case 16184:if(1024&e.flags){for(;c<16;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}e.length=l,e.head&&(e.head.extra_len=l),512&e.flags&&4&e.wrap&&(U[0]=255&l,U[1]=l>>>8&255,e.check=At(e.check,U,2,0)),l=0,c=0}else e.head&&(e.head.extra=null);e.mode=16185;case 16185:if(1024&e.flags&&(f=e.length,f>a&&(f=a),f&&(e.head&&(b=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+f),b)),512&e.flags&&4&e.wrap&&(e.check=At(e.check,r,f,i)),a-=f,i+=f,e.length-=f),e.length))break A;e.length=0,e.mode=16186;case 16186:if(2048&e.flags){if(0===a)break A;f=0;do{b=r[i+f++],e.head&&b&&e.length<65536&&(e.head.name+=String.fromCharCode(b))}while(b&&f<a);if(512&e.flags&&4&e.wrap&&(e.check=At(e.check,r,f,i)),a-=f,i+=f,b)break A}else e.head&&(e.head.name=null);e.length=0,e.mode=16187;case 16187:if(4096&e.flags){if(0===a)break A;f=0;do{b=r[i+f++],e.head&&b&&e.length<65536&&(e.head.comment+=String.fromCharCode(b))}while(b&&f<a);if(512&e.flags&&4&e.wrap&&(e.check=At(e.check,r,f,i)),a-=f,i+=f,b)break A}else e.head&&(e.head.comment=null);e.mode=16188;case 16188:if(512&e.flags){for(;c<16;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(4&e.wrap&&l!==(65535&e.check)){A.msg="header crc mismatch",e.mode=$e;break}l=0,c=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=qe;break;case 16189:for(;c<32;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}A.adler=e.check=Ar(l),l=0,c=0,e.mode=ze;case ze:if(0===e.havedict)return A.next_out=s,A.avail_out=o,A.next_in=i,A.avail_in=a,e.hold=l,e.bits=c,De;A.adler=e.check=1,e.mode=qe;case qe:if(t===Pe||t===ke)break A;case Xe:if(e.last){l>>>=7&c,c-=7&c,e.mode=Ze;break}for(;c<3;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}switch(e.last=1&l,l>>>=1,--c,3&l){case 0:e.mode=16193;break;case 1:if(cr(e),e.mode=Ye,t===ke){l>>>=2,c-=2;break A}break;case 2:e.mode=16196;break;case 3:A.msg="invalid block type",e.mode=$e}l>>>=2,c-=2;break;case 16193:for(l>>>=7&c,c-=7&c;c<32;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){A.msg="invalid stored block lengths",e.mode=$e;break}if(e.length=65535&l,l=0,c=0,e.mode=We,t===ke)break A;case We:e.mode=16195;case 16195:if(f=e.length,f){if(f>a&&(f=a),f>o&&(f=o),0===f)break A;n.set(r.subarray(i,i+f),s),a-=f,i+=f,o-=f,s+=f,e.length-=f;break}e.mode=qe;break;case 16196:for(;c<14;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(e.nlen=257+(31&l),l>>>=5,c-=5,e.ndist=1+(31&l),l>>>=5,c-=5,e.ncode=4+(15&l),l>>>=4,c-=4,e.nlen>286||e.ndist>30){A.msg="too many length or distance symbols",e.mode=$e;break}e.have=0,e.mode=16197;case 16197:for(;e.have<e.ncode;){for(;c<3;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}e.lens[E[e.have++]]=7&l,l>>>=3,c-=3}for(;e.have<19;)e.lens[E[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,F={bits:e.lenbits},C=Ne(0,e.lens,0,19,e.lencode,0,e.work,F),e.lenbits=F.bits,C){A.msg="invalid code lengths set",e.mode=$e;break}e.have=0,e.mode=16198;case 16198:for(;e.have<e.nlen+e.ndist;){for(;x=e.lencode[l&(1<<e.lenbits)-1],p=x>>>24,B=x>>>16&255,w=65535&x,!(p<=c);){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(w<16)l>>>=p,c-=p,e.lens[e.have++]=w;else{if(16===w){for(Q=p+2;c<Q;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(l>>>=p,c-=p,0===e.have){A.msg="invalid bit length repeat",e.mode=$e;break}b=e.lens[e.have-1],f=3+(3&l),l>>>=2,c-=2}else if(17===w){for(Q=p+3;c<Q;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}l>>>=p,c-=p,b=0,f=3+(7&l),l>>>=3,c-=3}else{for(Q=p+7;c<Q;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}l>>>=p,c-=p,b=0,f=11+(127&l),l>>>=7,c-=7}if(e.have+f>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=$e;break}for(;f--;)e.lens[e.have++]=b}}if(e.mode===$e)break;if(0===e.lens[256]){A.msg="invalid code -- missing end-of-block",e.mode=$e;break}if(e.lenbits=9,F={bits:e.lenbits},C=Ne(1,e.lens,0,e.nlen,e.lencode,0,e.work,F),e.lenbits=F.bits,C){A.msg="invalid literal/lengths set",e.mode=$e;break}if(e.distbits=6,e.distcode=e.distdyn,F={bits:e.distbits},C=Ne(2,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,F),e.distbits=F.bits,C){A.msg="invalid distances set",e.mode=$e;break}if(e.mode=Ye,t===ke)break A;case Ye:e.mode=Je;case Je:if(a>=6&&o>=258){A.next_out=s,A.avail_out=o,A.next_in=i,A.avail_in=a,e.hold=l,e.bits=c,Ue(A,h),s=A.next_out,n=A.output,o=A.avail_out,i=A.next_in,r=A.input,a=A.avail_in,l=e.hold,c=e.bits,e.mode===qe&&(e.back=-1);break}for(e.back=0;x=e.lencode[l&(1<<e.lenbits)-1],p=x>>>24,B=x>>>16&255,w=65535&x,!(p<=c);){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(B&&!(240&B)){for(m=p,y=B,v=w;x=e.lencode[v+((l&(1<<m+y)-1)>>m)],p=x>>>24,B=x>>>16&255,w=65535&x,!(m+p<=c);){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}l>>>=m,c-=m,e.back+=m}if(l>>>=p,c-=p,e.back+=p,e.length=w,0===B){e.mode=16205;break}if(32&B){e.back=-1,e.mode=qe;break}if(64&B){A.msg="invalid literal/length code",e.mode=$e;break}e.extra=15&B,e.mode=16201;case 16201:if(e.extra){for(Q=e.extra;c<Q;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}e.length+=l&(1<<e.extra)-1,l>>>=e.extra,c-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=16202;case 16202:for(;x=e.distcode[l&(1<<e.distbits)-1],p=x>>>24,B=x>>>16&255,w=65535&x,!(p<=c);){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(!(240&B)){for(m=p,y=B,v=w;x=e.distcode[v+((l&(1<<m+y)-1)>>m)],p=x>>>24,B=x>>>16&255,w=65535&x,!(m+p<=c);){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}l>>>=m,c-=m,e.back+=m}if(l>>>=p,c-=p,e.back+=p,64&B){A.msg="invalid distance code",e.mode=$e;break}e.offset=w,e.extra=15&B,e.mode=16203;case 16203:if(e.extra){for(Q=e.extra;c<Q;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}e.offset+=l&(1<<e.extra)-1,l>>>=e.extra,c-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=$e;break}e.mode=16204;case 16204:if(0===o)break A;if(f=h-o,e.offset>f){if(f=e.offset-f,f>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=$e;break}f>e.wnext?(f-=e.wnext,d=e.wsize-f):d=e.wnext-f,f>e.length&&(f=e.length),g=e.window}else g=n,d=s-e.offset,f=e.length;f>o&&(f=o),o-=f,e.length-=f;do{n[s++]=g[d++]}while(--f);0===e.length&&(e.mode=Je);break;case 16205:if(0===o)break A;n[s++]=e.length,o--,e.mode=Je;break;case Ze:if(e.wrap){for(;c<32;){if(0===a)break A;a--,l|=r[i++]<<c,c+=8}if(h-=o,A.total_out+=h,e.total+=h,4&e.wrap&&h&&(A.adler=e.check=e.flags?At(e.check,n,h,s-h):ZA(e.check,n,h,s-h)),h=o,4&e.wrap&&(e.flags?l:Ar(l))!==e.check){A.msg="incorrect data check",e.mode=$e;break}l=0,c=0}e.mode=16207;case 16207:if(e.wrap&&e.flags){for(;c<32;){if(0===a)break A;a--,l+=r[i++]<<c,c+=8}if(4&e.wrap&&l!==(4294967295&e.total)){A.msg="incorrect length check",e.mode=$e;break}l=0,c=0}e.mode=16208;case 16208:C=Te;break A;case $e:C=Re;break A;case 16210:return Ke;default:return Me}return A.next_out=s,A.avail_out=o,A.next_in=i,A.avail_in=a,e.hold=l,e.bits=c,(e.wsize||h!==A.avail_out&&e.mode<$e&&(e.mode<Ze||t!==He))&&ur(A,A.output,A.next_out,h-A.avail_out),u-=A.avail_in,h-=A.avail_out,A.total_in+=u,A.total_out+=h,e.total+=h,4&e.wrap&&h&&(A.adler=e.check=e.flags?At(e.check,n,h,A.next_out-h):ZA(e.check,n,h,A.next_out-h)),A.data_type=e.bits+(e.last?64:0)+(e.mode===qe?128:0)+(e.mode===Ye||e.mode===We?256:0),(0===u&&0===h||t===He)&&C===Oe&&(C=Ve),C},gr=A=>{if(nr(A))return Me;let t=A.state;return t.window&&=null,A.state=null,Oe},pr=(A,t)=>{if(nr(A))return Me;let e=A.state;return 2&e.wrap?(e.head=t,t.done=!1,Oe):Me},Br=(A,t)=>{let e,r,n,i=t.length;return nr(A)||(e=A.state,0!==e.wrap&&e.mode!==ze)?Me:e.mode===ze&&(r=1,r=ZA(r,t,i,0),r!==e.check)?Re:(n=ur(A,t,i,i),n?(e.mode=16210,Ke):(e.havedict=1,Oe))};var wr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},mr=Object.prototype.toString,{Z_NO_FLUSH:yr,Z_FINISH:vr,Z_OK:br,Z_STREAM_END:Cr,Z_NEED_DICT:Fr,Z_STREAM_ERROR:Qr,Z_DATA_ERROR:xr,Z_MEM_ERROR:Ur}=et;function Er(A){this.options=ie({chunkSize:65536,windowBits:15,to:""},A||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(A&&A.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new he,this.strm.avail_out=0;let e=fr(this.strm,t.windowBits);if(e!==br||(this.header=new wr,pr(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=le(t.dictionary):"[object ArrayBuffer]"===mr.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Br(this.strm,t.dictionary),e!==br))))throw Error(tt[e])}function Lr(A,t){let e=new Er(t);if(e.push(A),e.err)throw e.msg||tt[e.err];return e.result}Er.prototype.push=function(A,t){let e,r,n,i=this.strm,s=this.options.chunkSize,a=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?vr:yr,"[object ArrayBuffer]"===mr.call(A)?i.input=new Uint8Array(A):i.input=A,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(s),i.next_out=0,i.avail_out=s),e=dr(i,r),e===Fr&&a&&(e=Br(i,a),e===br?e=dr(i,r):e===xr&&(e=Fr));i.avail_in>0&&e===Cr&&i.state.wrap>0&&0!==A[i.next_in];)hr(i),e=dr(i,r);switch(e){case Qr:case xr:case Fr:case Ur:return this.onEnd(e),this.ended=!0,!1}if(n=i.avail_out,i.next_out&&(0===i.avail_out||e===Cr))if("string"===this.options.to){let A=ue(i.output,i.next_out),t=i.next_out-A,e=ce(i.output,A);i.next_out=t,i.avail_out=s-t,t&&i.output.set(i.output.subarray(A,A+t),0),this.onData(e)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(e!==br||0!==n){if(e===Cr)return e=gr(this.strm),this.onEnd(e),this.ended=!0,!0;if(0===i.avail_in)break}}return!0},Er.prototype.onData=function(A){this.chunks.push(A)},Er.prototype.onEnd=function(A){A===br&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=se(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var _r={Inflate:Er,inflate:Lr,inflateRaw:function(A,t){return t||={},t.raw=!0,Lr(A,t)},ungzip:Lr,constants:et},{Deflate:Sr,deflate:Ir,deflateRaw:Nr,gzip:Hr}=Qe,{Inflate:Pr,inflate:kr,inflateRaw:Or,ungzip:Tr}=_r,Dr=Pr,Mr=kr,Rr=[];for(let A=0;A<256;A++){let t=A;for(let A=0;A<8;A++)1&t?t=3988292384^t>>>1:t>>>=1;Rr[A]=t}var Kr=4294967295;function Vr(A,t){return(function(A,t,e){let r=A;for(let A=0;A<e;A++)r=Rr[255&(r^t[A])]^r>>>8;return r}(Kr,A,t)^Kr)>>>0}function jr(A,t,e){let r=A.readUint32(),n=Vr(new Uint8Array(A.buffer,A.byteOffset+A.offset-t-4,t),t);if(n!==r)throw Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${n}`)}function Gr(A,t,e){for(let r=0;r<e;r++)t[r]=A[r]}function zr(A,t,e,r){let n=0;for(;n<r;n++)t[n]=A[n];for(;n<e;n++)t[n]=A[n]+t[n-r]&255}function qr(A,t,e,r){let n=0;if(0===e.length)for(;n<r;n++)t[n]=A[n];else for(;n<r;n++)t[n]=A[n]+e[n]&255}function Xr(A,t,e,r,n){let i=0;if(0===e.length){for(;i<n;i++)t[i]=A[i];for(;i<r;i++)t[i]=A[i]+(t[i-n]>>1)&255}else{for(;i<n;i++)t[i]=A[i]+(e[i]>>1)&255;for(;i<r;i++)t[i]=A[i]+(t[i-n]+e[i]>>1)&255}}function Wr(A,t,e,r,n){let i=0;if(0===e.length){for(;i<n;i++)t[i]=A[i];for(;i<r;i++)t[i]=A[i]+t[i-n]&255}else{for(;i<n;i++)t[i]=A[i]+e[i]&255;for(;i<r;i++)t[i]=A[i]+Yr(t[i-n],e[i],e[i-n])&255}}function Yr(A,t,e){let r=A+t-e,n=Math.abs(r-A),i=Math.abs(r-t),s=Math.abs(r-e);return n<=i&&n<=s?A:i<=s?t:e}function Jr(A,t,e,r,n,i){switch(A){case 0:Gr(t,e,n);break;case 1:zr(t,e,n,i);break;case 2:qr(t,e,r,n);break;case 3:Xr(t,e,r,n,i);break;case 4:Wr(t,e,r,n,i);break;default:throw Error(`Unsupported filter: ${A}`)}}var Zr=new Uint16Array([255]),$r=255===new Uint8Array(Zr.buffer)[0];function An(A){return(255&A)<<8|A>>8&255}var tn=new Uint16Array([255]),en=255===new Uint8Array(tn.buffer)[0],rn=new Uint8Array;function nn(A){let t,e,{data:r,width:n,height:i,channels:s,depth:a}=A,o=Math.ceil(a/8)*s,l=Math.ceil(a/8*s*n),c=new Uint8Array(i*l),u=rn,h=0;for(let A=0;A<i;A++){switch(t=r.subarray(h+1,h+1+l),e=c.subarray(A*l,(A+1)*l),r[h]){case 0:Gr(t,e,l);break;case 1:zr(t,e,l,o);break;case 2:qr(t,e,u,l);break;case 3:Xr(t,e,u,l,o);break;case 4:Wr(t,e,u,l,o);break;default:throw Error(`Unsupported filter: ${r[h]}`)}u=e,h+=l+1}if(16===a){let A=new Uint16Array(c.buffer);if(en)for(let t=0;t<A.length;t++)A[t]=sn(A[t]);return A}return c}function sn(A){return(255&A)<<8|A>>8&255}var an=Uint8Array.of(137,80,78,71,13,10,26,10);function on(A){if(!function(A){if(A.length<an.length)return!1;for(let t=0;t<an.length;t++)if(A[t]!==an[t])return!1;return!0}(A.readBytes(an.length)))throw Error("wrong PNG signature")}var ln=new TextDecoder("latin1");function cn(A){if(function(A){if(!un.test(A))throw Error("invalid latin1 text")}(A),0===A.length||A.length>79)throw Error("keyword length must be between 1 and 79")}var un=/^[\u0000-\u00FF]*$/;function hn(A,t,e){let r=fn(t);A[r]=function(A,t){return ln.decode(A.readBytes(t))}(t,e-r.length-1)}function fn(A){for(A.mark();0!==A.readByte(););let t=A.offset;A.reset();let e=ln.decode(A.readBytes(t-A.offset-1));return A.skip(1),cn(e),e}var dn,gn=-1,pn=0,Bn=2,wn=3,mn=4,yn=6,vn=-1,bn=0,Cn=-1,Fn=0,Qn=-1,xn=0,Un=1,En=0,Ln=1,_n=2,Sn=0,In=1,Nn=class extends dA{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(A,t={}){super(A);let{checkCrc:e=!1}=t;this._checkCrc=e,this._inflator=new Dr,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array,depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array,this._compressionMethod=vn,this._filterMethod=Cn,this._interlaceMethod=Qn,this._colorType=gn,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(on(this);!this._end;){let A=this.readUint32(),t=this.readChars(4);this.decodeChunk(A,t)}return this.decodeImage(),this._png}decodeApng(){for(on(this);!this._end;){let A=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(A,t)}return this.decodeApngImage(),this._apng}decodeChunk(A,t){let e=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(A);break;case"IDAT":this.decodeIDAT(A);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(A);break;case"iCCP":this.decodeiCCP(A);break;case"tEXt":hn(this._png.text,this,A);break;case"pHYs":this.decodepHYs();break;default:this.skip(A)}if(this.offset-e!==A)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?jr(this,A+4,t):this.skip(4)}decodeApngChunk(A,t){let e=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(A);break;default:this.decodeChunk(A,t),this.offset=e+A}if(this.offset-e!==A)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?jr(this,A+4,t):this.skip(4)}decodeIHDR(){let A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=function(A){if(1!==A&&2!==A&&4!==A&&8!==A&&16!==A)throw Error(`invalid bit depth: ${A}`);return A}(this.readUint8());let t,e=this.readUint8();switch(this._colorType=e,e){case pn:t=1;break;case Bn:t=3;break;case wn:t=1;break;case mn:t=2;break;case yn:t=4;break;default:throw Error(`Unknown color type: ${e}`)}if(this._png.channels=t,this._compressionMethod=this.readUint8(),this._compressionMethod!==bn)throw Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let A={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array};this._frames.push(A)}decodePLTE(A){if(A%3!=0)throw RangeError(`PLTE field length must be a multiple of 3. Got ${A}`);let t=A/3;this._hasPalette=!0;let e=[];this._palette=e;for(let A=0;A<t;A++)e.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(A){this._writingDataChunks=!0;let t=A,e=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,e,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodeFDAT(A){this._writingDataChunks=!0;let t=A,e=this.offset+this.byteOffset;if(e+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,e,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodetRNS(A){switch(this._colorType){case pn:case Bn:if(A%2!=0)throw RangeError(`tRNS chunk length must be a multiple of 2. Got ${A}`);if(A/2>this._png.width*this._png.height)throw Error(`tRNS chunk contains more alpha values than there are pixels (${A/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(A/2);for(let t=0;t<A/2;t++)this._transparency[t]=this.readUint16();break;case wn:{if(A>this._palette.length)throw Error(`tRNS chunk contains more alpha values than there are palette colors (${A} vs ${this._palette.length})`);let t=0;for(;t<A;t++){let A=this.readByte();this._palette[t].push(A)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}default:throw Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(A){let t=fn(this),e=this.readUint8();if(e!==bn)throw Error(`Unsupported iCCP compression method: ${e}`);let r=this.readBytes(A-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:Mr(r)}}decodepHYs(){let A=this.readUint32(),t=this.readUint32(),e=this.readByte();this._png.resolution={x:A,y:t,unit:e}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let A=0;A<this._numberOfFrames;A++){let t={sequenceNumber:this._frames[A].sequenceNumber,delayNumber:this._frames[A].delayNumber,delayDenominator:this._frames[A].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},e=this._frames.at(A);if(e){if(e.data=nn({data:e.data,width:e.width,height:e.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===A||0===e.xOffset&&0===e.yOffset&&e.width===this._png.width&&e.height===this._png.height)t.data=e.data;else{let r=this._apng.frames.at(A-1);this.disposeFrame(e,r,t),this.addFrameDataToCanvas(t,e)}this._apng.frames.push(t)}}return this._apng}disposeFrame(A,t,e){switch(A.disposeOp){case En:break;case Ln:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){let n=(t*A.width+r)*this._png.channels;for(let A=0;A<this._png.channels;A++)e.data[n+A]=0}break;case _n:e.data.set(t.data);break;default:throw Error("Unknown disposeOp")}}addFrameDataToCanvas(A,t){let e=1<<this._png.depth,r=(A,e)=>({index:((A+t.yOffset)*this._png.width+t.xOffset+e)*this._png.channels,frameIndex:(A*t.width+e)*this._png.channels});switch(t.blendOp){case Sn:for(let e=0;e<t.height;e++)for(let n=0;n<t.width;n++){let{index:i,frameIndex:s}=r(e,n);for(let e=0;e<this._png.channels;e++)A.data[i+e]=t.data[s+e]}break;case In:for(let n=0;n<t.height;n++)for(let i=0;i<t.width;i++){let{index:s,frameIndex:a}=r(n,i);for(let r=0;r<this._png.channels;r++){let n=t.data[a+this._png.channels-1]/e,i=r%(this._png.channels-1)==0?1:t.data[a+r],o=Math.floor(n*i+(1-n)*A.data[s+r]);A.data[s+r]+=o}}break;default:throw Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);let A=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Fn)throw Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===xn)this._png.data=nn({data:A,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==Un)throw Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(A){let{data:t,width:e,height:r,channels:n,depth:i}=A,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(i/8)*n,o=new Uint8Array(r*e*a),l=0;for(let A=0;A<7;A++){let n=s[A],i=Math.ceil((e-n.x)/n.xStep),c=Math.ceil((r-n.y)/n.yStep);if(i<=0||c<=0)continue;let u=i*a,h=new Uint8Array(u);for(let A=0;A<c;A++){let s=t[l++],c=t.subarray(l,l+u);l+=u;let f=new Uint8Array(u);Jr(s,c,f,h,u,a),h.set(f);for(let t=0;t<i;t++){let i=n.x+t*n.xStep,s=n.y+A*n.yStep;if(!(i>=e||s>=r))for(let A=0;A<a;A++)o[(s*e+i)*a+A]=f[t*a+A]}}}if(16===i){let A=new Uint16Array(o.buffer);if($r)for(let t=0;t<A.length;t++)A[t]=An(A[t]);return A}return o}({data:A,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let A=this._inflator.result,t=this._frames.at(-1);t?t.data=A:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:En,blendOp:Sn,data:A}),this._inflator=new Dr,this._writingDataChunks=!1}};!function(A){A[A.UNKNOWN=0]="UNKNOWN",A[A.METRE=1]="METRE"}(dn||={});var Hn=l(((A,t)=>{!function(e,r){"object"==typeof A&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).html2canvas=r()}(A,(function(){"use strict";var A=function(t,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(A[e]=t[e])},A(t,e)};function t(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var e=function(){return e=Object.assign||function(A){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n]);return A},e.apply(this,arguments)};function r(A,t,e,r){function n(A){return A instanceof e?A:new e((function(t){t(A)}))}return new(e||=Promise)((function(e,i){function s(A){try{o(r.next(A))}catch(A){i(A)}}function a(A){try{o(r.throw(A))}catch(A){i(A)}}function o(A){A.done?e(A.value):n(A.value).then(s,a)}o((r=r.apply(A,t||[])).next())}))}function n(A,t){var e,r,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(A){return function(t){return o([A,t])}}function o(i){if(e)throw TypeError("Generator is already executing.");for(;s;)try{if(e=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(A,s)}catch(A){i=[6,A],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function i(A,t,e){if(e||2===arguments.length)for(var r,n=0,i=t.length;n<i;n++)(r||!(n in t))&&(r||=Array.prototype.slice.call(t,0,n),r[n]=t[n]);return A.concat(r||t)}for(var s=function(){function A(A,t,e,r){this.left=A,this.top=t,this.width=e,this.height=r}return A.prototype.add=function(t,e,r,n){return new A(this.left+t,this.top+e,this.width+r,this.height+n)},A.fromClientRect=function(t,e){return new A(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)},A.fromDOMRectList=function(t,e){var r=Array.from(e).find((function(A){return 0!==A.width}));return r?new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),a=function(A,t){return s.fromClientRect(A,t.getBoundingClientRect())},o=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);56320==(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),e--)}else t.push(n)}return t},l=function(){var A=[...arguments];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var e=[],r=-1,n="";++r<t;){var i=A[r];i<=65535?e.push(i):(i-=65536,e.push(55296+(i>>10),i%1024+56320)),(r+1===t||e.length>16384)&&(n+=String.fromCharCode.apply(String,e),e.length=0)}return n},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=typeof Uint8Array>"u"?[]:new Uint8Array(256),h=0;h<c.length;h++)u[c.charCodeAt(h)]=h;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),g=0;g<f.length;g++)d[f.charCodeAt(g)]=g;for(var p=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},B=function(){function A(A,t,e,r,n,i){this.initialValue=A,this.errorValue=t,this.highStart=e,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=((t=this.index[A>>5])<<2)+(31&A),this.data[t];if(A<=65535)return t=((t=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[t];if(A<this.highStart)return t=2080+(A>>11),t=this.index[t],t+=A>>5&63,t=((t=this.index[t])<<2)+(31&A),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256),y=0;y<w.length;y++)m[w.charCodeAt(y)]=y;var v=10,b=13,C=15,F=17,Q=18,x=19,U=20,E=21,L=22,_=24,S=25,I=26,N=27,H=28,P=30,k=32,O=33,T=34,D=35,M=37,R=38,K=39,V=40,j=42,G=[9001,65288],z="×",q="÷",X=function(A){var t=function(A){var t,e,r,n,i,s=.75*A.length,a=A.length,o=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<a;t+=4)e=d[A.charCodeAt(t)],r=d[A.charCodeAt(t+1)],n=d[A.charCodeAt(t+2)],i=d[A.charCodeAt(t+3)],c[o++]=e<<2|r>>4,c[o++]=(15&r)<<4|n>>2,c[o++]=(3&n)<<6|63&i;return l}(A),e=Array.isArray(t)?function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e}(t):new Uint32Array(t),r=Array.isArray(t)?function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e}(t):new Uint16Array(t),n=p(r,12,e[4]/2),i=2===e[5]?p(r,(24+e[4])/2):function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))}(e,Math.ceil((24+e[4])/4));return new B(e[0],e[1],e[2],e[3],n,i)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),W=[P,36],Y=[1,2,3,5],J=[v,8],Z=[N,I],$=Y.concat(J),AA=[R,K,V,T,D],tA=[C,b],eA=function(A,t,e,r){var n=r[e];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var i=e;i<=r.length;){if((o=r[++i])===t)return!0;if(o!==v)break}if(n===v)for(i=e;i>0;){var s=r[--i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var a=e;a<=r.length;){var o;if((o=r[++a])===t)return!0;if(o!==v)break}if(s!==v)break}return!1},rA=function(A,t){for(var e=A;e>=0;){var r=t[e];if(r!==v)return r;e--}return 0},nA=function(A,t,e,r,n){if(0===e[r])return z;var i=r-1;if(Array.isArray(n)&&!0===n[i])return z;var s=i-1,a=i+1,o=t[i],l=s>=0?t[s]:0,c=t[a];if(2===o&&3===c)return z;if(-1!==Y.indexOf(o))return"!";if(-1!==Y.indexOf(c)||-1!==J.indexOf(c))return z;if(8===rA(i,t))return q;if(11===X.get(A[i])||(o===k||o===O)&&11===X.get(A[a])||7===o||7===c||9===o||-1===[v,b,C].indexOf(o)&&9===c||-1!==[F,Q,x,_,H].indexOf(c)||rA(i,t)===L||eA(23,L,i,t)||eA([F,Q],E,i,t)||eA(12,12,i,t))return z;if(o===v)return q;if(23===o||23===c)return z;if(16===c||16===o)return q;if(-1!==[b,C,E].indexOf(c)||14===o||36===l&&-1!==tA.indexOf(o)||o===H&&36===c||c===U||-1!==W.indexOf(c)&&o===S||-1!==W.indexOf(o)&&c===S||o===N&&-1!==[M,k,O].indexOf(c)||-1!==[M,k,O].indexOf(o)&&c===I||-1!==W.indexOf(o)&&-1!==Z.indexOf(c)||-1!==Z.indexOf(o)&&-1!==W.indexOf(c)||-1!==[N,I].indexOf(o)&&(c===S||-1!==[L,C].indexOf(c)&&t[a+1]===S)||-1!==[L,C].indexOf(o)&&c===S||o===S&&-1!==[S,H,_].indexOf(c))return z;if(-1!==[S,H,_,F,Q].indexOf(c))for(var u=i;u>=0;){if((h=t[u])===S)return z;if(-1===[H,_].indexOf(h))break;u--}if(-1!==[N,I].indexOf(c))for(u=-1===[F,Q].indexOf(o)?i:s;u>=0;){var h;if((h=t[u])===S)return z;if(-1===[H,_].indexOf(h))break;u--}if(R===o&&-1!==[R,K,T,D].indexOf(c)||-1!==[K,T].indexOf(o)&&-1!==[K,V].indexOf(c)||-1!==[V,D].indexOf(o)&&c===V||-1!==AA.indexOf(o)&&-1!==[U,I].indexOf(c)||-1!==AA.indexOf(c)&&o===N||-1!==W.indexOf(o)&&-1!==W.indexOf(c)||o===_&&-1!==W.indexOf(c)||-1!==W.concat(S).indexOf(o)&&c===L&&-1===G.indexOf(A[a])||-1!==W.concat(S).indexOf(c)&&o===Q)return z;if(41===o&&41===c){for(var f=e[i],d=1;f>0&&41===t[--f];)d++;if(d%2!=0)return z}return o===k&&c===O?z:q},iA=function(A,t){t||={lineBreak:"normal",wordBreak:"normal"};var e=function(A,t){void 0===t&&(t="strict");var e=[],r=[],n=[];return A.forEach((function(A,i){var s=X.get(A);if(s>50?(n.push(!0),s-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(i),e.push(16);if(4===s||11===s){if(0===i)return r.push(i),e.push(P);var a=e[i-1];return-1===$.indexOf(a)?(r.push(r[i-1]),e.push(a)):(r.push(i),e.push(P))}return r.push(i),31===s?e.push("strict"===t?E:M):s===j||29===s?e.push(P):43===s?A>=131072&&A<=196605||A>=196608&&A<=262141?e.push(M):e.push(P):void e.push(s)})),[r,e,n]}(A,t.lineBreak),r=e[0],n=e[1],i=e[2];("break-all"===t.wordBreak||"break-word"===t.wordBreak)&&(n=n.map((function(A){return-1===[S,P,j].indexOf(A)?A:M})));var s="keep-all"===t.wordBreak?i.map((function(t,e){return t&&A[e]>=19968&&A[e]<=40959})):void 0;return[r,n,s]},sA=function(){function A(A,t,e,r){this.codePoints=A,this.required="!"===t,this.start=e,this.end=r}return A.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),aA=45,oA=43,lA=-1,cA=function(A){return A>=48&&A<=57},uA=function(A){return cA(A)||A>=65&&A<=70||A>=97&&A<=102},hA=function(A){return 10===A||9===A||32===A},fA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},dA=function(A){return fA(A)||cA(A)||A===aA},gA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},pA=function(A,t){return 92===A&&10!==t},BA=function(A,t,e){return A===aA?fA(t)||pA(t,e):!!fA(A)||!(92!==A||!pA(A,t))},wA=function(A,t,e){return A===oA||A===aA?!!cA(t)||46===t&&cA(e):cA(46===A?t:A)},mA=function(A){var t=0,e=1;(A[t]===oA||A[t]===aA)&&(A[t]===aA&&(e=-1),t++);for(var r=[];cA(A[t]);)r.push(A[t++]);var n=r.length?parseInt(l.apply(void 0,r),10):0;46===A[t]&&t++;for(var i=[];cA(A[t]);)i.push(A[t++]);var s=i.length,a=s?parseInt(l.apply(void 0,i),10):0;(69===A[t]||101===A[t])&&t++;var o=1;(A[t]===oA||A[t]===aA)&&(A[t]===aA&&(o=-1),t++);for(var c=[];cA(A[t]);)c.push(A[t++]);return e*(n+a*10**-s)*10**(o*(c.length?parseInt(l.apply(void 0,c),10):0))},yA={type:2},vA={type:3},bA={type:4},CA={type:13},FA={type:8},QA={type:21},xA={type:9},UA={type:10},EA={type:11},LA={type:12},_A={type:14},SA={type:23},IA={type:1},NA={type:25},HA={type:24},PA={type:26},kA={type:27},OA={type:28},TA={type:29},DA={type:31},MA={type:32},RA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(o(A))},A.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==MA;)A.push(t),t=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),e=this.peekCodePoint(1),r=this.peekCodePoint(2);if(dA(t)||pA(e,r)){var n=BA(t,e,r)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CA;break;case 39:return this.consumeStringToken(39);case 40:return yA;case 41:return vA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_A;break;case oA:if(wA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return bA;case aA:var i=A,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(wA(i,s,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(BA(i,s,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===aA&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),HA;break;case 46:if(wA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var o=this.consumeCodePoint();if(42===o&&47===(o=this.consumeCodePoint())||o===lA)return this.consumeToken()}break;case 58:return PA;case 59:return kA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===aA&&this.peekCodePoint(2)===aA)return this.consumeCodePoint(),this.consumeCodePoint(),NA;break;case 64:if(BA(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return OA;case 92:if(pA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return TA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;break;case 123:return EA;case 125:return LA;case 117:case 85:var c=this.peekCodePoint(0),u=this.peekCodePoint(1);return c===oA&&(uA(u)||63===u)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),QA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),UA;break;case lA:return MA}return hA(A)?(this.consumeWhiteSpace(),DA):cA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):fA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:l(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();uA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var e=!1;63===t&&A.length<6;)A.push(t),t=this.consumeCodePoint(),e=!0;if(e)return{type:30,start:parseInt(l.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(l.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var r=parseInt(l.apply(void 0,A),16);if(this.peekCodePoint(0)===aA&&uA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var n=[];uA(t)&&n.length<6;)n.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===lA)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var e=this.consumeStringToken(this.consumeCodePoint());return 0===e.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===lA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:e.value}):(this.consumeBadUrlRemnants(),SA)}for(;;){var r=this.consumeCodePoint();if(r===lA||41===r)return{type:22,value:l.apply(void 0,A)};if(hA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===lA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,A)}):(this.consumeBadUrlRemnants(),SA);if(34===r||39===r||40===r||gA(r))return this.consumeBadUrlRemnants(),SA;if(92===r){if(!pA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),SA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;hA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===lA)return;pA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var t="";A>0;){var e=Math.min(5e4,A);t+=l.apply(void 0,this._value.splice(0,e)),A-=e}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){for(var t="",e=0;;){var r=this._value[e];if(r===lA||void 0===r||r===A)return{type:0,value:t+=this.consumeStringSlice(e)};if(10===r)return this._value.splice(0,e),IA;if(92===r){var n=this._value[e+1];n!==lA&&void 0!==n&&(10===n?(t+=this.consumeStringSlice(e),e=-1,this._value.shift()):pA(r,n)&&(t+=this.consumeStringSlice(e),t+=l(this.consumeEscapedCodePoint()),e=-1))}e++}},A.prototype.consumeNumber=function(){var A=[],t=4,e=this.peekCodePoint(0);for((e===oA||e===aA)&&A.push(this.consumeCodePoint());cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());e=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===e&&cA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());e=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===e||101===e)&&((r===oA||r===aA)&&cA(n)||cA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[mA(A),t]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],e=A[1],r=this.peekCodePoint(0);return BA(r,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:t,flags:e,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:e}):{type:17,number:t,flags:e}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(uA(A)){for(var t=l(A);uA(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());hA(this.peekCodePoint(0))&&this.consumeCodePoint();var e=parseInt(t,16);return 0===e||function(A){return A>=55296&&A<=57343}(e)||e>1114111?65533:e}return A===lA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(dA(t))A+=l(t);else{if(!pA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),A;A+=l(this.consumeEscapedCodePoint())}}},A}(),KA=function(){function A(A){this._tokens=A}return A.create=function(t){var e=new RA;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return t;throw SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(32===t.type)return A;A.push(t),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},e=this.consumeToken();;){if(32===e.type||JA(e,A))return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue()),e=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var e=this.consumeToken();if(32===e.type||3===e.type)return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?MA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),VA=function(A){return 15===A.type},jA=function(A){return 17===A.type},GA=function(A){return 20===A.type},zA=function(A){return 0===A.type},qA=function(A,t){return GA(A)&&A.value===t},XA=function(A){return 31!==A.type},WA=function(A){return 31!==A.type&&4!==A.type},YA=function(A){var t=[],e=[];return A.forEach((function(A){if(4===A.type){if(0===e.length)throw Error("Error parsing function args, zero tokens for arg");return t.push(e),void(e=[])}31!==A.type&&e.push(A)})),e.length&&t.push(e),t},JA=function(A,t){return 11===t&&12===A.type||28===t&&29===A.type||2===t&&3===A.type},ZA=function(A){return 17===A.type||15===A.type},$A=function(A){return 16===A.type||ZA(A)},At=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},tt={type:17,number:0,flags:4},et={type:16,number:50,flags:4},rt={type:16,number:100,flags:4},nt=function(A,t,e){var r=A[0],n=A[1];return[it(r,t),it(void 0===n?r:n,e)]},it=function(A,t){if(16===A.type)return A.number/100*t;if(VA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},st="grad",at="turn",ot=function(A,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case st:return Math.PI/200*t.number;case"rad":return t.number;case at:return 2*Math.PI*t.number}throw Error("Unsupported angle type")},lt=function(A){return 15===A.type&&("deg"===A.unit||A.unit===st||"rad"===A.unit||A.unit===at)},ct=function(A){switch(A.filter(GA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tt,tt];case"to top":case"bottom":return ut(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tt,rt];case"to right":case"left":return ut(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[rt,rt];case"to bottom":case"top":return ut(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[rt,tt];case"to left":case"right":return ut(270)}return 0},ut=function(A){return Math.PI*A/180},ht=function(A,t){if(18===t.type){var e=yt[t.name];if(void 0===e)throw Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(A,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);return gt(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);var s=t.value.substring(3,4);return gt(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(6===t.value.length){r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6);return gt(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(8===t.value.length){r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),s=t.value.substring(6,8);return gt(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(20===t.type){var a=bt[t.value.toUpperCase()];if(void 0!==a)return a}return bt.TRANSPARENT},ft=function(A){return!(255&A)},dt=function(A){var t=255&A,e=255&A>>8,r=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+r+","+e+","+t/255+")":"rgb("+n+","+r+","+e+")"},gt=function(A,t,e,r){return(A<<24|t<<16|e<<8|Math.round(255*r))>>>0},pt=function(A,t){if(17===A.type)return A.number;if(16===A.type){var e=3===t?1:255;return 3===t?A.number/100*e:Math.round(A.number/100*e)}return 0},Bt=function(A,t){var e=t.filter(WA);if(3===e.length){var r=e.map(pt),n=r[0],i=r[1],s=r[2];return gt(n,i,s,1)}if(4===e.length){var a=e.map(pt),o=(n=a[0],i=a[1],s=a[2],a[3]);return gt(n,i,s,o)}return 0};function wt(A,t,e){return e<0&&(e+=1),e>=1&&--e,e<1/6?(t-A)*e*6+A:e<.5?t:e<2/3?6*(t-A)*(2/3-e)+A:A}var mt=function(A,t){var e=t.filter(WA),r=e[0],n=e[1],i=e[2],s=e[3],a=(17===r.type?ut(r.number):ot(A,r))/(2*Math.PI),o=$A(n)?n.number/100:0,l=$A(i)?i.number/100:0,c=void 0!==s&&$A(s)?it(s,1):1;if(0===o)return gt(255*l,255*l,255*l,1);var u=l<=.5?l*(o+1):l+o-l*o,h=2*l-u,f=wt(h,u,a+1/3),d=wt(h,u,a),g=wt(h,u,a-1/3);return gt(255*f,255*d,255*g,c)},yt={hsl:mt,hsla:mt,rgb:Bt,rgba:Bt},vt=function(A,t){return ht(A,KA.create(t).parseComponentValue())},bt={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},Ct={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(GA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ft={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qt=function(A,t){var e=ht(A,t[0]),r=t[1];return r&&$A(r)?{color:e,stop:r}:{color:e,stop:null}},xt=function(A,t){var e=A[0],r=A[A.length-1];null===e.stop&&(e.stop=tt),null===r.stop&&(r.stop=rt);for(var n=[],i=0,s=0;s<A.length;s++){var a=A[s].stop;if(null!==a){var o=it(a,t);o>i?n.push(o):n.push(i),i=o}else n.push(null)}var l=null;for(s=0;s<n.length;s++){var c=n[s];if(null===c)null===l&&(l=s);else if(null!==l){for(var u=s-l,h=(c-n[l-1])/(u+1),f=1;f<=u;f++)n[l+f-1]=h*f;l=null}}return A.map((function(A,e){return{color:A.color,stop:Math.max(Math.min(1,n[e]/t),0)}}))},Ut=function(A,t,e){var r="number"==typeof A?A:function(A,t,e){var r=t/2,n=e/2,i=it(A[0],t)-r,s=n-it(A[1],e);return(Math.atan2(s,i)+2*Math.PI)%(2*Math.PI)}(A,t,e),n=Math.abs(t*Math.sin(r))+Math.abs(e*Math.cos(r)),i=t/2,s=e/2,a=n/2,o=Math.sin(r-Math.PI/2)*a,l=Math.cos(r-Math.PI/2)*a;return[n,i-l,i+l,s-o,s+o]},Et=function(A,t){return Math.sqrt(A*A+t*t)},Lt=function(A,t,e,r,n){return[[0,0],[0,t],[A,0],[A,t]].reduce((function(A,t){var i=t[0],s=t[1],a=Et(e-i,r-s);return(n?a<A.optimumDistance:a>A.optimumDistance)?{optimumCorner:t,optimumDistance:a}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},_t=function(A,t){var e=ut(180),r=[];return YA(t).forEach((function(t,n){if(0===n){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(e=ct(t));if(lt(i))return void(e=(ot(A,i)+ut(270))%ut(360))}var s=Qt(A,t);r.push(s)})),{angle:e,stops:r,type:1}},St="closest-side",It="farthest-side",Nt="closest-corner",Ht="farthest-corner",Pt="circle",kt="ellipse",Ot="cover",Tt="contain",Dt=function(A,t){var e=0,r=3,n=[],i=[];return YA(t).forEach((function(t,s){var a=!0;if(0===s?a=t.reduce((function(A,t){if(GA(t))switch(t.value){case"center":return i.push(et),!1;case"top":case"left":return i.push(tt),!1;case"right":case"bottom":return i.push(rt),!1}else if($A(t)||ZA(t))return i.push(t),!1;return A}),a):1===s&&(a=t.reduce((function(A,t){if(GA(t))switch(t.value){case Pt:return e=0,!1;case kt:return e=1,!1;case Tt:case St:return r=0,!1;case It:return r=1,!1;case Nt:return r=2,!1;case Ot:case Ht:return r=3,!1}else if(ZA(t)||$A(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return A}),a)),a){var o=Qt(A,t);n.push(o)}})),{size:r,shape:e,stops:n,position:i,type:2}},Mt=function(A,t){if(22===t.type){var e={url:t.value,type:0};return A.cache.addImage(t.value),e}if(18===t.type){var r=Kt[t.name];if(void 0===r)throw Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(A,t.values)}throw Error("Unsupported image type "+t.type)};var Rt,Kt={"linear-gradient":function(A,t){var e=ut(180),r=[];return YA(t).forEach((function(t,n){if(0===n){var i=t[0];if(20===i.type&&"to"===i.value)return void(e=ct(t));if(lt(i))return void(e=ot(A,i))}var s=Qt(A,t);r.push(s)})),{angle:e,stops:r,type:1}},"-moz-linear-gradient":_t,"-ms-linear-gradient":_t,"-o-linear-gradient":_t,"-webkit-linear-gradient":_t,"radial-gradient":function(A,t){var e=0,r=3,n=[],i=[];return YA(t).forEach((function(t,s){var a=!0;if(0===s){var o=!1;a=t.reduce((function(A,t){if(o)if(GA(t))switch(t.value){case"center":return i.push(et),A;case"top":case"left":return i.push(tt),A;case"right":case"bottom":return i.push(rt),A}else($A(t)||ZA(t))&&i.push(t);else if(GA(t))switch(t.value){case Pt:return e=0,!1;case kt:return e=1,!1;case"at":return o=!0,!1;case St:return r=0,!1;case Ot:case It:return r=1,!1;case Tt:case Nt:return r=2,!1;case Ht:return r=3,!1}else if(ZA(t)||$A(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return A}),a)}if(a){var l=Qt(A,t);n.push(l)}})),{size:r,shape:e,stops:n,position:i,type:2}},"-moz-radial-gradient":Dt,"-ms-radial-gradient":Dt,"-o-radial-gradient":Dt,"-webkit-radial-gradient":Dt,"-webkit-gradient":function(A,t){var e=ut(180),r=[],n=1;return YA(t).forEach((function(t,e){var i=t[0];if(0===e){if(GA(i)&&"linear"===i.value)return void(n=1);if(GA(i)&&"radial"===i.value)return void(n=2)}if(18===i.type)if("from"===i.name){var s=ht(A,i.values[0]);r.push({stop:tt,color:s})}else if("to"===i.name){s=ht(A,i.values[0]);r.push({stop:rt,color:s})}else if("color-stop"===i.name){var a=i.values.filter(WA);if(2===a.length){s=ht(A,a[1]);var o=a[0];jA(o)&&r.push({stop:{type:16,number:100*o.number,flags:o.flags},color:s})}}})),1===n?{angle:(e+ut(180))%ut(360),stops:r,type:n}:{size:3,shape:0,stops:r,position:[],type:n}}},Vt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var e=t[0];return 20===e.type&&"none"===e.value?[]:t.filter((function(A){return WA(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Kt[A.name])}(A)})).map((function(t){return Mt(A,t)}))}},jt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(GA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Gt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return YA(t).map((function(A){return A.filter($A)})).map(At)}},zt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return YA(t).map((function(A){return A.filter(GA).map((function(A){return A.value})).join(" ")})).map(qt)}},qt=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Rt||={});var Xt,Wt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return YA(t).map((function(A){return A.filter(Yt)}))}},Yt=function(A){return GA(A)||$A(A)},Jt=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Zt=Jt("top"),$t=Jt("right"),Ae=Jt("bottom"),te=Jt("left"),ee=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return At(t.filter($A))}}},re=ee("top-left"),ne=ee("top-right"),ie=ee("bottom-right"),se=ee("bottom-left"),ae=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},oe=ae("top"),le=ae("right"),ce=ae("bottom"),ue=ae("left"),he=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return VA(t)?t.number:0}}},fe=he("top"),de=he("right"),ge=he("bottom"),pe=he("left"),Be={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},we={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){return"rtl"===t?1:0}},me={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(GA).reduce((function(A,t){return A|ye(t.value)}),0)}},ye=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ve={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},be={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Xt||={});var Ce,Fe={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){return"strict"===t?Xt.STRICT:Xt.NORMAL}},Qe={name:"line-height",initialValue:"normal",prefix:!1,type:4},xe=function(A,t){return GA(A)&&"normal"===A.value?1.2*t:17===A.type?t*A.number:$A(A)?it(A,t):t},Ue={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return 20===t.type&&"none"===t.value?null:Mt(A,t)}},Ee={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){return"inside"===t?0:1}},Le={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":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;default:return-1}}},_e=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Se=_e("top"),Ie=_e("right"),Ne=_e("bottom"),He=_e("left"),Pe={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(GA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},ke={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){return"break-word"===t?"break-word":"normal"}},Oe=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Te=Oe("top"),De=Oe("right"),Me=Oe("bottom"),Re=Oe("left"),Ke={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ve={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},je={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&qA(t[0],"none")?[]:YA(t).map((function(t){for(var e={color:bt.TRANSPARENT,offsetX:tt,offsetY:tt,blur:tt},r=0,n=0;n<t.length;n++){var i=t[n];ZA(i)?(0===r?e.offsetX=i:1===r?e.offsetY=i:e.blur=i,r++):e.color=ht(A,i)}return e}))}},Ge={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ze={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var e=qe[t.name];if(void 0===e)throw Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},qe={matrix:function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===t.length?t:null},matrix3d:function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),e=t[0],r=t[1];t[2],t[3];var n=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],a=t[13];return t[14],t[15],16===t.length?[e,r,n,i,s,a]:null}},Xe={type:16,number:50,flags:4},We=[Xe,Xe],Ye={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var e=t.filter($A);return 2===e.length?[e[0],e[1]]:We}},Je={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(Ce||={});for(var Ze={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return Ce.BREAK_ALL;case"keep-all":return Ce.KEEP_ALL;default:return Ce.NORMAL}}},$e={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(20===t.type)return{auto:!0,order:0};if(jA(t))return{auto:!1,order:t.number};throw Error("Invalid z-index number parsed")}},Ar={name:"time",parse:function(A,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw Error("Unsupported time type")}},tr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return jA(t)?t.number:1}},er={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(GA).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},nr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var e=[],r=[];return t.forEach((function(A){switch(A.type){case 20:case 0:e.push(A.value);break;case 17:e.push(A.number.toString());break;case 4:r.push(e.join(" ")),e.length=0}})),e.length&&r.push(e.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},ir={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},sr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(jA(t))return t.number;if(GA(t)){if("bold"===t.value)return 700;return 400}return 400}},ar={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(GA).map((function(A){return A.value}))}},or={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},lr=function(A,t){return!!(A&t)},cr={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var e=t[0];return 20===e.type&&"none"===e.value?[]:t}},ur={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var e=t[0];if(20===e.type&&"none"===e.value)return null;for(var r=[],n=t.filter(XA),i=0;i<n.length;i++){var s=n[i],a=n[i+1];if(20===s.type){var o=a&&jA(a)?a.number:1;r.push({counter:s.value,increment:o})}}return r}},hr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return[];for(var e=[],r=t.filter(XA),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(GA(i)&&"none"!==i.value){var a=s&&jA(s)?s.number:0;e.push({counter:i.value,reset:a})}}return e}},fr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(VA).map((function(t){return Ar.parse(A,t)}))}},dr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var e=t[0];if(20===e.type&&"none"===e.value)return null;var r=[],n=t.filter(zA);if(n.length%2!=0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,a=n[i+1].value;r.push({open:s,close:a})}return r}},gr=function(A,t,e){if(!A)return"";var r=A[Math.min(t,A.length-1)];return r?e?r.open:r.close:""},pr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&qA(t[0],"none")?[]:YA(t).map((function(t){for(var e={color:255,offsetX:tt,offsetY:tt,blur:tt,spread:tt,inset:!1},r=0,n=0;n<t.length;n++){var i=t[n];qA(i,"inset")?e.inset=!0:ZA(i)?(0===r?e.offsetX=i:1===r?e.offsetY=i:2===r?e.blur=i:e.spread=i,r++):e.color=ht(A,i)}return e}))}},Br={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var e=[];return t.filter(GA).forEach((function(A){switch(A.value){case"stroke":e.push(1);break;case"fill":e.push(0);break;case"markers":e.push(2)}})),[0,1,2].forEach((function(A){-1===e.indexOf(A)&&e.push(A)})),e}},wr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return VA(t)?t.number:0}},yr=function(){function A(A,t){this.animationDuration=Cr(A,fr,t.animationDuration),this.backgroundClip=Cr(A,Ct,t.backgroundClip),this.backgroundColor=Cr(A,Ft,t.backgroundColor),this.backgroundImage=Cr(A,Vt,t.backgroundImage),this.backgroundOrigin=Cr(A,jt,t.backgroundOrigin),this.backgroundPosition=Cr(A,Gt,t.backgroundPosition),this.backgroundRepeat=Cr(A,zt,t.backgroundRepeat),this.backgroundSize=Cr(A,Wt,t.backgroundSize),this.borderTopColor=Cr(A,Zt,t.borderTopColor),this.borderRightColor=Cr(A,$t,t.borderRightColor),this.borderBottomColor=Cr(A,Ae,t.borderBottomColor),this.borderLeftColor=Cr(A,te,t.borderLeftColor),this.borderTopLeftRadius=Cr(A,re,t.borderTopLeftRadius),this.borderTopRightRadius=Cr(A,ne,t.borderTopRightRadius),this.borderBottomRightRadius=Cr(A,ie,t.borderBottomRightRadius),this.borderBottomLeftRadius=Cr(A,se,t.borderBottomLeftRadius),this.borderTopStyle=Cr(A,oe,t.borderTopStyle),this.borderRightStyle=Cr(A,le,t.borderRightStyle),this.borderBottomStyle=Cr(A,ce,t.borderBottomStyle),this.borderLeftStyle=Cr(A,ue,t.borderLeftStyle),this.borderTopWidth=Cr(A,fe,t.borderTopWidth),this.borderRightWidth=Cr(A,de,t.borderRightWidth),this.borderBottomWidth=Cr(A,ge,t.borderBottomWidth),this.borderLeftWidth=Cr(A,pe,t.borderLeftWidth),this.boxShadow=Cr(A,pr,t.boxShadow),this.color=Cr(A,Be,t.color),this.direction=Cr(A,we,t.direction),this.display=Cr(A,me,t.display),this.float=Cr(A,ve,t.cssFloat),this.fontFamily=Cr(A,nr,t.fontFamily),this.fontSize=Cr(A,ir,t.fontSize),this.fontStyle=Cr(A,or,t.fontStyle),this.fontVariant=Cr(A,ar,t.fontVariant),this.fontWeight=Cr(A,sr,t.fontWeight),this.letterSpacing=Cr(A,be,t.letterSpacing),this.lineBreak=Cr(A,Fe,t.lineBreak),this.lineHeight=Cr(A,Qe,t.lineHeight),this.listStyleImage=Cr(A,Ue,t.listStyleImage),this.listStylePosition=Cr(A,Ee,t.listStylePosition),this.listStyleType=Cr(A,Le,t.listStyleType),this.marginTop=Cr(A,Se,t.marginTop),this.marginRight=Cr(A,Ie,t.marginRight),this.marginBottom=Cr(A,Ne,t.marginBottom),this.marginLeft=Cr(A,He,t.marginLeft),this.opacity=Cr(A,tr,t.opacity);var e=Cr(A,Pe,t.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=Cr(A,ke,t.overflowWrap),this.paddingTop=Cr(A,Te,t.paddingTop),this.paddingRight=Cr(A,De,t.paddingRight),this.paddingBottom=Cr(A,Me,t.paddingBottom),this.paddingLeft=Cr(A,Re,t.paddingLeft),this.paintOrder=Cr(A,Br,t.paintOrder),this.position=Cr(A,Ve,t.position),this.textAlign=Cr(A,Ke,t.textAlign),this.textDecorationColor=Cr(A,er,t.textDecorationColor??t.color),this.textDecorationLine=Cr(A,rr,t.textDecorationLine??t.textDecoration),this.textShadow=Cr(A,je,t.textShadow),this.textTransform=Cr(A,Ge,t.textTransform),this.transform=Cr(A,ze,t.transform),this.transformOrigin=Cr(A,Ye,t.transformOrigin),this.visibility=Cr(A,Je,t.visibility),this.webkitTextStrokeColor=Cr(A,wr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cr(A,mr,t.webkitTextStrokeWidth),this.wordBreak=Cr(A,Ze,t.wordBreak),this.zIndex=Cr(A,$e,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return ft(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return lr(this.display,4)||lr(this.display,33554432)||lr(this.display,268435456)||lr(this.display,536870912)||lr(this.display,67108864)||lr(this.display,134217728)},A}(),vr=function(A,t){this.content=Cr(A,cr,t.content),this.quotes=Cr(A,dr,t.quotes)},br=function(A,t){this.counterIncrement=Cr(A,ur,t.counterIncrement),this.counterReset=Cr(A,hr,t.counterReset)},Cr=function(A,t,e){var r=new RA,n=null==e?t.initialValue:e.toString();r.write(n);var i=new KA(r.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(A,GA(s)?s.value:t.initialValue);case 0:return t.parse(A,i.parseComponentValue());case 1:return t.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return ot(A,i.parseComponentValue());case"color":return ht(A,i.parseComponentValue());case"image":return Mt(A,i.parseComponentValue());case"length":var a=i.parseComponentValue();return ZA(a)?a:tt;case"length-percentage":var o=i.parseComponentValue();return $A(o)?o:tt;case"time":return Ar.parse(A,i.parseComponentValue())}}},Fr=function(A,t){var e=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===e||t===e},Qr=function(A,t){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Fr(t,3),this.styles=new yr(A,window.getComputedStyle(t,null)),_n(t)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),Fr(t,4)&&(this.flags|=16)},xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ur=typeof Uint8Array>"u"?[]:new Uint8Array(256),Er=0;Er<xr.length;Er++)Ur[xr.charCodeAt(Er)]=Er;for(var Lr=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},_r=function(){function A(A,t,e,r,n,i){this.initialValue=A,this.errorValue=t,this.highStart=e,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=((t=this.index[A>>5])<<2)+(31&A),this.data[t];if(A<=65535)return t=((t=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[t];if(A<this.highStart)return t=2080+(A>>11),t=this.index[t],t+=A>>5&63,t=((t=this.index[t])<<2)+(31&A),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ir=typeof Uint8Array>"u"?[]:new Uint8Array(256),Nr=0;Nr<Sr.length;Nr++)Ir[Sr.charCodeAt(Nr)]=Nr;var Hr,Pr=8,kr=9,Or=11,Tr=12,Dr=function(){var A=[...arguments];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var e=[],r=-1,n="";++r<t;){var i=A[r];i<=65535?e.push(i):(i-=65536,e.push(55296+(i>>10),i%1024+56320)),(r+1===t||e.length>16384)&&(n+=String.fromCharCode.apply(String,e),e.length=0)}return n},Mr=function(A){var t=function(A){var t,e,r,n,i,s=.75*A.length,a=A.length,o=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<a;t+=4)e=Ur[A.charCodeAt(t)],r=Ur[A.charCodeAt(t+1)],n=Ur[A.charCodeAt(t+2)],i=Ur[A.charCodeAt(t+3)],c[o++]=e<<2|r>>4,c[o++]=(15&r)<<4|n>>2,c[o++]=(3&n)<<6|63&i;return l}(A),e=Array.isArray(t)?function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e}(t):new Uint32Array(t),r=Array.isArray(t)?function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e}(t):new Uint16Array(t),n=Lr(r,12,e[4]/2),i=2===e[5]?Lr(r,(24+e[4])/2):function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))}(e,Math.ceil((24+e[4])/4));return new _r(e[0],e[1],e[2],e[3],n,i)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Rr="×",Kr=function(A){return Mr.get(A)},Vr=function(A,t,e){var r=e-2,n=t[r],i=t[e-1],s=t[e];if(2===i&&3===s)return Rr;if(2===i||3===i||4===i||2===s||3===s||4===s)return"÷";if(i===Pr&&-1!==[Pr,kr,Or,Tr].indexOf(s)||(i===Or||i===kr)&&(s===kr||10===s)||(i===Tr||10===i)&&10===s||13===s||5===s||7===s||1===i)return Rr;if(13===i&&14===s){for(;5===n;)n=t[--r];if(14===n)return Rr}if(15===i&&15===s){for(var a=0;15===n;)a++,n=t[--r];if(a%2==0)return Rr}return"÷"},jr=function(A){var t=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);56320==(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),e--)}else t.push(n)}return t}(A),e=t.length,r=0,n=0,i=t.map(Kr);return{next:function(){if(r>=e)return{done:!0,value:null};for(var A=Rr;r<e&&(A=Vr(0,i,++r))===Rr;);if(A!==Rr||r===e){var s=Dr.apply(null,t.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},Gr=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},zr=function(A,t,e,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(n),s},qr=function(A){return new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Xr={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var e=A.createElement("boundtest");e.style.height="123px",e.style.display="block",A.body.appendChild(e),t.selectNode(e);var r=t.getBoundingClientRect(),n=Math.round(r.height);if(A.body.removeChild(e),123===n)return!0}}return!1}(document);return Object.defineProperty(Xr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Xr.SUPPORT_RANGE_BOUNDS&&function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var e=A.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,n=o(r.data).map((function(A){return l(A)})),i=0,s={},a=n.every((function(A,t){e.setStart(r,i),e.setEnd(r,i+A.length);var n=e.getBoundingClientRect();i+=A.length;var a=n.x>s.x||n.y>s.y;return s=n,0===t||a}));return A.body.removeChild(t),a}(document);return Object.defineProperty(Xr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var t=new Image,e=A.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0}(document);return Object.defineProperty(Xr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=t.toDataURL();n.src=i;var s=zr(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),qr(s).then((function(t){r.drawImage(t,0,0);var n=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var s=A.createElement("div");return s.style.backgroundImage="url("+i+")",s.style.height=e+"px",Gr(n)?qr(zr(e,e,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Gr(r.getImageData(0,0,e,e).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Xr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Xr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Xr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Xr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Xr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Wr=function(A,t){this.text=A,this.bounds=t},Yr=function(A,t){var e=t.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=a(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return s.EMPTY},Jr=function(A,t,e){var r=A.ownerDocument;if(!r)throw Error("Node has no owner document");var n=r.createRange();return n.setStart(A,t),n.setEnd(A,t+e),n},Zr=function(A){if(Xr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return function(A){for(var t,e=jr(A),r=[];!(t=e.next()).done;)t.value&&r.push(t.value.slice());return r}(A)},$r=function(A,t){return 0===t.letterSpacing?function(A,t){if(Xr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return tn(A,t)}(A,t):Zr(A)},An=[32,160,4961,65792,65793,4153,4241],tn=function(A,t){for(var e,r=function(A,t){var e=o(A),r=iA(e,t),n=r[0],i=r[1],s=r[2],a=e.length,l=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var A=z;c<a&&(A=nA(e,i,n,++c,s))===z;);if(A!==z||c===a){var t=new sA(e,A,l,c);return l=c,{value:t,done:!1}}return{done:!0,value:null}}}}(A,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),n=[],i=function(){if(e.value){var A=o(e.value.slice()),t="";A.forEach((function(A){-1===An.indexOf(A)?t+=l(A):(t.length&&n.push(t),n.push(l(A)),t="")})),t.length&&n.push(t)}};!(e=r.next()).done;)i();return n},en=function(A,t,e){this.text=rn(t.data,e.textTransform),this.textBounds=function(A,t,e,r){var n=$r(t,e),i=[],a=0;return n.forEach((function(t){if(e.textDecorationLine.length||t.trim().length>0)if(Xr.SUPPORT_RANGE_BOUNDS){var n=Jr(r,a,t.length).getClientRects();if(n.length>1){var o=Zr(t),l=0;o.forEach((function(t){i.push(new Wr(t,s.fromDOMRectList(A,Jr(r,l+a,t.length).getClientRects()))),l+=t.length}))}else i.push(new Wr(t,s.fromDOMRectList(A,n)))}else{var c=r.splitText(t.length);i.push(new Wr(t,Yr(A,r))),r=c}else Xr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length})),i}(A,this.text,e,t)},rn=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(nn,sn);case 2:return A.toUpperCase();default:return A}},nn=/(^|\s|:|-|\(|\))([a-z])/g,sn=function(A,t,e){return A.length>0?t+e.toUpperCase():A},an=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.src=e.currentSrc||e.src,r.intrinsicWidth=e.naturalWidth,r.intrinsicHeight=e.naturalHeight,r.context.cache.addImage(r.src),r}return t(e,A),e}(Qr),on=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.canvas=e,r.intrinsicWidth=e.width,r.intrinsicHeight=e.height,r}return t(e,A),e}(Qr),ln=function(A){function e(t,e){var r=A.call(this,t,e)||this,n=new XMLSerializer,i=a(t,e);return e.setAttribute("width",i.width+"px"),e.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(e)),r.intrinsicWidth=e.width.baseVal.value,r.intrinsicHeight=e.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(e,A),e}(Qr),cn=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.value=e.value,r}return t(e,A),e}(Qr),un=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.start=e.start,r.reversed="boolean"==typeof e.reversed&&!0===e.reversed,r}return t(e,A),e}(Qr),hn=[{type:15,flags:0,unit:"px",number:3}],fn=[{type:16,flags:0,number:50}],dn="checkbox",gn="radio",pn="password",Bn=707406591,wn=function(A){function e(t,e){var r=A.call(this,t,e)||this;switch(r.type=e.type.toLowerCase(),r.checked=e.checked,r.value=function(A){var t=A.type===pn?Array(A.value.length+1).join("•"):A.value;return 0===t.length?A.placeholder||"":t}(e),(r.type===dn||r.type===gn)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=function(A){return A.width>A.height?new s(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new s(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A}(r.bounds)),r.type){case dn:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=hn;break;case gn:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=fn}return r}return t(e,A),e}(Qr),mn=function(A){function e(t,e){var r=A.call(this,t,e)||this,n=e.options[e.selectedIndex||0];return r.value=n&&n.text||"",r}return t(e,A),e}(Qr),yn=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.value=e.value,r}return t(e,A),e}(Qr),vn=function(A){function e(t,e){var r=A.call(this,t,e)||this;r.src=e.src,r.width=parseInt(e.width,10)||0,r.height=parseInt(e.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){r.tree=Qn(t,e.contentWindow.document.documentElement);var n=e.contentWindow.document.documentElement?vt(t,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):bt.TRANSPARENT,i=e.contentWindow.document.body?vt(t,getComputedStyle(e.contentWindow.document.body).backgroundColor):bt.TRANSPARENT;r.backgroundColor=ft(n)?ft(i)?r.styles.backgroundColor:i:n}}catch{}return r}return t(e,A),e}(Qr),bn=["OL","UL","MENU"],Cn=function(A,t,e,r){for(var n=t.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,En(n)&&n.data.trim().length>0)e.textNodes.push(new en(A,n,e.styles));else if(Ln(n))if(jn(n)&&n.assignedNodes)n.assignedNodes().forEach((function(t){return Cn(A,t,e,r)}));else{var s=Fn(A,n);s.styles.isVisible()&&(xn(n,s,r)?s.flags|=4:Un(s.styles)&&(s.flags|=2),-1!==bn.indexOf(n.tagName)&&(s.flags|=8),e.elements.push(s),n.slot,n.shadowRoot?Cn(A,n.shadowRoot,s,r):!Kn(n)&&!Pn(n)&&!Vn(n)&&Cn(A,n,s,r))}},Fn=function(A,t){return Dn(t)?new an(A,t):On(t)?new on(A,t):Pn(t)?new ln(A,t):In(t)?new cn(A,t):Nn(t)?new un(A,t):Hn(t)?new wn(A,t):Vn(t)?new mn(A,t):Kn(t)?new yn(A,t):Mn(t)?new vn(A,t):new Qr(A,t)},Qn=function(A,t){var e=Fn(A,t);return e.flags|=4,Cn(A,t,e,e),e},xn=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||kn(A)&&e.styles.isTransparent()},Un=function(A){return A.isPositioned()||A.isFloating()},En=function(A){return A.nodeType===Node.TEXT_NODE},Ln=function(A){return A.nodeType===Node.ELEMENT_NODE},_n=function(A){return Ln(A)&&void 0!==A.style&&!Sn(A)},Sn=function(A){return"object"==typeof A.className},In=function(A){return"LI"===A.tagName},Nn=function(A){return"OL"===A.tagName},Hn=function(A){return"INPUT"===A.tagName},Pn=function(A){return"svg"===A.tagName},kn=function(A){return"BODY"===A.tagName},On=function(A){return"CANVAS"===A.tagName},Tn=function(A){return"VIDEO"===A.tagName},Dn=function(A){return"IMG"===A.tagName},Mn=function(A){return"IFRAME"===A.tagName},Rn=function(A){return"STYLE"===A.tagName},Kn=function(A){return"TEXTAREA"===A.tagName},Vn=function(A){return"SELECT"===A.tagName},jn=function(A){return"SLOT"===A.tagName},Gn=function(A){return A.tagName.indexOf("-")>0},zn=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(A){return this.counters[A]||[]},A.prototype.pop=function(A){var t=this;A.forEach((function(A){return t.counters[A].pop()}))},A.prototype.parse=function(A){var t=this,e=A.counterIncrement,r=A.counterReset,n=!0;null!==e&&e.forEach((function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(n=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)}));var i=[];return n&&r.forEach((function(A){var e=t.counters[A.counter];i.push(A.counter),e||=t.counters[A.counter]=[],e.push(A.reset)})),i},A}(),qn={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"]},Xn={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:"Ք.Փ.Ւ.Ց.Ր.Տ.Վ.Ս.Ռ.Ջ.Պ.Չ.Ո.Շ.Ն.Յ.Մ.Ճ.Ղ.Ձ.Հ.Կ.Ծ.Խ.Լ.Ի.Ժ.Թ.Ը.Է.Զ.Ե.Դ.Գ.Բ.Ա".split(".")},Wn={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:"י׳.ט׳.ח׳.ז׳.ו׳.ה׳.ד׳.ג׳.ב׳.א׳.ת.ש.ר.ק.צ.פ.ע.ס.נ.מ.ל.כ.יט.יח.יז.טז.טו.י.ט.ח.ז.ו.ה.ד.ג.ב.א".split(".")},Yn={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:"ჵ.ჰ.ჯ.ჴ.ხ.ჭ.წ.ძ.ც.ჩ.შ.ყ.ღ.ქ.ფ.ჳ.ტ.ს.რ.ჟ.პ.ო.ჲ.ნ.მ.ლ.კ.ი.თ.ჱ.ზ.ვ.ე.დ.გ.ბ.ა".split(".")},Jn=function(A,t,e,r,n,i){return A<t||A>e?si(A,n,i.length>0):r.integers.reduce((function(t,e,n){for(;A>=e;)A-=e,t+=r.values[n];return t}),"")+i},Zn=function(A,t,e,r){var n="";do{e||A--,n=r(A)+n,A/=t}while(A*t>=t);return n},$n=function(A,t,e,r,n){var i=e-t+1;return(A<0?"-":"")+(Zn(Math.abs(A),i,r,(function(A){return l(Math.floor(A%i)+t)}))+n)},Ai=function(A,t,e){void 0===e&&(e=". ");var r=t.length;return Zn(Math.abs(A),r,!1,(function(A){return t[Math.floor(A%r)]}))+e},ti=function(A,t,e,r,n,i){if(A<-9999||A>9999)return si(A,4,n.length>0);var s=Math.abs(A),a=n;if(0===s)return t[0]+a;for(var o=0;s>0&&o<=4;o++){var l=s%10;0===l&&lr(i,1)&&""!==a?a=t[l]+a:l>1||1===l&&0===o||1===l&&1===o&&lr(i,2)||1===l&&1===o&&lr(i,4)&&A>100||1===l&&o>1&&lr(i,8)?a=t[l]+(o>0?e[o-1]:"")+a:1===l&&o>0&&(a=e[o-1]+a),s=Math.floor(s/10)}return(A<0?r:"")+a},ei="十百千萬",ri="拾佰仟萬",ni="マイナス",ii="마이너스",si=function(A,t,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",s=e?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=$n(A,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return Ai(A,"〇一二三四五六七八九",n);case 6:return Jn(A,1,3999,qn,3,r).toLowerCase();case 7:return Jn(A,1,3999,qn,3,r);case 8:return $n(A,945,969,!1,r);case 9:return $n(A,97,122,!1,r);case 10:return $n(A,65,90,!1,r);case 11:return $n(A,1632,1641,!0,r);case 12:case 49:return Jn(A,1,9999,Xn,3,r);case 35:return Jn(A,1,9999,Xn,3,r).toLowerCase();case 13:return $n(A,2534,2543,!0,r);case 14:case 30:return $n(A,6112,6121,!0,r);case 15:return Ai(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ai(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ti(A,"零一二三四五六七八九",ei,"負",n,14);case 47:return ti(A,"零壹貳參肆伍陸柒捌玖",ri,"負",n,15);case 42:return ti(A,"零一二三四五六七八九",ei,"负",n,14);case 41:return ti(A,"零壹贰叁肆伍陆柒捌玖",ri,"负",n,15);case 26:return ti(A,"〇一二三四五六七八九","十百千万",ni,n,0);case 25:return ti(A,"零壱弐参四伍六七八九","拾百千万",ni,n,7);case 31:return ti(A,"영일이삼사오육칠팔구","십백천만",ii,i,7);case 33:return ti(A,"零一二三四五六七八九","十百千萬",ii,i,0);case 32:return ti(A,"零壹貳參四五六七八九","拾百千",ii,i,7);case 18:return $n(A,2406,2415,!0,r);case 20:return Jn(A,1,19999,Yn,3,r);case 21:return $n(A,2790,2799,!0,r);case 22:return $n(A,2662,2671,!0,r);case 22:return Jn(A,1,10999,Wn,3,r);case 23:return Ai(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ai(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return $n(A,3302,3311,!0,r);case 28:return Ai(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ai(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return $n(A,3792,3801,!0,r);case 37:return $n(A,6160,6169,!0,r);case 38:return $n(A,4160,4169,!0,r);case 39:return $n(A,2918,2927,!0,r);case 40:return $n(A,1776,1785,!0,r);case 43:return $n(A,3046,3055,!0,r);case 44:return $n(A,3174,3183,!0,r);case 45:return $n(A,3664,3673,!0,r);case 46:return $n(A,3872,3881,!0,r);default:return $n(A,48,57,!0,r)}},ai="data-html2canvas-ignore",oi=function(){function A(A,t,e){if(this.context=A,this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new zn,this.quoteDepth=0,!t.ownerDocument)throw Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,t){var e=this,i=ci(A,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,o=i.contentWindow,l=o.document,c=fi(i).then((function(){return r(e,void 0,void 0,(function(){var A,e;return n(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(wi),o&&(o.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==t.top||o.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-t.left,o.scrollY-t.top,0,0))),A=this.options.onclone,void 0===(e=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,hi(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(l,e)})).then((function(){return i}))]:[2,i]}}))}))}));return l.open(),l.write(pi(document.doctype)+"<html></html>"),Bi(this.referenceElement.ownerDocument,s,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(A){if(Fr(A,2),On(A))return this.createCanvasClone(A);if(Tn(A))return this.createVideoClone(A);if(Rn(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Dn(t)&&(Dn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Gn(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return gi(A.style,t),t},A.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var e=[].slice.call(t.cssRules,0).reduce((function(A,t){return t&&"string"==typeof t.cssText?A+t.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=e,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;var r=A.getContext("2d"),n=e.getContext("2d");if(n)if(!this.options.allowTaint&&r)n.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{var i=A.getContext("webgl2")??A.getContext("webgl");i&&!1===i.getContextAttributes()?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),n.drawImage(A,0,0)}return e}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e},A.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var e=t.getContext("2d");try{return e&&(e.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||e.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,t,e){(!Ln(t)||!function(A){return"SCRIPT"===A.tagName}(t)&&!t.hasAttribute(ai)&&("function"!=typeof this.options.ignoreElements||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Ln(t)||!Rn(t))&&A.appendChild(this.cloneNode(t,e))},A.prototype.cloneChildNodes=function(A,t,e){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(Ln(n)&&jn(n)&&"function"==typeof n.assignedNodes){var i=n.assignedNodes();i.length&&i.forEach((function(A){return r.appendChildNode(t,A,e)}))}else this.appendChildNode(t,n,e)},A.prototype.cloneNode=function(A,t){if(En(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&Ln(A)&&(_n(A)||Sn(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=e.getComputedStyle(A),i=e.getComputedStyle(A,":before"),s=e.getComputedStyle(A,":after");this.referenceElement===A&&_n(r)&&(this.clonedReferenceElement=r),kn(r)&&bi(r);var a=this.counters.parse(new br(this.context,n)),o=this.resolvePseudoContent(A,r,i,Hr.BEFORE);Gn(A)&&(t=!0),Tn(A)||this.cloneChildNodes(A,r,t),o&&r.insertBefore(o,r.firstChild);var l=this.resolvePseudoContent(A,r,s,Hr.AFTER);return l&&r.appendChild(l),this.counters.pop(a),(n&&(this.options.copyStyles||Sn(A))&&!Mn(A)||t)&&gi(n,r),(0!==A.scrollTop||0!==A.scrollLeft)&&this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Kn(A)||Vn(A))&&(Kn(r)||Vn(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,t,e,r){var n=this;if(e){var i=e.content,s=t.ownerDocument;if(s&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==e.display){this.counters.parse(new br(this.context,e));var a=new vr(this.context,e),o=s.createElement("html2canvaspseudoelement");gi(e,o),a.content.forEach((function(t){if(0===t.type)o.appendChild(s.createTextNode(t.value));else if(22===t.type){var e=s.createElement("img");e.src=t.value,e.style.opacity="1",o.appendChild(e)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(GA);r.length&&o.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(WA),l=i[0],c=i[1];if(l&&GA(l)){var u=n.counters.getCounterValue(l.value),h=c&&GA(c)?Le.parse(n.context,c.value):3;o.appendChild(s.createTextNode(si(u,h,!1)))}}else if("counters"===t.name){var f=t.values.filter(WA),d=(l=f[0],f[1]);c=f[2];if(l&&GA(l)){var g=n.counters.getCounterValues(l.value),p=c&&GA(c)?Le.parse(n.context,c.value):3,B=d&&0===d.type?d.value:"",w=g.map((function(A){return si(A,p,!1)})).join(B);o.appendChild(s.createTextNode(w))}}}else if(20===t.type)switch(t.value){case"open-quote":o.appendChild(s.createTextNode(gr(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":o.appendChild(s.createTextNode(gr(a.quotes,--n.quoteDepth,!1)));break;default:o.appendChild(s.createTextNode(t.value))}})),o.className=mi+" "+yi;var l=r===Hr.BEFORE?" "+mi:" "+yi;return Sn(t)?t.className.baseValue+=l:t.className+=l,o}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(Hr||={});var li,ci=function(A,t){var e=A.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(ai,"true"),A.body.appendChild(e),e},ui=function(A){return new Promise((function(t){A.complete?t():A.src?(A.onload=t,A.onerror=t):t()}))},hi=function(A){return Promise.all([].slice.call(A.images,0).map(ui))},fi=function(A){return new Promise((function(t,e){var r=A.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var e=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(e),t(A))}),50)}}))},di=["all","d","content"],gi=function(A,t){for(var e=A.length-1;e>=0;e--){var r=A.item(e);-1===di.indexOf(r)&&t.style.setProperty(r,A.getPropertyValue(r))}return t},pi=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},Bi=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},wi=function(A){var t=A[0],e=A[1],r=A[2];t.scrollLeft=e,t.scrollTop=r},mi="___html2canvas___pseudoelement_before",yi="___html2canvas___pseudoelement_after",vi='{\n    content: "" !important;\n    display: none !important;\n}',bi=function(A){Ci(A,"."+mi+":before"+vi+"\n         ."+yi+":after"+vi)},Ci=function(A,t){var e=A.ownerDocument;if(e){var r=e.createElement("style");r.textContent=t,A.appendChild(r)}},Fi=function(){function A(){}return A.getOrigin=function(t){var e=A._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A}(),Qi=function(){function A(A,t){this.context=A,this._options=t,this._cache={}}return A.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(Ii(A)||Li(A))&&(this._cache[A]=this.loadImage(A)).catch((function(){})),t},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s=this;return n(this,(function(n){switch(n.label){case 0:return t=Fi.isSameOrigin(A),e=!_i(A)&&!0===this._options.useCORS&&Xr.SUPPORT_CORS_IMAGES&&!t,r=!_i(A)&&!t&&!Ii(A)&&"string"==typeof this._options.proxy&&Xr.SUPPORT_CORS_XHR&&!e,t||!1!==this._options.allowTaint||_i(A)||Ii(A)||r||e?(i=A,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,(Si(i)||e)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var t=this,e=this._options.proxy;if(!e)throw Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,i){var s=Xr.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)n(a.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i;var o=e.indexOf("?")>-1?"&":"?";if(a.open("GET",""+e+o+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var l=t._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+r)}}a.send()}))},A}(),xi=/^data:image\/svg\+xml/i,Ui=/^data:image\/.*;base64,/i,Ei=/^data:image\/.*/i,Li=function(A){return Xr.SUPPORT_SVG_DRAWING||!Ni(A)},_i=function(A){return Ei.test(A)},Si=function(A){return Ui.test(A)},Ii=function(A){return"blob"===A.substr(0,4)},Ni=function(A){return"svg"===A.substr(-3).toLowerCase()||xi.test(A)},Hi=function(){function A(A,t){this.type=0,this.x=A,this.y=t}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A}(),Pi=function(A,t,e){return new Hi(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},ki=function(){function A(A,t,e,r){this.type=1,this.start=A,this.startControl=t,this.endControl=e,this.end=r}return A.prototype.subdivide=function(t,e){var r=Pi(this.start,this.startControl,t),n=Pi(this.startControl,this.endControl,t),i=Pi(this.endControl,this.end,t),s=Pi(r,n,t),a=Pi(n,i,t),o=Pi(s,a,t);return e?new A(this.start,r,s,o):new A(o,a,i,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Oi=function(A){return 1===A.type},Ti=function(A){var t=A.styles,e=A.bounds,r=nt(t.borderTopLeftRadius,e.width,e.height),n=r[0],i=r[1],s=nt(t.borderTopRightRadius,e.width,e.height),a=s[0],o=s[1],l=nt(t.borderBottomRightRadius,e.width,e.height),c=l[0],u=l[1],h=nt(t.borderBottomLeftRadius,e.width,e.height),f=h[0],d=h[1],g=[];g.push((n+a)/e.width),g.push((f+c)/e.width),g.push((i+d)/e.height),g.push((o+u)/e.height);var p=Math.max.apply(Math,g);p>1&&(n/=p,i/=p,a/=p,o/=p,c/=p,u/=p,f/=p,d/=p);var B=e.width-a,w=e.height-u,m=e.width-c,y=e.height-d,v=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,F=t.borderLeftWidth,Q=it(t.paddingTop,A.bounds.width),x=it(t.paddingRight,A.bounds.width),U=it(t.paddingBottom,A.bounds.width),E=it(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?Di(e.left+F/3,e.top+v/3,n-F/3,i-v/3,li.TOP_LEFT):new Hi(e.left+F/3,e.top+v/3),this.topRightBorderDoubleOuterBox=n>0||i>0?Di(e.left+B,e.top+v/3,a-b/3,o-v/3,li.TOP_RIGHT):new Hi(e.left+e.width-b/3,e.top+v/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Di(e.left+m,e.top+w,c-b/3,u-C/3,li.BOTTOM_RIGHT):new Hi(e.left+e.width-b/3,e.top+e.height-C/3),this.bottomLeftBorderDoubleOuterBox=f>0||d>0?Di(e.left+F/3,e.top+y,f-F/3,d-C/3,li.BOTTOM_LEFT):new Hi(e.left+F/3,e.top+e.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?Di(e.left+2*F/3,e.top+2*v/3,n-2*F/3,i-2*v/3,li.TOP_LEFT):new Hi(e.left+2*F/3,e.top+2*v/3),this.topRightBorderDoubleInnerBox=n>0||i>0?Di(e.left+B,e.top+2*v/3,a-2*b/3,o-2*v/3,li.TOP_RIGHT):new Hi(e.left+e.width-2*b/3,e.top+2*v/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Di(e.left+m,e.top+w,c-2*b/3,u-2*C/3,li.BOTTOM_RIGHT):new Hi(e.left+e.width-2*b/3,e.top+e.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=f>0||d>0?Di(e.left+2*F/3,e.top+y,f-2*F/3,d-2*C/3,li.BOTTOM_LEFT):new Hi(e.left+2*F/3,e.top+e.height-2*C/3),this.topLeftBorderStroke=n>0||i>0?Di(e.left+F/2,e.top+v/2,n-F/2,i-v/2,li.TOP_LEFT):new Hi(e.left+F/2,e.top+v/2),this.topRightBorderStroke=n>0||i>0?Di(e.left+B,e.top+v/2,a-b/2,o-v/2,li.TOP_RIGHT):new Hi(e.left+e.width-b/2,e.top+v/2),this.bottomRightBorderStroke=c>0||u>0?Di(e.left+m,e.top+w,c-b/2,u-C/2,li.BOTTOM_RIGHT):new Hi(e.left+e.width-b/2,e.top+e.height-C/2),this.bottomLeftBorderStroke=f>0||d>0?Di(e.left+F/2,e.top+y,f-F/2,d-C/2,li.BOTTOM_LEFT):new Hi(e.left+F/2,e.top+e.height-C/2),this.topLeftBorderBox=n>0||i>0?Di(e.left,e.top,n,i,li.TOP_LEFT):new Hi(e.left,e.top),this.topRightBorderBox=a>0||o>0?Di(e.left+B,e.top,a,o,li.TOP_RIGHT):new Hi(e.left+e.width,e.top),this.bottomRightBorderBox=c>0||u>0?Di(e.left+m,e.top+w,c,u,li.BOTTOM_RIGHT):new Hi(e.left+e.width,e.top+e.height),this.bottomLeftBorderBox=f>0||d>0?Di(e.left,e.top+y,f,d,li.BOTTOM_LEFT):new Hi(e.left,e.top+e.height),this.topLeftPaddingBox=n>0||i>0?Di(e.left+F,e.top+v,Math.max(0,n-F),Math.max(0,i-v),li.TOP_LEFT):new Hi(e.left+F,e.top+v),this.topRightPaddingBox=a>0||o>0?Di(e.left+Math.min(B,e.width-b),e.top+v,B>e.width+b?0:Math.max(0,a-b),Math.max(0,o-v),li.TOP_RIGHT):new Hi(e.left+e.width-b,e.top+v),this.bottomRightPaddingBox=c>0||u>0?Di(e.left+Math.min(m,e.width-F),e.top+Math.min(w,e.height-C),Math.max(0,c-b),Math.max(0,u-C),li.BOTTOM_RIGHT):new Hi(e.left+e.width-b,e.top+e.height-C),this.bottomLeftPaddingBox=f>0||d>0?Di(e.left+F,e.top+Math.min(y,e.height-C),Math.max(0,f-F),Math.max(0,d-C),li.BOTTOM_LEFT):new Hi(e.left+F,e.top+e.height-C),this.topLeftContentBox=n>0||i>0?Di(e.left+F+E,e.top+v+Q,Math.max(0,n-(F+E)),Math.max(0,i-(v+Q)),li.TOP_LEFT):new Hi(e.left+F+E,e.top+v+Q),this.topRightContentBox=a>0||o>0?Di(e.left+Math.min(B,e.width+F+E),e.top+v+Q,B>e.width+F+E?0:a-F+E,o-(v+Q),li.TOP_RIGHT):new Hi(e.left+e.width-(b+x),e.top+v+Q),this.bottomRightContentBox=c>0||u>0?Di(e.left+Math.min(m,e.width-(F+E)),e.top+Math.min(w,e.height+v+Q),Math.max(0,c-(b+x)),u-(C+U),li.BOTTOM_RIGHT):new Hi(e.left+e.width-(b+x),e.top+e.height-(C+U)),this.bottomLeftContentBox=f>0||d>0?Di(e.left+F+E,e.top+y,Math.max(0,f-(F+E)),d-(C+U),li.BOTTOM_LEFT):new Hi(e.left+F+E,e.top+e.height-(C+U))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(li||={});var Di=function(A,t,e,r,n){var i=(Math.sqrt(2)-1)/3*4,s=e*i,a=r*i,o=A+e,l=t+r;switch(n){case li.TOP_LEFT:return new ki(new Hi(A,l),new Hi(A,l-a),new Hi(o-s,t),new Hi(o,t));case li.TOP_RIGHT:return new ki(new Hi(A,t),new Hi(A+s,t),new Hi(o,l-a),new Hi(o,l));case li.BOTTOM_RIGHT:return new ki(new Hi(o,t),new Hi(o,t+a),new Hi(A+s,l),new Hi(A,l));case li.BOTTOM_LEFT:default:return new ki(new Hi(o,l),new Hi(o-s,l),new Hi(A,t+a),new Hi(A,t))}},Mi=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Ri=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ki=function(A,t,e){this.offsetX=A,this.offsetY=t,this.matrix=e,this.type=0,this.target=6},Vi=function(A,t){this.path=A,this.target=t,this.type=1},ji=function(A){this.opacity=A,this.type=2,this.target=6},Gi=function(A){return 1===A.type},zi=function(A,t){return A.length===t.length&&A.some((function(A,e){return A===t[e]}))},qi=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Xi=function(){function A(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new Ti(this.container),this.container.styles.opacity<1&&this.effects.push(new ji(this.container.styles.opacity)),null!==this.container.styles.transform){var e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ki(e,r,n))}if(0!==this.container.styles.overflowX){var i=Mi(this.curves),s=Ri(this.curves);zi(i,s)?this.effects.push(new Vi(i,6)):(this.effects.push(new Vi(i,2)),this.effects.push(new Vi(s,4)))}}return A.prototype.getEffects=function(A){for(var t=-1===[2,3].indexOf(this.container.styles.position),e=this.parent,r=this.effects.slice(0);e;){var n=e.effects.filter((function(A){return!Gi(A)}));if(t||0!==e.container.styles.position||!e.parent){if(r.unshift.apply(r,n),t=-1===[2,3].indexOf(e.container.styles.position),0!==e.container.styles.overflowX){var i=Mi(e.curves),s=Ri(e.curves);zi(i,s)||r.unshift(new Vi(s,6))}}else r.unshift.apply(r,n);e=e.parent}return r.filter((function(t){return lr(t.target,A)}))},A}(),Wi=function(A,t,e,r){A.container.elements.forEach((function(n){var i=lr(n.flags,4),s=lr(n.flags,2),a=new Xi(n,A);lr(n.styles.display,2048)&&r.push(a);var o=lr(n.flags,8)?[]:r;if(i||s){var l=i||n.styles.isPositioned()?e:t,c=new qi(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some((function(A,t){return u>A.element.container.styles.zIndex.order?(h=t,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(u>0){var f=0;l.positiveZIndex.some((function(A,t){return u>=A.element.container.styles.zIndex.order?(f=t+1,!1):f>0})),l.positiveZIndex.splice(f,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Wi(a,c,i?c:e,o)}else n.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Wi(a,t,e,o);lr(n.flags,8)&&Yi(n,o)}))},Yi=function(A,t){for(var e=A instanceof un?A.start:1,r=A instanceof un&&A.reversed,n=0;n<t.length;n++){var i=t[n];i.container instanceof cn&&"number"==typeof i.container.value&&0!==i.container.value&&(e=i.container.value),i.listValue=si(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},Ji=function(A,t){switch(t){case 0:return $i(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return $i(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return $i(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return $i(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Zi=function(A,t){var e=[];return Oi(A)?e.push(A.subdivide(.5,!1)):e.push(A),Oi(t)?e.push(t.subdivide(.5,!0)):e.push(t),e},$i=function(A,t,e,r){var n=[];return Oi(A)?n.push(A.subdivide(.5,!1)):n.push(A),Oi(e)?n.push(e.subdivide(.5,!0)):n.push(e),Oi(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Oi(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},As=function(A){var t=A.bounds,e=A.styles;return t.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},ts=function(A){var t=A.styles,e=A.bounds,r=it(t.paddingLeft,e.width),n=it(t.paddingRight,e.width),i=it(t.paddingTop,e.width),s=it(t.paddingBottom,e.width);return e.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+i+s))},es=function(A,t,e){var r=function(A,t){return 0===A?t.bounds:2===A?ts(t):As(t)}(ss(A.styles.backgroundOrigin,t),A),n=function(A,t){return 0===A?t.bounds:2===A?ts(t):As(t)}(ss(A.styles.backgroundClip,t),A),i=is(ss(A.styles.backgroundSize,t),e,r),s=i[0],a=i[1],o=nt(ss(A.styles.backgroundPosition,t),r.width-s,r.height-a);return[as(ss(A.styles.backgroundRepeat,t),o,i,r,n),Math.round(r.left+o[0]),Math.round(r.top+o[1]),s,a]},rs=function(A){return GA(A)&&A.value===Rt.AUTO},ns=function(A){return"number"==typeof A},is=function(A,t,e){var r=t[0],n=t[1],i=t[2],s=A[0],a=A[1];if(!s)return[0,0];if($A(s)&&a&&$A(a))return[it(s,e.width),it(a,e.height)];var o=ns(i);if(GA(s)&&(s.value===Rt.CONTAIN||s.value===Rt.COVER))return ns(i)?e.width/e.height<i==(s.value===Rt.COVER)?[e.height*i,e.height]:[e.width,e.width/i]:[e.width,e.height];var l=ns(r),c=ns(n),u=l||c;if(rs(s)&&(!a||rs(a)))return l&&c?[r,n]:o||u?u&&o?[l?r:n*i,c?n:r/i]:[l?r:e.width,c?n:e.height]:[e.width,e.height];if(o){var h=0,f=0;return $A(s)?h=it(s,e.width):$A(a)&&(f=it(a,e.height)),rs(s)?h=f*i:(!a||rs(a))&&(f=h/i),[h,f]}var d=null,g=null;if($A(s)?d=it(s,e.width):a&&$A(a)&&(g=it(a,e.height)),null!==d&&(!a||rs(a))&&(g=l&&c?d/r*n:e.height),null!==g&&rs(s)&&(d=l&&c?g/n*r:e.width),null!==d&&null!==g)return[d,g];throw Error("Unable to calculate background-size for element")},ss=function(A,t){var e=A[t];return void 0===e?A[0]:e},as=function(A,t,e,r,n){var i=t[0],s=t[1],a=e[0],o=e[1];switch(A){case 2:return[new Hi(Math.round(r.left),Math.round(r.top+s)),new Hi(Math.round(r.left+r.width),Math.round(r.top+s)),new Hi(Math.round(r.left+r.width),Math.round(o+r.top+s)),new Hi(Math.round(r.left),Math.round(o+r.top+s))];case 3:return[new Hi(Math.round(r.left+i),Math.round(r.top)),new Hi(Math.round(r.left+i+a),Math.round(r.top)),new Hi(Math.round(r.left+i+a),Math.round(r.height+r.top)),new Hi(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new Hi(Math.round(r.left+i),Math.round(r.top+s)),new Hi(Math.round(r.left+i+a),Math.round(r.top+s)),new Hi(Math.round(r.left+i+a),Math.round(r.top+s+o)),new Hi(Math.round(r.left+i),Math.round(r.top+s+o))];default:return[new Hi(Math.round(n.left),Math.round(n.top)),new Hi(Math.round(n.left+n.width),Math.round(n.top)),new Hi(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Hi(Math.round(n.left),Math.round(n.height+n.top))]}},os="Hidden Text",ls=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,t){var e=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;e.style.visibility="hidden",e.style.fontFamily=A,e.style.fontSize=t,e.style.margin="0",e.style.padding="0",e.style.whiteSpace="nowrap",i.appendChild(e),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(os)),e.appendChild(n),e.appendChild(r);var s=r.offsetTop-n.offsetTop+2;e.removeChild(n),e.appendChild(this._document.createTextNode(os)),e.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-e.offsetTop+2;return i.removeChild(e),{baseline:s,middle:a}},A.prototype.getMetrics=function(A,t){var e=A+" "+t;return void 0===this._data[e]&&(this._data[e]=this.parseMetrics(A,t)),this._data[e]},A}(),cs=function(A,t){this.context=A,this.options=t},us=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r._activeEffects=[],r.canvas=e.canvas?e.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),e.canvas||(r.canvas.width=Math.floor(e.width*e.scale),r.canvas.height=Math.floor(e.height*e.scale),r.canvas.style.width=e.width+"px",r.canvas.style.height=e.height+"px"),r.fontMetrics=new ls(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-e.x,-e.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),r}return t(e,A),e.prototype.applyEffects=function(A){for(var t=this;this._activeEffects.length;)this.popEffect();A.forEach((function(A){return t.applyEffect(A)}))},e.prototype.applyEffect=function(A){this.ctx.save(),function(A){return 2===A.type}(A)&&(this.ctx.globalAlpha=A.opacity),function(A){return 0===A.type}(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Gi(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(A){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return lr(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(A)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(A,t,e){var r=this;0===t?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+e):Zr(A.text).reduce((function(t,n){return r.ctx.fillText(n,t,A.bounds.top+e),t+r.ctx.measureText(n).width}),A.bounds.left)},e.prototype.createFontStyle=function(A){var t=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),e=ps(A.fontFamily).join(", "),r=VA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,t,A.fontWeight,r,e].join(" "),e,r]},e.prototype.renderTextNode=function(A,t){return r(this,void 0,void 0,(function(){var e,r,i,s,a,o,l,c,u=this;return n(this,(function(n){return e=this.createFontStyle(t),r=e[0],i=e[1],s=e[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,s),o=a.baseline,l=a.middle,c=t.paintOrder,A.textBounds.forEach((function(A){c.forEach((function(e){switch(e){case 0:u.ctx.fillStyle=dt(t.color),u.renderTextWithLetterSpacing(A,t.letterSpacing,o);var r=t.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(e){u.ctx.shadowColor=dt(e.color),u.ctx.shadowOffsetX=e.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=e.offsetY.number*u.options.scale,u.ctx.shadowBlur=e.blur.number,u.renderTextWithLetterSpacing(A,t.letterSpacing,o)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=dt(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+o),A.bounds.width,1);break;case 2:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:u.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+l),A.bounds.width,1)}})));break;case 1:t.webkitTextStrokeWidth&&A.text.trim().length&&(u.ctx.strokeStyle=dt(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+o)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}}))})),[2]}))}))},e.prototype.renderReplacedElement=function(A,t,e){if(e&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=ts(A),n=Ri(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(e,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var t,r,i,a,o,l,c,u,h,f,d,g,p,B,w,m,y,v;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),t=A.container,r=A.curves,i=t.styles,a=0,o=t.textNodes,n.label=1;case 1:return a<o.length?(l=o[a],[4,this.renderTextNode(l,i)]):[3,4];case 2:n.sent(),n.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof an))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return w=n.sent(),this.renderReplacedElement(t,r,w),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof on&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof ln))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return w=n.sent(),this.renderReplacedElement(t,r,w),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof vn&&t.tree?[4,new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=n.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof wn&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===dn?t.checked&&(this.ctx.save(),this.path([new Hi(t.bounds.left+.39363*u,t.bounds.top+.79*u),new Hi(t.bounds.left+.16*u,t.bounds.top+.5549*u),new Hi(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new Hi(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new Hi(t.bounds.left+.72983*u,t.bounds.top+.23*u),new Hi(t.bounds.left+.84*u,t.bounds.top+.34085*u),new Hi(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=dt(Bn),this.ctx.fill(),this.ctx.restore()):t.type===gn&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=dt(Bn),this.ctx.fill(),this.ctx.restore())),hs(t)&&t.value.length){switch(h=this.createFontStyle(i),y=h[0],f=h[1],d=this.fontMetrics.getMetrics(y,f).baseline,this.ctx.font=y,this.ctx.fillStyle=dt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ds(t.styles.textAlign),v=ts(t),g=0,t.styles.textAlign){case 1:g+=v.width/2;break;case 2:g+=v.width}p=v.add(g,0,0,-v.height/2+1),this.ctx.save(),this.path([new Hi(v.left,v.top),new Hi(v.left+v.width,v.top),new Hi(v.left+v.width,v.top+v.height),new Hi(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Wr(t.value,p),i.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!lr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(B=t.styles.listStyleImage).type)return[3,18];w=void 0,m=B.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return w=n.sent(),this.ctx.drawImage(w,t.bounds.left-(w.width+10),t.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==t.styles.listStyleType&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=dt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",v=new s(t.bounds.left,t.bounds.top+it(t.styles.paddingTop,t.bounds.width),t.bounds.width,xe(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Wr(A.listValue,v),i.letterSpacing,xe(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s,a,o,l,c,u,h,f,d,g,p;return n(this,(function(n){switch(n.label){case 0:return lr(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),t=0,e=A.negativeZIndex,n.label=2;case 2:return t<e.length?(p=e[t],[4,this.renderStack(p)]):[3,5];case 3:n.sent(),n.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,i=A.nonInlineLevel,n.label=7;case 7:return r<i.length?(p=i[r],[4,this.renderNode(p)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:s=0,a=A.nonPositionedFloats,n.label=11;case 11:return s<a.length?(p=a[s],[4,this.renderStack(p)]):[3,14];case 12:n.sent(),n.label=13;case 13:return s++,[3,11];case 14:o=0,l=A.nonPositionedInlineLevel,n.label=15;case 15:return o<l.length?(p=l[o],[4,this.renderStack(p)]):[3,18];case 16:n.sent(),n.label=17;case 17:return o++,[3,15];case 18:c=0,u=A.inlineLevel,n.label=19;case 19:return c<u.length?(p=u[c],[4,this.renderNode(p)]):[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:h=0,f=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return h<f.length?(p=f[h],[4,this.renderStack(p)]):[3,26];case 24:n.sent(),n.label=25;case 25:return h++,[3,23];case 26:d=0,g=A.positiveZIndex,n.label=27;case 27:return d<g.length?(p=g[d],[4,this.renderStack(p)]):[3,30];case 28:n.sent(),n.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var t=this;A.forEach((function(A,e){var r=Oi(A)?A.start:A;0===e?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Oi(A)&&t.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},e.prototype.renderRepeat=function(A,t,e,r){this.path(A),this.ctx.fillStyle=t,this.ctx.translate(e,r),this.ctx.fill(),this.ctx.translate(-e,-r)},e.prototype.resizeImage=function(A,t,e){if(A.width===t&&A.height===e)return A;var r=(this.canvas.ownerDocument??document).createElement("canvas");return r.width=Math.max(1,t),r.height=Math.max(1,e),r.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,t,e),r},e.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s,a;return n(this,(function(o){switch(o.label){case 0:t=A.styles.backgroundImage.length-1,e=function(e){var i,s,a,o,l,c,u,h,f,d,g,p,B,w,m,y,v,b,C,F,Q,x,U,E,L,_,S,I,N,H,P;return n(this,(function(n){switch(n.label){case 0:if(0!==e.type)return[3,5];i=void 0,s=e.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return i=n.sent(),[3,4];case 3:return n.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return i&&(a=es(A,t,[i.width,i.height,i.width/i.height]),y=a[0],x=a[1],U=a[2],C=a[3],F=a[4],w=r.ctx.createPattern(r.resizeImage(i,C,F),"repeat"),r.renderRepeat(y,w,x,U)),[3,6];case 5:!function(A){return 1===A.type}(e)?function(A){return 2===A.type}(e)&&(m=es(A,t,[null,null,null]),y=m[0],v=m[1],b=m[2],C=m[3],F=m[4],Q=0===e.position.length?[et]:e.position,x=it(Q[0],C),U=it(Q[Q.length-1],F),E=function(A,t,e,r,n){var i=0,s=0;switch(A.size){case 0:0===A.shape?i=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):1===A.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(0===A.shape)i=s=Math.min(Et(t,e),Et(t,e-n),Et(t-r,e),Et(t-r,e-n));else if(1===A.shape){var a=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(t),Math.abs(t-r)),o=Lt(r,n,t,e,!0),l=o[0],c=o[1];s=a*(i=Et(l-t,(c-e)/a))}break;case 1:0===A.shape?i=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):1===A.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(0===A.shape)i=s=Math.max(Et(t,e),Et(t,e-n),Et(t-r,e),Et(t-r,e-n));else if(1===A.shape){a=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(t),Math.abs(t-r));var u=Lt(r,n,t,e,!1);l=u[0],c=u[1],s=a*(i=Et(l-t,(c-e)/a))}}return Array.isArray(A.size)&&(i=it(A.size[0],r),s=2===A.size.length?it(A.size[1],n):i),[i,s]}(e,x,U,C,F),L=E[0],_=E[1],L>0&&_>0&&(S=r.ctx.createRadialGradient(v+x,b+U,0,v+x,b+U,L),xt(e.stops,2*L).forEach((function(A){return S.addColorStop(A.stop,dt(A.color))})),r.path(y),r.ctx.fillStyle=S,L===_?r.ctx.fill():(I=A.bounds.left+.5*A.bounds.width,N=A.bounds.top+.5*A.bounds.height,P=1/(H=_/L),r.ctx.save(),r.ctx.translate(I,N),r.ctx.transform(1,0,0,H,0,0),r.ctx.translate(-I,-N),r.ctx.fillRect(v,P*(b-N)+N,C,F*P),r.ctx.restore()))):(o=es(A,t,[null,null,null]),y=o[0],x=o[1],U=o[2],C=o[3],F=o[4],l=Ut(e.angle,C,F),c=l[0],u=l[1],h=l[2],f=l[3],d=l[4],(g=document.createElement("canvas")).width=C,g.height=F,p=g.getContext("2d"),B=p.createLinearGradient(u,f,h,d),xt(e.stops,c).forEach((function(A){return B.addColorStop(A.stop,dt(A.color))})),p.fillStyle=B,p.fillRect(0,0,C,F),C>0&&F>0&&(w=r.ctx.createPattern(g,"repeat"),r.renderRepeat(y,w,x,U))),n.label=6;case 6:return t--,[2]}}))},r=this,i=0,s=A.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return i<s.length?(a=s[i],[5,e(a)]):[3,4];case 2:o.sent(),o.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(A,t,e){return r(this,void 0,void 0,(function(){return n(this,(function(r){return this.path(Ji(e,t)),this.ctx.fillStyle=dt(A),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(A,t,e,i){return r(this,void 0,void 0,(function(){var r,s;return n(this,(function(n){switch(n.label){case 0:return t<3?[4,this.renderSolidBorder(A,e,i)]:[3,2];case 1:return n.sent(),[2];case 2:return r=function(A,t){switch(t){case 0:return $i(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return $i(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return $i(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return $i(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(i,e),this.path(r),this.ctx.fillStyle=dt(A),this.ctx.fill(),s=function(A,t){switch(t){case 0:return $i(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return $i(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return $i(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return $i(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(i,e),this.path(s),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s,a,o,l,c=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),t=A.container.styles,e=!ft(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=fs(ss(t.backgroundClip,0),A.curves),e||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ft(t.backgroundColor)||(this.ctx.fillStyle=dt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var e=Mi(A.curves),r=t.inset?0:1e4,n=function(A,t,e,r,n){return A.map((function(A,i){switch(i){case 0:return A.add(t,e);case 1:return A.add(t+r,e);case 2:return A.add(t+r,e+n);case 3:return A.add(t,e+n)}return A}))}(e,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(e),c.ctx.clip(),c.mask(n)):(c.mask(e),c.ctx.clip(),c.path(n)),c.ctx.shadowOffsetX=t.offsetX.number+r,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=dt(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?dt(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),n.label=2;case 2:s=0,a=0,o=r,n.label=3;case 3:return a<o.length?0!==(l=o[a]).style&&!ft(l.color)&&l.width>0?2===l.style?[4,this.renderDashedDottedBorder(l.color,l.width,s,A.curves,2)]:[3,5]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3===l.style?[4,this.renderDashedDottedBorder(l.color,l.width,s,A.curves,3)]:[3,7];case 6:return n.sent(),[3,11];case 7:return 4===l.style?[4,this.renderDoubleBorder(l.color,l.width,s,A.curves)]:[3,9];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,s,A.curves)];case 10:n.sent(),n.label=11;case 11:s++,n.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(A,t,e,i,s){return r(this,void 0,void 0,(function(){var r,a,o,l,c,u,h,f,d,g,p,B,w,m,y,v;return n(this,(function(n){return this.ctx.save(),r=function(A,t){switch(t){case 0:return Zi(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Zi(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Zi(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Zi(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(i,e),a=Ji(i,e),2===s&&(this.path(a),this.ctx.clip()),Oi(a[0])?(o=a[0].start.x,l=a[0].start.y):(o=a[0].x,l=a[0].y),Oi(a[1])?(c=a[1].end.x,u=a[1].end.y):(c=a[1].x,u=a[1].y),h=Math.abs(0===e||2===e?o-c:l-u),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(a.slice(0,2)),f=t<3?3*t:2*t,d=t<3?2*t:t,3===s&&(f=t,d=t),g=!0,h<=2*f?g=!1:h<=2*f+d?(f*=p=h/(2*f+d),d*=p):(B=Math.floor((h+d)/(f+d)),w=(h-B*f)/(B-1),d=(m=(h-(B+1)*f)/B)<=0||Math.abs(d-w)<Math.abs(d-m)?w:m),g&&(3===s?this.ctx.setLineDash([0,f+d]):this.ctx.setLineDash([f,d])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=dt(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Oi(a[0])&&(y=a[3],v=a[0],this.ctx.beginPath(),this.formatPath([new Hi(y.end.x,y.end.y),new Hi(v.start.x,v.start.y)]),this.ctx.stroke()),Oi(a[1])&&(y=a[1],v=a[2],this.ctx.beginPath(),this.formatPath([new Hi(y.end.x,y.end.y),new Hi(v.start.x,v.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(A){return r(this,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=dt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=function(A){var t=new Xi(A,null),e=new qi(t),r=[];return Wi(t,e,e,r),Yi(t.container,r),e}(A),[4,this.renderStack(t)];case 1:return e.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},e}(cs),hs=function(A){return A instanceof yn||A instanceof mn||A instanceof wn&&A.type!==gn&&A.type!==dn},fs=function(A,t){switch(A){case 0:return Mi(t);case 2:return function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]}(t);default:return Ri(t)}},ds=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},gs=["-apple-system","system-ui"],ps=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===gs.indexOf(A)})):A},Bs=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.canvas=e.canvas?e.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=e,r.canvas.width=Math.floor(e.width*e.scale),r.canvas.height=Math.floor(e.height*e.scale),r.canvas.style.width=e.width+"px",r.canvas.style.height=e.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-e.x,-e.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),r}return t(e,A),e.prototype.render=function(A){return r(this,void 0,void 0,(function(){var t,e;return n(this,(function(r){switch(r.label){case 0:return t=zr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,ws(t)];case 1:return e=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=dt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(cs),ws=function(A){return new Promise((function(t,e){var r=new Image;r.onload=function(){t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},ms=function(){function A(A){var t=A.id,e=A.enabled;this.id=t,this.enabled=e,this.start=Date.now()}return A.prototype.debug=function(){var A=[...arguments];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){var A=[...arguments];this.enabled&&typeof window<"u"&&window.console&&"function"==typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){var A=[...arguments];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){var A=[...arguments];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),ys=function(){function A(t,e){this.windowBounds=e,this.instanceName="#"+A.instanceCount++,this.logger=new ms({id:this.instanceName,enabled:t.logging}),this.cache=t.cache??new Qi(this,t)}return A.instanceCount=1,A}();typeof window<"u"&&Fi.setContext(window);var vs=function(A,t){return r(void 0,void 0,void 0,(function(){var r,i,o,l,c,u,h,f,d,g,p,B,w,m,y,v,b,C,F,Q,x;return n(this,(function(n){switch(n.label){case 0:if(!A||"object"!=typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=A.ownerDocument))throw Error("Element is not attached to a Document");if(!(i=r.defaultView))throw Error("Document is not attached to a Window");return o={allowTaint:t.allowTaint??!1,imageTimeout:t.imageTimeout??15e3,proxy:t.proxy,useCORS:t.useCORS??!1},l=e({logging:t.logging??!0,cache:t.cache},o),c={windowWidth:t.windowWidth??i.innerWidth,windowHeight:t.windowHeight??i.innerHeight,scrollX:t.scrollX??i.pageXOffset,scrollY:t.scrollY??i.pageYOffset},u=new s(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),h=new ys(l,u),f=t.foreignObjectRendering??!1,d={allowTaint:t.allowTaint??!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:f,copyStyles:f},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),g=new oi(h,A,d),(p=g.clonedReferenceElement)?[4,g.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=n.sent(),w=kn(p)||function(A){return"HTML"===A.tagName}(p)?function(A){var t=A.body,e=A.documentElement;if(!t||!e)throw Error("Unable to get document size");return new s(0,0,Math.max(Math.max(t.scrollWidth,e.scrollWidth),Math.max(t.offsetWidth,e.offsetWidth),Math.max(t.clientWidth,e.clientWidth)),Math.max(Math.max(t.scrollHeight,e.scrollHeight),Math.max(t.offsetHeight,e.offsetHeight),Math.max(t.clientHeight,e.clientHeight)))}(p.ownerDocument):a(h,p),m=w.width,y=w.height,v=w.left,b=w.top,C=bs(h,p,t.backgroundColor),F={canvas:t.canvas,backgroundColor:C,scale:t.scale??i.devicePixelRatio??1,x:(t.x??0)+v,y:(t.y??0)+b,width:t.width??Math.ceil(m),height:t.height??Math.ceil(y)},f?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new Bs(h,F).render(p)]):[3,3];case 2:return Q=n.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+v+","+b+" with size "+m+"x"+y+" using computed rendering"),h.logger.debug("Starting DOM parsing"),x=Qn(h,p),C===x.styles.backgroundColor&&(x.styles.backgroundColor=bt.TRANSPARENT),h.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),[4,new us(h,F).render(x)];case 4:Q=n.sent(),n.label=5;case 5:return(t.removeContainer??!0)&&(oi.destroy(B)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,Q]}}))}))},bs=function(A,t,e){var r=t.ownerDocument,n=r.documentElement?vt(A,getComputedStyle(r.documentElement).backgroundColor):bt.TRANSPARENT,i=r.body?vt(A,getComputedStyle(r.body).backgroundColor):bt.TRANSPARENT,s="string"==typeof e?vt(A,e):null===e?bt.TRANSPARENT:4294967295;return t===r.documentElement?ft(n)?ft(i)?s:i:n:s};return function(A,t){return void 0===t&&(t={}),vs(A,t)}}))})),Pn=c({default:()=>Ti});function kn(A){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Yn(A,t,r)}}function On(A,t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ri;Vn&&Vn(A,null);let r=t.length;for(;r--;){let n=t[r];if("string"==typeof n){let A=e(n);A!==n&&(jn(t)||(t[r]=A),n=A)}A[n]=!0}return A}function Tn(A){for(let t=0;t<A.length;t++)li(A,t)||(A[t]=null);return A}function Dn(A){let t=Wn(null);for(let[e,r]of Kn(A))li(A,e)&&(Array.isArray(r)?t[e]=Tn(r):r&&"object"==typeof r&&r.constructor===Object?t[e]=Dn(r):t[e]=r);return t}function Mn(A,t){for(;null!==A;){let e=zn(A,t);if(e){if(e.get)return kn(e.get);if("function"==typeof e.value)return kn(e.value)}A=Gn(A)}return function(){return null}}function Rn(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pi(),t=A=>Rn(A);if(t.version="3.3.3",t.removed=[],!A||!A.document||A.document.nodeType!==Hi.document||!A.Element)return t.isSupported=!1,t;let{document:e}=A,r=e,n=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:o,NodeFilter:l,NamedNodeMap:c=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:u,DOMParser:h,trustedTypes:f}=A,d=o.prototype,g=Mn(d,"cloneNode"),p=Mn(d,"remove"),B=Mn(d,"nextSibling"),w=Mn(d,"childNodes"),m=Mn(d,"parentNode");if("function"==typeof s){let A=e.createElement("template");A.content&&A.content.ownerDocument&&(e=A.content.ownerDocument)}let y,v="",{implementation:b,createNodeIterator:C,createDocumentFragment:F,getElementsByTagName:Q}=e,{importNode:x}=r,U=Oi();t.isSupported="function"==typeof Kn&&"function"==typeof m&&b&&void 0!==b.createHTMLDocument;let{MUSTACHE_EXPR:E,ERB_EXPR:L,TMPLIT_EXPR:_,DATA_ATTR:S,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:P}=Ni,{IS_ALLOWED_URI:k}=Ni,O=null,T=On({},[...hi,...fi,...di,...pi,...wi]),D=null,M=On({},[...mi,...yi,...vi,...bi]),R=Object.seal(Wn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,V=null,j=Object.seal(Wn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),G=!0,z=!0,q=!1,X=!0,W=!1,Y=!0,J=!1,Z=!1,$=!1,AA=!1,tA=!1,eA=!1,rA=!0,nA=!1,iA=!0,sA=!1,aA={},oA=null,lA=On({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),cA=null,uA=On({},["audio","video","img","source","image","track"]),hA=null,fA=On({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dA="http://www.w3.org/1998/Math/MathML",gA="http://www.w3.org/2000/svg",pA="http://www.w3.org/1999/xhtml",BA=pA,wA=!1,mA=null,yA=On({},[dA,gA,pA],ni),vA=On({},["mi","mo","mn","ms","mtext"]),bA=On({},["annotation-xml"]),CA=On({},["title","style","font","a","script"]),FA=null,QA=["application/xhtml+xml","text/html"],xA=null,UA=null,EA=e.createElement("form"),LA=function(A){return A instanceof RegExp||A instanceof Function},_A=function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!UA||UA!==A){if((!A||"object"!=typeof A)&&(A={}),A=Dn(A),FA=-1===QA.indexOf(A.PARSER_MEDIA_TYPE)?"text/html":A.PARSER_MEDIA_TYPE,xA="application/xhtml+xml"===FA?ni:ri,O=li(A,"ALLOWED_TAGS")?On({},A.ALLOWED_TAGS,xA):T,D=li(A,"ALLOWED_ATTR")?On({},A.ALLOWED_ATTR,xA):M,mA=li(A,"ALLOWED_NAMESPACES")?On({},A.ALLOWED_NAMESPACES,ni):yA,hA=li(A,"ADD_URI_SAFE_ATTR")?On(Dn(fA),A.ADD_URI_SAFE_ATTR,xA):fA,cA=li(A,"ADD_DATA_URI_TAGS")?On(Dn(uA),A.ADD_DATA_URI_TAGS,xA):uA,oA=li(A,"FORBID_CONTENTS")?On({},A.FORBID_CONTENTS,xA):lA,K=li(A,"FORBID_TAGS")?On({},A.FORBID_TAGS,xA):Dn({}),V=li(A,"FORBID_ATTR")?On({},A.FORBID_ATTR,xA):Dn({}),aA=!!li(A,"USE_PROFILES")&&A.USE_PROFILES,G=!1!==A.ALLOW_ARIA_ATTR,z=!1!==A.ALLOW_DATA_ATTR,q=A.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==A.ALLOW_SELF_CLOSE_IN_ATTR,W=A.SAFE_FOR_TEMPLATES||!1,Y=!1!==A.SAFE_FOR_XML,J=A.WHOLE_DOCUMENT||!1,AA=A.RETURN_DOM||!1,tA=A.RETURN_DOM_FRAGMENT||!1,eA=A.RETURN_TRUSTED_TYPE||!1,$=A.FORCE_BODY||!1,rA=!1!==A.SANITIZE_DOM,nA=A.SANITIZE_NAMED_PROPS||!1,iA=!1!==A.KEEP_CONTENT,sA=A.IN_PLACE||!1,k=A.ALLOWED_URI_REGEXP||Ei,BA=A.NAMESPACE||pA,vA=A.MATHML_TEXT_INTEGRATION_POINTS||vA,bA=A.HTML_INTEGRATION_POINTS||bA,R=A.CUSTOM_ELEMENT_HANDLING||{},A.CUSTOM_ELEMENT_HANDLING&&LA(A.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(R.tagNameCheck=A.CUSTOM_ELEMENT_HANDLING.tagNameCheck),A.CUSTOM_ELEMENT_HANDLING&&LA(A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(R.attributeNameCheck=A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),A.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(R.allowCustomizedBuiltInElements=A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),W&&(z=!1),tA&&(AA=!0),aA&&(O=On({},wi),D=Wn(null),!0===aA.html&&(On(O,hi),On(D,mi)),!0===aA.svg&&(On(O,fi),On(D,yi),On(D,bi)),!0===aA.svgFilters&&(On(O,di),On(D,yi),On(D,bi)),!0===aA.mathMl&&(On(O,pi),On(D,vi),On(D,bi))),li(A,"ADD_TAGS")||(j.tagCheck=null),li(A,"ADD_ATTR")||(j.attributeCheck=null),A.ADD_TAGS&&("function"==typeof A.ADD_TAGS?j.tagCheck=A.ADD_TAGS:(O===T&&(O=Dn(O)),On(O,A.ADD_TAGS,xA))),A.ADD_ATTR&&("function"==typeof A.ADD_ATTR?j.attributeCheck=A.ADD_ATTR:(D===M&&(D=Dn(D)),On(D,A.ADD_ATTR,xA))),A.ADD_URI_SAFE_ATTR&&On(hA,A.ADD_URI_SAFE_ATTR,xA),A.FORBID_CONTENTS&&(oA===lA&&(oA=Dn(oA)),On(oA,A.FORBID_CONTENTS,xA)),A.ADD_FORBID_CONTENTS&&(oA===lA&&(oA=Dn(oA)),On(oA,A.ADD_FORBID_CONTENTS,xA)),iA&&(O["#text"]=!0),J&&On(O,["html","head","body"]),O.table&&(On(O,["tbody"]),delete K.tbody),A.TRUSTED_TYPES_POLICY){if("function"!=typeof A.TRUSTED_TYPES_POLICY.createHTML)throw ui('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof A.TRUSTED_TYPES_POLICY.createScriptURL)throw ui('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=A.TRUSTED_TYPES_POLICY,v=y.createHTML("")}else void 0===y&&(y=ki(f,n)),null!==y&&"string"==typeof v&&(v=y.createHTML(""));qn&&qn(A),UA=A}},SA=On({},[...fi,...di,...gi]),IA=On({},[...pi,...Bi]),NA=function(A){ti(t.removed,{element:A});try{m(A).removeChild(A)}catch{p(A)}},HA=function(A,e){try{ti(t.removed,{attribute:e.getAttributeNode(A),from:e})}catch{ti(t.removed,{attribute:null,from:e})}if(e.removeAttribute(A),"is"===A)if(AA||tA)try{NA(e)}catch{}else try{e.setAttribute(A,"")}catch{}},PA=function(A){let t=null,r=null;if($)A="<remove></remove>"+A;else{let t=ii(A,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===FA&&BA===pA&&(A='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+A+"</body></html>");let n=y?y.createHTML(A):A;if(BA===pA)try{t=(new h).parseFromString(n,FA)}catch{}if(!t||!t.documentElement){t=b.createDocument(BA,"template",null);try{t.documentElement.innerHTML=wA?v:n}catch{}}let i=t.body||t.documentElement;return A&&r&&i.insertBefore(e.createTextNode(r),i.childNodes[0]||null),BA===pA?Q.call(t,J?"html":"body")[0]:J?t.documentElement:i},kA=function(A){return C.call(A.ownerDocument||A,A,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},OA=function(A){return A instanceof u&&("string"!=typeof A.nodeName||"string"!=typeof A.textContent||"function"!=typeof A.removeChild||!(A.attributes instanceof c)||"function"!=typeof A.removeAttribute||"function"!=typeof A.setAttribute||"string"!=typeof A.namespaceURI||"function"!=typeof A.insertBefore||"function"!=typeof A.hasChildNodes)},TA=function(A){return"function"==typeof a&&A instanceof a};function DA(A,e,r){Zn(A,(A=>{A.call(t,e,r,UA)}))}let MA=function(A){let e=null;if(DA(U.beforeSanitizeElements,A,null),OA(A))return NA(A),!0;let r=xA(A.nodeName);if(DA(U.uponSanitizeElement,A,{tagName:r,allowedTags:O}),Y&&A.hasChildNodes()&&!TA(A.firstElementChild)&&ci(/<[/\w!]/g,A.innerHTML)&&ci(/<[/\w!]/g,A.textContent)||A.nodeType===Hi.progressingInstruction||Y&&A.nodeType===Hi.comment&&ci(/<[/\w]/g,A.data))return NA(A),!0;if(!(j.tagCheck instanceof Function&&j.tagCheck(r))&&(!O[r]||K[r])){if(!K[r]&&KA(r)&&(R.tagNameCheck instanceof RegExp&&ci(R.tagNameCheck,r)||R.tagNameCheck instanceof Function&&R.tagNameCheck(r)))return!1;if(iA&&!oA[r]){let t=m(A)||A.parentNode,e=w(A)||A.childNodes;if(e&&t){for(let r=e.length-1;r>=0;--r){let n=g(e[r],!0);n.__removalCount=(A.__removalCount||0)+1,t.insertBefore(n,B(A))}}}return NA(A),!0}return A instanceof o&&!function(A){let t=m(A);(!t||!t.tagName)&&(t={namespaceURI:BA,tagName:"template"});let e=ri(A.tagName),r=ri(t.tagName);return!!mA[A.namespaceURI]&&(A.namespaceURI===gA?t.namespaceURI===pA?"svg"===e:t.namespaceURI===dA?"svg"===e&&("annotation-xml"===r||vA[r]):!!SA[e]:A.namespaceURI===dA?t.namespaceURI===pA?"math"===e:t.namespaceURI===gA?"math"===e&&bA[r]:!!IA[e]:A.namespaceURI===pA?!(t.namespaceURI===gA&&!bA[r]||t.namespaceURI===dA&&!vA[r])&&!IA[e]&&(CA[e]||!SA[e]):!("application/xhtml+xml"!==FA||!mA[A.namespaceURI]))}(A)||("noscript"===r||"noembed"===r||"noframes"===r)&&ci(/<\/no(script|embed|frames)/i,A.innerHTML)?(NA(A),!0):(W&&A.nodeType===Hi.text&&(e=A.textContent,Zn([E,L,_],(A=>{e=si(e,A," ")})),A.textContent!==e&&(ti(t.removed,{element:A.cloneNode()}),A.textContent=e)),DA(U.afterSanitizeElements,A,null),!1)},RA=function(A,t,r){if(V[t]||rA&&("id"===t||"name"===t)&&(r in e||r in EA))return!1;if((!z||V[t]||!ci(S,t))&&(!G||!ci(I,t))&&!(j.attributeCheck instanceof Function&&j.attributeCheck(t,A)))if(!D[t]||V[t]){if(!(KA(A)&&(R.tagNameCheck instanceof RegExp&&ci(R.tagNameCheck,A)||R.tagNameCheck instanceof Function&&R.tagNameCheck(A))&&(R.attributeNameCheck instanceof RegExp&&ci(R.attributeNameCheck,t)||R.attributeNameCheck instanceof Function&&R.attributeNameCheck(t,A))||"is"===t&&R.allowCustomizedBuiltInElements&&(R.tagNameCheck instanceof RegExp&&ci(R.tagNameCheck,r)||R.tagNameCheck instanceof Function&&R.tagNameCheck(r))))return!1}else if(!hA[t]&&!ci(k,si(r,H,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===A||0!==ai(r,"data:")||!cA[A])&&(!q||ci(N,si(r,H,"")))&&r)return!1;return!0},KA=function(A){return"annotation-xml"!==A&&ii(A,P)},VA=function(A){DA(U.beforeSanitizeAttributes,A,null);let{attributes:e}=A;if(!e||OA(A))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0},n=e.length;for(;n--;){let{name:i,namespaceURI:s,value:a}=e[n],o=xA(i),l=a,c="value"===i?l:oi(l);if(r.attrName=o,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,DA(U.uponSanitizeAttribute,A,r),c=r.attrValue,nA&&("id"===o||"name"===o)&&(HA(i,A),c="user-content-"+c),Y&&ci(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)){HA(i,A);continue}if("attributename"===o&&ii(c,"href")){HA(i,A);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){HA(i,A);continue}if(!X&&ci(/\/>/i,c)){HA(i,A);continue}W&&Zn([E,L,_],(A=>{c=si(c,A," ")}));let u=xA(A.nodeName);if(RA(u,o,c)){if(y&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!s)switch(f.getAttributeType(u,o)){case"TrustedHTML":c=y.createHTML(c);break;case"TrustedScriptURL":c=y.createScriptURL(c)}if(c!==l)try{s?A.setAttributeNS(s,i,c):A.setAttribute(i,c),OA(A)?NA(A):Ai(t.removed)}catch{HA(i,A)}}else HA(i,A)}DA(U.afterSanitizeAttributes,A,null)},jA=function A(t){let e=null,r=kA(t);for(DA(U.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)DA(U.uponSanitizeShadowNode,e,null),MA(e),VA(e),e.content instanceof i&&A(e.content);DA(U.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,s=null,o=null,l=null;if(wA=!A,wA&&(A="\x3c!--\x3e"),"string"!=typeof A&&!TA(A)){if("function"!=typeof A.toString)throw ui("toString is not a function");if("string"!=typeof(A=A.toString()))throw ui("dirty is not a string, aborting")}if(!t.isSupported)return A;if(Z||_A(e),t.removed=[],"string"==typeof A&&(sA=!1),sA){if(A.nodeName){let t=xA(A.nodeName);if(!O[t]||K[t])throw ui("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof a)n=PA("\x3c!----\x3e"),s=n.ownerDocument.importNode(A,!0),s.nodeType===Hi.element&&"BODY"===s.nodeName||"HTML"===s.nodeName?n=s:n.appendChild(s);else{if(!AA&&!W&&!J&&-1===A.indexOf("<"))return y&&eA?y.createHTML(A):A;if(n=PA(A),!n)return AA?null:eA?v:""}n&&$&&NA(n.firstChild);let c=kA(sA?A:n);for(;o=c.nextNode();)MA(o),VA(o),o.content instanceof i&&jA(o.content);if(sA)return A;if(AA){if(tA)for(l=F.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(D.shadowroot||D.shadowrootmode)&&(l=x.call(r,l,!0)),l}let u=J?n.outerHTML:n.innerHTML;return J&&O["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&ci(Si,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),W&&Zn([E,L,_],(A=>{u=si(u,A," ")})),y&&eA?y.createHTML(u):u},t.setConfig=function(){_A(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},t.clearConfig=function(){UA=null,Z=!1},t.isValidAttribute=function(A,t,e){return UA||_A({}),RA(xA(A),xA(t),e)},t.addHook=function(A,t){"function"==typeof t&&ti(U[A],t)},t.removeHook=function(A,t){if(void 0!==t){let e=$n(U[A],t);return-1===e?void 0:ei(U[A],e,1)[0]}return Ai(U[A])},t.removeHooks=function(A){U[A]=[]},t.removeAllHooks=function(){U=Oi()},t}var Kn,Vn,jn,Gn,zn,qn,Xn,Wn,Yn,Jn,Zn,$n,Ai,ti,ei,ri,ni,ii,si,ai,oi,li,ci,ui,hi,fi,di,gi,pi,Bi,wi,mi,yi,vi,bi,Ci,Fi,Qi,xi,Ui,Ei,Li,_i,Si,Ii,Ni,Hi,Pi,ki,Oi,Ti,Di=o((()=>{({entries:Kn,setPrototypeOf:Vn,isFrozen:jn,getPrototypeOf:Gn,getOwnPropertyDescriptor:zn}=Object),({freeze:qn,seal:Xn,create:Wn}=Object),({apply:Yn,construct:Jn}=typeof Reflect<"u"&&Reflect),qn||=function(A){return A},Xn||=function(A){return A},Yn||=function(A,t){for(var e=arguments.length,r=Array(e>2?e-2:0),n=2;n<e;n++)r[n-2]=arguments[n];return A.apply(t,r)},Jn||=function(A){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new A(...e)},Zn=kn(Array.prototype.forEach),$n=kn(Array.prototype.lastIndexOf),Ai=kn(Array.prototype.pop),ti=kn(Array.prototype.push),ei=kn(Array.prototype.splice),ri=kn(String.prototype.toLowerCase),ni=kn(String.prototype.toString),ii=kn(String.prototype.match),si=kn(String.prototype.replace),ai=kn(String.prototype.indexOf),oi=kn(String.prototype.trim),li=kn(Object.prototype.hasOwnProperty),ci=kn(RegExp.prototype.test),ui=function(A){return function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return Jn(A,e)}}(TypeError),hi=qn("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),fi=qn("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),di=qn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gi=qn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pi=qn("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),Bi=qn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wi=qn(["#text"]),mi=qn("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")),yi=qn("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),vi=qn("accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),bi=qn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ci=Xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Fi=Xn(/<%[\w\W]*|[\w\W]*%>/gm),Qi=Xn(/\$\{[\w\W]*/gm),xi=Xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ui=Xn(/^aria-[\-\w]+$/),Ei=Xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Li=Xn(/^(?:\w+script|data):/i),_i=Xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Si=Xn(/^html$/i),Ii=Xn(/^[a-z][.\w]*(-[.\w]+)+$/i),Ni=Object.freeze({__proto__:null,ARIA_ATTR:Ui,ATTR_WHITESPACE:_i,CUSTOM_ELEMENT:Ii,DATA_ATTR:xi,DOCTYPE_NAME:Si,ERB_EXPR:Fi,IS_ALLOWED_URI:Ei,IS_SCRIPT_OR_DATA:Li,MUSTACHE_EXPR:Ci,TMPLIT_EXPR:Qi}),Hi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pi=function(){return typeof window>"u"?null:window},ki=function(A,t){if("object"!=typeof A||"function"!=typeof A.createPolicy)return null;let e=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));let n="dompurify"+(e?"#"+e:"");try{return A.createPolicy(n,{createHTML:A=>A,createScriptURL:A=>A})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Oi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ti=Rn()})),Mi=l(((A,t)=>{var e=function(A){return A&&A.Math===Math&&A};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||e("object"==typeof A&&A)||function(){return this}()||Function("return this")()})),Ri=l(((A,t)=>{t.exports=function(A){try{return!!A()}catch{return!0}}})),Ki=l(((A,t)=>{t.exports=!Ri()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),Vi=l(((A,t)=>{t.exports=!Ri()((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")}))})),ji=l(((A,t)=>{var e=Vi(),r=Function.prototype.call;t.exports=e?r.bind(r):function(){return r.apply(r,arguments)}})),Gi=l((A=>{var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor;A.f=e&&!t.call({1:2},1)?function(A){var t=e(this,A);return!!t&&t.enumerable}:t})),zi=l(((A,t)=>{t.exports=function(A,t){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:t}}})),qi=l(((A,t)=>{var e=Vi(),r=Function.prototype,n=r.call,i=e&&r.bind.bind(n,n);t.exports=e?i:function(A){return function(){return n.apply(A,arguments)}}})),Xi=l(((A,t)=>{var e=qi(),r=e({}.toString),n=e("".slice);t.exports=function(A){return n(r(A),8,-1)}})),Wi=l(((A,t)=>{var e=qi(),r=Ri(),n=Xi(),i=Object,s=e("".split);t.exports=r((function(){return!i("z").propertyIsEnumerable(0)}))?function(A){return"String"===n(A)?s(A,""):i(A)}:i})),Yi=l(((A,t)=>{t.exports=function(A){return null==A}})),Ji=l(((A,t)=>{var e=Yi(),r=TypeError;t.exports=function(A){if(e(A))throw new r("Can't call method on "+A);return A}})),Zi=l(((A,t)=>{var e=Wi(),r=Ji();t.exports=function(A){return e(r(A))}})),$i=l(((A,t)=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(A){return"function"==typeof A||A===e}:function(A){return"function"==typeof A}})),As=l(((A,t)=>{var e=$i();t.exports=function(A){return"object"==typeof A?null!==A:e(A)}})),ts=l(((A,t)=>{var e=Mi(),r=$i();t.exports=function(A,t){return arguments.length<2?function(A){return r(A)?A:void 0}(e[A]):e[A]&&e[A][t]}})),es=l(((A,t)=>{t.exports=qi()({}.isPrototypeOf)})),rs=l(((A,t)=>{var e=Mi().navigator,r=e&&e.userAgent;t.exports=r?String(r):""})),ns=l(((A,t)=>{var e,r,n=Mi(),i=rs(),s=n.process,a=n.Deno,o=s&&s.versions||a&&a.version,l=o&&o.v8;l&&(r=(e=l.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&i&&((!(e=i.match(/Edge\/(\d+)/))||e[1]>=74)&&((e=i.match(/Chrome\/(\d+)/))&&(r=+e[1]))),t.exports=r})),is=l(((A,t)=>{var e=ns(),r=Ri(),n=Mi().String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var A=Symbol("symbol detection");return!n(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&e&&e<41}))})),ss=l(((A,t)=>{t.exports=is()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),as=l(((A,t)=>{var e=ts(),r=$i(),n=es(),i=ss(),s=Object;t.exports=i?function(A){return"symbol"==typeof A}:function(A){var t=e("Symbol");return r(t)&&n(t.prototype,s(A))}})),os=l(((A,t)=>{var e=String;t.exports=function(A){try{return e(A)}catch{return"Object"}}})),ls=l(((A,t)=>{var e=$i(),r=os(),n=TypeError;t.exports=function(A){if(e(A))return A;throw new n(r(A)+" is not a function")}})),cs=l(((A,t)=>{var e=ls(),r=Yi();t.exports=function(A,t){var n=A[t];return r(n)?void 0:e(n)}})),us=l(((A,t)=>{var e=ji(),r=$i(),n=As(),i=TypeError;t.exports=function(A,t){var s,a;if("string"===t&&r(s=A.toString)&&!n(a=e(s,A))||r(s=A.valueOf)&&!n(a=e(s,A))||"string"!==t&&r(s=A.toString)&&!n(a=e(s,A)))return a;throw new i("Can't convert object to primitive value")}})),hs=l(((A,t)=>{t.exports=!1})),fs=l(((A,t)=>{var e=Mi(),r=Object.defineProperty;t.exports=function(A,t){try{r(e,A,{value:t,configurable:!0,writable:!0})}catch{e[A]=t}return t}})),ds=l(((A,t)=>{var e=hs(),r=Mi(),n=fs(),i="__core-js_shared__",s=t.exports=r[i]||n(i,{});(s.versions||=[]).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),gs=l(((A,t)=>{var e=ds();t.exports=function(A,t){return e[A]||(e[A]=t||{})}})),ps=l(((A,t)=>{var e=Ji(),r=Object;t.exports=function(A){return r(e(A))}})),Bs=l(((A,t)=>{var e=qi(),r=ps(),n=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(A,t){return n(r(A),t)}})),ws=l(((A,t)=>{var e=qi(),r=0,n=Math.random(),i=e(1.1.toString);t.exports=function(A){return"Symbol("+(void 0===A?"":A)+")_"+i(++r+n,36)}})),ms=l(((A,t)=>{var e=Mi(),r=gs(),n=Bs(),i=ws(),s=is(),a=ss(),o=e.Symbol,l=r("wks"),c=a?o.for||o:o&&o.withoutSetter||i;t.exports=function(A){return n(l,A)||(l[A]=s&&n(o,A)?o[A]:c("Symbol."+A)),l[A]}})),ys=l(((A,t)=>{var e=ji(),r=As(),n=as(),i=cs(),s=us(),a=ms(),o=TypeError,l=a("toPrimitive");t.exports=function(A,t){if(!r(A)||n(A))return A;var a,c=i(A,l);if(c){if(void 0===t&&(t="default"),a=e(c,A,t),!r(a)||n(a))return a;throw new o("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(A,t)}})),vs=l(((A,t)=>{var e=ys(),r=as();t.exports=function(A){var t=e(A,"string");return r(t)?t:t+""}})),bs=l(((A,t)=>{var e=Mi(),r=As(),n=e.document,i=r(n)&&r(n.createElement);t.exports=function(A){return i?n.createElement(A):{}}})),Cs=l(((A,t)=>{var e=Ki(),r=Ri(),n=bs();t.exports=!e&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))})),Fs=l((A=>{var t=Ki(),e=ji(),r=Gi(),n=zi(),i=Zi(),s=vs(),a=Bs(),o=Cs(),l=Object.getOwnPropertyDescriptor;A.f=t?l:function(A,t){if(A=i(A),t=s(t),o)try{return l(A,t)}catch{}if(a(A,t))return n(!e(r.f,A,t),A[t])}})),Qs=l(((A,t)=>{var e=Ki(),r=Ri();t.exports=e&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),xs=l(((A,t)=>{var e=As(),r=String,n=TypeError;t.exports=function(A){if(e(A))return A;throw new n(r(A)+" is not an object")}})),Us=l((A=>{var t=Ki(),e=Cs(),r=Qs(),n=xs(),i=vs(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";A.f=t?r?function(A,t,e){if(n(A),t=i(t),n(e),"function"==typeof A&&"prototype"===t&&"value"in e&&u in e&&!e[u]){var r=o(A,t);r&&r[u]&&(A[t]=e.value,e={configurable:c in e?e[c]:r[c],enumerable:l in e?e[l]:r[l],writable:!1})}return a(A,t,e)}:a:function(A,t,r){if(n(A),t=i(t),n(r),e)try{return a(A,t,r)}catch{}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(A[t]=r.value),A}})),Es=l(((A,t)=>{var e=Ki(),r=Us(),n=zi();t.exports=e?function(A,t,e){return r.f(A,t,n(1,e))}:function(A,t,e){return A[t]=e,A}})),Ls=l(((A,t)=>{var e=Ki(),r=Bs(),n=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,s=r(n,"name");t.exports={EXISTS:s,PROPER:s&&"something"===function(){}.name,CONFIGURABLE:s&&(!e||e&&i(n,"name").configurable)}})),_s=l(((A,t)=>{var e=qi(),r=$i(),n=ds(),i=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(A){return i(A)}),t.exports=n.inspectSource})),Ss=l(((A,t)=>{var e=Mi(),r=$i(),n=e.WeakMap;t.exports=r(n)&&/native code/.test(String(n))})),Is=l(((A,t)=>{var e=gs(),r=ws(),n=e("keys");t.exports=function(A){return n[A]||(n[A]=r(A))}})),Ns=l(((A,t)=>{t.exports={}})),Hs=l(((A,t)=>{var e,r,n,i=Ss(),s=Mi(),a=As(),o=Es(),l=Bs(),c=ds(),u=Is(),h=Ns(),f="Object already initialized",d=s.TypeError,g=s.WeakMap;if(i||c.state){var p=c.state||=new g;p.get=p.get,p.has=p.has,p.set=p.set,e=function(A,t){if(p.has(A))throw new d(f);return t.facade=A,p.set(A,t),t},r=function(A){return p.get(A)||{}},n=function(A){return p.has(A)}}else{var B=u("state");h[B]=!0,e=function(A,t){if(l(A,B))throw new d(f);return t.facade=A,o(A,B,t),t},r=function(A){return l(A,B)?A[B]:{}},n=function(A){return l(A,B)}}t.exports={set:e,get:r,has:n,enforce:function(A){return n(A)?r(A):e(A,{})},getterFor:function(A){return function(t){var e;if(!a(t)||(e=r(t)).type!==A)throw new d("Incompatible receiver, "+A+" required");return e}}}})),Ps=l(((A,t)=>{var e=qi(),r=Ri(),n=$i(),i=Bs(),s=Ki(),a=Ls().CONFIGURABLE,o=_s(),l=Hs(),c=l.enforce,u=l.get,h=String,f=Object.defineProperty,d=e("".slice),g=e("".replace),p=e([].join),B=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),w=String(String).split("String"),m=t.exports=function(A,t,e){"Symbol("===d(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!i(A,"name")||a&&A.name!==t)&&(s?f(A,"name",{value:t,configurable:!0}):A.name=t),B&&e&&i(e,"arity")&&A.length!==e.arity&&f(A,"length",{value:e.arity});try{e&&i(e,"constructor")&&e.constructor?s&&f(A,"prototype",{writable:!1}):A.prototype&&=void 0}catch{}var r=c(A);return i(r,"source")||(r.source=p(w,"string"==typeof t?t:"")),A};Function.prototype.toString=m((function(){return n(this)&&u(this).source||o(this)}),"toString")})),ks=l(((A,t)=>{var e=$i(),r=Us(),n=Ps(),i=fs();t.exports=function(A,t,s,a){a||={};var o=a.enumerable,l=void 0===a.name?t:a.name;if(e(s)&&n(s,l,a),a.global)o?A[t]=s:i(t,s);else{try{a.unsafe?A[t]&&(o=!0):delete A[t]}catch{}o?A[t]=s:r.f(A,t,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return A}})),Os=l(((A,t)=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(A){var t=+A;return(t>0?r:e)(t)}})),Ts=l(((A,t)=>{var e=Os();t.exports=function(A){var t=+A;return t!=t||0===t?0:e(t)}})),Ds=l(((A,t)=>{var e=Ts(),r=Math.max,n=Math.min;t.exports=function(A,t){var i=e(A);return i<0?r(i+t,0):n(i,t)}})),Ms=l(((A,t)=>{var e=Ts(),r=Math.min;t.exports=function(A){var t=e(A);return t>0?r(t,9007199254740991):0}})),Rs=l(((A,t)=>{var e=Ms();t.exports=function(A){return e(A.length)}})),Ks=l(((A,t)=>{var e=Zi(),r=Ds(),n=Rs(),i=function(A){return function(t,i,s){var a=e(t),o=n(a);if(0===o)return!A&&-1;var l,c=r(s,o);if(A&&i!=i){for(;o>c;)if((l=a[c++])!=l)return!0}else for(;o>c;c++)if((A||c in a)&&a[c]===i)return A||c||0;return!A&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}})),Vs=l(((A,t)=>{var e=qi(),r=Bs(),n=Zi(),i=Ks().indexOf,s=Ns(),a=e([].push);t.exports=function(A,t){var e,o=n(A),l=0,c=[];for(e in o)!r(s,e)&&r(o,e)&&a(c,e);for(;t.length>l;)r(o,e=t[l++])&&(~i(c,e)||a(c,e));return c}})),js=l(((A,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),Gs=l((A=>{var t=Vs(),e=js().concat("length","prototype");A.f=Object.getOwnPropertyNames||function(A){return t(A,e)}})),zs=l((A=>{A.f=Object.getOwnPropertySymbols})),qs=l(((A,t)=>{var e=ts(),r=qi(),n=Gs(),i=zs(),s=xs(),a=r([].concat);t.exports=e("Reflect","ownKeys")||function(A){var t=n.f(s(A)),e=i.f;return e?a(t,e(A)):t}})),Xs=l(((A,t)=>{var e=Bs(),r=qs(),n=Fs(),i=Us();t.exports=function(A,t,s){for(var a=r(t),o=i.f,l=n.f,c=0;c<a.length;c++){var u=a[c];!e(A,u)&&(!s||!e(s,u))&&o(A,u,l(t,u))}}})),Ws=l(((A,t)=>{var e=Ri(),r=$i(),n=/#|\.prototype\./,i=function(A,t){var n=a[s(A)];return n===l||n!==o&&(r(t)?e(t):!!t)},s=i.normalize=function(A){return String(A).replace(n,".").toLowerCase()},a=i.data={},o=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i})),Ys=l(((A,t)=>{var e=Mi(),r=Fs().f,n=Es(),i=ks(),s=fs(),a=Xs(),o=Ws();t.exports=function(A,t){var l,c,u,h,f=A.target,d=A.global,g=A.stat,p=d?e:g?e[f]||s(f,{}):e[f]&&e[f].prototype;if(p)for(l in t){if(u=t[l],A.dontCallGetSet?c=(h=r(p,l))&&h.value:c=p[l],!o(d?l:f+(g?".":"#")+l,A.forced)&&void 0!==c){if(typeof u==typeof c)continue;a(u,c)}(A.sham||c&&c.sham)&&n(u,"sham",!0),i(p,l,u,A)}}})),Js=l(((A,t)=>{var e=Mi(),r=rs(),n=Xi(),i=function(A){return r.slice(0,A.length)===A};t.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"})),Zs=l(((A,t)=>{t.exports="NODE"===Js()})),$s=l(((A,t)=>{t.exports=Mi()})),Aa=l(((A,t)=>{var e=qi(),r=ls();t.exports=function(A,t,n){try{return e(r(Object.getOwnPropertyDescriptor(A,t)[n]))}catch{}}})),ta=l(((A,t)=>{var e=As();t.exports=function(A){return e(A)||null===A}})),ea=l(((A,t)=>{var e=ta(),r=String,n=TypeError;t.exports=function(A){if(e(A))return A;throw new n("Can't set "+r(A)+" as a prototype")}})),ra=l(((A,t)=>{var e=Aa(),r=As(),n=Ji(),i=ea();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,t=!1,s={};try{(A=e(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch{}return function(e,s){return n(e),i(s),r(e)&&(t?A(e,s):e.__proto__=s),e}}():void 0)})),na=l(((A,t)=>{var e=Us().f,r=Bs(),n=ms()("toStringTag");t.exports=function(A,t,i){A&&!i&&(A=A.prototype),A&&!r(A,n)&&e(A,n,{configurable:!0,value:t})}})),ia=l(((A,t)=>{var e=Ps(),r=Us();t.exports=function(A,t,n){return n.get&&e(n.get,t,{getter:!0}),n.set&&e(n.set,t,{setter:!0}),r.f(A,t,n)}})),sa=l(((A,t)=>{var e=ts(),r=ia(),n=ms(),i=Ki(),s=n("species");t.exports=function(A){var t=e(A);i&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}})),aa=l(((A,t)=>{var e=es(),r=TypeError;t.exports=function(A,t){if(e(t,A))return A;throw new r("Incorrect invocation")}})),oa=l(((A,t)=>{var e={};e[ms()("toStringTag")]="z",t.exports="[object z]"===String(e)})),la=l(((A,t)=>{var e=oa(),r=$i(),n=Xi(),i=ms()("toStringTag"),s=Object,a="Arguments"===n(function(){return arguments}());t.exports=e?n:function(A){var t,e,o;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(e=function(A,t){try{return A[t]}catch{}}(t=s(A),i))?e:a?n(t):"Object"===(o=n(t))&&r(t.callee)?"Arguments":o}})),ca=l(((A,t)=>{var e=qi(),r=Ri(),n=$i(),i=la(),s=ts(),a=_s(),o=function(){},l=s("Reflect","construct"),c=/^\s*(?:class|function)\b/,u=e(c.exec),h=!c.test(o),f=function(A){if(!n(A))return!1;try{return l(o,[],A),!0}catch{return!1}},d=function(A){if(!n(A))return!1;switch(i(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!u(c,a(A))}catch{return!0}};d.sham=!0,t.exports=!l||r((function(){var A;return f(f.call)||!f(Object)||!f((function(){A=!0}))||A}))?d:f})),ua=l(((A,t)=>{var e=ca(),r=os(),n=TypeError;t.exports=function(A){if(e(A))return A;throw new n(r(A)+" is not a constructor")}})),ha=l(((A,t)=>{var e=xs(),r=ua(),n=Yi(),i=ms()("species");t.exports=function(A,t){var s,a=e(A).constructor;return void 0===a||n(s=e(a)[i])?t:r(s)}})),fa=l(((A,t)=>{var e=Vi(),r=Function.prototype,n=r.apply,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?i.bind(n):function(){return i.apply(n,arguments)})})),da=l(((A,t)=>{var e=Xi(),r=qi();t.exports=function(A){if("Function"===e(A))return r(A)}})),ga=l(((A,t)=>{var e=da(),r=ls(),n=Vi(),i=e(e.bind);t.exports=function(A,t){return r(A),void 0===t?A:n?i(A,t):function(){return A.apply(t,arguments)}}})),pa=l(((A,t)=>{t.exports=ts()("document","documentElement")})),Ba=l(((A,t)=>{t.exports=qi()([].slice)})),wa=l(((A,t)=>{var e=TypeError;t.exports=function(A,t){if(A<t)throw new e("Not enough arguments");return A}})),ma=l(((A,t)=>{var e=rs();t.exports=/ipad|iphone|ipod/i.test(e)&&/applewebkit/i.test(e)})),ya=l(((A,t)=>{var e,r,n,i,s=Mi(),a=fa(),o=ga(),l=$i(),c=Bs(),u=Ri(),h=pa(),f=Ba(),d=bs(),g=wa(),p=ma(),B=Zs(),w=s.setImmediate,m=s.clearImmediate,y=s.process,v=s.Dispatch,b=s.Function,C=s.MessageChannel,F=s.String,Q=0,x={},U="onreadystatechange";u((function(){e=s.location}));var E=function(A){if(c(x,A)){var t=x[A];delete x[A],t()}},L=function(A){return function(){E(A)}},_=function(A){E(A.data)},S=function(A){s.postMessage(F(A),e.protocol+"//"+e.host)};(!w||!m)&&(w=function(A){g(arguments.length,1);var t=l(A)?A:b(A),e=f(arguments,1);return x[++Q]=function(){a(t,void 0,e)},r(Q),Q},m=function(A){delete x[A]},B?r=function(A){y.nextTick(L(A))}:v&&v.now?r=function(A){v.now(L(A))}:C&&!p?(i=(n=new C).port2,n.port1.onmessage=_,r=o(i.postMessage,i)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&e&&"file:"!==e.protocol&&!u(S)?(r=S,s.addEventListener("message",_,!1)):r=U in d("script")?function(A){h.appendChild(d("script"))[U]=function(){h.removeChild(this),E(A)}}:function(A){setTimeout(L(A),0)}),t.exports={set:w,clear:m}})),va=l(((A,t)=>{var e=Mi(),r=Ki(),n=Object.getOwnPropertyDescriptor;t.exports=function(A){if(!r)return e[A];var t=n(e,A);return t&&t.value}})),ba=l(((A,t)=>{var e=function(){this.head=null,this.tail=null};e.prototype={add:function(A){var t={item:A,next:null},e=this.tail;e?e.next=t:this.head=t,this.tail=t},get:function(){var A=this.head;if(A)return null===(this.head=A.next)&&(this.tail=null),A.item}},t.exports=e})),Ca=l(((A,t)=>{var e=rs();t.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u"})),Fa=l(((A,t)=>{var e=rs();t.exports=/web0s(?!.*chrome)/i.test(e)})),Qa=l(((A,t)=>{var e,r,n,i,s,a=Mi(),o=va(),l=ga(),c=ya().set,u=ba(),h=ma(),f=Ca(),d=Fa(),g=Zs(),p=a.MutationObserver||a.WebKitMutationObserver,B=a.document,w=a.process,m=a.Promise,y=o("queueMicrotask");if(!y){var v=new u,b=function(){var A,t;for(g&&(A=w.domain)&&A.exit();t=v.get();)try{t()}catch(A){throw v.head&&e(),A}A&&A.enter()};h||g||d||!p||!B?!f&&m&&m.resolve?((i=m.resolve(void 0)).constructor=m,s=l(i.then,i),e=function(){s(b)}):g?e=function(){w.nextTick(b)}:(c=l(c,a),e=function(){c(b)}):(r=!0,n=B.createTextNode(""),new p(b).observe(n,{characterData:!0}),e=function(){n.data=r=!r}),y=function(A){v.head||e(),v.add(A)}}t.exports=y})),xa=l(((A,t)=>{t.exports=function(A,t){try{1===arguments.length?console.error(A):console.error(A,t)}catch{}}})),Ua=l(((A,t)=>{t.exports=function(A){try{return{error:!1,value:A()}}catch(A){return{error:!0,value:A}}}})),Ea=l(((A,t)=>{t.exports=Mi().Promise})),La=l(((A,t)=>{var e=Mi(),r=Ea(),n=$i(),i=Ws(),s=_s(),a=ms(),o=Js(),l=hs(),c=ns(),u=r&&r.prototype,h=a("species"),f=!1,d=n(e.PromiseRejectionEvent);t.exports={CONSTRUCTOR:i("Promise",(function(){var A=s(r),t=A!==String(r);if(!t&&66===c||l&&(!u.catch||!u.finally))return!0;if(!c||c<51||!/native code/.test(A)){var e=new r((function(A){A(1)})),n=function(A){A((function(){}),(function(){}))};if((e.constructor={})[h]=n,!(f=e.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==o&&"DENO"!==o||d)})),REJECTION_EVENT:d,SUBCLASSING:f}})),_a=l(((A,t)=>{var e=ls(),r=TypeError,n=function(A){var t,n;this.promise=new A((function(A,e){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=A,n=e})),this.resolve=e(t),this.reject=e(n)};t.exports.f=function(A){return new n(A)}})),Sa=l((()=>{var A,t,e,r,n=Ys(),i=hs(),s=Zs(),a=Mi(),o=$s(),l=ji(),c=ks(),u=ra(),h=na(),f=sa(),d=ls(),g=$i(),p=As(),B=aa(),w=ha(),m=ya().set,y=Qa(),v=xa(),b=Ua(),C=ba(),F=Hs(),Q=Ea(),x=La(),U=_a(),E="Promise",L=x.CONSTRUCTOR,_=x.REJECTION_EVENT,S=x.SUBCLASSING,I=F.getterFor(E),N=F.set,H=Q&&Q.prototype,P=Q,k=H,O=a.TypeError,T=a.document,D=a.process,M=U.f,R=M,K=!!(T&&T.createEvent&&a.dispatchEvent),V="unhandledrejection",j=function(A){var t;return!(!p(A)||!g(t=A.then))&&t},G=function(A,t){var e,r,n,i=t.value,s=1===t.state,a=s?A.ok:A.fail,o=A.resolve,c=A.reject,u=A.domain;try{a?(s||(2===t.rejection&&Y(t),t.rejection=1),!0===a?e=i:(u&&u.enter(),e=a(i),u&&(u.exit(),n=!0)),e===A.promise?c(new O("Promise-chain cycle")):(r=j(e))?l(r,e,o,c):o(e)):c(i)}catch(A){u&&!n&&u.exit(),c(A)}},z=function(A,t){A.notified||(A.notified=!0,y((function(){for(var e,r=A.reactions;e=r.get();)G(e,A);A.notified=!1,t&&!A.rejection&&X(A)})))},q=function(A,t,e){var r,n;K?((r=T.createEvent("Event")).promise=t,r.reason=e,r.initEvent(A,!1,!0),a.dispatchEvent(r)):r={promise:t,reason:e},!_&&(n=a["on"+A])?n(r):A===V&&v("Unhandled promise rejection",e)},X=function(A){l(m,a,(function(){var t,e=A.facade,r=A.value;if(W(A)&&(t=b((function(){s?D.emit("unhandledRejection",r,e):q(V,e,r)})),A.rejection=s||W(A)?2:1,t.error))throw t.value}))},W=function(A){return 1!==A.rejection&&!A.parent},Y=function(A){l(m,a,(function(){var t=A.facade;s?D.emit("rejectionHandled",t):q("rejectionhandled",t,A.value)}))},J=function(A,t,e){return function(r){A(t,r,e)}},Z=function(A,t,e){A.done||(A.done=!0,e&&(A=e),A.value=t,A.state=2,z(A,!0))},$=function(A,t,e){if(!A.done){A.done=!0,e&&(A=e);try{if(A.facade===t)throw new O("Promise can't be resolved itself");var r=j(t);r?y((function(){var e={done:!1};try{l(r,t,J($,e,A),J(Z,e,A))}catch(t){Z(e,t,A)}})):(A.value=t,A.state=1,z(A,!1))}catch(t){Z({done:!1},t,A)}}};if(L&&(P=function(t){B(this,k),d(t),l(A,this);var e=I(this);try{t(J($,e),J(Z,e))}catch(t){Z(e,t)}},k=P.prototype,(A=function(A){N(this,{type:E,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=c(k,"then",(function(A,t){var e=I(this),r=M(w(this,P));return e.parent=!0,r.ok=!g(A)||A,r.fail=g(t)&&t,r.domain=s?D.domain:void 0,0===e.state?e.reactions.add(r):y((function(){G(r,e)})),r.promise})),t=function(){var t=new A,e=I(t);this.promise=t,this.resolve=J($,e),this.reject=J(Z,e)},U.f=M=function(A){return A===P||A===e?new t(A):R(A)},!i&&g(Q)&&H!==Object.prototype)){r=H.then,S||c(H,"then",(function(A,t){var e=this;return new P((function(A,t){l(r,e,A,t)})).then(A,t)}),{unsafe:!0});try{delete H.constructor}catch{}u&&u(H,k)}n({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:P}),e=o.Promise,h(P,E,!1,!0),f(E)})),Ia=l(((A,t)=>{t.exports={}})),Na=l(((A,t)=>{var e=ms(),r=Ia(),n=e("iterator"),i=Array.prototype;t.exports=function(A){return void 0!==A&&(r.Array===A||i[n]===A)}})),Ha=l(((A,t)=>{var e=la(),r=cs(),n=Yi(),i=Ia(),s=ms()("iterator");t.exports=function(A){if(!n(A))return r(A,s)||r(A,"@@iterator")||i[e(A)]}})),Pa=l(((A,t)=>{var e=ji(),r=ls(),n=xs(),i=os(),s=Ha(),a=TypeError;t.exports=function(A,t){var o=arguments.length<2?s(A):t;if(r(o))return n(e(o,A));throw new a(i(A)+" is not iterable")}})),ka=l(((A,t)=>{var e=ji(),r=xs(),n=cs();t.exports=function(A,t,i){var s,a;r(A);try{if(!(s=n(A,"return"))){if("throw"===t)throw i;return i}s=e(s,A)}catch(A){a=!0,s=A}if("throw"===t)throw i;if(a)throw s;return r(s),i}})),Oa=l(((A,t)=>{var e=ga(),r=ji(),n=xs(),i=os(),s=Na(),a=Rs(),o=es(),l=Pa(),c=Ha(),u=ka(),h=TypeError,f=function(A,t){this.stopped=A,this.result=t},d=f.prototype;t.exports=function(A,t,g){var p,B,w,m,y,v,b,C=g&&g.that,F=!(!g||!g.AS_ENTRIES),Q=!(!g||!g.IS_RECORD),x=!(!g||!g.IS_ITERATOR),U=!(!g||!g.INTERRUPTED),E=e(t,C),L=function(A){var t=p;return p=void 0,t&&u(t,"normal"),new f(!0,A)},_=function(A){return F?(n(A),U?E(A[0],A[1],L):E(A[0],A[1])):U?E(A,L):E(A)};if(Q)p=A.iterator;else if(x)p=A;else{if(!(B=c(A)))throw new h(i(A)+" is not iterable");if(s(B)){for(w=0,m=a(A);m>w;w++)if((y=_(A[w]))&&o(d,y))return y;return new f(!1)}p=l(A,B)}for(v=Q?A.next:p.next;!(b=r(v,p)).done;){var S=b.value;try{y=_(S)}catch(A){if(!p)throw A;u(p,"throw",A)}if("object"==typeof y&&y&&o(d,y))return y}return new f(!1)}})),Ta=l(((A,t)=>{var e=ms()("iterator"),r=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,(function(){throw 2}))}catch{}t.exports=function(A,t){try{if(!t&&!r)return!1}catch{return!1}var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},A(i)}catch{}return n}})),Da=l(((A,t)=>{var e=Ea(),r=Ta();t.exports=La().CONSTRUCTOR||!r((function(A){e.all(A).then(void 0,(function(){}))}))})),Ma=l((()=>{var A=Ys(),t=ji(),e=ls(),r=_a(),n=Ua(),i=Oa();A({target:"Promise",stat:!0,forced:Da()},{all:function(A){var s=this,a=r.f(s),o=a.resolve,l=a.reject,c=n((function(){var r=e(s.resolve),n=[],a=0,c=1;i(A,(function(A){var e=a++,i=!1;c++,t(r,s,A).then((function(A){i||(i=!0,n[e]=A,--c||o(n))}),l)})),--c||o(n)}));return c.error&&l(c.value),a.promise}})})),Ra=l((()=>{var A=Ys(),t=hs(),e=La().CONSTRUCTOR,r=Ea(),n=ts(),i=$i(),s=ks(),a=r&&r.prototype;if(A({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(A){return this.then(void 0,A)}}),!t&&i(r)){var o=n("Promise").prototype.catch;a.catch!==o&&s(a,"catch",o,{unsafe:!0})}})),Ka=l((()=>{var A=Ys(),t=ji(),e=ls(),r=_a(),n=Ua(),i=Oa();A({target:"Promise",stat:!0,forced:Da()},{race:function(A){var s=this,a=r.f(s),o=a.reject,l=n((function(){var r=e(s.resolve);i(A,(function(A){t(r,s,A).then(a.resolve,o)}))}));return l.error&&o(l.value),a.promise}})})),Va=l((()=>{var A=Ys(),t=_a();A({target:"Promise",stat:!0,forced:La().CONSTRUCTOR},{reject:function(A){var e=t.f(this);return(0,e.reject)(A),e.promise}})})),ja=l(((A,t)=>{var e=xs(),r=As(),n=_a();t.exports=function(A,t){if(e(A),r(t)&&t.constructor===A)return t;var i=n.f(A);return(0,i.resolve)(t),i.promise}})),Ga=l((()=>{var A=Ys(),t=ts(),e=hs(),r=Ea(),n=La().CONSTRUCTOR,i=ja(),s=t("Promise"),a=e&&!n;A({target:"Promise",stat:!0,forced:e||n},{resolve:function(A){return i(a&&this===s?r:this,A)}})})),za=l((()=>{Sa(),Ma(),Ra(),Ka(),Va(),Ga()}));function qa(A,t,e,r,n,i,s){try{var a=A[i](s),o=a.value}catch(A){return void e(A)}a.done?t(o):Promise.resolve(o).then(r,n)}function Xa(A){return function(){var t=this,e=arguments;return new Promise((function(r,n){var i=A.apply(t,e);function s(A){qa(i,r,n,s,a,"next",A)}function a(A){qa(i,r,n,s,a,"throw",A)}s(void 0)}))}}var Wa=o((()=>{})),Ya=l(((A,t)=>{var e=la(),r=String;t.exports=function(A){if("Symbol"===e(A))throw TypeError("Cannot convert a Symbol value to a string");return r(A)}})),Ja=l(((A,t)=>{var e=xs();t.exports=function(){var A=e(this),t="";return A.hasIndices&&(t+="d"),A.global&&(t+="g"),A.ignoreCase&&(t+="i"),A.multiline&&(t+="m"),A.dotAll&&(t+="s"),A.unicode&&(t+="u"),A.unicodeSets&&(t+="v"),A.sticky&&(t+="y"),t}})),Za=l(((A,t)=>{var e=Ri(),r=Mi().RegExp,n=e((function(){var A=r("a","y");return A.lastIndex=2,null!==A.exec("abcd")})),i=n||e((function(){return!r("a","y").sticky}));t.exports={BROKEN_CARET:n||e((function(){var A=r("^r","gy");return A.lastIndex=2,null!==A.exec("str")})),MISSED_STICKY:i,UNSUPPORTED_Y:n}})),$a=l(((A,t)=>{var e=Vs(),r=js();t.exports=Object.keys||function(A){return e(A,r)}})),Ao=l((A=>{var t=Ki(),e=Qs(),r=Us(),n=xs(),i=Zi(),s=$a();A.f=t&&!e?Object.defineProperties:function(A,t){n(A);for(var e,a=i(t),o=s(t),l=o.length,c=0;l>c;)r.f(A,e=o[c++],a[e]);return A}})),to=l(((A,t)=>{var e,r=xs(),n=Ao(),i=js(),s=Ns(),a=pa(),o=bs(),l=Is(),c="prototype",u="script",h=l("IE_PROTO"),f=function(){},d=function(A){return"<"+u+">"+A+"</"+u+">"},g=function(A){A.write(d("")),A.close();var t=A.parentWindow.Object;return A=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch{}p=typeof document<"u"?document.domain&&e?g(e):function(){var A,t=o("iframe"),e="java"+u+":";return t.style.display="none",a.appendChild(t),t.src=String(e),(A=t.contentWindow.document).open(),A.write(d("document.F=Object")),A.close(),A.F}():g(e);for(var A=i.length;A--;)delete p[c][i[A]];return p()};s[h]=!0,t.exports=Object.create||function(A,t){var e;return null===A?e=p():(f[c]=r(A),e=new f,f[c]=null,e[h]=A),void 0===t?e:n.f(e,t)}})),eo=l(((A,t)=>{var e=Ri(),r=Mi().RegExp;t.exports=e((function(){var A=r(".","s");return!(A.dotAll&&A.test("\n")&&"s"===A.flags)}))})),ro=l(((A,t)=>{var e=Ri(),r=Mi().RegExp;t.exports=e((function(){var A=r("(?<a>b)","g");return"b"!==A.exec("b").groups.a||"bc"!=="b".replace(A,"$<a>c")}))})),no=l(((A,t)=>{var e=ji(),r=qi(),n=Ya(),i=Ja(),s=Za(),a=gs(),o=to(),l=Hs().get,c=eo(),u=ro(),h=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,d=f,g=r("".charAt),p=r("".indexOf),B=r("".replace),w=r("".slice),m=function(){var A=/a/,t=/b*/g;return e(f,A,"a"),e(f,t,"a"),0!==A.lastIndex||0!==t.lastIndex}(),y=s.BROKEN_CARET,v=void 0!==/()??/.exec("")[1],b=function(A,t){for(var e=A.groups=o(null),r=0;r<t.length;r++){var n=t[r];e[n[0]]=A[n[1]]}};(m||v||y||c||u)&&(d=function(A){var t,r,s,a=this,o=l(a),c=n(A),u=o.raw;if(u)return u.lastIndex=a.lastIndex,t=e(d,u,c),a.lastIndex=u.lastIndex,t&&o.groups&&b(t,o.groups),t;var C=o.groups,F=y&&a.sticky,Q=e(i,a),x=a.source,U=0,E=c;if(F){Q=B(Q,"y",""),-1===p(Q,"g")&&(Q+="g"),E=w(c,a.lastIndex);var L=a.lastIndex>0&&g(c,a.lastIndex-1);a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==L&&"\r"!==L&&"\u2028"!==L&&"\u2029"!==L)&&(x="(?: (?:"+x+"))",E=" "+E,U++),r=RegExp("^(?:"+x+")",Q)}v&&(r=RegExp("^"+x+"$(?!\\s)",Q)),m&&(s=a.lastIndex);var _=e(f,F?r:a,E);return F?_?(_.input=c,_[0]=w(_[0],U),_.index=a.lastIndex,a.lastIndex+=_[0].length):a.lastIndex=0:m&&_&&(a.lastIndex=a.global?_.index+_[0].length:s),v&&_&&_.length>1&&e(h,_[0],r,(function(){for(var A=1;A<arguments.length-2;A++)void 0===arguments[A]&&(_[A]=void 0)})),_&&C&&b(_,C),_}),t.exports=d})),io=l((()=>{var A=Ys(),t=no();A({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t})})),so=l(((A,t)=>{io();var e=ji(),r=ks(),n=no(),i=Ri(),s=ms(),a=Es(),o=s("species"),l=RegExp.prototype;t.exports=function(A,t,c,u){var h=s(A),f=!i((function(){var t={};return t[h]=function(){return 7},7!==""[A](t)})),d=f&&!i((function(){var t=!1,e=/a/;if("split"===A){var r={};r[o]=function(){return e},(e={constructor:r,flags:""})[h]=/./[h]}return e.exec=function(){return t=!0,null},e[h](""),!t}));if(!f||!d||c){var g=/./[h],p=t(h,""[A],(function(A,t,r,i,s){var a=t.exec;return a===n||a===l.exec?f&&!s?{done:!0,value:e(g,t,r,i)}:{done:!0,value:e(A,r,t,i)}:{done:!1}}));r(String.prototype,A,p[0]),r(l,h,p[1])}u&&a(l[h],"sham",!0)}})),ao=l(((A,t)=>{var e=qi(),r=Ts(),n=Ya(),i=Ji(),s=e("".charAt),a=e("".charCodeAt),o=e("".slice),l=function(A){return function(t,e){var l,c,u=n(i(t)),h=r(e),f=u.length;return h<0||h>=f?A?"":void 0:(l=a(u,h))<55296||l>56319||h+1===f||(c=a(u,h+1))<56320||c>57343?A?s(u,h):l:A?o(u,h,h+2):c-56320+(l-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}})),oo=l(((A,t)=>{var e=ao().charAt;t.exports=function(A,t,r){return t+(r&&e(A,t).length||1)}})),lo=l(((A,t)=>{var e=Mi(),r=Ri(),n=e.RegExp;t.exports={correct:!r((function(){var A=!0;try{n(".","d")}catch{A=!1}var t={},e="",r=A?"dgimsy":"gimsy",i=function(A,r){Object.defineProperty(t,A,{get:function(){return e+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in A&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==r||e!==r}))}})),co=l(((A,t)=>{var e=ji(),r=Bs(),n=es(),i=lo(),s=Ja(),a=RegExp.prototype;t.exports=i.correct?function(A){return A.flags}:function(A){return i.correct||!n(a,A)||r(A,"flags")?A.flags:e(s,A)}})),uo=l(((A,t)=>{var e=ji(),r=xs(),n=$i(),i=Xi(),s=no(),a=TypeError;t.exports=function(A,t){var o=A.exec;if(n(o)){var l=e(o,A,t);return null!==l&&r(l),l}if("RegExp"===i(A))return e(s,A,t);throw new a("RegExp#exec called on incompatible receiver")}})),ho=l((()=>{var A=ji(),t=qi(),e=so(),r=xs(),n=As(),i=Ms(),s=Ya(),a=Ji(),o=cs(),l=oo(),c=co(),u=uo(),h=t("".indexOf);e("match",(function(t,e,f){return[function(e){var r=a(this),i=n(e)?o(e,t):void 0;return i?A(i,e,r):new RegExp(e)[t](s(r))},function(A){var t=r(this),n=s(A),a=f(e,t,n);if(a.done)return a.value;var o=s(c(t));if(!~h(o,"g"))return u(t,n);var d=!!~h(o,"u")||!!~h(o,"v");t.lastIndex=0;for(var g,p=[],B=0;null!==(g=u(t,n));){var w=s(g[0]);p[B]=w,""===w&&(t.lastIndex=l(n,i(t.lastIndex),d)),B++}return 0===B?null:p}]}))})),fo=l(((A,t)=>{var e=qi(),r=ps(),n=Math.floor,i=e("".charAt),s=e("".replace),a=e("".slice),o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(A,t,e,c,u,h){var f=e+A.length,d=c.length,g=l;return void 0!==u&&(u=r(u),g=o),s(h,g,(function(r,s){var o;switch(i(s,0)){case"$":return"$";case"&":return A;case"`":return a(t,0,e);case"'":return a(t,f);case"<":o=u[a(s,1,-1)];break;default:var l=+s;if(0===l)return r;if(l>d){var h=n(l/10);return 0===h?r:h<=d?void 0===c[h-1]?i(s,1):c[h-1]+i(s,1):r}o=c[l-1]}return void 0===o?"":o}))}})),go=l((()=>{var A=fa(),t=ji(),e=qi(),r=so(),n=Ri(),i=xs(),s=$i(),a=As(),o=Ts(),l=Ms(),c=Ya(),u=Ji(),h=oo(),f=cs(),d=fo(),g=co(),p=uo(),B=ms()("replace"),w=Math.max,m=Math.min,y=e([].concat),v=e([].push),b=e("".indexOf),C=e("".slice),F=function(A){return void 0===A?A:String(A)},Q="$0"==="a".replace(/./,"$0"),x=!!/./[B]&&""===/./[B]("a","$0");r("replace",(function(e,r,n){var Q=x?"$":"$0";return[function(A,e){var n=u(this),i=a(A)?f(A,B):void 0;return i?t(i,A,n,e):t(r,c(n),A,e)},function(t,e){var a=i(this),u=c(t),f=s(e);f||(e=c(e));var B=c(g(a));if("string"==typeof e&&!~b(e,Q)&&!~b(e,"$<")&&!~b(B,"y")){var x=n(r,a,u,e);if(x.done)return x.value}var U,E=!!~b(B,"g");E&&(U=!!~b(B,"u")||!!~b(B,"v"),a.lastIndex=0);for(var L,_=[];null!==(L=p(a,u))&&(v(_,L),E);)""===c(L[0])&&(a.lastIndex=h(u,l(a.lastIndex),U));for(var S="",I=0,N=0;N<_.length;N++){for(var H,P=c((L=_[N])[0]),k=w(m(o(L.index),u.length),0),O=[],T=1;T<L.length;T++)v(O,F(L[T]));var D=L.groups;if(f){var M=y([P],O,k,u);void 0!==D&&v(M,D),H=c(A(e,void 0,M))}else H=d(P,u,k,O,D,e);k>=I&&(S+=C(u,I,k)+H,I=k+P.length)}return S+C(u,I)}]}),!!n((function(){var A=/./;return A.exec=function(){var A=[];return A.groups={a:"7"},A},"7"!=="".replace(A,"$<a>")}))||!Q||x)})),po=l(((A,t)=>{var e=As(),r=Xi(),n=ms()("match");t.exports=function(A){var t;return e(A)&&(void 0===(t=A[n])?"RegExp"===r(A):!!t)}})),Bo=l(((A,t)=>{var e=po(),r=TypeError;t.exports=function(A){if(e(A))throw new r("The method doesn't accept regular expressions");return A}})),wo=l(((A,t)=>{var e=ms()("match");t.exports=function(A){var t=/./;try{"/./"[A](t)}catch{try{return t[e]=!1,"/./"[A](t)}catch{}}return!1}})),mo=l((()=>{var A=Ys(),t=da(),e=Fs().f,r=Ms(),n=Ya(),i=Bo(),s=Ji(),a=wo(),o=hs(),l=t("".slice),c=Math.min,u=a("startsWith");A({target:"String",proto:!0,forced:!(!o&&!u&&function(){var A=e(String.prototype,"startsWith");return A&&!A.writable}()||u)},{startsWith:function(A){var t=n(s(this));i(A);var e=n(A),a=r(c(arguments.length>1?arguments[1]:void 0,t.length));return l(t,a,a+e.length)===e}})})),yo=l(((A,t)=>{var e=ms(),r=to(),n=Us().f,i=e("unscopables"),s=Array.prototype;void 0===s[i]&&n(s,i,{configurable:!0,value:r(null)}),t.exports=function(A){s[i][A]=!0}})),vo=l(((A,t)=>{t.exports=!Ri()((function(){function A(){}return A.prototype.constructor=null,Object.getPrototypeOf(new A)!==A.prototype}))})),bo=l(((A,t)=>{var e=Bs(),r=$i(),n=ps(),i=Is(),s=vo(),a=i("IE_PROTO"),o=Object,l=o.prototype;t.exports=s?o.getPrototypeOf:function(A){var t=n(A);if(e(t,a))return t[a];var i=t.constructor;return r(i)&&t instanceof i?i.prototype:t instanceof o?l:null}})),Co=l(((A,t)=>{var e,r,n,i=Ri(),s=$i(),a=As(),o=to(),l=bo(),c=ks(),u=ms(),h=hs(),f=u("iterator"),d=!1;[].keys&&("next"in(n=[].keys())?(r=l(l(n)))!==Object.prototype&&(e=r):d=!0),!a(e)||i((function(){var A={};return e[f].call(A)!==A}))?e={}:h&&(e=o(e)),s(e[f])||c(e,f,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}})),Fo=l(((A,t)=>{var e=Co().IteratorPrototype,r=to(),n=zi(),i=na(),s=Ia(),a=function(){return this};t.exports=function(A,t,o,l){var c=t+" Iterator";return A.prototype=r(e,{next:n(+!l,o)}),i(A,c,!1,!0),s[c]=a,A}})),Qo=l(((A,t)=>{var e=Ys(),r=ji(),n=hs(),i=Ls(),s=$i(),a=Fo(),o=bo(),l=ra(),c=na(),u=Es(),h=ks(),f=ms(),d=Ia(),g=Co(),p=i.PROPER,B=i.CONFIGURABLE,w=g.IteratorPrototype,m=g.BUGGY_SAFARI_ITERATORS,y=f("iterator"),v="keys",b="values",C="entries",F=function(){return this};t.exports=function(A,t,i,f,g,Q,x){a(i,t,f);var U,E,L,_=function(A){if(A===g&&P)return P;if(!m&&A&&A in N)return N[A];switch(A){case v:case b:case C:return function(){return new i(this,A)}}return function(){return new i(this)}},S=t+" Iterator",I=!1,N=A.prototype,H=N[y]||N["@@iterator"]||g&&N[g],P=!m&&H||_(g),k="Array"===t&&N.entries||H;if(k&&((U=o(k.call(new A)))!==Object.prototype&&U.next&&(!n&&o(U)!==w&&(l?l(U,w):s(U[y])||h(U,y,F)),c(U,S,!0,!0),n&&(d[S]=F))),p&&g===b&&H&&H.name!==b&&(!n&&B?u(N,"name",b):(I=!0,P=function(){return r(H,this)})),g)if(E={values:_(b),keys:Q?P:_(v),entries:_(C)},x)for(L in E)(m||I||!(L in N))&&h(N,L,E[L]);else e({target:t,proto:!0,forced:m||I},E);return(!n||x)&&N[y]!==P&&h(N,y,P,{name:g}),d[t]=P,E}})),xo=l(((A,t)=>{t.exports=function(A,t){return{value:A,done:t}}})),Uo=l(((A,t)=>{var e=Zi(),r=yo(),n=Ia(),i=Hs(),s=Us().f,a=Qo(),o=xo(),l=hs(),c=Ki(),u="Array Iterator",h=i.set,f=i.getterFor(u);t.exports=a(Array,"Array",(function(A,t){h(this,{type:u,target:e(A),index:0,kind:t})}),(function(){var A=f(this),t=A.target,e=A.index++;if(!t||e>=t.length)return A.target=null,o(void 0,!0);switch(A.kind){case"keys":return o(e,!1);case"values":return o(t[e],!1)}return o([e,t[e]],!1)}),"values");var d=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!l&&c&&"values"!==d.name)try{s(d,"name",{value:"values"})}catch{}})),Eo=l(((A,t)=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}})),Lo=l(((A,t)=>{var e=bs()("span").classList,r=e&&e.constructor&&e.constructor.prototype;t.exports=r===Object.prototype?void 0:r})),_o=l((()=>{var A=Mi(),t=Eo(),e=Lo(),r=Uo(),n=Es(),i=na(),s=ms()("iterator"),a=r.values,o=function(A,e){if(A){if(A[s]!==a)try{n(A,s,a)}catch{A[s]=a}if(i(A,e,!0),t[e])for(var o in r)if(A[o]!==r[o])try{n(A,o,r[o])}catch{A[o]=r[o]}}};for(var l in t)o(A[l]&&A[l].prototype,l);o(e,"DOMTokenList")}));var So=o((()=>{}));function Io(A){var t=function(A,t){if("object"!=F(A)||!A)return A;var e=A[Symbol.toPrimitive];if(void 0!==e){var r=e.call(A,t||"default");if("object"!=F(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(A)}(A,"string");return"symbol"==F(t)?t:t+""}var No=o((()=>{Q(),So()}));function Ho(A,t,e){return(t=Io(t))in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}var Po=o((()=>{No()})),ko=l(((A,t)=>{var e=ls(),r=ps(),n=Wi(),i=Rs(),s=TypeError,a="Reduce of empty array with no initial value",o=function(A){return function(t,o,l,c){var u=r(t),h=n(u),f=i(u);if(e(o),0===f&&l<2)throw new s(a);var d=A?f-1:0,g=A?-1:1;if(l<2)for(;;){if(d in h){c=h[d],d+=g;break}if(d+=g,A?d<0:f<=d)throw new s(a)}for(;A?d>=0:f>d;d+=g)d in h&&(c=o(c,h[d],d,u));return c}};t.exports={left:o(!1),right:o(!0)}})),Oo=l(((A,t)=>{var e=Ri();t.exports=function(A,t){var r=[][A];return!!r&&e((function(){r.call(null,t||function(){return 1},1)}))}})),To=l((()=>{var A=Ys(),t=ko().left,e=Oo(),r=ns();A({target:"Array",proto:!0,forced:!Zs()&&r>79&&r<83||!e("reduce")},{reduce:function(A){var e=arguments.length;return t(this,A,e,e>1?arguments[1]:void 0)}})})),Do=l((()=>{var A=Ys(),t=da(),e=Fs().f,r=Ms(),n=Ya(),i=Bo(),s=Ji(),a=wo(),o=hs(),l=t("".slice),c=Math.min,u=a("endsWith");A({target:"String",proto:!0,forced:!(!o&&!u&&function(){var A=e(String.prototype,"endsWith");return A&&!A.writable}()||u)},{endsWith:function(A){var t=n(s(this));i(A);var e=n(A),a=arguments.length>1?arguments[1]:void 0,o=t.length,u=void 0===a?o:c(r(a),o);return l(t,u-e.length,u)===e}})})),Mo=l((()=>{var A=ji(),t=qi(),e=so(),r=xs(),n=As(),i=Ji(),s=ha(),a=oo(),o=Ms(),l=Ya(),c=cs(),u=co(),h=uo(),f=Za(),d=Ri(),g=f.UNSUPPORTED_Y,p=Math.min,B=t([].push),w=t("".slice),m=t("".indexOf),y=!d((function(){var A=/(?:)/,t=A.exec;A.exec=function(){return t.apply(this,arguments)};var e="ab".split(A);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),v="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;e("split",(function(t,e,f){var d="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:A(e,this,t,r)}:e;return[function(e,r){var s=i(this),a=n(e)?c(e,t):void 0;return a?A(a,e,s,r):A(d,l(s),e,r)},function(A,t){var n=r(this),i=l(A);if(!v){var c=f(d,n,i,t,d!==e);if(c.done)return c.value}var y=s(n,RegExp),b=l(u(n)),C=!!~m(b,"u")||!!~m(b,"v");g?~m(b,"g")||(b+="g"):~m(b,"y")||(b+="y");var F=new y(g?"^(?:"+n.source+")":n,b),Q=void 0===t?4294967295:t>>>0;if(0===Q)return[];if(0===i.length)return null===h(F,i)?[i]:[];for(var x=0,U=0,E=[];U<i.length;){F.lastIndex=g?0:U;var L,_=h(F,g?w(i,U):i);if(null===_||(L=p(o(F.lastIndex+(g?U:0)),i.length))===x)U=a(i,U,C);else{if(B(E,w(i,x,U)),E.length===Q)return E;for(var S=1;S<=_.length-1;S++)if(B(E,_[S]),E.length===Q)return E;U=x=L}}return B(E,w(i,x)),E}]}),v||!y,g)})),Ro=l(((A,t)=>{(function(){var A,e,r,n,i,s;typeof performance<"u"&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(t.exports=function(){return(A()-i)/1e6},e=process.hrtime,n=(A=function(){var A=e();return 1e9*A[0]+A[1]})(),s=1e9*process.uptime(),i=n-s):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(A)})),Ko=l(((A,t)=>{for(var e=Ro(),r=typeof window>"u"?global:window,n=["moz","webkit"],i="AnimationFrame",s=r["request"+i],a=r["cancel"+i]||r["cancelRequest"+i],o=0;!s&&o<n.length;o++)s=r[n[o]+"Request"+i],a=r[n[o]+"Cancel"+i]||r[n[o]+"CancelRequest"+i];if(!s||!a){var l=0,c=0,u=[],h=1e3/60;s=function(A){if(0===u.length){var t=e(),r=Math.max(0,h-(t-l));l=r+t,setTimeout((function(){var A=u.slice(0);u.length=0;for(var t=0;t<A.length;t++)if(!A[t].cancelled)try{A[t].callback(l)}catch(A){setTimeout((function(){throw A}),0)}}),Math.round(r))}return u.push({handle:++c,callback:A,cancelled:!1}),c},a=function(A){for(var t=0;t<u.length;t++)u[t].handle===A&&(u[t].cancelled=!0)}}t.exports=function(A){return s.call(r,A)},t.exports.cancel=function(){a.apply(r,arguments)},t.exports.polyfill=function(A){A||=r,A.requestAnimationFrame=s,A.cancelAnimationFrame=a}})),Vo=l(((A,t)=>{t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"})),jo=l(((A,t)=>{var e=qi(),r=Ji(),n=Ya(),i=Vo(),s=e("".replace),a=RegExp("^["+i+"]+"),o=RegExp("(^|[^"+i+"])["+i+"]+$"),l=function(A){return function(t){var e=n(r(t));return 1&A&&(e=s(e,a,"")),2&A&&(e=s(e,o,"$1")),e}};t.exports={start:l(1),end:l(2),trim:l(3)}})),Go=l(((A,t)=>{var e=Ls().PROPER,r=Ri(),n=Vo(),i="​᠎";t.exports=function(A){return r((function(){return!!n[A]()||i[A]()!==i||e&&n[A].name!==A}))}})),zo=l((()=>{var A=Ys(),t=jo().trim;A({target:"String",proto:!0,forced:Go()("trim")},{trim:function(){return t(this)}})})),qo=l(((A,t)=>{t.exports=function(A){this.ok=!1,this.alpha=1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A=(A=A.replace(/ /g,"")).toLowerCase();var t={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",rebeccapurple:"663399",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"};A=t[A]||A;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3]),parseFloat(A[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(A);if(s){var a=i(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var A=this.r.toString(16),t=this.g.toString(16),e=this.b.toString(16);return 1==A.length&&(A="0"+A),1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),"#"+A+t+e},this.getHelpXML=function(){for(var A=[],r=0;r<e.length;r++)for(var n=e[r].example,i=0;i<n.length;i++)A[A.length]=n[i];for(var s in t)A[A.length]=s;var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(r=0;r<A.length;r++)try{var o=document.createElement("li"),l=new RGBColor(A[r]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+l.toHex()+"; color:"+l.toHex(),c.appendChild(document.createTextNode("test"));var u=document.createTextNode(" "+A[r]+" -> "+l.toRGB()+" -> "+l.toHex());o.appendChild(c),o.appendChild(u),a.appendChild(o)}catch{}return a}}})),Xo=l((()=>{var A=Ys(),t=da(),e=Ks().indexOf,r=Oo(),n=t([].indexOf),i=!!n&&1/n([1],1,-0)<0;A({target:"Array",proto:!0,forced:i||!r("indexOf")},{indexOf:function(A){var t=arguments.length>1?arguments[1]:void 0;return i?n(this,A,t)||0:e(this,A,t)}})})),Wo=l((()=>{var A=Ys(),t=qi(),e=Bo(),r=Ji(),n=Ya(),i=wo(),s=t("".indexOf);A({target:"String",proto:!0,forced:!i("includes")},{includes:function(A){return!!~s(n(r(this)),n(e(A)),arguments.length>1?arguments[1]:void 0)}})})),Yo=l(((A,t)=>{var e=Xi();t.exports=Array.isArray||function(A){return"Array"===e(A)}})),Jo=l((()=>{var A=Ys(),t=qi(),e=Yo(),r=t([].reverse),n=[1,2];A({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return e(this)&&(this.length=this.length),r(this)}})}));function Zo(A,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=A}al(A,t),A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function $o(A,t){var e=A[0],r=A[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Al(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];for(var e=0;e<A.length;e++)if("number"!=typeof A[e])throw Error("assertNumbers arguments["+e+"] is not a number. "+typeof A[e]+" == typeof "+A[e]);return!0}function tl(A,t,e){A.lArcFlag=0===A.lArcFlag?0:1,A.sweepFlag=0===A.sweepFlag?0:1;var r=A.rX,n=A.rY,i=A.x,s=A.y;r=Math.abs(A.rX),n=Math.abs(A.rY);var a=$o([(t-i)/2,(e-s)/2],-A.xRot/180*ol),o=a[0],l=a[1],c=o**2/r**2+l**2/n**2;1<c&&(r*=Math.sqrt(c),n*=Math.sqrt(c)),A.rX=r,A.rY=n;var u=r**2*l**2+n**2*o**2,h=(A.lArcFlag===A.sweepFlag?-1:1)*Math.sqrt(Math.max(0,(r**2*n**2-u)/u)),f=r*l/n*h,d=-n*o/r*h,g=$o([f,d],A.xRot/180*ol);A.cX=g[0]+(t+i)/2,A.cY=g[1]+(e+s)/2,A.phi1=Math.atan2((l-d)/n,(o-f)/r),A.phi2=Math.atan2((-l-d)/n,(-o-f)/r),0===A.sweepFlag&&A.phi2>A.phi1&&(A.phi2-=2*ol),1===A.sweepFlag&&A.phi2<A.phi1&&(A.phi2+=2*ol),A.phi1*=180/ol,A.phi2*=180/ol}function el(A,t,e){Al(A,t,e);var r=A*A+t*t-e*e;if(0>r)return[];if(0===r)return[[A*e/(A*A+t*t),t*e/(A*A+t*t)]];var n=Math.sqrt(r);return[[(A*e+t*n)/(A*A+t*t),(t*e-A*n)/(A*A+t*t)],[(A*e-t*n)/(A*A+t*t),(t*e+A*n)/(A*A+t*t)]]}function rl(A,t,e){return(1-e)*A+e*t}function nl(A,t,e,r){return A+Math.cos(r/180*ol)*t+Math.sin(r/180*ol)*e}function il(A,t,e,r){var n=1e-6,i=t-A,s=e-t,a=3*i+3*(r-e)-6*s,o=6*(s-i),l=3*i;return Math.abs(a)<n?[-l/o]:function(A,t,e){void 0===e&&(e=1e-6);var r=A*A/4-t;if(r<-e)return[];if(r<=e)return[-A/2];var n=Math.sqrt(r);return[-A/2-n,-A/2+n]}(o/a,l/a,n)}function sl(A,t,e,r,n){var i=1-n;return A*(i*i*i)+t*(3*i*i*n)+e*(3*i*n*n)+r*(n*n*n)}var al,ol,ll,cl,ul,hl,fl,dl,gl,pl,Bl,wl=o((()=>{al=function(A,t){return(al=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(A[e]=t[e])})(A,t)},ol=Math.PI,cl=Math.PI/180,function(A){function t(){return n((function(A,t,e){return A.relative&&=(void 0!==A.x1&&(A.x1+=t),void 0!==A.y1&&(A.y1+=e),void 0!==A.x2&&(A.x2+=t),void 0!==A.y2&&(A.y2+=e),void 0!==A.x&&(A.x+=t),void 0!==A.y&&(A.y+=e),!1),A}))}function e(){var A=NaN,t=NaN,e=NaN,r=NaN;return n((function(n,i,s){return n.type&pl.SMOOTH_CURVE_TO&&(n.type=pl.CURVE_TO,A=isNaN(A)?i:A,t=isNaN(t)?s:t,n.x1=n.relative?i-A:2*i-A,n.y1=n.relative?s-t:2*s-t),n.type&pl.CURVE_TO?(A=n.relative?i+n.x2:n.x2,t=n.relative?s+n.y2:n.y2):(A=NaN,t=NaN),n.type&pl.SMOOTH_QUAD_TO&&(n.type=pl.QUAD_TO,e=isNaN(e)?i:e,r=isNaN(r)?s:r,n.x1=n.relative?i-e:2*i-e,n.y1=n.relative?s-r:2*s-r),n.type&pl.QUAD_TO?(e=n.relative?i+n.x1:n.x1,r=n.relative?s+n.y1:n.y1):(e=NaN,r=NaN),n}))}function r(){var A=NaN,t=NaN;return n((function(e,r,n){if(e.type&pl.SMOOTH_QUAD_TO&&(e.type=pl.QUAD_TO,A=isNaN(A)?r:A,t=isNaN(t)?n:t,e.x1=e.relative?r-A:2*r-A,e.y1=e.relative?n-t:2*n-t),e.type&pl.QUAD_TO){A=e.relative?r+e.x1:e.x1,t=e.relative?n+e.y1:e.y1;var i=e.x1,s=e.y1;e.type=pl.CURVE_TO,e.x1=((e.relative?0:r)+2*i)/3,e.y1=((e.relative?0:n)+2*s)/3,e.x2=(e.x+2*i)/3,e.y2=(e.y+2*s)/3}else A=NaN,t=NaN;return e}))}function n(A){var t=0,e=0,r=NaN,n=NaN;return function(i){if(isNaN(r)&&!(i.type&pl.MOVE_TO))throw Error("path must start with moveto");var s=A(i,t,e,r,n);return i.type&pl.CLOSE_PATH&&(t=r,e=n),void 0!==i.x&&(t=i.relative?t+i.x:i.x),void 0!==i.y&&(e=i.relative?e+i.y:i.y),i.type&pl.MOVE_TO&&(r=t,n=e),s}}function i(A,t,e,r,i,s){return Al(A,t,e,r,i,s),n((function(n,a,o,l){var c=n.x1,u=n.x2,h=n.relative&&!isNaN(l),f=void 0===n.x?h?0:a:n.x,d=void 0===n.y?h?0:o:n.y;function g(A){return A*A}n.type&pl.HORIZ_LINE_TO&&0!==t&&(n.type=pl.LINE_TO,n.y=n.relative?0:o),n.type&pl.VERT_LINE_TO&&0!==e&&(n.type=pl.LINE_TO,n.x=n.relative?0:a),void 0!==n.x&&(n.x=n.x*A+d*e+(h?0:i)),void 0!==n.y&&(n.y=f*t+n.y*r+(h?0:s)),void 0!==n.x1&&(n.x1=n.x1*A+n.y1*e+(h?0:i)),void 0!==n.y1&&(n.y1=c*t+n.y1*r+(h?0:s)),void 0!==n.x2&&(n.x2=n.x2*A+n.y2*e+(h?0:i)),void 0!==n.y2&&(n.y2=u*t+n.y2*r+(h?0:s));var p=A*r-t*e;if(void 0!==n.xRot&&(1!==A||0!==t||0!==e||1!==r))if(0===p)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=pl.LINE_TO;else{var B=n.xRot*Math.PI/180,w=Math.sin(B),m=Math.cos(B),y=1/g(n.rX),v=1/g(n.rY),b=g(m)*y+g(w)*v,C=2*w*m*(y-v),F=g(w)*y+g(m)*v,Q=b*r*r-C*t*r+F*t*t,x=C*(A*r+t*e)-2*(b*e*r+F*A*t),U=b*e*e-C*A*e+F*A*A,E=(Math.atan2(x,Q-U)+Math.PI)%Math.PI/2,L=Math.sin(E),_=Math.cos(E);n.rX=Math.abs(p)/Math.sqrt(Q*g(_)+x*L*_+U*g(L)),n.rY=Math.abs(p)/Math.sqrt(Q*g(L)-x*L*_+U*g(_)),n.xRot=180*E/Math.PI}return void 0!==n.sweepFlag&&0>p&&(n.sweepFlag=+!n.sweepFlag),n}))}A.ROUND=function(A){function t(t){return Math.round(t*A)/A}return void 0===A&&(A=1e13),Al(A),function(A){return void 0!==A.x1&&(A.x1=t(A.x1)),void 0!==A.y1&&(A.y1=t(A.y1)),void 0!==A.x2&&(A.x2=t(A.x2)),void 0!==A.y2&&(A.y2=t(A.y2)),void 0!==A.x&&(A.x=t(A.x)),void 0!==A.y&&(A.y=t(A.y)),void 0!==A.rX&&(A.rX=t(A.rX)),void 0!==A.rY&&(A.rY=t(A.rY)),A}},A.TO_ABS=t,A.TO_REL=function(){return n((function(A,t,e){return A.relative||=(void 0!==A.x1&&(A.x1-=t),void 0!==A.y1&&(A.y1-=e),void 0!==A.x2&&(A.x2-=t),void 0!==A.y2&&(A.y2-=e),void 0!==A.x&&(A.x-=t),void 0!==A.y&&(A.y-=e),!0),A}))},A.NORMALIZE_HVZ=function(A,t,e){return void 0===A&&(A=!0),void 0===t&&(t=!0),void 0===e&&(e=!0),n((function(r,n,i,s,a){if(isNaN(s)&&!(r.type&pl.MOVE_TO))throw Error("path must start with moveto");return t&&r.type&pl.HORIZ_LINE_TO&&(r.type=pl.LINE_TO,r.y=r.relative?0:i),e&&r.type&pl.VERT_LINE_TO&&(r.type=pl.LINE_TO,r.x=r.relative?0:n),A&&r.type&pl.CLOSE_PATH&&(r.type=pl.LINE_TO,r.x=r.relative?s-n:s,r.y=r.relative?a-i:a),r.type&pl.ARC&&(0===r.rX||0===r.rY)&&(r.type=pl.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},A.NORMALIZE_ST=e,A.QT_TO_C=r,A.INFO=n,A.SANITIZE=function(A){void 0===A&&(A=0),Al(A);var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,s,a,o,l){var c=Math.abs,u=!1,h=0,f=0;if(n.type&pl.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:s-t,f=isNaN(e)?0:a-e),n.type&(pl.CURVE_TO|pl.SMOOTH_CURVE_TO)?(t=n.relative?s+n.x2:n.x2,e=n.relative?a+n.y2:n.y2):(t=NaN,e=NaN),n.type&pl.SMOOTH_QUAD_TO?(r=isNaN(r)?s:2*s-r,i=isNaN(i)?a:2*a-i):n.type&pl.QUAD_TO?(r=n.relative?s+n.x1:n.x1,i=n.relative?a+n.y1:n.y2):(r=NaN,i=NaN),n.type&pl.LINE_COMMANDS||n.type&pl.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&pl.CURVE_TO||n.type&pl.SMOOTH_CURVE_TO||n.type&pl.QUAD_TO||n.type&pl.SMOOTH_QUAD_TO){var d=void 0===n.x?0:n.relative?n.x:n.x-s,g=void 0===n.y?0:n.relative?n.y:n.y-a;h=isNaN(r)?void 0===n.x1?h:n.relative?n.x:n.x1-s:r-s,f=isNaN(i)?void 0===n.y1?f:n.relative?n.y:n.y1-a:i-a;var p=void 0===n.x2?0:n.relative?n.x:n.x2-s,B=void 0===n.y2?0:n.relative?n.y:n.y2-a;c(d)<=A&&c(g)<=A&&c(h)<=A&&c(f)<=A&&c(p)<=A&&c(B)<=A&&(u=!0)}return n.type&pl.CLOSE_PATH&&c(s-o)<=A&&c(a-l)<=A&&(u=!0),u?[]:n}))},A.MATRIX=i,A.ROTATE=function(A,t,e){void 0===t&&(t=0),void 0===e&&(e=0),Al(A,t,e);var r=Math.sin(A),n=Math.cos(A);return i(n,r,-r,n,t-t*n+e*r,e-t*r-e*n)},A.TRANSLATE=function(A,t){return void 0===t&&(t=0),Al(A,t),i(1,0,0,1,A,t)},A.SCALE=function(A,t){return void 0===t&&(t=A),Al(A,t),i(A,0,0,t,0,0)},A.SKEW_X=function(A){return Al(A),i(1,0,Math.atan(A),1,0,0)},A.SKEW_Y=function(A){return Al(A),i(1,Math.atan(A),0,1,0,0)},A.X_AXIS_SYMMETRY=function(A){return void 0===A&&(A=0),Al(A),i(-1,0,0,1,A,0)},A.Y_AXIS_SYMMETRY=function(A){return void 0===A&&(A=0),Al(A),i(1,0,0,-1,0,A)},A.A_TO_C=function(){return n((function(A,t,e){return pl.ARC===A.type?function(A,t,e){var r,n,i,s;A.cX||tl(A,t,e);for(var a=Math.min(A.phi1,A.phi2),o=Math.max(A.phi1,A.phi2)-a,l=Math.ceil(o/90),c=Array(l),u=t,h=e,f=0;f<l;f++){var d=rl(A.phi1,A.phi2,f/l),g=rl(A.phi1,A.phi2,(f+1)/l),p=g-d,B=4/3*Math.tan(p*cl/4),w=[Math.cos(d*cl)-B*Math.sin(d*cl),Math.sin(d*cl)+B*Math.cos(d*cl)],m=w[0],y=w[1],v=[Math.cos(g*cl),Math.sin(g*cl)],b=v[0],C=v[1],F=[b+B*Math.sin(g*cl),C-B*Math.cos(g*cl)],Q=F[0],x=F[1];c[f]={relative:A.relative,type:pl.CURVE_TO};var U=function(t,e){var r=$o([t*A.rX,e*A.rY],A.xRot),n=r[0],i=r[1];return[A.cX+n,A.cY+i]};r=U(m,y),c[f].x1=r[0],c[f].y1=r[1],n=U(Q,x),c[f].x2=n[0],c[f].y2=n[1],i=U(b,C),c[f].x=i[0],c[f].y=i[1],A.relative&&(c[f].x1-=u,c[f].y1-=h,c[f].x2-=u,c[f].y2-=h,c[f].x-=u,c[f].y-=h),u=(s=[c[f].x,c[f].y])[0],h=s[1]}return c}(A,A.relative?0:t,A.relative?0:e):A}))},A.ANNOTATE_ARCS=function(){return n((function(A,t,e){return A.relative&&(t=0,e=0),pl.ARC===A.type&&tl(A,t,e),A}))},A.CLONE=function(){return function(A){var t={};for(var e in A)t[e]=A[e];return t}},A.CALCULATE_BOUNDS=function(){var A=t(),i=r(),s=e(),a=n((function(t,e,r){var n=s(i(A(function(A){var t={};for(var e in A)t[e]=A[e];return t}(t))));function o(A){A>a.maxX&&(a.maxX=A),A<a.minX&&(a.minX=A)}function l(A){A>a.maxY&&(a.maxY=A),A<a.minY&&(a.minY=A)}if(n.type&pl.DRAWING_COMMANDS&&(o(e),l(r)),n.type&pl.HORIZ_LINE_TO&&o(n.x),n.type&pl.VERT_LINE_TO&&l(n.y),n.type&pl.LINE_TO&&(o(n.x),l(n.y)),n.type&pl.CURVE_TO){o(n.x),l(n.y);for(var c=0,u=il(e,n.x1,n.x2,n.x);c<u.length;c++)0<(U=u[c])&&1>U&&o(sl(e,n.x1,n.x2,n.x,U));for(var h=0,f=il(r,n.y1,n.y2,n.y);h<f.length;h++)0<(U=f[h])&&1>U&&l(sl(r,n.y1,n.y2,n.y,U))}if(n.type&pl.ARC){o(n.x),l(n.y),tl(n,e,r);for(var d=n.xRot/180*Math.PI,g=Math.cos(d)*n.rX,p=Math.sin(d)*n.rX,B=-Math.sin(d)*n.rY,w=Math.cos(d)*n.rY,m=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],y=m[0],v=m[1],b=function(A){var t=A[0],e=A[1],r=180*Math.atan2(e,t)/Math.PI;return r<y?r+360:r},C=0,F=el(B,-g,0).map(b);C<F.length;C++)(U=F[C])>y&&U<v&&o(nl(n.cX,g,B,U));for(var Q=0,x=el(w,-p,0).map(b);Q<x.length;Q++){var U;(U=x[Q])>y&&U<v&&l(nl(n.cY,p,w,U))}}return t}));return a.minX=1/0,a.maxX=-1/0,a.minY=1/0,a.maxY=-1/0,a}}(ll||={}),hl=function(){function A(){}return A.prototype.round=function(A){return this.transform(ll.ROUND(A))},A.prototype.toAbs=function(){return this.transform(ll.TO_ABS())},A.prototype.toRel=function(){return this.transform(ll.TO_REL())},A.prototype.normalizeHVZ=function(A,t,e){return this.transform(ll.NORMALIZE_HVZ(A,t,e))},A.prototype.normalizeST=function(){return this.transform(ll.NORMALIZE_ST())},A.prototype.qtToC=function(){return this.transform(ll.QT_TO_C())},A.prototype.aToC=function(){return this.transform(ll.A_TO_C())},A.prototype.sanitize=function(A){return this.transform(ll.SANITIZE(A))},A.prototype.translate=function(A,t){return this.transform(ll.TRANSLATE(A,t))},A.prototype.scale=function(A,t){return this.transform(ll.SCALE(A,t))},A.prototype.rotate=function(A,t,e){return this.transform(ll.ROTATE(A,t,e))},A.prototype.matrix=function(A,t,e,r,n,i){return this.transform(ll.MATRIX(A,t,e,r,n,i))},A.prototype.skewX=function(A){return this.transform(ll.SKEW_X(A))},A.prototype.skewY=function(A){return this.transform(ll.SKEW_Y(A))},A.prototype.xSymmetry=function(A){return this.transform(ll.X_AXIS_SYMMETRY(A))},A.prototype.ySymmetry=function(A){return this.transform(ll.Y_AXIS_SYMMETRY(A))},A.prototype.annotateArcs=function(){return this.transform(ll.ANNOTATE_ARCS())},A}(),fl=function(A){return" "===A||"\t"===A||"\r"===A||"\n"===A},dl=function(A){return 48<=A.charCodeAt(0)&&A.charCodeAt(0)<=57},gl=function(A){function t(){var t=A.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return Zo(t,A),t.prototype.finish=function(A){if(void 0===A&&(A=[]),this.parse(" ",A),0!==this.curArgs.length||!this.canParseCommandOrComma)throw SyntaxError("Unterminated command at the path end.");return A},t.prototype.parse=function(A,t){var e=this;void 0===t&&(t=[]);for(var r=function(A){t.push(A),e.curArgs.length=0,e.canParseCommandOrComma=!0},n=0;n<A.length;n++){var i=A[n],s=!(this.curCommandType!==pl.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),a=dl(i)&&("0"===this.curNumber&&"0"===i||s);if(!dl(i)||a)if("e"!==i&&"E"!==i)if("-"!==i&&"+"!==i||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==i||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var o=Number(this.curNumber);if(isNaN(o))throw SyntaxError("Invalid number ending at "+n);if(this.curCommandType===pl.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>o)throw SyntaxError('Expected positive number, got "'+o+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(o),this.curArgs.length===Bl[this.curCommandType]&&(pl.HORIZ_LINE_TO===this.curCommandType?r({type:pl.HORIZ_LINE_TO,relative:this.curCommandRelative,x:o}):pl.VERT_LINE_TO===this.curCommandType?r({type:pl.VERT_LINE_TO,relative:this.curCommandRelative,y:o}):this.curCommandType===pl.MOVE_TO||this.curCommandType===pl.LINE_TO||this.curCommandType===pl.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),pl.MOVE_TO===this.curCommandType&&(this.curCommandType=pl.LINE_TO)):this.curCommandType===pl.CURVE_TO?r({type:pl.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===pl.SMOOTH_CURVE_TO?r({type:pl.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===pl.QUAD_TO?r({type:pl.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===pl.ARC&&r({type:pl.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!fl(i))if(","===i&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==i&&"-"!==i&&"."!==i)if(a)this.curNumber=i,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw SyntaxError('Unexpected character "'+i+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==i&&"Z"!==i)if("h"===i||"H"===i)this.curCommandType=pl.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=pl.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=pl.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=pl.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=pl.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=pl.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=pl.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=pl.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else{if("a"!==i&&"A"!==i)throw SyntaxError('Unexpected character "'+i+'" at index '+n+".");this.curCommandType=pl.ARC,this.curCommandRelative="a"===i}else t.push({type:pl.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=i,this.curNumberHasDecimal="."===i}else this.curNumber+=i,this.curNumberHasDecimal=!0;else this.curNumber+=i;else this.curNumber+=i,this.curNumberHasExp=!0;else this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(A){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var r=0,n=Object.getPrototypeOf(this).parse.call(this,t);r<n.length;r++){var i=n[r],s=A(i);Array.isArray(s)?e.push.apply(e,s):e.push(s)}return e}}})},t}(hl),pl=function(A){function t(e){var r=A.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return Zo(t,A),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var A=ll.CALCULATE_BOUNDS();return this.transform(A),A},t.prototype.transform=function(A){for(var t=[],e=0,r=this.commands;e<r.length;e++){var n=A(r[e]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return this.commands=t,this},t.encode=function(A){return function(A){var t="";Array.isArray(A)||(A=[A]);for(var e=0;e<A.length;e++){var r=A[e];if(r.type===pl.CLOSE_PATH)t+="z";else if(r.type===pl.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===pl.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===pl.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===pl.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===pl.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===pl.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===pl.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===pl.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==pl.ARC)throw Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}(A)},t.parse=function(A){var t=new gl,e=[];return t.parse(A,e),t.finish(e),e},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(hl),(ul={})[pl.MOVE_TO]=2,ul[pl.LINE_TO]=2,ul[pl.HORIZ_LINE_TO]=1,ul[pl.VERT_LINE_TO]=1,ul[pl.CLOSE_PATH]=0,ul[pl.QUAD_TO]=4,ul[pl.SMOOTH_QUAD_TO]=2,ul[pl.CURVE_TO]=6,ul[pl.SMOOTH_CURVE_TO]=4,ul[pl.ARC]=7,Bl=ul})),ml=l((()=>{var A=Ls().PROPER,t=ks(),e=xs(),r=Ya(),n=Ri(),i=co(),s="toString",a=RegExp.prototype,o=a[s],l=n((function(){return"/a/b"!==o.call({source:"a",flags:"b"})})),c=A&&o.name!==s;(l||c)&&t(a,s,(function(){var A=e(this);return"/"+r(A.source)+"/"+r(i(A))}),{unsafe:!0})}));function yl(A){return yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},yl(A)}function vl(A,t,e,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var s=function(A,t,e,r,n){if("string"==typeof A&&(A=document.getElementById(A)),!A||"object"!==yl(A)||!("getContext"in A))throw TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=A.getContext("2d");try{return i.getImageData(t,e,r,n)}catch(A){throw Error("unable to access image data: "+A)}}(A,t,e,r,n);s=function(A,t,e,r,n,i){for(var s,a=A.data,o=2*i+1,l=r-1,c=n-1,u=i+1,h=u*(u+1)/2,f=new Fl,d=f,g=1;g<o;g++)d=d.next=new Fl,g===u&&(s=d);d.next=f;for(var p=null,B=null,w=0,m=0,y=bl[i],v=Cl[i],b=0;b<n;b++){d=f;for(var C=a[m],F=a[m+1],Q=a[m+2],x=a[m+3],U=0;U<u;U++)d.r=C,d.g=F,d.b=Q,d.a=x,d=d.next;for(var E=0,L=0,_=0,S=0,I=u*C,N=u*F,H=u*Q,P=u*x,k=h*C,O=h*F,T=h*Q,D=h*x,M=1;M<u;M++){var R=m+((l<M?l:M)<<2),K=a[R],V=a[R+1],j=a[R+2],G=a[R+3],z=u-M;k+=(d.r=K)*z,O+=(d.g=V)*z,T+=(d.b=j)*z,D+=(d.a=G)*z,E+=K,L+=V,_+=j,S+=G,d=d.next}p=f,B=s;for(var q=0;q<r;q++){var X=D*y>>>v;if(a[m+3]=X,0!==X){var W=255/X;a[m]=(k*y>>>v)*W,a[m+1]=(O*y>>>v)*W,a[m+2]=(T*y>>>v)*W}else a[m]=a[m+1]=a[m+2]=0;k-=I,O-=N,T-=H,D-=P,I-=p.r,N-=p.g,H-=p.b,P-=p.a;var Y=q+i+1;Y=w+(Y<l?Y:l)<<2,k+=E+=p.r=a[Y],O+=L+=p.g=a[Y+1],T+=_+=p.b=a[Y+2],D+=S+=p.a=a[Y+3],p=p.next;var J=B,Z=J.r,$=J.g,AA=J.b,tA=J.a;I+=Z,N+=$,H+=AA,P+=tA,E-=Z,L-=$,_-=AA,S-=tA,B=B.next,m+=4}w+=r}for(var eA=0;eA<r;eA++){var rA=a[m=eA<<2],nA=a[m+1],iA=a[m+2],sA=a[m+3],aA=u*rA,oA=u*nA,lA=u*iA,cA=u*sA,uA=h*rA,hA=h*nA,fA=h*iA,dA=h*sA;d=f;for(var gA=0;gA<u;gA++)d.r=rA,d.g=nA,d.b=iA,d.a=sA,d=d.next;for(var pA=r,BA=0,wA=0,mA=0,yA=0,vA=1;vA<=i;vA++){m=pA+eA<<2;var bA=u-vA;uA+=(d.r=rA=a[m])*bA,hA+=(d.g=nA=a[m+1])*bA,fA+=(d.b=iA=a[m+2])*bA,dA+=(d.a=sA=a[m+3])*bA,yA+=rA,BA+=nA,wA+=iA,mA+=sA,d=d.next,vA<c&&(pA+=r)}m=eA,p=f,B=s;for(var CA=0;CA<n;CA++){var FA=m<<2;a[FA+3]=sA=dA*y>>>v,sA>0?(sA=255/sA,a[FA]=(uA*y>>>v)*sA,a[FA+1]=(hA*y>>>v)*sA,a[FA+2]=(fA*y>>>v)*sA):a[FA]=a[FA+1]=a[FA+2]=0,uA-=aA,hA-=oA,fA-=lA,dA-=cA,aA-=p.r,oA-=p.g,lA-=p.b,cA-=p.a,FA=eA+((FA=CA+u)<c?FA:c)*r<<2,uA+=yA+=p.r=a[FA],hA+=BA+=p.g=a[FA+1],fA+=wA+=p.b=a[FA+2],dA+=mA+=p.a=a[FA+3],p=p.next,aA+=rA=B.r,oA+=nA=B.g,lA+=iA=B.b,cA+=sA=B.a,yA-=rA,BA-=nA,wA-=iA,mA-=sA,B=B.next,m+=r}}return A}(s,0,0,r,n,i),A.getContext("2d").putImageData(s,t,e)}}var bl,Cl,Fl,Ql=o((()=>{bl=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Cl=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24],Fl=function A(){(function(A,t){if(!(A instanceof t))throw TypeError("Cannot call a class as a function")})(this,A),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}})),xl=c({AElement:()=>mu,AnimateColorElement:()=>fu,AnimateElement:()=>hu,AnimateTransformElement:()=>du,BoundingBox:()=>Vc,CB1:()=>Rl,CB2:()=>Kl,CB3:()=>Vl,CB4:()=>jl,Canvg:()=>Mu,CircleElement:()=>$c,ClipPathElement:()=>_u,DefsElement:()=>su,DescElement:()=>Ou,Document:()=>Du,Element:()=>Mc,EllipseElement:()=>Au,FeColorMatrixElement:()=>Uu,FeCompositeElement:()=>Hu,FeDropShadowElement:()=>Iu,FeGaussianBlurElement:()=>Pu,FeMorphologyElement:()=>Nu,FilterElement:()=>Su,Font:()=>Kc,FontElement:()=>gu,FontFaceElement:()=>pu,GElement:()=>au,GlyphElement:()=>qc,GradientElement:()=>ou,ImageElement:()=>bu,LineElement:()=>tu,LinearGradientElement:()=>lu,MarkerElement:()=>iu,MaskElement:()=>Eu,Matrix:()=>Pc,MissingGlyphElement:()=>Bu,Mouse:()=>Qc,PSEUDO_ZERO:()=>vc,Parser:()=>Sc,PathElement:()=>zc,PathParser:()=>jc,PatternElement:()=>nu,Point:()=>Fc,PolygonElement:()=>ru,PolylineElement:()=>eu,Property:()=>bc,QB1:()=>Gl,QB2:()=>zl,QB3:()=>ql,RadialGradientElement:()=>cu,RectElement:()=>Zc,RenderedElement:()=>Gc,Rotate:()=>Nc,SVGElement:()=>Jc,SVGFontLoader:()=>Fu,Scale:()=>Hc,Screen:()=>Ec,Skew:()=>kc,SkewX:()=>Oc,SkewY:()=>Tc,StopElement:()=>uu,StyleElement:()=>Qu,SymbolElement:()=>Cu,TRefElement:()=>wu,TSpanElement:()=>Wc,TextElement:()=>Xc,TextPathElement:()=>yu,TitleElement:()=>ku,Transform:()=>Dc,Translate:()=>Ic,UnknownElement:()=>Rc,UseElement:()=>xu,ViewPort:()=>Cc,compressSpaces:()=>Ll,default:()=>Mu,getSelectorSpecificity:()=>Ol,normalizeAttributeName:()=>Nl,normalizeColor:()=>Pl,parseExternalUrl:()=>Hl,presets:()=>hc,toNumbers:()=>Il,trimLeft:()=>_l,trimRight:()=>Sl,vectorMagnitude:()=>Tl,vectorsAngle:()=>Ml,vectorsRatio:()=>Dl});function Ul(){var{DOMParser:A}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:A,createCanvas:(A,t)=>new OffscreenCanvas(A,t),createImage:A=>Xa((function*(){var t=yield(yield fetch(A)).blob();return yield createImageBitmap(t)}))()};return(typeof DOMParser<"u"||void 0===A)&&Reflect.deleteProperty(t,"DOMParser"),t}function El(A){var{DOMParser:t,canvas:e,fetch:r}=A;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}function Ll(A){return A.replace(/(?!\u3000)\s+/gm," ")}function _l(A){return A.replace(/^[\n \t]+/,"")}function Sl(A){return A.replace(/[\n \t]+$/,"")}function Il(A){return((A||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}function Nl(A){return fc.test(A)?A.toLowerCase():A}function Hl(A){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(A)||[];return t[2]||t[3]||t[4]}function Pl(A){if(!A.startsWith("rgb"))return A;var t=3;return A.replace(/\d+(\.\d+)?/g,((A,e)=>t--&&e?String(Math.round(parseFloat(A))):A))}function kl(A,t){var e=t.exec(A);return e?[A.replace(t," "),e.length]:[A,0]}function Ol(A){var t=[0,0,0],e=A.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=kl(e,dc),t[1]+=r,[e,r]=kl(e,gc),t[0]+=r,[e,r]=kl(e,pc),t[1]+=r,[e,r]=kl(e,Bc),t[2]+=r,[e,r]=kl(e,wc),t[1]+=r,[e,r]=kl(e,mc),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=kl(e,yc),t[2]+=r,t.join("")}function Tl(A){return Math.sqrt(A[0]**2+A[1]**2)}function Dl(A,t){return(A[0]*t[0]+A[1]*t[1])/(Tl(A)*Tl(t))}function Ml(A,t){return(A[0]*t[1]<A[1]*t[0]?-1:1)*Math.acos(Dl(A,t))}function Rl(A){return A*A*A}function Kl(A){return 3*A*A*(1-A)}function Vl(A){return 3*A*(1-A)*(1-A)}function jl(A){return(1-A)*(1-A)*(1-A)}function Gl(A){return A*A}function zl(A){return 2*A*(1-A)}function ql(A){return(1-A)*(1-A)}function Xl(A){var t=A.trim();return/^('|")/.test(t)?t:`"${t}"`}function Wl(A){return typeof process>"u"?A:A.trim().split(",").map(Xl).join(",")}function Yl(A){if(!A)return"";var t=A.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Jl(A){if(!A)return"";var t=A.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}function Zl(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,r)}return e}function $l(A){for(var t=1;t<arguments.length;t++){var e=null==arguments[t]?{}:arguments[t];t%2?Zl(Object(e),!0).forEach((function(t){Ho(A,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):Zl(Object(e)).forEach((function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))}))}return A}function Ac(A,t,e,r,n,i){return A[e*r*4+4*t+i]}function tc(A,t,e,r,n,i,s){A[e*r*4+4*t+i]=s}function ec(A,t,e){return A[t]*e}function rc(A,t,e,r){return t+Math.cos(A)*e+Math.sin(A)*r}function nc(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,r)}return e}function ic(A,t){var e=document.createElement("canvas");return e.width=A,e.height=t,e}function sc(A){return ac.apply(this,arguments)}function ac(){return ac=Xa((function*(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise(((t,r)=>{e.onload=()=>{t(e)},e.onerror=(A,t,e,n,i)=>{r(i)},e.src=A}))})),ac.apply(this,arguments)}function oc(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,r)}return e}function lc(A){for(var t=1;t<arguments.length;t++){var e=null==arguments[t]?{}:arguments[t];t%2?oc(Object(e),!0).forEach((function(t){Ho(A,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):oc(Object(e)).forEach((function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))}))}return A}var cc,uc,hc,fc,dc,gc,pc,Bc,wc,mc,yc,vc,bc,Cc,Fc,Qc,xc,Uc,Ec,Lc,_c,Sc,Ic,Nc,Hc,Pc,kc,Oc,Tc,Dc,Mc,Rc,Kc,Vc,jc,Gc,zc,qc,Xc,Wc,Yc,Jc,Zc,$c,Au,tu,eu,ru,nu,iu,su,au,ou,lu,cu,uu,hu,fu,du,gu,pu,Bu,wu,mu,yu,vu,bu,Cu,Fu,Qu,xu,Uu,Eu,Lu,_u,Su,Iu,Nu,Hu,Pu,ku,Ou,Tu,Du,Mu,Ru=o((()=>{za(),Wa(),ho(),go(),mo(),Uo(),_o(),Po(),To(),Do(),Mo(),cc=h(Ko(),1),zo(),uc=h(qo(),1),Xo(),Wo(),Jo(),wl(),ml(),Ql(),hc=Object.freeze({__proto__:null,offscreen:Ul,node:El}),fc=/^[A-Z-]+$/,dc=/(\[[^\]]+\])/g,gc=/(#[^\s+>~.[:]+)/g,pc=/(\.[^\s+>~.[:]+)/g,Bc=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,wc=/(:[\w-]+\([^)]*\))/gi,mc=/(:[^\s+>~.[:]+)/g,yc=/([^\s+>~.[:]+)/g,vc=1e-8,bc=class A{constructor(A,t,e){this.document=A,this.name=t,this.value=e,this.isNormalizedColor=!1}static empty(t){return new A(t,"EMPTY","")}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return Ll(this.getString()).trim().split(t).map((t=>new A(e,r,t)))}hasValue(A){var{value:t}=this;return null!==t&&""!==t&&(A||0!==t)&&void 0!==t}isString(A){var{value:t}=this,e="string"==typeof t;return e&&A?A.test(t):e}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var A=this.getString();switch(!0){case A.endsWith("px"):case/^[0-9]+$/.test(A):return!0;default:return!1}}setValue(A){return this.value=A,this}getValue(A){return void 0===A||this.hasValue()?this.value:A}getNumber(A){if(!this.hasValue())return void 0===A?0:parseFloat(A);var{value:t}=this,e=parseFloat(t);return this.isString(/%$/)&&(e/=100),e}getString(A){return void 0===A||this.hasValue()?void 0===this.value?"":String(this.value):String(A)}getColor(A){var t=this.getString(A);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Pl(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[e,r]="boolean"==typeof A?[void 0,A]:[A],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(e);default:var i=this.getNumber();return t&&i<1?i*n.computeSize(e):i}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var A=this.getString(),t=/#([^)'"]+)/.exec(A);return t&&=t[1],t||=A,this.document.definitions[t]}getFillStyleDefinition(A,t){var e=this.getDefinition();if(!e)return null;if("function"==typeof e.createGradient)return e.createGradient(this.document.ctx,A,t);if("function"==typeof e.createPattern){if(e.getHrefAttribute().hasValue()){var r=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),r.hasValue()&&e.getAttribute("patternTransform",!0).setValue(r.value)}return e.createPattern(this.document.ctx,A,t)}return null}getTextBaseline(){return this.hasValue()?A.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,n=0,i=0;i<r&&(","===e[i]&&n++,3!==n);i++);if(t.hasValue()&&this.isString()&&3!==n){var s=new uc.default(e);s.ok&&(s.alpha=t.getNumber(),e=s.toRGBA())}return new A(this.document,this.name,e)}},bc.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"},Cc=class{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(A,t){this.viewPorts.push({width:A,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:A}=this;return A[A.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(A){return"number"==typeof A?A:"x"===A?this.width:"y"===A?this.height:Math.sqrt(this.width**2+this.height**2)/Math.sqrt(2)}},Fc=class A{constructor(A,t){this.x=A,this.y=t}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,n=e]=Il(t);return new A(r,n)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,n=r]=Il(t);return new A(r,n)}static parsePath(t){for(var e=Il(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new A(e[i],e[i+1]));return n}angleTo(A){return Math.atan2(A.y-this.y,A.x-this.x)}applyTransform(A){var{x:t,y:e}=this,r=t*A[0]+e*A[2]+A[4],n=t*A[1]+e*A[3]+A[5];this.x=r,this.y=n}},Qc=class{constructor(A){this.screen=A,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:A,onClick:t,onMouseMove:e}=this,r=A.ctx.canvas;r.onclick=t,r.onmousemove=e,this.working=!0}}stop(){if(this.working){var A=this.screen.ctx.canvas;this.working=!1,A.onclick=null,A.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:A,events:t,eventElements:e}=this,{style:r}=A.ctx.canvas;r&&(r.cursor=""),t.forEach(((A,t)=>{for(var{run:r}=A,n=e[t];n;)r(n),n=n.parent})),this.events=[],this.eventElements=[]}}checkPath(A,t){if(this.working&&t){var{events:e,eventElements:r}=this;e.forEach(((e,n)=>{var{x:i,y:s}=e;!r[n]&&t.isPointInPath&&t.isPointInPath(i,s)&&(r[n]=A)}))}}checkBoundingBox(A,t){if(this.working&&t){var{events:e,eventElements:r}=this;e.forEach(((e,n)=>{var{x:i,y:s}=e;!r[n]&&t.isPointInBox(i,s)&&(r[n]=A)}))}}mapXY(A,t){for(var{window:e,ctx:r}=this.screen,n=new Fc(A,t),i=r.canvas;i;)n.x-=i.offsetLeft,n.y-=i.offsetTop,i=i.offsetParent;return e.scrollX&&(n.x+=e.scrollX),e.scrollY&&(n.y+=e.scrollY),n}onClick(A){var{x:t,y:e}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onclick",x:t,y:e,run(A){A.onClick&&A.onClick()}})}onMouseMove(A){var{x:t,y:e}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onmousemove",x:t,y:e,run(A){A.onMouseMove&&A.onMouseMove()}})}},xc=typeof window<"u"?window:null,Uc=typeof fetch<"u"?fetch.bind(void 0):null,Ec=class{constructor(A){var{fetch:t=Uc,window:e=xc}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=A,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Cc,this.mouse=new Qc(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=t}wait(A){this.waits.push(A)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var A=this.waits.every((A=>A()));return A&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=A,A}setDefaults(A){A.strokeStyle="rgba(0,0,0,0)",A.lineCap="butt",A.lineJoin="miter",A.miterLimit=4}setViewBox(A){var{document:t,ctx:e,aspectRatio:r,width:n,desiredWidth:i,height:s,desiredHeight:a,minX:o=0,minY:l=0,refX:c,refY:u,clip:h=!1,clipX:f=0,clipY:d=0}=A,[g,p]=Ll(r).replace(/^defer\s/,"").split(" "),B=g||"xMidYMid",w=p||"meet",m=n/i,y=s/a,v=Math.min(m,y),b=Math.max(m,y),C=i,F=a;"meet"===w&&(C*=v,F*=v),"slice"===w&&(C*=b,F*=b);var Q=new bc(t,"refX",c),x=new bc(t,"refY",u),U=Q.hasValue()&&x.hasValue();if(U&&e.translate(-v*Q.getPixels("x"),-v*x.getPixels("y")),h){var E=v*f,L=v*d;e.beginPath(),e.moveTo(E,L),e.lineTo(n,L),e.lineTo(n,s),e.lineTo(E,s),e.closePath(),e.clip()}if(!U){var _="meet"===w&&v===y,S="slice"===w&&b===y,I="meet"===w&&v===m,N="slice"===w&&b===m;B.startsWith("xMid")&&(_||S)&&e.translate(n/2-C/2,0),B.endsWith("YMid")&&(I||N)&&e.translate(0,s/2-F/2),B.startsWith("xMax")&&(_||S)&&e.translate(n-C,0),B.endsWith("YMax")&&(I||N)&&e.translate(0,s-F)}switch(!0){case"none"===B:e.scale(m,y);break;case"meet"===w:e.scale(v,v);break;case"slice"===w:e.scale(b,b)}e.translate(-o,-l)}start(A){var{enableRedraw:t=!1,ignoreMouse:e=!1,ignoreAnimation:r=!1,ignoreDimensions:n=!1,ignoreClear:i=!1,forceRedraw:s,scaleWidth:a,scaleHeight:o,offsetX:l,offsetY:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:u,mouse:h}=this,f=1e3/u;if(this.frameDuration=f,this.readyPromise=new Promise((A=>{this.resolveReady=A})),this.isReady()&&this.render(A,n,i,a,o,l,c),t){var d=Date.now(),g=d,p=0,B=()=>{d=Date.now(),(p=d-g)>=f&&(g=d-p%f,this.shouldUpdate(r,s)&&(this.render(A,n,i,a,o,l,c),h.runEvents())),this.intervalId=(0,cc.default)(B)};e||h.start(),this.intervalId=(0,cc.default)(B)}}stop(){this.intervalId&&=(cc.default.cancel(this.intervalId),null),this.mouse.stop()}shouldUpdate(A,t){if(!A){var{frameDuration:e}=this;if(this.animations.reduce(((A,t)=>t.update(e)||A),!1))return!0}return!!("function"==typeof t&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(A,t,e,r,n,i,s){var{CLIENT_WIDTH:a,CLIENT_HEIGHT:o,viewPort:l,ctx:c,isFirstRender:u}=this,h=c.canvas;l.clear(),h.width&&h.height?l.setCurrent(h.width,h.height):l.setCurrent(a,o);var f=A.getStyle("width"),d=A.getStyle("height");!t&&(u||"number"!=typeof r&&"number"!=typeof n)&&(f.hasValue()&&(h.width=f.getPixels("x"),h.style&&(h.style.width=`${h.width}px`)),d.hasValue()&&(h.height=d.getPixels("y"),h.style&&(h.style.height=`${h.height}px`)));var g=h.clientWidth||h.width,p=h.clientHeight||h.height;if(t&&f.hasValue()&&d.hasValue()&&(g=f.getPixels("x"),p=d.getPixels("y")),l.setCurrent(g,p),"number"==typeof i&&A.getAttribute("x",!0).setValue(i),"number"==typeof s&&A.getAttribute("y",!0).setValue(s),"number"==typeof r||"number"==typeof n){var B=Il(A.getAttribute("viewBox").getString()),w=0,m=0;if("number"==typeof r){var y=A.getStyle("width");y.hasValue()?w=y.getPixels("x")/r:isNaN(B[2])||(w=B[2]/r)}if("number"==typeof n){var v=A.getStyle("height");v.hasValue()?m=v.getPixels("y")/n:isNaN(B[3])||(m=B[3]/n)}w||=m,m||=w,A.getAttribute("width",!0).setValue(r),A.getAttribute("height",!0).setValue(n);var b=A.getStyle("transform",!0,!0);b.setValue(`${b.getString()} scale(${1/w}, ${1/m})`)}e||c.clearRect(0,0,g,p),A.render(c),u&&(this.isFirstRender=!1)}},Ec.defaultWindow=xc,Ec.defaultFetch=Uc,({defaultFetch:Lc}=Ec),_c=typeof DOMParser<"u"?DOMParser:null,Sc=class{constructor(){var{fetch:A=Lc,DOMParser:t=_c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=A,this.DOMParser=t}parse(A){var t=this;return Xa((function*(){return A.startsWith("<")?t.parseFromString(A):t.load(A)}))()}parseFromString(A){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(A,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(A,"text/xml"))}}checkDocument(A){var t=A.getElementsByTagName("parsererror")[0];if(t)throw Error(t.textContent);return A}load(A){var t=this;return Xa((function*(){var e=yield(yield t.fetch(A)).text();return t.parseFromString(e)}))()}},Ic=class{constructor(A,t){this.type="translate",this.point=null,this.point=Fc.parse(t)}apply(A){var{x:t,y:e}=this.point;A.translate(t||0,e||0)}unapply(A){var{x:t,y:e}=this.point;A.translate(-1*t||0,-1*e||0)}applyToPoint(A){var{x:t,y:e}=this.point;A.applyTransform([1,0,0,1,t||0,e||0])}},Nc=class{constructor(A,t,e){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=Il(t);this.angle=new bc(A,"angle",r[0]),this.originX=e[0],this.originY=e[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(A){var{cx:t,cy:e,originX:r,originY:n,angle:i}=this,s=t+r.getPixels("x"),a=e+n.getPixels("y");A.translate(s,a),A.rotate(i.getRadians()),A.translate(-s,-a)}unapply(A){var{cx:t,cy:e,originX:r,originY:n,angle:i}=this,s=t+r.getPixels("x"),a=e+n.getPixels("y");A.translate(s,a),A.rotate(-1*i.getRadians()),A.translate(-s,-a)}applyToPoint(A){var{cx:t,cy:e,angle:r}=this,n=r.getRadians();A.applyTransform([1,0,0,1,t||0,e||0]),A.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),A.applyTransform([1,0,0,1,-t||0,-e||0])}},Hc=class{constructor(A,t,e){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=Fc.parseScale(t);(0===r.x||0===r.y)&&(r.x=vc,r.y=vc),this.scale=r,this.originX=e[0],this.originY=e[1]}apply(A){var{scale:{x:t,y:e},originX:r,originY:n}=this,i=r.getPixels("x"),s=n.getPixels("y");A.translate(i,s),A.scale(t,e||t),A.translate(-i,-s)}unapply(A){var{scale:{x:t,y:e},originX:r,originY:n}=this,i=r.getPixels("x"),s=n.getPixels("y");A.translate(i,s),A.scale(1/t,1/e||t),A.translate(-i,-s)}applyToPoint(A){var{x:t,y:e}=this.scale;A.applyTransform([t||0,0,0,e||0,0,0])}},Pc=class{constructor(A,t,e){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Il(t),this.originX=e[0],this.originY=e[1]}apply(A){var{originX:t,originY:e,matrix:r}=this,n=t.getPixels("x"),i=e.getPixels("y");A.translate(n,i),A.transform(r[0],r[1],r[2],r[3],r[4],r[5]),A.translate(-n,-i)}unapply(A){var{originX:t,originY:e,matrix:r}=this,n=r[0],i=r[2],s=r[4],a=r[1],o=r[3],l=r[5],c=1/(n*(1*o-0*l)-i*(1*a-0*l)+s*(0*a-0*o)),u=t.getPixels("x"),h=e.getPixels("y");A.translate(u,h),A.transform(c*(1*o-0*l),c*(0*l-1*a),c*(0*s-1*i),c*(1*n-0*s),c*(i*l-s*o),c*(s*a-n*l)),A.translate(-u,-h)}applyToPoint(A){A.applyTransform(this.matrix)}},kc=class extends Pc{constructor(A,t,e){super(A,t,e),this.type="skew",this.angle=null,this.angle=new bc(A,"angle",t)}},Oc=class extends kc{constructor(A,t,e){super(A,t,e),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},Tc=class extends kc{constructor(A,t,e){super(A,t,e),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}},Dc=class A{constructor(t,e,r){this.document=t,this.transforms=[],function(A){return Ll(A).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(e).forEach((t=>{if("none"!==t){var[e,n]=function(A){var[t,e]=A.split("(");return[t.trim(),e.trim().replace(")","")]}(t),i=A.transformTypes[e];void 0!==i&&this.transforms.push(new i(this.document,n,r))}}))}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[n,i=n]=e.getStyle("transform-origin",!1,!0).split(),s=[n,i];return r.hasValue()?new A(t,r.getString(),s):null}apply(A){for(var{transforms:t}=this,e=t.length,r=0;r<e;r++)t[r].apply(A)}unapply(A){for(var{transforms:t}=this,e=t.length-1;e>=0;e--)t[e].unapply(A)}applyToPoint(A){for(var{transforms:t}=this,e=t.length,r=0;r<e;r++)t[r].applyToPoint(A)}},Dc.transformTypes={translate:Ic,rotate:Nc,scale:Hc,matrix:Pc,skewX:Oc,skewY:Tc},Mc=class A{constructor(A,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=A,this.node=t,this.captureTextNodes=e,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){Array.from(t.attributes).forEach((t=>{var e=Nl(t.nodeName);this.attributes[e]=new bc(A,e,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map((A=>A.trim())).forEach((t=>{if(t){var[e,r]=t.split(":").map((A=>A.trim()));this.styles[e]=new bc(A,e,r)}}));var{definitions:r}=A,n=this.getAttribute("id");n.hasValue()&&(r[n.getString()]||(r[n.getString()]=this)),Array.from(t.childNodes).forEach((t=>{if(1===t.nodeType)this.addChild(t);else if(e&&(3===t.nodeType||4===t.nodeType)){var r=A.createTextNode(t);r.getText().length>0&&this.addChild(r)}}))}}getAttribute(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.attributes[A];if(!e&&t){var r=new bc(this.document,A,"");return this.attributes[A]=r,r}return e||bc.empty(this.document)}getHrefAttribute(){for(var A in this.attributes)if("href"===A||A.endsWith(":href"))return this.attributes[A];return bc.empty(this.document)}getStyle(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[A];if(r)return r;var n=this.getAttribute(A);if(null!=n&&n.hasValue())return this.styles[A]=n,n;if(!e){var{parent:i}=this;if(i){var s=i.getStyle(A);if(null!=s&&s.hasValue())return s}}if(t){var a=new bc(this.document,A,"");return this.styles[A]=a,a}return r||bc.empty(this.document)}render(A){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(A.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(A),t.apply(A,this))}else if("none"!==this.getStyle("filter").getValue("none")){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(A),e.apply(A,this))}else this.setContext(A),this.renderChildren(A),this.clearContext(A);A.restore()}}setContext(A){}applyEffects(A){var t=Dc.fromElement(this.document,this);t&&t.apply(A);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var r=e.getDefinition();r&&r.apply(A)}}clearContext(A){}renderChildren(A){this.children.forEach((t=>{t.render(A)}))}addChild(t){var e=t instanceof A?t:this.document.createElement(t);e.parent=this,A.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(A){var{node:t}=this;if("function"==typeof t.matches)return t.matches(A);var e=t.getAttribute?.call(t,"class");return!(!e||""===e)&&e.split(" ").some((t=>`.${t}`===A))}addStylesFromStyleDefinition(){var{styles:A,stylesSpecificity:t}=this.document;for(var e in A)if(!e.startsWith("@")&&this.matchesSelector(e)){var r=A[e],n=t[e];if(r)for(var i in r){var s=this.stylesSpecificity[i];void 0===s&&(s="000"),n>=s&&(this.styles[i]=r[i],this.stylesSpecificity[i]=n)}}}removeStyles(A,t){return t.reduce(((t,e)=>{var r=A.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),[...t,[e,n]]}),[])}restoreStyles(A,t){t.forEach((t=>{var[e,r]=t;A.getStyle(e,!0).setValue(r)}))}isFirstChild(){return 0===this.parent?.children.indexOf(this)}},Mc.ignoreChildTypes=["title"],Rc=class extends Mc{constructor(A,t,e){super(A,t,e)}},Kc=class A{constructor(t,e,r,n,i,s){var a=s?"string"==typeof s?A.parse(s):s:{};this.fontFamily=i||a.fontFamily,this.fontSize=n||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=e||a.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,e="",r="",n="",i="",s="",a=Ll(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach((t=>{switch(!0){case!o.fontStyle&&A.styles.includes(t):"inherit"!==t&&(e=t),o.fontStyle=!0;break;case!o.fontVariant&&A.variants.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&A.weights.includes(t):"inherit"!==t&&(n=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([i]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}})),new A(e,r,n,i,s,t)}toString(){return[Yl(this.fontStyle),this.fontVariant,Jl(this.fontWeight),this.fontSize,Wl(this.fontFamily)].join(" ").trim()}},Kc.styles="normal|italic|oblique|inherit",Kc.variants="normal|small-caps|inherit",Kc.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",Vc=class{constructor(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:NaN;this.x1=A,this.y1=t,this.x2=e,this.y2=r,this.addPoint(A,t),this.addPoint(e,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(A,t){void 0!==A&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=A,this.x2=A),A<this.x1&&(this.x1=A),A>this.x2&&(this.x2=A)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(A){this.addPoint(A,null)}addY(A){this.addPoint(null,A)}addBoundingBox(A){if(A){var{x1:t,y1:e,x2:r,y2:n}=A;this.addPoint(t,e),this.addPoint(r,n)}}sumCubic(A,t,e,r,n){return(1-A)**3*t+3*(1-A)**2*A*e+3*(1-A)*A**2*r+A**3*n}bezierCurveAdd(A,t,e,r,n){var i=6*t-12*e+6*r,s=-3*t+9*e-9*r+3*n,a=3*e-3*t;if(0!==s){var o=i**2-4*a*s;if(!(o<0)){var l=(-i+Math.sqrt(o))/(2*s);0<l&&l<1&&(A?this.addX(this.sumCubic(l,t,e,r,n)):this.addY(this.sumCubic(l,t,e,r,n)));var c=(-i-Math.sqrt(o))/(2*s);0<c&&c<1&&(A?this.addX(this.sumCubic(c,t,e,r,n)):this.addY(this.sumCubic(c,t,e,r,n)))}}else{if(0===i)return;var u=-a/i;0<u&&u<1&&(A?this.addX(this.sumCubic(u,t,e,r,n)):this.addY(this.sumCubic(u,t,e,r,n)))}}addBezierCurve(A,t,e,r,n,i,s,a){this.addPoint(A,t),this.addPoint(s,a),this.bezierCurveAdd(!0,A,e,n,s),this.bezierCurveAdd(!1,t,r,i,a)}addQuadraticCurve(A,t,e,r,n,i){var s=A+2/3*(e-A),a=t+2/3*(r-t),o=s+1/3*(n-A),l=a+1/3*(i-t);this.addBezierCurve(A,t,s,o,a,l,n,i)}isPointInBox(A,t){var{x1:e,y1:r,x2:n,y2:i}=this;return e<=A&&A<=n&&r<=t&&t<=i}},jc=class extends pl{constructor(A){super(A.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Fc(0,0),this.control=new Fc(0,0),this.current=new Fc(0,0),this.points=[],this.angles=[]}isEnd(){var{i:A,commands:t}=this;return A>=t.length-1}next(){var A=this.commands[++this.i];return this.previousCommand=this.command,this.command=A,A}getPoint(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",e=new Fc(this.command[A],this.command[t]);return this.makeAbsolute(e)}getAsControlPoint(A,t){var e=this.getPoint(A,t);return this.control=e,e}getAsCurrentPoint(A,t){var e=this.getPoint(A,t);return this.current=e,e}getReflectedControlPoint(){var A=this.previousCommand.type;if(A!==pl.CURVE_TO&&A!==pl.SMOOTH_CURVE_TO&&A!==pl.QUAD_TO&&A!==pl.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:e},control:{x:r,y:n}}=this;return new Fc(2*t-r,2*e-n)}makeAbsolute(A){if(this.command.relative){var{x:t,y:e}=this.current;A.x+=t,A.y+=e}return A}addMarker(A,t,e){var{points:r,angles:n}=this;e&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=r[r.length-1].angleTo(e)),this.addMarkerAngle(A,t?t.angleTo(A):null)}addMarkerAngle(A,t){this.points.push(A),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:A}=this,t=A.length,e=0;e<t;e++)if(!A[e])for(var r=e+1;r<t;r++)if(A[r]){A[e]=A[r];break}return A}},Gc=class extends Mc{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var A=1,t=this;t;){var e=t.getStyle("opacity",!1,!0);e.hasValue(!0)&&(A*=e.getNumber()),t=t.parent}return A}setContext(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var e=this.getStyle("fill"),r=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),i=this.getStyle("stroke-opacity");if(e.isUrlDefinition()){var s=e.getFillStyleDefinition(this,r);s&&(A.fillStyle=s)}else if(e.hasValue()){"currentColor"===e.getString()&&e.setValue(this.getStyle("color").getColor());var a=e.getColor();"inherit"!==a&&(A.fillStyle="none"===a?"rgba(0,0,0,0)":a)}if(r.hasValue()&&(A.fillStyle=new bc(this.document,"fill",A.fillStyle).addOpacity(r).getColor()),n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,i);o&&(A.strokeStyle=o)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var l=n.getString();"inherit"!==l&&(A.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}i.hasValue()&&(A.strokeStyle=new bc(this.document,"stroke",A.strokeStyle).addOpacity(i).getString());var c=this.getStyle("stroke-width");c.hasValue()&&(A.lineWidth=c.getPixels()||vc);var u=this.getStyle("stroke-linecap"),h=this.getStyle("stroke-linejoin"),f=this.getStyle("stroke-miterlimit"),d=this.getStyle("stroke-dasharray"),g=this.getStyle("stroke-dashoffset");if(u.hasValue()&&(A.lineCap=u.getString()),h.hasValue()&&(A.lineJoin=h.getString()),f.hasValue()&&(A.miterLimit=f.getNumber()),d.hasValue()&&"none"!==d.getString()){var p=Il(d.getString());void 0===A.setLineDash?void 0===A.webkitLineDash?void 0!==A.mozDash&&(1!==p.length||0!==p[0])&&(A.mozDash=p):A.webkitLineDash=p:A.setLineDash(p);var B=g.getPixels();void 0===A.lineDashOffset?void 0===A.webkitLineDashOffset?void 0!==A.mozDashOffset&&(A.mozDashOffset=B):A.webkitLineDashOffset=B:A.lineDashOffset=B}}if(this.modifiedEmSizeStack=!1,void 0!==A.font){var w=this.getStyle("font"),m=this.getStyle("font-style"),y=this.getStyle("font-variant"),v=this.getStyle("font-weight"),b=this.getStyle("font-size"),C=this.getStyle("font-family"),F=new Kc(m.getString(),y.getString(),v.getString(),b.hasValue()?`${b.getPixels(!0)}px`:"",C.getString(),Kc.parse(w.getString(),A.font));m.setValue(F.fontStyle),y.setValue(F.fontVariant),v.setValue(F.fontWeight),b.setValue(F.fontSize),C.setValue(F.fontFamily),A.font=F.toString(),b.isPixels()&&(this.document.emSize=b.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(A),A.globalAlpha=this.calculateOpacity())}clearContext(A){super.clearContext(A),this.modifiedEmSizeStack&&this.document.popEmSize()}},zc=class A extends Gc{constructor(A,t,e){super(A,t,e),this.type="path",this.pathParser=null,this.pathParser=new jc(this.getAttribute("d").getString())}path(A){var{pathParser:t}=this,e=new Vc;for(t.reset(),A&&A.beginPath();!t.isEnd();)switch(t.next().type){case jc.MOVE_TO:this.pathM(A,e);break;case jc.LINE_TO:this.pathL(A,e);break;case jc.HORIZ_LINE_TO:this.pathH(A,e);break;case jc.VERT_LINE_TO:this.pathV(A,e);break;case jc.CURVE_TO:this.pathC(A,e);break;case jc.SMOOTH_CURVE_TO:this.pathS(A,e);break;case jc.QUAD_TO:this.pathQ(A,e);break;case jc.SMOOTH_QUAD_TO:this.pathT(A,e);break;case jc.ARC:this.pathA(A,e);break;case jc.CLOSE_PATH:this.pathZ(A,e)}return e}getBoundingBox(A){return this.path()}getMarkers(){var{pathParser:A}=this,t=A.getMarkerPoints(),e=A.getMarkerAngles();return t.map(((A,t)=>[A,e[t]]))}renderChildren(A){this.path(A),this.document.screen.mouse.checkPath(this,A);var t=this.getStyle("fill-rule");""!==A.fillStyle&&("inherit"===t.getString("inherit")?A.fill():A.fill(t.getString())),""!==A.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(A.save(),A.setTransform(1,0,0,1,0,0),A.stroke(),A.restore()):A.stroke());var e=this.getMarkers();if(e){var r=e.length-1,n=this.getStyle("marker-start"),i=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var a=n.getDefinition(),[o,l]=e[0];a.render(A,o,l)}if(i.isUrlDefinition())for(var c=i.getDefinition(),u=1;u<r;u++){var[h,f]=e[u];c.render(A,h,f)}if(s.isUrlDefinition()){var d=s.getDefinition(),[g,p]=e[r];d.render(A,g,p)}}}static pathM(A){var t=A.getAsCurrentPoint();return A.start=A.current,{point:t}}pathM(t,e){var{pathParser:r}=this,{point:n}=A.pathM(r),{x:i,y:s}=n;r.addMarker(n),e.addPoint(i,s),t&&t.moveTo(i,s)}static pathL(A){var{current:t}=A;return{current:t,point:A.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:n,point:i}=A.pathL(r),{x:s,y:a}=i;r.addMarker(i,n),e.addPoint(s,a),t&&t.lineTo(s,a)}static pathH(A){var{current:t,command:e}=A,r=new Fc((e.relative?t.x:0)+e.x,t.y);return A.current=r,{current:t,point:r}}pathH(t,e){var{pathParser:r}=this,{current:n,point:i}=A.pathH(r),{x:s,y:a}=i;r.addMarker(i,n),e.addPoint(s,a),t&&t.lineTo(s,a)}static pathV(A){var{current:t,command:e}=A,r=new Fc(t.x,(e.relative?t.y:0)+e.y);return A.current=r,{current:t,point:r}}pathV(t,e){var{pathParser:r}=this,{current:n,point:i}=A.pathV(r),{x:s,y:a}=i;r.addMarker(i,n),e.addPoint(s,a),t&&t.lineTo(s,a)}static pathC(A){var{current:t}=A;return{current:t,point:A.getPoint("x1","y1"),controlPoint:A.getAsControlPoint("x2","y2"),currentPoint:A.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:s,currentPoint:a}=A.pathC(r);r.addMarker(a,s,i),e.addBezierCurve(n.x,n.y,i.x,i.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(i.x,i.y,s.x,s.y,a.x,a.y)}static pathS(A){var{current:t}=A;return{current:t,point:A.getReflectedControlPoint(),controlPoint:A.getAsControlPoint("x2","y2"),currentPoint:A.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:s,currentPoint:a}=A.pathS(r);r.addMarker(a,s,i),e.addBezierCurve(n.x,n.y,i.x,i.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(i.x,i.y,s.x,s.y,a.x,a.y)}static pathQ(A){var{current:t}=A;return{current:t,controlPoint:A.getAsControlPoint("x1","y1"),currentPoint:A.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:s}=A.pathQ(r);r.addMarker(s,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,s.x,s.y),t&&t.quadraticCurveTo(i.x,i.y,s.x,s.y)}static pathT(A){var{current:t}=A,e=A.getReflectedControlPoint();return A.control=e,{current:t,controlPoint:e,currentPoint:A.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:s}=A.pathT(r);r.addMarker(s,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,s.x,s.y),t&&t.quadraticCurveTo(i.x,i.y,s.x,s.y)}static pathA(A){var{current:t,command:e}=A,{rX:r,rY:n,xRot:i,lArcFlag:s,sweepFlag:a}=e,o=Math.PI/180*i,l=A.getAsCurrentPoint(),c=new Fc(Math.cos(o)*(t.x-l.x)/2+Math.sin(o)*(t.y-l.y)/2,-Math.sin(o)*(t.x-l.x)/2+Math.cos(o)*(t.y-l.y)/2),u=c.x**2/r**2+c.y**2/n**2;u>1&&(r*=Math.sqrt(u),n*=Math.sqrt(u));var h=(s===a?-1:1)*Math.sqrt((r**2*n**2-r**2*c.y**2-n**2*c.x**2)/(r**2*c.y**2+n**2*c.x**2));isNaN(h)&&(h=0);var f=new Fc(h*r*c.y/n,h*-n*c.x/r),d=new Fc((t.x+l.x)/2+Math.cos(o)*f.x-Math.sin(o)*f.y,(t.y+l.y)/2+Math.sin(o)*f.x+Math.cos(o)*f.y),g=Ml([1,0],[(c.x-f.x)/r,(c.y-f.y)/n]),p=[(c.x-f.x)/r,(c.y-f.y)/n],B=[(-c.x-f.x)/r,(-c.y-f.y)/n],w=Ml(p,B);return Dl(p,B)<=-1&&(w=Math.PI),Dl(p,B)>=1&&(w=0),{currentPoint:l,rX:r,rY:n,sweepFlag:a,xAxisRotation:o,centp:d,a1:g,ad:w}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:s,sweepFlag:a,xAxisRotation:o,centp:l,a1:c,ad:u}=A.pathA(r),h=1-a?1:-1,f=c+u/2*h,d=new Fc(l.x+i*Math.cos(f),l.y+s*Math.sin(f));if(r.addMarkerAngle(d,f-h*Math.PI/2),r.addMarkerAngle(n,f-h*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(c)&&!isNaN(u)){var g=i>s?i:s,p=i>s?1:i/s,B=i>s?s/i:1;t.translate(l.x,l.y),t.rotate(o),t.scale(p,B),t.arc(0,0,g,c,c+u,!!(1-a)),t.scale(1/p,1/B),t.rotate(-o),t.translate(-l.x,-l.y)}}static pathZ(A){A.current=A.start}pathZ(t,e){A.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}},qc=class extends zc{constructor(A,t,e){super(A,t,e),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}},Xc=class A extends Gc{constructor(t,e,r){super(t,e,new.target===A||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(A,t);var e=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();e&&(A.textBaseline=e)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=1/0,this.maxX=-1/0}getBoundingBox(A){if("text"!==this.type)return this.getTElementBoundingBox(A);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A);var t=null;return this.children.forEach(((e,r)=>{var n=this.getChildBoundingBox(A,this,this,r);t?t.addBoundingBox(n):t=n})),t}getFontSize(){var{document:A,parent:t}=this,e=Kc.parse(A.ctx.font).fontSize;return t.getStyle("font-size").getNumber(e)}getTElementBoundingBox(A){var t=this.getFontSize();return new Vc(this.x,this.y-t,this.x+this.measureText(A),this.y)}getGlyph(A,t,e){var r=t[e],n=null;if(A.isArabic){var i=t.length,s=t[e-1],a=t[e+1],o="isolated";if((0===e||" "===s)&&e<i-1&&" "!==a&&(o="terminal"),e>0&&" "!==s&&e<i-1&&" "!==a&&(o="medial"),e>0&&" "!==s&&(e===i-1||" "===a)&&(o="initial"),void 0!==A.glyphs[r]){var l=A.glyphs[r];n=l instanceof qc?l:l[o]}}else n=A.glyphs[r];return n||=A.missingGlyph,n}getText(){return""}getTextFromNode(A){var t=A||this.node,e=Array.from(t.parentNode.childNodes),r=e.indexOf(t),n=e.length-1,i=Ll(t.textContent||"");return 0===r&&(i=_l(i)),r===n&&(i=Sl(i)),i}renderChildren(A){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A),this.children.forEach(((t,e)=>{this.renderChild(A,this,this,e)}));var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(A))}else this.renderTElementChildren(A)}renderTElementChildren(A){var{document:t,parent:e}=this,r=this.getText(),n=e.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:i}=n.fontFace,s=Kc.parse(t.ctx.font),a=e.getStyle("font-size").getNumber(s.fontSize),o=e.getStyle("font-style").getString(s.fontStyle),l=a/i,c=n.isRTL?r.split("").reverse().join(""):r,u=Il(e.getAttribute("dx").getString()),h=c.length,f=0;f<h;f++){var d=this.getGlyph(n,c,f);A.translate(this.x,this.y),A.scale(l,-l);var g=A.lineWidth;A.lineWidth=A.lineWidth*i/a,"italic"===o&&A.transform(1,0,.4,1,0,0),d.render(A),"italic"===o&&A.transform(1,0,-.4,1,0,0),A.lineWidth=g,A.scale(1/l,-1/l),A.translate(-this.x,-this.y),this.x+=a*(d.horizAdvX||n.horizAdvX)/i,void 0!==u[f]&&!isNaN(u[f])&&(this.x+=u[f])}else{var{x:p,y:B}=this;A.fillStyle&&A.fillText(r,p,B),A.strokeStyle&&A.strokeText(r,p,B)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var A,t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start");A="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r<this.leafTexts.length;r++)this.leafTexts[r].x+=A;this.minX=1/0,this.maxX=-1/0,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(A){this.children.forEach(((t,e)=>{this.adjustChildCoordinatesRecursiveCore(A,this,this,e)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(A,t,e,r){var n=e.children[r];n.children.length>0?n.children.forEach(((e,r)=>{t.adjustChildCoordinatesRecursiveCore(A,t,n,r)})):this.adjustChildCoordinates(A,t,e,r)}adjustChildCoordinates(A,t,e,r){var n=e.children[r];if("function"!=typeof n.measureText)return n;A.save(),n.setContext(A,!0);var i=n.getAttribute("x"),s=n.getAttribute("y"),a=n.getAttribute("dx"),o=n.getAttribute("dy"),l=n.getStyle("font-family").getDefinition(),c=!!l&&l.isRTL;0===r&&(i.hasValue()||i.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),a.hasValue()||a.setValue(n.getInheritedAttribute("dx")),o.hasValue()||o.setValue(n.getInheritedAttribute("dy")));var u=n.measureText(A);return c&&(t.x-=u),i.hasValue()?(t.applyAnchoring(),n.x=i.getPixels("x"),a.hasValue()&&(n.x+=a.getPixels("x"))):(a.hasValue()&&(t.x+=a.getPixels("x")),n.x=t.x),t.x=n.x,c||(t.x+=u),s.hasValue()?(n.y=s.getPixels("y"),o.hasValue()&&(n.y+=o.getPixels("y"))):(o.hasValue()&&(t.y+=o.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+u),t.maxX=Math.max(t.maxX,n.x,n.x+u),n.clearContext(A),A.restore(),n}getChildBoundingBox(A,t,e,r){var n=e.children[r];if("function"!=typeof n.getBoundingBox)return null;var i=n.getBoundingBox(A);return i?(n.children.forEach(((e,r)=>{var s=t.getChildBoundingBox(A,t,n,r);i.addBoundingBox(s)})),i):null}renderChild(A,t,e,r){var n=e.children[r];n.render(A),n.children.forEach(((e,r)=>{t.renderChild(A,t,n,r)}))}measureText(A){var{measureCache:t}=this;if(~t)return t;var e=this.getText(),r=this.measureTargetText(A,e);return this.measureCache=r,r}measureTargetText(A,t){if(!t.length)return 0;var{parent:e}=this,r=e.getStyle("font-family").getDefinition();if(r){for(var n=this.getFontSize(),i=r.isRTL?t.split("").reverse().join(""):t,s=Il(e.getAttribute("dx").getString()),a=i.length,o=0,l=0;l<a;l++){o+=(this.getGlyph(r,i,l).horizAdvX||r.horizAdvX)*n/r.fontFace.unitsPerEm,void 0!==s[l]&&!isNaN(s[l])&&(o+=s[l])}return o}if(!A.measureText)return 10*t.length;A.save(),this.setContext(A,!0);var{width:c}=A.measureText(t);return this.clearContext(A),A.restore(),c}getInheritedAttribute(t){for(var e=this;e instanceof A&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}},Wc=class A extends Xc{constructor(t,e,r){super(t,e,new.target===A||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}},Yc=class extends Wc{constructor(){super(...arguments),this.type="textNode"}},Jc=class extends Gc{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(A){var{document:t}=this,{screen:e,window:r}=t,n=A.canvas;if(e.setDefaults(A),n.style&&void 0!==A.font&&r&&void 0!==r.getComputedStyle){A.font=r.getComputedStyle(n).getPropertyValue("font");var i=new bc(t,"fontSize",Kc.parse(A.font).fontSize);i.hasValue()&&(t.rootEmSize=i.getPixels("y"),t.emSize=t.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:s,height:a}=e.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var o=this.getAttribute("refX"),l=this.getAttribute("refY"),c=this.getAttribute("viewBox"),u=c.hasValue()?Il(c.getString()):null,h=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),f=0,d=0,g=0,p=0;u&&(f=u[0],d=u[1]),this.root||(s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=f,p=d,f=0,d=0)),e.viewPort.setCurrent(s,a),this.node&&(!this.parent||"foreignObject"===this.node.parentNode?.nodeName)&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(A),A.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),u&&(s=u[2],a=u[3]),t.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:e.viewPort.width,desiredWidth:s,height:e.viewPort.height,desiredHeight:a,minX:f,minY:d,refX:o.getValue(),refY:l.getValue(),clip:h,clipX:g,clipY:p}),u&&(e.viewPort.removeCurrent(),e.viewPort.setCurrent(s,a))}clearContext(A){super.clearContext(A),this.document.screen.viewPort.removeCurrent()}resize(A){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),n=this.getAttribute("height",!0),i=this.getAttribute("viewBox"),s=this.getAttribute("style"),a=r.getNumber(0),o=n.getNumber(0);if(e)if("string"==typeof e)this.getAttribute("preserveAspectRatio",!0).setValue(e);else{var l=this.getAttribute("preserveAspectRatio");l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(A),n.setValue(t),i.hasValue()||i.setValue(`0 0 ${a||A} ${o||t}`),s.hasValue()){var c=this.getStyle("width"),u=this.getStyle("height");c.hasValue()&&c.setValue(`${A}px`),u.hasValue()&&u.setValue(`${t}px`)}}},Zc=class extends zc{constructor(){super(...arguments),this.type="rect"}path(A){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),i=this.getAttribute("rx"),s=this.getAttribute("ry"),a=i.getPixels("x"),o=s.getPixels("y");if(i.hasValue()&&!s.hasValue()&&(o=a),s.hasValue()&&!i.hasValue()&&(a=o),a=Math.min(a,r/2),o=Math.min(o,n/2),A){var l=(Math.sqrt(2)-1)/3*4;A.beginPath(),n>0&&r>0&&(A.moveTo(t+a,e),A.lineTo(t+r-a,e),A.bezierCurveTo(t+r-a+l*a,e,t+r,e+o-l*o,t+r,e+o),A.lineTo(t+r,e+n-o),A.bezierCurveTo(t+r,e+n-o+l*o,t+r-a+l*a,e+n,t+r-a,e+n),A.lineTo(t+a,e+n),A.bezierCurveTo(t+a-l*a,e+n,t,e+n-o+l*o,t,e+n-o),A.lineTo(t,e+o),A.bezierCurveTo(t,e+o-l*o,t+a-l*a,e,t+a,e),A.closePath())}return new Vc(t,e,t+r,e+n)}getMarkers(){return null}},$c=class extends zc{constructor(){super(...arguments),this.type="circle"}path(A){var t=this.getAttribute("cx").getPixels("x"),e=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return A&&r>0&&(A.beginPath(),A.arc(t,e,r,0,2*Math.PI,!1),A.closePath()),new Vc(t-r,e-r,t+r,e+r)}getMarkers(){return null}},Au=class extends zc{constructor(){super(...arguments),this.type="ellipse"}path(A){var t=(Math.sqrt(2)-1)/3*4,e=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),i=this.getAttribute("cy").getPixels("y");return A&&e>0&&r>0&&(A.beginPath(),A.moveTo(n+e,i),A.bezierCurveTo(n+e,i+t*r,n+t*e,i+r,n,i+r),A.bezierCurveTo(n-t*e,i+r,n-e,i+t*r,n-e,i),A.bezierCurveTo(n-e,i-t*r,n-t*e,i-r,n,i-r),A.bezierCurveTo(n+t*e,i-r,n+e,i-t*r,n+e,i),A.closePath()),new Vc(n-e,i-r,n+e,i+r)}getMarkers(){return null}},tu=class extends zc{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Fc(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Fc(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(A){var[{x:t,y:e},{x:r,y:n}]=this.getPoints();return A&&(A.beginPath(),A.moveTo(t,e),A.lineTo(r,n)),new Vc(t,e,r,n)}getMarkers(){var[A,t]=this.getPoints(),e=A.angleTo(t);return[[A,e],[t,e]]}},eu=class extends zc{constructor(A,t,e){super(A,t,e),this.type="polyline",this.points=[],this.points=Fc.parsePath(this.getAttribute("points").getString())}path(A){var{points:t}=this,[{x:e,y:r}]=t,n=new Vc(e,r);return A&&(A.beginPath(),A.moveTo(e,r)),t.forEach((t=>{var{x:e,y:r}=t;n.addPoint(e,r),A&&A.lineTo(e,r)})),n}getMarkers(){var{points:A}=this,t=A.length-1,e=[];return A.forEach(((r,n)=>{n!==t&&e.push([r,r.angleTo(A[n+1])])})),e.length>0&&e.push([A[A.length-1],e[e.length-1][1]]),e}},ru=class extends eu{constructor(){super(...arguments),this.type="polygon"}path(A){var t=super.path(A),[{x:e,y:r}]=this.points;return A&&(A.lineTo(e,r),A.closePath()),t}},nu=class extends Mc{constructor(){super(...arguments),this.type="pattern"}createPattern(A,t,e){var r=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),i=new Jc(this.document,null);i.attributes.viewBox=new bc(this.document,"viewBox",this.getAttribute("viewBox").getValue()),i.attributes.width=new bc(this.document,"width",`${r}px`),i.attributes.height=new bc(this.document,"height",`${n}px`),i.attributes.transform=new bc(this.document,"transform",this.getAttribute("patternTransform").getValue()),i.children=this.children;var s=this.document.createCanvas(r,n),a=s.getContext("2d"),o=this.getAttribute("x"),l=this.getAttribute("y");o.hasValue()&&l.hasValue()&&a.translate(o.getPixels("x",!0),l.getPixels("y",!0)),e.hasValue()?this.styles["fill-opacity"]=e:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var u=-1;u<=1;u++)a.save(),i.attributes.x=new bc(this.document,"x",c*s.width),i.attributes.y=new bc(this.document,"y",u*s.height),i.render(a),a.restore();return A.createPattern(s,"repeat")}},iu=class extends Mc{constructor(){super(...arguments),this.type="marker"}render(A,t,e){if(t){var{x:r,y:n}=t,i=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");A.translate(r,n),"auto"===i&&A.rotate(e),"strokeWidth"===s&&A.scale(A.lineWidth,A.lineWidth),A.save();var a=new Jc(this.document,null);a.type=this.type,a.attributes.viewBox=new bc(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new bc(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new bc(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new bc(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new bc(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new bc(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new bc(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new bc(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(A),A.restore(),"strokeWidth"===s&&A.scale(1/A.lineWidth,1/A.lineWidth),"auto"===i&&A.rotate(-e),A.translate(-r,-n)}}},su=class extends Mc{constructor(){super(...arguments),this.type="defs"}render(){}},au=class extends Gc{constructor(){super(...arguments),this.type="g"}getBoundingBox(A){var t=new Vc;return this.children.forEach((e=>{t.addBoundingBox(e.getBoundingBox(A))})),t}},ou=class extends Mc{constructor(A,t,e){super(A,t,e),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:n}=this;n.forEach((A=>{"stop"===A.type&&r.push(A)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(A,t,e){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:n}=r,i=this.getGradient(A,t);if(!i)return this.addParentOpacity(e,n[n.length-1].color);if(n.forEach((A=>{i.addColorStop(A.offset,this.addParentOpacity(e,A.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:a,viewPort:o}=s.screen,[l]=o.viewPorts,c=new Zc(s,null);c.attributes.x=new bc(s,"x",-a/3),c.attributes.y=new bc(s,"y",-a/3),c.attributes.width=new bc(s,"width",a),c.attributes.height=new bc(s,"height",a);var u=new au(s,null);u.attributes.transform=new bc(s,"transform",this.getAttribute("gradientTransform").getValue()),u.children=[c];var h=new Jc(s,null);h.attributes.x=new bc(s,"x",0),h.attributes.y=new bc(s,"y",0),h.attributes.width=new bc(s,"width",l.width),h.attributes.height=new bc(s,"height",l.height),h.children=[u];var f=s.createCanvas(l.width,l.height),d=f.getContext("2d");return d.fillStyle=i,h.render(d),d.createPattern(f,"no-repeat")}return i}inheritStopContainer(A){this.attributesToInherit.forEach((t=>{!this.getAttribute(t).hasValue()&&A.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(A.getAttribute(t).getValue())}))}addParentOpacity(A,t){return A.hasValue()?new bc(this.document,"color",t).addOpacity(A).getColor():t}},lu=class extends ou{constructor(A,t,e){super(A,t,e),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(A,t){var e="objectBoundingBox"===this.getGradientUnits(),r=e?t.getBoundingBox(A):null;if(e&&!r)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=e?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),i=e?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=e?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),a=e?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&i===a?null:A.createLinearGradient(n,i,s,a)}},cu=class extends ou{constructor(A,t,e){super(A,t,e),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(A,t){var e="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(A);if(e&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=e?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),i=e?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,a=i;this.getAttribute("fx").hasValue()&&(s=e?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=e?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var o=e?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),l=this.getAttribute("fr").getPixels();return A.createRadialGradient(s,a,l,n,i,o)}},uu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),i=this.getStyle("stop-color",!0);""===i.getString()&&i.setValue("#000"),n.hasValue()&&(i=i.addOpacity(n)),this.offset=r,this.color=i.getColor()}},hu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,A.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new bc(A,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var A=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===A?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:A}=this,{progress:t,from:e,to:r}=this.getProgress(),n=e.getNumber()+(r.getNumber()-e.getNumber())*t;return"%"===A&&(n*=100),`${n}${A}`}update(A){var{parent:t}=this,e=this.getProperty();if(this.initialValue||(this.initialValue=e.getString(),this.initialUnits=e.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,e.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=e.getString();return!1}this.duration+=A;var n=!1;if(this.begin<this.duration){var i=this.calcValue(),s=this.getAttribute("type");s.hasValue()&&(i=`${s.getString()}(${i})`),e.setValue(i),n=!0}return n}getProgress(){var{document:A,values:t}=this,e={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=e.progress*(t.getValue().length-1),n=Math.floor(r),i=Math.ceil(r);e.from=new bc(A,"from",parseFloat(t.getValue()[n])),e.to=new bc(A,"to",parseFloat(t.getValue()[i])),e.progress=(r-n)/(i-n)}else e.from=this.from,e.to=this.to;return e}},fu=class extends hu{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:A,from:t,to:e}=this.getProgress(),r=new uc.default(t.getColor()),n=new uc.default(e.getColor());if(r.ok&&n.ok){var i=r.r+(n.r-r.r)*A,s=r.g+(n.g-r.g)*A,a=r.b+(n.b-r.b)*A;return`rgb(${Math.floor(i)}, ${Math.floor(s)}, ${Math.floor(a)})`}return this.getAttribute("from").getColor()}},du=class extends hu{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:A,from:t,to:e}=this.getProgress(),r=Il(t.getString()),n=Il(e.getString());return r.map(((t,e)=>t+(n[e]-t)*A)).join(" ")}},gu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=A,{children:n}=this;for(var i of n)switch(i.type){case"font-face":this.fontFace=i;var s=i.getStyle("font-family");s.hasValue()&&(r[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=i;break;case"glyph":var a=i;a.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[a.unicode]&&(this.glyphs[a.unicode]=Object.create(null)),this.glyphs[a.unicode][a.arabicForm]=a):this.glyphs[a.unicode]=a}}render(){}},pu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},Bu=class extends zc{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},wu=class extends Xc{constructor(){super(...arguments),this.type="tref"}getText(){var A=this.getHrefAttribute().getDefinition();if(A){var t=A.children[0];if(t)return t.getText()}return""}},mu=class extends Xc{constructor(A,t,e){super(A,t,e),this.type="a";var{childNodes:r}=t,n=r[0],i=r.length>0&&Array.from(r).every((A=>3===A.nodeType));this.hasText=i,this.text=i?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(A){if(this.hasText){super.renderChildren(A);var{document:t,x:e,y:r}=this,{mouse:n}=t.screen,i=new bc(t,"fontSize",Kc.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new Vc(e,r-i.getPixels("y"),e+this.measureText(A),r))}else if(this.children.length>0){var s=new au(this.document,null);s.children=this.children,s.parent=this,s.render(A)}}onClick(){var{window:A}=this.document;A&&A.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}},yu=class extends Xc{constructor(A,t,e){super(A,t,e),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(A){var{dataArray:t}=this;A&&A.beginPath(),t.forEach((t=>{var{type:e,points:r}=t;switch(e){case jc.LINE_TO:A&&A.lineTo(r[0],r[1]);break;case jc.MOVE_TO:A&&A.moveTo(r[0],r[1]);break;case jc.CURVE_TO:A&&A.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case jc.QUAD_TO:A&&A.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case jc.ARC:var[n,i,s,a,o,l,c,u]=r,h=s>a?s:a,f=s>a?1:s/a,d=s>a?a/s:1;A&&(A.translate(n,i),A.rotate(c),A.scale(f,d),A.arc(0,0,h,o,o+l,!!(1-u)),A.scale(1/f,1/d),A.rotate(-c),A.translate(-n,-i));break;case jc.CLOSE_PATH:A&&A.closePath()}}))}renderChildren(A){this.setTextData(A),A.save();var t=this.parent.getStyle("text-decoration").getString(),e=this.getFontSize(),{glyphInfo:r}=this,n=A.fillStyle;"underline"===t&&A.beginPath(),r.forEach(((r,n)=>{var{p0:i,p1:s,rotation:a,text:o}=r;A.save(),A.translate(i.x,i.y),A.rotate(a),A.fillStyle&&A.fillText(o,0,0),A.strokeStyle&&A.strokeText(o,0,0),A.restore(),"underline"===t&&(0===n&&A.moveTo(i.x,i.y+e/8),A.lineTo(s.x,s.y+e/5))})),"underline"===t&&(A.lineWidth=e/20,A.strokeStyle=n,A.stroke(),A.closePath()),A.restore()}getLetterSpacingAt(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[A]||0}findSegmentToFitChar(A,t,e,r,n,i,s,a,o){var l=i,c=this.measureText(A,a);" "===a&&"justify"===t&&e<r&&(c+=(r-e)/n),o>-1&&(l+=this.getLetterSpacingAt(o));var u=this.textHeight/20,h=this.getEquidistantPointOnPath(l,u,0),f=this.getEquidistantPointOnPath(l+c,u,0),d={p0:h,p1:f},g=h&&f?Math.atan2(f.y-h.y,f.x-h.x):0;if(s){var p=Math.cos(Math.PI/2+g)*s,B=Math.cos(-g)*s;d.p0=$l($l({},h),{},{x:h.x+p,y:h.y+B}),d.p1=$l($l({},f),{},{x:f.x+p,y:f.y+B})}return{offset:l+=c,segment:d,rotation:g}}measureText(A,t){var{measuresCache:e}=this,r=t||this.getText();if(e.has(r))return e.get(r);var n=this.measureTargetText(A,r);return e.set(r,n),n}setTextData(A){if(!this.glyphInfo){var t=this.getText(),e=t.split(""),r=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map((A=>A.getPixels("x"))),i=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),a=this.getStyle("letter-spacing"),o=this.parent.getStyle("letter-spacing"),l=0;a.hasValue()&&"inherit"!==a.getValue()?a.hasValue()&&"initial"!==a.getValue()&&"unset"!==a.getValue()&&(l=a.getPixels()):l=o.getPixels();var c=[],u=t.length;this.letterSpacingCache=c;for(var h=0;h<u;h++)c.push(void 0===n[h]?l:n[h]);var f=c.reduce(((A,t,e)=>0===e?0:A+t||0),0),d=this.measureText(A),g=Math.max(d+f,0);this.textWidth=d,this.textHeight=this.getFontSize(),this.glyphInfo=[];var p=this.getPathLength(),B=this.getStyle("startOffset").getNumber(0)*p,w=0;("middle"===s||"center"===s)&&(w=-g/2),("end"===s||"right"===s)&&(w=-g),w+=B,e.forEach(((t,n)=>{var{offset:a,segment:o,rotation:l}=this.findSegmentToFitChar(A,s,g,p,r,w,i,t,n);w=a,o.p0&&o.p1&&this.glyphInfo.push({text:e[n],p0:o.p0,p1:o.p1,rotation:l})}))}}parsePathData(A){if(this.pathLength=-1,!A)return[];var t=[],{pathParser:e}=A;for(e.reset();!e.isEnd();){var{current:r}=e,n=r?r.x:0,i=r?r.y:0,s=e.next(),a=s.type,o=[];switch(s.type){case jc.MOVE_TO:this.pathM(e,o);break;case jc.LINE_TO:a=this.pathL(e,o);break;case jc.HORIZ_LINE_TO:a=this.pathH(e,o);break;case jc.VERT_LINE_TO:a=this.pathV(e,o);break;case jc.CURVE_TO:this.pathC(e,o);break;case jc.SMOOTH_CURVE_TO:a=this.pathS(e,o);break;case jc.QUAD_TO:this.pathQ(e,o);break;case jc.SMOOTH_QUAD_TO:a=this.pathT(e,o);break;case jc.ARC:o=this.pathA(e);break;case jc.CLOSE_PATH:zc.pathZ(e)}s.type===jc.CLOSE_PATH?t.push({type:jc.CLOSE_PATH,points:[],pathLength:0}):t.push({type:a,points:o,start:{x:n,y:i},pathLength:this.calcLength(n,i,a,o)})}return t}pathM(A,t){var{x:e,y:r}=zc.pathM(A).point;t.push(e,r)}pathL(A,t){var{x:e,y:r}=zc.pathL(A).point;return t.push(e,r),jc.LINE_TO}pathH(A,t){var{x:e,y:r}=zc.pathH(A).point;return t.push(e,r),jc.LINE_TO}pathV(A,t){var{x:e,y:r}=zc.pathV(A).point;return t.push(e,r),jc.LINE_TO}pathC(A,t){var{point:e,controlPoint:r,currentPoint:n}=zc.pathC(A);t.push(e.x,e.y,r.x,r.y,n.x,n.y)}pathS(A,t){var{point:e,controlPoint:r,currentPoint:n}=zc.pathS(A);return t.push(e.x,e.y,r.x,r.y,n.x,n.y),jc.CURVE_TO}pathQ(A,t){var{controlPoint:e,currentPoint:r}=zc.pathQ(A);t.push(e.x,e.y,r.x,r.y)}pathT(A,t){var{controlPoint:e,currentPoint:r}=zc.pathT(A);return t.push(e.x,e.y,r.x,r.y),jc.QUAD_TO}pathA(A){var{rX:t,rY:e,sweepFlag:r,xAxisRotation:n,centp:i,a1:s,ad:a}=zc.pathA(A);return 0===r&&a>0&&(a-=2*Math.PI),1===r&&a<0&&(a+=2*Math.PI),[i.x,i.y,t,e,s,a,n,r]}calcLength(A,t,e,r){var n=0,i=null,s=null,a=0;switch(e){case jc.LINE_TO:return this.getLineLength(A,t,r[0],r[1]);case jc.CURVE_TO:for(n=0,i=this.getPointOnCubicBezier(0,A,t,r[0],r[1],r[2],r[3],r[4],r[5]),a=.01;a<=1;a+=.01)s=this.getPointOnCubicBezier(a,A,t,r[0],r[1],r[2],r[3],r[4],r[5]),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;return n;case jc.QUAD_TO:for(n=0,i=this.getPointOnQuadraticBezier(0,A,t,r[0],r[1],r[2],r[3]),a=.01;a<=1;a+=.01)s=this.getPointOnQuadraticBezier(a,A,t,r[0],r[1],r[2],r[3]),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;return n;case jc.ARC:n=0;var o=r[4],l=r[5],c=r[4]+l,u=Math.PI/180;if(Math.abs(o-c)<u&&(u=Math.abs(o-c)),i=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],o,0),l<0)for(a=o-u;a>c;a-=u)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;else for(a=o+u;a<c;a+=u)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;return s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),n+=this.getLineLength(i.x,i.y,s.x,s.y)}return 0}getPointOnLine(A,t,e,r,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e,a=(n-e)/(r-t+vc),o=Math.sqrt(A*A/(1+a*a));r<t&&(o*=-1);var l=a*o,c=null;if(r===t)c={x:i,y:s+l};else if((s-e)/(i-t+1e-8)===a)c={x:i+o,y:s+l};else{var u,h,f=this.getLineLength(t,e,r,n);if(f<1e-8)return null;var d=(i-t)*(r-t)+(s-e)*(n-e);u=t+(d/=f*f)*(r-t),h=e+d*(n-e);var g=this.getLineLength(i,s,u,h),p=Math.sqrt(A*A-g*g);o=Math.sqrt(p*p/(1+a*a)),r<t&&(o*=-1),c={x:u+o,y:h+(l=a*o)}}return c}getPointOnPath(A){var t=this.getPathLength(),e=0,r=null;if(A<-5e-5||A-5e-5>t)return null;var{dataArray:n}=this;for(var i of n){if(!i||!(i.pathLength<5e-5||e+i.pathLength+5e-5<A)){var s=A-e,a=0;switch(i.type){case jc.LINE_TO:r=this.getPointOnLine(s,i.start.x,i.start.y,i.points[0],i.points[1],i.start.x,i.start.y);break;case jc.ARC:var o=i.points[4],l=i.points[5],c=i.points[4]+l;if(a=o+s/i.pathLength*l,l<0&&a<c||l>=0&&a>c)break;r=this.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],a,i.points[6]);break;case jc.CURVE_TO:(a=s/i.pathLength)>1&&(a=1),r=this.getPointOnCubicBezier(a,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case jc.QUAD_TO:(a=s/i.pathLength)>1&&(a=1),r=this.getPointOnQuadraticBezier(a,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}if(r)return r;break}e+=i.pathLength}return null}getLineLength(A,t,e,r){return Math.sqrt((e-A)*(e-A)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((A,t)=>t.pathLength>0?A+t.pathLength:A),0)),this.pathLength}getPointOnCubicBezier(A,t,e,r,n,i,s,a,o){return{x:a*Rl(A)+i*Kl(A)+r*Vl(A)+t*jl(A),y:o*Rl(A)+s*Kl(A)+n*Vl(A)+e*jl(A)}}getPointOnQuadraticBezier(A,t,e,r,n,i,s){return{x:i*Gl(A)+r*zl(A)+t*ql(A),y:s*Gl(A)+n*zl(A)+e*ql(A)}}getPointOnEllipticalArc(A,t,e,r,n,i){var s=Math.cos(i),a=Math.sin(i),o=e*Math.cos(n),l=r*Math.sin(n);return{x:A+(o*s-l*a),y:t+(o*a+l*s)}}buildEquidistantCache(A,t){var e=this.getPathLength(),r=t||.25,n=A||e/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==r){this.equidistantCache={step:n,precision:r,points:[]};for(var i=0,s=0;s<=e;s+=r){var a=this.getPointOnPath(s),o=this.getPointOnPath(s+r);!a||!o||(i+=this.getLineLength(a.x,a.y,o.x,o.y))>=n&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:s}),i-=n)}}}getEquidistantPointOnPath(A,t,e){if(this.buildEquidistantCache(t,e),A<0||A-this.getPathLength()>5e-5)return null;var r=Math.round(A/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}},vu=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,bu=class extends Gc{constructor(A,t,e){super(A,t,e),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var n=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);A.images.push(this),n?this.loadSvg(r):this.loadImage(r),this.isSvg=n}}loadImage(A){var t=this;return Xa((function*(){try{t.image=yield t.document.createImage(A)}catch(t){console.error(`Error while loading image "${A}":`,t)}t.loaded=!0}))()}loadSvg(A){var t=this;return Xa((function*(){var e=vu.exec(A);if(e){var r=e[5];"base64"===e[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{t.image=yield(yield t.document.fetch(A)).text()}catch(t){console.error(`Error while loading image "${A}":`,t)}t.loaded=!0}))()}renderChildren(A){var{document:t,image:e,loaded:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(r&&e&&s&&a){if(A.save(),A.translate(n,i),this.isSvg){var o=t.canvg.forkString(A,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:a});o.document.documentElement.parent=this,o.render()}else{var l=this.image;t.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:l.width,height:a,desiredHeight:l.height}),this.loaded&&(void 0===l.complete||l.complete)&&A.drawImage(l,0,0)}A.restore()}}getBoundingBox(){var A=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),e=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new Vc(A,t,A+e,t+r)}},Cu=class extends Gc{constructor(){super(...arguments),this.type="symbol"}render(A){}},Fu=class{constructor(A){this.document=A,this.loaded=!1,A.fonts.push(this)}load(A,t){var e=this;return Xa((function*(){try{var{document:r}=e,n=(yield r.canvg.parser.load(t)).getElementsByTagName("font");Array.from(n).forEach((t=>{var e=r.createElement(t);r.definitions[A]=e}))}catch(A){console.error(`Error while loading font "${t}":`,A)}e.loaded=!0}))()}},Qu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="style",Ll(Array.from(t.childNodes).map((A=>A.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((t=>{var e=t.trim();if(e){var r=e.split("{"),n=r[0].split(","),i=r[1].split(";");n.forEach((t=>{var e=t.trim();if(e){var r=A.styles[e]||{};if(i.forEach((t=>{var e=t.indexOf(":"),n=t.substr(0,e).trim(),i=t.substr(e+1,t.length-e).trim();n&&i&&(r[n]=new bc(A,n,i))})),A.styles[e]=r,A.stylesSpecificity[e]=Ol(e),"@font-face"===e){var n=r["font-family"].getString().replace(/"|'/g,"");r.src.getString().split(",").forEach((t=>{if(t.indexOf('format("svg")')>0){var e=Hl(t);e&&new Fu(A).load(n,e)}}))}}}))}}))}},Qu.parseExternalUrl=Hl,xu=class extends Gc{constructor(){super(...arguments),this.type="use"}setContext(A){super.setContext(A);var t=this.getAttribute("x"),e=this.getAttribute("y");t.hasValue()&&A.translate(t.getPixels("x"),0),e.hasValue()&&A.translate(0,e.getPixels("y"))}path(A){var{element:t}=this;t&&t.path(A)}renderChildren(A){var{document:t,element:e}=this;if(e){var r=e;if("symbol"===e.type&&((r=new Jc(t,null)).attributes.viewBox=new bc(t,"viewBox",e.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new bc(t,"preserveAspectRatio",e.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new bc(t,"overflow",e.getAttribute("overflow").getString()),r.children=e.children,e.styles.opacity=new bc(t,"opacity",this.calculateOpacity())),"svg"===r.type){var n=this.getStyle("width",!1,!0),i=this.getStyle("height",!1,!0);n.hasValue()&&(r.attributes.width=new bc(t,"width",n.getString())),i.hasValue()&&(r.attributes.height=new bc(t,"height",i.getString()))}var s=r.parent;r.parent=this,r.render(A),r.parent=s}}getBoundingBox(A){var{element:t}=this;return t?t.getBoundingBox(A):null}elementTransform(){var{document:A,element:t}=this;return Dc.fromElement(A,t)}get element(){return this.cachedElement||=this.getHrefAttribute().getDefinition(),this.cachedElement}},Uu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="feColorMatrix";var r=Il(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=r[0];r=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var i=r[0]*Math.PI/180;r=[rc(i,.213,.787,-.213),rc(i,.715,-.715,-.715),rc(i,.072,-.072,.928),0,0,rc(i,.213,-.213,.143),rc(i,.715,.285,.14),rc(i,.072,-.072,-.283),0,0,rc(i,.213,-.213,-.787),rc(i,.715,-.715,.715),rc(i,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(A,t,e,r,n){for(var{includeOpacity:i,matrix:s}=this,a=A.getImageData(0,0,r,n),o=0;o<n;o++)for(var l=0;l<r;l++){var c=Ac(a.data,l,o,r,0,0),u=Ac(a.data,l,o,r,0,1),h=Ac(a.data,l,o,r,0,2),f=Ac(a.data,l,o,r,0,3),d=ec(s,0,c)+ec(s,1,u)+ec(s,2,h)+ec(s,3,f)+ec(s,4,1),g=ec(s,5,c)+ec(s,6,u)+ec(s,7,h)+ec(s,8,f)+ec(s,9,1),p=ec(s,10,c)+ec(s,11,u)+ec(s,12,h)+ec(s,13,f)+ec(s,14,1),B=ec(s,15,c)+ec(s,16,u)+ec(s,17,h)+ec(s,18,f)+ec(s,19,1);i&&(d=0,g=0,p=0,B*=f/255),tc(a.data,l,o,r,0,0,d),tc(a.data,l,o,r,0,1,g),tc(a.data,l,o,r,0,2,p),tc(a.data,l,o,r,0,3,B)}A.clearRect(0,0,r,n),A.putImageData(a,0,0)}},Eu=class A extends Mc{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!s&&!a){var o=new Vc;this.children.forEach((A=>{o.addBoundingBox(A.getBoundingBox(t))})),n=Math.floor(o.x1),i=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var l=this.removeStyles(e,A.ignoreStyles),c=r.createCanvas(n+s,i+a),u=c.getContext("2d");r.screen.setDefaults(u),this.renderChildren(u),new Uu(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,n+s,i+a);var h=r.createCanvas(n+s,i+a),f=h.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=u.createPattern(c,"no-repeat"),f.fillRect(0,0,n+s,i+a),t.fillStyle=f.createPattern(h,"no-repeat"),t.fillRect(0,0,n+s,i+a),this.restoreStyles(e,l)}render(A){}},Eu.ignoreStyles=["mask","transform","clip-path"],Lu=()=>{},_u=class extends Mc{constructor(){super(...arguments),this.type="clipPath"}apply(A){var{document:t}=this,e=Reflect.getPrototypeOf(A),{beginPath:r,closePath:n}=A;e&&(e.beginPath=Lu,e.closePath=Lu),Reflect.apply(r,A,[]),this.children.forEach((r=>{if(void 0!==r.path){var i=void 0===r.elementTransform?null:r.elementTransform();i||=Dc.fromElement(t,r),i&&i.apply(A),r.path(A),e&&(e.closePath=n),i&&i.unapply(A)}})),Reflect.apply(n,A,[]),A.clip(),e&&(e.beginPath=r,e.closePath=n)}render(A){}},Su=class A extends Mc{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:n}=this,i=e.getBoundingBox(t);if(i){var s=0,a=0;n.forEach((A=>{var t=A.extraFilterDistance||0;s=Math.max(s,t),a=Math.max(a,t)}));var o=Math.floor(i.width),l=Math.floor(i.height),c=o+2*s,u=l+2*a;if(!(c<1||u<1)){var h=Math.floor(i.x),f=Math.floor(i.y),d=this.removeStyles(e,A.ignoreStyles),g=r.createCanvas(c,u),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-h+s,-f+a),e.render(p),n.forEach((A=>{"function"==typeof A.apply&&A.apply(p,0,0,c,u)})),t.drawImage(g,0,0,c,u,h-s,f-a,c,u),this.restoreStyles(e,d)}}}render(A){}},Su.ignoreStyles=["filter","transform","clip-path"],Iu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(A,t,e,r,n){}},Nu=class extends Mc{constructor(){super(...arguments),this.type="feMorphology"}apply(A,t,e,r,n){}},Hu=class extends Mc{constructor(){super(...arguments),this.type="feComposite"}apply(A,t,e,r,n){}},Pu=class extends Mc{constructor(A,t,e){super(A,t,e),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(A,t,e,r,n){var{document:i,blurRadius:s}=this,a=i.window?i.window.document.body:null,o=A.canvas;o.id=i.getUniqueId(),a&&(o.style.display="none",a.appendChild(o)),vl(o,t,e,r,n,s),a&&a.removeChild(o)}},ku=class extends Mc{constructor(){super(...arguments),this.type="title"}},Ou=class extends Mc{constructor(){super(...arguments),this.type="desc"}},Tu={svg:Jc,rect:Zc,circle:$c,ellipse:Au,line:tu,polyline:eu,polygon:ru,path:zc,pattern:nu,marker:iu,defs:su,linearGradient:lu,radialGradient:cu,stop:uu,animate:hu,animateColor:fu,animateTransform:du,font:gu,"font-face":pu,"missing-glyph":Bu,glyph:qc,text:Xc,tspan:Wc,tref:wu,a:mu,textPath:yu,image:bu,g:au,symbol:Cu,style:Qu,use:xu,mask:Eu,clipPath:_u,filter:Su,feDropShadow:Iu,feMorphology:Nu,feComposite:Hu,feColorMatrix:Uu,feGaussianBlur:Pu,title:ku,desc:Ou},Du=class A{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:n=A.createCanvas,createImage:i=A.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(A,t){return"boolean"==typeof t?(e,r)=>A(e,"boolean"==typeof r?r:t):A}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:A}=this;return A[A.length-1]}set emSize(A){var{emSizeStack:t}=this;t.push(A)}popEmSize(){var{emSizeStack:A}=this;A.pop()}getUniqueId(){return"canvg"+ ++this.uniqueId}isImagesLoaded(){return this.images.every((A=>A.loaded))}isFontsLoaded(){return this.fonts.every((A=>A.loaded))}createDocumentElement(A){var t=this.createElement(A.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=A.elementTypes[e];return void 0===r?new Rc(this,t):new r(this,t)}createTextNode(A){return new Yc(this,A)}setViewBox(A){this.screen.setViewBox(function(A){for(var t=1;t<arguments.length;t++){var e=null==arguments[t]?{}:arguments[t];t%2?nc(Object(e),!0).forEach((function(t){Ho(A,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):nc(Object(e)).forEach((function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))}))}return A}({document:this},A))}},Du.createCanvas=ic,Du.createImage=sc,Du.elementTypes=Tu,Mu=class A{constructor(A,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Sc(e),this.screen=new Ec(A,e),this.options=e;var r=new Du(this,e),n=r.createDocumentElement(t);this.document=r,this.documentElement=n}static from(t,e){var r=arguments;return Xa((function*(){var n=r.length>2&&void 0!==r[2]?r[2]:{};return new A(t,yield new Sc(n).parse(e),n)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new A(t,new Sc(r).parseFromString(e),r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return A.from(t,e,lc(lc({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return A.fromString(t,e,lc(lc({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var A=arguments,t=this;return Xa((function*(){var e=A.length>0&&void 0!==A[0]?A[0]:{};t.start(lc({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),yield t.ready(),t.stop()}))()}start(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:e,options:r}=this;e.start(t,lc(lc({enableRedraw:!0},r),A))}stop(){this.screen.stop()}resize(A){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(A,t,e)}}}));Q();var Ku=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Vu(){Ku.console&&"function"==typeof Ku.console.log&&Ku.console.log.apply(Ku.console,arguments)}var ju={log:Vu,warn:function(A){Ku.console&&("function"==typeof Ku.console.warn?Ku.console.warn.apply(Ku.console,arguments):Vu.call(null,arguments))},error:function(A){Ku.console&&("function"==typeof Ku.console.error?Ku.console.error.apply(Ku.console,arguments):Vu(A))}};function Gu(A,t,e){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){Xu(r.response,t,e)},r.onerror=function(){ju.error("could not download file")},r.send()}function zu(A){var t=new XMLHttpRequest;t.open("HEAD",A,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function qu(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(t)}}var Xu=Ku.saveAs||("object"!==(typeof window>"u"?"undefined":F(window))||window!==Ku?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(A,t,e){var r=Ku.URL||Ku.webkitURL,n=document.createElement("a");t=t||A.name||"download",n.download=t,n.rel="noopener","string"==typeof A?(n.href=A,n.origin===location.origin?qu(n):zu(n.href)?Gu(A,t,e):qu(n,n.target="_blank")):(n.href=r.createObjectURL(A),setTimeout((function(){r.revokeObjectURL(n.href)}),4e4),setTimeout((function(){qu(n)}),0))}:"msSaveOrOpenBlob"in navigator?function(A,t,e){if(t=t||A.name||"download","string"==typeof A)if(zu(A))Gu(A,t,e);else{var r=document.createElement("a");r.href=A,r.target="_blank",setTimeout((function(){qu(r)}))}else navigator.msSaveOrOpenBlob(function(A,t){return void 0===t?t={autoBom:!1}:"object"!==F(t)&&(ju.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\ufeff",A],{type:A.type}):A}(A,e),t)}:function(A,t,e,r){if((r||=open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof A)return Gu(A,t,e);var n="application/octet-stream"===A.type,i=/constructor/i.test(Ku.HTMLElement)||Ku.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&"object"===(typeof FileReader>"u"?"undefined":F(FileReader))){var a=new FileReader;a.onloadend=function(){var A=a.result;A=s?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=A:location=A,r=null},a.readAsDataURL(A)}else{var o=Ku.URL||Ku.webkitURL,l=o.createObjectURL(A);r?r.location=l:location.href=l,r=null,setTimeout((function(){o.revokeObjectURL(l)}),4e4)}});function Wu(A){var t;A||="",this.ok=!1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A={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"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(A);s&&(t=i(s),this.r=t[0],this.g=t[1],this.b=t[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 A=this.r.toString(16),t=this.g.toString(16),e=this.b.toString(16);return 1==A.length&&(A="0"+A),1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),"#"+A+t+e}}var Yu=Ku.atob.bind(Ku),Ju=Ku.btoa.bind(Ku);function Zu(A,t){var e=A[0],r=A[1],n=A[2],i=A[3];e=Ah(e,r,n,i,t[0],7,-680876936),i=Ah(i,e,r,n,t[1],12,-389564586),n=Ah(n,i,e,r,t[2],17,606105819),r=Ah(r,n,i,e,t[3],22,-1044525330),e=Ah(e,r,n,i,t[4],7,-176418897),i=Ah(i,e,r,n,t[5],12,1200080426),n=Ah(n,i,e,r,t[6],17,-1473231341),r=Ah(r,n,i,e,t[7],22,-45705983),e=Ah(e,r,n,i,t[8],7,1770035416),i=Ah(i,e,r,n,t[9],12,-1958414417),n=Ah(n,i,e,r,t[10],17,-42063),r=Ah(r,n,i,e,t[11],22,-1990404162),e=Ah(e,r,n,i,t[12],7,1804603682),i=Ah(i,e,r,n,t[13],12,-40341101),n=Ah(n,i,e,r,t[14],17,-1502002290),e=th(e,r=Ah(r,n,i,e,t[15],22,1236535329),n,i,t[1],5,-165796510),i=th(i,e,r,n,t[6],9,-1069501632),n=th(n,i,e,r,t[11],14,643717713),r=th(r,n,i,e,t[0],20,-373897302),e=th(e,r,n,i,t[5],5,-701558691),i=th(i,e,r,n,t[10],9,38016083),n=th(n,i,e,r,t[15],14,-660478335),r=th(r,n,i,e,t[4],20,-405537848),e=th(e,r,n,i,t[9],5,568446438),i=th(i,e,r,n,t[14],9,-1019803690),n=th(n,i,e,r,t[3],14,-187363961),r=th(r,n,i,e,t[8],20,1163531501),e=th(e,r,n,i,t[13],5,-1444681467),i=th(i,e,r,n,t[2],9,-51403784),n=th(n,i,e,r,t[7],14,1735328473),e=eh(e,r=th(r,n,i,e,t[12],20,-1926607734),n,i,t[5],4,-378558),i=eh(i,e,r,n,t[8],11,-2022574463),n=eh(n,i,e,r,t[11],16,1839030562),r=eh(r,n,i,e,t[14],23,-35309556),e=eh(e,r,n,i,t[1],4,-1530992060),i=eh(i,e,r,n,t[4],11,1272893353),n=eh(n,i,e,r,t[7],16,-155497632),r=eh(r,n,i,e,t[10],23,-1094730640),e=eh(e,r,n,i,t[13],4,681279174),i=eh(i,e,r,n,t[0],11,-358537222),n=eh(n,i,e,r,t[3],16,-722521979),r=eh(r,n,i,e,t[6],23,76029189),e=eh(e,r,n,i,t[9],4,-640364487),i=eh(i,e,r,n,t[12],11,-421815835),n=eh(n,i,e,r,t[15],16,530742520),e=rh(e,r=eh(r,n,i,e,t[2],23,-995338651),n,i,t[0],6,-198630844),i=rh(i,e,r,n,t[7],10,1126891415),n=rh(n,i,e,r,t[14],15,-1416354905),r=rh(r,n,i,e,t[5],21,-57434055),e=rh(e,r,n,i,t[12],6,1700485571),i=rh(i,e,r,n,t[3],10,-1894986606),n=rh(n,i,e,r,t[10],15,-1051523),r=rh(r,n,i,e,t[1],21,-2054922799),e=rh(e,r,n,i,t[8],6,1873313359),i=rh(i,e,r,n,t[15],10,-30611744),n=rh(n,i,e,r,t[6],15,-1560198380),r=rh(r,n,i,e,t[13],21,1309151649),e=rh(e,r,n,i,t[4],6,-145523070),i=rh(i,e,r,n,t[11],10,-1120210379),n=rh(n,i,e,r,t[2],15,718787259),r=rh(r,n,i,e,t[9],21,-343485551),A[0]=uh(e,A[0]),A[1]=uh(r,A[1]),A[2]=uh(n,A[2]),A[3]=uh(i,A[3])}function $u(A,t,e,r,n,i){return t=uh(uh(t,A),uh(r,i)),uh(t<<n|t>>>32-n,e)}function Ah(A,t,e,r,n,i,s){return $u(t&e|~t&r,A,t,n,i,s)}function th(A,t,e,r,n,i,s){return $u(t&r|e&~r,A,t,n,i,s)}function eh(A,t,e,r,n,i,s){return $u(t^e^r,A,t,n,i,s)}function rh(A,t,e,r,n,i,s){return $u(e^(t|~r),A,t,n,i,s)}function nh(A){var t,e=A.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A.length;t+=64)Zu(r,ih(A.substring(t-64,t)));A=A.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<A.length;t++)n[t>>2]|=A.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(Zu(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*e,Zu(r,n),r}function ih(A){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=A.charCodeAt(t)+(A.charCodeAt(t+1)<<8)+(A.charCodeAt(t+2)<<16)+(A.charCodeAt(t+3)<<24);return e}var sh="0123456789abcdef".split("");function ah(A){for(var t="",e=0;e<4;e++)t+=sh[A>>8*e+4&15]+sh[A>>8*e&15];return t}function oh(A){return String.fromCharCode(255&A,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function lh(A){return nh(A).map(oh).join("")}var ch="5d41402abc4b2a76b9719d911017c592"!=function(A){for(var t=0;t<A.length;t++)A[t]=ah(A[t]);return A.join("")}(nh("hello"));function uh(A,t){if(ch){var e=(65535&A)+(65535&t);return(A>>16)+(t>>16)+(e>>16)<<16|65535&e}return A+t&4294967295}function hh(A,t){var e,r,n,i;if(A!==e){for(var s=(n=A,i=1+(256/A.length|0),Array(i+1).join(n)),a=[],o=0;o<256;o++)a[o]=o;var l=0;for(o=0;o<256;o++){var c=a[o];l=(l+c+s.charCodeAt(o))%256,a[o]=a[l],a[l]=c}e=A,r=a}else a=r;var u=t.length,h=0,f=0,d="";for(o=0;o<u;o++)f=(f+(c=a[h=(h+1)%256]))%256,a[h]=a[f],a[f]=c,s=a[(a[h]+a[f])%256],d+=String.fromCharCode(t.charCodeAt(o)^s);return d}var fh={print:4,modify:8,copy:16,"annot-forms":32};function dh(A,t,e,r){this.v=1,this.r=2;var n=192;A.forEach((function(A){if(void 0!==fh.perm)throw Error("Invalid permission: "+A);n+=fh[A]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=lh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=hh(this.encryptionKey,this.padding)}function gh(A){if(/[^\u0000-\u00ff]/.test(A))throw Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);t+=n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126?"#"+("0"+n.toString(16)).slice(-2):A[r]}return t}function ph(A){if("object"!==F(A))throw Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,e,r){if(r||=!1,"string"!=typeof A||"function"!=typeof e||"boolean"!=typeof r)throw Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var n=Math.random().toString(35);return t[A][n]=[e,!!r],n},this.unsubscribe=function(A){for(var e in t)if(t[e][A])return delete t[e][A],0===Object.keys(t[e]).length&&delete t[e],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in t[e]){var s=t[e][i];try{s[0].apply(A,r)}catch(A){Ku.console&&ju.error("jsPDF PubSub Error",A.message,A)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Bh(A){if(!(this instanceof Bh))return new Bh(A);var t="opacity,stroke-opacity".split(",");for(var e in A)A.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=A[e]);this.id="",this.objectNumber=-1}function wh(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function mh(A,t,e,r,n){if(!(this instanceof mh))return new mh(A,t,e,r,n);this.type="axial"===A?2:3,this.coords=t,this.colors=e,wh.call(this,r,n)}function yh(A,t,e,r,n){if(!(this instanceof yh))return new yh(A,t,e,r,n);this.boundingBox=A,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,wh.call(this,r,n)}function vh(A){var t,e="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],a=1,o=16,l="S",c=null;"object"===F(A||={})&&(e=A.orientation,r=A.unit||r,n=A.format||n,i=A.compress||A.compressPdf||i,null!==(c=A.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),a="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(t=A.precision),void 0!==A.floatPrecision&&(o=A.floatPrecision),l=A.defaultPathOperation||"S"),s=A.filters||(!0===i?["FlateEncode"]:s),r||="mm",e=(""+(e||"P")).toLowerCase();var u=A.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=ph;var d="1.3",g=f.__private__.getPdfVersion=function(){return d};f.__private__.setPdfVersion=function(A){d=A};var p={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]};f.__private__.getPageFormats=function(){return p};var B=f.__private__.getPageFormat=function(A){return p[A]};n||="a4";var w="compat",m="advanced",y=w;function v(){this.saveGraphicsState(),Z(new IA(fA,0,0,-fA,0,ge()*fA).toString()+" cm"),this.setFontSize(this.getFontSize()/fA),l="n",y=m}function b(){this.restoreGraphicsState(),l="S",y=w}var C=f.__private__.combineFontStyleAndFontWeight=function(A,t){if("bold"==A&&"normal"==t||"bold"==A&&400==t||"normal"==A&&"italic"==t||"bold"==A&&"italic"==t)throw Error("Invalid Combination of fontweight and fontstyle");return t&&(A=400==t||"normal"===t?"italic"===A?"italic":"normal":700!=t&&"bold"!==t||"normal"!==A?(700==t?"bold":t)+""+A:"bold"),A};f.advancedAPI=function(A){var t=y===w;return t&&v.call(this),"function"!=typeof A||(A(this),t&&b.call(this)),this},f.compatAPI=function(A){var t=y===m;return t&&b.call(this),"function"!=typeof A||(A(this),t&&v.call(this)),this},f.isAdvancedAPI=function(){return y===m};var Q,x=function(A){if(y!==m)throw Error(A+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},U=f.roundToPrecision=f.__private__.roundToPrecision=function(A,e){var r=t||e;if(isNaN(A)||isNaN(r))throw Error("Invalid argument passed to jsPDF.roundToPrecision");return A.toFixed(r).replace(/0+$/,"")};Q=f.hpf=f.__private__.hpf="number"==typeof o?function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.hpf");return U(A,o)}:"smart"===o?function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.hpf");return U(A,A>-1&&A<1?16:5)}:function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.hpf");return U(A,16)};var E=f.f2=f.__private__.f2=function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.f2");return U(A,2)},L=f.__private__.f3=function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.f3");return U(A,3)},_=f.scale=f.__private__.scale=function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.scale");return y===w?A*fA:y===m?A:void 0},S=function(A){return _(function(A){return y===w?ge()-A:y===m?A:void 0}(A))};f.__private__.setPrecision=f.setPrecision=function(A){"number"==typeof parseInt(A,10)&&(t=parseInt(A,10))};var I,N="00000000000000000000000000000000",H=f.__private__.getFileId=function(){return N},P=f.__private__.setFileId=function(A){return N=void 0!==A&&/^[a-fA-F0-9]{32}$/.test(A)?A.toUpperCase():N.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(vt=new dh(c.userPermissions,c.userPassword,c.ownerPassword,N)),N};f.setFileId=function(A){return P(A),this},f.getFileId=function(){return H()};var k=f.__private__.convertDateToPDFDate=function(A){var t=A.getTimezoneOffset(),e=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),i=[e,R(r),"'",R(n),"'"].join("");return["D:",A.getFullYear(),R(A.getMonth()+1),R(A.getDate()),R(A.getHours()),R(A.getMinutes()),R(A.getSeconds()),i].join("")},O=f.__private__.convertPDFDateToDate=function(A){var t=parseInt(A.substr(2,4),10),e=parseInt(A.substr(6,2),10)-1,r=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),i=parseInt(A.substr(12,2),10),s=parseInt(A.substr(14,2),10);return new Date(t,e,r,n,i,s,0)},T=f.__private__.setCreationDate=function(A){var t;if(void 0===A&&(A=new Date),A instanceof Date)t=k(A);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(A))throw Error("Invalid argument passed to jsPDF.setCreationDate");t=A}return I=t},D=f.__private__.getCreationDate=function(A){var t=I;return"jsDate"===A&&(t=O(I)),t};f.setCreationDate=function(A){return T(A),this},f.getCreationDate=function(A){return D(A)};var M,R=f.__private__.padd2=function(A){return("0"+parseInt(A)).slice(-2)},K=f.__private__.padd2Hex=function(A){return("00"+(A=A.toString())).substr(A.length)},V=0,j=[],G=[],z=0,q=[],X=[],W=!1,Y=G;f.__private__.setCustomOutputDestination=function(A){W=!0,Y=A};var J=function(A){W||(Y=A)};f.__private__.resetCustomOutputDestination=function(){W=!1,Y=G};var Z=f.__private__.out=function(A){return A=A.toString(),z+=A.length+1,Y.push(A),Y},$=f.__private__.write=function(A){return Z(1===arguments.length?A.toString():Array.prototype.join.call(arguments," "))},AA=f.__private__.getArrayBuffer=function(A){for(var t=A.length,e=new ArrayBuffer(t),r=new Uint8Array(e);t--;)r[t]=A.charCodeAt(t);return e},tA=[["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]];f.__private__.getStandardFonts=function(){return tA};var eA=A.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(A){return eA=y===m?A/fA:A,this};var rA,nA=f.__private__.getFontSize=f.getFontSize=function(){return y===w?eA:eA*fA},iA=A.R2L||!1;f.__private__.setR2L=f.setR2L=function(A){return iA=A,this},f.__private__.getR2L=f.getR2L=function(){return iA};var sA,aA=f.__private__.setZoomMode=function(A){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(A))rA=A;else if(isNaN(A)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(A))throw Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+A+'" is not recognized.');rA=A}else rA=parseInt(A,10)};f.__private__.getZoomMode=function(){return rA};var oA,lA=f.__private__.setPageMode=function(A){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(A))throw Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');sA=A};f.__private__.getPageMode=function(){return sA};var cA=f.__private__.setLayoutMode=function(A){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(A))throw Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+A+'" is not recognized.');oA=A};f.__private__.getLayoutMode=function(){return oA},f.__private__.setDisplayMode=f.setDisplayMode=function(A,t,e){return aA(A),cA(t),lA(e),this};var uA={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(A){if(-1===Object.keys(uA).indexOf(A))throw Error("Invalid argument passed to jsPDF.getDocumentProperty");return uA[A]},f.__private__.getDocumentProperties=function(){return uA},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(A){for(var t in uA)uA.hasOwnProperty(t)&&A[t]&&(uA[t]=A[t]);return this},f.__private__.setDocumentProperty=function(A,t){if(-1===Object.keys(uA).indexOf(A))throw Error("Invalid arguments passed to jsPDF.setDocumentProperty");return uA[A]=t};var hA,fA,dA,gA,pA,BA={},wA={},mA=[],yA={},vA={},bA={},CA={},FA=null,QA=0,xA=[],UA=new ph(f),EA=A.hotfixes||[],LA={},_A={},SA=[],IA=function A(t,e,r,n,i,s){if(!(this instanceof A))return new A(t,e,r,n,i,s);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(s)&&(s=0),this._matrix=[t,e,r,n,i,s]};Object.defineProperty(IA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(IA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(IA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(IA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(IA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(IA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(IA.prototype,"a",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(IA.prototype,"b",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(IA.prototype,"c",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(IA.prototype,"d",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(IA.prototype,"e",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(IA.prototype,"f",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(IA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(IA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(IA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(IA.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),IA.prototype.join=function(A){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Q).join(A)},IA.prototype.multiply=function(A){return new IA(A.sx*this.sx+A.shy*this.shx,A.sx*this.shy+A.shy*this.sy,A.shx*this.sx+A.sy*this.shx,A.shx*this.shy+A.sy*this.sy,A.tx*this.sx+A.ty*this.shx+this.tx,A.tx*this.shy+A.ty*this.sy+this.ty)},IA.prototype.decompose=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,s=Math.sqrt(A*A+t*t),a=(A/=s)*e+(t/=s)*r;e-=A*a,r-=t*a;var o=Math.sqrt(e*e+r*r);return a/=o,A*(r/=o)<t*(e/=o)&&(A=-A,t=-t,a=-a,s=-s),{scale:new IA(s,0,0,o,0,0),translate:new IA(1,0,0,1,n,i),rotate:new IA(A,t,-t,A,0,0),skew:new IA(1,0,a,1,0,0)}},IA.prototype.toString=function(A){return this.join(" ")},IA.prototype.inversed=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,s=1/(A*r-t*e),a=r*s,o=-t*s,l=-e*s,c=A*s;return new IA(a,o,l,c,-a*n-l*i,-o*n-c*i)},IA.prototype.applyToPoint=function(A){return new ne(A.x*this.sx+A.y*this.shx+this.tx,A.x*this.shy+A.y*this.sy+this.ty)},IA.prototype.applyToRectangle=function(A){var t=this.applyToPoint(A),e=this.applyToPoint(new ne(A.x+A.w,A.y+A.h));return new ie(t.x,t.y,e.x-t.x,e.y-t.y)},IA.prototype.clone=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty;return new IA(A,t,e,r,n,i)},f.Matrix=IA;var NA=f.matrixMult=function(A,t){return t.multiply(A)},HA=new IA(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=HA;var PA=function(A,t){if(!vA[A]){var e=(t instanceof mh?"Sh":"P")+(Object.keys(yA).length+1).toString(10);t.id=e,vA[A]=e,yA[e]=t,UA.publish("addPattern",t)}};f.ShadingPattern=mh,f.TilingPattern=yh,f.addShadingPattern=function(A,t){return x("addShadingPattern()"),PA(A,t),this},f.beginTilingPattern=function(A){x("beginTilingPattern()"),ae(A.boundingBox[0],A.boundingBox[1],A.boundingBox[2]-A.boundingBox[0],A.boundingBox[3]-A.boundingBox[1],A.matrix)},f.endTilingPattern=function(A,t){x("endTilingPattern()"),t.stream=X[M].join("\n"),PA(A,t),UA.publish("endTilingPattern",t),SA.pop().restore()};var kA,OA=f.__private__.newObject=function(){var A=TA();return DA(A,!0),A},TA=f.__private__.newObjectDeferred=function(){return V++,j[V]=function(){return z},V},DA=function(A,t){return t="boolean"==typeof t&&t,j[A]=z,t&&Z(A+" 0 obj"),A},MA=f.__private__.newAdditionalObject=function(){var A={objId:TA(),content:""};return q.push(A),A},RA=TA(),KA=TA(),VA=f.__private__.decodeColorString=function(A){var t=A.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var e=parseFloat(t[0]);t=[e,e,e,"r"]}for(var r="#",n=0;n<3;n++)r+=("0"+Math.floor(255*parseFloat(t[n])).toString(16)).slice(-2);return r},jA=f.__private__.encodeColorString=function(A){var t;"string"==typeof A&&(A={ch1:A});var e=A.ch1,r=A.ch2,n=A.ch3,i=A.ch4,s="draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof e&&"#"!==e.charAt(0)){var a=new Wu(e);if(a.ok)e=a.toHex();else if(!/^\d*\.?\d*$/.test(e))throw Error('Invalid color "'+e+'" passed to jsPDF.encodeColorString.')}if("string"==typeof e&&/^#[0-9A-Fa-f]{3}$/.test(e)&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var o=parseInt(e.substr(1),16);e=o>>16&255,r=o>>8&255,n=255&o}if(void 0===r||void 0===i&&e===r&&r===n)t="string"==typeof e?e+" "+s[0]:2===A.precision?E(e/255)+" "+s[0]:L(e/255)+" "+s[0];else if(void 0===i||"object"===F(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",s[1]].join(" ");t="string"==typeof e?[e,r,n,s[1]].join(" "):2===A.precision?[E(e/255),E(r/255),E(n/255),s[1]].join(" "):[L(e/255),L(r/255),L(n/255),s[1]].join(" ")}else t="string"==typeof e?[e,r,n,i,s[2]].join(" "):2===A.precision?[E(e),E(r),E(n),E(i),s[2]].join(" "):[L(e),L(r),L(n),L(i),s[2]].join(" ");return t},GA=f.__private__.getFilters=function(){return s},zA=f.__private__.putStream=function(A){var t=(A||={}).data||"",e=A.filters||GA(),r=A.alreadyAppliedFilters||[],n=A.addLength1||!1,i=t.length,s=A.objectId,a=function(A){return A};if(null!==c&&void 0===s)throw Error("ObjectId must be passed to putStream for file encryption");null!==c&&(a=vt.encryptor(s,0));var o={};!0===e&&(e=["FlateEncode"]);var l=A.additionalKeyValues||[],u=(o=void 0===vh.API.processDataByFilters?{data:t,reverseChain:[]}:vh.API.processDataByFilters(t,e)).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==o.data.length&&(l.push({key:"Length",value:o.data.length}),!0===n&&l.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)l.push({key:"Filter",value:u});else{l.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<l.length;h+=1)if("DecodeParms"===l[h].key){for(var f=[],d=0;d<o.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(l[h].value),l[h].value="["+f.join(" ")+"]"}}Z("<<");for(var g=0;g<l.length;g++)Z("/"+l[g].key+" "+l[g].value);Z(">>"),0!==o.data.length&&(Z("stream"),Z(a(o.data)),Z("endstream"))},qA=f.__private__.putPage=function(A){var t=A.number,e=A.data,r=A.objId,n=A.contentsObjId;DA(r,!0),Z("<</Type /Page"),Z("/Parent "+A.rootDictionaryObjId+" 0 R"),Z("/Resources "+A.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(Q(A.mediaBox.bottomLeftX))+" "+parseFloat(Q(A.mediaBox.bottomLeftY))+" "+Q(A.mediaBox.topRightX)+" "+Q(A.mediaBox.topRightY)+"]"),null!==A.cropBox&&Z("/CropBox ["+Q(A.cropBox.bottomLeftX)+" "+Q(A.cropBox.bottomLeftY)+" "+Q(A.cropBox.topRightX)+" "+Q(A.cropBox.topRightY)+"]"),null!==A.bleedBox&&Z("/BleedBox ["+Q(A.bleedBox.bottomLeftX)+" "+Q(A.bleedBox.bottomLeftY)+" "+Q(A.bleedBox.topRightX)+" "+Q(A.bleedBox.topRightY)+"]"),null!==A.trimBox&&Z("/TrimBox ["+Q(A.trimBox.bottomLeftX)+" "+Q(A.trimBox.bottomLeftY)+" "+Q(A.trimBox.topRightX)+" "+Q(A.trimBox.topRightY)+"]"),null!==A.artBox&&Z("/ArtBox ["+Q(A.artBox.bottomLeftX)+" "+Q(A.artBox.bottomLeftY)+" "+Q(A.artBox.topRightX)+" "+Q(A.artBox.topRightY)+"]"),"number"==typeof A.userUnit&&1!==A.userUnit&&Z("/UserUnit "+A.userUnit),UA.publish("putPage",{objId:r,pageContext:xA[t],pageNumber:t,page:e}),Z("/Contents "+n+" 0 R"),Z(">>"),Z("endobj");var i=e.join("\n");return y===m&&(i+="\nQ"),DA(n,!0),zA({data:i,filters:GA(),objectId:n}),Z("endobj"),r},XA=f.__private__.putPages=function(){var A,t,e=[];for(A=1;A<=QA;A++)xA[A].objId=TA(),xA[A].contentsObjId=TA();for(A=1;A<=QA;A++)e.push(qA({number:A,data:X[A],objId:xA[A].objId,contentsObjId:xA[A].contentsObjId,mediaBox:xA[A].mediaBox,cropBox:xA[A].cropBox,bleedBox:xA[A].bleedBox,trimBox:xA[A].trimBox,artBox:xA[A].artBox,userUnit:xA[A].userUnit,rootDictionaryObjId:RA,resourceDictionaryObjId:KA}));DA(RA,!0),Z("<</Type /Pages");var r="/Kids [";for(t=0;t<QA;t++)r+=e[t]+" 0 R ";Z(r+"]"),Z("/Count "+QA),Z(">>"),Z("endobj"),UA.publish("postPutPages")},WA=function(A){UA.publish("putFont",{font:A,out:Z,newObject:OA,putStream:zA}),!0!==A.isAlreadyPutted&&(A.objectNumber=OA(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+gh(A.postScriptName)),Z("/Subtype /Type1"),"string"==typeof A.encoding&&Z("/Encoding /"+A.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},YA=function(A){A.objectNumber=OA();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[Q(A.x),Q(A.y),Q(A.x+A.width),Q(A.y+A.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),zA({data:A.pages[1].join("\n"),additionalKeyValues:t,objectId:A.objectNumber}),Z("endobj")},JA=function(A,t){t||=21;var e=OA(),r=function(A,t){var e,r=[],n=1/(t-1);for(e=0;e<1;e+=n)r.push(e);if(r.push(1),0!=A[0].offset){var i={offset:0,color:A[0].color};A.unshift(i)}if(1!=A[A.length-1].offset){var s={offset:1,color:A[A.length-1].color};A.push(s)}for(var a="",o=0,l=0;l<r.length;l++){for(e=r[l];e>A[o+1].offset;)o++;var c=A[o].offset,u=(e-c)/(A[o+1].offset-c),h=A[o].color,f=A[o+1].color;a+=K(Math.round((1-u)*h[0]+u*f[0]).toString(16))+K(Math.round((1-u)*h[1]+u*f[1]).toString(16))+K(Math.round((1-u)*h[2]+u*f[2]).toString(16))}return a.trim()}(A.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),zA({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:e}),Z("endobj"),A.objectNumber=OA(),Z("<< /ShadingType "+A.type),Z("/ColorSpace /DeviceRGB");var i="/Coords ["+Q(parseFloat(A.coords[0]))+" "+Q(parseFloat(A.coords[1]))+" ";2===A.type?i+=Q(parseFloat(A.coords[2]))+" "+Q(parseFloat(A.coords[3])):i+=Q(parseFloat(A.coords[2]))+" "+Q(parseFloat(A.coords[3]))+" "+Q(parseFloat(A.coords[4]))+" "+Q(parseFloat(A.coords[5])),Z(i+="]"),A.matrix&&Z("/Matrix ["+A.matrix.toString()+"]"),Z("/Function "+e+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},ZA=function(A,t){var e=TA(),r=OA();t.push({resourcesOid:e,objectOid:r}),A.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+A.boundingBox.map(Q).join(" ")+"]"}),n.push({key:"XStep",value:Q(A.xStep)}),n.push({key:"YStep",value:Q(A.yStep)}),n.push({key:"Resources",value:e+" 0 R"}),A.matrix&&n.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),zA({data:A.stream,additionalKeyValues:n,objectId:A.objectNumber}),Z("endobj")},$A=function(A){for(var t in A.objectNumber=OA(),Z("<<"),A)switch(t){case"opacity":Z("/ca "+E(A[t]));break;case"stroke-opacity":Z("/CA "+E(A[t]))}Z(">>"),Z("endobj")},At=function(A){DA(A.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var A in Z("/Font <<"),BA)BA.hasOwnProperty(A)&&(!1===u||!0===u&&h.hasOwnProperty(A))&&Z("/"+A+" "+BA[A].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(yA).length>0){for(var A in Z("/Shading <<"),yA)yA.hasOwnProperty(A)&&yA[A]instanceof mh&&yA[A].objectNumber>=0&&Z("/"+A+" "+yA[A].objectNumber+" 0 R");UA.publish("putShadingPatternDict"),Z(">>")}}(),function(A){if(Object.keys(yA).length>0){for(var t in Z("/Pattern <<"),yA)yA.hasOwnProperty(t)&&yA[t]instanceof f.TilingPattern&&yA[t].objectNumber>=0&&yA[t].objectNumber<A&&Z("/"+t+" "+yA[t].objectNumber+" 0 R");UA.publish("putTilingPatternDict"),Z(">>")}}(A.objectOid),function(){if(Object.keys(bA).length>0){for(var A in Z("/ExtGState <<"),bA)bA.hasOwnProperty(A)&&bA[A].objectNumber>=0&&Z("/"+A+" "+bA[A].objectNumber+" 0 R");UA.publish("putGStateDict"),Z(">>")}}(),function(){for(var A in Z("/XObject <<"),LA)LA.hasOwnProperty(A)&&LA[A].objectNumber>=0&&Z("/"+A+" "+LA[A].objectNumber+" 0 R");UA.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},tt=function(A){wA[A.fontName]=wA[A.fontName]||{},wA[A.fontName][A.fontStyle]=A.id},et=function(A,t,e,r,n){var i={id:"F"+(Object.keys(BA).length+1).toString(10),postScriptName:A,fontName:t,fontStyle:e,encoding:r,isStandardFont:n||!1,metadata:{}};return UA.publish("addFont",{font:i,instance:this}),BA[i.id]=i,tt(i),i.id},rt=f.__private__.pdfEscape=f.pdfEscape=function(A,t){return function(A,t){var e,r,n,i,s,a,o,l,c;if(n=(t||={}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&BA[hA].metadata&&BA[hA].metadata[n]&&BA[hA].metadata[n].encoding&&(i=BA[hA].metadata[n].encoding,!s&&BA[hA].encoding&&(s=BA[hA].encoding),!s&&i.codePages&&(s=i.codePages[0]),"string"==typeof s&&(s=i[s]),s)){for(o=!1,a=[],e=0,r=A.length;e<r;e++)(l=s[A.charCodeAt(e)])?a.push(String.fromCharCode(l)):a.push(A[e]),a[e].charCodeAt(0)>>8&&(o=!0);A=a.join("")}for(e=A.length;void 0===o&&0!==e;)A.charCodeAt(e-1)>>8&&(o=!0),e--;if(!o)return A;for(a=t.noBOM?[]:[254,255],e=0,r=A.length;e<r;e++){if((c=(l=A.charCodeAt(e))>>8)>>8)throw Error("Character at position "+e+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(l-(c<<8))}return String.fromCharCode.apply(void 0,a)}(A,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},nt=f.__private__.beginPage=function(A){X[++QA]=[],xA[QA]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(A[0]),topRightY:Number(A[1])}},at(QA),J(X[M])},it=function(A,t){var r,i,s;switch(e=t||e,"string"==typeof A&&(r=B(A.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(A)&&(i=A[0]*fA,s=A[1]*fA),isNaN(i)&&(i=n[0],s=n[1]),(i>14400||s>14400)&&(ju.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),n=[i,s],e.substr(0,1)){case"l":s>i&&(n=[s,i]);break;case"p":i>s&&(n=[s,i])}nt(n),Rt(Dt),Z(Wt),0!==te&&Z(te+" J"),0!==ee&&Z(ee+" j"),UA.publish("addPage",{pageNumber:QA})},st=function(A){A>0&&A<=QA&&(X.splice(A,1),xA.splice(A,1),QA--,M>QA&&(M=QA),this.setPage(M))},at=function(A){A>0&&A<=QA&&(M=A)},ot=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return X.length-1},lt=function(A,t,e){var r,n=void 0;return e||={},A=void 0===A?BA[hA].fontName:A,t=void 0===t?BA[hA].fontStyle:t,r=A.toLowerCase(),void 0!==wA[r]&&void 0!==wA[r][t]?n=wA[r][t]:void 0!==wA[A]&&void 0!==wA[A][t]?n=wA[A][t]:!1===e.disableWarning&&ju.warn("Unable to look up font label for font '"+A+"', '"+t+"'. Refer to getFontList() for available fonts."),n||e.noFallback||((n=wA.times[t])??(n=wA.times.normal)),n},ct=f.__private__.putInfo=function(){var A=OA(),t=function(A){return A};for(var e in null!==c&&(t=vt.encryptor(A,0)),Z("<<"),Z("/Producer ("+rt(t("jsPDF "+vh.version))+")"),uA)uA.hasOwnProperty(e)&&uA[e]&&Z("/"+e.substr(0,1).toUpperCase()+e.substr(1)+" ("+rt(t(uA[e]))+")");Z("/CreationDate ("+rt(t(I))+")"),Z(">>"),Z("endobj")},ut=f.__private__.putCatalog=function(A){var t=(A||={}).rootDictionaryObjId||RA;switch(OA(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+t+" 0 R"),rA||="fullwidth",rA){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var e=""+rA;"%"===e.substr(e.length-1)&&(rA=parseInt(rA)/100),"number"==typeof rA&&Z("/OpenAction [3 0 R /XYZ null null "+E(rA)+"]")}switch(oA||="continuous",oA){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}sA&&Z("/PageMode /"+sA),UA.publish("putCatalog"),Z(">>"),Z("endobj")},ht=f.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(V+1)),Z("/Root "+V+" 0 R"),Z("/Info "+(V-1)+" 0 R"),null!==c&&Z("/Encrypt "+vt.oid+" 0 R"),Z("/ID [ <"+N+"> <"+N+"> ]"),Z(">>")},ft=f.__private__.putHeader=function(){Z("%PDF-"+d),Z("%ºß¬à")},dt=f.__private__.putXRef=function(){var A="0000000000";Z("xref"),Z("0 "+(V+1)),Z("0000000000 65535 f ");for(var t=1;t<=V;t++)"function"==typeof j[t]?Z((A+j[t]()).slice(-10)+" 00000 n "):void 0===j[t]?Z("0000000000 00000 n "):Z((A+j[t]).slice(-10)+" 00000 n ")},gt=f.__private__.buildDocument=function(){var A;V=0,z=0,G=[],j=[],q=[],RA=TA(),KA=TA(),J(G),UA.publish("buildDocument"),ft(),XA(),function(){UA.publish("putAdditionalObjects");for(var A=0;A<q.length;A++){var t=q[A];DA(t.objId,!0),Z(t.content),Z("endobj")}UA.publish("postPutAdditionalObjects")}(),A=[],function(){for(var A in BA)BA.hasOwnProperty(A)&&(!1===u||!0===u&&h.hasOwnProperty(A))&&WA(BA[A])}(),function(){for(var A in bA)bA.hasOwnProperty(A)&&$A(bA[A])}(),function(){for(var A in LA)LA.hasOwnProperty(A)&&YA(LA[A])}(),function(A){for(var t in yA)yA.hasOwnProperty(t)&&(yA[t]instanceof mh?JA(yA[t]):yA[t]instanceof yh&&ZA(yA[t],A))}(A),UA.publish("putResources"),A.forEach(At),At({resourcesOid:KA,objectOid:2**53-1}),UA.publish("postPutResources"),null!==c&&(vt.oid=OA(),Z("<<"),Z("/Filter /Standard"),Z("/V "+vt.v),Z("/R "+vt.r),Z("/U <"+vt.toHexString(vt.U)+">"),Z("/O <"+vt.toHexString(vt.O)+">"),Z("/P "+vt.P),Z(">>"),Z("endobj")),ct(),ut();var t=z;return dt(),ht(),Z("startxref"),Z(""+t),Z("%%EOF"),J(X[M]),G.join("\n")},pt=f.__private__.getBlob=function(A){return new Blob([AA(A)],{type:"application/pdf"})},Bt=function(A){for(;A.firstChild;)A.removeChild(A.firstChild)},wt=function(A){var t,e=A.document,r=e.documentElement,n=e.head,i=e.body;return n||(n=e.createElement("head"),r.appendChild(n)),i||(i=e.createElement("body"),r.appendChild(i)),Bt(n),Bt(i),(t=e.createElement("style")).appendChild(e.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),n.appendChild(t),{document:e,body:i}},mt=f.output=f.__private__.output=(kA=function(A,t){switch("string"==typeof(t||={})?t={filename:t}:t.filename=t.filename||"generated.pdf",A){case void 0:return gt();case"save":f.save(t.filename);break;case"arraybuffer":return AA(gt());case"blob":return pt(gt());case"bloburi":case"bloburl":if(void 0!==Ku.URL&&"function"==typeof Ku.URL.createObjectURL)return Ku.URL&&Ku.URL.createObjectURL(pt(gt()))||void 0;ju.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var e="",r=gt();try{e=Ju(r)}catch{e=Ju(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+encodeURIComponent(t.filename)+";base64,"+e;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Ku)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=!t.pdfObjectUrl;i||(n=t.pdfObjectUrl);var s=Ku.open();if(null!==s){var a=wt(s),o=a.document.createElement("script"),l=this;o.src=n,i&&(o.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",o.crossOrigin="anonymous"),o.onload=function(){s.PDFObject.embed(l.output("dataurlstring"),t)},a.body.appendChild(o)}return s}throw Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Ku)){var c=t.pdfJsUrl||"examples/PDF.js/web/viewer.html",u=Ku.open();if(null!==u){var h=wt(u),d=h.document.createElement("iframe"),g=-1===c.indexOf("?")?"?":"&";l=this,d.id="pdfViewer",d.width="500px",d.height="400px",d.src=c+g+"file=&downloadName="+encodeURIComponent(t.filename),d.onload=function(){u.document.title=t.filename,d.contentWindow.PDFViewerApplication.open(l.output("bloburl"))},h.body.appendChild(d)}return u}throw Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Ku))throw Error("The option dataurlnewwindow just works in a browser-environment.");var p=Ku.open();if(null!==p){var B=wt(p),w=B.document.createElement("iframe");w.src=this.output("datauristring",t),B.body.appendChild(w),p.document.title=t.filename}if(p||typeof safari>"u")return p;break;case"datauri":case"dataurl":return Ku.document.location.href=this.output("datauristring",t);default:return null}},kA.foo=function(){try{return kA.apply(this,arguments)}catch(e){var A=e.stack||"";~A.indexOf(" at ")&&(A=A.split(" at ")[1]);var t="Error in function "+A.split("\n")[0].split("<")[0]+": "+e.message;if(!Ku.console)throw Error(t);Ku.console.error(t,e),Ku.alert&&alert(t)}},kA.foo.bar=kA,kA.foo),yt=function(A){return!0===Array.isArray(EA)&&EA.indexOf(A)>-1};switch(r){case"pt":fA=1;break;case"mm":fA=72/25.4;break;case"cm":fA=72/2.54;break;case"in":fA=72;break;case"px":fA=1==yt("px_scaling")?.75:96/72;break;case"pc":case"em":fA=12;break;case"ex":fA=6;break;default:if("number"!=typeof r)throw Error("Invalid unit: "+r);fA=r}var vt=null;T(),P();var bt=f.__private__.getPageInfo=f.getPageInfo=function(A){if(isNaN(A)||A%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:xA[A].objId,pageNumber:A,pageContext:xA[A]}},Ct=f.__private__.getPageInfoByObjId=function(A){if(isNaN(A)||A%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in xA)if(xA[t].objId===A)break;return bt(t)},Ft=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:xA[M].objId,pageNumber:M,pageContext:xA[M]}};f.addPage=function(){return it.apply(this,arguments),this},f.setPage=function(){return at.apply(this,arguments),J.call(this,X[M]),this},f.insertPage=function(A){return this.addPage(),this.movePage(M,A),this},f.movePage=function(A,t){var e,r;if(A>t){e=X[A],r=xA[A];for(var n=A;n>t;n--)X[n]=X[n-1],xA[n]=xA[n-1];X[t]=e,xA[t]=r,this.setPage(t)}else if(A<t){e=X[A],r=xA[A];for(var i=A;i<t;i++)X[i]=X[i+1],xA[i]=xA[i+1];X[t]=e,xA[t]=r,this.setPage(t)}return this},f.deletePage=function(){return st.apply(this,arguments),this},f.__private__.text=f.text=function(A,t,e,r,n){var i,s,a,o,l,c,u,f,d,g=(r||={}).scope||this;if("number"==typeof A&&"number"==typeof t&&("string"==typeof e||Array.isArray(e))){var p=e;e=t,t=A,A=p}if(arguments[3]instanceof IA==0?(a=arguments[4],o=arguments[5],"object"===F(u=arguments[3])&&null!==u||("string"==typeof a&&(o=a,a=null),"string"==typeof u&&(o=u,u=null),"number"==typeof u&&(a=u,u=null),r={flags:u,angle:a,align:o})):(x("The transform parameter of text() with a Matrix value"),d=n),isNaN(t)||isNaN(e)||null==A)throw Error("Invalid arguments passed to jsPDF.text");if(0===A.length)return g;var B,w="",v="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Tt,b=g.internal.scaleFactor;function C(A){return A=A.split("\t").join(Array(r.TabLen||9).join(" ")),rt(A,u)}function U(A){for(var t,e=A.concat(),r=[],n=e.length;n--;)"string"==typeof(t=e.shift())?r.push(t):Array.isArray(A)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function E(A,t){var e;if("string"==typeof A)e=t(A)[0];else if(Array.isArray(A)){for(var r,n,i=A.concat(),s=[],a=i.length;a--;)"string"==typeof(r=i.shift())?s.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(n=t(r[0],r[1],r[2]),s.push([n[0],n[1],n[2]]));e=s}return e}var L=!1,S=!0;if("string"==typeof A)L=!0;else if(Array.isArray(A)){var I=A.concat();s=[];for(var N,H=I.length;H--;)("string"!=typeof(N=I.shift())||Array.isArray(N)&&"string"!=typeof N[0])&&(S=!1);L=S}if(!1===L)throw Error('Type of text must be string or Array. "'+A+'" is not recognized.');"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]);var P=eA/g.internal.scaleFactor,k=P*(v-1);switch(r.baseline){case"bottom":e-=k;break;case"top":e+=P-k;break;case"hanging":e+=P-2*k;break;case"middle":e+=P/2-k}if((c=r.maxWidth||0)>0&&("string"==typeof A?A=g.splitTextToSize(A,c):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(g.splitTextToSize(t,c))}),[]))),i={text:A,x:t,y:e,options:r,mutex:{pdfEscape:rt,activeFontKey:hA,fonts:BA,activeFontSize:eA}},UA.publish("preProcessText",i),A=i.text,a=(r=i.options).angle,d instanceof IA==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),y===m&&(a=-a);var O=Math.cos(a),T=Math.sin(a);d=new IA(O,T,-T,O,0,0)}else a&&a instanceof IA&&(d=a);y!==m||d||(d=HA),void 0!==(l=r.charSpace||$t)&&(w+=Q(_(l))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(f=r.horizontalScale)&&(w+=Q(100*f)+" Tz\n"),r.lang;var D=-1,M=void 0===r.renderingMode?r.stroke:r.renderingMode,R=g.internal.getCurrentPageInfo().pageContext;switch(M){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var K=void 0===R.usedRenderingMode?-1:R.usedRenderingMode;-1===D?-1!==K&&(w+="0 Tr\n"):w+=D+" Tr\n",-1!==D&&(R.usedRenderingMode=D),o=r.align||"left";var V,j=eA*v,G=g.internal.pageSize.getWidth(),z=BA[hA];l=r.charSpace||$t,c=r.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},r.flags);var q=[],X=function(A){return g.getStringUnitWidth(A,{font:z,charSpace:l,fontSize:eA,doKerning:!1})*eA/b};if("[object Array]"===Object.prototype.toString.call(A)){var W;s=U(A),"left"!==o&&(V=s.map(X));var Y,J=0;if("right"===o){t-=V[0],A=[],H=s.length;for(var $=0;$<H;$++)0===$?(Y=Gt(t),W=zt(e)):(Y=_(J-V[$]),W=-j),A.push([s[$],Y,W]),J=V[$]}else if("center"===o){t-=V[0]/2,A=[],H=s.length;for(var AA=0;AA<H;AA++)0===AA?(Y=Gt(t),W=zt(e)):(Y=_((J-V[AA])/2),W=-j),A.push([s[AA],Y,W]),J=V[AA]}else if("left"===o){A=[],H=s.length;for(var tA=0;tA<H;tA++)A.push(s[tA])}else if("justify"===o&&"Identity-H"===z.encoding){A=[],H=s.length,c=0===c?G:c;for(var rA=0,nA=0;nA<H;nA++)if(W=0===nA?zt(e):-j,Y=0===nA?Gt(t):rA,nA<H-1){var sA=_((c-V[nA])/(s[nA].split(" ").length-1)),aA=s[nA].split(" ");A.push([aA[0]+" ",Y,W]),rA=0;for(var oA=1;oA<aA.length;oA++){var lA=(X(aA[oA-1]+" "+aA[oA])-X(aA[oA]))*b+sA;oA==aA.length-1?A.push([aA[oA],lA,0]):A.push([aA[oA]+" ",lA,0]),rA-=lA}}else A.push([s[nA],Y,W]);A.push(["",rA,0])}else{if("justify"!==o)throw Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(A=[],H=s.length,c=0===c?G:c,nA=0;nA<H;nA++){W=0===nA?zt(e):-j,Y=0===nA?Gt(t):0;var cA=s[nA].split(" ").length-1,uA=cA>0?(c-V[nA])/cA:0;nA<H-1?q.push(Q(_(uA))):q.push(0),A.push([s[nA],Y,W])}}}!0===("boolean"==typeof r.R2L?r.R2L:iA)&&(A=E(A,(function(A,t,e){return[A.split("").reverse().join(""),t,e]}))),i={text:A,x:t,y:e,options:r,mutex:{pdfEscape:rt,activeFontKey:hA,fonts:BA,activeFontSize:eA}},UA.publish("postProcessText",i),A=i.text,B=i.mutex.isHex||!1;var fA=BA[hA].encoding;"WinAnsiEncoding"!==fA&&"StandardEncoding"!==fA||(A=E(A,(function(A,t,e){return[C(A),t,e]}))),s=U(A),A=[];for(var dA,gA,pA,wA=Array.isArray(s[0])?1:0,mA="",yA=function(A,t,e){var n="";return e instanceof IA?(e="number"==typeof r.angle?NA(e,new IA(1,0,0,1,A,t)):NA(new IA(1,0,0,1,A,t),e),y===m&&(e=NA(new IA(1,0,0,-1,0,0),e)),n=e.join(" ")+" Tm\n"):n=Q(A)+" "+Q(t)+" Td\n",n},vA=0;vA<s.length;vA++){switch(mA="",wA){case 1:pA=(B?"<":"(")+s[vA][0]+(B?">":")"),dA=parseFloat(s[vA][1]),gA=parseFloat(s[vA][2]);break;case 0:pA=(B?"<":"(")+s[vA]+(B?">":")"),dA=Gt(t),gA=zt(e)}void 0!==q&&void 0!==q[vA]&&(mA=q[vA]+" Tw\n"),0===vA?A.push(mA+yA(dA,gA,d)+pA):0===wA?A.push(mA+pA):1===wA&&A.push(mA+yA(dA,gA,d)+pA)}A=0===wA?A.join(" Tj\nT* "):A.join(" Tj\n"),A+=" Tj\n";var bA="BT\n/";return bA+=hA+" "+eA+" Tf\n",bA+=Q(eA*v)+" TL\n",bA+=Jt+"\n",bA+=w,bA+=A,Z(bA+="ET"),h[hA]=!0,g};var Qt=f.__private__.clip=f.clip=function(A){return Z("evenodd"===A?"W*":"W"),this};f.clipEvenOdd=function(){return Qt("evenodd")},f.__private__.discardPath=f.discardPath=function(){return Z("n"),this};var xt=f.__private__.isValidStyle=function(A){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(A)&&(t=!0),t};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(A){return xt(A)&&(l=A),this};var Ut=f.__private__.getStyle=f.getStyle=function(A){var t=l;switch(A){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=A}return t},Et=f.close=function(){return Z("h"),this};f.stroke=function(){return Z("S"),this},f.fill=function(A){return Lt("f",A),this},f.fillEvenOdd=function(A){return Lt("f*",A),this},f.fillStroke=function(A){return Lt("B",A),this},f.fillStrokeEvenOdd=function(A){return Lt("B*",A),this};var Lt=function(A,t){"object"===F(t)?It(t,A):Z(A)},_t=function(A){null===A||y===m&&void 0===A||(A=Ut(A),Z(A))};function St(A,t,e,r,n){var i=new yh(t||this.boundingBox,e||this.xStep,r||this.yStep,this.gState,n||this.matrix);return i.stream=this.stream,PA(A+"$$"+this.cloneIndex+++"$$",i),i}var It=function(A,t){var e=vA[A.key],r=yA[e];if(r instanceof mh)Z("q"),Z(Nt(t)),r.gState&&f.setGState(r.gState),Z(A.matrix.toString()+" cm"),Z("/"+e+" sh"),Z("Q");else if(r instanceof yh){var n=new IA(1,0,0,-1,0,ge());A.matrix&&(n=n.multiply(A.matrix||HA),e=St.call(r,A.key,A.boundingBox,A.xStep,A.yStep,n).id),Z("q"),Z("/Pattern cs"),Z("/"+e+" scn"),r.gState&&f.setGState(r.gState),Z(t),Z("Q")}},Nt=function(A){switch(A){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ht=f.moveTo=function(A,t){return Z(Q(_(A))+" "+Q(S(t))+" m"),this},Pt=f.lineTo=function(A,t){return Z(Q(_(A))+" "+Q(S(t))+" l"),this},kt=f.curveTo=function(A,t,e,r,n,i){return Z([Q(_(A)),Q(S(t)),Q(_(e)),Q(S(r)),Q(_(n)),Q(S(i)),"c"].join(" ")),this};f.__private__.line=f.line=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!xt(n))throw Error("Invalid arguments passed to jsPDF.line");return y===w?this.lines([[e-A,r-t]],A,t,[1,1],n||"S"):this.lines([[e-A,r-t]],A,t,[1,1]).stroke()},f.__private__.lines=f.lines=function(A,t,e,r,n,i){var s,a,o,l,c,u,h,f,d,g,p,B;if("number"==typeof A&&(B=e,e=t,t=A,A=B),r||=[1,1],i||=!1,isNaN(t)||isNaN(e)||!Array.isArray(A)||!Array.isArray(r)||!xt(n)||"boolean"!=typeof i)throw Error("Invalid arguments passed to jsPDF.lines");for(Ht(t,e),s=r[0],a=r[1],l=A.length,g=t,p=e,o=0;o<l;o++)2===(c=A[o]).length?(g=c[0]*s+g,p=c[1]*a+p,Pt(g,p)):(u=c[0]*s+g,h=c[1]*a+p,f=c[2]*s+g,d=c[3]*a+p,g=c[4]*s+g,p=c[5]*a+p,kt(u,h,f,d,g,p));return i&&Et(),_t(n),this},f.path=function(A){for(var t=0;t<A.length;t++){var e=A[t],r=e.c;switch(e.op){case"m":Ht(r[0],r[1]);break;case"l":Pt(r[0],r[1]);break;case"c":kt.apply(this,r);break;case"h":Et()}}return this},f.__private__.rect=f.rect=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!xt(n))throw Error("Invalid arguments passed to jsPDF.rect");return y===w&&(r=-r),Z([Q(_(A)),Q(S(t)),Q(_(e)),Q(_(r)),"re"].join(" ")),_t(n),this},f.__private__.triangle=f.triangle=function(A,t,e,r,n,i,s){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!xt(s))throw Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[e-A,r-t],[n-e,i-r],[A-n,t-i]],A,t,[1,1],s,!0),this},f.__private__.roundedRect=f.roundedRect=function(A,t,e,r,n,i,s){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!xt(s))throw Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*e),i=Math.min(i,.5*r),this.lines([[e-2*n,0],[n*a,0,n,i-i*a,n,i],[0,r-2*i],[0,i*a,-n*a,i,-n,i],[2*n-e,0],[-n*a,0,-n,-i*a,-n,-i],[0,2*i-r],[0,-i*a,n*a,-i,n,-i]],A+n,t,[1,1],s,!0),this},f.__private__.ellipse=f.ellipse=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!xt(n))throw Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*e,s=4/3*(Math.SQRT2-1)*r;return Ht(A+e,t),kt(A+e,t-s,A+i,t-r,A,t-r),kt(A-i,t-r,A-e,t-s,A-e,t),kt(A-e,t+s,A-i,t+r,A,t+r),kt(A+i,t+r,A+e,t+s,A+e,t),_t(n),this},f.__private__.circle=f.circle=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||!xt(r))throw Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(A,t,e,e,r)},f.setFont=function(A,t,e){return e&&(t=C(t,e)),hA=lt(A,t,{disableWarning:!1}),this};var Ot=f.__private__.getFont=f.getFont=function(){return BA[lt.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var A,t,e={};for(A in wA)if(wA.hasOwnProperty(A))for(t in e[A]=[],wA[A])wA[A].hasOwnProperty(t)&&e[A].push(t);return e},f.addFont=function(A,t,e,r,n){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(e=C(e,r)),et.call(this,A,t,e,n||="Identity-H")};var Tt,Dt=A.lineWidth||.200025,Mt=f.__private__.getLineWidth=f.getLineWidth=function(){return Dt},Rt=f.__private__.setLineWidth=f.setLineWidth=function(A){return Dt=A,Z(Q(_(A))+" w"),this};f.__private__.setLineDash=vh.API.setLineDash=vh.API.setLineDashPattern=function(A,t){if(A||=[],t||=0,isNaN(t)||!Array.isArray(A))throw Error("Invalid arguments passed to jsPDF.setLineDash");return A=A.map((function(A){return Q(_(A))})).join(" "),t=Q(_(t)),Z("["+A+"] "+t+" d"),this};var Kt=f.__private__.getLineHeight=f.getLineHeight=function(){return eA*Tt};f.__private__.getLineHeight=f.getLineHeight=function(){return eA*Tt};var Vt=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(A){return"number"==typeof(A||=1.15)&&(Tt=A),this},jt=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Tt};Vt(A.lineHeight);var Gt=f.__private__.getHorizontalCoordinate=function(A){return _(A)},zt=f.__private__.getVerticalCoordinate=function(A){return y===m?A:xA[M].mediaBox.topRightY-xA[M].mediaBox.bottomLeftY-_(A)},qt=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(A){return Q(Gt(A))},Xt=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(A){return Q(zt(A))},Wt=A.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return VA(Wt)},f.__private__.setStrokeColor=f.setDrawColor=function(A,t,e,r){return Wt=jA({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"draw",precision:2}),Z(Wt),this};var Yt=A.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return VA(Yt)},f.__private__.setFillColor=f.setFillColor=function(A,t,e,r){return Yt=jA({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"fill",precision:2}),Z(Yt),this};var Jt=A.textColor||"0 g",Zt=f.__private__.getTextColor=f.getTextColor=function(){return VA(Jt)};f.__private__.setTextColor=f.setTextColor=function(A,t,e,r){return Jt=jA({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"text",precision:3}),this};var $t=A.charSpace,Ae=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat($t||0)};f.__private__.setCharSpace=f.setCharSpace=function(A){if(isNaN(A))throw Error("Invalid argument passed to jsPDF.setCharSpace");return $t=A,this};var te=0;f.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},f.__private__.setLineCap=f.setLineCap=function(A){var t=f.CapJoinStyles[A];if(void 0===t)throw Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return te=t,Z(t+" J"),this};var ee=0;f.__private__.setLineJoin=f.setLineJoin=function(A){var t=f.CapJoinStyles[A];if(void 0===t)throw Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ee=t,Z(t+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(A){if(A||=0,isNaN(A))throw Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(Q(_(A))+" M"),this},f.GState=Bh,f.setGState=function(A){(A="string"==typeof A?bA[CA[A]]:re(null,A)).equals(FA)||(Z("/"+A.id+" gs"),FA=A)};var re=function(A,t){if(!A||!CA[A]){var e=!1;for(var r in bA)if(bA.hasOwnProperty(r)&&bA[r].equals(t)){e=!0;break}if(e)t=bA[r];else{var n="GS"+(Object.keys(bA).length+1).toString(10);bA[n]=t,t.id=n}return A&&(CA[A]=t.id),UA.publish("addGState",t),t}};f.addGState=function(A,t){return re(A,t),this},f.saveGraphicsState=function(){return Z("q"),mA.push({key:hA,size:eA,color:Jt}),this},f.restoreGraphicsState=function(){Z("Q");var A=mA.pop();return hA=A.key,eA=A.size,Jt=A.color,FA=null,this},f.setCurrentTransformationMatrix=function(A){return Z(A.toString()+" cm"),this},f.comment=function(A){return Z("#"+A),this};var ne=function(A,t){var e=A||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(A){isNaN(A)||(e=parseFloat(A))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(A){isNaN(A)||(r=parseFloat(A))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(A){n=A.toString()}}),this},ie=function(A,t,e,r){ne.call(this,A,t),this.type="rect";var n=e||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(A){isNaN(A)||(n=parseFloat(A))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(A){isNaN(A)||(i=parseFloat(A))}}),this},se=function(){this.page=QA,this.currentPage=M,this.pages=X.slice(0),this.pagesContext=xA.slice(0),this.x=dA,this.y=gA,this.matrix=pA,this.width=le(M),this.height=ue(M),this.outputDestination=Y,this.id="",this.objectNumber=-1};se.prototype.restore=function(){QA=this.page,M=this.currentPage,xA=this.pagesContext,X=this.pages,dA=this.x,gA=this.y,pA=this.matrix,ce(M,this.width),he(M,this.height),Y=this.outputDestination};var ae=function(A,t,e,r,n){SA.push(new se),QA=M=0,X=[],dA=A,gA=t,pA=n,nt([e,r])};for(var oe in f.beginFormObject=function(A,t,e,r,n){return ae(A,t,e,r,n),this},f.endFormObject=function(A){return function(A){if(_A[A])SA.pop().restore();else{var t=new se,e="Xo"+(Object.keys(LA).length+1).toString(10);t.id=e,_A[A]=e,LA[e]=t,UA.publish("addFormObject",t),SA.pop().restore()}}(A),this},f.doFormObject=function(A,t){var e=LA[_A[A]];return Z("q"),Z(t.toString()+" cm"),Z("/"+e.id+" Do"),Z("Q"),this},f.getFormObject=function(A){var t=LA[_A[A]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},f.save=function(A,t){return A||="generated.pdf",(t||={}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(Xu(pt(gt()),A),"function"==typeof Xu.unload&&Ku.setTimeout&&setTimeout(Xu.unload,911),this):new Promise((function(t,e){try{var r=Xu(pt(gt()),A);"function"==typeof Xu.unload&&Ku.setTimeout&&setTimeout(Xu.unload,911),t(r)}catch(A){e(A.message)}}))},vh.API)vh.API.hasOwnProperty(oe)&&("events"===oe&&vh.API.events.length?function(A,t){var e,r,n;for(n=t.length-1;-1!==n;n--)e=t[n][0],r=t[n][1],A.subscribe.apply(A,[e].concat("function"==typeof r?[r]:r))}(UA,vh.API.events):f[oe]=vh.API[oe]);function le(A){return xA[A].mediaBox.topRightX-xA[A].mediaBox.bottomLeftX}function ce(A,t){xA[A].mediaBox.topRightX=t+xA[A].mediaBox.bottomLeftX}function ue(A){return xA[A].mediaBox.topRightY-xA[A].mediaBox.bottomLeftY}function he(A,t){xA[A].mediaBox.topRightY=t+xA[A].mediaBox.bottomLeftY}var fe=f.getPageWidth=function(A){return le(A||=M)/fA},de=f.setPageWidth=function(A,t){ce(A,t*fA)},ge=f.getPageHeight=function(A){return ue(A||=M)/fA},pe=f.setPageHeight=function(A,t){he(A,t*fA)};return f.internal={pdfEscape:rt,getStyle:Ut,getFont:Ot,getFontSize:nA,getCharSpace:Ae,getTextColor:Zt,getLineHeight:Kt,getLineHeightFactor:jt,getLineWidth:Mt,write:$,getHorizontalCoordinate:Gt,getVerticalCoordinate:zt,getCoordinateString:qt,getVerticalCoordinateString:Xt,collections:{},newObject:OA,newAdditionalObject:MA,newObjectDeferred:TA,newObjectDeferredBegin:DA,getFilters:GA,putStream:zA,events:UA,scaleFactor:fA,pageSize:{getWidth:function(){return fe(M)},setWidth:function(A){de(M,A)},getHeight:function(){return ge(M)},setHeight:function(A){pe(M,A)}},encryptionOptions:c,encryption:vt,getEncryptor:function(A){return null===c?function(A){return A}:vt.encryptor(A,0)},output:mt,getNumberOfPages:ot,get pages(){return X},out:Z,f2:E,f3:L,getPageInfo:bt,getPageInfoByObjId:Ct,getCurrentPageInfo:Ft,getPDFVersion:g,Point:ne,Rectangle:ie,Matrix:IA,hasHotfix:yt},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return fe(M)},set:function(A){de(M,A)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return ge(M)},set:function(A){pe(M,A)},enumerable:!0,configurable:!0}),function(A){for(var t=0,e=tA.length;t<e;t++){var r=et.call(this,A[t][0],A[t][1],A[t][2],tA[t][3],!0);!1===u&&(h[r]=!0);var n=A[t][0].split("-");tt({id:r,fontName:n[0],fontStyle:n[1]||""})}UA.publish("addFonts",{fonts:BA,dictionary:wA})}.call(f,tA),hA="F1",it(n,e),UA.publish("initialized"),f}dh.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},dh.prototype.toHexString=function(A){return A.split("").map((function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)})).join("")},dh.prototype.hexToBytes=function(A){for(var t=[],e=0;e<A.length;e+=2)t.push(String.fromCharCode(parseInt(A.substr(e,2),16)));return t.join("")},dh.prototype.processOwnerPassword=function(A,t){return hh(lh(t).substr(0,5),A)},dh.prototype.encryptor=function(A,t){var e=lh(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(A){return hh(e,A)}},Bh.prototype.equals=function(A){var t,e="id,objectNumber,equals";if(!A||F(A)!==F(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t)||this[t]!==A[t])return!1;r++}for(t in A)A.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return 0===r},vh.API={events:[]},vh.version="4.2.1";var bh=vh.API,Ch=1,Fh=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qh=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},xh=function(A){return A.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,(function(A){var t=A.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===t.length?"0"+t:t)}))},Uh=function(A){return A.toFixed(2)},Eh=function(A){return A.toFixed(5)};bh.__acroform__={};var Lh=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},_h=function(A){return A*Ch},Sh=function(A){var t=new qh,e=of.internal.getHeight(A)||0,r=of.internal.getWidth(A)||0;return t.BBox=[0,0,Number(Uh(r)),Number(Uh(e))],t},Ih=bh.__acroform__.setBit=function(A,t){if(A||=0,t||=0,isNaN(A)||isNaN(t))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<t},Nh=bh.__acroform__.clearBit=function(A,t){if(A||=0,t||=0,isNaN(A)||isNaN(t))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<t)},Hh=bh.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<t?1:0},Ph=bh.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Hh(A,t-1)},kh=bh.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ih(A,t-1)},Oh=bh.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Nh(A,t-1)},Th=bh.__acroform__.calculateCoordinates=function(A,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=A[0],i=A[1],s=A[2],a=A[3],o={};return o.lowerLeft_X=e(n)||0,o.lowerLeft_Y=r(i+a)||0,o.upperRight_X=e(n+s)||0,o.upperRight_Y=r(i)||0,[Number(Uh(o.lowerLeft_X)),Number(Uh(o.lowerLeft_Y)),Number(Uh(o.upperRight_X)),Number(Uh(o.upperRight_Y))]},Dh=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=Mh(A,A._V||A.DV),r=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+r+" "+Uh(e.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(e.text),t.push("ET"),t.push("Q"),t.push("EMC");var n=Sh(A);return n.scope=A.scope,n.stream=t.join("\n"),n}},Mh=function(A,t){var e=0===A.fontSize?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");n=A.multiline?n.map((function(A){return A.split("\n")})):n.map((function(A){return[A]}));var i=e,s=of.internal.getHeight(A)||0;s=s<0?-s:s;var a=of.internal.getWidth(A)||0;a=a<0?-a:a;var o=function(t,e,r){return t+1<n.length&&Rh(e+" "+n[t+1][0],A,r).width<=a-4};i++;A:for(;i>0;){t="",i--;var l,c,u=Rh("3",A,i).height,h=A.multiline?s-i:(s-u)/2,f=h+=2,d=0,g=0,p=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+Rh(t,A,i=12).width+", FieldWidth:"+a+"\n";break}for(var B="",w=0,m=0;m<n.length;m++)if(n.hasOwnProperty(m)){var y=!1;if(1!==n[m].length&&p!==n[m].length-1){if((u+2)*(w+2)+2>s)continue A;B+=n[m][p],y=!0,g=m,m--}else{B=" "==(B+=n[m][p]+" ").substr(B.length-1)?B.substr(0,B.length-1):B;var v=parseInt(m),b=o(v,B,i),C=m>=n.length-1;if(b&&!C){B+=" ",p=0;continue}if(b||C){if(C)g=v;else if(A.multiline&&(u+2)*(w+2)+2>s)continue A}else{if(!A.multiline||(u+2)*(w+2)+2>s)continue A;g=v}}for(var F="",Q=d;Q<=g;Q++){var x=n[Q];if(A.multiline){if(Q===g){F+=x[p]+" ",p=(p+1)%x.length;continue}if(Q===d){F+=x[x.length-1]+" ";continue}}F+=x[0]+" "}switch(F=" "==F.substr(F.length-1)?F.substr(0,F.length-1):F,c=Rh(F,A,i).width,A.textAlign){case"right":l=a-c-2;break;case"center":l=(a-c)/2;break;default:l=2}t+=Uh(l)+" "+Uh(f)+" Td\n",t+="("+Fh(F)+") Tj\n",t+=-Uh(l)+" 0 Td\n",f=-(i+2),c=0,d=y?g:g+1,w++,B=""}break}return r.text=t,r.fontSize=i,r},Rh=function(A,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},Kh={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Vh=function(A,t){var e={type:"reference",object:A};void 0===t.internal.getPageInfo(A.page).pageContext.annotations.find((function(A){return A.type===e.type&&A.object===e.object}))&&t.internal.getPageInfo(A.page).pageContext.annotations.push(e)},jh=bh.__acroform__.arrayToPdfArray=function(A,t,e){var r=function(A){return A};if(Array.isArray(A)){for(var n="[",i=0;i<A.length;i++)switch(0!==i&&(n+=" "),F(A[i])){case"boolean":case"number":case"object":n+=A[i].toString();break;case"string":"/"===A[i].substr(0,1)?n+="/"+xh(A[i].substr(1)):(void 0!==t&&e&&(r=e.internal.getEncryptor(t)),n+="("+Fh(r(A[i].toString()))+")")}return n+"]"}throw Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Gh=function(A,t,e){var r=function(A){return A};return void 0!==t&&e&&(r=e.internal.getEncryptor(t)),(A||="").toString(),"("+Fh(r(A))+")"},zh=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};zh.prototype.toString=function(){return this.objId+" 0 R"},zh.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},zh.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter((function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"scope"!=A&&"objId"!=A&&"_"!=A.substring(0,1)}));for(var e in t)if(!1===Object.getOwnPropertyDescriptor(this,t[e]).configurable){var r=t[e],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:jh(n,this.objId,this.scope)}):n instanceof zh?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):"function"!=typeof n&&A.push({key:r,value:n}))}return A};var qh=function(){zh.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 A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){A=t.trim()},get:function(){return A||null}})};Lh(qh,zh);var Xh=function(){zh.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Fh(t(A))+")"}},set:function(t){A=t}})};Lh(Xh,zh);var Wh=function A(){zh.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){if(isNaN(A))throw Error('Invalid value "'+A+'" for attribute F supplied.');t=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ph(t,3)},set:function(A){this.F=1==!!A?kh(t,3):Oh(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){if(isNaN(A))throw Error('Invalid value "'+A+'" for attribute Ff supplied.');e=A}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(A){r=void 0===A?[]:A}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(A){r[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(A){r[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(A){r[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(A){r[3]=A}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=A;break;default:throw Error('Invalid value "'+A+'" 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 rf)return;i="FieldObject"+A.FieldNum++}var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Fh(t(i))+")"},set:function(A){i=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(A){i=A}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(A){a=A}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/Ch:l},set:function(A){l=A}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(A){c=A}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof rf||this instanceof sf))return Gh(u,this.objId,this.scope)},set:function(A){A=A.toString(),u=A}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Af==0?Gh(h,this.objId,this.scope):h},set:function(A){A=A.toString(),h=this instanceof Af==0?"("===A.substr(0,1)?Qh(A.substr(1,A.length-2)):Qh(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Af==1?Qh(h.substr(1,h.length-1)):h},set:function(A){A=A.toString(),h=this instanceof Af==1?"/"+xh(A):A}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Af==0?Gh(f,this.objId,this.scope):f},set:function(A){A=A.toString(),f=this instanceof Af==0?"("===A.substr(0,1)?Qh(A.substr(1,A.length-2)):Qh(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Af==1?Qh(f.substr(1,f.length-1)):f},set:function(A){A=A.toString(),f=this instanceof Af==1?"/"+xh(A):A}}),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 d,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(A){g=A=!!A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(A){d=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,1)},set:function(A){this.Ff=1==!!A?kh(this.Ff,1):Oh(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,2)},set:function(A){this.Ff=1==!!A?kh(this.Ff,2):Oh(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,3)},set:function(A){this.Ff=1==!!A?kh(this.Ff,3):Oh(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==p)return p},set:function(A){if(-1===[0,1,2].indexOf(A))throw Error('Invalid value "'+A+'" for attribute Q supplied.');p=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(p){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:p=2;break;case"center":case 1:p=1;break;default:p=0}}})};Lh(Wh,zh);var Yh=function(){Wh.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return jh(t,this.objId,this.scope)},set:function(A){var e,r=[];"string"==typeof(e=A)&&(r=function(A,t,e){e||=1;for(var r,n=[];r=t.exec(A);)n.push(r[e]);return n}(e,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A||="").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,e){for(e||=!1,A=(A||="").toString();-1!==t.indexOf(A)&&(t.splice(t.indexOf(A),1),!1!==e););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,18)},set:function(A){this.Ff=1==!!A?kh(this.Ff,18):Oh(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,19)},set:function(A){!0===this.combo&&(this.Ff=1==!!A?kh(this.Ff,19):Oh(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,20)},set:function(A){1==!!A?(this.Ff=kh(this.Ff,20),t.sort()):this.Ff=Oh(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,22)},set:function(A){this.Ff=1==!!A?kh(this.Ff,22):Oh(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,23)},set:function(A){this.Ff=1==!!A?kh(this.Ff,23):Oh(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,27)},set:function(A){this.Ff=1==!!A?kh(this.Ff,27):Oh(this.Ff,27)}}),this.hasAppearanceStream=!1};Lh(Yh,Wh);var Jh=function(){Yh.call(this),this.fontName="helvetica",this.combo=!1};Lh(Jh,Yh);var Zh=function(){Jh.call(this),this.combo=!0};Lh(Zh,Jh);var $h=function(){Zh.call(this),this.edit=!0};Lh($h,Zh);var Af=function(){Wh.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,15)},set:function(A){this.Ff=1==!!A?kh(this.Ff,15):Oh(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,16)},set:function(A){this.Ff=1==!!A?kh(this.Ff,16):Oh(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,17)},set:function(A){this.Ff=1==!!A?kh(this.Ff,17):Oh(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,26)},set:function(A){this.Ff=1==!!A?kh(this.Ff,26):Oh(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var e,r=[];for(e in r.push("<<"),t)r.push("/"+e+" ("+Fh(A(t[e]))+")");return r.push(">>"),r.join("\n")}},set:function(A){"object"===F(A)&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){"string"==typeof A&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),A="/"+xh(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+xh(t)}})};Lh(Af,Wh);var tf=function(){Af.call(this),this.pushButton=!0};Lh(tf,Af);var ef=function(){Af.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=void 0===t?[]:t}})};Lh(ef,Af);var rf=function(){var A,t;Wh.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(A){t=A}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var t,e=[];for(t in e.push("<<"),r)e.push("/"+t+" ("+Fh(A(r[t]))+")");return e.push(">>"),e.join("\n")},set:function(A){"object"===F(A)&&(r=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(A){"string"==typeof A&&(r.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){var t=null==A?"":A.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),e="/"+xh(t)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(A){var t=null==A?"":A.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),e="/"+xh(t)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=of.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Lh(rf,Wh),ef.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e.optionName),e.caption=A.getCA()}},ef.prototype.createOption=function(A){var t=new rf;return t.Parent=this,t.optionName=A,this.Kids.push(t),lf.call(this.scope,t),t};var nf=function(){Af.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=of.CheckBox.createAppearanceStream()};Lh(nf,Af);var sf=function(){Wh.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,13)},set:function(A){this.Ff=1==!!A?kh(this.Ff,13):Oh(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,21)},set:function(A){this.Ff=1==!!A?kh(this.Ff,21):Oh(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,23)},set:function(A){this.Ff=1==!!A?kh(this.Ff,23):Oh(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,24)},set:function(A){this.Ff=1==!!A?kh(this.Ff,24):Oh(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,25)},set:function(A){this.Ff=1==!!A?kh(this.Ff,25):Oh(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,26)},set:function(A){this.Ff=1==!!A?kh(this.Ff,26):Oh(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Lh(sf,Wh);var af=function(){sf.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ph(this.Ff,14)},set:function(A){this.Ff=1==!!A?kh(this.Ff,14):Oh(this.Ff,14)}}),this.password=!0};Lh(af,sf);var of={CheckBox:{createAppearanceStream:function(){return{N:{On:of.CheckBox.YesNormal},D:{On:of.CheckBox.YesPushDown,Off:of.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=Sh(A);t.scope=A.scope;var e=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=Mh(A,A.caption);return e.push("0.749023 g"),e.push("0 0 "+Uh(of.internal.getWidth(A))+" "+Uh(of.internal.getHeight(A))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+Uh(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join("\n"),t},YesNormal:function(A){var t=Sh(A);t.scope=A.scope;var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=of.internal.getHeight(A),s=of.internal.getWidth(A),a=Mh(A,A.caption);return n.push("1 g"),n.push("0 0 "+Uh(s)+" "+Uh(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+Uh(s-1)+" "+Uh(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+Uh(a.fontSize)+" Tf "+r),n.push(a.text),n.push("ET"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(A){var t=Sh(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Uh(of.internal.getWidth(A))+" "+Uh(of.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:of.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=of.RadioButton.Circle.YesNormal,t.D[A]=of.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=Sh(A);t.scope=A.scope;var e=[],r=of.internal.getWidth(A)<=of.internal.getHeight(A)?of.internal.getWidth(A)/4:of.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=of.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Eh(of.internal.getWidth(A)/2)+" "+Eh(of.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=Sh(A);t.scope=A.scope;var e=[],r=of.internal.getWidth(A)<=of.internal.getHeight(A)?of.internal.getWidth(A)/4:of.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*of.internal.Bezier_C).toFixed(5)),s=Number((r*of.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Eh(of.internal.getWidth(A)/2)+" "+Eh(of.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Eh(of.internal.getWidth(A)/2)+" "+Eh(of.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(A){var t=Sh(A);t.scope=A.scope;var e=[],r=of.internal.getWidth(A)<=of.internal.getHeight(A)?of.internal.getWidth(A)/4:of.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*of.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Eh(of.internal.getWidth(A)/2)+" "+Eh(of.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:of.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=of.RadioButton.Cross.YesNormal,t.D[A]=of.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=Sh(A);t.scope=A.scope;var e=[],r=of.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+Uh(of.internal.getWidth(A)-2)+" "+Uh(of.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(Uh(r.x1.x)+" "+Uh(r.x1.y)+" m"),e.push(Uh(r.x2.x)+" "+Uh(r.x2.y)+" l"),e.push(Uh(r.x4.x)+" "+Uh(r.x4.y)+" m"),e.push(Uh(r.x3.x)+" "+Uh(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=Sh(A);t.scope=A.scope;var e=of.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+Uh(of.internal.getWidth(A))+" "+Uh(of.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Uh(of.internal.getWidth(A)-2)+" "+Uh(of.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(Uh(e.x1.x)+" "+Uh(e.x1.y)+" m"),r.push(Uh(e.x2.x)+" "+Uh(e.x2.y)+" l"),r.push(Uh(e.x4.x)+" "+Uh(e.x4.y)+" m"),r.push(Uh(e.x3.x)+" "+Uh(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(A){var t=Sh(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Uh(of.internal.getWidth(A))+" "+Uh(of.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+e}};of.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=of.internal.getWidth(A),e=of.internal.getHeight(A),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},of.internal.getWidth=function(A){var t=0;return"object"===F(A)&&(t=_h(A.Rect[2])),t},of.internal.getHeight=function(A){var t=0;return"object"===F(A)&&(t=_h(A.Rect[3])),t};var lf=bh.addField=function(A){if(function(A,t){if(t.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(Wh.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(Kh)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("Exception while creating AcroformDictionary");Ch=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new Xh,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",(function(){!function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0}(A)})),A.internal.events.subscribe("buildDocument",(function(){!function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&Vh(r,A)}}(A)})),A.internal.events.subscribe("putCatalog",(function(){!function(A){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)})),A.internal.events.subscribe("postPutPages",(function(t){!function(A,t){var e=!A;for(var r in A||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),A||=t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(A.hasOwnProperty(r)){var n=A[r],i=[],s=n.Rect;if(n.Rect&&=Th(n.Rect,t),t.internal.newObjectDeferredBegin(n.objId,!0),n.DA=of.createDefaultAppearanceStream(n),"object"===F(n)&&"function"==typeof n.getKeyValueListForStream&&(i=n.getKeyValueListForStream()),n.Rect=s,n.hasAppearanceStream&&!n.appearanceStreamContent){var a=Dh(n);i.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(n.appearanceStreamContent){var o="";for(var l in n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(l)){var c=n.appearanceStreamContent[l];if(o+="/"+l+" ",o+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var r in c)if(c.hasOwnProperty(r)){var u=c[r];"function"==typeof u&&(u=u.call(t,n)),o+="/"+r+" "+u+" ",t.internal.acroformPlugin.xForms.indexOf(u)>=0||t.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=c)&&(u=u.call(t,n)),o+="/"+r+" "+u,t.internal.acroformPlugin.xForms.indexOf(u)>=0||t.internal.acroformPlugin.xForms.push(u);o+=">>"}i.push({key:"AP",value:"<<\n"+o+">>"})}t.internal.putStream({additionalKeyValues:i,objectId:n.objId}),t.internal.out("endobj")}e&&function(A,t){for(var e in A)if(A.hasOwnProperty(e)){var r=e,n=A[e];t.internal.newObjectDeferredBegin(n.objId,!0),"object"===F(n)&&"function"==typeof n.putStream&&n.putStream(),delete A[r]}}(t.internal.acroformPlugin.xForms,t)}(t,A)})),A.internal.acroformPlugin.isInitialized=!0}}(this,A),!(A instanceof Wh))throw Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};function cf(A){return A.reduce((function(A,t,e){return A[t]=e,A}),{})}bh.AcroFormChoiceField=Yh,bh.AcroFormListBox=Jh,bh.AcroFormComboBox=Zh,bh.AcroFormEditBox=$h,bh.AcroFormButton=Af,bh.AcroFormPushButton=tf,bh.AcroFormRadioButton=ef,bh.AcroFormCheckBox=nf,bh.AcroFormTextField=sf,bh.AcroFormPasswordField=af,bh.AcroFormAppearance=of,bh.AcroForm={ChoiceField:Yh,ListBox:Jh,ComboBox:Zh,EditBox:$h,Button:Af,PushButton:tf,RadioButton:ef,CheckBox:nf,TextField:sf,PasswordField:af,Appearance:of},vh.AcroForm={ChoiceField:Yh,ListBox:Jh,ComboBox:Zh,EditBox:$h,Button:Af,PushButton:tf,RadioButton:ef,CheckBox:nf,TextField:sf,PasswordField:af,Appearance:of},vh.AcroForm,function(A){var t="addImage_";A.__addimage__={};var e="UNKNOWN",r={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]]},n=A.__addimage__.getImageFileTypeByImageData=function(A,t){var n,i,s,a,o,l=e;if("RGBA"===(t||=e)||void 0!==A.data&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(b(A))for(o in r)for(s=r[o],n=0;n<s.length;n+=1){for(a=!0,i=0;i<s[n].length;i+=1)if(void 0!==s[n][i]&&s[n][i]!==A[i]){a=!1;break}if(!0===a){l=o;break}}else for(o in r)for(s=r[o],n=0;n<s.length;n+=1){for(a=!0,i=0;i<s[n].length;i+=1)if(void 0!==s[n][i]&&s[n][i]!==A.charCodeAt(i)){a=!1;break}if(!0===a){l=o;break}}return l===e&&t!==e&&(l=t),l},i=function A(t){for(var e=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===B.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===B.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var s="",a=0,o=t.transparency.length;a<o;a++)s+=t.transparency[a]+" "+t.transparency[a]+" ";i.push({key:"Mask",value:"["+s+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var l=void 0===t.filter?void 0:["/"+t.filter];if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:l,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var c=t.sMaskBitsPerComponent??t.bitsPerComponent,u={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:c,data:t.sMask};"filter"in t&&(u.decodeParameters=`/Predictor ${t.predictor} /Colors 1 /BitsPerComponent ${c} /Columns ${t.width}`,u.filter=t.filter),A.call(this,u)}if(t.colorSpace===B.INDEXED){var h=this.internal.newObject();r({data:Q(new Uint8Array(t.palette)),objectId:h}),e("endobj")}},s=function(){var A=this.internal.collections[t+"images"];for(var e in A)i.call(this,A[e])},a=function(){var A,e=this.internal.collections[t+"images"],r=this.internal.write;for(var n in e)r("/I"+(A=e[n]).index,A.objectId,"0","R")},o=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a))},l=function(){var A=this.internal.collections[t+"images"];return o.call(this),A},c=function(){return Object.keys(this.internal.collections[t+"images"]).length},u=function(t){return"function"==typeof A["process"+t.toUpperCase()]},h=function(A){return"object"===F(A)&&1===A.nodeType},f=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return Yu(unescape(r).split("base64,").pop());var n=A.loadFile(r,!0);if(void 0!==n)return n}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(e){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return Yu(t.toDataURL(i,1).split("base64,").pop())}},d=function(A){var e=this.internal.collections[t+"images"];if(e)for(var r in e)if(A===e[r].alias)return e[r]},g=function(A,t,e){return A||t||(A=-96,t=-96),A<0&&(A=-1*e.width*72/A/this.internal.scaleFactor),t<0&&(t=-1*e.height*72/t/this.internal.scaleFactor),0===A&&(A=t*e.width/e.height),0===t&&(t=A*e.height/e.width),[A,t]},p=function(A,t,e,r,n,i){var s=g.call(this,e,r,n),a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,c=l.call(this);if(e=s[0],r=s[1],c[n.index]=n,i){i*=Math.PI/180;var u=Math.cos(i),h=Math.sin(i),f=function(A){return A.toFixed(4)},d=[f(u),f(h),f(-1*h),f(u),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,a(A),o(t+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([a(e),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(e),"0","0",a(r),a(A),o(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},B=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},m=A.__addimage__.sHashCode=function(A){var t,e,r=0;if("string"==typeof A)for(e=A.length,t=0;t<e;t++)r=(r<<5)-r+A.charCodeAt(t),r|=0;else if(b(A))for(e=A.byteLength/2,t=0;t<e;t++)r=(r<<5)-r+A[t],r|=0;return r},y=A.__addimage__.validateStringAsBase64=function(A){(A||="").toString().trim();var t=!0;return 0===A.length&&(t=!1),A.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))&&(t=!1),t},v=A.__addimage__.extractImageFromDataUrl=function(A){if(null==A||!(A=A.trim()).startsWith("data:"))return null;var t=A.indexOf(",");return t<0?null:A.substring(0,t).trim().endsWith("base64")?A.substring(t+1):null};A.__addimage__.isArrayBuffer=function(A){return A instanceof ArrayBuffer};var b=A.__addimage__.isArrayBufferView=function(A){return A instanceof Int8Array||A instanceof Uint8Array||A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array},C=A.__addimage__.binaryStringToUint8Array=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e},Q=A.__addimage__.arrayBufferToBinaryString=function(A){for(var t="",e=b(A)?A:new Uint8Array(A),r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,e.subarray(r,r+8192));return t};A.addImage=function(){var A,t,r,n,i,s,a,l,c;if("number"==typeof arguments[1]?(t=e,r=arguments[1],n=arguments[2],i=arguments[3],s=arguments[4],a=arguments[5],l=arguments[6],c=arguments[7]):(t=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4],s=arguments[5],a=arguments[6],l=arguments[7],c=arguments[8]),"object"===F(A=arguments[0])&&!h(A)&&"imageData"in A){var u=A;A=u.imageData,t=u.format||t||e,r=u.x||r||0,n=u.y||n||0,i=u.w||u.width||i,s=u.h||u.height||s,a=u.alias||a,l=u.compression||l,c=u.rotation||u.angle||c}var f=this.internal.getFilters();if(void 0===l&&-1!==f.indexOf("FlateEncode")&&(l="SLOW"),isNaN(r)||isNaN(n))throw Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var d=x.call(this,A,t,a,l);return p.call(this,r,n,i,s,d,c),this};var x=function(t,r,i,s){var a,o,l;if("string"==typeof t&&n(t)===e){t=unescape(t);var g=U(t,!1);(""!==g||void 0!==(g=A.loadFile(t,!0)))&&(t=g)}if(h(t)&&(t=f(t,r)),r=n(t,r),!u(r))throw Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(l=i)||0===l.length)&&(i=function(A){return"string"==typeof A||b(A)?m(A):b(A.data)?m(A.data):null}(t)),(a=d.call(this,i))||(t instanceof Uint8Array||"RGBA"===r||(o=t,t=C(t)),a=this["process"+r.toUpperCase()](t,c.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in A.image_compression?t:w.NONE}(s),o)),!a)throw Error("An unknown error occurred whilst processing the image.");return a},U=A.__addimage__.convertBase64ToBinaryString=function(A,t){t="boolean"!=typeof t||t;var e,r="";if("string"==typeof A){e=v(A)??A;try{r=Yu(e)}catch(A){if(t)throw y(e)?Error("atob-Error in jsPDF.convertBase64ToBinaryString "+A.message):Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};A.getImageProperties=function(t){var r,i,s="";if(h(t)&&(t=f(t)),"string"==typeof t&&n(t)===e&&(""===(s=U(t,!1))&&(s=A.loadFile(t)||""),t=s),i=n(t),!u(i))throw Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(t instanceof Uint8Array||(t=C(t)),!(r=this["process"+i.toUpperCase()](t)))throw Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(vh.API),function(A){var t=function(A){if(void 0!==A&&""!=A)return!0};vh.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(A){for(var e,r,n,i=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(A.objId),o=A.pageContext.annotations,l=!1,c=0;c<o.length&&!l;c++)switch((e=o[c]).type){case"link":(t(e.options.url)||t(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<o.length;u++){e=o[u];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(A.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(d.objId),B=e.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(e.bounds.x)+" "+s(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y)+"] ")+"/Contents ("+h(p(e.contents))+")",n+=" /Popup "+g.objId+" 0 R",n+=" /P "+a.objId+" 0 R",n+=" /T ("+h(p(B))+") >>",d.content=n;var w=d.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(e.bounds.x+30)+" "+s(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+s(e.bounds.y)+"] ")+" /Parent "+w,e.open&&(n+=" /Open true"),n+=" >>",g.content=n,this.internal.write(d.objId,"0 R",g.objId,"0 R");break;case"freetext":r="/Rect ["+i(e.bounds.x)+" "+s(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y+e.bounds.h)+"] ";var m="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(e.color||"#000000");n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+h(f(e.contents))+")",n+=" /DS("+h(f(m))+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(r="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",n="",e.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(e.options.url))+") >>";else if(e.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,n+=" /FitV "+e.options.left+"]";break;default:var v=s(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),n+=" /XYZ "+e.options.left+" "+v+" "+e.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),A.createAnnotation=function(A){var t=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":t.pageContext.annotations.push(A)}},A.link=function(A,t,e,r,n){var i=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:s(A),y:a(t),w:s(A+e),h:a(t+r)},options:n,type:"link"})},A.textWithLink=function(A,t,e,r){var n,i,s=this.getTextWidth(A),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var o=this.splitTextToSize(A,i).length;n=Math.ceil(a*o)}else i=s,n=a;return this.text(A,t,e,r),e+=.2*a,"center"===r.align&&(t-=s/2),"right"===r.align&&(t-=s),this.link(t,e-a,i,n,r),s},A.getTextWidth=function(A){var t=this.internal.getFontSize();return this.getStringUnitWidth(A)*t/this.internal.scaleFactor}}(vh.API),function(A){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={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];A.__arabicParser__={};var i=A.__arabicParser__.isInArabicSubstitutionA=function(A){return void 0!==t[A.charCodeAt(0)]},s=A.__arabicParser__.isArabicLetter=function(A){return"string"==typeof A&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(A)},a=A.__arabicParser__.isArabicEndLetter=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length<=2},o=A.__arabicParser__.isArabicAlfLetter=function(A){return s(A)&&n.indexOf(A.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length>=1};var l=A.__arabicParser__.arabicLetterHasFinalForm=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length>=3};var c=A.__arabicParser__.arabicLetterHasMedialForm=function(A){return s(A)&&i(A)&&4==t[A.charCodeAt(0)].length},u=A.__arabicParser__.resolveLigatures=function(A){var t=0,r=e,n="",i=0;for(t=0;t<A.length;t+=1)void 0===r[A.charCodeAt(t)]?(r=e,n+=A.charAt(t-i),t-=i,i=0):(i++,"number"==typeof(r=r[A.charCodeAt(t)])&&(n+=String.fromCharCode(r),r=e,i=0),t===A.length-1&&(r=e,n+=A.charAt(t-(i-1)),t-=i-1,i=0));return n};A.__arabicParser__.isArabicDiacritic=function(A){return void 0!==A&&void 0!==r[A.charCodeAt(0)]};var h=A.__arabicParser__.getCorrectForm=function(A,t,e){return s(A)?!1===i(A)?-1:!l(A)||!s(t)&&!s(e)||!s(e)&&a(t)||a(A)&&!s(t)||a(A)&&o(t)||a(A)&&a(t)?0:c(A)&&s(t)&&!a(t)&&s(e)&&l(e)?3:a(A)||!s(e)?1:2:-1},f=function(A){var e=0,r=0,n=0,i="",a="",o="",l=(A||="").split("\\s+"),c=[];for(e=0;e<l.length;e+=1){for(c.push(""),r=0;r<l[e].length;r+=1)i=l[e][r],a=l[e][r-1],o=l[e][r+1],s(i)?(n=h(i,a,o),c[e]+=-1===n?i:String.fromCharCode(t[i.charCodeAt(0)][n])):c[e]+=i;c[e]=u(c[e])}return c.join(" ")},d=A.__arabicParser__.processArabic=A.processArabic=function(){var A,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,e=[];if(Array.isArray(t)){var r=0;for(e=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?e.push([f(t[r][0]),t[r][1],t[r][2]]):e.push([f(t[r])]);A=e}else A=f(t);return"string"==typeof arguments[0]?A:(arguments[0].text=A,arguments[0])};A.events.push(["preProcessText",d])}(vh.API),vh.API.autoPrint=function(A){var t;return(A||={}).variant=A.variant||"non-conform","javascript"===A.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))),this},function(A){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(t){A=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(A){t=isNaN(A)||!1===Number.isInteger(A)||A<0?150:A,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var e=300;Object.defineProperty(this,"height",{get:function(){return e},set:function(A){e=isNaN(A)||!1===Number.isInteger(A)||A<0?300:A,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=e+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(A){r=A}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,t){var e;if("2d"!==(A||="2d"))return null;for(e in t)this.pdf.context2d.hasOwnProperty(e)&&(this.pdf.context2d[e]=t[e]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(vh.API),function(A){var t={left:0,top:0,bottom:0,right:0},e=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(A){t=A}});var e=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return e},set:function(A){e=A}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(A){r=A}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(A){n=A}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(A){i=A}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(A){s=A}}),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]},A.setHeaderFunction=function(A){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof A?A:void 0,this},A.getTextDimensions=function(A,t){r.call(this);var e=(t||={}).fontSize||this.getFontSize(),n=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,s=0,a=0,o=0,l=this;if(!Array.isArray(A)&&"string"!=typeof A){if("number"!=typeof A)throw Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var c=t.maxWidth;c>0?"string"==typeof A?A=this.splitTextToSize(A,c):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(l.splitTextToSize(t,c))}),[])):A=Array.isArray(A)?A:[A];for(var u=0;u<A.length;u++)s<(o=this.getStringUnitWidth(A[u],{font:n})*e)&&(s=o);return 0!==s&&(a=A.length),{w:s/=i,h:Math.max((a*e*this.getLineHeightFactor()-e*(this.getLineHeightFactor()-1))/i,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var A=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=A.cell=function(){var A=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);r.call(this);var n=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,a=this.internal.__cell__.margins||t,o=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===A.lineNumber?(A.x=(n.x||0)+(n.width||0),A.y=n.y||0):n.y+n.height+A.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=a.top,l&&o&&(this.printHeaderRow(A.lineNumber,!0),A.y+=o[0].height)):A.y=n.y+n.height||A.y),void 0!==A.text[0]&&(this.rect(A.x,A.y,A.width,A.height,!0===e?"FD":void 0),"right"===A.align?this.text(A.text,A.x+A.width-s,A.y+s,{align:"right",baseline:"top"}):"center"===A.align?this.text(A.text,A.x+A.width/2,A.y+s,{align:"center",baseline:"top",maxWidth:A.width-s-s}):this.text(A.text,A.x+s,A.y+s,{align:"left",baseline:"top",maxWidth:A.width-s-s})),this.internal.__cell__.lastCell=A,this};A.table=function(A,e,o,l,c){if(r.call(this),!o)throw Error("No data for PDF table.");var u,h,f,d,g=[],p=[],B=[],w={},m={},y=[],v=[],b=(c||={}).autoSize||!1,C=!1!==c.printHeaders,Q=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,x=c.margins||Object.assign({width:this.getPageWidth()},t),U="number"==typeof c.padding?c.padding:3,E=c.headerBackgroundColor||"#c8c8c8",L=c.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=U,this.internal.__cell__.headerBackgroundColor=E,this.internal.__cell__.headerTextColor=L,this.setFontSize(Q),null==l)p=g=Object.keys(o[0]),B=g.map((function(){return"left"}));else if(Array.isArray(l)&&"object"===F(l[0]))for(g=l.map((function(A){return A.name})),p=l.map((function(A){return A.prompt||A.name||""})),B=l.map((function(A){return A.align||"left"})),u=0;u<l.length;u+=1)m[l[u].name]=.7499990551181103*l[u].width;else Array.isArray(l)&&"string"==typeof l[0]&&(p=g=l,B=g.map((function(){return"left"})));if(b||Array.isArray(l)&&"string"==typeof l[0])for(u=0;u<g.length;u+=1){for(w[d=g[u]]=o.map((function(A){return A[d]})),this.setFont(void 0,"bold"),y.push(this.getTextDimensions(p[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=w[d],this.setFont(void 0,"normal"),f=0;f<h.length;f+=1)y.push(this.getTextDimensions(h[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);m[d]=Math.max.apply(null,y)+U+U,y=[]}if(C){var _={};for(u=0;u<g.length;u+=1)_[g[u]]={},_[g[u]].text=p[u],_[g[u]].align=B[u];var S=a.call(this,_,m);v=g.map((function(t){return new i(A,e,m[t],S,_[t].text,void 0,_[t].align)})),this.setTableHeaderRow(v),this.printHeaderRow(1,!1)}var I=l.reduce((function(A,t){return A[t.name]=t.align,A}),{});for(u=0;u<o.length;u+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:u,data:o[u]},this);var N=a.call(this,o[u],m);for(f=0;f<g.length;f+=1){var H=o[u][g[f]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:u,col:f,data:H},this),s.call(this,new i(A,e,m[g[f]],N,H,u+2,I[g[f]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=e,this};var a=function(A,t){var e=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(A).map((function(r){var n=A[r];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,t[r]-e-e)}),this).map((function(A){return this.getLineHeightFactor()*A.length*r/n+e+e}),this).reduce((function(A,t){return Math.max(A,t)}),0)};A.setTableHeaderRow=function(A){r.call(this),this.internal.__cell__.tableHeaderRow=A},A.printHeaderRow=function(A,t){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw Error("Property tableHeaderRow does not exist.");var n;if(e=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var o=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){n=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(n.y=this.internal.__cell__.margins.top||0,o.push(n)),n.lineNumber=A;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,n),this.setTextColor(c)}o.length>0&&this.setTableHeaderRow(o),this.setFont(void 0,"normal"),e=!1}}(vh.API);var uf={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},hf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ff=cf(hf),df=[100,200,300,400,500,600,700,800,900],gf=cf(df);function pf(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),e=function(A){return uf[A||="normal"]?A:"normal"}(A.style),r=function(A){return A?"number"==typeof A?A>=100&&A<=900&&A%100==0?A:400:/^\d00$/.test(A)?parseInt(A):"bold"===A?700:400:400}(A.weight),n=function(A){return"number"==typeof ff[A||="normal"]?A:"normal"}(A.stretch);return{family:t,style:e,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,e,r].join(" ")}}}function Bf(A,t,e,r){var n;for(n=e;n>=0&&n<t.length;n+=r)if(A[t[n]])return A[t[n]];for(n=e;n>=0&&n<t.length;n-=r)if(A[t[n]])return A[t[n]]}var wf={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},mf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function yf(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function vf(A){return A.trimLeft()}function bf(A,t){for(var e=0;e<A.length;){if(A.charAt(e)===t)return[A.substring(0,e),A.substring(e+1)];e+=1}return null}function Cf(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],A.substring(t[0].length)]}var Ff,Qf,xf,Uf,Ef,Lf=["times"];function _f(A,t,e,r,n){var i=4,s=Nf;switch(n){case vh.API.image_compression.FAST:i=1,s=If;break;case vh.API.image_compression.MEDIUM:i=6,s=Hf;break;case vh.API.image_compression.SLOW:i=9,s=Pf}A=function(A,t,e,r){for(var n,i=A.length/t,s=new Uint8Array(A.length+i),a=[Sf,If,Nf,Hf,Pf],o=0;o<i;o+=1){var l=o*t,c=A.subarray(l,l+t);if(r)s.set(r(c,e,n),l+o);else{for(var u=a.length,h=[],f=0;f<u;f+=1)h[f]=a[f](c,e,n);var d=Of(h.concat());s.set(h[d],l+o)}n=c}return s}(A,t,Math.ceil(e*r/8),s);var a=sA(A,{level:i});return vh.API.__addimage__.arrayBufferToBinaryString(a)}function Sf(A){var t=Array.apply([],A);return t.unshift(0),t}function If(A,t){var e=A.length,r=[];r[0]=1;for(var n=0;n<e;n+=1){var i=A[n-t]||0;r[n+1]=A[n]-i+256&255}return r}function Nf(A,t,e){var r=A.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var s=e&&e[i]||0;n[i+1]=A[i]-s+256&255}return n}function Hf(A,t,e){var r=A.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var s=A[i-t]||0,a=e&&e[i]||0;n[i+1]=A[i]+256-(s+a>>>1)&255}return n}function Pf(A,t,e){var r=A.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var s=kf(A[i-t]||0,e&&e[i]||0,e&&e[i-t]||0);n[i+1]=A[i]-s+256&255}return n}function kf(A,t,e){if(A===t&&t===e)return A;var r=Math.abs(t-e),n=Math.abs(A-e),i=Math.abs(A+t-e-e);return r<=n&&r<=i?A:n<=i?t:e}function Of(A){var t=A.map((function(A){return A.reduce((function(A,t){return A+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))}function Tf(A,t,e){var r=t*e,n=Math.floor(r/8),i=16-(r-8*n+e),s=(1<<e)-1;return Mf(A,n)>>i&s}function Df(A,t,e,r){var n=e*r,i=Math.floor(n/8),s=16-(n-8*i+r),a=(1<<r)-1,o=(t&a)<<s;!function(A,t,e){if(t+1<A.byteLength)A.setUint16(t,e,!1);else{var r=e>>8&255;A.setUint8(t,r)}}(A,i,Mf(A,i)&~(a<<s)&65535|o)}function Mf(A,t){return t+1<A.byteLength?A.getUint16(t,!1):A.getUint8(t)<<8}function Rf(A){var t=0;if(71!==A[t++]||73!==A[t++]||70!==A[t++]||56!==A[t++]||56!=(A[t++]+1&253)||97!==A[t++])throw Error("Invalid GIF 87a/89a header.");var e=A[t++]|A[t++]<<8,r=A[t++]|A[t++]<<8,n=A[t++],i=n>>7,s=1<<1+(7&n);A[t++],A[t++];var a=null,o=null;i&&(a=t,o=s,t+=3*s);var l=!0,c=[],u=0,h=null,f=0,d=null;for(this.width=e,this.height=r;l&&t<A.length;)switch(A[t++]){case 33:switch(A[t++]){case 255:if(11!==A[t]||78==A[t+1]&&69==A[t+2]&&84==A[t+3]&&83==A[t+4]&&67==A[t+5]&&65==A[t+6]&&80==A[t+7]&&69==A[t+8]&&50==A[t+9]&&46==A[t+10]&&48==A[t+11]&&3==A[t+12]&&1==A[t+13]&&0==A[t+16])t+=14,d=A[t++]|A[t++]<<8,t++;else for(t+=12;;){if(!((U=A[t++])>=0))throw Error("Invalid block size");if(0===U)break;t+=U}break;case 249:if(4!==A[t++]||0!==A[t+4])throw Error("Invalid graphics extension block.");var g=A[t++];u=A[t++]|A[t++]<<8,h=A[t++],1&g||(h=null),f=g>>2&7,t++;break;case 254:for(;;){if(!((U=A[t++])>=0))throw Error("Invalid block size");if(0===U)break;t+=U}break;default:throw Error("Unknown graphic control label: 0x"+A[t-1].toString(16))}break;case 44:var p=A[t++]|A[t++]<<8,B=A[t++]|A[t++]<<8,w=A[t++]|A[t++]<<8,m=A[t++]|A[t++]<<8,y=A[t++],v=y>>6&1,b=1<<1+(7&y),C=a,F=o,Q=!1;y>>7&&(Q=!0,C=t,F=b,t+=3*b);var x=t;for(t++;;){var U;if(!((U=A[t++])>=0))throw Error("Invalid block size");if(0===U)break;t+=U}c.push({x:p,y:B,width:w,height:m,has_local_palette:Q,palette_offset:C,palette_size:F,data_offset:x,data_length:t-x,transparent_index:h,interlaced:!!v,delay:u,disposal:f});break;case 59:l=!1;break;default:throw Error("Unknown gif block: 0x"+A[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return d},this.frameInfo=function(A){if(A<0||A>=c.length)throw Error("Frame index out of range.");return c[A]},this.decodeAndBlitFrameBGRA=function(t,r){var n=this.frameInfo(t),i=n.width*n.height;if(i>536870912)throw Error("Image dimensions exceed 512MB, which is too large.");var s=new Uint8Array(i);Kf(A,n.data_offset,s,i);var a=n.palette_offset,o=n.transparent_index;null===o&&(o=256);var l=n.width,c=e-l,u=l,h=4*(n.y*e+n.x),f=4*((n.y+n.height)*e+n.x),d=h,g=4*c;!0===n.interlaced&&(g+=4*e*7);for(var p=8,B=0,w=s.length;B<w;++B){var m=s[B];if(0===u&&(u=l,(d+=g)>=f&&(g=4*c+4*e*(p-1),d=h+(l+c)*(p<<1),p>>=1)),m===o)d+=4;else{var y=A[a+3*m],v=A[a+3*m+1],b=A[a+3*m+2];r[d++]=b,r[d++]=v,r[d++]=y,r[d++]=255}--u}},this.decodeAndBlitFrameRGBA=function(t,r){var n=this.frameInfo(t),i=n.width*n.height;if(i>536870912)throw Error("Image dimensions exceed 512MB, which is too large.");var s=new Uint8Array(i);Kf(A,n.data_offset,s,i);var a=n.palette_offset,o=n.transparent_index;null===o&&(o=256);var l=n.width,c=e-l,u=l,h=4*(n.y*e+n.x),f=4*((n.y+n.height)*e+n.x),d=h,g=4*c;!0===n.interlaced&&(g+=4*e*7);for(var p=8,B=0,w=s.length;B<w;++B){var m=s[B];if(0===u&&(u=l,(d+=g)>=f&&(g=4*c+4*e*(p-1),d=h+(l+c)*(p<<1),p>>=1)),m===o)d+=4;else{var y=A[a+3*m],v=A[a+3*m+1],b=A[a+3*m+2];r[d++]=y,r[d++]=v,r[d++]=b,r[d++]=255}--u}}}function Kf(A,t,e,r){for(var n=A[t++],i=1<<n,s=i+1,a=s+1,o=n+1,l=(1<<o)-1,c=0,u=0,h=0,f=A[t++],d=new Int32Array(4096),g=null;;){for(;c<16&&0!==f;)u|=A[t++]<<c,c+=8,1===f?f=A[t++]:--f;if(c<o)break;var p=u&l;if(u>>=o,c-=o,p!==i){if(p===s)break;for(var B=p<a?p:g,w=0,m=B;m>i;)m=d[m]>>8,++w;var y=m;if(h+w+(B===p?0:1)>r)return void ju.log("Warning, gif stream longer than expected.");e[h++]=y;var v=h+=w;for(B!==p&&(e[h++]=y),m=B;w--;)m=d[m],e[--v]=255&m,m>>=8;null!==g&&a<4096&&(d[a++]=g<<8|y,a>=l+1&&o<12&&(++o,l=l<<1|1)),g=p}else a=s+1,l=(1<<(o=n+1))-1,g=null}return h!==r&&ju.log("Warning, gif stream shorter than expected."),e}function Vf(A){var t,e,r,n,i,s=Math.floor,a=Array(64),o=Array(64),l=Array(64),c=Array(64),u=Array(65535),h=Array(65535),f=Array(64),d=Array(64),g=[],p=0,B=7,w=Array(64),m=Array(64),y=Array(64),v=Array(256),b=Array(2048),C=[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],F=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Q=[0,1,2,3,4,5,6,7,8,9,10,11],x=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],U=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],S=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function I(A,t){for(var e=0,r=0,n=[],i=1;i<=16;i++){for(var s=1;s<=A[i];s++)n[t[r]]=[],n[t[r]][0]=e,n[t[r]][1]=i,r++,e++;e*=2}return n}function N(A){for(var t=A[0],e=A[1]-1;e>=0;)t&1<<e&&(p|=1<<B),e--,--B<0&&(255==p?(H(255),H(0)):H(p),B=7,p=0)}function H(A){g.push(A)}function P(A){H(A>>8&255),H(255&A)}function k(A,t,e,r,n){for(var i,s=n[0],a=n[240],o=function(A,t){var e,r,n,i,s,a,o,l,c,u,h=0;for(c=0;c<8;++c){e=A[h],r=A[h+1],n=A[h+2],i=A[h+3],s=A[h+4],a=A[h+5],o=A[h+6];var d=e+(l=A[h+7]),g=e-l,p=r+o,B=r-o,w=n+a,m=n-a,y=i+s,v=i-s,b=d+y,C=d-y,F=p+w,Q=p-w;A[h]=b+F,A[h+4]=b-F;var x=.707106781*(Q+C);A[h+2]=C+x,A[h+6]=C-x;var U=.382683433*((b=v+m)-(Q=B+g)),E=.5411961*b+U,L=1.306562965*Q+U,_=.707106781*(F=m+B),S=g+_,I=g-_;A[h+5]=I+E,A[h+3]=I-E,A[h+1]=S+L,A[h+7]=S-L,h+=8}for(h=0,c=0;c<8;++c){e=A[h],r=A[h+8],n=A[h+16],i=A[h+24],s=A[h+32],a=A[h+40],o=A[h+48];var N=e+(l=A[h+56]),H=e-l,P=r+o,k=r-o,O=n+a,T=n-a,D=i+s,M=i-s,R=N+D,K=N-D,V=P+O,j=P-O;A[h]=R+V,A[h+32]=R-V;var G=.707106781*(j+K);A[h+16]=K+G,A[h+48]=K-G;var z=.382683433*((R=M+T)-(j=k+H)),q=.5411961*R+z,X=1.306562965*j+z,W=.707106781*(V=T+k),Y=H+W,J=H-W;A[h+40]=J+q,A[h+24]=J-q,A[h+8]=Y+X,A[h+56]=Y-X,h++}for(c=0;c<64;++c)u=A[c]*t[c],f[c]=u>0?u+.5|0:u-.5|0;return f}(A,t),l=0;l<64;++l)d[C[l]]=o[l];var c=d[0]-e;e=d[0],0==c?N(r[0]):(N(r[h[i=32767+c]]),N(u[i]));for(var g=63;g>0&&0==d[g];)g--;if(0==g)return N(s),e;for(var p,B=1;B<=g;){for(var w=B;0==d[B]&&B<=g;)++B;var m=B-w;if(m>=16){p=m>>4;for(var y=1;y<=p;++y)N(a);m&=15}i=32767+d[B],N(n[(m<<4)+h[i]]),N(u[i]),B++}return 63!=g&&N(s),e}function O(A){A=Math.min(Math.max(A,1),100),i!=A&&(function(A){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],e=0;e<64;e++){var r=s((t[e]*A+50)/100);r=Math.min(Math.max(r,1),255),a[C[e]]=r}for(var n=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var u=s((n[i]*A+50)/100);u=Math.min(Math.max(u,1),255),o[C[i]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,d=0;d<8;d++)for(var g=0;g<8;g++)l[f]=1/(a[C[f]]*h[d]*h[g]*8),c[f]=1/(o[C[f]]*h[d]*h[g]*8),f++}(Math.floor(A<50?5e3/A:200-2*A)),i=A)}this.encode=function(A,i){i&&O(i),g=[],p=0,B=7,P(65496),P(65504),P(16),H(74),H(70),H(73),H(70),H(0),H(1),H(1),H(0),P(1),P(1),H(0),H(0),function(){P(65499),P(132),H(0);for(var A=0;A<64;A++)H(a[A]);H(1);for(var t=0;t<64;t++)H(o[t])}(),function(A,t){P(65472),P(17),H(8),P(t),P(A),H(3),H(1),H(17),H(0),H(2),H(17),H(1),H(3),H(17),H(1)}(A.width,A.height),function(){P(65476),P(418),H(0);for(var A=0;A<16;A++)H(F[A+1]);for(var t=0;t<=11;t++)H(Q[t]);H(16);for(var e=0;e<16;e++)H(x[e+1]);for(var r=0;r<=161;r++)H(U[r]);H(1);for(var n=0;n<16;n++)H(E[n+1]);for(var i=0;i<=11;i++)H(L[i]);H(17);for(var s=0;s<16;s++)H(_[s+1]);for(var a=0;a<=161;a++)H(S[a])}(),P(65498),P(12),H(3),H(1),H(0),H(2),H(17),H(3),H(17),H(0),H(63),H(0);var s=0,u=0,h=0;p=0,B=7,this.encode.displayName="_encode_";for(var f,d,v,C,I,T,D,M,R,K=A.data,V=A.width,j=A.height,G=4*V,z=0;z<j;){for(f=0;f<G;){for(I=G*z+f,D=-1,M=0,R=0;R<64;R++)T=I+(M=R>>3)*G+(D=4*(7&R)),z+M>=j&&(T-=G*(z+1+M-j)),f+D>=G&&(T-=f+D-G+4),d=K[T++],v=K[T++],C=K[T++],w[R]=(b[d]+b[v+256|0]+b[C+512|0]>>16)-128,m[R]=(b[d+768|0]+b[v+1024|0]+b[C+1280|0]>>16)-128,y[R]=(b[d+1280|0]+b[v+1536|0]+b[C+1792|0]>>16)-128;s=k(w,l,s,t,r),u=k(m,c,u,e,n),h=k(y,c,h,e,n),f+=32}z+=8}if(B>=0){var q=[];q[1]=B+1,q[0]=(1<<B+1)-1,N(q)}return P(65497),new Uint8Array(g)},A||=50,function(){for(var A=String.fromCharCode,t=0;t<256;t++)v[t]=A(t)}(),t=I(F,Q),e=I(E,L),r=I(x,U),n=I(_,S),function(){for(var A=1,t=2,e=1;e<=15;e++){for(var r=A;r<t;r++)h[32767+r]=e,u[32767+r]=[],u[32767+r][1]=e,u[32767+r][0]=r;for(var n=-(t-1);n<=-A;n++)h[32767+n]=e,u[32767+n]=[],u[32767+n][1]=e,u[32767+n][0]=t-1+n;A<<=1,t<<=1}}(),function(){for(var A=0;A<256;A++)b[A]=19595*A,b[A+256|0]=38470*A,b[A+512|0]=7471*A+32768,b[A+768|0]=-11059*A,b[A+1024|0]=-21709*A,b[A+1280|0]=32768*A+8421375,b[A+1536|0]=-27439*A,b[A+1792|0]=-5329*A}(),O(A)}function jf(A,t){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Gf(A){function t(A){if(!A)throw Error("assert :P")}function e(A,t,e){for(var r=0;4>r;r++)if(A[t+r]!=e.charCodeAt(r))return!0;return!1}function r(A,t,e,r,n){for(var i=0;i<n;i++)A[t+i]=e[r+i]}function n(A,t,e,r){for(var n=0;n<r;n++)A[t+n]=e}function i(A){return new Int32Array(A)}function s(A,t){for(var e=[],r=0;r<A;r++)e.push(new t);return e}function a(A,t){var e=[];return function A(e,r,n){for(var i=n[r],s=0;s<i&&(e.push(n.length>r+1?[]:new t),!(n.length<r+1));s++)A(e[s],r+1,n)}(e,0,A),e}var o=function(){var A=this;function o(A,t){for(var e=1<<t-1>>>0;A&e;)e>>>=1;return e?(A&e-1)+e:A}function l(A,e,r,n,i){t(!(n%r));do{A[e+(n-=r)]=i}while(0<n)}function c(A,e,r,n,s){if(t(2328>=s),512>=s)var a=i(512);else if(null==(a=i(s)))return 0;return function(A,e,r,n,s,a){var c,h,f=e,d=1<<r,g=i(16),p=i(16);for(t(0!=s),t(null!=n),t(null!=A),t(0<r),h=0;h<s;++h){if(15<n[h])return 0;++g[n[h]]}if(g[0]==s)return 0;for(p[1]=0,c=1;15>c;++c){if(g[c]>1<<c)return 0;p[c+1]=p[c]+g[c]}for(h=0;h<s;++h)c=n[h],0<n[h]&&(a[p[c]++]=h);if(1==p[15])return(n=new u).g=0,n.value=a[0],l(A,f,1,d,n),d;var B,w=-1,m=d-1,y=0,v=1,b=1,C=1<<r;for(h=0,c=1,s=2;c<=r;++c,s<<=1){if(v+=b<<=1,0>(b-=g[c]))return 0;for(;0<g[c];--g[c])(n=new u).g=c,n.value=a[h++],l(A,f+y,s,C,n),y=o(y,c)}for(c=r+1,s=2;15>=c;++c,s<<=1){if(v+=b<<=1,0>(b-=g[c]))return 0;for(;0<g[c];--g[c]){if(n=new u,(y&m)!=w){for(f+=C,B=1<<(w=c)-r;15>w&&!(0>=(B-=g[w]));)++w,B<<=1;d+=C=1<<(B=w-r),A[e+(w=y&m)].g=B+r,A[e+w].value=f-e-w}n.g=c-r,n.value=a[h++],l(A,f+(y>>r),s,C,n),y=o(y,c)}}return v==2*p[15]-1?d:0}(A,e,r,n,s,a)}function u(){this.value=this.g=0}function h(){this.value=this.g=0}function f(){this.G=s(5,u),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Oe,h)}function d(A,e,r,n){t(null!=A),t(null!=e),t(2147483648>n),A.Ca=254,A.I=0,A.b=-8,A.Ka=0,A.oa=e,A.pa=r,A.Jd=e,A.Yc=r+n,A.Zc=4<=n?r+n-4+1:r,x(A)}function g(A,t){for(var e=0;0<t--;)e|=E(A,128)<<t;return e}function p(A,t){var e=g(A,t);return U(A)?-e:e}function B(A,e,r,n){var i,s=0;for(t(null!=A),t(null!=e),t(4294967288>n),A.Sb=n,A.Ra=0,A.u=0,A.h=0,4<n&&(n=4),i=0;i<n;++i)s+=e[r+i]<<8*i;A.Ra=s,A.bb=n,A.oa=e,A.pa=r}function w(A){for(;8<=A.u&&A.bb<A.Sb;)A.Ra>>>=8,A.Ra+=A.oa[A.pa+A.bb]<<Me-8>>>0,++A.bb,A.u-=8;C(A)&&(A.h=1,A.u=0)}function m(A,e){if(t(0<=e),!A.h&&e<=De){var r=b(A)&Te[e];return A.u+=e,w(A),r}return A.h=1,A.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function v(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function b(A){return A.Ra>>>(A.u&Me-1)>>>0}function C(A){return t(A.bb<=A.Sb),A.h||A.bb==A.Sb&&A.u>Me}function F(A,t){A.u=t,A.h=C(A)}function Q(A){A.u>=Re&&(t(A.u>=Re),w(A))}function x(A){t(null!=A&&null!=A.oa),A.pa<A.Zc?(A.I=(A.oa[A.pa++]|A.I<<8)>>>0,A.b+=8):(t(null!=A&&null!=A.oa),A.pa<A.Yc?(A.b+=8,A.I=A.oa[A.pa++]|A.I<<8):A.Ka?A.b=0:(A.I<<=8,A.b+=8,A.Ka=1))}function U(A){return g(A,1)}function E(A,t){var e=A.Ca;0>A.b&&x(A);var r=A.b,n=e*t>>>8,i=(A.I>>>r>n)+0;for(i?(e-=n,A.I-=n+1<<r>>>0):e=n+1,r=e,n=0;256<=r;)n+=8,r>>=8;return r=7^n+Ke[r],A.b-=r,A.Ca=(e<<r)-1,i}function L(A,t,e){A[t+0]=e>>24&255,A[t+1]=e>>16&255,A[t+2]=e>>8&255,A[t+3]=255&e}function _(A,t){return A[t+0]|A[t+1]<<8}function S(A,t){return _(A,t)|A[t+2]<<16}function I(A,t){return _(A,t)|_(A,t+2)<<16}function N(A,e){var r=1<<e;return t(null!=A),t(0<e),A.X=i(r),null==A.X?0:(A.Mb=32-e,A.Xa=e,1)}function H(A,e){t(null!=A),t(null!=e),t(A.Xa==e.Xa),r(e.X,0,A.X,0,1<<e.Xa)}function P(){this.X=[],this.Xa=this.Mb=0}function k(A,e,r,n){t(null!=r),t(null!=n);var i=r[0],s=n[0];return 0==i&&(i=(A*s+e/2)/e),0==s&&(s=(e*i+A/2)/A),0>=i||0>=s?0:(r[0]=i,n[0]=s,1)}function O(A,t){return A+(1<<t)-1>>>t}function T(A,t){return((4278255360&A)+(4278255360&t)>>>0&4278255360)+((16711935&A)+(16711935&t)>>>0&16711935)>>>0}function D(t,e){A[e]=function(e,r,n,i,s,a,o){var l;for(l=0;l<s;++l){var c=A[t](a[o+l-1],n,i+l);a[o+l]=T(e[r+l],c)}}}function M(){this.ud=this.hd=this.jd=0}function R(A,t){return((4278124286&(A^t))>>>1)+(A&t)>>>0}function K(A){return 0<=A&&256>A?A:0>A?0:255<A?255:void 0}function V(A,t){return K(A+(A-t+.5>>1))}function j(A,t,e){return Math.abs(t-e)-Math.abs(A-e)}function G(A,t,e,r,n,i,s){for(r=i[s-1],e=0;e<n;++e)i[s+e]=r=T(A[t+e],r)}function z(A,t,e,r,n){var i;for(i=0;i<e;++i){var s=A[t+i],a=s>>8&255,o=16711935&(o=(o=16711935&s)+((a<<16)+a));r[n+i]=(4278255360&s)+o>>>0}}function q(A,t){t.jd=255&A,t.hd=A>>8&255,t.ud=A>>16&255}function X(A,t,e,r,n,i){var s;for(s=0;s<r;++s){var a=t[e+s],o=a>>>8,l=a,c=255&(c=(c=a>>>16)+((A.jd<<24>>24)*(o<<24>>24)>>>5));l=255&(l=(l+=(A.hd<<24>>24)*(o<<24>>24)>>>5)+((A.ud<<24>>24)*(c<<24>>24)>>>5)),n[i+s]=(4278255360&a)+(c<<16)+l}}function W(t,e,r,n,i){A[e]=function(A,t,e,r,s,a,o,l,c){for(r=o;r<l;++r)for(o=0;o<c;++o)s[a++]=i(e[n(A[t++])])},A[t]=function(t,e,s,a,o,l,c){var u=8>>t.b,h=t.Ea,f=t.K[0],d=t.w;if(8>u)for(t=(1<<t.b)-1,d=(1<<u)-1;e<s;++e){var g,p=0;for(g=0;g<h;++g)g&t||(p=n(a[o++])),l[c++]=i(f[p&d]),p>>=u}else A["VP8LMapColor"+r](a,o,f,d,l,c,e,s,h)}}function Y(A,t,e,r,n){for(e=t+e;t<e;){var i=A[t++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=255&i}}function J(A,t,e,r,n){for(e=t+e;t<e;){var i=A[t++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=255&i,r[n++]=i>>24&255}}function Z(A,t,e,r,n){for(e=t+e;t<e;){var i=(s=A[t++])>>16&240|s>>12&15,s=240&s|s>>28&15;r[n++]=i,r[n++]=s}}function $(A,t,e,r,n){for(e=t+e;t<e;){var i=(s=A[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;r[n++]=i,r[n++]=s}}function AA(A,t,e,r,n){for(e=t+e;t<e;){var i=A[t++];r[n++]=255&i,r[n++]=i>>8&255,r[n++]=i>>16&255}}function tA(A,t,e,n,i,s){if(0==s)for(e=t+e;t<e;)L(n,((s=A[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),i+=32;else r(n,i,A,t,e)}function eA(t,e){A[e][0]=A[t+"0"],A[e][1]=A[t+"1"],A[e][2]=A[t+"2"],A[e][3]=A[t+"3"],A[e][4]=A[t+"4"],A[e][5]=A[t+"5"],A[e][6]=A[t+"6"],A[e][7]=A[t+"7"],A[e][8]=A[t+"8"],A[e][9]=A[t+"9"],A[e][10]=A[t+"10"],A[e][11]=A[t+"11"],A[e][12]=A[t+"12"],A[e][13]=A[t+"13"],A[e][14]=A[t+"0"],A[e][15]=A[t+"0"]}function rA(A){return A==Rr||A==Kr||A==Vr||A==jr}function nA(){this.eb=[],this.size=this.A=this.fb=0}function iA(){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 sA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nA,this.f.kb=new iA,this.sd=null}function aA(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function oA(){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 lA(A){return alert("todo:WebPSamplerProcessPlane"),A.T}function cA(A,t){var e=A.T,n=t.ba.f.RGBA,i=n.eb,s=n.fb+A.ka*n.A,a=pn[t.ba.S],o=A.y,l=A.O,c=A.f,u=A.N,h=A.ea,f=A.W,d=t.cc,g=t.dc,p=t.Mc,B=t.Nc,w=A.ka,m=A.ka+A.T,y=A.U,v=y+1>>1;for(0==w?a(o,l,null,null,c,u,h,f,c,u,h,f,i,s,null,null,y):(a(t.ec,t.fc,o,l,d,g,p,B,c,u,h,f,i,s-n.A,i,s,y),++e);w+2<m;w+=2)d=c,g=u,p=h,B=f,u+=A.Rc,f+=A.Rc,s+=2*n.A,a(o,(l+=2*A.fa)-A.fa,o,l,d,g,p,B,c,u,h,f,i,s-n.A,i,s,y);return l+=A.fa,A.j+m<A.o?(r(t.ec,t.fc,o,l,y),r(t.cc,t.dc,c,u,v),r(t.Mc,t.Nc,h,f,v),e--):1&m||a(o,l,null,null,c,u,h,f,c,u,h,f,i,s+n.A,null,null,y),e}function uA(A,e,r){var n=A.F,i=[A.J];if(null!=n){var s=A.U,a=e.ba.S,o=a==Tr||a==Vr;e=e.ba.f.RGBA;var l=[0],c=A.ka;l[0]=A.T,A.Kb&&(0==c?--l[0]:(--c,i[0]-=A.width),A.j+A.ka+A.T==A.o&&(l[0]=A.o-A.j-c));var u=e.eb;c=e.fb+c*e.A,A=Cr(n,i[0],A.width,s,l,u,c+(o?0:3),e.A),t(r==l),A&&rA(a)&&vr(u,c,o,s,l,e.A)}return 0}function hA(A){var t=A.ma,e=t.ba.S,r=11>e,n=e==Pr||e==Or||e==Tr||e==Dr||12==e||rA(e);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!He(t.Oa,A,n?11:12))return 0;if(n&&rA(e)&&Be(),A.da)alert("todo:use_scaling");else{if(r){if(t.Ib=lA,A.Kb){if(e=A.U+1>>1,t.memory=i(A.U+2*e),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+A.U,t.Mc=t.cc,t.Nc=t.dc+e,t.Ib=cA,Be()}}else alert("todo:EmitYUV");n&&(t.Jb=uA,r&&ge())}if(r&&!_n){for(A=0;256>A;++A)Sn[A]=89858*(A-128)+Qn>>Fn,Hn[A]=-22014*(A-128)+Qn,Nn[A]=-45773*(A-128),In[A]=113618*(A-128)+Qn>>Fn;for(A=xn;A<Un;++A)t=76283*(A-16)+Qn>>Fn,Pn[A-xn]=GA(t,255),kn[A-xn]=GA(t+8>>4,15);_n=1}return 1}function fA(A){var e=A.ma,r=A.U,n=A.T;return t(!(1&A.ka)),0>=r||0>=n?0:(r=e.Ib(A,e),null!=e.Jb&&e.Jb(A,e,r),e.Dc+=r,1)}function dA(A){A.ma.memory=null}function gA(A,t,e,r){return 47==m(A,8)?(t[0]=m(A,14)+1,e[0]=m(A,14)+1,r[0]=m(A,1),0==m(A,3)?!A.h:0):0}function pA(A,t){if(4>A)return A+1;var e=A-2>>1;return(2+(1&A)<<e)+m(t,e)+1}function BA(A,t){return 120<t?t-120:1<=(e=((e=Yr[t-1])>>4)*A+(8-(15&e)))?e:1;var e}function wA(A,t,e){var r=b(e),n=A[t+=255&r].g-8;return 0<n&&(F(e,e.u+8),r=b(e),t+=A[t].value,t+=r&(1<<n)-1),F(e,e.u+A[t].g),A[t].value}function mA(A,e,r){return r.g+=A.g,r.value+=A.value<<e>>>0,t(8>=r.g),A.g}function yA(A,e,r){var n=A.xc;return t((e=0==n?0:A.vc[A.md*(r>>n)+(e>>n)])<A.Wb),A.Ya[e]}function vA(A,e,n,i){var s=A.ab,a=A.c*e,o=A.C;e=o+e;var l=n,c=i;for(i=A.Ta,n=A.Ua;0<s--;){var u=A.gc[s],h=o,f=e,d=l,g=c,p=(c=i,l=n,u.Ea);switch(t(h<f),t(f<=u.nc),u.hc){case 2:Ge(d,g,(f-h)*p,c,l);break;case 0:var B=h,w=f,m=c,y=l,v=(x=u).Ea;0==B&&(Ve(d,g,null,null,1,m,y),G(d,g+1,0,0,v-1,m,y+1),g+=v,y+=v,++B);for(var b=1<<x.b,C=b-1,F=O(v,x.b),Q=x.K,x=x.w+(B>>x.b)*F;B<w;){var U=Q,E=x,L=1;for(je(d,g,m,y-v,1,m,y);L<v;){var _=(L&~C)+b;_>v&&(_=v),(0,Ye[U[E++]>>8&15])(d,g+ +L,m,y+L-v,_-L,m,y+L),L=_}g+=v,y+=v,++B&C||(x+=F)}f!=u.nc&&r(c,l-p,c,l+(f-h-1)*p,p);break;case 1:for(p=d,w=g,v=(d=u.Ea)-(y=d&~(m=(g=1<<u.b)-1)),B=O(d,u.b),b=u.K,u=u.w+(h>>u.b)*B;h<f;){for(C=b,F=u,Q=new M,x=w+y,U=w+d;w<x;)q(C[F++],Q),Je(Q,p,w,g,c,l),w+=g,l+=g;w<U&&(q(C[F++],Q),Je(Q,p,w,v,c,l),w+=v,l+=v),++h&m||(u+=B)}break;case 3:if(d==c&&g==l&&0<u.b){for(w=c,d=p=l+(f-h)*p-(y=(f-h)*O(u.Ea,u.b)),g=c,m=l,B=[],y=(v=y)-1;0<=y;--y)B[y]=g[m+y];for(y=v-1;0<=y;--y)w[d+y]=B[y];ze(u,h,f,c,p,c,l)}else ze(u,h,f,d,g,c,l)}l=i,c=n}c!=n&&r(i,n,l,c,a)}function bA(A,e){var r=A.V,n=A.Ba+A.c*A.C,i=e-A.C;if(t(e<=A.l.o),t(16>=i),0<i){var s=A.l,a=A.Ta,o=A.Ua,l=s.width;if(vA(A,i,r,n),i=o=[o],t((r=A.C)<(n=e)),t(s.v<s.va),n>s.o&&(n=s.o),r<s.j){var c=s.j-r;r=s.j,i[0]+=c*l}if(r>=n?r=0:(i[0]+=4*s.v,s.ka=r-s.j,s.U=s.va-s.v,s.T=n-r,r=1),r){if(o=o[0],11>(r=A.ca).S){var u=r.f.RGBA,h=(n=r.S,i=s.U,s=s.T,c=u.eb,u.A),f=s;for(u=u.fb+A.Ma*u.A;0<f--;){var d=a,g=o,p=i,B=c,w=u;switch(n){case Hr:Ze(d,g,p,B,w);break;case Pr:$e(d,g,p,B,w);break;case Rr:$e(d,g,p,B,w),vr(B,w,0,p,1,0);break;case kr:er(d,g,p,B,w);break;case Or:tA(d,g,p,B,w,1);break;case Kr:tA(d,g,p,B,w,1),vr(B,w,0,p,1,0);break;case Tr:tA(d,g,p,B,w,0);break;case Vr:tA(d,g,p,B,w,0),vr(B,w,1,p,1,0);break;case Dr:Ar(d,g,p,B,w);break;case jr:Ar(d,g,p,B,w),br(B,w,p,1,0);break;case Mr:tr(d,g,p,B,w);break;default:t(0)}o+=l,u+=h}A.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(A.Ma<=r.height)}}A.C=e,t(A.C<=A.i)}function CA(A){var t;if(0<A.ua)return 0;for(t=0;t<A.Wb;++t){var e=A.Ya[t].G,r=A.Ya[t].H;if(0<e[1][r[1]+0].g||0<e[2][r[2]+0].g||0<e[3][r[3]+0].g)return 0}return 1}function FA(A,e,r,n,i,s){if(0!=A.Z){var a=A.qd,o=A.rd;for(t(null!=gn[A.Z]);e<r;++e)gn[A.Z](a,o,n,i,n,i,s),a=n,o=i,i+=s;A.qd=a,A.rd=o}}function QA(A,e){var r=A.l.ma,n=0==r.Z||1==r.Z?A.l.j:A.C;if(n=A.C<n?n:A.C,t(e<=A.l.o),e>n){var i=A.l.width,s=r.ca,a=r.tb+i*n,o=A.V,l=A.Ba+A.c*n,c=A.gc;t(1==A.ab),t(3==c[0].hc),Xe(c[0],n,e,o,l,s,a),FA(r,n,e,s,a,i)}A.C=A.Ma=e}function xA(A,e,r,n,i,s,a){var o=A.$/n,l=A.$%n,c=A.m,u=A.s,h=r+A.$,f=h;i=r+n*i;var d=r+n*s,g=280+u.ua,p=A.Pb?o:16777216,B=0<u.ua?u.Wa:null,w=u.wc,m=h<d?yA(u,l,o):null;t(A.C<s),t(d<=i);var y=!1;A:for(;;){for(;y||h<d;){var v=0;if(o>=p){var x=h-r;t((p=A).Pb),p.wd=p.m,p.xd=x,0<p.s.ua&&H(p.s.Wa,p.s.vb),p=o+Zr}if(l&w||(m=yA(u,l,o)),t(null!=m),m.Qb&&(e[h]=m.qb,y=!0),!y)if(Q(c),m.jc){v=c,x=e;var U=h,E=m.pd[b(v)&Oe-1];t(m.jc),256>E.g?(F(v,v.u+E.g),x[U]=E.value,v=0):(F(v,v.u+E.g-256),t(256<=E.value),v=E.value),0==v&&(y=!0)}else v=wA(m.G[0],m.H[0],c);if(c.h)break;if(y||256>v){if(!y)if(m.nd)e[h]=(m.qb|v<<8)>>>0;else{if(Q(c),y=wA(m.G[1],m.H[1],c),Q(c),x=wA(m.G[2],m.H[2],c),U=wA(m.G[3],m.H[3],c),c.h)break;e[h]=(U<<24|y<<16|v<<8|x)>>>0}if(y=!1,++h,++l>=n&&(l=0,++o,null!=a&&o<=s&&!(o%16)&&a(A,o),null!=B))for(;f<h;)v=e[f++],B.X[(506832829*v&4294967295)>>>B.Mb]=v}else if(280>v){if(v=pA(v-256,c),x=wA(m.G[4],m.H[4],c),Q(c),x=BA(n,x=pA(x,c)),c.h)break;if(h-r<x||i-h<v)break A;for(U=0;U<v;++U)e[h+U]=e[h+U-x];for(h+=v,l+=v;l>=n;)l-=n,++o,null!=a&&o<=s&&!(o%16)&&a(A,o);if(t(h<=i),l&w&&(m=yA(u,l,o)),null!=B)for(;f<h;)v=e[f++],B.X[(506832829*v&4294967295)>>>B.Mb]=v}else{if(!(v<g))break A;for(y=v-280,t(null!=B);f<h;)v=e[f++],B.X[(506832829*v&4294967295)>>>B.Mb]=v;v=h,t(!(y>>>(x=B).Xa)),e[v]=x.X[y],y=!0}y||t(c.h==C(c))}if(A.Pb&&c.h&&h<i)t(A.m.h),A.a=5,A.m=A.wd,A.$=A.xd,0<A.s.ua&&H(A.s.vb,A.s.Wa);else{if(c.h)break A;a?.(A,o>s?s:o),A.a=0,A.$=h-r}return 1}return A.a=3,0}function UA(A){t(null!=A),A.vc=null,A.yc=null,A.Ya=null;var e=A.Wa;null!=e&&(e.X=null),A.vb=null,t(null!=A)}function EA(){var t=new ie;return null==t?null:(t.a=0,t.xb=dn,eA("Predictor","VP8LPredictors"),eA("Predictor","VP8LPredictors_C"),eA("PredictorAdd","VP8LPredictorsAdd"),eA("PredictorAdd","VP8LPredictorsAdd_C"),Ge=z,Je=X,Ze=Y,$e=J,Ar=Z,tr=$,er=AA,A.VP8LMapColor32b=qe,A.VP8LMapColor8b=We,t)}function LA(A,e,r,a,o){var l=1,h=[A],d=[e],g=a.m,p=a.s,B=null,w=0;A:for(;;){if(r)for(;l&&m(g,1);){var y=h,v=d,C=a,x=1,U=C.m,E=C.gc[C.ab],L=m(U,2);if(C.Oc&1<<L)l=0;else{switch(C.Oc|=1<<L,E.hc=L,E.Ea=y[0],E.nc=v[0],E.K=[null],++C.ab,t(4>=C.ab),L){case 0:case 1:E.b=m(U,3)+2,x=LA(O(E.Ea,E.b),O(E.nc,E.b),0,C,E.K),E.K=E.K[0];break;case 3:var _,S=m(U,8)+1,I=16<S?0:4<S?1:2<S?2:3;if(y[0]=O(E.Ea,I),E.b=I,_=x=LA(S,1,0,C,E.K)){var H,P=S,k=E,D=1<<(8>>k.b),M=i(D);if(null==M)_=0;else{var R=k.K[0],K=k.w;for(M[0]=k.K[0][0],H=1;H<1*P;++H)M[H]=T(R[K+H],M[H-1]);for(;H<4*D;++H)M[H]=0;k.K[0]=null,k.K[0]=M,_=1}}x=_;break;case 2:break;default:t(0)}l=x}}if(h=h[0],d=d[0],l&&m(g,1)&&!(l=1<=(w=m(g,4))&&11>=w)){a.a=3;break A}var V;if(V=l)t:{var j,G,z,q=a,X=h,W=d,Y=w,J=r,Z=q.m,$=q.s,AA=[null],tA=1,eA=0,rA=Jr[Y];e:for(;;){if(J&&m(Z,1)){var nA=m(Z,3)+2,iA=O(X,nA),sA=O(W,nA),aA=iA*sA;if(!LA(iA,sA,0,q,AA))break e;for(AA=AA[0],$.xc=nA,j=0;j<aA;++j){var oA=AA[j]>>8&65535;AA[j]=oA,oA>=tA&&(tA=oA+1)}}if(Z.h)break e;for(G=0;5>G;++G){var lA=qr[G];!G&&0<Y&&(lA+=1<<Y),eA<lA&&(eA=lA)}var cA=s(tA*rA,u),uA=tA,hA=s(uA,f);if(null==hA)var fA=null;else t(65536>=uA),fA=hA;var dA=i(eA);if(null==fA||null==dA||null==cA){q.a=1;break e}var gA=cA;for(j=z=0;j<tA;++j){var pA=fA[j],BA=pA.G,wA=pA.H,yA=0,vA=1,bA=0;for(G=0;5>G;++G){lA=qr[G],BA[G]=gA,wA[G]=z,!G&&0<Y&&(lA+=1<<Y);r:{var CA,FA=lA,QA=q,EA=dA,_A=gA,SA=z,IA=0,NA=QA.m,HA=m(NA,1);if(n(EA,0,0,FA),HA){var PA=m(NA,1)+1,kA=m(NA,0==m(NA,1)?1:8);EA[kA]=1,2==PA&&(EA[kA=m(NA,8)]=1);var OA=1}else{var TA=i(19),DA=m(NA,4)+4;if(19<DA){QA.a=3;var MA=0;break r}for(CA=0;CA<DA;++CA)TA[Wr[CA]]=m(NA,3);var RA=void 0,KA=void 0,VA=QA,jA=TA,GA=FA,zA=EA,qA=0,XA=VA.m,WA=8,YA=s(128,u);n:for(;c(YA,0,7,jA,19);){if(m(XA,1)){if((RA=2+m(XA,2+2*m(XA,3)))>GA)break n}else RA=GA;for(KA=0;KA<GA&&RA--;){Q(XA);var JA=YA[0+(127&b(XA))];F(XA,XA.u+JA.g);var ZA=JA.value;if(16>ZA)zA[KA++]=ZA,0!=ZA&&(WA=ZA);else{var $A=16==ZA,At=ZA-16,tt=zr[At],et=m(XA,Gr[At])+tt;if(KA+et>GA)break n;for(var rt=$A?WA:0;0<et--;)zA[KA++]=rt}}qA=1;break n}qA||(VA.a=3),OA=qA}(OA&&=!NA.h)&&(IA=c(_A,SA,8,EA,FA)),OA&&0!=IA?MA=IA:(QA.a=3,MA=0)}if(0==MA)break e;if(vA&&1==Xr[G]&&(vA=0==gA[z].g),yA+=gA[z].g,z+=MA,3>=G){var nt,it=dA[0];for(nt=1;nt<lA;++nt)dA[nt]>it&&(it=dA[nt]);bA+=it}}if(pA.nd=vA,pA.Qb=0,vA&&(pA.qb=(BA[3][wA[3]+0].value<<24|BA[1][wA[1]+0].value<<16|BA[2][wA[2]+0].value)>>>0,0==yA&&256>BA[0][wA[0]+0].value&&(pA.Qb=1,pA.qb+=BA[0][wA[0]+0].value<<8)),pA.jc=!pA.Qb&&6>bA,pA.jc){var st,at=pA;for(st=0;st<Oe;++st){var ot=st,lt=at.pd[ot],ct=at.G[0][at.H[0]+ot];256<=ct.value?(lt.g=ct.g+256,lt.value=ct.value):(lt.g=0,lt.value=0,ot>>=mA(ct,8,lt),ot>>=mA(at.G[1][at.H[1]+ot],16,lt),ot>>=mA(at.G[2][at.H[2]+ot],0,lt),mA(at.G[3][at.H[3]+ot],24,lt))}}}$.vc=AA,$.Wb=tA,$.Ya=fA,$.yc=cA,V=1;break t}V=0}if(!(l=V)){a.a=3;break A}if(0<w){if(p.ua=1<<w,!N(p.Wa,w)){a.a=1,l=0;break A}}else p.ua=0;var ut=a,ht=h,ft=d,dt=ut.s,gt=dt.xc;if(ut.c=ht,ut.i=ft,dt.md=O(ht,gt),dt.wc=0==gt?-1:(1<<gt)-1,r){a.xb=fn;break A}if(null==(B=i(h*d))){a.a=1,l=0;break A}l=(l=xA(a,B,0,h,d,d,null))&&!g.h;break A}return l?(null==o?(t(null==B),t(r)):o[0]=B,a.$=0,r||UA(p)):UA(p),l}function _A(A,e){var r=A.c*A.i,n=r+e+16*e;return t(A.c<=e),A.V=i(n),null==A.V?(A.Ta=null,A.Ua=0,A.a=1,0):(A.Ta=A.V,A.Ua=A.Ba+r+e,1)}function SA(A,e){var r=A.C,n=e-r,i=A.V,s=A.Ba+A.c*r;for(t(e<=A.l.o);0<n;){var a=16<n?16:n,o=A.l.ma,l=A.l.width,c=l*a,u=o.ca,h=o.tb+l*r,f=A.Ta,d=A.Ua;vA(A,a,i,s),Fr(f,d,u,h,c),FA(o,r,r+a,u,h,l),n-=a,i+=a*A.c,r+=a}t(r==e),A.C=A.Ma=e}function IA(){this.ub=this.yd=this.td=this.Rb=0}function NA(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function HA(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function PA(){this.Yb=function(){var A=[];return function A(t,e,r){for(var n=r[e],i=0;i<n&&(t.push(r.length>e+1?[]:0),!(r.length<e+1));i++)A(t[i],e+1,r)}(A,0,[3,11]),A}()}function kA(){this.jb=i(3),this.Wc=a([4,8],PA),this.Xc=a([4,17],PA)}function OA(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function TA(){this.ld=this.La=this.dd=this.tc=0}function DA(){this.Na=this.la=0}function MA(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function RA(){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 KA(){this.uc=this.M=this.Nb=0,this.wa=Array(new TA),this.Y=0,this.ya=Array(new RA),this.aa=0,this.l=new zA}function VA(){this.y=i(16),this.f=i(8),this.ea=i(8)}function jA(){this.cb=this.a=0,this.sc="",this.m=new y,this.Od=new IA,this.Kc=new NA,this.ed=new OA,this.Qa=new HA,this.Ic=this.$c=this.Aa=0,this.D=new KA,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,y),this.ia=0,this.pb=s(4,MA),this.Pa=new kA,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new VA),this.Hd=0,this.rb=Array(new DA),this.sb=0,this.wa=Array(new TA),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 RA),this.L=this.aa=0,this.gd=a([4,2],TA),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 GA(A,t){return 0>A?0:A>t?t:A}function zA(){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 qA(){var A=new jA;return null!=A&&(A.a=0,A.sc="OK",A.cb=0,A.Xb=0,tn||=JA),A}function XA(A,t,e){return 0==A.a&&(A.a=t,A.sc=e,A.cb=0),0}function WA(A,t,e){return 3<=e&&157==A[t+0]&&1==A[t+1]&&42==A[t+2]}function YA(A,e){if(null==A)return 0;if(A.a=0,A.sc="OK",null==e)return XA(A,2,"null VP8Io passed to VP8GetHeaders()");var r=e.data,i=e.w,s=e.ha;if(4>s)return XA(A,7,"Truncated header.");var a=r[i+0]|r[i+1]<<8|r[i+2]<<16,o=A.Od;if(o.Rb=!(1&a),o.td=a>>1&7,o.yd=a>>4&1,o.ub=a>>5,3<o.td)return XA(A,3,"Incorrect keyframe parameters.");if(!o.yd)return XA(A,4,"Frame not displayable.");i+=3,s-=3;var l=A.Kc;if(o.Rb){if(7>s)return XA(A,7,"cannot parse picture header");if(!WA(r,i,s))return XA(A,3,"Bad code word");l.c=16383&(r[i+4]<<8|r[i+3]),l.Td=r[i+4]>>6,l.i=16383&(r[i+6]<<8|r[i+5]),l.Ud=r[i+6]>>6,i+=7,s-=7,A.za=l.c+15>>4,A.Ub=l.i+15>>4,e.width=l.c,e.height=l.i,e.Da=0,e.j=0,e.v=0,e.va=e.width,e.o=e.height,e.da=0,e.ib=e.width,e.hb=e.height,e.U=e.width,e.T=e.height,n((a=A.Pa).jb,0,255,a.jb.length),t(null!=(a=A.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,n(a.Zb,0,0,a.Zb.length),n(a.Lb,0,0,a.Lb)}if(o.ub>s)return XA(A,7,"bad partition length");d(a=A.m,r,i,o.ub),i+=o.ub,s-=o.ub,o.Rb&&(l.Ld=U(a),l.Kd=U(a)),l=A.Qa;var c,u=A.Pa;if(t(null!=a),t(null!=l),l.Cb=U(a),l.Cb){if(l.Bb=U(a),U(a)){for(l.Fb=U(a),c=0;4>c;++c)l.Zb[c]=U(a)?p(a,7):0;for(c=0;4>c;++c)l.Lb[c]=U(a)?p(a,6):0}if(l.Bb)for(c=0;3>c;++c)u.jb[c]=U(a)?g(a,8):255}else l.Bb=0;if(a.Ka)return XA(A,3,"cannot parse segment header");if((l=A.ed).zd=U(a),l.Tb=g(a,6),l.wb=g(a,3),l.Pc=U(a),l.Pc&&U(a)){for(u=0;4>u;++u)U(a)&&(l.vd[u]=p(a,6));for(u=0;4>u;++u)U(a)&&(l.od[u]=p(a,6))}if(A.L=0==l.Tb?0:l.zd?1:2,a.Ka)return XA(A,3,"cannot parse filter header");var h=s;if(s=c=i,i=c+h,l=h,A.Xb=(1<<g(A.m,2))-1,h<3*(u=A.Xb))r=7;else{for(c+=3*u,l-=3*u,h=0;h<u;++h){var f=r[s+0]|r[s+1]<<8|r[s+2]<<16;f>l&&(f=l),d(A.Jc[+h],r,c,f),c+=f,l-=f,s+=3}d(A.Jc[+u],r,c,l),r=c<i?0:5}if(0!=r)return XA(A,r,"cannot parse partitions");for(r=g(c=A.m,7),s=U(c)?p(c,4):0,i=U(c)?p(c,4):0,l=U(c)?p(c,4):0,u=U(c)?p(c,4):0,c=U(c)?p(c,4):0,h=A.Qa,f=0;4>f;++f){if(h.Cb){var B=h.Zb[f];h.Fb||(B+=r)}else{if(0<f){A.pb[f]=A.pb[0];continue}B=r}var w=A.pb[f];w.Sc[0]=$r[GA(B+s,127)],w.Sc[1]=An[GA(B+0,127)],w.Eb[0]=2*$r[GA(B+i,127)],w.Eb[1]=101581*An[GA(B+l,127)]>>16,8>w.Eb[1]&&(w.Eb[1]=8),w.Qc[0]=$r[GA(B+u,117)],w.Qc[1]=An[GA(B+c,127)],w.lc=B+c}if(!o.Rb)return XA(A,4,"Not a key frame.");for(U(a),o=A.Pa,r=0;4>r;++r){for(s=0;8>s;++s)for(i=0;3>i;++i)for(l=0;11>l;++l)u=E(a,on[r][s][i][l])?g(a,8):sn[r][s][i][l],o.Wc[r][s].Yb[i][l]=u;for(s=0;17>s;++s)o.Xc[r][s]=o.Wc[r][ln[s]]}return A.kc=U(a),A.kc&&(A.Bd=g(a,8)),A.cb=1}function JA(A,t,e,r,n,i,s){var a=t[n].Yb[e];for(e=0;16>n;++n){if(!E(A,a[e+0]))return n;for(;!E(A,a[e+1]);)if(a=t[++n].Yb[0],e=0,16==n)return 16;var o=t[n+1].Yb;if(E(A,a[e+2])){var l=A,c=0;if(E(l,(h=a)[(u=e)+3]))if(E(l,h[u+6])){for(a=0,u=2*(c=E(l,h[u+8]))+(h=E(l,h[u+9+c])),c=0,h=en[u];h[a];++a)c+=c+E(l,h[a]);c+=3+(8<<u)}else E(l,h[u+7])?(c=7+2*E(l,165),c+=E(l,145)):c=5+E(l,159);else c=E(l,h[u+4])?3+E(l,h[u+5]):2;a=o[2]}else c=1,a=o[1];o=s+rn[n],0>(l=A).b&&x(l);var u,h=l.b,f=(u=l.Ca>>1)-(l.I>>h)>>31;--l.b,l.Ca+=f,l.Ca|=1,l.I-=(u+1&f)<<h,i[o]=((c^f)-f)*r[(0<n)+0]}return 16}function ZA(A){var t=A.rb[A.sb-1];t.la=0,t.Na=0,n(A.zc,0,0,A.zc.length),A.ja=0}function $A(A,t,e,r,n){n=A[t+e+32*r]+(n>>3),A[t+e+32*r]=-256&n?0>n?0:255:n}function At(A,t,e,r,n,i){$A(A,t,0,e,r+n),$A(A,t,1,e,r+i),$A(A,t,2,e,r-i),$A(A,t,3,e,r-n)}function tt(A){return(20091*A>>16)+A}function et(A,t,e,r){var n,s=0,a=i(16);for(n=0;4>n;++n){var o=A[t+0]+A[t+8],l=A[t+0]-A[t+8],c=(35468*A[t+4]>>16)-tt(A[t+12]),u=tt(A[t+4])+(35468*A[t+12]>>16);a[s+0]=o+u,a[s+1]=l+c,a[s+2]=l-c,a[s+3]=o-u,s+=4,t++}for(n=s=0;4>n;++n)o=(A=a[s+0]+4)+a[s+8],l=A-a[s+8],c=(35468*a[s+4]>>16)-tt(a[s+12]),$A(e,r,0,0,o+(u=tt(a[s+4])+(35468*a[s+12]>>16))),$A(e,r,1,0,l+c),$A(e,r,2,0,l-c),$A(e,r,3,0,o-u),s++,r+=32}function rt(A,t,e,r){var n=A[t+0]+4,i=35468*A[t+4]>>16,s=tt(A[t+4]),a=35468*A[t+1]>>16;At(e,r,0,n+s,A=tt(A[t+1]),a),At(e,r,1,n+i,A,a),At(e,r,2,n-i,A,a),At(e,r,3,n-s,A,a)}function nt(A,t,e,r,n){et(A,t,e,r),n&&et(A,t+16,e,r+4)}function it(A,t,e,r){nr(A,t+0,e,r,1),nr(A,t+32,e,r+128,1)}function st(A,t,e,r){var n;for(A=A[t+0]+4,n=0;4>n;++n)for(t=0;4>t;++t)$A(e,r,t,n,A)}function at(A,t,e,r){A[t+0]&&ar(A,t+0,e,r),A[t+16]&&ar(A,t+16,e,r+4),A[t+32]&&ar(A,t+32,e,r+128),A[t+48]&&ar(A,t+48,e,r+128+4)}function ot(A,t,e,r){var n,s=i(16);for(n=0;4>n;++n){var a=A[t+0+n]+A[t+12+n],o=A[t+4+n]+A[t+8+n],l=A[t+4+n]-A[t+8+n],c=A[t+0+n]-A[t+12+n];s[0+n]=a+o,s[8+n]=a-o,s[4+n]=c+l,s[12+n]=c-l}for(n=0;4>n;++n)a=(A=s[0+4*n]+3)+s[3+4*n],o=s[1+4*n]+s[2+4*n],l=s[1+4*n]-s[2+4*n],c=A-s[3+4*n],e[r+0]=a+o>>3,e[r+16]=c+l>>3,e[r+32]=a-o>>3,e[r+48]=c-l>>3,r+=64}function lt(A,t,e){var r,n=t-32,i=Ir,s=255-A[n-1];for(r=0;r<e;++r){var a,o=i,l=s+A[t-1];for(a=0;a<e;++a)A[t+a]=o[l+A[n+a]];t+=32}}function ct(A,t){lt(A,t,4)}function ut(A,t){lt(A,t,8)}function ht(A,t){lt(A,t,16)}function ft(A,t){var e;for(e=0;16>e;++e)r(A,t+32*e,A,t-32,16)}function dt(A,t){var e;for(e=16;0<e;--e)n(A,t,A[t-1],16),t+=32}function gt(A,t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,A,16)}function pt(A,t){var e,r=16;for(e=0;16>e;++e)r+=A[t-1+32*e]+A[t+e-32];gt(r>>5,A,t)}function Bt(A,t){var e,r=8;for(e=0;16>e;++e)r+=A[t-1+32*e];gt(r>>4,A,t)}function wt(A,t){var e,r=8;for(e=0;16>e;++e)r+=A[t+e-32];gt(r>>4,A,t)}function mt(A,t){gt(128,A,t)}function yt(A,t,e){return A+2*t+e+2>>2}function vt(A,t){var e,n=t-32;for(n=new Uint8Array([yt(A[n-1],A[n+0],A[n+1]),yt(A[n+0],A[n+1],A[n+2]),yt(A[n+1],A[n+2],A[n+3]),yt(A[n+2],A[n+3],A[n+4])]),e=0;4>e;++e)r(A,t+32*e,n,0,n.length)}function bt(A,t){var e=A[t-1],r=A[t-1+32],n=A[t-1+64],i=A[t-1+96];L(A,t+0,16843009*yt(A[t-1-32],e,r)),L(A,t+32,16843009*yt(e,r,n)),L(A,t+64,16843009*yt(r,n,i)),L(A,t+96,16843009*yt(n,i,i))}function Ct(A,t){var e,r=4;for(e=0;4>e;++e)r+=A[t+e-32]+A[t-1+32*e];for(r>>=3,e=0;4>e;++e)n(A,t+32*e,r,4)}function Ft(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1-32],s=A[t+0-32],a=A[t+1-32],o=A[t+2-32],l=A[t+3-32];A[t+0+96]=yt(r,n,A[t-1+96]),A[t+1+96]=A[t+0+64]=yt(e,r,n),A[t+2+96]=A[t+1+64]=A[t+0+32]=yt(i,e,r),A[t+3+96]=A[t+2+64]=A[t+1+32]=A[t+0+0]=yt(s,i,e),A[t+3+64]=A[t+2+32]=A[t+1+0]=yt(a,s,i),A[t+3+32]=A[t+2+0]=yt(o,a,s),A[t+3+0]=yt(l,o,a)}function Qt(A,t){var e=A[t+1-32],r=A[t+2-32],n=A[t+3-32],i=A[t+4-32],s=A[t+5-32],a=A[t+6-32],o=A[t+7-32];A[t+0+0]=yt(A[t+0-32],e,r),A[t+1+0]=A[t+0+32]=yt(e,r,n),A[t+2+0]=A[t+1+32]=A[t+0+64]=yt(r,n,i),A[t+3+0]=A[t+2+32]=A[t+1+64]=A[t+0+96]=yt(n,i,s),A[t+3+32]=A[t+2+64]=A[t+1+96]=yt(i,s,a),A[t+3+64]=A[t+2+96]=yt(s,a,o),A[t+3+96]=yt(a,o,o)}function xt(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1-32],s=A[t+0-32],a=A[t+1-32],o=A[t+2-32],l=A[t+3-32];A[t+0+0]=A[t+1+64]=i+s+1>>1,A[t+1+0]=A[t+2+64]=s+a+1>>1,A[t+2+0]=A[t+3+64]=a+o+1>>1,A[t+3+0]=o+l+1>>1,A[t+0+96]=yt(n,r,e),A[t+0+64]=yt(r,e,i),A[t+0+32]=A[t+1+96]=yt(e,i,s),A[t+1+32]=A[t+2+96]=yt(i,s,a),A[t+2+32]=A[t+3+96]=yt(s,a,o),A[t+3+32]=yt(a,o,l)}function Ut(A,t){var e=A[t+0-32],r=A[t+1-32],n=A[t+2-32],i=A[t+3-32],s=A[t+4-32],a=A[t+5-32],o=A[t+6-32],l=A[t+7-32];A[t+0+0]=e+r+1>>1,A[t+1+0]=A[t+0+64]=r+n+1>>1,A[t+2+0]=A[t+1+64]=n+i+1>>1,A[t+3+0]=A[t+2+64]=i+s+1>>1,A[t+0+32]=yt(e,r,n),A[t+1+32]=A[t+0+96]=yt(r,n,i),A[t+2+32]=A[t+1+96]=yt(n,i,s),A[t+3+32]=A[t+2+96]=yt(i,s,a),A[t+3+64]=yt(s,a,o),A[t+3+96]=yt(a,o,l)}function Et(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1+96];A[t+0+0]=e+r+1>>1,A[t+2+0]=A[t+0+32]=r+n+1>>1,A[t+2+32]=A[t+0+64]=n+i+1>>1,A[t+1+0]=yt(e,r,n),A[t+3+0]=A[t+1+32]=yt(r,n,i),A[t+3+32]=A[t+1+64]=yt(n,i,i),A[t+3+64]=A[t+2+64]=A[t+0+96]=A[t+1+96]=A[t+2+96]=A[t+3+96]=i}function Lt(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1+96],s=A[t-1-32],a=A[t+0-32],o=A[t+1-32],l=A[t+2-32];A[t+0+0]=A[t+2+32]=e+s+1>>1,A[t+0+32]=A[t+2+64]=r+e+1>>1,A[t+0+64]=A[t+2+96]=n+r+1>>1,A[t+0+96]=i+n+1>>1,A[t+3+0]=yt(a,o,l),A[t+2+0]=yt(s,a,o),A[t+1+0]=A[t+3+32]=yt(e,s,a),A[t+1+32]=A[t+3+64]=yt(r,e,s),A[t+1+64]=A[t+3+96]=yt(n,r,e),A[t+1+96]=yt(i,n,r)}function _t(A,t){var e;for(e=0;8>e;++e)r(A,t+32*e,A,t-32,8)}function St(A,t){var e;for(e=0;8>e;++e)n(A,t,A[t-1],8),t+=32}function It(A,t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,A,8)}function Nt(A,t){var e,r=8;for(e=0;8>e;++e)r+=A[t+e-32]+A[t-1+32*e];It(r>>4,A,t)}function Ht(A,t){var e,r=4;for(e=0;8>e;++e)r+=A[t+e-32];It(r>>3,A,t)}function Pt(A,t){var e,r=4;for(e=0;8>e;++e)r+=A[t-1+32*e];It(r>>3,A,t)}function kt(A,t){It(128,A,t)}function Ot(A,t,e){var r=A[t-e],n=A[t+0],i=3*(n-r)+_r[1020+A[t-2*e]-A[t+e]],s=Sr[112+(i+4>>3)];A[t-e]=Ir[255+r+Sr[112+(i+3>>3)]],A[t+0]=Ir[255+n-s]}function Tt(A,t,e,r){var n=A[t+0],i=A[t+e];return Nr[255+A[t-2*e]-A[t-e]]>r||Nr[255+i-n]>r}function Dt(A,t,e,r){return 4*Nr[255+A[t-e]-A[t+0]]+Nr[255+A[t-2*e]-A[t+e]]<=r}function Mt(A,t,e,r,n){var i=A[t-3*e],s=A[t-2*e],a=A[t-e],o=A[t+0],l=A[t+e],c=A[t+2*e],u=A[t+3*e];return 4*Nr[255+a-o]+Nr[255+s-l]>r?0:Nr[255+A[t-4*e]-i]<=n&&Nr[255+i-s]<=n&&Nr[255+s-a]<=n&&Nr[255+u-c]<=n&&Nr[255+c-l]<=n&&Nr[255+l-o]<=n}function Rt(A,t,e,r){var n=2*r+1;for(r=0;16>r;++r)Dt(A,t+r,e,n)&&Ot(A,t+r,e)}function Kt(A,t,e,r){var n=2*r+1;for(r=0;16>r;++r)Dt(A,t+r*e,1,n)&&Ot(A,t+r*e,1)}function Vt(A,t,e,r){var n;for(n=3;0<n;--n)Rt(A,t+=4*e,e,r)}function jt(A,t,e,r){var n;for(n=3;0<n;--n)Kt(A,t+=4,e,r)}function Gt(A,t,e,r,n,i,s,a){for(i=2*i+1;0<n--;){if(Mt(A,t,e,i,s))if(Tt(A,t,e,a))Ot(A,t,e);else{var o=A,l=t,c=e,u=o[l-2*c],h=o[l-c],f=o[l+0],d=o[l+c],g=o[l+2*c],p=27*(w=_r[1020+3*(f-h)+_r[1020+u-d]])+63>>7,B=18*w+63>>7,w=9*w+63>>7;o[l-3*c]=Ir[255+o[l-3*c]+w],o[l-2*c]=Ir[255+u+B],o[l-c]=Ir[255+h+p],o[l+0]=Ir[255+f-p],o[l+c]=Ir[255+d-B],o[l+2*c]=Ir[255+g-w]}t+=r}}function zt(A,t,e,r,n,i,s,a){for(i=2*i+1;0<n--;){if(Mt(A,t,e,i,s))if(Tt(A,t,e,a))Ot(A,t,e);else{var o=A,l=t,c=e,u=o[l-c],h=o[l+0],f=o[l+c],d=Sr[112+(4+(g=3*(h-u))>>3)],g=Sr[112+(g+3>>3)],p=d+1>>1;o[l-2*c]=Ir[255+o[l-2*c]+p],o[l-c]=Ir[255+u+g],o[l+0]=Ir[255+h-d],o[l+c]=Ir[255+f-p]}t+=r}}function qt(A,t,e,r,n,i){Gt(A,t,e,1,16,r,n,i)}function Xt(A,t,e,r,n,i){Gt(A,t,1,e,16,r,n,i)}function Wt(A,t,e,r,n,i){var s;for(s=3;0<s;--s)zt(A,t+=4*e,e,1,16,r,n,i)}function Yt(A,t,e,r,n,i){var s;for(s=3;0<s;--s)zt(A,t+=4,1,e,16,r,n,i)}function Jt(A,t,e,r,n,i,s,a){Gt(A,t,n,1,8,i,s,a),Gt(e,r,n,1,8,i,s,a)}function Zt(A,t,e,r,n,i,s,a){Gt(A,t,1,n,8,i,s,a),Gt(e,r,1,n,8,i,s,a)}function $t(A,t,e,r,n,i,s,a){zt(A,t+4*n,n,1,8,i,s,a),zt(e,r+4*n,n,1,8,i,s,a)}function Ae(A,t,e,r,n,i,s,a){zt(A,t+4,1,n,8,i,s,a),zt(e,r+4,1,n,8,i,s,a)}function te(){this.ba=new sA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new oA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ee(){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 re(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ne(){this.ua=0,this.Wa=new P,this.vb=new P,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new u}function ie(){this.xb=this.a=0,this.l=new zA,this.ca=new sA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new v,this.Pb=0,this.wd=new v,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ne,this.ab=0,this.gc=s(4,re),this.Oc=0}function se(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ae(A,t,e,r,n,i,s){for(A=null==A?0:A[t+0],t=0;t<s;++t)n[i+t]=A+e[r+t]&255,A=n[i+t]}function oe(A,t,e,r,n,i,s){var a;if(null==A)ae(null,null,e,r,n,i,s);else for(a=0;a<s;++a)n[i+a]=A[t+a]+e[r+a]&255}function le(A,t,e,r,n,i,s){if(null==A)ae(null,null,e,r,n,i,s);else{var a,o=A[t+0],l=o,c=o;for(a=0;a<s;++a)l=c+(o=A[t+a])-l,c=e[r+a]+(-256&l?0>l?0:255:l)&255,l=o,n[i+a]=c}}function ce(A,e,n,s){var a=e.width,o=e.o;if(t(null!=A&&null!=e),0>n||0>=s||n+s>o)return null;if(!A.Cc){if(null==A.ga){var l;if(A.ga=new se,(l=null==A.ga)||(l=e.width*e.o,t(0==A.Gb.length),A.Gb=i(l),A.Uc=0,null==A.Gb?l=0:(A.mb=A.Gb,A.nb=A.Uc,A.rc=null,l=1),l=!l),!l){l=A.ga;var c=A.Fa,u=A.P,h=A.qc,f=A.mb,d=A.nb,g=u+1,p=h-1,w=l.l;if(t(null!=c&&null!=f&&null!=e),gn[0]=null,gn[1]=ae,gn[2]=oe,gn[3]=le,l.ca=f,l.tb=d,l.c=e.width,l.i=e.height,t(0<l.c&&0<l.i),1>=h)e=0;else if(l.$a=3&c[u+0],l.Z=c[u+0]>>2&3,l.Lc=c[u+0]>>4&3,u=c[u+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||u)e=0;else if(w.put=fA,w.ac=hA,w.bc=dA,w.ma=l,w.width=e.width,w.height=e.height,w.Da=e.Da,w.v=e.v,w.va=e.va,w.j=e.j,w.o=e.o,l.$a)A:{t(1==l.$a),e=EA();t:for(;;){if(null==e){e=0;break A}if(t(null!=l),l.mc=e,e.c=l.c,e.i=l.i,e.l=l.l,e.l.ma=l,e.l.width=l.c,e.l.height=l.i,e.a=0,B(e.m,c,g,p),!LA(l.c,l.i,1,e,null)||(1==e.ab&&3==e.gc[0].hc&&CA(e.s)?(l.ic=1,c=e.c*e.i,e.Ta=null,e.Ua=0,e.V=i(c),e.Ba=0,null==e.V?(e.a=1,e=0):e=1):(l.ic=0,e=_A(e,l.c)),!e))break t;e=1;break A}l.mc=null,e=0}else e=p>=l.c*l.i;l=!e}if(l)return null;1==A.ga.Lc?s=o-n:A.Ga=0}t(null!=A.ga),t(n+s<=o);A:{if(e=(c=A.ga).c,o=c.l.o,0==c.$a){if(g=A.rc,p=A.Vc,w=A.Fa,u=A.P+1+n*e,h=A.mb,f=A.nb+n*e,t(u<=A.P+A.qc),0!=c.Z)for(t(null!=gn[c.Z]),l=0;l<s;++l)gn[c.Z](g,p,w,u,h,f,e),g=h,p=f,f+=e,u+=e;else for(l=0;l<s;++l)r(h,f,w,u,e),g=h,p=f,f+=e,u+=e;A.rc=g,A.Vc=p}else{if(t(null!=c.mc),e=n+s,t(null!=(l=c.mc)),t(e<=l.i),l.C>=e)e=1;else if(c.ic||ge(),c.ic){c=l.V,g=l.Ba,p=l.c;var m=l.i,y=(w=1,u=l.$/p,h=l.$%p,f=l.m,d=l.s,l.$),v=p*m,b=p*e,F=d.wc,x=y<b?yA(d,h,u):null;t(y<=v),t(e<=m),t(CA(d));t:for(;;){for(;!f.h&&y<b;){if(h&F||(x=yA(d,h,u)),t(null!=x),Q(f),256>(m=wA(x.G[0],x.H[0],f)))c[g+y]=m,++y,++h>=p&&(h=0,++u<=e&&!(u%16)&&QA(l,u));else{if(!(280>m)){w=0;break t}m=pA(m-256,f);var U,E=wA(x.G[4],x.H[4],f);if(Q(f),!(y>=(E=BA(p,E=pA(E,f)))&&v-y>=m)){w=0;break t}for(U=0;U<m;++U)c[g+y+U]=c[g+y+U-E];for(y+=m,h+=m;h>=p;)h-=p,++u<=e&&!(u%16)&&QA(l,u);y<b&&h&F&&(x=yA(d,h,u))}t(f.h==C(f))}QA(l,u>e?e:u);break t}!w||f.h&&y<v?(w=0,l.a=f.h?5:3):l.$=y,e=w}else e=xA(l,l.V,l.Ba,l.c,l.i,e,SA);if(!e){s=0;break A}}n+s>=o&&(A.Cc=1),s=1}if(!s)return null;if(A.Cc&&(null!=(s=A.ga)&&(s.mc=null),A.ga=null,0<A.Ga))return alert("todo:WebPDequantizeLevels"),null}return A.nb+n*a}function ue(A,t,e,r,n,i){for(;0<n--;){var s,a=A,o=t+(e?1:0),l=A,c=t+(e?0:3);for(s=0;s<r;++s){var u=l[c+4*s];255!=u&&(u*=32897,a[o+4*s+0]=a[o+4*s+0]*u>>23,a[o+4*s+1]=a[o+4*s+1]*u>>23,a[o+4*s+2]=a[o+4*s+2]*u>>23)}t+=i}}function he(A,t,e,r,n){for(;0<r--;){var i;for(i=0;i<e;++i){var s=A[t+2*i+0],a=15&(l=A[t+2*i+1]),o=4369*a,l=(240&l|l>>4)*o>>16;A[t+2*i+0]=(240&s|s>>4)*o>>16&240|(15&s|s<<4)*o>>16>>4&15,A[t+2*i+1]=240&l|a}t+=n}}function fe(A,t,e,r,n,i,s,a){var o,l,c=255;for(l=0;l<n;++l){for(o=0;o<r;++o){var u=A[t+o];i[s+4*o]=u,c&=u}t+=e,s+=a}return 255!=c}function de(A,t,e,r,n){var i;for(i=0;i<n;++i)e[r+i]=A[t+i]>>8}function ge(){vr=ue,br=he,Cr=fe,Fr=de}function pe(e,r,n){A[e]=function(A,e,i,s,a,o,l,c,u,h,f,d,g,p,B,w,m){var y,v=m-1>>1,b=a[o+0]|l[c+0]<<16,C=u[h+0]|f[d+0]<<16;t(null!=A);var F=3*b+C+131074>>2;for(r(A[e+0],255&F,F>>16,g,p),null!=i&&(F=3*C+b+131074>>2,r(i[s+0],255&F,F>>16,B,w)),y=1;y<=v;++y){var Q=a[o+y]|l[c+y]<<16,x=u[h+y]|f[d+y]<<16,U=b+Q+C+x+524296,E=U+2*(Q+C)>>3;F=E+b>>1,b=(U=U+2*(b+x)>>3)+Q>>1,r(A[e+2*y-1],255&F,F>>16,g,p+(2*y-1)*n),r(A[e+2*y-0],255&b,b>>16,g,p+(2*y-0)*n),null!=i&&(F=U+C>>1,b=E+x>>1,r(i[s+2*y-1],255&F,F>>16,B,w+(2*y-1)*n),r(i[s+2*y+0],255&b,b>>16,B,w+(2*y+0)*n)),b=Q,C=x}1&m||(F=3*b+C+131074>>2,r(A[e+m-1],255&F,F>>16,g,p+(m-1)*n),null!=i&&(F=3*C+b+131074>>2,r(i[s+m-1],255&F,F>>16,B,w+(m-1)*n)))}}function Be(){pn[Hr]=Bn,pn[Pr]=mn,pn[kr]=wn,pn[Or]=yn,pn[Tr]=vn,pn[Dr]=bn,pn[Mr]=Cn,pn[Rr]=mn,pn[Kr]=yn,pn[Vr]=vn,pn[jr]=bn}function we(A){return A&~Ln?0>A?0:255:A>>En}function me(A,t){return we((19077*A>>8)+(26149*t>>8)-14234)}function ye(A,t,e){return we((19077*A>>8)-(6419*t>>8)-(13320*e>>8)+8708)}function ve(A,t){return we((19077*A>>8)+(33050*t>>8)-17685)}function be(A,t,e,r,n){r[n+0]=me(A,e),r[n+1]=ye(A,t,e),r[n+2]=ve(A,t)}function Ce(A,t,e,r,n){r[n+0]=ve(A,t),r[n+1]=ye(A,t,e),r[n+2]=me(A,e)}function Fe(A,t,e,r,n){var i=ye(A,t,e);t=i<<3&224|ve(A,t)>>3,r[n+0]=248&me(A,e)|i>>5,r[n+1]=t}function Qe(A,t,e,r,n){var i=240&ve(A,t)|15;r[n+0]=240&me(A,e)|ye(A,t,e)>>4,r[n+1]=i}function xe(A,t,e,r,n){r[n+0]=255,be(A,t,e,r,n+1)}function Ue(A,t,e,r,n){Ce(A,t,e,r,n),r[n+3]=255}function Ee(A,t,e,r,n){be(A,t,e,r,n),r[n+3]=255}function Le(t,e,r){A[t]=function(A,t,n,i,s,a,o,l,c){for(var u=l+(-2&c)*r;l!=u;)e(A[t+0],n[i+0],s[a+0],o,l),e(A[t+1],n[i+0],s[a+0],o,l+r),t+=2,++i,++a,l+=2*r;1&c&&e(A[t+0],n[i+0],s[a+0],o,l)}}function _e(A,t,e){return 0==e?0==A?0==t?6:5:0==t?4:0:e}function Se(A,t,e,r,n){switch(A>>>30){case 3:nr(t,e,r,n,0);break;case 2:ir(t,e,r,n);break;case 1:ar(t,e,r,n)}}function Ie(A,t){var e,i,s=t.M,a=t.Nb,o=A.oc,l=A.pc+40,c=A.oc,u=A.pc+584,h=A.oc,f=A.pc+600;for(e=0;16>e;++e)o[l+32*e-1]=129;for(e=0;8>e;++e)c[u+32*e-1]=129,h[f+32*e-1]=129;for(0<s?o[l-1-32]=c[u-1-32]=h[f-1-32]=129:(n(o,l-32-1,127,21),n(c,u-32-1,127,9),n(h,f-32-1,127,9)),i=0;i<A.za;++i){var d=t.ya[t.aa+i];if(0<i){for(e=-1;16>e;++e)r(o,l+32*e-4,o,l+32*e+12,4);for(e=-1;8>e;++e)r(c,u+32*e-4,c,u+32*e+4,4),r(h,f+32*e-4,h,f+32*e+4,4)}var g=A.Gd,p=A.Hd+i,B=d.ad,w=d.Hc;if(0<s&&(r(o,l-32,g[p].y,0,16),r(c,u-32,g[p].f,0,8),r(h,f-32,g[p].ea,0,8)),d.Za){var m=o,y=l-32+16;for(0<s&&(i>=A.za-1?n(m,y,g[p].y[15],4):r(m,y,g[p+1].y,0,4)),e=0;4>e;e++)m[y+128+e]=m[y+256+e]=m[y+384+e]=m[y+0+e];for(e=0;16>e;++e,w<<=2)m=o,y=l+On[e],un[d.Ob[e]](m,y),Se(w,B,16*e,m,y)}else if(m=_e(i,s,d.Ob[0]),cn[m](o,l),0!=w)for(e=0;16>e;++e,w<<=2)Se(w,B,16*e,o,l+On[e]);for(e=d.Gc,m=_e(i,s,d.Dd),hn[m](c,u),hn[m](h,f),w=B,m=c,y=u,255&(d=0|e)&&(170&d?sr(w,256,m,y):or(w,256,m,y)),d=h,w=f,255&(e>>=8)&&(170&e?sr(B,320,d,w):or(B,320,d,w)),s<A.Ub-1&&(r(g[p].y,0,o,l+480,16),r(g[p].f,0,c,u+224,8),r(g[p].ea,0,h,f+224,8)),e=8*a*A.B,g=A.sa,p=A.ta+16*i+16*a*A.R,B=A.qa,d=A.ra+8*i+e,w=A.Ha,m=A.Ia+8*i+e,e=0;16>e;++e)r(g,p+e*A.R,o,l+32*e,16);for(e=0;8>e;++e)r(B,d+e*A.B,c,u+32*e,8),r(w,m+e*A.B,h,f+32*e,8)}}function Ne(A,r,n,i,s,a,o,l,c){var u=[0],h=[0],f=0,d=null==c?0:c.kd,g=c??new ee;if(null==A||12>n)return 7;g.data=A,g.w=r,g.ha=n,r=[r],n=[n],g.gb=[g.gb];A:{var p=r,w=n,m=g.gb;if(t(null!=A),t(null!=w),t(null!=m),m[0]=0,12<=w[0]&&!e(A,p[0],"RIFF")){if(e(A,p[0]+8,"WEBP")){m=3;break A}var y=I(A,p[0]+4);if(12>y||4294967286<y){m=3;break A}if(d&&y>w[0]-8){m=7;break A}m[0]=y,p[0]+=12,w[0]-=12}m=0}if(0!=m)return m;for(y=0<g.gb[0],n=n[0];;){A:{var b=A;w=r,m=n;var C=u,F=h,Q=p=[0];if((E=f=[f])[0]=0,8>m[0])m=7;else{if(!e(b,w[0],"VP8X")){if(10!=I(b,w[0]+4)){m=3;break A}if(18>m[0]){m=7;break A}var x=I(b,w[0]+8),U=1+S(b,w[0]+12);if(2147483648<=U*(b=1+S(b,w[0]+15))){m=3;break A}null!=Q&&(Q[0]=x),null!=C&&(C[0]=U),null!=F&&(F[0]=b),w[0]+=18,m[0]-=18,E[0]=1}m=0}}if(f=f[0],p=p[0],0!=m)return m;if(w=!!(2&p),!y&&f)return 3;if(null!=a&&(a[0]=!!(16&p)),null!=o&&(o[0]=w),null!=l&&(l[0]=0),o=u[0],p=h[0],f&&w&&null==c){m=0;break}if(4>n){m=7;break}if(y&&f||!y&&!f&&!e(A,r[0],"ALPH")){n=[n],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];A:{x=A,m=r,y=n;var E=g.gb;C=g.na,F=g.P,Q=g.Sa,U=22,t(null!=x),t(null!=y),b=m[0];var L=y[0];for(t(null!=C),t(null!=Q),C[0]=null,F[0]=null,Q[0]=0;;){if(m[0]=b,y[0]=L,8>L){m=7;break A}var _=I(x,b+4);if(4294967286<_){m=3;break A}var N=8+_+1&-2;if(U+=N,0<E&&U>E){m=3;break A}if(!e(x,b,"VP8 ")||!e(x,b,"VP8L")){m=0;break A}if(L[0]<N){m=7;break A}e(x,b,"ALPH")||(C[0]=x,F[0]=b+8,Q[0]=_),b+=N,L-=N}}if(n=n[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=m)break}n=[n],g.Ja=[g.Ja],g.xa=[g.xa];A:if(E=A,m=r,y=n,C=g.gb[0],F=g.Ja,Q=g.xa,x=m[0],b=!e(E,x,"VP8 "),U=!e(E,x,"VP8L"),t(null!=E),t(null!=y),t(null!=F),t(null!=Q),8>y[0])m=7;else{if(b||U){if(E=I(E,x+4),12<=C&&E>C-12){m=3;break A}if(d&&E>y[0]-8){m=7;break A}F[0]=E,m[0]+=8,y[0]-=8,Q[0]=U}else Q[0]=5<=y[0]&&47==E[x+0]&&!(E[x+4]>>5),F[0]=y[0];m=0}if(n=n[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=m)break;if(4294967286<g.Ja)return 3;if(null==l||w||(l[0]=g.xa?2:1),o=[o],p=[p],g.xa){if(5>n){m=7;break}l=o,d=p,w=a,null==A||5>n?A=0:5<=n&&47==A[r+0]&&!(A[r+4]>>5)?(y=[0],E=[0],C=[0],B(F=new v,A,r,n),gA(F,y,E,C)?(null!=l&&(l[0]=y[0]),null!=d&&(d[0]=E[0]),null!=w&&(w[0]=C[0]),A=1):A=0):A=0}else{if(10>n){m=7;break}l=p,null==A||10>n||!WA(A,r+3,n-3)?A=0:(d=A[r+0]|A[r+1]<<8|A[r+2]<<16,w=16383&(A[r+7]<<8|A[r+6]),A=16383&(A[r+9]<<8|A[r+8]),1&d||3<(d>>1&7)||!(d>>4&1)||d>>5>=g.Ja||!w||!A?A=0:(o&&(o[0]=w),l&&(l[0]=A),A=1))}if(!A||(o=o[0],p=p[0],f&&(u[0]!=o||h[0]!=p)))return 3;null!=c&&(c[0]=g,c.offset=r-c.w,t(4294967286>r-c.w),t(c.offset==c.ha-n));break}return 0==m||7==m&&f&&null==c?(null!=a&&(a[0]|=null!=g.na&&0<g.na.length),null!=i&&(i[0]=o),null!=s&&(s[0]=p),0):m}function He(A,t,e){var r=t.width,n=t.height,i=0,s=0,a=r,o=n;if(t.Da=null!=A&&0<A.Da,t.Da&&(a=A.cd,o=A.bd,i=A.v,s=A.j,11>e||(i&=-2,s&=-2),0>i||0>s||0>=a||0>=o||i+a>r||s+o>n))return 0;if(t.v=i,t.j=s,t.va=i+a,t.o=s+o,t.U=a,t.T=o,t.da=null!=A&&0<A.da,t.da){if(!k(a,o,e=[A.ib],i=[A.hb]))return 0;t.ib=e[0],t.hb=i[0]}return t.ob=null!=A&&A.ob,t.Kb=null==A||!A.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*n/4,t.Kb=0),1}function Pe(A){if(null==A)return 2;if(11>A.S){var t=A.f.RGBA;t.fb+=(A.height-1)*t.A,t.A=-t.A}else t=A.f.kb,A=A.height,t.O+=(A-1)*t.fa,t.fa=-t.fa,t.N+=(A-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(A-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(A-1)*t.lb,t.lb=-t.lb);return 0}function ke(A,t,e,r){if(null==r||0>=A||0>=t)return 2;if(null!=e){if(e.Da){var n=e.cd,s=e.bd,a=-2&e.v,o=-2&e.j;if(0>a||0>o||0>=n||0>=s||a+n>A||o+s>t)return 2;A=n,t=s}if(e.da){if(!k(A,t,n=[e.ib],s=[e.hb]))return 2;A=n[0],t=s[0]}}r.width=A,r.height=t;A:{var l=r.width,c=r.height;if(A=r.S,0>=l||0>=c||!(A>=Hr&&13>A))A=2;else{if(0>=r.Rd&&null==r.sd){a=s=n=t=0;var u=(o=l*Mn[A])*c;if(11>A||(s=(c+1)/2*(t=(l+1)/2),12==A&&(a=(n=l)*c)),null==(c=i(u+2*s+a))){A=1;break A}r.sd=c,11>A?((l=r.f.RGBA).eb=c,l.fb=0,l.A=o,l.size=u):((l=r.f.kb).y=c,l.O=0,l.fa=o,l.Fd=u,l.f=c,l.N=0+u,l.Ab=t,l.Cd=s,l.ea=c,l.W=0+u+s,l.Db=t,l.Ed=s,12==A&&(l.F=c,l.J=0+u+2*s),l.Tc=a,l.lb=n)}if(t=1,n=r.S,s=r.width,a=r.height,n>=Hr&&13>n)if(11>n)A=r.f.RGBA,t&=(o=Math.abs(A.A))*(a-1)+s<=A.size,t&=o>=s*Mn[n],t&=null!=A.eb;else{A=r.f.kb,o=(s+1)/2,u=(a+1)/2,l=Math.abs(A.fa),c=Math.abs(A.Ab);var h=Math.abs(A.Db),f=Math.abs(A.lb),d=f*(a-1)+s;t&=l*(a-1)+s<=A.Fd,t&=c*(u-1)+o<=A.Cd,t=(t&=h*(u-1)+o<=A.Ed)&l>=s&c>=o&h>=o,t&=null!=A.y,t&=null!=A.f,t&=null!=A.ea,12==n&&(t&=f>=s,t&=d<=A.Tc,t&=null!=A.F)}else t=0;A=t?0:2}}return 0!=A||null!=e&&e.fd&&(A=Pe(r)),A}var Oe=64,Te=[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],De=24,Me=32,Re=8,Ke=[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];D("Predictor0","PredictorAdd0"),A.Predictor0=function(){return 4278190080},A.Predictor1=function(A){return A},A.Predictor2=function(A,t,e){return t[e+0]},A.Predictor3=function(A,t,e){return t[e+1]},A.Predictor4=function(A,t,e){return t[e-1]},A.Predictor5=function(A,t,e){return R(R(A,t[e+1]),t[e+0])},A.Predictor6=function(A,t,e){return R(A,t[e-1])},A.Predictor7=function(A,t,e){return R(A,t[e+0])},A.Predictor8=function(A,t,e){return R(t[e-1],t[e+0])},A.Predictor9=function(A,t,e){return R(t[e+0],t[e+1])},A.Predictor10=function(A,t,e){return R(R(A,t[e-1]),R(t[e+0],t[e+1]))},A.Predictor11=function(A,t,e){var r=t[e+0];return 0>=j(r>>24&255,A>>24&255,(t=t[e-1])>>24&255)+j(r>>16&255,A>>16&255,t>>16&255)+j(r>>8&255,A>>8&255,t>>8&255)+j(255&r,255&A,255&t)?r:A},A.Predictor12=function(A,t,e){var r=t[e+0];return(K((A>>24&255)+(r>>24&255)-((t=t[e-1])>>24&255))<<24|K((A>>16&255)+(r>>16&255)-(t>>16&255))<<16|K((A>>8&255)+(r>>8&255)-(t>>8&255))<<8|K((255&A)+(255&r)-(255&t)))>>>0},A.Predictor13=function(A,t,e){var r=t[e-1];return(V((A=R(A,t[e+0]))>>24&255,r>>24&255)<<24|V(A>>16&255,r>>16&255)<<16|V(A>>8&255,r>>8&255)<<8|V(255&A,255&r))>>>0};var Ve=A.PredictorAdd0;A.PredictorAdd1=G,D("Predictor2","PredictorAdd2"),D("Predictor3","PredictorAdd3"),D("Predictor4","PredictorAdd4"),D("Predictor5","PredictorAdd5"),D("Predictor6","PredictorAdd6"),D("Predictor7","PredictorAdd7"),D("Predictor8","PredictorAdd8"),D("Predictor9","PredictorAdd9"),D("Predictor10","PredictorAdd10"),D("Predictor11","PredictorAdd11"),D("Predictor12","PredictorAdd12"),D("Predictor13","PredictorAdd13");var je=A.PredictorAdd2;W("ColorIndexInverseTransform","MapARGB","32b",(function(A){return A>>8&255}),(function(A){return A})),W("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(A){return A}),(function(A){return A>>8&255}));var Ge,ze=A.ColorIndexInverseTransform,qe=A.MapARGB,Xe=A.VP8LColorIndexInverseTransformAlpha,We=A.MapAlpha,Ye=A.VP8LPredictorsAdd=[];Ye.length=16,(A.VP8LPredictors=[]).length=16,(A.VP8LPredictorsAdd_C=[]).length=16,(A.VP8LPredictors_C=[]).length=16;var Je,Ze,$e,Ar,tr,er,rr,nr,ir,sr,ar,or,lr,cr,ur,hr,fr,dr,gr,pr,Br,wr,mr,yr,vr,br,Cr,Fr,Qr=i(511),xr=i(2041),Ur=i(225),Er=i(767),Lr=0,_r=xr,Sr=Ur,Ir=Er,Nr=Qr,Hr=0,Pr=1,kr=2,Or=3,Tr=4,Dr=5,Mr=6,Rr=7,Kr=8,Vr=9,jr=10,Gr=[2,3,7],zr=[3,3,11],qr=[280,256,256,256,40],Xr=[0,1,1,1,0],Wr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Yr=[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],Jr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zr=8,$r=[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],An=[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],tn=null,en=[[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]],rn=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],nn=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sn=[[[[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]]]],an=[[[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]]],on=[[[[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]]]],ln=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],cn=[],un=[],hn=[],fn=1,dn=2,gn=[],pn=[];pe("UpsampleRgbLinePair",be,3),pe("UpsampleBgrLinePair",Ce,3),pe("UpsampleRgbaLinePair",Ee,4),pe("UpsampleBgraLinePair",Ue,4),pe("UpsampleArgbLinePair",xe,4),pe("UpsampleRgba4444LinePair",Qe,2),pe("UpsampleRgb565LinePair",Fe,2);var Bn=A.UpsampleRgbLinePair,wn=A.UpsampleBgrLinePair,mn=A.UpsampleRgbaLinePair,yn=A.UpsampleBgraLinePair,vn=A.UpsampleArgbLinePair,bn=A.UpsampleRgba4444LinePair,Cn=A.UpsampleRgb565LinePair,Fn=16,Qn=1<<Fn-1,xn=-227,Un=482,En=6,Ln=(256<<En)-1,_n=0,Sn=i(256),In=i(256),Nn=i(256),Hn=i(256),Pn=i(Un-xn),kn=i(Un-xn);Le("YuvToRgbRow",be,3),Le("YuvToBgrRow",Ce,3),Le("YuvToRgbaRow",Ee,4),Le("YuvToBgraRow",Ue,4),Le("YuvToArgbRow",xe,4),Le("YuvToRgba4444Row",Qe,2),Le("YuvToRgb565Row",Fe,2);var On=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Tn=[0,2,8],Dn=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(A,e,a,o,l){var c=Pr,u=new te,h=new sA;u.ba=h,h.S=c,h.width=[h.width],h.height=[h.height];var f=h.width,d=h.height,g=new aA;if(null==g||null==A)var p=2;else t(null!=g),p=Ne(A,e,a,g.width,g.height,g.Pd,g.Qd,g.format,null);if(0==p?(null!=f&&(f[0]=g.width[0]),null!=d&&(d[0]=g.height[0]),f=1):f=0,f){h.width=h.width[0],h.height=h.height[0],null!=o&&(o[0]=h.width),null!=l&&(l[0]=h.height);A:{if(o=new zA,(l=new ee).data=A,l.w=e,l.ha=a,l.kd=1,e=[0],t(null!=l),(0==(A=Ne(l.data,l.w,l.ha,null,null,null,e,null,l))||7==A)&&e[0]&&(A=4),0==(e=A)){if(t(null!=u),o.data=l.data,o.w=l.w+l.offset,o.ha=l.ha-l.offset,o.put=fA,o.ac=hA,o.bc=dA,o.ma=u,l.xa){if(null==(A=EA())){u=1;break A}if(function(A,e){var r=[0],n=[0],i=[0];t:for(;;){if(null==A)return 0;if(null==e)return A.a=2,0;if(A.l=e,A.a=0,B(A.m,e.data,e.w,e.ha),!gA(A.m,r,n,i)){A.a=3;break t}if(A.xb=dn,e.width=r[0],e.height=n[0],!LA(r[0],n[0],1,A,null))break t;return 1}return t(0!=A.a),0}(A,o)){if(o=0==(e=ke(o.width,o.height,u.Oa,u.ba))){t:{o=A;e:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(a=o.l)),t(null!=(l=a.ma)),0!=o.xb){if(o.ca=l.ba,o.tb=l.tb,t(null!=o.ca),!He(l.Oa,a,Or)){o.a=2;break e}if(!_A(o,a.width)||a.da)break e;if((a.da||rA(o.ca.S))&&ge(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&ge()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!N(o.s.vb,o.s.Wa.Xa)){o.a=1;break e}o.xb=0}if(!xA(o,o.V,o.Ba,o.c,o.i,a.o,bA))break e;l.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(e=A.a)}else e=A.a}else{if(null==(A=new qA)){u=1;break A}if(A.Fa=l.na,A.P=l.P,A.qc=l.Sa,YA(A,o)){if(0==(e=ke(o.width,o.height,u.Oa,u.ba))){if(A.Aa=0,a=u.Oa,t(null!=(l=A)),null!=a){if(0<(f=0>(f=a.Md)?0:100<f?255:255*f/100)){for(d=g=0;4>d;++d)12>(p=l.pb[d]).lc&&(p.ia=f*Dn[0>p.lc?0:p.lc]>>3),g|=p.ia;g&&(alert("todo:VP8InitRandom"),l.ia=1)}l.Ga=a.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(A,e){if(null==A)return 0;if(null==e)return XA(A,2,"NULL VP8Io parameter in VP8Decode().");if(!A.cb&&!YA(A,e))return 0;if(t(A.cb),null==e.ac||e.ac(e)){e.ob&&(A.L=0);var a=Tn[A.L];if(2==A.L?(A.yb=0,A.zb=0):(A.yb=e.v-a>>4,A.zb=e.j-a>>4,0>A.yb&&(A.yb=0),0>A.zb&&(A.zb=0)),A.Va=e.o+15+a>>4,A.Hb=e.va+15+a>>4,A.Hb>A.za&&(A.Hb=A.za),A.Va>A.Ub&&(A.Va=A.Ub),0<A.L){var o=A.ed;for(a=0;4>a;++a){var l;if(A.Qa.Cb){var c=A.Qa.Lb[a];A.Qa.Fb||(c+=o.Tb)}else c=o.Tb;for(l=0;1>=l;++l){var u=A.gd[a][l],h=c;if(o.Pc&&(h+=o.vd[0],l&&(h+=o.od[0])),0<(h=0>h?0:63<h?63:h)){var f=h;0<o.wb&&(f=4<o.wb?f>>2:f>>1)>9-o.wb&&(f=9-o.wb),1>f&&(f=1),u.dd=f,u.tc=2*h+f,u.ld=40<=h?2:15<=h?1:0}else u.tc=0;u.La=l}}}a=0}else XA(A,6,"Frame setup failed"),a=A.a;if(a=0==a){if(a){A.$c=0,0<A.Aa||(A.Ic=1);t:{a=A.Ic,o=4*(f=A.za);var d=32*f,g=f+1,p=0<A.L?f*(0<A.Aa?2:1):0,B=(2==A.Aa?2:1)*f;if((u=o+832+(l=3*(16*a+Tn[A.L])/2*d)+(c=null!=A.Fa&&0<A.Fa.length?A.Kc.c*A.Kc.i:0))!=u)a=0;else{if(u>A.Vb){if(A.Vb=0,A.Ec=i(u),A.Fc=0,null==A.Ec){a=XA(A,1,"no memory during frame initialization.");break t}A.Vb=u}u=A.Ec,h=A.Fc,A.Ac=u,A.Bc=h,h+=o,A.Gd=s(d,VA),A.Hd=0,A.rb=s(g+1,DA),A.sb=1,A.wa=p?s(p,TA):null,A.Y=0,A.D.Nb=0,A.D.wa=A.wa,A.D.Y=A.Y,0<A.Aa&&(A.D.Y+=f),t(!0),A.oc=u,A.pc=h,h+=832,A.ya=s(B,RA),A.aa=0,A.D.ya=A.ya,A.D.aa=A.aa,2==A.Aa&&(A.D.aa+=f),A.R=16*f,A.B=8*f,f=(d=Tn[A.L])*A.R,d=d/2*A.B,A.sa=u,A.ta=h+f,A.qa=A.sa,A.ra=A.ta+16*a*A.R+d,A.Ha=A.qa,A.Ia=A.ra+8*a*A.B+d,A.$c=0,h+=l,A.mb=c?u:null,A.nb=c?h:null,t(h+c<=A.Fc+A.Vb),ZA(A),n(A.Ac,A.Bc,0,o),a=1}}if(a){if(e.ka=0,e.y=A.sa,e.O=A.ta,e.f=A.qa,e.N=A.ra,e.ea=A.Ha,e.Vd=A.Ia,e.fa=A.R,e.Rc=A.B,e.F=null,e.J=0,!Lr){for(a=-255;255>=a;++a)Qr[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)xr[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Ur[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Er[255+a]=0>a?0:255<a?255:a;Lr=1}rr=ot,nr=nt,sr=it,ar=st,or=at,ir=rt,lr=qt,cr=Xt,ur=Jt,hr=Zt,fr=Wt,dr=Yt,gr=$t,pr=Ae,Br=Rt,wr=Kt,mr=Vt,yr=jt,un[0]=Ct,un[1]=ct,un[2]=vt,un[3]=bt,un[4]=Ft,un[5]=xt,un[6]=Qt,un[7]=Ut,un[8]=Lt,un[9]=Et,cn[0]=pt,cn[1]=ht,cn[2]=ft,cn[3]=dt,cn[4]=Bt,cn[5]=wt,cn[6]=mt,hn[0]=Nt,hn[1]=ut,hn[2]=_t,hn[3]=St,hn[4]=Pt,hn[5]=Ht,hn[6]=kt,a=1}else a=0}a&&=function(A,e){for(A.M=0;A.M<A.Va;++A.M){var s,a=A.Jc[A.M&A.Xb],o=A.m,l=A;for(s=0;s<l.za;++s){var c=o,u=l,h=u.Ac,f=u.Bc+4*s,d=u.zc,g=u.ya[u.aa+s];if(u.Qa.Bb?g.$b=E(c,u.Pa.jb[0])?2+E(c,u.Pa.jb[2]):E(c,u.Pa.jb[1]):g.$b=0,u.kc&&(g.Ad=E(c,u.Bd)),g.Za=!E(c,145)+0,g.Za){var p=g.Ob,B=0;for(u=0;4>u;++u){var w,m=d[0+u];for(w=0;4>w;++w){m=an[h[f+w]][m];for(var y=nn[E(c,m[0])];0<y;)y=nn[2*y+E(c,m[y])];m=-y,h[f+w]=m}r(p,B,h,f,4),B+=4,d[0+u]=m}}else m=E(c,156)?E(c,128)?1:3:E(c,163)?2:0,g.Ob[0]=m,n(h,f,m,4),n(d,0,m,4);g.Dd=E(c,142)?E(c,114)?E(c,183)?1:3:2:0}if(l.m.Ka)return XA(A,7,"Premature end-of-partition0 encountered.");for(;A.ja<A.za;++A.ja){if(l=a,c=(o=A).rb[o.sb-1],h=o.rb[o.sb+o.ja],s=o.ya[o.aa+o.ja],f=o.kc?s.Ad:0)c.la=h.la=0,s.Za||(c.Na=h.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var v,b;if(c=h,h=l,f=o.Pa.Xc,d=o.ya[o.aa+o.ja],g=o.pb[d.$b],u=d.ad,p=0,B=o.rb[o.sb-1],m=w=0,n(u,p,0,384),d.Za)var C=0,F=f[3];else{y=i(16);var Q=c.Na+B.Na;if(Q=tn(h,f[1],Q,g.Eb,0,y,0),c.Na=B.Na=(0<Q)+0,1<Q)rr(y,0,u,p);else{var x=y[0]+3>>3;for(y=0;256>y;y+=16)u[p+y]=x}C=1,F=f[0]}var U=15&c.la,L=15&B.la;for(y=0;4>y;++y){var _=1&L;for(x=b=0;4>x;++x)U=U>>1|(_=(Q=tn(h,F,Q=_+(1&U),g.Sc,C,u,p))>C)<<7,b=b<<2|(3<Q?3:1<Q?2:0!=u[p+0]),p+=16;U>>=4,L=L>>1|_<<7,w=(w<<8|b)>>>0}for(F=U,C=L>>4,v=0;4>v;v+=2){for(b=0,U=c.la>>4+v,L=B.la>>4+v,y=0;2>y;++y){for(_=1&L,x=0;2>x;++x)Q=_+(1&U),U=U>>1|(_=0<(Q=tn(h,f[2],Q,g.Qc,0,u,p)))<<3,b=b<<2|(3<Q?3:1<Q?2:0!=u[p+0]),p+=16;U>>=2,L=L>>1|_<<5}m|=b<<4*v,F|=U<<4<<v,C|=(240&L)<<v}c.la=F,B.la=C,d.Hc=w,d.Gc=m,d.ia=43690&m?0:g.ia,f=!(w|m)}if(0<o.L&&(o.wa[o.Y+o.ja]=o.gd[s.$b][s.Za],o.wa[o.Y+o.ja].La|=!f),l.Ka)return XA(A,7,"Premature end-of-file encountered.")}if(ZA(A),o=e,l=1,s=(a=A).D,c=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)t:{if(s.M=a.M,s.uc=c,Ie(a,s),l=1,s=(b=a.D).Nb,c=(m=Tn[a.L])*a.R,h=m/2*a.B,y=16*s*a.R,x=8*s*a.B,f=a.sa,d=a.ta-c+y,g=a.qa,u=a.ra-h+x,p=a.Ha,B=a.Ia-h+x,L=0==(U=b.M),w=U>=a.Va-1,2==a.Aa&&Ie(a,b),b.uc)for(_=(Q=a).D.M,t(Q.D.uc),b=Q.yb;b<Q.Hb;++b){C=b,F=_;var S=(I=(R=Q).D).Nb;v=R.R;var I=I.wa[I.Y+C],N=R.sa,H=R.ta+16*S*v+16*C,P=I.dd,k=I.tc;if(0!=k)if(t(3<=k),1==R.L)0<C&&wr(N,H,v,k+4),I.La&&yr(N,H,v,k),0<F&&Br(N,H,v,k+4),I.La&&mr(N,H,v,k);else{var O=R.B,T=R.qa,D=R.ra+8*S*O+8*C,M=R.Ha,R=R.Ia+8*S*O+8*C;S=I.ld,0<C&&(cr(N,H,v,k+4,P,S),hr(T,D,M,R,O,k+4,P,S)),I.La&&(dr(N,H,v,k,P,S),pr(T,D,M,R,O,k,P,S)),0<F&&(lr(N,H,v,k+4,P,S),ur(T,D,M,R,O,k+4,P,S)),I.La&&(fr(N,H,v,k,P,S),gr(T,D,M,R,O,k,P,S))}}if(a.ia&&alert("todo:DitherRow"),null!=o.put){if(b=16*U,U=16*(U+1),L?(o.y=a.sa,o.O=a.ta+y,o.f=a.qa,o.N=a.ra+x,o.ea=a.Ha,o.W=a.Ia+x):(b-=m,o.y=f,o.O=d,o.f=g,o.N=u,o.ea=p,o.W=B),w||(U-=m),U>o.o&&(U=o.o),o.F=null,o.J=null,null!=a.Fa&&0<a.Fa.length&&b<U&&(o.J=ce(a,o,b,U-b),o.F=a.mb,null==o.F&&0==o.F.length)){l=XA(a,3,"Could not decode alpha data.");break t}b<o.j&&(m=o.j-b,b=o.j,t(!(1&m)),o.O+=a.R*m,o.N+=a.B*(m>>1),o.W+=a.B*(m>>1),null!=o.F&&(o.J+=o.width*m)),b<U&&(o.O+=o.v,o.N+=o.v>>1,o.W+=o.v>>1,null!=o.F&&(o.J+=o.v),o.ka=b-o.j,o.U=o.va-o.v,o.T=U-b,l=o.put(o))}s+1!=a.Ic||w||(r(a.sa,a.ta-c,f,d+16*a.R,c),r(a.qa,a.ra-h,g,u+8*a.B,h),r(a.Ha,a.Ia-h,p,B+8*a.B,h))}if(!l)return XA(A,6,"Output aborted.")}return 1}(A,e),null!=e.bc&&e.bc(e),a&=1}return a?(A.cb=0,a):0})(A,o)||(e=A.a)}}else e=A.a}0==e&&null!=u.Oa&&u.Oa.fd&&(e=Pe(u.ba))}u=e}c=0==u?11>c?h.f.RGBA.eb:h.f.kb.y:null}else c=null;return c};var Mn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(A,t){for(var e="",r=0;r<4;r++)e+=String.fromCharCode(A[t++]);return e}function c(A,t){return A[t+0]|A[t+1]<<8}function u(A,t){return(A[t+0]|A[t+1]<<8|A[t+2]<<16)>>>0}function h(A,t){return(A[t+0]|A[t+1]<<8|A[t+2]<<16|A[t+3]<<24)>>>0}new o;var f=[0],d=[0],g=[],p=new o,B=A,w=function(A,t){var e={},r=0,n=!1,i=0,s=0;if(e.frames=[],!function(A,t){for(var e=0;e<4;e++)if(A[t+e]!="RIFF".charCodeAt(e))return!0;return!1}(A,t)){for(h(A,t+=4),t+=8;t<A.length;){var a=l(A,t),o=h(A,t+=4);t+=4;var f=o+(1&o);switch(a){case"VP8 ":case"VP8L":void 0===e.frames[r]&&(e.frames[r]={}),(p=e.frames[r]).src_off=n?s:t-8,p.src_size=i+o+8,r++,n&&(n=!1,i=0,s=0);break;case"VP8X":(p=e.header={}).feature_flags=A[t];var d=t+4;p.canvas_width=1+u(A,d),d+=3,p.canvas_height=1+u(A,d),d+=3;break;case"ALPH":n=!0,i=f+8,s=t-8;break;case"ANIM":(p=e.header).bgcolor=h(A,t),d=t+4,p.loop_count=c(A,d),d+=2;break;case"ANMF":var g,p;(p=e.frames[r]={}).offset_x=2*u(A,t),t+=3,p.offset_y=2*u(A,t),t+=3,p.width=1+u(A,t),t+=3,p.height=1+u(A,t),t+=3,p.duration=u(A,t),t+=3,g=A[t++],p.dispose=1&g,p.blend=g>>1&1}"ANMF"!=a&&(t+=f)}return e}}(B,0);w.response=B,w.rgbaoutput=!0,w.dataurl=!1;var m=w.header?w.header:null,y=w.frames?w.frames:null;if(m){m.loop_counter=m.loop_count,f=[m.canvas_height],d=[m.canvas_width];for(var v=0;v<y.length&&0!=y[v].blend;v++);}var b=y[0],C=p.WebPDecodeRGBA(B,b.src_off,b.src_size,d,f);b.rgba=C,b.imgwidth=d[0],b.imgheight=f[0];for(var F=0;F<d[0]*f[0]*4;F++)g[F]=C[F];return this.width=d,this.height=f,this.data=g,this}function zf(){var A,t=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(t));A=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+A.length+" >>"),this.internal.write("stream"),this.internal.write(A),this.internal.write("endstream"),this.internal.write("endobj")}function qf(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(A){var t,e,r,n,i,s,a,o,l,c=function(A){return A||={},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=void 0===A.transform?new o:A.transform.clone(),this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new s,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new s,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof A.ignoreClearRect||A.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,o=this.internal.Matrix,l=new c}]);var u=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=A;Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(A){e=!!A}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(A){r=!!A}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(A){isNaN(A)||(n=A)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(A){isNaN(A)||(i=A)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(A){var t;"number"==typeof A?t=[A,A,A,A]:((t=[,,,,])[0]=A[0],t[1]=A.length>=2?A[1]:t[0],t[2]=A.length>=3?A[2]:t[0],t[3]=A.length>=4?A[3]:t[1]),l.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(A){s=A}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(A){a=A}});var o=[];Object.defineProperty(this,"pageBreaks",{get:function(){return o},set:function(A){o=A}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(A){A instanceof c&&(l=A)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(A){l.path=A}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(A){u=A}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(A){var t=h(A);this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(A){var t=h(A);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(A){-1!==["butt","round","square"].indexOf(A)&&(this.ctx.lineCap=A,this.pdf.setLineCap(A))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(A){isNaN(A)||(this.ctx.lineWidth=A,this.pdf.setLineWidth(A))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(A){-1!==["bevel","round","miter"].indexOf(A)&&(this.ctx.lineJoin=A,this.pdf.setLineJoin(A))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(A){isNaN(A)||(this.ctx.miterLimit=A,this.pdf.setMiterLimit(A))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(A){this.ctx.textBaseline=A}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(A){-1!==["right","end","center","left","start"].indexOf(A)&&(this.ctx.textAlign=A)}});var f=null,d=null,g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(A){f=null,d=null,g=A}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(A){var t;if(this.ctx.font=A,null!==(t=/^\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-z0-9]+?)\s*$/i.exec(A))){var e=t[1];t[2];var r=t[3],n=t[4];t[5];var i=t[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n=Math.floor("px"===s?parseFloat(n)*this.pdf.internal.scaleFactor:"em"===s?parseFloat(n)*this.pdf.getFontSize():parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var a=function(A){var t,e,r=[],n=A.trim();if(""===n)return Lf;if(n in mf)return[mf[n]];for(;""!==n;){switch(e=null,t=(n=vf(n)).charAt(0)){case'"':case"'":e=bf(n.substring(1),t);break;default:e=Cf(n)}if(null===e||(r.push(e[0]),""!==(n=vf(e[1]))&&","!==n.charAt(0)))return Lf;n=n.replace(/^,/,"")}return r}(i);if(this.fontFaces){var o=function(A,t,e){for(var r=(e||={}).defaultFontFamily||"times",n=Object.assign({},wf,e.genericFontFamilies||{}),i=null,s=null,a=0;a<t.length;++a)if(n[(i=pf(t[a])).family]&&(i.family=n[i.family]),A.hasOwnProperty(i.family)){s=A[i.family];break}if(!(s||=A[r]))throw Error("Could not find a font-family for the rule '"+yf(i)+"' and default family '"+r+"'.");if(s=function(A,t){if(t[A])return t[A];var e=ff[A],r=Bf(t,hf,e,e<=ff.normal?-1:1);if(!r)throw Error("Could not find a matching font-stretch value for "+A);return r}(i.stretch,s),s=function(A,t){if(t[A])return t[A];for(var e=uf[A],r=0;r<e.length;++r)if(t[e[r]])return t[e[r]];throw Error("Could not find a matching font-style for "+A)}(i.style,s),!(s=function(A,t){if(t[A])return t[A];if(400===A&&t[500])return t[500];if(500===A&&t[400])return t[400];var e=gf[A],r=Bf(t,df,e,A<400?-1:1);if(!r)throw Error("Could not find a matching font-weight for value "+A);return r}(i.weight,s)))throw Error("Failed to resolve a font for the rule '"+yf(i)+"'.");return s}(function(A,t){var e=A.getFontList(),r=JSON.stringify(e);return(null===f||d!==r)&&(f=function(A){for(var t={},e=0;e<A.length;++e){var r=pf(A[e]),n=r.family,i=r.stretch,s=r.style,a=r.weight;t[n]=t[n]||{},t[n][i]=t[n][i]||{},t[n][i][s]=t[n][i][s]||{},t[n][i][s][a]=r}return t}(function(A){var t=[];return Object.keys(A).forEach((function(e){A[e].forEach((function(A){var r=null;switch(A){case"bold":r={family:e,weight:"bold"};break;case"italic":r={family:e,style:"italic"};break;case"bolditalic":r={family:e,weight:"bold",style:"italic"};break;case"":case"normal":r={family:e}}null!==r&&(r.ref={name:e,style:A},t.push(r))}))})),t}(e).concat(t)),d=r),f}(this.pdf,this.fontFaces),a.map((function(A){return{family:A,stretch:"normal",weight:r,style:e}})));this.pdf.setFont(o.ref.name,o.ref.style)}else{var l="";("bold"===r||parseInt(r,10)>=700||"bold"===e)&&(l="bold"),"italic"===e&&(l+="italic"),0===l.length&&(l="normal");for(var c="",u={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"},h=0;h<a.length;h++){if(void 0!==this.pdf.internal.getFont(a[h],l,{noFallback:!0,disableWarning:!0})){c=a[h];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(a[h],"bold",{noFallback:!0,disableWarning:!0}))c=a[h],l="bold";else if(void 0!==this.pdf.internal.getFont(a[h],"normal",{noFallback:!0,disableWarning:!0})){c=a[h],l="normal";break}}if(""===c)for(var g=0;g<a.length;g++)if(u[a[g]]){c=u[a[g]];break}c=""===c?"Times":c,this.pdf.setFont(c,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(A){this.ctx.globalCompositeOperation=A}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(A){this.ctx.globalAlpha=A}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(A){this.ctx.lineDashOffset=A,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(A){this.ctx.lineDash=A,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(A){this.ctx.ignoreClearRect=!!A}})};u.prototype.setLineDash=function(A){this.lineDash=A},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){y.call(this,"fill",!1)},u.prototype.stroke=function(){y.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(A,t){if(isNaN(A)||isNaN(t))throw ju.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.moveTo");var e=this.ctx.transform.applyToPoint(new s(A,t));this.path.push({type:"mt",x:e.x,y:e.y}),this.ctx.lastPoint=new s(A,t)},u.prototype.closePath=function(){var A=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===F(this.path[t+1])&&"number"==typeof this.path[t+1].x){A=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(A.x,A.y)},u.prototype.lineTo=function(A,t){if(isNaN(A)||isNaN(t))throw ju.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.lineTo");var e=this.ctx.transform.applyToPoint(new s(A,t));this.path.push({type:"lt",x:e.x,y:e.y}),this.ctx.lastPoint=new s(e.x,e.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),y.call(this,null,!0)},u.prototype.quadraticCurveTo=function(A,t,e,r){if(isNaN(e)||isNaN(r)||isNaN(A)||isNaN(t))throw ju.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new s(e,r)),i=this.ctx.transform.applyToPoint(new s(A,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},u.prototype.bezierCurveTo=function(A,t,e,r,n,i){if(isNaN(n)||isNaN(i)||isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw ju.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new s(n,i)),o=this.ctx.transform.applyToPoint(new s(A,t)),l=this.ctx.transform.applyToPoint(new s(e,r));this.path.push({type:"bct",x1:o.x,y1:o.y,x2:l.x,y2:l.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},u.prototype.arc=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw ju.error("jsPDF.context2d.arc: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=!!i,!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new s(A,t));A=a.x,t=a.y;var o=this.ctx.transform.applyToPoint(new s(0,e)),l=this.ctx.transform.applyToPoint(new s(0,0));e=Math.sqrt((o.x-l.x)**2+(o.y-l.y)**2)}Math.abs(n-r)>=2*Math.PI&&(r=0,n=2*Math.PI),this.path.push({type:"arc",x:A,y:t,radius:e,startAngle:r,endAngle:n,counterclockwise:i})},u.prototype.arcTo=function(A,t,e,r,n){throw Error("arcTo not implemented.")},u.prototype.rect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw ju.error("jsPDF.context2d.rect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,t),this.lineTo(A+e,t),this.lineTo(A+e,t+r),this.lineTo(A,t+r),this.lineTo(A,t),this.lineTo(A+e,t),this.lineTo(A,t)},u.prototype.fillRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw ju.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,t,e,r),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},u.prototype.strokeRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw ju.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.strokeRect");d.call(this)||(this.beginPath(),this.rect(A,t,e,r),this.stroke())},u.prototype.clearRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw ju.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,t,e,r))},u.prototype.save=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},u.prototype.restore=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("Q");this.pdf.setPage(t),A&&0!==this.ctxStack.length&&(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)},u.prototype.toDataURL=function(){throw Error("toDataUrl not implemented.")};var h=function(A){var t,e,r,n;if(!0===A.isCanvasGradient&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))t=0,e=0,r=0,n=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(null!==i)t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)))t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=parseFloat(i[4]);else{if(n=1,"string"==typeof A&&"#"!==A.charAt(0)){var s=new Wu(A);A=s.ok?s.toHex():"#000000"}4===A.length?(t=A.substring(1,2),t+=t,e=A.substring(2,3),e+=e,r=A.substring(3,4),r+=r):(t=A.substring(1,3),e=A.substring(3,5),r=A.substring(5,7)),t=parseInt(t,16),e=parseInt(e,16),r=parseInt(r,16)}}return{r:t,g:e,b:r,a:n,style:A}},f=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},d=function(){return!(!this.ctx.isStrokeTransparent&&0!=this.globalAlpha)};u.prototype.fillText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw ju.error("jsPDF.context2d.fillText: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!f.call(this)){var n=P(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;L.call(this,{text:A,x:t,y:e,scale:i,angle:n,align:this.textAlign,maxWidth:r})}},u.prototype.strokeText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw ju.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!d.call(this)){r=isNaN(r)?void 0:r;var n=P(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;L.call(this,{text:A,x:t,y:e,scale:i,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:r})}},u.prototype.measureText=function(A){if("string"!=typeof A)throw ju.error("jsPDF.context2d.measureText: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,e=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),n=t.getStringUnitWidth(A)*r/t.internal.scaleFactor;return new function(A){var t=(A||={}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:n*=Math.round(96*e/72*1e4)/1e4})},u.prototype.scale=function(A,t){if(isNaN(A)||isNaN(t))throw ju.error("jsPDF.context2d.scale: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.scale");var e=new o(A,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(e)},u.prototype.rotate=function(A){if(isNaN(A))throw ju.error("jsPDF.context2d.rotate: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new o(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},u.prototype.translate=function(A,t){if(isNaN(A)||isNaN(t))throw ju.error("jsPDF.context2d.translate: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.translate");var e=new o(1,0,0,1,A,t);this.ctx.transform=this.ctx.transform.multiply(e)},u.prototype.transform=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw ju.error("jsPDF.context2d.transform: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new o(A,t,e,r,n,i);this.ctx.transform=this.ctx.transform.multiply(s)},u.prototype.setTransform=function(A,t,e,r,n,i){A=isNaN(A)?1:A,t=isNaN(t)?0:t,e=isNaN(e)?0:e,r=isNaN(r)?1:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i,this.ctx.transform=new o(A,t,e,r,n,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(A,t,e,r,n,i,s,l,c){var u=this.pdf.getImageProperties(A),h=1,f=1,d=1,B=1;void 0!==r&&void 0!==l&&(d=l/r,B=c/n,h=u.width/r*l/r,f=u.height/n*c/n),void 0===i&&(i=t,s=e,t=0,e=0),void 0!==r&&void 0===l&&(l=r,c=n),void 0===r&&void 0===l&&(l=u.width,c=u.height);var y=this.ctx.transform.decompose(),b=P(y.rotate.shx),C=new o,F=(C=(C=(C=C.multiply(y.translate)).multiply(y.skew)).multiply(y.scale)).applyToRectangle(new a(i-t*d,s-e*B,r*h,n*f));if(this.autoPaging){for(var Q,x=p.call(this,F),U=[],E=0;E<x.length;E+=1)-1===U.indexOf(x[E])&&U.push(x[E]);m(U);for(var L=U[0],_=U[U.length-1],S=L;S<_+1;S++){this.pdf.setPage(S);var I=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=1===S?this.posY+this.margin[0]:this.margin[0],H=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],O=1===S?0:H+(S-2)*k;if(0!==this.ctx.clip_path.length){var T=this.path;Q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(Q,this.posX+this.margin[3],-O+N+this.ctx.prevPageLastElemOffset),v.call(this,"fill",!0),this.path=T}var D=JSON.parse(JSON.stringify(F));D=w([D],this.posX+this.margin[3],-O+N+this.ctx.prevPageLastElemOffset)[0];var M=(S>L||S<_)&&g.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,k,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",D.x,D.y,D.w,D.h,null,null,b),M&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(A,"JPEG",F.x,F.y,F.w,F.h,null,null,b)};var p=function(A,t,e){var r=[];t||=this.pdf.internal.pageSize.width,e||=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":r.push(Math.floor((A.y+n)/e)+1);break;case"arc":r.push(Math.floor((A.y+n-A.radius)/e)+1),r.push(Math.floor((A.y+n+A.radius)/e)+1);break;case"qct":var i=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);r.push(Math.floor((i.y+n)/e)+1),r.push(Math.floor((i.y+i.h+n)/e)+1);break;case"bct":var s=O(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);r.push(Math.floor((s.y+n)/e)+1),r.push(Math.floor((s.y+s.h+n)/e)+1);break;case"rect":r.push(Math.floor((A.y+n)/e)+1),r.push(Math.floor((A.y+A.h+n)/e)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)B.call(this);return r},B=function(){var A=this.fillStyle,t=this.strokeStyle,e=this.font,r=this.lineCap,n=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=t,this.font=e,this.lineCap=r,this.lineWidth=n,this.lineJoin=i},w=function(A,t,e){for(var r=0;r<A.length;r++)switch(A[r].type){case"bct":A[r].x2+=t,A[r].y2+=e;case"qct":A[r].x1+=t,A[r].y1+=e;default:A[r].x+=t,A[r].y+=e}return A},m=function(A){return A.sort((function(A,t){return A-t}))},y=function(A,t){var e=this.fillStyle,r=this.strokeStyle,n=this.lineCap,i=this.lineWidth,s=Math.abs(i*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var o,l,c=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<u.length;f++)if(void 0!==u[f].x)for(var d=p.call(this,u[f]),y=0;y<d.length;y+=1)-1===h.indexOf(d[y])&&h.push(d[y]);for(var b=0;b<h.length;b++)for(;this.pdf.internal.getNumberOfPages()<h[b];)B.call(this);m(h);for(var C=h[0],F=h[h.length-1],Q=C;Q<F+1;Q++){this.pdf.setPage(Q),this.fillStyle=e,this.strokeStyle=r,this.lineCap=n,this.lineWidth=s,this.lineJoin=a;var x=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],U=1===Q?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_=1===Q?0:E+(Q-2)*L;if(0!==this.ctx.clip_path.length){var S=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(o,this.posX+this.margin[3],-_+U+this.ctx.prevPageLastElemOffset),v.call(this,A,!0),this.path=S}if(l=JSON.parse(JSON.stringify(c)),this.path=w(l,this.posX+this.margin[3],-_+U+this.ctx.prevPageLastElemOffset),!1===t||0===Q){var I=(Q>C||Q<F)&&g.call(this);I&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],x,L,null).clip().discardPath()),v.call(this,A,t),I&&this.pdf.restoreGraphicsState()}this.lineWidth=i}this.path=c}else this.lineWidth=s,v.call(this,A,t),this.lineWidth=i},v=function(A,t){if(("stroke"!==A||t||!d.call(this))&&("stroke"===A||t||!f.call(this))){for(var e,r,n=[],i=this.path,s=0;s<i.length;s++){var a=i[s];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var o=n.length;if(i[s-1]&&!isNaN(i[s-1].x)&&(e=[a.x-i[s-1].x,a.y-i[s-1].y],o>0))for(;o>=0;o--)if(!0!==n[o-1].close&&!0!==n[o-1].begin){n[o-1].deltas.push(e),n[o-1].abs.push(a);break}break;case"bct":e=[a.x1-i[s-1].x,a.y1-i[s-1].y,a.x2-i[s-1].x,a.y2-i[s-1].y,a.x-i[s-1].x,a.y-i[s-1].y],n[n.length-1].deltas.push(e);break;case"qct":var l=i[s-1].x+2/3*(a.x1-i[s-1].x),c=i[s-1].y+2/3*(a.y1-i[s-1].y),u=a.x+2/3*(a.x1-a.x),h=a.y+2/3*(a.y1-a.y),g=a.x,p=a.y;e=[l-i[s-1].x,c-i[s-1].y,u-i[s-1].x,h-i[s-1].y,g-i[s-1].x,p-i[s-1].y],n[n.length-1].deltas.push(e);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}r=t?null:"stroke"===A?"stroke":"fill";for(var B=!1,w=0;w<n.length;w++)if(n[w].arc)for(var m=n[w].abs,y=0;y<m.length;y++){var v=m[y];"arc"===v.type?Q.call(this,v.x,v.y,v.radius,v.startAngle,v.endAngle,v.counterclockwise,void 0,t,!B):_.call(this,v.x,v.y),B=!0}else if(!0===n[w].close)this.pdf.internal.out("h"),B=!1;else if(!0!==n[w].begin){var b=n[w].start.x,C=n[w].start.y;S.call(this,n[w].deltas,b,C),B=!0}r&&x.call(this,r),t&&U.call(this)}},b=function(A){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,e=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-e;case"top":return A+t-e;case"hanging":return A+t-2*e;case"middle":return A+t/2-e;default:return A}},C=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(A,t){this.colorStops.push([A,t])},A.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Q=function(A,t,e,r,n,i,s,a,o){for(var l=N.call(this,e,r,n,i),c=0;c<l.length;c++){var u=l[c];0===c&&(o?E.call(this,u.x1+A,u.y1+t):_.call(this,u.x1+A,u.y1+t)),I.call(this,A,t,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}a?U.call(this):x.call(this,s)},x=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},U=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(A,t){this.pdf.internal.out(e(A)+" "+r(t)+" m")},L=function(A){var t;switch(A.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var e,r,n,i=this.pdf.getTextDimensions(A.text),l=b.call(this,A.y),c=C.call(this,l)-i.h,u=this.ctx.transform.applyToPoint(new s(A.x,l));if(this.autoPaging){var h=this.ctx.transform.decompose(),f=new o;f=(f=(f=f.multiply(h.translate)).multiply(h.skew)).multiply(h.scale);for(var d=this.ctx.transform.applyToRectangle(new a(A.x,l,i.w,i.h)),B=f.applyToRectangle(new a(A.x,c,i.w,i.h)),y=p.call(this,B),F=[],Q=0;Q<y.length;Q+=1)-1===F.indexOf(y[Q])&&F.push(y[Q]);m(F);for(var x=F[0],U=F[F.length-1],E=x;E<U+1;E++){this.pdf.setPage(E);var L=1===E?this.posY+this.margin[0]:this.margin[0],_=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],S=this.pdf.internal.pageSize.height-this.margin[2],I=S-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],H=N-this.margin[3],P=1===E?0:_+(E-2)*I;if(0!==this.ctx.clip_path.length){var k=this.path;e=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(e,this.posX+this.margin[3],-1*P+L),v.call(this,"fill",!0),this.path=k}var O=w([JSON.parse(JSON.stringify(B))],this.posX+this.margin[3],-P+L+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*A.scale),n=this.lineWidth,this.lineWidth=n*A.scale);var T="text"!==this.autoPaging;if(T||O.y+O.h<=S){if(T||O.y>=L&&O.x<=N){var D=T?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||N-O.x)[0],M=w([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-P+L+this.ctx.prevPageLastElemOffset)[0],R=T&&(E>x||E<U)&&g.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],H,I,null).clip().discardPath()),this.pdf.text(D,M.x,M.y,{angle:A.angle,align:t,renderingMode:A.renderingMode}),R&&this.pdf.restoreGraphicsState()}}else O.y<S&&(this.ctx.prevPageLastElemOffset+=S-O.y);A.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=n)}}else A.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*A.scale),n=this.lineWidth,this.lineWidth=n*A.scale),this.pdf.text(A.text,u.x+this.posX,u.y+this.posY,{angle:A.angle,align:t,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=n)},_=function(A,t,n,i){n||=0,i||=0,this.pdf.internal.out(e(A+n)+" "+r(t+i)+" l")},S=function(A,t,e){return this.pdf.lines(A,t,e,null,null)},I=function(A,e,r,s,a,o,l,c){this.pdf.internal.out([t(n(r+A)),t(i(s+e)),t(n(a+A)),t(i(o+e)),t(n(l+A)),t(i(c+e)),"c"].join(" "))},N=function(A,t,e,r){for(var n=2*Math.PI,i=Math.PI/2;t>e;)t-=n;var s=Math.abs(e-t);s<n&&r&&(s=n-s);for(var a=[],o=r?-1:1,l=t;s>1e-5;){var c=l+o*Math.min(s,i);a.push(H.call(this,A,l,c)),s-=Math.abs(c-l),l=c}return a},H=function(A,t,e){var r=(e-t)/2,n=A*Math.cos(r),i=A*Math.sin(r),s=n,a=-i,o=s*s+a*a,l=o+s*n+a*i,c=4/3*(Math.sqrt(2*o*l)-l)/(s*i-a*n),u=s-c*a,h=a+c*s,f=u,d=-h,g=r+t,p=Math.cos(g),B=Math.sin(g);return{x1:A*Math.cos(t),y1:A*Math.sin(t),x2:u*p-h*B,y2:u*B+h*p,x3:f*p-d*B,y3:f*B+d*p,x4:A*Math.cos(e),y4:A*Math.sin(e)}},P=function(A){return 180*A/Math.PI},k=function(A,t,e,r,n,i){var s=A+.5*(e-A),o=t+.5*(r-t),l=n+.5*(e-n),c=i+.5*(r-i),u=Math.min(A,n,s,l),h=Math.max(A,n,s,l),f=Math.min(t,i,o,c),d=Math.max(t,i,o,c);return new a(u,f,h-u,d-f)},O=function(A,t,e,r,n,i,s,o){var l,c,u,h,f,d,g,p,B,w,m,y,v,b,C=e-A,F=r-t,Q=n-e,x=i-r,U=s-n,E=o-i;for(c=0;c<41;c++)B=(g=(u=A+(l=c/40)*C)+l*((f=e+l*Q)-u))+l*(f+l*(n+l*U-f)-g),w=(p=(h=t+l*F)+l*((d=r+l*x)-h))+l*(d+l*(i+l*E-d)-p),0==c?(m=B,y=w,v=B,b=w):(m=Math.min(m,B),y=Math.min(y,w),v=Math.max(v,B),b=Math.max(b,w));return new a(Math.round(m),Math.round(y),Math.round(v-m),Math.round(b-y))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,t,e=(A=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:t}));this.prevLineDash!==e&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=e)}}})(vh.API),function(A){var t=function(A){var t,e,r,n,i,s,a,o,l,c;for(/[^\x00-\xFF]/.test(A),e=[],r=0,n=(A+=t="\0\0\0\0".slice(A.length%4||4)).length;n>r;r+=4)0===(i=(A.charCodeAt(r)<<24)+(A.charCodeAt(r+1)<<16)+(A.charCodeAt(r+2)<<8)+A.charCodeAt(r+3))?e.push(122):(s=(i=((i=((i=((i=(i-(c=i%85))/85)-(l=i%85))/85)-(o=i%85))/85)-(a=i%85))/85)%85,e.push(s+33,a+33,o+33,l+33,c+33));return function(A,t){for(var e=t;e>0;e--)A.pop()}(e,t.length),String.fromCharCode.apply(String,e)+"~>"},e=function(A){var t,e,r,n,i,s=String,a="length",o=255,l="charCodeAt",c="slice",u="replace";for(A[c](-2),A=A[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],n=0,i=(A+=t="uuuuu"[c](A[a]%5||5))[a];i>n;n+=5)e=52200625*(A[l](n)-33)+614125*(A[l](n+1)-33)+7225*(A[l](n+2)-33)+85*(A[l](n+3)-33)+(A[l](n+4)-33),r.push(o&e>>24,o&e>>16,o&e>>8,o&e);return function(A,t){for(var e=t;e>0;e--)A.pop()}(r,t[a]),s.fromCharCode.apply(s,r)},r=function(A){return A.split("").map((function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)})).join("")+">"},n=function(A){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(A=A.replace(/\s/g,"")).indexOf(">")&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),!1===t.test(A))return"";for(var e="",r=0;r<A.length;r+=2)e+=String.fromCharCode("0x"+(A[r]+A[r+1]));return e},i=function(A){for(var t=new Uint8Array(A.length),e=A.length;e--;)t[e]=A.charCodeAt(e);return(t=sA(t)).reduce((function(A,t){return A+String.fromCharCode(t)}),"")};A.processDataByFilters=function(A,s){var a=0,o=A||"",l=[];for("string"==typeof(s||=[])&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":o=e(o),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=t(o),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=n(o),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=r(o),l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=i(o),l.push("/FlateDecode");break;default:throw Error('The filter: "'+s[a]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(vh.API),function(A){A.loadFile=function(A,t,e){return function(A,t,e){t=!1!==t,e="function"==typeof e?e:function(){};var r=void 0;try{r=function(A,t,e){var r=new XMLHttpRequest,n=0,i=function(A){var t=A.length,e=[],r=String.fromCharCode;for(n=0;n<t;n+=1)e.push(r(255&A.charCodeAt(n)));return e.join("")};if(r.open("GET",A,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?e(i(this.responseText)):e(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(A,t,e)}catch{}return r}(A,t,e)},A.allowFsRead=void 0,A.loadImageFile=A.loadFile}(vh.API),function(A){function t(){return(Ku.html2canvas?Promise.resolve(Ku.html2canvas):Promise.resolve().then((()=>h(Hn())))).catch((function(A){return Promise.reject(Error("Could not load html2canvas: "+A))})).then((function(A){return A.default?A.default:A}))}function e(){return(Ku.DOMPurify?Promise.resolve(Ku.DOMPurify):Promise.resolve().then((()=>(Di(),Pn)))).catch((function(A){return Promise.reject(Error("Could not load dompurify: "+A))})).then((function(A){return A.default?A.default:A}))}var r=function(A){var t=F(A);return"undefined"===t?"undefined":"string"===t||A instanceof String?"string":"number"===t||A instanceof Number?"number":"function"===t||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===t?"object":"unknown"},n=function(A,t){var e=document.createElement(A);for(var r in t.className&&(e.className=t.className),t.innerHTML&&t.dompurify&&(e.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)e.style[r]=t.style[r];return e},i=function A(t,e){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),n=t.firstChild;n;n=n.nextSibling)!0!==e&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r},s=function A(t){var e=Object.assign(A.convert(Promise.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(Promise.resolve(),e);return(r=r.setProgress(1,A,1,[A])).set(t)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(A,t){return A.__proto__=t||s.prototype,A},s.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"}},s.prototype.from=function(A,t){return this.then((function(){switch(t||=function(A){switch(r(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A),t){case"string":return this.then(e).then((function(t){return this.set({src:n("div",{innerHTML:A,dompurify:t})})}));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.")}}))},s.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.")}},s.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:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||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},t=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(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(t),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"}))},s.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then((function(A){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,A(this.prop.container,t)})).then((function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then((function(A){var t=this.opt.jsPDF,e=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,n=Object.assign({async:!0,allowTaint:!0,scale:r,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 n.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=e,e)for(var i=0;i<e.length;++i){var s=e[i],a=s.src.find((function(A){return"truetype"===A.format}));a&&t.addFont(a.url,s.ref.name,s.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,t.context2d.save(!0),A(this.prop.container,n)})).then((function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},s.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}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(A,t,e){return"img"===(e||="pdf").toLowerCase()||"image"===e.toLowerCase()?this.outputImg(A,t):this.outputPdf(A,t)},s.prototype.outputPdf=function(A,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(A,t)}))},s.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.'}}))},s.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)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(A){if("object"!==r(A))return this;var t=Object.keys(A||{}).map((function(t){if(t in s.template.prop)return function(){this.prop[t]=A[t]};switch(t){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[t]=A[t]}}}),this);return this.then((function(){return this.thenList(t)}))},s.prototype.get=function(A,t){return this.then((function(){var e=A in s.template.prop?this.prop[A]:this.opt[A];return t?t(e):e}))},s.prototype.setMargin=function(A){return this.then((function(){switch(r(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A})).then(this.setPageSize)},s.prototype.setPageSize=function(A){function t(A,t){return Math.floor(A*t/72*96)}return this.then((function(){(A||=vh.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:t(A.inner.width,A.k),height:t(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A}))},s.prototype.setProgress=function(A,t,e,r){return null!=A&&(this.progress.val=A),null!=t&&(this.progress.state=t),null!=e&&(this.progress.n=e),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(A,t,e,r){return this.setProgress(A?this.progress.val+A:null,t||null,e?this.progress.n+e:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(A,t){var e=this;return this.thenCore(A,t,(function(A,t){return e.updateProgress(null,null,1,[A]),Promise.prototype.then.call(this,(function(t){return e.updateProgress(null,A),t})).then(A,t).then((function(A){return e.updateProgress(1),A}))}))},s.prototype.thenCore=function(A,t,e){e||=Promise.prototype.then;var r=this;A&&=A.bind(r),t&&=t.bind(r);var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:s.convert(Object.assign({},r),Promise.prototype),i=e.call(n,A,t);return s.convert(i,r.__proto__)},s.prototype.thenExternal=function(A,t){return Promise.prototype.then.call(this,A,t)},s.prototype.thenList=function(A){var t=this;return A.forEach((function(A){t=t.thenCore(A)})),t},s.prototype.catch=function(A){A&&=A.bind(this);var t=Promise.prototype.catch.call(this,A);return s.convert(t,this)},s.prototype.catchExternal=function(A){return Promise.prototype.catch.call(this,A)},s.prototype.error=function(A){return this.then((function(){throw Error(A)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,vh.getPageSize=function(A,t,e){if("object"===F(A)){var r=A;A=r.orientation,t=r.unit||t,e=r.format||e}t||="mm",e||="a4",A=(""+(A||"P")).toLowerCase();var n,i=(""+e).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":n=1;break;case"mm":n=72/25.4;break;case"cm":n=72/2.54;break;case"in":n=72;break;case"px":n=.75;break;case"pc":case"em":n=12;break;case"ex":n=6;break;default:throw"Invalid unit: "+t}var a,o=0,l=0;if(s.hasOwnProperty(i))o=s[i][1]/n,l=s[i][0]/n;else try{o=e[1],l=e[0]}catch{throw Error("Invalid format: "+e)}if("p"===A||"portrait"===A)A="p",l>o&&(a=l,l=o,o=a);else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",o>l&&(a=l,l=o,o=a)}return{width:l,height:o,unit:t,k:n,orientation:A}},A.html=function(A,t){(t||={}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(pf):null;var e=new s(t);return t.worker?e:e.from(A).doCallback()}}(vh.API),vh.API.addJS=function(A){var t,e,r=function(A){for(var t="",e=0;e<A.length;e++){var r=A[e];if("("===r||")"===r){for(var n=0,i=e-1;i>=0&&"\\"===A[i];i--)n++;t+=n%2==0?"\\"+r:r}else t+=r}return t}(A);return this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==t&&void 0!==e&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")})),this},function(A){var t;A.events.push(["postPutResources",function(){var A=this,e=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=A.outline.render().split(/\r\n/),n=0;n<r.length;n++){var i=r[n],s=e.exec(i);if(null!=s){var a=s[1];A.internal.newObjectDeferredBegin(a,!1)}A.internal.write(i)}if(this.outline.createNamedDestinations){var o=this.internal.pages.length,l=[];for(n=0;n<o;n++){var c=A.internal.newObject();l.push(c);var u=A.internal.getPageInfo(n+1);A.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var h=A.internal.newObject();for(A.internal.write("<< /Names [ "),n=0;n<l.length;n++)A.internal.write("(page_"+(n+1)+")"+l[n]+" 0 R");A.internal.write(" ] >>","endobj"),t=A.internal.newObject(),A.internal.write("<< /Dests "+h+" 0 R"),A.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+t+" 0 R"))}]),A.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(A,t,e){var r={title:t,options:e,children:[]};return A??=this.root,A.children.push(r),r},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(t){t.id=A.internal.newObjectDeferred();for(var e=0;e<t.children.length;e++)this.genIds_r(t.children[e])},A.outline.renderRoot=function(A){this.objStart(A),this.line("/Type /Outlines"),A.children.length>0&&(this.line("/First "+this.makeRef(A.children[0])),this.line("/Last "+this.makeRef(A.children[A.children.length-1]))),this.line("/Count "+this.count_r({count:0},A)),this.objEnd()},A.outline.renderItems=function(t){for(var e=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var n=t.children[r];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var i=this.count=this.count_r({count:0},n);if(i>0&&this.line("/Count "+i),n.options&&n.options.pageNumber){var s=A.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+e(0)+" 0]")}this.objEnd()}for(var a=0;a<t.children.length;a++)this.renderItems(t.children[a])},A.outline.line=function(A){this.ctx.val+=A+"\r\n"},A.outline.makeRef=function(A){return A.id+" 0 R"},A.outline.makeString=function(t){return"("+A.internal.pdfEscape(t)+")"},A.outline.objStart=function(A){this.ctx.val+="\r\n"+A.id+" 0 obj\r\n<<\r\n"},A.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},A.outline.count_r=function(A,t){for(var e=0;e<t.children.length;e++)A.count++,this.count_r(A,t.children[e]);return A.count}}])}(vh.API),function(A){var t=[192,193,194,195,196,197,198,199];A.processJPEG=function(A,e,r,n,i,s){var a,o=this.decode.DCT_DECODE,l=null;if("string"==typeof A||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=i||A,A=this.__addimage__.isArrayBuffer(A)?new Uint8Array(A):A,a=function(A){for(var e,r=256*A.charCodeAt(4)+A.charCodeAt(5),n=A.length,i={width:0,height:0,numcomponents:1},s=4;s<n;s+=2){if(s+=r,-1!==t.indexOf(A.charCodeAt(s+1))){e=256*A.charCodeAt(s+5)+A.charCodeAt(s+6),i={width:256*A.charCodeAt(s+7)+A.charCodeAt(s+8),height:e,numcomponents:A.charCodeAt(s+9)};break}r=256*A.charCodeAt(s+2)+A.charCodeAt(s+3)}return i}(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A),a.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}l={data:A,width:a.width,height:a.height,colorSpace:s,bitsPerComponent:8,filter:o,index:e,alias:r}}return l}}(vh.API),vh.API.processPNG=function(A,t,e,r){if(this.__addimage__.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.__addimage__.isArrayBufferView(A)){var n,i=function(A,t){return new Nn(A,t).decode()}(A,{checkCrc:!0}),s=i.width,a=i.height,o=i.channels,l=i.palette,c=i.depth;n=l&&1===o?function(A){for(var t=A.width,e=A.height,r=A.data,n=A.palette,i=A.depth,s=!1,a=[],o=[],l=void 0,c=!1,u=0,h=0;h<n.length;h++){var f=lA(n[h],4),d=f[0],g=f[1],p=f[2],B=f[3];a.push(d,g,p),null!=B&&(0===B?(u++,o.length<1&&o.push(h)):B<255&&(c=!0))}if(c||u>1){s=!0,o=void 0;var w=t*e;l=new Uint8Array(w);for(var m=new DataView(r.buffer),y=0;y<w;y++){var v=lA(n[Tf(m,y,i)],4)[3];l[y]=v}}else 0===u&&(o=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:r,alphaBytes:l,needSMask:s,palette:a,mask:o}}(i):2===o||4===o?function(A){for(var t=A.data,e=A.width,r=A.height,n=A.channels,i=A.depth,s=2===n?"DeviceGray":"DeviceRGB",a=n-1,o=e*r,l=a,c=o*l,u=1*o,h=Math.ceil(c*i/8),f=Math.ceil(u*i/8),d=new Uint8Array(h),g=new Uint8Array(f),p=new DataView(t.buffer),B=new DataView(d.buffer),w=new DataView(g.buffer),m=!1,y=0;y<o;y++){for(var v=y*n,b=0;b<l;b++)Df(B,Tf(p,v+b,i),y*l+b,i);var C=Tf(p,v+l,i);C<(1<<i)-1&&(m=!0),Df(w,C,1*y,i)}return{colorSpace:s,colorsPerPixel:a,sMaskBitsPerComponent:m?i:void 0,colorBytes:d,alphaBytes:g,needSMask:m}}(i):function(A){var t=A.data,e=1===A.channels?"DeviceGray":"DeviceRGB";return{colorSpace:e,colorsPerPixel:"DeviceGray"===e?1:3,colorBytes:t instanceof Uint16Array?function(A){for(var t=A.length,e=new Uint8Array(2*t),r=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0;n<t;n++)r.setUint16(2*n,A[n],!1);return e}(t):t,needSMask:!1}}(i);var u,h,f,d=n,g=d.colorSpace,p=d.colorsPerPixel,B=d.sMaskBitsPerComponent,w=d.colorBytes,m=d.alphaBytes,y=d.needSMask,v=d.palette,b=d.mask,C=null;return r!==vh.API.image_compression.NONE?(C=function(A){var t;switch(A){case vh.API.image_compression.FAST:t=11;break;case vh.API.image_compression.MEDIUM:t=13;break;case vh.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),u=this.decode.FLATE_DECODE,h=`/Predictor ${C} /Colors ${p} /BitsPerComponent ${c} /Columns ${s}`,A=_f(w,Math.ceil(s*p*c/8),p,c,r),y&&(f=_f(m,Math.ceil(s*B/8),1,B,r))):(u=void 0,h=void 0,A=w,y&&(f=m)),(this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A))&&(A=this.__addimage__.arrayBufferToBinaryString(A)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:e,data:A,index:t,filter:u,decodeParameters:h,transparency:b,palette:v,sMask:f,predictor:C,width:s,height:a,bitsPerComponent:c,sMaskBitsPerComponent:B,colorSpace:g}}},function(A){A.processGIF89A=function(t,e,r,n){var i=new Rf(t),s=i.width,a=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var l={data:o,width:s,height:a},c=new Vf(100).encode(l,100);return A.processJPEG.call(this,c,e,r,n)},A.processGIF87A=A.processGIF89A}(vh.API),jf.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},jf.prototype.parseBGR=function(){this.pos=this.offset;var A="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[A]()}catch(A){ju.log("bit decode error:"+A)}},jf.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),e=t%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*n*4,a=0;a<8&&8*n+a<this.width;a++){var o=this.palette[i>>7-a&1];this.data[s+4*a]=o.blue,this.data[s+4*a+1]=o.green,this.data[s+4*a+2]=o.red,this.data[s+4*a+3]=255}0!==e&&(this.pos+=4-e)}},jf.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*n*4,a=i>>4,o=15&i,l=this.palette[a];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*n+1>=this.width)break;l=this.palette[o],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},jf.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var s=this.palette[n];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==A&&(this.pos+=4-A)}},jf.prototype.bit15=function(){for(var A=this.width%3,t=31,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&t)/t*255|0,a=(i>>5&t)/t*255|0,o=(i>>10&t)/t*255|0,l=i>>15?255:0,c=r*this.width*4+4*n;this.data[c]=o,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=l}this.pos+=A}},jf.prototype.bit16=function(){for(var A=this.width%3,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(31&n)/31*255|0,s=(n>>5&63)/63*255|0,a=(n>>11)/31*255|0,o=e*this.width*4+4*r;this.data[o]=a,this.data[o+1]=s,this.data[o+2]=i,this.data[o+3]=255}this.pos+=A}},jf.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},jf.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*e;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=s}},jf.prototype.getData=function(){return this.data},function(A){A.processBMP=function(t,e,r,n){var i=new jf(t,!1),s=i.width,a=i.height,o={data:i.getData(),width:s,height:a},l=new Vf(100).encode(o,100);return A.processJPEG.call(this,l,e,r,n)}}(vh.API),Gf.prototype.getData=function(){return this.data},function(A){A.processWEBP=function(t,e,r,n){var i=new Gf(t),s=i.width,a=i.height,o={data:i.getData(),width:s,height:a},l=new Vf(100).encode(o,100);return A.processJPEG.call(this,l,e,r,n)}}(vh.API),vh.API.processRGBA=function(A,t,e){for(var r=A.data,n=r.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),a=0,o=0,l=0;l<n;l+=4){var c=r[l],u=r[l+1],h=r[l+2],f=r[l+3];i[a++]=c,i[a++]=u,i[a++]=h,s[o++]=f}var d=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:d,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},vh.API.setLanguage=function(A){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"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"}[A]&&(this.internal.languageSettings.languageCode=A,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Ff=vh.API,Qf=Ff.getCharWidthsArray=function(A,t){var e,r,n=(t||={}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:n.metadata.Unicode.widths,o=a.fof?a.fof:1,l=t.kerning?t.kerning:n.metadata.Unicode.kerning,c=l.fof?l.fof:1,u=!1!==t.doKerning,h=0,f=A.length,d=0,g=a[0]||o,p=[];for(e=0;e<f;e++)r=A.charCodeAt(e),"function"==typeof n.metadata.widthOfString?p.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+1e3/i*s||0)/1e3):(h=u&&"object"===F(l[r])&&!isNaN(parseInt(l[r][d],10))?l[r][d]/c:0,p.push((a[r]||g)/o+h)),d=r;return p},xf=Ff.getStringUnitWidth=function(A,t){var e=(t||={}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return Ff.processArabic&&(A=Ff.processArabic(A)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(A,e,n)/e:Qf.apply(this,arguments).reduce((function(A,t){return A+t}),0)},Uf=function(A,t,e,r){for(var n=[],i=0,s=A.length,a=0;i!==s&&a+t[i]<e;)a+=t[i],i++;n.push(A.slice(0,i));var o=i;for(a=0;i!==s;)a+t[i]>r&&(n.push(A.slice(o,i)),a=0,o=i),a+=t[i],i++;return o!==i&&n.push(A.slice(o,i)),n},Ef=function(A,t,e){e||={};var r,n,i,s,a,o,l,c=[],u=[c],h=e.textIndent||0,f=0,d=0,g=A.split(" "),p=Qf.apply(this,[" ",e])[0];if(o=-1===e.lineIndent?g[0].length+2:e.lineIndent||0){var B=Array(o).join(" "),w=[];g.map((function(A){(A=A.split(/\s*\n/)).length>1?w=w.concat(A.map((function(A,t){return(t&&A.length?"\n":"")+A}))):w.push(A[0])})),g=w,o=xf.apply(this,[B,e])}for(i=0,s=g.length;i<s;i++){var m=0;if(r=g[i],o&&"\n"==r[0]&&(r=r.substr(1),m=1),h+f+(d=(n=Qf.apply(this,[r,e])).reduce((function(A,t){return A+t}),0))>t||m){if(d>t){for(a=Uf.apply(this,[r,n,t-(h+f),t]),c.push(a.shift()),c=[a.pop()];a.length;)u.push([a.shift()]);d=n.slice(r.length-(c[0]?c[0].length:0)).reduce((function(A,t){return A+t}),0)}else c=[r];u.push(c),h=d+o,f=p}else c.push(r),h+=f+d,f=p}return l=o?function(A,t){return(t?B:"")+A.join(" ")}:function(A){return A.join(" ")},u.map(l)},Ff.splitTextToSize=function(A,t,e){var r,n=(e||={}).fontSize||this.internal.getFontSize(),i=function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var t=this.internal.getFont(A.fontName,A.fontStyle),e="Unicode";return t.metadata[e]?{widths:t.metadata[e].widths||{0:1},kerning:t.metadata[e].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(A)?A:String(A).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var a,o,l=[];for(a=0,o=r.length;a<o;a++)l=l.concat(Ef.apply(this,[r[a],s,i]));return l},function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",r={},n={},i=0;i<16;i++)r[e[i]]=t[i],n[t[i]]=e[i];var s=function(A){return"0x"+parseInt(A,10).toString(16)},a=A.__fontmetrics__.compress=function(A){var t,e,r,i,o=["{"];for(var l in A){if(t=A[l],isNaN(parseInt(l,10))?e="'"+l+"'":(l=parseInt(l,10),e=(e=s(l).slice(2)).slice(0,-1)+n[e.slice(-1)]),"number"==typeof t)t<0?(r=s(t).slice(3),i="-"):(r=s(t).slice(2),i=""),r=i+r.slice(0,-1)+n[r.slice(-1)];else{if("object"!==F(t))throw Error("Don't know what to do with value type "+F(t)+".");r=a(t)}o.push(e+r)}return o.push("}"),o.join("")},o=A.__fontmetrics__.uncompress=function(A){if("string"!=typeof A)throw Error("Invalid argument passed to uncompress.");for(var t,e,n,i,s={},a=1,o=s,l=[],c="",u="",h=A.length-1,f=1;f<h;f+=1)"'"==(i=A[f])?t?(n=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(l.push([o,n]),o={},n=void 0):"}"==i?((e=l.pop())[0][e[1]]=o,n=void 0,o=e[0]):"-"==i?a=-1:void 0===n?r.hasOwnProperty(i)?(c+=r[i],n=parseInt(c,16)*a,a=1,c=""):c+=i:r.hasOwnProperty(i)?(u+=r[i],o[n]=parseInt(u,16)*a,a=1,n=void 0,u=""):u+=i;return s},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'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":o("{'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:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'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:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'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":o("{'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:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'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":o("{'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":o("{'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}}}")}};A.events.push(["addFont",function(A){var t=A.font,e=u.Unicode[t.postScriptName];e&&(t.metadata.Unicode={},t.metadata.Unicode.widths=e.widths,t.metadata.Unicode.kerning=e.kerning);var r=c.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(vh.API),function(A){var t=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e};A.API.events.push(["addFont",function(e){var r=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(void 0===i)throw Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(n.postScriptName)?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName)))throw Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");!function(e,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(Yu(r)),e.metadata=A.API.TTFFont.open(r),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}(n,r)}}])}(vh),vh.API.addSvgAsImage=function(A,t,e,r,n,i,s,a){if(isNaN(t)||isNaN(e))throw ju.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw ju.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var o=document.createElement("canvas");o.width=r,o.height=n;var l=o.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,o.width,o.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return(Ku.canvg?Promise.resolve(Ku.canvg):Promise.resolve().then((()=>(Ru(),xl)))).catch((function(A){return Promise.reject(Error("Could not load canvg: "+A))})).then((function(A){return A.default?A.default:A})).then((function(t){return t.fromString(l,A,c)}),(function(){return Promise.reject(Error("Could not load canvg."))})).then((function(A){return A.render(c)})).then((function(){u.addImage(o.toDataURL("image/jpeg",1),t,e,r,n,s,a)}))},vh.API.putTotalPages=function(A){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),e=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(t,e);return this},vh.API.viewerPreferences=function(A,t){var e;A||={},t||=!1;var r,n,i,s={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}},a=Object.keys(s),o=[],l=0,c=0,u=0;function h(A,t){var e,r=!1;for(e=0;e<A.length;e+=1)A[e]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,"reset"===A||!0===t){var f=a.length;for(u=0;u<f;u+=1)e[a[u]].value=e[a[u]].defaultValue,e[a[u]].explicitSet=!1}if("object"===F(A))for(n in A)if(i=A[n],h(a,n)&&void 0!==i){if("boolean"===e[n].type&&"boolean"==typeof i)e[n].value=i;else if("name"===e[n].type&&h(e[n].valueSet,i))e[n].value=i;else if("integer"===e[n].type&&Number.isInteger(i))e[n].value=i;else if("array"===e[n].type){for(l=0;l<i.length;l+=1)if(r=!0,1===i[l].length&&"number"==typeof i[l][0])o.push(String(i[l]-1));else if(i[l].length>1){for(c=0;c<i[l].length;c+=1)"number"!=typeof i[l][c]&&(r=!1);!0===r&&o.push([i[l][0]-1,i[l][1]-1].join(" "))}e[n].value="["+o.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var A,t=[];for(A in e)!0===e[A].explicitSet&&("name"===e[A].type?t.push("/"+A+" /"+e[A].value):t.push("/"+A+" "+e[A].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},vh.API.addMetadata=function(A,t){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:A,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof t&&t},this.internal.events.subscribe("putCatalog",qf),this.internal.events.subscribe("postPutResources",zf)),this},function(A){var t=A.API,e=t.pdfEscape16=function(A,t){for(var e,r=t.metadata.Unicode.widths,n=["","0","00","000","0000"],i=[""],s=0,a=A.length;s<a;++s){if(e=t.metadata.characterToGlyph(A.charCodeAt(s)),t.metadata.glyIdsUsed.push(e),t.metadata.toUnicode[e]=A.charCodeAt(s),-1==r.indexOf(e)&&(r.push(e),r.push([parseInt(t.metadata.widthOfGlyph(e),10)])),"0"==e)return i.join("");e=e.toString(16),i.push(n[4-e.length],e)}return i.join("")},r=function(A){var t,e,r,n,i,s,a;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],s=0,a=(e=Object.keys(A).sort((function(A,t){return A-t}))).length;s<a;s++)t=e[s],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==A[t]&&null!==A[t]&&"function"==typeof A[t].toString&&(n=("0000"+A[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+n+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var e=t.font,n=t.out,i=t.newObject,s=t.putStream;if(e.metadata instanceof A.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,o=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),l="",c=0;c<o.length;c++)l+=String.fromCharCode(o[c]);var u=i();s({data:l,addLength1:!0,objectId:u}),n("endobj");var h=i();s({data:r(e.metadata.toUnicode),addLength1:!0,objectId:h}),n("endobj");var f=i();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+gh(e.fontName)),n("/FontFile2 "+u+" 0 R"),n("/FontBBox "+A.API.PDFObject.convert(e.metadata.bbox)),n("/Flags "+e.metadata.flags),n("/StemV "+e.metadata.stemV),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n(">>"),n("endobj");var d=i();n("<<"),n("/Type /Font"),n("/BaseFont /"+gh(e.fontName)),n("/FontDescriptor "+f+" 0 R"),n("/W "+A.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=i(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+h+" 0 R"),n("/BaseFont /"+gh(e.fontName)),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var e=t.font,n=t.out,i=t.newObject,s=t.putStream;if(e.metadata instanceof A.API.TTFFont&&"WinAnsiEncoding"===e.encoding){for(var a=e.metadata.rawData,o="",l=0;l<a.length;l++)o+=String.fromCharCode(a[l]);var c=i();s({data:o,addLength1:!0,objectId:c}),n("endobj");var u=i();s({data:r(e.metadata.toUnicode),addLength1:!0,objectId:u}),n("endobj");var h=i();n("<<"),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n("/StemV "+e.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+c+" 0 R"),n("/Flags 96"),n("/FontBBox "+A.API.PDFObject.convert(e.metadata.bbox)),n("/FontName /"+gh(e.fontName)),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n(">>"),n("endobj"),e.objectNumber=i();for(var f=0;f<e.metadata.hmtx.widths.length;f++)e.metadata.hmtx.widths[f]=parseInt(e.metadata.hmtx.widths[f]*(1e3/e.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+gh(e.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),n("endobj"),e.isAlreadyPutted=!0}}(t)}]);var n=function(A){var t,r=A.text||"",n=A.x,i=A.y,s=A.options||{},a=A.mutex||{},o=a.pdfEscape,l=a.activeFontKey,c=a.fonts,u=l,h="",f=0,d="",g=c[u].encoding;if("Identity-H"!==c[u].encoding)return{text:r,x:n,y:i,options:s,mutex:a};for(d=r,u=l,Array.isArray(r)&&(d=r[0]),f=0;f<d.length;f+=1)c[u].metadata.hasOwnProperty("cmap")&&(t=c[u].metadata.cmap.unicode.codeMap[d[f].charCodeAt(0)]),t||d[f].charCodeAt(0)<256&&c[u].metadata.hasOwnProperty("Unicode")?h+=d[f]:h+="";var p="";return parseInt(u.slice(1))<14||"WinAnsiEncoding"===g?p=o(h,u).split("").map((function(A){return A.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(p=e(h,c[u])),a.isHex=!0,{text:p,x:n,y:i,options:s,mutex:a}};t.events.push(["postProcessText",function(A){var t=A.text||"",e=[],r={text:t,x:A.x,y:A.y,options:A.options,mutex:A.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?e.push([n(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):e.push(n(Object.assign({},r,{text:t[i]})).text);A.text=e}else A.text=n(Object.assign({},r,{text:t})).text}])}(vh),function(A){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(A){return t.call(this),void 0!==this.internal.vFS[A]},A.addFileToVFS=function(A,e){return t.call(this),this.internal.vFS[A]=e,this},A.getFileFromVFS=function(A){return t.call(this),void 0===this.internal.vFS[A]?null:this.internal.vFS[A]}}(vh.API),function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(A){var e,r,n,i,s,a,o,l=t,c=[[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]],u=[[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]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},d="(.).(.<.>.<.[.].[.{.}.{.«.».«.‹.›.‹.⁅.⁆.⁅.⁽.⁾.⁽.₍.₎.₍.≤.≥.≤.〈.〉.〈.﹙.﹚.﹙.﹛.﹜.﹛.﹝.﹞.﹝.﹤.﹥.﹤".split("."),g=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)$/),p=!1,B=0;this.__bidiEngine__={};var w=function(A){var t=A.charCodeAt(),e=t>>8,r=f[e];return void 0===r?252===e||253===e?"AL":g.test(e)?"L":8===e?"R":"N":l[256*r+(255&t)]},m=function(A){for(var t,e=0;e<A.length;e++){if("L"===(t=w(A.charAt(e))))return!1;if("R"===t)return!0}return!1},y=function(A,t,s,a){var o,l,c,u,h=t[a];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":p=!1;break;case"N":case"AN":break;case"EN":p&&(h="AN");break;case"AL":p=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(o=s[a-1])&&"AN"!==o||"EN"!==(l=t[a+1])&&"AN"!==l?h="N":p&&(l="AN"),h=l===o?l:"N";break;case"ES":h="EN"===(o=a>0?s[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===s[a-1]){h="EN";break}if(p){h="N";break}for(c=a+1,u=t.length;c<u&&"ET"===t[c];)c++;h=c<u&&"EN"===t[c]?"EN":"N";break;case"NSM":if(n&&!i){for(u=t.length,c=a+1;c<u&&"NSM"===t[c];)c++;if(c<u){var f=A[a],d=f>=1425&&f<=2303||64286===f;if(o=t[c],d&&("R"===o||"AL"===o)){h="R";break}}}h=a<1||"B"===(o=t[a-1])?"N":s[a-1];break;case"B":p=!1,e=!0,h=B;break;case"S":r=!0,h="N"}return h},v=function(A,t,e){var r=A.split("");return e&&b(r,e,{hiLevel:B}),r.reverse(),t&&t.reverse(),r.join("")},b=function(A,t,n){var i,s,a,o,l,f=-1,d=A.length,g=0,m=[],v=B?u:c,b=[];for(p=!1,e=!1,r=!1,s=0;s<d;s++)b[s]=w(A[s]);for(a=0;a<d;a++){if(l=g,m[a]=y(A,b,m,a),i=240&(g=v[l][h[m[a]]]),g&=15,t[a]=o=v[g][5],i>0)if(16===i){for(s=f;s<a;s++)t[s]=1;f=-1}else f=-1;if(v[g][6])-1===f&&(f=a);else if(f>-1){for(s=f;s<a;s++)t[s]=o;f=-1}"B"===b[a]&&(t[a]=0),n.hiLevel|=o}r&&function(A,t,e){for(var r=0;r<e;r++)if("S"===A[r]){t[r]=B;for(var n=r-1;n>=0&&"WS"===A[n];n--)t[n]=B}}(b,t,d)},C=function(A,t,r,n,i){if(!(i.hiLevel<A)){if(1===A&&1===B&&!e)return t.reverse(),void(r&&r.reverse());for(var s,a,o,l,c=t.length,u=0;u<c;){if(n[u]>=A){for(o=u+1;o<c&&n[o]>=A;)o++;for(l=u,a=o-1;l<a;l++,a--)s=t[l],t[l]=t[a],t[a]=s,r&&(s=r[l],r[l]=r[a],r[a]=s);u=o}u++}}},F=function(A,t,e){var r=A.split(""),n={hiLevel:B};return e||=[],b(r,e,n),function(A,t,e){if(0!==e.hiLevel&&o)for(var r,n=0;n<A.length;n++)1===t[n]&&(r=d.indexOf(A[n]))>=0&&(A[n]=d[r+1])}(r,e,n),C(2,r,t,e,n),C(1,r,t,e,n),r.join("")};return this.__bidiEngine__.doBidiReorder=function(A,t,e){if(function(A,t){if(t)for(var e=0;e<A.length;e++)t[e]=e;void 0===i&&(i=m(A)),void 0===a&&(a=m(A))}(A,t),n||!s||a)if(n&&s&&i^a)B=i?1:0,A=v(A,t,e);else if(!n&&s&&a)B=i?1:0,A=F(A,t,e),A=v(A,t);else if(!n||i||s||a){if(n&&!s&&i^a)A=v(A,t),i?(B=0,A=F(A,t,e)):(B=1,A=F(A,t,e),A=v(A,t));else if(n&&i&&!s&&a)B=1,A=F(A,t,e),A=v(A,t);else if(!n&&!s&&i^a){var r=o;i?(B=1,A=F(A,t,e),B=0,o=!1,A=F(A,t,e),o=r):(B=0,A=F(A,t,e),A=v(A,t),B=1,o=!1,A=F(A,t,e),o=r,A=v(A,t))}}else B=0,A=F(A,t,e);else B=i?1:0,A=F(A,t,e);return A},this.__bidiEngine__.setOptions=function(A){A&&(n=A.isInputVisual,s=A.isOutputVisual,i=A.isInputRtl,a=A.isOutputRtl,o=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(A),this.__bidiEngine__};var t="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".split("."),e=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(A){var t=A.text;A.x,A.y;var r=A.options||{};A.mutex,r.lang;var n=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,e.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(n=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?n.push([e.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):n.push([e.doBidiReorder(t[i])]);A.text=n}else A.text=e.doBidiReorder(t);e.setOptions({isInputVisual:!0})}])}(vh),vh.API.TTFFont=function(){function A(A){var t;if(this.rawData=A,t=this.contents=new Wf(A),this.contents.pos=4,"ttcf"===t.readString(4))throw Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new dd(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new Yf(this.contents),this.head=new $f(this),this.name=new sd(this),this.cmap=new td(this),this.toUnicode={},this.hhea=new ed(this),this.maxp=new ad(this),this.hmtx=new od(this),this.post=new nd(this),this.os2=new rd(this),this.loca=new fd(this),this.glyf=new cd(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var A,t,e,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.bbox).length;t<e;t++)A=r[t],n.push(Math.round(A*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(e=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){return this.cmap.unicode?.codeMap[A]||0},A.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},A.prototype.widthOfString=function(A,t,e){var r,n,i,s;for(i=0,n=0,s=(A=""+A).length;0<=s?n<s:n>s;n=0<=s?++n:--n)r=A.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+1e3/t*e||0;return t/1e3*i},A.prototype.lineHeight=function(A,t){var e;return t??=!1,e=t?this.lineGap:0,(this.ascender+e-this.decender)/1e3*A},A}();var Xf,Wf=function(){function A(A){this.data=A??[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var t,e;for(e=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)e[t]=String.fromCharCode(this.readByte());return e.join("")},A.prototype.writeString=function(A){var t,e,r;for(r=[],t=0,e=A.length;0<=e?t<e:t>e;t=0<=e?++t:--t)r.push(this.writeByte(A.charCodeAt(t)));return r},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,t,e,r,n,i,s,a;return A=this.readByte(),t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),a=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^e)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^s)+(255^a)+1):72057594037927940*A+281474976710656*t+1099511627776*e+4294967296*r+16777216*n+65536*i+256*s+a},A.prototype.writeLongLong=function(A){var t,e;return t=Math.floor(A/4294967296),e=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var t,e;for(t=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)t.push(this.readByte());return t},A.prototype.write=function(A){var t,e,r,n;for(n=[],e=0,r=A.length;e<r;e++)t=A[e],n.push(this.writeByte(t));return n},A}(),Yf=function(){var A;function t(A){var t,e,r;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},e=0,r=this.tableCount;0<=r?e<r:e>r;e=0<=r?++e:--e)t={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var e,r,n,i,s,a,o,l,c,u,h,f,d;for(d in h=Object.keys(t).length,a=Math.log(2),c=16*Math.floor(Math.log(h)/a),i=Math.floor(c/a),l=16*h-c,(r=new Wf).writeInt(this.scalarType),r.writeShort(h),r.writeShort(c),r.writeShort(i),r.writeShort(l),n=16*h,o=r.pos+n,s=null,f=[],t)for(u=t[d],r.writeString(d),r.writeInt(A(u)),r.writeInt(o),r.writeInt(u.length),f=f.concat(u),"head"===d&&(s=o),o+=u.length;o%4;)f.push(0),o++;return r.write(f),e=2981146554-A(r.data),r.pos=s+8,r.writeUInt32(e),r.data},A=function(A){var t,e,r,n;for(A=ld.call(A);A.length%4;)A.push(0);for(r=new Wf(A),e=0,t=0,n=A.length;t<n;t=t+=4)e+=r.readUInt32();return 4294967295&e},t}(),Jf={}.hasOwnProperty,Zf=function(A,t){for(var e in t)Jf.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};Xf=function(){function A(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var $f=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="head",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},A.prototype.encode=function(A){var t;return(t=new Wf).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(A),t.writeShort(this.glyphDataFormat),t.data},A}(),Ad=function(){function A(A,t){var e,r,n,i,s,a,o,l,c,u,h,f,d,g,p,B,w;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),c=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=A.readByte();break;case 4:for(h=A.readUInt16(),u=h/2,A.pos+=6,n=function(){var t,e;for(e=[],a=t=0;0<=u?t<u:t>u;a=0<=u?++t:--t)e.push(A.readUInt16());return e}(),A.pos+=2,d=function(){var t,e;for(e=[],a=t=0;0<=u?t<u:t>u;a=0<=u?++t:--t)e.push(A.readUInt16());return e}(),o=function(){var t,e;for(e=[],a=t=0;0<=u?t<u:t>u;a=0<=u?++t:--t)e.push(A.readUInt16());return e}(),l=function(){var t,e;for(e=[],a=t=0;0<=u?t<u:t>u;a=0<=u?++t:--t)e.push(A.readUInt16());return e}(),r=(this.length-A.pos+this.offset)/2,s=function(){var t,e;for(e=[],a=t=0;0<=r?t<r:t>r;a=0<=r?++t:--t)e.push(A.readUInt16());return e}(),a=p=0,w=n.length;p<w;a=++p)for(g=n[a],e=B=f=d[a];f<=g?B<=g:B>=g;e=f<=g?++B:--B)0===l[a]?i=e+o[a]:0!==(i=s[l[a]/2+(e-f)-(u-a)]||0)&&(i+=o[a]),this.codeMap[e]=65535&i}A.pos=c}return A.encode=function(A,t){var e,r,n,i,s,a,o,l,c,u,h,f,d,g,p,B,w,m,y,v,b,C,F,Q,x,U,E,L,_,S,I,N,H,P,k,O,T,D,M,R,K,V,j,G,z,q;switch(L=new Wf,i=Object.keys(A).sort((function(A,t){return A-t})),t){case"macroman":for(d=0,g=function(){var A=[];for(f=0;f<256;++f)A.push(0);return A}(),B={0:0},n={},_=0,H=i.length;_<H;_++)B[j=A[r=i[_]]]??(B[j]=++d),n[r]={old:A[r],new:B[A[r]]},g[r]=B[A[r]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(g),{charMap:n,subtable:L.data,maxGlyphID:d+1};case"unicode":for(U=[],c=[],w=0,B={},e={},p=o=null,S=0,P=i.length;S<P;S++)B[y=A[r=i[S]]]??(B[y]=++w),e[r]={old:y,new:B[y]},s=B[y]-r,null!=p&&s===o||(p&&c.push(p),U.push(r),o=s),p=r;for(p&&c.push(p),c.push(65535),U.push(65535),Q=2*(F=U.length),C=2*(Math.log(F)/Math.LN2)**2,u=Math.log(C/2)/Math.LN2,b=2*F-C,a=[],v=[],h=[],f=I=0,k=U.length;I<k;f=++I){if(x=U[f],l=c[f],65535===x){a.push(0),v.push(0);break}if(x-(E=e[x].new)>=32768)for(a.push(0),v.push(2*(h.length+F-f)),r=N=x;x<=l?N<=l:N>=l;r=x<=l?++N:--N)h.push(e[r].new);else a.push(E-x),v.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*F+2*h.length),L.writeUInt16(0),L.writeUInt16(Q),L.writeUInt16(C),L.writeUInt16(u),L.writeUInt16(b),K=0,O=c.length;K<O;K++)r=c[K],L.writeUInt16(r);for(L.writeUInt16(0),V=0,T=U.length;V<T;V++)r=U[V],L.writeUInt16(r);for(G=0,D=a.length;G<D;G++)s=a[G],L.writeUInt16(s);for(z=0,M=v.length;z<M;z++)m=v[z],L.writeUInt16(m);for(q=0,R=h.length;q<R;q++)d=h[q],L.writeUInt16(d);return{charMap:e,subtable:L.data,maxGlyphID:w+1}}},A}(),td=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="cmap",A.prototype.parse=function(A){var t,e,r;for(A.pos=this.offset,this.version=A.readUInt16(),r=A.readUInt16(),this.tables=[],this.unicode=null,e=0;0<=r?e<r:e>r;e=0<=r?++e:--e)t=new Ad(A,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},A.encode=function(A,t){var e,r;return t??="macroman",e=Ad.encode(A,t),(r=new Wf).writeUInt16(0),r.writeUInt16(1),e.table=r.data.concat(e.subtable),e},A}(),ed=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="hhea",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},A}(),rd=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="OS/2",A.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var t,e;for(e=[],t=0;t<10;++t)e.push(A.readByte());return e}(),this.charRange=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(A.readInt());return e}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var t,e;for(e=[],t=0;t<2;t=++t)e.push(A.readInt());return e}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},A}(),nd=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="post",A.prototype.parse=function(A){var t,e,r;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(e=A.readUInt16(),this.glyphNameIndex=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],r=[];A.pos<this.offset+this.length;)t=A.readByte(),r.push(this.names.push(A.readString(t)));return r;case 151552:return e=A.readUInt16(),this.offsets=A.read(e);case 262144:return this.map=function(){var t,e,r;for(r=[],n=t=0,e=this.file.maxp.numGlyphs;0<=e?t<e:t>e;n=0<=e?++t:--t)r.push(A.readUInt32());return r}.call(this)}},A}(),id=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},sd=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="name",A.prototype.parse=function(A){var t,e,r,n,i,s,a,o,l,c,u;for(A.pos=this.offset,A.readShort(),t=A.readShort(),s=A.readShort(),e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+s+A.readShort()});for(a={},n=l=0,c=e.length;l<c;n=++l)r=e[n],A.pos=r.offset,o=A.readString(r.length),i=new id(o,r),a[u=r.nameID]??(a[u]=[]),a[r.nameID].push(i);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},A}(),ad=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="maxp",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},A}(),od=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="hmtx",A.prototype.parse=function(A){var t,e,r,n,i,s,a;for(A.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,n;for(n=[],t=e=0;0<=r?e<r:e>r;t=0<=r?++e:--e)n.push(A.readInt16());return n}(),this.widths=function(){var A,t,e,r;for(r=[],A=0,t=(e=this.metrics).length;A<t;A++)n=e[A],r.push(n.advance);return r}.call(this),e=this.widths[this.widths.length-1],a=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)a.push(this.widths.push(e));return a},A.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},A}(),ld=[].slice,cd=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(A){var t,e,r,n,i,s,a,o,l,c;return A in this.cache?this.cache[A]:(n=this.file.loca,t=this.file.contents,e=n.indexOf(A),0===(r=n.lengthOf(A))?this.cache[A]=null:(t.pos=this.offset+e,i=(s=new Wf(t.read(r))).readShort(),o=s.readShort(),c=s.readShort(),a=s.readShort(),l=s.readShort(),this.cache[A]=-1===i?new hd(s,o,c,a,l):new ud(s,i,o,c,a,l),this.cache[A]))},A.prototype.encode=function(A,t,e){var r,n,i,s,a;for(i=[],n=[],s=0,a=t.length;s<a;s++)r=A[t[s]],n.push(i.length),r&&(i=i.concat(r.encode(e)));return n.push(i.length),{table:i,offsets:n}},A}(),ud=function(){function A(A,t,e,r,n,i){this.raw=A,this.numberOfContours=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),hd=function(){function A(A,t,e,r,n){var i,s;for(this.raw=A,this.xMin=t,this.yMin=e,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;s=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&s;)i.pos+=1&s?4:2,128&s?i.pos+=8:64&s?i.pos+=4:8&s&&(i.pos+=2)}return A.prototype.encode=function(){var A,t,e;for(t=new Wf(ld.call(this.raw.data)),A=0,e=this.glyphIDs.length;A<e;++A)t.pos=this.glyphOffsets[A];return t.data},A}(),fd=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return Zf(A,Xf),A.prototype.tag="loca",A.prototype.parse=function(A){var t,e;return A.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=2)r.push(2*A.readUInt16());return r}.call(this):function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=4)r.push(A.readUInt32());return r}.call(this)},A.prototype.indexOf=function(A){return this.offsets[A]},A.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},A.prototype.encode=function(A,t){for(var e=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<e.length;++i)if(e[i]=r,n<t.length&&t[n]==i){++n,e[i]=r;var s=this.offsets[i],a=this.offsets[i+1]-s;a>0&&(r+=a)}for(var o=Array(4*e.length),l=0;l<e.length;++l)o[4*l+3]=255&e[l],o[4*l+2]=(65280&e[l])>>8,o[4*l+1]=(16711680&e[l])>>16,o[4*l]=(4278190080&e[l])>>24;return o},A}(),dd=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,t,e,r,n;for(t in r=this.font.cmap.tables[0].codeMap,A={},n=this.subset)e=n[t],A[t]=r[e];return A},A.prototype.glyphsFor=function(A){var t,e,r,n,i,s,a;for(r={},i=0,s=A.length;i<s;i++)r[n=A[i]]=this.font.glyf.glyphFor(n);for(n in t=[],r)null!=(e=r[n])&&e.compound&&t.push.apply(t,e.glyphIDs);if(t.length>0)for(n in a=this.glyphsFor(t))e=a[n],r[n]=e;return r},A.prototype.encode=function(A,t){var e,r,n,i,s,a,o,l,c,u,h,f,d,g,p;for(r in e=td.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(A),h={0:0},p=e.charMap)h[(a=p[r]).old]=a.new;for(f in u=e.maxGlyphID,i)f in h||(h[f]=u++);return l=function(A){var t,e;for(t in e={},A)e[A[t]]=t;return e}(h),c=Object.keys(l).sort((function(A,t){return A-t})),d=function(){var A,t,e;for(e=[],A=0,t=c.length;A<t;A++)s=c[A],e.push(l[s]);return e}(),n=this.font.glyf.encode(i,d,h),o=this.font.loca.encode(n.offsets,d),g={cmap:this.font.cmap.raw(),glyf:n.table,loca:o,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&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},A}();vh.API.PDFObject=function(){var A;function t(){}return A=function(A,t){return(Array(t+1).join("0")+A).slice(-t)},t.convert=function(e){var r,n,i,s;if(Array.isArray(e))return"["+function(){var A,n,i;for(i=[],A=0,n=e.length;A<n;A++)r=e[A],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof e)return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(e)){for(n in i=["<<"],e)s=e[n],i.push("/"+n+" "+t.convert(s));return i.push(">>"),i.join("\n")}return""+e},t}();var gd={"circle-radius":8,"circle-color":"red","circle-stroke-width":1,"circle-stroke-color":"black"},pd={style:{textSize:16,textHaloColor:"#FFFFFF",textHaloWidth:.8,textColor:"#000000",fallbackTextFont:["Open Sans Regular"]},visibility:"visible",position:"bottom-right"},Bd={image:'<svg width="800px" height="800px" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--gis" preserveAspectRatio="xMidYMid meet"><path d="M47.655 1.634l-35 95c-.828 2.24 1.659 4.255 3.68 2.98l33.667-21.228l33.666 21.228c2.02 1.271 4.503-.74 3.678-2.98l-35-95C51.907.514 51.163.006 50 .008c-1.163.001-1.99.65-2.345 1.626zm-.155 14.88v57.54L19.89 91.461z" fill="none" stroke="white" stroke-width="1.5"/><path d="M47.655 1.634l-35 95c-.828 2.24 1.659 4.255 3.68 2.98l33.667-21.228l33.666 21.228c2.02 1.271 4.503-.74 3.678-2.98l-35-95C51.907.514 51.163.006 50 .008c-1.163.001-1.99.65-2.345 1.626zm-.155 14.88v57.54L19.89 91.461z" fill="#000000" fill-rule="evenodd"></path></svg>',imageName:"gl-export-north-icon",imageSizeFraction:.05,visibility:"visible",position:"top-right"},wd=class{map;width;height;dpi;format;unit;fileName;markerClassName;markerCirclePaint;attributionClassName;attributionOptions;northIconOptions;constructor(A,t=B.A4,e=300,r=g.PNG,n=w.mm,i="map",s="maplibregl-marker",a=gd,o="maplibregl-ctrl-attrib-inner",l=pd,c=Bd){this.map=A,this.width=t[0],this.height=t[1],this.dpi=e,this.format=r,this.unit=n,this.fileName=i,this.markerClassName=s,this.markerCirclePaint=a,this.attributionClassName=o,this.attributionOptions=l,this.northIconOptions=c}renderMapPost(A){return A}getMarkers(){return this.map.getCanvasContainer().getElementsByClassName(this.markerClassName)}renderMarkers(A){let t=this.getMarkers();for(let e=0;e<t.length;e++){let r=t.item(e);if(!r)continue;let n=r.getAttribute("style");if(!n)continue;let i=n.match(/translate\(([^,]+)px,\s*([^,]+)px\)/);if(!i)continue;let s=parseInt(i[1]),a=parseInt(i[2]),o=this.map.unproject([s,a]),l=`point${e}`;A.addSource(l,{type:"geojson",data:{type:"Point",coordinates:[o.lng,o.lat]}}),A.addLayer({id:l,source:l,type:"circle",paint:this.markerCirclePaint})}return A}generate(){let A=this;this.addLoader(),this.showLoader();let t=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get:()=>A.dpi/96});let e=document.createElement("div");e.className="hidden-map",document.body.appendChild(e);let r=document.createElement("div");r.style.width=this.toPixels(this.width),r.style.height=this.toPixels(this.height),e.appendChild(r);let n=this.map.getStyle();if(n&&n.sources){let A=n.sources;Object.keys(A).forEach((t=>{let e=A[t];Object.keys(e).forEach((A=>{e[A]||delete e[A]}))}))}let i=this.getRenderedMap(r,n);i.on("load",(()=>{this.addNorthIconToMap(i).then((()=>{i.once("idle",(()=>{this.addAttributions(i)?i.once("idle",(()=>{i=this.renderMapPost(i),0===this.getMarkers().length?this.exportImage(i,e,t):(i=this.renderMarkers(i),i.once("idle",(()=>{this.exportImage(i,e,t)})))})):(i=this.renderMapPost(i),0===this.getMarkers().length?this.exportImage(i,e,t):(i=this.renderMarkers(i),i.once("idle",(()=>{this.exportImage(i,e,t)}))))}))}))}))}stripHtml(A){let t=document.createElement("div");return t.innerHTML=A,t.textContent||t.innerText||""}getIconWidth(A,t){let e=A.getContainer(),r=parseInt(e.style.width.replace("px",""));return parseInt(""+r*t)}getElementPosition(A,t,e=0){let r=A.getContainer(),n=0,i=0;switch(t){case"top-left":n=0+e,i=0+e;break;case"top-right":n=parseInt(r.style.width.replace("px",""))-e,i=0+e;break;case"bottom-left":n=0+e,i=parseInt(r.style.height.replace("px",""))-e;break;case"bottom-right":n=parseInt(r.style.width.replace("px",""))-e,i=parseInt(r.style.height.replace("px",""))-e}return[n,i]}addNorthIconImage(A){let t=this.getIconWidth(A,this.northIconOptions.imageSizeFraction??.08);return new Promise((e=>{let r=new Image(t,t);r.onload=()=>{this.northIconOptions.imageName&&A.addImage(this.northIconOptions.imageName,r),e()},this.northIconOptions.image&&(r.src=function(A){return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(A)}(this.northIconOptions.image))}))}addNorthIconToMap(A){let t=this.northIconOptions.visibility??"visible";return A.getZoom()<2&&this.width>this.height&&(t="none"),new Promise((e=>{this.addNorthIconImage(A).then((()=>{let r=.8*this.getIconWidth(A,this.northIconOptions.imageSizeFraction??.08),n=this.getElementPosition(A,this.northIconOptions.position??"top-right",r),i=A.unproject(n),s=this.northIconOptions.imageName??"gl-export-north-icon";A.addSource(s,{type:"geojson",data:{type:"Feature",geometry:{type:"Point",coordinates:[i.lng,i.lat]},properties:{}}}),A.addLayer({id:s,source:s,type:"symbol",layout:{"icon-image":s,"icon-size":1,"icon-rotate":-1*A.getBearing(),"icon-allow-overlap":!0,"icon-ignore-placement":!0,visibility:t},paint:{}}),e()}))}))}addAttributions(A){if(!this.map.getStyle().glyphs)return!1;let t=A.getContainer(),e=this.attributionOptions.position??"bottom-right",r=this.getElementPosition(A,e,5),n=r[0],i=A.unproject(r),s=t.getElementsByClassName(this.attributionClassName),a=[];if(s?.length>0){let A=s.item(0);if(A)for(let t=0;t<A.children.length;t++){let e=A.children.item(t);e&&a.push(this.stripHtml(e.outerHTML))}}else{let A=this.map.getStyle().sources;Object.keys(A).forEach((t=>{let e=A[t];if("attribution"in e){let A=e.attribution;a.push(this.stripHtml(A))}}))}if(0===a.length)return!1;let o=a.join(" | "),l="attribution";A.addSource(l,{type:"geojson",data:{type:"Feature",geometry:{type:"Point",coordinates:[i.lng,i.lat]},properties:{attribution:o}}});let c=this.map.getStyle().layers.filter((A=>"symbol"===A.type&&A.layout&&"text-font"in A.layout)),u=c.length>0&&c[0].layout?c[0].layout["text-font"]:this.attributionOptions.style?.fallbackTextFont,h=this.attributionOptions.visibility??"visible";A.getZoom()<2&&this.width>this.height&&(h="none");let f=this.attributionOptions.style;return A.addLayer({id:l,source:l,type:"symbol",layout:{"text-field":["get","attribution"],"text-font":u,"text-max-width":parseInt(""+n/f.textSize),"text-anchor":e,"text-justify":["top-right","bottom-right"].includes(e)?"right":"left","text-size":f.textSize,"text-allow-overlap":!0,visibility:h},paint:{"text-halo-color":f.textHaloColor,"text-halo-width":f.textHaloWidth,"text-color":f.textColor}}),!0}exportImage(A,t,e){let r=A.getCanvas(),n=`${this.fileName}.${this.format}`;switch(this.format){case g.PNG:this.toPNG(r,n);break;case g.JPEG:this.toJPEG(r,n);break;case g.PDF:this.toPDF(A,n);break;case g.SVG:this.toSVG(r,n);break;default:console.error(`Invalid file format: ${this.format}`)}A.remove(),t.parentNode?.removeChild(t),Object.defineProperty(window,"devicePixelRatio",{get:()=>e}),t.remove(),this.hideLoader()}toPNG(A,t){let e=document.createElement("a");e.href=A.toDataURL(),e.download=t,e.click(),e.remove()}toJPEG(A,t){let e=A.toDataURL("image/jpeg",.85),r=document.createElement("a");r.href=e,r.download=t,r.click(),r.remove()}toPDF(A,t){let e=A.getCanvas(),r=new vh({orientation:this.width>this.height?"l":"p",unit:this.unit,compress:!0,format:[this.width,this.height]});r.addImage(e.toDataURL("image/png"),"png",0,0,this.width,this.height,void 0,"FAST");let{lng:n,lat:i}=A.getCenter();r.setProperties({title:A.getStyle().name,subject:`center: [${n}, ${i}], zoom: ${A.getZoom()}`,creator:"Mapbox GL Export Plugin",author:"(c)Mapbox, (c)OpenStreetMap"}),r.save(t)}toSVG(A,t){let e=A.toDataURL("image/png"),r=Number(this.toPixels(this.width,this.dpi).replace("px","")),n=Number(this.toPixels(this.height,this.dpi).replace("px","")),i=`\n    <svg xmlns="http://www.w3.org/2000/svg" \n      xmlns:xlink="http://www.w3.org/1999/xlink" \n      version="1.1" \n      width="${r}" \n      height="${n}" \n      viewBox="0 0 ${r} ${n}" \n      xml:space="preserve">\n        <image style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;"  \n      xlink:href="${e}" width="${r}" height="${n}"></image>\n    </svg>`,s=document.createElement("a");s.href=`data:application/xml,${encodeURIComponent(i)}`,s.download=t,s.click(),s.remove()}toPixels(A,t=96){return this.unit===w.mm&&(t/=25.4),t*A+"px"}addLoader(){let A=this.map.getCanvas().parentElement?.parentElement;if(!A||A.getElementsByClassName("map-export-loader").length>0)return;let t=document.createElement("span");t.classList.add("map-export-loader"),t.classList.add("loader-default"),A.appendChild(t)}showLoader(){let A=this.map.getCanvas().parentElement?.parentElement;if(!A)return;let t=A.getElementsByClassName("map-export-loader");t&&t.length>0&&t.item(0)?.classList.add("is-active")}hideLoader(){let A=this.map.getCanvas().parentElement?.parentElement;if(!A)return;let t=A.getElementsByClassName("map-export-loader");t&&t.length>0&&t.item(0)?.classList.remove("is-active")}},md=class extends wd{constructor(A,t=B.A4,e=300,r=g.PNG,n=w.mm,i="map",s=gd,a=pd,o=Bd){super(A,t,e,r,n,i,"maplibregl-marker",s,"maplibregl-ctrl-attrib-inner",a,o)}getRenderedMap(A,e){let r=new t.Map({container:A,style:e,center:this.map.getCenter(),zoom:this.map.getZoom(),bearing:this.map.getBearing(),pitch:this.map.getPitch(),interactive:!1,canvasContextAttributes:{preserveDrawingBuffer:!0},fadeDuration:0,transformRequest:this.map._requestManager._transformRequestFn});this.map.getTerrain()&&(r.setMaxPitch(85),r.setPitch(this.map.getPitch()));let n=(this.map.style.imageManager||{}).images||[];return Object.keys(n).forEach((A=>{n[A].data&&r.addImage(A,n[A].data)})),r}renderMapPost(A){let t=this.map.getTerrain();return t&&A.setTerrain({source:t.source,exaggeration:t.exaggeration}),A}};A.AvailableLanguages=b,A.CrosshairManager=f,A.DPI=d,A.Format=g,A.Languages=v,A.MapGeneratorBase=wd,A.MaplibreExportControl=class{controlContainer;exportContainer;crosshair;printableArea;map;exportButton;options={PageSize:B.A4,PageOrientation:p.Landscape,Format:g.PDF,DPI:d[300],Crosshair:!1,PrintableArea:!1,Local:"en",AllowedSizes:Object.keys(B),Filename:"map",markerCirclePaint:gd,attributionOptions:pd,northIconOptions:Bd};MAPLIB_CSS_PREFIX="maplibregl";constructor(A){A&&(A.attributionOptions=Object.assign(pd,A.attributionOptions),A.northIconOptions=Object.assign(Bd,A.northIconOptions),this.options=Object.assign(this.options,A)),this.onDocumentClick=this.onDocumentClick.bind(this)}getDefaultPosition(){return"top-right"}getTranslation(){return C(this.options.Local??"en")}onAdd(A){this.map=A,this.controlContainer=document.createElement("div"),this.controlContainer.classList.add(`${this.MAPLIB_CSS_PREFIX}-ctrl`),this.controlContainer.classList.add(`${this.MAPLIB_CSS_PREFIX}-ctrl-group`),this.exportContainer=document.createElement("div"),this.exportContainer.classList.add(`${this.MAPLIB_CSS_PREFIX}-export-list`),this.exportButton=document.createElement("button"),this.exportButton.classList.add(`${this.MAPLIB_CSS_PREFIX}-ctrl-icon`),this.exportButton.classList.add(`${this.MAPLIB_CSS_PREFIX}-export-control`),this.exportButton.type="button",this.exportButton.addEventListener("click",(()=>{this.exportButton.style.display="none",this.exportContainer.style.display="block",this.toggleCrosshair(!0),this.togglePrintableArea(!0)})),document.addEventListener("click",this.onDocumentClick),this.controlContainer.appendChild(this.exportButton),this.controlContainer.appendChild(this.exportContainer);let t=document.createElement("TABLE");t.className="print-table";let e={};this.options.AllowedSizes?.forEach((A=>{B[A]&&(e[A]=B[A])}));let r=this.createSelection(e,this.getTranslation().PageSize,"page-size",this.options.PageSize,((A,t)=>JSON.stringify(A[t])));t.appendChild(r);let n=this.createSelection(p,this.getTranslation().PageOrientation,"page-orientation",this.options.PageOrientation,((A,t)=>A[t]));t.appendChild(n);let i=this.createSelection(g,this.getTranslation().Format,"format-type",this.options.Format,((A,t)=>A[t]));t.appendChild(i);let s=this.createSelection(d,this.getTranslation().DPI,"dpi-type",this.options.DPI,((A,t)=>A[t]));t.appendChild(s),this.exportContainer.appendChild(t);let a=document.createElement("button");return a.type="button",a.textContent=this.getTranslation().Generate,a.classList.add("generate-button"),a.addEventListener("click",(()=>{let t=document.getElementById("mapbox-gl-export-page-size"),e=document.getElementById("mapbox-gl-export-page-orientation"),r=document.getElementById("mapbox-gl-export-format-type"),n=document.getElementById("mapbox-gl-export-dpi-type"),i=e.value,s=JSON.parse(t.value);i===p.Portrait&&(s=s.reverse()),this.generateMap(A,s,Number(n.value),r.value,w.mm,this.options.Filename)})),this.exportContainer.appendChild(a),this.controlContainer}generateMap(A,t,e,r,n,i){new md(A,t,e,r,n,i,this.options.markerCirclePaint,this.options.attributionOptions,this.options.northIconOptions).generate()}createSelection(A,t,e,r,n){let i=document.createElement("label");i.textContent=t;let s=document.createElement("select");s.setAttribute("id",`mapbox-gl-export-${e}`),s.style.width="100%",Object.keys(A).forEach((t=>{let i=document.createElement("option");i.setAttribute("value",n(A,t)),i.appendChild(document.createTextNode(t)),i.setAttribute("name",e),r===A[t]&&(i.selected=!0),s.appendChild(i)})),s.addEventListener("change",(()=>{this.updatePrintableArea()}));let a=document.createElement("TR"),o=document.createElement("TD"),l=document.createElement("TD");return o.appendChild(i),l.appendChild(s),a.appendChild(o),a.appendChild(l),a}onRemove(){!this.controlContainer||!this.controlContainer.parentNode||!this.map||!this.exportButton||(this.exportButton.removeEventListener("click",this.onDocumentClick),this.controlContainer.parentNode.removeChild(this.controlContainer),document.removeEventListener("click",this.onDocumentClick),void 0!==this.crosshair&&(this.crosshair.destroy(),this.crosshair=void 0),void 0!==this.printableArea&&(this.printableArea.destroy(),this.printableArea=void 0),this.map=void 0)}onDocumentClick(A){this.controlContainer&&!this.controlContainer.contains(A.target)&&this.exportContainer&&this.exportButton&&(this.exportContainer.style.display="none",this.exportButton.style.display="block",this.toggleCrosshair(!1),this.togglePrintableArea(!1))}toggleCrosshair(A){!0===this.options.Crosshair&&(!1===A?void 0!==this.crosshair&&(this.crosshair.destroy(),this.crosshair=void 0):(this.crosshair=new f(this.map),this.crosshair.create()))}togglePrintableArea(A){!0===this.options.PrintableArea&&(!1===A?void 0!==this.printableArea&&(this.printableArea.destroy(),this.printableArea=void 0):(this.printableArea=new m(this.map),this.updatePrintableArea()))}updatePrintableArea(){if(void 0===this.printableArea)return;let A=document.getElementById("mapbox-gl-export-page-size"),t=document.getElementById("mapbox-gl-export-page-orientation").value,e=JSON.parse(A.value);t===p.Portrait&&(e=e.reverse()),this.printableArea.updateArea(e[0],e[1])}},A.PageOrientation=p,A.PrintableAreaManager=m,A.Size=B,A.Unit=w,A.defaultAttributionOptions=pd,A.defaultMarkerCirclePaint=gd,A.defaultNorthIconOptions=Bd,A.getTranslation=C}));
//# sourceMappingURL=/sm/d887c5c9e17a00f5a136f5a5023d8ca70a93815de7ef71cdac83136b2c11b0f2.map