@richmd/react 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ai,kr){typeof exports=="object"&&typeof module<"u"?kr(exports,require("react"),require("html-react-parser")):typeof define=="function"&&define.amd?define(["exports","react","html-react-parser"],kr):(ai=typeof globalThis<"u"?globalThis:ai||self,kr((ai.richmd=ai.richmd||{},ai.richmd.react={}),ai.React,ai.parse))})(this,function(ai,kr,sp){"use strict";function AB(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const wA=AB(kr);
|
|
1
|
+
(function(ai,kr){typeof exports=="object"&&typeof module<"u"?kr(exports,require("react"),require("html-react-parser")):typeof define=="function"&&define.amd?define(["exports","react","html-react-parser"],kr):(ai=typeof globalThis<"u"?globalThis:ai||self,kr((ai.richmd=ai.richmd||{},ai.richmd.react={}),ai.React,ai.parse))})(this,function(ai,kr,sp){"use strict";function AB(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const wA=AB(kr);let lr=class{constructor(e,t){this.name=e,this.type=t}};const uB=/^!\[([^\]]*)?\]\(([^\)]+)\)$/,dB=/^@\[([^\]]*)?\]\(([^\)]+)\)$/,pB=/^\[([^\]]*)?\]\(([^\)]+)\)$/;class gB extends lr{constructor(e){super("text","inline"),this.value=e}}class fB extends lr{constructor(e){super("html","inline"),this.value=e}}class _B extends lr{constructor(e){super("htmlcomment","inline"),this.value=e}}class mB extends lr{constructor(e){super("em","inline"),this.value=e}}class hB extends lr{constructor(e){super("italic","inline"),this.value=e}}class bB extends lr{constructor(e){super("emitalic","inline"),this.value=e}}class yB extends lr{constructor(e){super("strikethrough","inline"),this.value=e}}class vB extends lr{constructor(e){super("code","inline"),this.value=e}}class EB extends lr{constructor(e){const t=e.match(uB);super("image","inline"),t?(this.alt=t[1]||"",this.src=t[2]||""):(this.alt="",this.src="")}}let SB=class extends lr{constructor(r){const e=r.match(dB);super("video","inline"),e?this.src=e[2]||"":this.src=""}};class wB extends lr{constructor(e){const t=e.match(pB);super("link","inline"),t?(this.title=t[1]||"",this.href=t[2]||""):(this.title="",this.href="")}}class CB extends lr{constructor(e){super("katex","inline"),this.value=e}}class TB extends lr{constructor(e){super("emoji","inline"),this.value=e}}const Ar={Text:gB,Html:fB,HtmlComment:_B,Em:mB,Italic:hB,EmItalic:bB,Strikethrough:yB,InlineCode:vB,Image:EB,Video:SB,Link:wB,InlineKatex:CB,Emoji:TB},NB=/^\s*$/,kB=r=>r.length===0||NB.test(r),Zl={isEmpty:kB},La=0,op=1,CA=2,TA=3,lp=4,cp=5,Ap=6,up=7,Zo=8,Jl=9,po=10,go=11,Jo=12,dp=13,pp=14,hs=r=>{const e=[];let t="",a=La,n=!1;const i=[];for(let s=0;s<r.length;s+=1){const o=r[s];if(n===!0){t+=o,n=!1;continue}switch(o){case"*":if(r[s+1]==="*"){s+=1,r[s+1]==="*"?(s+=1,a===TA?(e.push(new Ar.EmItalic(t)),a=La):(e.push(new Ar.Text(t)),a=TA),t=""):(a===CA?(e.push(new Ar.Em(t)),a=La):(e.push(new Ar.Text(t)),a=CA),t="");continue}else if(a===TA){e.push(new Ar.EmItalic(t)),a=CA,t="";continue}a===op?(e.push(new Ar.Italic(t)),a=La,t=""):(e.push(new Ar.Text(t)),a=op,t="");continue;case"_":if(a===Jo||a===Zo||a===Jl||a===dp){t+=o;continue}if(r[s+1]==="_"){s+=1,r[s+1]==="_"?(s+=1,a===Ap?(e.push(new Ar.EmItalic(t)),a=La):(e.push(new Ar.Text(t)),a=Ap),t=""):(a===cp?(e.push(new Ar.Em(t)),a=La):(e.push(new Ar.Text(t)),a=cp),t="");continue}a===lp?(e.push(new Ar.Italic(t)),a=La):(e.push(new Ar.Text(t)),a=lp),t="";continue;case"~":if(a===Jo||a===Zo||a===Jl){t+=o;continue}if(r[s+1]==="~"){s+=1,a===up?(e.push(new Ar.Strikethrough(t)),a=La):(e.push(new Ar.Text(t)),a=up),t="";continue}t+=o;continue;case"`":a===po?(e.push(new Ar.InlineCode(t)),a=La):(e.push(new Ar.Text(t)),a=po),t="";continue;case"$":a===go?(e.push(new Ar.InlineKatex(t)),a=La):(e.push(new Ar.Text(t)),a=go),t="";continue;case"<":{Zl.isEmpty(t)||(i.length===0?(e.push(new Ar.Text(t)),a=pp):i[i.length-1]+=t,t="");let c=o;if(c!=="<"){do t+=c,c=r[s+=1];while(c!==">");t+=c}else t+=c;if(t[1]==="/"){const A=i.pop()+t;e.push(new Ar.Html(A)),a=La}else t[1]==="!"?(e.push(new Ar.HtmlComment(t)),a=La):t==="<"?(e.push(new Ar.Text(t)),a=pp):i.push(t);t="";continue}case"!":if(a===po||a===go){t+=o;continue}if(!Zl.isEmpty(t)){t+=o;continue}if(r[s+1]==="["){t="",a=Zo,t=o;continue}case"@":if(a===po||a===go){t+=o;continue}if(!Zl.isEmpty(t)){t+=o;break}if(r[s+1]==="["){t="",a=Jo,t=o;continue}case"[":if(a!==Zo&&a!==Jo){e.push(new Ar.Text(t)),a=Jl,t=o;continue}else{t+=o;continue}case")":if(t+=o,a===Zo){e.push(new Ar.Image(t)),a=La,t="";continue}else if(a===Jo){e.push(new Ar.Video(t)),a=La,t="";continue}else if(a===Jl){e.push(new Ar.Link(t)),a=La,t="";continue}else continue;case"\\":if(a!==po&&a!==go){n=!0;continue}break;case":":if(a===po||a===go||a===Jo||a===Zo||a===Jl||a===pp){t+=o;continue}const l=/^[a-z0-9_]$/;if(r[s+1]&&l.test(r[s+1])){a=dp,t="";continue}else if(a===dp&&r[s-1]&&l.test(r[s-1])){e.push(new Ar.Emoji(t)),a=La,t="";break}default:t+=o;break}}if(!Zl.isEmpty(t)){const s=e[e.length-1];if(!s||a===La)e.push(new Ar.Text(t));else{let o="";switch(a){case op:o="*";break;case CA:o="**";break;case TA:o="***";break;case lp:o="_";break;case cp:o="__";break;case Ap:o="___";break;case up:o="~~";break;case po:o="`";break;case go:o="$";break}s.value+=`${o}${t}`}}return e};class OB extends lr{constructor(e){super("mode","block"),this.mode=e}}class IB extends lr{constructor(e){super("paragraph","block"),this.values=hs(e)}}class RB extends lr{constructor(){super("horizontal","block")}}class BB extends lr{constructor(){super("br","block")}}class xB extends lr{constructor(e,t,a){super("code","block"),this.syntax=t,this.file=a,this.values=[new Ar.Text(e)]}}class DB extends lr{constructor(e){super("katex","block"),this.values=[new Ar.Text(e)]}}class LB extends lr{constructor(e,t){super("color","block"),this.style=t,this.values=hs(e)}}class MB extends lr{constructor(e,t){super("blockquote","block"),this.level=t,this.values=hs(e)}}class FB extends lr{constructor(e,t){if(t===0||t>6)throw new Error("Invalid heading: heading support only between H1 and H6");super("heading","block"),this.level=t,this.values=hs(e)}}class PB extends lr{constructor(e,t){super("list","block"),this.level=t,this.values=hs(e)}}class UB extends lr{constructor(e,t,a){super("orderedlist","block"),this.level=a,this.order=t,this.values=hs(e)}}class QB extends lr{constructor(e,t,a){super("checklist","block"),this.level=a,this.checked=t,this.values=hs(e)}}class zB extends lr{constructor(e){super("table","block"),this.headings=[],this.aligns=[],this.rows=[];const[t,a,...n]=e.map(i=>i.replace(/^\||\|$/g,"").split("|"));t!==void 0&&(this.headings=t.map(i=>i.trim())),a!==void 0&&(this.aligns=a.map(i=>{const s=i.trim();let o="left";return s[s.length-1]===":"&&(o=s[0]===":"?"center":"right"),o})),n!==void 0&&(this.rows=n.map(i=>i.map(s=>hs(s.trim()))))}}class HB extends lr{constructor(e){super("startDetails","block"),this.summary=e}}class GB extends lr{constructor(){super("endDetails","block")}}class qB extends lr{constructor(e,t){super("startTag","block"),this.style=t,this.tag=e}}class VB extends lr{constructor(e){super("endTag","block"),this.tag=e}}class YB extends lr{constructor(e,t,a){super("startSlide","block"),this.layout=e,this.mode=t,this.theme=a}}class jB extends lr{constructor(){super("endSlide","block")}}const Lr={Paragraph:IB,Horizontal:RB,Code:xB,Katex:DB,ColorBlock:LB,Blockquote:MB,Heading:FB,List:PB,CheckList:QB,OrderedList:UB,Table:zB,Br:BB,StartDetails:HB,EndDetails:GB,StartTag:qB,EndTag:VB,StartSlide:YB,EndSlide:jB,Mode:OB},iE=/^(#{1,})\s(.+)$/,sE=/^(\s*)?(?:\-|\*)\s(.+)$/,oE=/^(\s*)?([0-9]+)\.\s(.+)$/,KB=/^[\*\-_\s]+$/,WB=/^[`~]{3}(.*)|[`~]{3}(.*)\b[\l]+\b\:\b[\u\l]+\b$/,lE=/^(>{1,})\s?(.+)$/,cE=/(?:\s*)?\|(.+)\|(?:\s*)$/,$B=/^[\$]{2}(.*)$/,XB=/^[\=]{3}(.*)|[\=]{3}(.*)\b[\l]+\b$/,ZB=/^\<\>\b[a-z]+\b|\:\:\b[a-z]+\b\.\b[a-z]+\b|\<\>\.\b[a-z]+\b$/,JB=/^\<\>$/,ex=/^\=\>(\b[\w_\.\/]+\b|[\u3040-\u309F\u30A0-\u30FF\u3400-\u9FFF])+$/,tx=/^\=\>$/,rx=/^\|use\sslide\|$/,ax=/^\|\|---\|\|(title|content)(?:\.[A-Za-z]+)?$/,nx=/^\|\|<--\|\|(title|content)(?:\.[A-Za-z]+)?$/,ix=/^\|\|-->\|\|(title|content)(?:\.[A-Za-z]+)?$/,sx=/^\|{2}\-{3}\|{2}$/,NA=/^\bhttps?:\/\/(?:www\.)?[a-zA-Z0-9\-._~:/?#[@\]!$&'()*+,;=%]+\b$/,Kr=0,gp=1,AE=2,uE=3,el=4,dE=0,ec=1;let tl;const ox=(r,e=!0)=>{const t=[];let a="",n=Kr,i=dE,s=[],o,l="",c="",A="default",d="";const u=m=>{s.length>0&&(t.push(new Lr.Table(s)),s=[]),Zl.isEmpty(m)||t.push(new Lr.Paragraph(m))},g=r.replace(/\r/g,"").split(`
|
|
2
2
|
`);for(let m=0;m<g.length;m++){let _=g[m];if(t.length===0&&i===dE&&(rx.test(_)&&e?(t.push(new Lr.Mode("slide")),i=ec,n=el):t.push(new Lr.Mode("default"))),i===ec&&n===el&&ax.test(_)){const E=_.replace(/\|{2}\-{3}\|{2}/,"").trim().split(".");t.push(new Lr.StartSlide("center",E[0],E[1]??"default")),n=Kr,a=""}else if(i===ec&&n===el&&nx.test(_)){const E=_.replace(/\|{2}\<\-{2}\|{2}/,"").trim().split(".");t.push(new Lr.StartSlide("left",E[0],E[1]??"default")),n=Kr,a=""}else if(i===ec&&n===el&&ix.test(_)){const E=_.replace(/\|{2}\-{2}\>\|{2}/,"").trim().split(".");t.push(new Lr.StartSlide("right",E[0],E[1]??"default")),n=Kr,a=""}else if(i===ec&&n===Kr&&sx.test(_))u(a),t.push(new Lr.EndSlide),n=el,a="";else if(n===Kr&&ex.test(_)){u(a);const E=_.replace(/\=\>/,"").trim();t.push(new Lr.StartDetails(E)),a=""}else if(n===Kr&&tx.test(_))u(a),t.push(new Lr.EndDetails),a="";else if(n===Kr&&ZB.test(_)){u(a);const E=_.replace(/\<\>/,"").trim();E?tl=E.split("."):tl=["span",""],t.push(new Lr.StartTag(tl[0]??"span",tl[1])),a=""}else if(n===Kr&&JB.test(_))u(a),t.push(new Lr.EndTag(tl?tl[0]:"span")),a="";else if(WB.test(_))if(n===gp)t.push(new Lr.Code(a.trim(),l,c)),l="",c="",n=Kr,a="";else if(n===Kr){u(a);const E=_.replace(/\`\`\`/,"").trim().split(":");l=E[0],c=E[1],n=gp,a=""}else a+=_!==""?`${_}
|
|
3
3
|
`:`
|
|
4
4
|
`;else if($B.test(_))n===AE?(t.push(new Lr.Katex(a.trim())),n=Kr,a=""):n===Kr?(u(a),n=AE,a=""):a+=_!==""?`${_}
|
|
@@ -394,7 +394,7 @@ ${a}
|
|
|
394
394
|
content: "" !important;
|
|
395
395
|
display: none !important;
|
|
396
396
|
}`,Jpe=function(r){ege(r,"."+Nh+Xpe+hN+`
|
|
397
|
-
.`+kh+Zpe+hN)},ege=function(r,e){var t=r.ownerDocument;if(t){var a=t.createElement("style");a.textContent=e,r.appendChild(a)}},bN=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),tge=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Ih(e)||ige(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return on(this,void 0,void 0,function(){var t,a,n,i,s=this;return Ga(this,function(o){switch(o.label){case 0:return t=bN.isSameOrigin(e),a=!Oh(e)&&this._options.useCORS===!0&&Fa.SUPPORT_CORS_IMAGES&&!t,n=!Oh(e)&&!t&&!Ih(e)&&typeof this._options.proxy=="string"&&Fa.SUPPORT_CORS_XHR&&!a,!t&&this._options.allowTaint===!1&&!Oh(e)&&!Ih(e)&&!n&&!a?[2]:(i=e,n?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var A=new Image;A.onload=function(){return l(A)},A.onerror=c,(sge(i)||a)&&(A.crossOrigin="anonymous"),A.src=i,A.complete===!0&&setTimeout(function(){return l(A)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,a=this._options.proxy;if(!a)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(i,s){var o=Fa.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")i(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(u){return s(u)},!1),d.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=a.indexOf("?")>-1?"&":"?";if(l.open("GET",""+a+c+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),t._options.imageTimeout){var A=t._options.imageTimeout;l.timeout=A,l.ontimeout=function(){return s("Timed out ("+A+"ms) proxying "+n)}}l.send()})},r}(),rge=/^data:image\/svg\+xml/i,age=/^data:image\/.*;base64,/i,nge=/^data:image\/.*/i,ige=function(r){return Fa.SUPPORT_SVG_DRAWING||!oge(r)},Oh=function(r){return nge.test(r)},sge=function(r){return age.test(r)},Ih=function(r){return r.substr(0,4)==="blob"},oge=function(r){return r.substr(-3).toLowerCase()==="svg"||rge.test(r)},ct=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),_l=function(r,e,t){return new ct(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},Fu=function(){function r(e,t,a,n){this.type=1,this.start=e,this.startControl=t,this.endControl=a,this.end=n}return r.prototype.subdivide=function(e,t){var a=_l(this.start,this.startControl,e),n=_l(this.startControl,this.endControl,e),i=_l(this.endControl,this.end,e),s=_l(a,n,e),o=_l(n,i,e),l=_l(s,o,e);return t?new r(this.start,a,s,l):new r(l,o,i,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Hn=function(r){return r.type===1},lge=function(){function r(e){var t=e.styles,a=e.bounds,n=yc(t.borderTopLeftRadius,a.width,a.height),i=n[0],s=n[1],o=yc(t.borderTopRightRadius,a.width,a.height),l=o[0],c=o[1],A=yc(t.borderBottomRightRadius,a.width,a.height),d=A[0],u=A[1],g=yc(t.borderBottomLeftRadius,a.width,a.height),m=g[0],_=g[1],E=[];E.push((i+l)/a.width),E.push((m+d)/a.width),E.push((s+_)/a.height),E.push((c+u)/a.height);var y=Math.max.apply(Math,E);y>1&&(i/=y,s/=y,l/=y,c/=y,d/=y,u/=y,m/=y,_/=y);var w=a.width-l,N=a.height-u,R=a.width-d,k=a.height-_,h=t.borderTopWidth,O=t.borderRightWidth,L=t.borderBottomWidth,Y=t.borderLeftWidth,K=Ir(t.paddingTop,e.bounds.width),I=Ir(t.paddingRight,e.bounds.width),M=Ir(t.paddingBottom,e.bounds.width),V=Ir(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?Ur(a.left+Y/3,a.top+h/3,i-Y/3,s-h/3,fr.TOP_LEFT):new ct(a.left+Y/3,a.top+h/3),this.topRightBorderDoubleOuterBox=i>0||s>0?Ur(a.left+w,a.top+h/3,l-O/3,c-h/3,fr.TOP_RIGHT):new ct(a.left+a.width-O/3,a.top+h/3),this.bottomRightBorderDoubleOuterBox=d>0||u>0?Ur(a.left+R,a.top+N,d-O/3,u-L/3,fr.BOTTOM_RIGHT):new ct(a.left+a.width-O/3,a.top+a.height-L/3),this.bottomLeftBorderDoubleOuterBox=m>0||_>0?Ur(a.left+Y/3,a.top+k,m-Y/3,_-L/3,fr.BOTTOM_LEFT):new ct(a.left+Y/3,a.top+a.height-L/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?Ur(a.left+Y*2/3,a.top+h*2/3,i-Y*2/3,s-h*2/3,fr.TOP_LEFT):new ct(a.left+Y*2/3,a.top+h*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?Ur(a.left+w,a.top+h*2/3,l-O*2/3,c-h*2/3,fr.TOP_RIGHT):new ct(a.left+a.width-O*2/3,a.top+h*2/3),this.bottomRightBorderDoubleInnerBox=d>0||u>0?Ur(a.left+R,a.top+N,d-O*2/3,u-L*2/3,fr.BOTTOM_RIGHT):new ct(a.left+a.width-O*2/3,a.top+a.height-L*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||_>0?Ur(a.left+Y*2/3,a.top+k,m-Y*2/3,_-L*2/3,fr.BOTTOM_LEFT):new ct(a.left+Y*2/3,a.top+a.height-L*2/3),this.topLeftBorderStroke=i>0||s>0?Ur(a.left+Y/2,a.top+h/2,i-Y/2,s-h/2,fr.TOP_LEFT):new ct(a.left+Y/2,a.top+h/2),this.topRightBorderStroke=i>0||s>0?Ur(a.left+w,a.top+h/2,l-O/2,c-h/2,fr.TOP_RIGHT):new ct(a.left+a.width-O/2,a.top+h/2),this.bottomRightBorderStroke=d>0||u>0?Ur(a.left+R,a.top+N,d-O/2,u-L/2,fr.BOTTOM_RIGHT):new ct(a.left+a.width-O/2,a.top+a.height-L/2),this.bottomLeftBorderStroke=m>0||_>0?Ur(a.left+Y/2,a.top+k,m-Y/2,_-L/2,fr.BOTTOM_LEFT):new ct(a.left+Y/2,a.top+a.height-L/2),this.topLeftBorderBox=i>0||s>0?Ur(a.left,a.top,i,s,fr.TOP_LEFT):new ct(a.left,a.top),this.topRightBorderBox=l>0||c>0?Ur(a.left+w,a.top,l,c,fr.TOP_RIGHT):new ct(a.left+a.width,a.top),this.bottomRightBorderBox=d>0||u>0?Ur(a.left+R,a.top+N,d,u,fr.BOTTOM_RIGHT):new ct(a.left+a.width,a.top+a.height),this.bottomLeftBorderBox=m>0||_>0?Ur(a.left,a.top+k,m,_,fr.BOTTOM_LEFT):new ct(a.left,a.top+a.height),this.topLeftPaddingBox=i>0||s>0?Ur(a.left+Y,a.top+h,Math.max(0,i-Y),Math.max(0,s-h),fr.TOP_LEFT):new ct(a.left+Y,a.top+h),this.topRightPaddingBox=l>0||c>0?Ur(a.left+Math.min(w,a.width-O),a.top+h,w>a.width+O?0:Math.max(0,l-O),Math.max(0,c-h),fr.TOP_RIGHT):new ct(a.left+a.width-O,a.top+h),this.bottomRightPaddingBox=d>0||u>0?Ur(a.left+Math.min(R,a.width-Y),a.top+Math.min(N,a.height-L),Math.max(0,d-O),Math.max(0,u-L),fr.BOTTOM_RIGHT):new ct(a.left+a.width-O,a.top+a.height-L),this.bottomLeftPaddingBox=m>0||_>0?Ur(a.left+Y,a.top+Math.min(k,a.height-L),Math.max(0,m-Y),Math.max(0,_-L),fr.BOTTOM_LEFT):new ct(a.left+Y,a.top+a.height-L),this.topLeftContentBox=i>0||s>0?Ur(a.left+Y+V,a.top+h+K,Math.max(0,i-(Y+V)),Math.max(0,s-(h+K)),fr.TOP_LEFT):new ct(a.left+Y+V,a.top+h+K),this.topRightContentBox=l>0||c>0?Ur(a.left+Math.min(w,a.width+Y+V),a.top+h+K,w>a.width+Y+V?0:l-Y+V,c-(h+K),fr.TOP_RIGHT):new ct(a.left+a.width-(O+I),a.top+h+K),this.bottomRightContentBox=d>0||u>0?Ur(a.left+Math.min(R,a.width-(Y+V)),a.top+Math.min(N,a.height+h+K),Math.max(0,d-(O+I)),u-(L+M),fr.BOTTOM_RIGHT):new ct(a.left+a.width-(O+I),a.top+a.height-(L+M)),this.bottomLeftContentBox=m>0||_>0?Ur(a.left+Y+V,a.top+k,Math.max(0,m-(Y+V)),_-(L+M),fr.BOTTOM_LEFT):new ct(a.left+Y+V,a.top+a.height-(L+M))}return r}(),fr;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(fr||(fr={}));var Ur=function(r,e,t,a,n){var i=4*((Math.sqrt(2)-1)/3),s=t*i,o=a*i,l=r+t,c=e+a;switch(n){case fr.TOP_LEFT:return new Fu(new ct(r,c),new ct(r,c-o),new ct(l-s,e),new ct(l,e));case fr.TOP_RIGHT:return new Fu(new ct(r,e),new ct(r+s,e),new ct(l,c-o),new ct(l,c));case fr.BOTTOM_RIGHT:return new Fu(new ct(l,e),new ct(l,e+o),new ct(r+s,c),new ct(r,c));case fr.BOTTOM_LEFT:default:return new Fu(new ct(l,c),new ct(l-s,c),new ct(r,e+o),new ct(r,e))}},Pu=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},cge=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Uu=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},Age=function(){function r(e,t,a){this.offsetX=e,this.offsetY=t,this.matrix=a,this.type=0,this.target=6}return r}(),Qu=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),uge=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),dge=function(r){return r.type===0},yN=function(r){return r.type===1},pge=function(r){return r.type===2},vN=function(r,e){return r.length===e.length?r.some(function(t,a){return t===e[a]}):!1},gge=function(r,e,t,a,n){return r.map(function(i,s){switch(s){case 0:return i.add(e,t);case 1:return i.add(e+a,t);case 2:return i.add(e+a,t+n);case 3:return i.add(e,t+n)}return i})},EN=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),SN=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new lge(this.container),this.container.styles.opacity<1&&this.effects.push(new uge(this.container.styles.opacity)),this.container.styles.transform!==null){var a=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Age(a,n,i))}if(this.container.styles.overflowX!==0){var s=Pu(this.curves),o=Uu(this.curves);vN(s,o)?this.effects.push(new Qu(s,6)):(this.effects.push(new Qu(s,2)),this.effects.push(new Qu(o,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,a=this.parent,n=this.effects.slice(0);a;){var i=a.effects.filter(function(l){return!yN(l)});if(t||a.container.styles.position!==0||!a.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(a.container.styles.position)===-1,a.container.styles.overflowX!==0){var s=Pu(a.curves),o=Uu(a.curves);vN(s,o)||n.unshift(new Qu(o,6))}}else n.unshift.apply(n,i);a=a.parent}return n.filter(function(l){return Ta(l.target,e)})},r}(),Rh=function(r,e,t,a){r.container.elements.forEach(function(n){var i=Ta(n.flags,4),s=Ta(n.flags,2),o=new SN(n,r);Ta(n.styles.display,2048)&&a.push(o);var l=Ta(n.flags,8)?[]:a;if(i||s){var c=i||n.styles.isPositioned()?t:e,A=new EN(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;c.negativeZIndex.some(function(m,_){return d>m.element.container.styles.zIndex.order?(u=_,!1):u>0}),c.negativeZIndex.splice(u,0,A)}else if(d>0){var g=0;c.positiveZIndex.some(function(m,_){return d>=m.element.container.styles.zIndex.order?(g=_+1,!1):g>0}),c.positiveZIndex.splice(g,0,A)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else n.styles.isFloating()?c.nonPositionedFloats.push(A):c.nonPositionedInlineLevel.push(A);Rh(o,A,i?A:t,l)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Rh(o,e,t,l);Ta(n.flags,8)&&wN(n,l)})},wN=function(r,e){for(var t=r instanceof yh?r.start:1,a=r instanceof yh?r.reversed:!1,n=0;n<e.length;n++){var i=e[n];i.container instanceof W2&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=Tc(t,i.container.styles.listStyleType,!0),t+=a?-1:1}},fge=function(r){var e=new SN(r,null),t=new EN(e),a=[];return Rh(e,t,t,a),wN(e.container,a),t},CN=function(r,e){switch(e){case 0:return Gn(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return Gn(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return Gn(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return Gn(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},_ge=function(r,e){switch(e){case 0:return Gn(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return Gn(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return Gn(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return Gn(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},mge=function(r,e){switch(e){case 0:return Gn(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return Gn(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return Gn(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return Gn(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},hge=function(r,e){switch(e){case 0:return zu(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return zu(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return zu(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return zu(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},zu=function(r,e){var t=[];return Hn(r)?t.push(r.subdivide(.5,!1)):t.push(r),Hn(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Gn=function(r,e,t,a){var n=[];return Hn(r)?n.push(r.subdivide(.5,!1)):n.push(r),Hn(t)?n.push(t.subdivide(.5,!0)):n.push(t),Hn(a)?n.push(a.subdivide(.5,!0).reverse()):n.push(a),Hn(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},TN=function(r){var e=r.bounds,t=r.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Hu=function(r){var e=r.styles,t=r.bounds,a=Ir(e.paddingLeft,t.width),n=Ir(e.paddingRight,t.width),i=Ir(e.paddingTop,t.width),s=Ir(e.paddingBottom,t.width);return t.add(a+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+a+n),-(e.borderTopWidth+e.borderBottomWidth+i+s))},bge=function(r,e){return r===0?e.bounds:r===2?Hu(e):TN(e)},yge=function(r,e){return r===0?e.bounds:r===2?Hu(e):TN(e)},Bh=function(r,e,t){var a=bge(hl(r.styles.backgroundOrigin,e),r),n=yge(hl(r.styles.backgroundClip,e),r),i=vge(hl(r.styles.backgroundSize,e),t,a),s=i[0],o=i[1],l=yc(hl(r.styles.backgroundPosition,e),a.width-s,a.height-o),c=Ege(hl(r.styles.backgroundRepeat,e),l,i,a,n),A=Math.round(a.left+l[0]),d=Math.round(a.top+l[1]);return[c,A,d,s,o]},ml=function(r){return Er(r)&&r.value===dl.AUTO},Gu=function(r){return typeof r=="number"},vge=function(r,e,t){var a=e[0],n=e[1],i=e[2],s=r[0],o=r[1];if(!s)return[0,0];if(_a(s)&&o&&_a(o))return[Ir(s,t.width),Ir(o,t.height)];var l=Gu(i);if(Er(s)&&(s.value===dl.CONTAIN||s.value===dl.COVER)){if(Gu(i)){var c=t.width/t.height;return c<i!=(s.value===dl.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var A=Gu(a),d=Gu(n),u=A||d;if(ml(s)&&(!o||ml(o))){if(A&&d)return[a,n];if(!l&&!u)return[t.width,t.height];if(u&&l){var g=A?a:n*i,m=d?n:a/i;return[g,m]}var _=A?a:t.width,E=d?n:t.height;return[_,E]}if(l){var y=0,w=0;return _a(s)?y=Ir(s,t.width):_a(o)&&(w=Ir(o,t.height)),ml(s)?y=w*i:(!o||ml(o))&&(w=y/i),[y,w]}var N=null,R=null;if(_a(s)?N=Ir(s,t.width):o&&_a(o)&&(R=Ir(o,t.height)),N!==null&&(!o||ml(o))&&(R=A&&d?N/a*n:t.height),R!==null&&ml(s)&&(N=A&&d?R/n*a:t.width),N!==null&&R!==null)return[N,R];throw new Error("Unable to calculate background-size for element")},hl=function(r,e){var t=r[e];return typeof t>"u"?r[0]:t},Ege=function(r,e,t,a,n){var i=e[0],s=e[1],o=t[0],l=t[1];switch(r){case 2:return[new ct(Math.round(a.left),Math.round(a.top+s)),new ct(Math.round(a.left+a.width),Math.round(a.top+s)),new ct(Math.round(a.left+a.width),Math.round(l+a.top+s)),new ct(Math.round(a.left),Math.round(l+a.top+s))];case 3:return[new ct(Math.round(a.left+i),Math.round(a.top)),new ct(Math.round(a.left+i+o),Math.round(a.top)),new ct(Math.round(a.left+i+o),Math.round(a.height+a.top)),new ct(Math.round(a.left+i),Math.round(a.height+a.top))];case 1:return[new ct(Math.round(a.left+i),Math.round(a.top+s)),new ct(Math.round(a.left+i+o),Math.round(a.top+s)),new ct(Math.round(a.left+i+o),Math.round(a.top+s+l)),new ct(Math.round(a.left+i),Math.round(a.top+s+l))];default:return[new ct(Math.round(n.left),Math.round(n.top)),new ct(Math.round(n.left+n.width),Math.round(n.top)),new ct(Math.round(n.left+n.width),Math.round(n.height+n.top)),new ct(Math.round(n.left),Math.round(n.height+n.top))]}},Sge="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",NN="Hidden Text",wge=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var a=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;a.style.visibility="hidden",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.style.whiteSpace="nowrap",s.appendChild(a),n.src=Sge,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(NN)),a.appendChild(i),a.appendChild(n);var o=n.offsetTop-i.offsetTop+2;a.removeChild(i),a.appendChild(this._document.createTextNode(NN)),a.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-a.offsetTop+2;return s.removeChild(a),{baseline:o,middle:l}},r.prototype.getMetrics=function(e,t){var a=e+" "+t;return typeof this._data[a]>"u"&&(this._data[a]=this.parseMetrics(e,t)),this._data[a]},r}(),kN=function(){function r(e,t){this.context=e,this.options=t}return r}(),Cge=1e4,Tge=function(r){oi(e,r);function e(t,a){var n=r.call(this,t,a)||this;return n._activeEffects=[],n.canvas=a.canvas?a.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),a.canvas||(n.canvas.width=Math.floor(a.width*a.scale),n.canvas.height=Math.floor(a.height*a.scale),n.canvas.style.width=a.width+"px",n.canvas.style.height=a.height+"px"),n.fontMetrics=new wge(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-a.x,-a.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+a.width+"x"+a.height+") with scale "+a.scale),n}return e.prototype.applyEffects=function(t){for(var a=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return a.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),pge(t)&&(this.ctx.globalAlpha=t.opacity),dge(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),yN(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return on(this,void 0,void 0,function(){var a;return Ga(this,function(n){switch(n.label){case 0:return a=t.element.container.styles,a.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return on(this,void 0,void 0,function(){return Ga(this,function(a){switch(a.label){case 0:if(Ta(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return a.sent(),[4,this.renderNodeContent(t)];case 2:a.sent(),a.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,a,n){var i=this;if(a===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var s=bh(t.text);s.reduce(function(o,l){return i.ctx.fillText(l,o,t.bounds.top+n),o+i.ctx.measureText(l).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var a=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=Rge(t.fontFamily).join(", "),i=bc(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,a,t.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(t,a){return on(this,void 0,void 0,function(){var n,i,s,o,l,c,A,d,u=this;return Ga(this,function(g){return n=this.createFontStyle(a),i=n[0],s=n[1],o=n[2],this.ctx.font=i,this.ctx.direction=a.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,A=l.middle,d=a.paintOrder,t.textBounds.forEach(function(m){d.forEach(function(_){switch(_){case 0:u.ctx.fillStyle=ka(a.color),u.renderTextWithLetterSpacing(m,a.letterSpacing,c);var E=a.textShadow;E.length&&m.text.trim().length&&(E.slice(0).reverse().forEach(function(y){u.ctx.shadowColor=ka(y.color),u.ctx.shadowOffsetX=y.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=y.offsetY.number*u.options.scale,u.ctx.shadowBlur=y.blur.number,u.renderTextWithLetterSpacing(m,a.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),a.textDecorationLine.length&&(u.ctx.fillStyle=ka(a.textDecorationColor||a.color),a.textDecorationLine.forEach(function(y){switch(y){case 1:u.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+c),m.bounds.width,1);break;case 2:u.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:u.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+A),m.bounds.width,1);break}}));break;case 1:a.webkitTextStrokeWidth&&m.text.trim().length&&(u.ctx.strokeStyle=ka(a.webkitTextStrokeColor),u.ctx.lineWidth=a.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,a,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Hu(t),s=Uu(a);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return on(this,void 0,void 0,function(){var a,n,i,s,o,l,w,w,c,A,d,u,R,g,m,k,_,E,y,w,N,R,k;return Ga(this,function(h){switch(h.label){case 0:this.applyEffects(t.getEffects(4)),a=t.container,n=t.curves,i=a.styles,s=0,o=a.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,i)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(a instanceof Y2))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(a.src)];case 6:return w=h.sent(),this.renderReplacedElement(a,n,w),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+a.src),[3,8];case 8:if(a instanceof j2&&this.renderReplacedElement(a,n,a.canvas),!(a instanceof K2))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(a.svg)];case 10:return w=h.sent(),this.renderReplacedElement(a,n,w),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+a.svg.substring(0,255)),[3,12];case 12:return a instanceof J2&&a.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:a.backgroundColor,x:0,y:0,width:a.width,height:a.height}),[4,c.render(a.tree)]):[3,14];case 13:A=h.sent(),a.width&&a.height&&this.ctx.drawImage(A,0,0,a.width,a.height,a.bounds.left,a.bounds.top,a.bounds.width,a.bounds.height),h.label=14;case 14:if(a instanceof vh&&(d=Math.min(a.bounds.width,a.bounds.height),a.type===Ru?a.checked&&(this.ctx.save(),this.path([new ct(a.bounds.left+d*.39363,a.bounds.top+d*.79),new ct(a.bounds.left+d*.16,a.bounds.top+d*.5549),new ct(a.bounds.left+d*.27347,a.bounds.top+d*.44071),new ct(a.bounds.left+d*.39694,a.bounds.top+d*.5649),new ct(a.bounds.left+d*.72983,a.bounds.top+d*.23),new ct(a.bounds.left+d*.84,a.bounds.top+d*.34085),new ct(a.bounds.left+d*.39363,a.bounds.top+d*.79)]),this.ctx.fillStyle=ka($2),this.ctx.fill(),this.ctx.restore()):a.type===Bu&&a.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(a.bounds.left+d/2,a.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=ka($2),this.ctx.fill(),this.ctx.restore())),Nge(a)&&a.value.length){switch(u=this.createFontStyle(i),R=u[0],g=u[1],m=this.fontMetrics.getMetrics(R,g).baseline,this.ctx.font=R,this.ctx.fillStyle=ka(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Oge(a.styles.textAlign),k=Hu(a),_=0,a.styles.textAlign){case 1:_+=k.width/2;break;case 2:_+=k.width;break}E=k.add(_,0,0,-k.height/2+1),this.ctx.save(),this.path([new ct(k.left,k.top),new ct(k.left+k.width,k.top),new ct(k.left+k.width,k.top+k.height),new ct(k.left,k.top+k.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new wc(a.value,E),i.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ta(a.styles.display,2048))return[3,20];if(a.styles.listStyleImage===null)return[3,19];if(y=a.styles.listStyleImage,y.type!==0)return[3,18];w=void 0,N=y.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(N)];case 16:return w=h.sent(),this.ctx.drawImage(w,a.bounds.left-(w.width+10),a.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+N),[3,18];case 18:return[3,20];case 19:t.listValue&&a.styles.listStyleType!==-1&&(R=this.createFontStyle(i)[0],this.ctx.font=R,this.ctx.fillStyle=ka(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",k=new Zi(a.bounds.left,a.bounds.top+Ir(a.styles.paddingTop,a.bounds.width),a.bounds.width,N2(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new wc(t.listValue,k),i.letterSpacing,N2(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return on(this,void 0,void 0,function(){var a,n,y,i,s,y,o,l,y,c,A,y,d,u,y,g,m,y,_,E,y;return Ga(this,function(w){switch(w.label){case 0:if(Ta(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:w.sent(),a=0,n=t.negativeZIndex,w.label=2;case 2:return a<n.length?(y=n[a],[4,this.renderStack(y)]):[3,5];case 3:w.sent(),w.label=4;case 4:return a++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:w.sent(),i=0,s=t.nonInlineLevel,w.label=7;case 7:return i<s.length?(y=s[i],[4,this.renderNode(y)]):[3,10];case 8:w.sent(),w.label=9;case 9:return i++,[3,7];case 10:o=0,l=t.nonPositionedFloats,w.label=11;case 11:return o<l.length?(y=l[o],[4,this.renderStack(y)]):[3,14];case 12:w.sent(),w.label=13;case 13:return o++,[3,11];case 14:c=0,A=t.nonPositionedInlineLevel,w.label=15;case 15:return c<A.length?(y=A[c],[4,this.renderStack(y)]):[3,18];case 16:w.sent(),w.label=17;case 17:return c++,[3,15];case 18:d=0,u=t.inlineLevel,w.label=19;case 19:return d<u.length?(y=u[d],[4,this.renderNode(y)]):[3,22];case 20:w.sent(),w.label=21;case 21:return d++,[3,19];case 22:g=0,m=t.zeroOrAutoZIndexOrTransformedOrOpacity,w.label=23;case 23:return g<m.length?(y=m[g],[4,this.renderStack(y)]):[3,26];case 24:w.sent(),w.label=25;case 25:return g++,[3,23];case 26:_=0,E=t.positiveZIndex,w.label=27;case 27:return _<E.length?(y=E[_],[4,this.renderStack(y)]):[3,30];case 28:w.sent(),w.label=29;case 29:return _++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var a=this;t.forEach(function(n,i){var s=Hn(n)?n.start:n;i===0?a.ctx.moveTo(s.x,s.y):a.ctx.lineTo(s.x,s.y),Hn(n)&&a.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,a,n,i){this.path(t),this.ctx.fillStyle=a,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},e.prototype.resizeImage=function(t,a,n){var i;if(t.width===a&&t.height===n)return t;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=s.createElement("canvas");o.width=Math.max(1,a),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(t,0,0,t.width,t.height,0,0,a,n),o},e.prototype.renderBackgroundImage=function(t){return on(this,void 0,void 0,function(){var a,n,i,s,o,l;return Ga(this,function(c){switch(c.label){case 0:a=t.styles.backgroundImage.length-1,n=function(A){var d,u,g,K,oe,ie,V,Q,L,m,K,oe,ie,V,Q,_,E,y,w,N,R,k,h,O,L,Y,K,I,M,V,Q,ee,oe,ie,re,se,Ae,ye,B,G,j,$;return Ga(this,function(ne){switch(ne.label){case 0:if(A.type!==0)return[3,5];d=void 0,u=A.url,ne.label=1;case 1:return ne.trys.push([1,3,,4]),[4,i.context.cache.match(u)];case 2:return d=ne.sent(),[3,4];case 3:return ne.sent(),i.context.logger.error("Error loading background-image "+u),[3,4];case 4:return d&&(g=Bh(t,a,[d.width,d.height,d.width/d.height]),K=g[0],oe=g[1],ie=g[2],V=g[3],Q=g[4],L=i.ctx.createPattern(i.resizeImage(d,V,Q),"repeat"),i.renderRepeat(K,L,oe,ie)),[3,6];case 5:due(A)?(m=Bh(t,a,[null,null,null]),K=m[0],oe=m[1],ie=m[2],V=m[3],Q=m[4],_=oue(A.angle,V,Q),E=_[0],y=_[1],w=_[2],N=_[3],R=_[4],k=document.createElement("canvas"),k.width=V,k.height=Q,h=k.getContext("2d"),O=h.createLinearGradient(y,N,w,R),_2(A.stops,E).forEach(function(ce){return O.addColorStop(ce.stop,ka(ce.color))}),h.fillStyle=O,h.fillRect(0,0,V,Q),V>0&&Q>0&&(L=i.ctx.createPattern(k,"repeat"),i.renderRepeat(K,L,oe,ie))):pue(A)&&(Y=Bh(t,a,[null,null,null]),K=Y[0],I=Y[1],M=Y[2],V=Y[3],Q=Y[4],ee=A.position.length===0?[nh]:A.position,oe=Ir(ee[0],V),ie=Ir(ee[ee.length-1],Q),re=lue(A,oe,ie,V,Q),se=re[0],Ae=re[1],se>0&&Ae>0&&(ye=i.ctx.createRadialGradient(I+oe,M+ie,0,I+oe,M+ie,se),_2(A.stops,se*2).forEach(function(ce){return ye.addColorStop(ce.stop,ka(ce.color))}),i.path(K),i.ctx.fillStyle=ye,se!==Ae?(B=t.bounds.left+.5*t.bounds.width,G=t.bounds.top+.5*t.bounds.height,j=Ae/se,$=1/j,i.ctx.save(),i.ctx.translate(B,G),i.ctx.transform(1,0,0,j,0,0),i.ctx.translate(-B,-G),i.ctx.fillRect(I,$*(M-G)+G,V,Q*$),i.ctx.restore()):i.ctx.fill())),ne.label=6;case 6:return a--,[2]}})},i=this,s=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,a,n){return on(this,void 0,void 0,function(){return Ga(this,function(i){return this.path(CN(n,a)),this.ctx.fillStyle=ka(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,a,n,i){return on(this,void 0,void 0,function(){var s,o;return Ga(this,function(l){switch(l.label){case 0:return a<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return l.sent(),[2];case 2:return s=_ge(i,n),this.path(s),this.ctx.fillStyle=ka(t),this.ctx.fill(),o=mge(i,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return on(this,void 0,void 0,function(){var a,n,i,s,o,l,c,A,d=this;return Ga(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),a=t.container.styles,n=!Ds(a.backgroundColor)||a.backgroundImage.length,i=[{style:a.borderTopStyle,color:a.borderTopColor,width:a.borderTopWidth},{style:a.borderRightStyle,color:a.borderRightColor,width:a.borderRightWidth},{style:a.borderBottomStyle,color:a.borderBottomColor,width:a.borderBottomWidth},{style:a.borderLeftStyle,color:a.borderLeftColor,width:a.borderLeftWidth}],s=kge(hl(a.backgroundClip,0),t.curves),n||a.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ds(a.backgroundColor)||(this.ctx.fillStyle=ka(a.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),a.boxShadow.slice(0).reverse().forEach(function(g){d.ctx.save();var m=Pu(t.curves),_=g.inset?0:Cge,E=gge(m,-_+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(d.path(m),d.ctx.clip(),d.mask(E)):(d.mask(m),d.ctx.clip(),d.path(E)),d.ctx.shadowOffsetX=g.offsetX.number+_,d.ctx.shadowOffsetY=g.offsetY.number,d.ctx.shadowColor=ka(g.color),d.ctx.shadowBlur=g.blur.number,d.ctx.fillStyle=g.inset?ka(g.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=i,u.label=3;case 3:return l<c.length?(A=c[l],A.style!==0&&!Ds(A.color)&&A.width>0?A.style!==2?[3,5]:[4,this.renderDashedDottedBorder(A.color,A.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return A.style!==3?[3,7]:[4,this.renderDashedDottedBorder(A.color,A.width,o,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return A.style!==4?[3,9]:[4,this.renderDoubleBorder(A.color,A.width,o,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(A.color,o,t.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,a,n,i,s){return on(this,void 0,void 0,function(){var o,l,c,A,d,u,g,m,_,E,y,w,N,R,k,h,k,h;return Ga(this,function(O){return this.ctx.save(),o=hge(i,n),l=CN(i,n),s===2&&(this.path(l),this.ctx.clip()),Hn(l[0])?(c=l[0].start.x,A=l[0].start.y):(c=l[0].x,A=l[0].y),Hn(l[1])?(d=l[1].end.x,u=l[1].end.y):(d=l[1].x,u=l[1].y),n===0||n===2?g=Math.abs(c-d):g=Math.abs(A-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),m=a<3?a*3:a*2,_=a<3?a*2:a,s===3&&(m=a,_=a),E=!0,g<=m*2?E=!1:g<=m*2+_?(y=g/(2*m+_),m*=y,_*=y):(w=Math.floor((g+_)/(m+_)),N=(g-w*m)/(w-1),R=(g-(w+1)*m)/w,_=R<=0||Math.abs(_-N)<Math.abs(_-R)?N:R),E&&(s===3?this.ctx.setLineDash([0,m+_]):this.ctx.setLineDash([m,_])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=a):this.ctx.lineWidth=a*2+1.1,this.ctx.strokeStyle=ka(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Hn(l[0])&&(k=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new ct(k.end.x,k.end.y),new ct(h.start.x,h.start.y)]),this.ctx.stroke()),Hn(l[1])&&(k=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new ct(k.end.x,k.end.y),new ct(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return on(this,void 0,void 0,function(){var a;return Ga(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ka(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),a=fge(t),[4,this.renderStack(a)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(kN),Nge=function(r){return r instanceof Z2||r instanceof X2?!0:r instanceof vh&&r.type!==Bu&&r.type!==Ru},kge=function(r,e){switch(r){case 0:return Pu(e);case 2:return cge(e);case 1:default:return Uu(e)}},Oge=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ige=["-apple-system","system-ui"],Rge=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(e){return Ige.indexOf(e)===-1}):r},Bge=function(r){oi(e,r);function e(t,a){var n=r.call(this,t,a)||this;return n.canvas=a.canvas?a.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=a,n.canvas.width=Math.floor(a.width*a.scale),n.canvas.height=Math.floor(a.height*a.scale),n.canvas.style.width=a.width+"px",n.canvas.style.height=a.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-a.x,-a.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+a.width+"x"+a.height+" at "+a.x+","+a.y+") with scale "+a.scale),n}return e.prototype.render=function(t){return on(this,void 0,void 0,function(){var a,n;return Ga(this,function(i){switch(i.label){case 0:return a=hh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,xge(a)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ka(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(kN),xge=function(r){return new Promise(function(e,t){var a=new Image;a.onload=function(){e(a)},a.onerror=t,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Dge=function(){function r(e){var t=e.id,a=e.enabled;this.id=t,this.enabled=a,this.start=Date.now()}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,XA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,XA([this.id,this.getTime()+"ms"],e))},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,XA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,XA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.instances={},r}(),Lge=function(){function r(e,t){var a;this.windowBounds=t,this.instanceName="#"+r.instanceCount++,this.logger=new Dge({id:this.instanceName,enabled:e.logging}),this.cache=(a=e.cache)!==null&&a!==void 0?a:new tge(this,e)}return r.instanceCount=1,r}(),xh=function(r,e){return e===void 0&&(e={}),Mge(r,e)};typeof window<"u"&&bN.setContext(window);var Mge=function(r,e){return on(void 0,void 0,void 0,function(){var t,a,n,i,s,o,l,c,A,d,u,g,m,_,E,y,w,N,R,k,O,h,O,L,Y,K,I,M,V,Q,ee,oe,ie,re,se,Ae,ye,B,G,j;return Ga(this,function($){switch($.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=r.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(a=t.defaultView,!a)throw new Error("Document is not attached to a Window");return n={allowTaint:(L=e.allowTaint)!==null&&L!==void 0?L:!1,imageTimeout:(Y=e.imageTimeout)!==null&&Y!==void 0?Y:15e3,proxy:e.proxy,useCORS:(K=e.useCORS)!==null&&K!==void 0?K:!1},i=Fm({logging:(I=e.logging)!==null&&I!==void 0?I:!0,cache:e.cache},n),s={windowWidth:(M=e.windowWidth)!==null&&M!==void 0?M:a.innerWidth,windowHeight:(V=e.windowHeight)!==null&&V!==void 0?V:a.innerHeight,scrollX:(Q=e.scrollX)!==null&&Q!==void 0?Q:a.pageXOffset,scrollY:(ee=e.scrollY)!==null&&ee!==void 0?ee:a.pageYOffset},o=new Zi(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Lge(i,o),c=(oe=e.foreignObjectRendering)!==null&&oe!==void 0?oe:!1,A={allowTaint:(ie=e.allowTaint)!==null&&ie!==void 0?ie:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),d=new mN(l,r,A),u=d.clonedReferenceElement,u?[4,d.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=$.sent(),m=Sh(u)||Ppe(u)?gce(u.ownerDocument):ZA(l,u),_=m.width,E=m.height,y=m.left,w=m.top,N=Fge(l,u,e.backgroundColor),R={canvas:e.canvas,backgroundColor:N,scale:(se=(re=e.scale)!==null&&re!==void 0?re:a.devicePixelRatio)!==null&&se!==void 0?se:1,x:((Ae=e.x)!==null&&Ae!==void 0?Ae:0)+y,y:((ye=e.y)!==null&&ye!==void 0?ye:0)+w,width:(B=e.width)!==null&&B!==void 0?B:Math.ceil(_),height:(G=e.height)!==null&&G!==void 0?G:Math.ceil(E)},c?(l.logger.debug("Document cloned, using foreign object rendering"),O=new Bge(l,R),[4,O.render(u)]):[3,3];case 2:return k=$.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+y+","+w+" with size "+_+"x"+E+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=tN(l,u),N===h.styles.backgroundColor&&(h.styles.backgroundColor=es.TRANSPARENT),l.logger.debug("Starting renderer for element at "+R.x+","+R.y+" with size "+R.width+"x"+R.height),O=new Tge(l,R),[4,O.render(h)];case 4:k=$.sent(),$.label=5;case 5:return(!((j=e.removeContainer)!==null&&j!==void 0)||j)&&(mN.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,k]}})})},Fge=function(r,e,t){var a=e.ownerDocument,n=a.documentElement?vc(r,getComputedStyle(a.documentElement).backgroundColor):es.TRANSPARENT,i=a.body?vc(r,getComputedStyle(a.body).backgroundColor):es.TRANSPARENT,s=typeof t=="string"?vc(r,t):t===null?es.TRANSPARENT:4294967295;return e===a.documentElement?Ds(n)?Ds(i)?s:i:n:s};const Pge=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"}));function Ar(r){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(r)}var Va=Uint8Array,Rn=Uint16Array,Dh=Int32Array,qu=new Va([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]),Vu=new Va([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]),Lh=new Va([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ON=function(r,e){for(var t=new Rn(31),a=0;a<31;++a)t[a]=e+=1<<r[a-1];for(var n=new Dh(t[30]),a=1;a<30;++a)for(var i=t[a];i<t[a+1];++i)n[i]=i-t[a]<<5|a;return{b:t,r:n}},IN=ON(qu,2),RN=IN.b,Mh=IN.r;RN[28]=258,Mh[258]=28;for(var BN=ON(Vu,0),Uge=BN.b,xN=BN.r,Fh=new Rn(32768),Mr=0;Mr<32768;++Mr){var Ps=(Mr&43690)>>1|(Mr&21845)<<1;Ps=(Ps&52428)>>2|(Ps&13107)<<2,Ps=(Ps&61680)>>4|(Ps&3855)<<4,Fh[Mr]=((Ps&65280)>>8|(Ps&255)<<8)>>1}for(var Di=function(r,e,t){for(var a=r.length,n=0,i=new Rn(e);n<a;++n)r[n]&&++i[r[n]-1];var s=new Rn(e);for(n=1;n<e;++n)s[n]=s[n-1]+i[n-1]<<1;var o;if(t){o=new Rn(1<<e);var l=15-e;for(n=0;n<a;++n)if(r[n])for(var c=n<<4|r[n],A=e-r[n],d=s[r[n]-1]++<<A,u=d|(1<<A)-1;d<=u;++d)o[Fh[d]>>l]=c}else for(o=new Rn(a),n=0;n<a;++n)r[n]&&(o[n]=Fh[s[r[n]-1]++]>>15-r[n]);return o},Us=new Va(288),Mr=0;Mr<144;++Mr)Us[Mr]=8;for(var Mr=144;Mr<256;++Mr)Us[Mr]=9;for(var Mr=256;Mr<280;++Mr)Us[Mr]=7;for(var Mr=280;Mr<288;++Mr)Us[Mr]=8;for(var kc=new Va(32),Mr=0;Mr<32;++Mr)kc[Mr]=5;var Qge=Di(Us,9,0),zge=Di(Us,9,1),Hge=Di(kc,5,0),Gge=Di(kc,5,1),Ph=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},ci=function(r,e,t){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&t},Uh=function(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},Qh=function(r){return(r+7)/8|0},DN=function(r,e,t){return(t==null||t>r.length)&&(t=r.length),new Va(r.subarray(e,t))},qge=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ai=function(r,e,t){var a=new Error(e||qge[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Ai),!t)throw a;return a},Vge=function(r,e,t,a){var n=r.length,i=0;if(!n||e.f&&!e.l)return t||new Va(0);var s=!t,o=s||e.i!=2,l=e.i;s&&(t=new Va(n*3));var c=function(Oe){var ze=t.length;if(Oe>ze){var He=new Va(Math.max(ze*2,Oe));He.set(t),t=He}},A=e.f||0,d=e.p||0,u=e.b||0,g=e.l,m=e.d,_=e.m,E=e.n,y=n*8;do{if(!g){A=ci(r,d,1);var w=ci(r,d+1,3);if(d+=3,w)if(w==1)g=zge,m=Gge,_=9,E=5;else if(w==2){var h=ci(r,d,31)+257,O=ci(r,d+10,15)+4,L=h+ci(r,d+5,31)+1;d+=14;for(var Y=new Va(L),K=new Va(19),I=0;I<O;++I)K[Lh[I]]=ci(r,d+I*3,7);d+=O*3;for(var M=Ph(K),V=(1<<M)-1,Q=Di(K,M,1),I=0;I<L;){var ee=Q[ci(r,d,V)];d+=ee&15;var N=ee>>4;if(N<16)Y[I++]=N;else{var oe=0,ie=0;for(N==16?(ie=3+ci(r,d,3),d+=2,oe=Y[I-1]):N==17?(ie=3+ci(r,d,7),d+=3):N==18&&(ie=11+ci(r,d,127),d+=7);ie--;)Y[I++]=oe}}var re=Y.subarray(0,h),se=Y.subarray(h);_=Ph(re),E=Ph(se),g=Di(re,_,1),m=Di(se,E,1)}else Ai(1);else{var N=Qh(d)+4,R=r[N-4]|r[N-3]<<8,k=N+R;if(k>n){l&&Ai(0);break}o&&c(u+R),t.set(r.subarray(N,k),u),e.b=u+=R,e.p=d=k*8,e.f=A;continue}if(d>y){l&&Ai(0);break}}o&&c(u+131072);for(var Ae=(1<<_)-1,ye=(1<<E)-1,B=d;;B=d){var oe=g[Uh(r,d)&Ae],G=oe>>4;if(d+=oe&15,d>y){l&&Ai(0);break}if(oe||Ai(2),G<256)t[u++]=G;else if(G==256){B=d,g=null;break}else{var j=G-254;if(G>264){var I=G-257,$=qu[I];j=ci(r,d,(1<<$)-1)+RN[I],d+=$}var ne=m[Uh(r,d)&ye],ce=ne>>4;ne||Ai(3),d+=ne&15;var se=Uge[ce];if(ce>3){var $=Vu[ce];se+=Uh(r,d)&(1<<$)-1,d+=$}if(d>y){l&&Ai(0);break}o&&c(u+131072);var _e=u+j;if(u<se){var me=i-se,Be=Math.min(se,_e);for(me+u<0&&Ai(3);u<Be;++u)t[u]=a[me+u]}for(;u<_e;++u)t[u]=t[u-se]}}e.l=g,e.p=B,e.b=u,e.f=A,g&&(A=1,e.m=_,e.d=m,e.n=E)}while(!A);return u!=t.length&&s?DN(t,0,u):t.subarray(0,u)},rs=function(r,e,t){t<<=e&7;var a=e/8|0;r[a]|=t,r[a+1]|=t>>8},Oc=function(r,e,t){t<<=e&7;var a=e/8|0;r[a]|=t,r[a+1]|=t>>8,r[a+2]|=t>>16},zh=function(r,e){for(var t=[],a=0;a<r.length;++a)r[a]&&t.push({s:a,f:r[a]});var n=t.length,i=t.slice();if(!n)return{t:PN,l:0};if(n==1){var s=new Va(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(k,h){return k.f-h.f}),t.push({s:-1,f:25001});var o=t[0],l=t[1],c=0,A=1,d=2;for(t[0]={s:-1,f:o.f+l.f,l:o,r:l};A!=n-1;)o=t[t[c].f<t[d].f?c++:d++],l=t[c!=A&&t[c].f<t[d].f?c++:d++],t[A++]={s:-1,f:o.f+l.f,l:o,r:l};for(var u=i[0].s,a=1;a<n;++a)i[a].s>u&&(u=i[a].s);var g=new Rn(u+1),m=Hh(t[A-1],g,0);if(m>e){var a=0,_=0,E=m-e,y=1<<E;for(i.sort(function(h,O){return g[O.s]-g[h.s]||h.f-O.f});a<n;++a){var w=i[a].s;if(g[w]>e)_+=y-(1<<m-g[w]),g[w]=e;else break}for(_>>=E;_>0;){var N=i[a].s;g[N]<e?_-=1<<e-g[N]++-1:++a}for(;a>=0&&_;--a){var R=i[a].s;g[R]==e&&(--g[R],++_)}m=e}return{t:new Va(g),l:m}},Hh=function(r,e,t){return r.s==-1?Math.max(Hh(r.l,e,t+1),Hh(r.r,e,t+1)):e[r.s]=t},LN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new Rn(++e),a=0,n=r[0],i=1,s=function(l){t[a++]=l},o=1;o<=e;++o)if(r[o]==n&&o!=e)++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=r[o]}return{c:t.subarray(0,a),n:e}},Ic=function(r,e){for(var t=0,a=0;a<e.length;++a)t+=r[a]*e[a];return t},MN=function(r,e,t){var a=t.length,n=Qh(e+2);r[n]=a&255,r[n+1]=a>>8,r[n+2]=r[n]^255,r[n+3]=r[n+1]^255;for(var i=0;i<a;++i)r[n+i+4]=t[i];return(n+4+a)*8},FN=function(r,e,t,a,n,i,s,o,l,c,A){rs(e,A++,t),++n[256];for(var d=zh(n,15),u=d.t,g=d.l,m=zh(i,15),_=m.t,E=m.l,y=LN(u),w=y.c,N=y.n,R=LN(_),k=R.c,h=R.n,O=new Rn(19),L=0;L<w.length;++L)++O[w[L]&31];for(var L=0;L<k.length;++L)++O[k[L]&31];for(var Y=zh(O,7),K=Y.t,I=Y.l,M=19;M>4&&!K[Lh[M-1]];--M);var V=c+5<<3,Q=Ic(n,Us)+Ic(i,kc)+s,ee=Ic(n,u)+Ic(i,_)+s+14+3*M+Ic(O,K)+2*O[16]+3*O[17]+7*O[18];if(l>=0&&V<=Q&&V<=ee)return MN(e,A,r.subarray(l,l+c));var oe,ie,re,se;if(rs(e,A,1+(ee<Q)),A+=2,ee<Q){oe=Di(u,g,0),ie=u,re=Di(_,E,0),se=_;var Ae=Di(K,I,0);rs(e,A,N-257),rs(e,A+5,h-1),rs(e,A+10,M-4),A+=14;for(var L=0;L<M;++L)rs(e,A+3*L,K[Lh[L]]);A+=3*M;for(var ye=[w,k],B=0;B<2;++B)for(var G=ye[B],L=0;L<G.length;++L){var j=G[L]&31;rs(e,A,Ae[j]),A+=K[j],j>15&&(rs(e,A,G[L]>>5&127),A+=G[L]>>12)}}else oe=Qge,ie=Us,re=Hge,se=kc;for(var L=0;L<o;++L){var $=a[L];if($>255){var j=$>>18&31;Oc(e,A,oe[j+257]),A+=ie[j+257],j>7&&(rs(e,A,$>>23&31),A+=qu[j]);var ne=$&31;Oc(e,A,re[ne]),A+=se[ne],ne>3&&(Oc(e,A,$>>5&8191),A+=Vu[ne])}else Oc(e,A,oe[$]),A+=ie[$]}return Oc(e,A,oe[256]),A+ie[256]},Yge=new Dh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),PN=new Va(0),jge=function(r,e,t,a,n,i){var s=i.z||r.length,o=new Va(a+s+5*(1+Math.ceil(s/7e3))+n),l=o.subarray(a,o.length-n),c=i.l,A=(i.r||0)&7;if(e){A&&(l[0]=i.r>>3);for(var d=Yge[e-1],u=d>>13,g=d&8191,m=(1<<t)-1,_=i.p||new Rn(32768),E=i.h||new Rn(m+1),y=Math.ceil(t/3),w=2*y,N=function(rt){return(r[rt]^r[rt+1]<<y^r[rt+2]<<w)&m},R=new Dh(25e3),k=new Rn(288),h=new Rn(32),O=0,L=0,Y=i.i||0,K=0,I=i.w||0,M=0;Y+2<s;++Y){var V=N(Y),Q=Y&32767,ee=E[V];if(_[Q]=ee,E[V]=Q,I<=Y){var oe=s-Y;if((O>7e3||K>24576)&&(oe>423||!c)){A=FN(r,l,0,R,k,h,L,K,M,Y-M,A),K=O=L=0,M=Y;for(var ie=0;ie<286;++ie)k[ie]=0;for(var ie=0;ie<30;++ie)h[ie]=0}var re=2,se=0,Ae=g,ye=Q-ee&32767;if(oe>2&&V==N(Y-ye))for(var B=Math.min(u,oe)-1,G=Math.min(32767,Y),j=Math.min(258,oe);ye<=G&&--Ae&&Q!=ee;){if(r[Y+re]==r[Y+re-ye]){for(var $=0;$<j&&r[Y+$]==r[Y+$-ye];++$);if($>re){if(re=$,se=ye,$>B)break;for(var ne=Math.min(ye,$-2),ce=0,ie=0;ie<ne;++ie){var _e=Y-ye+ie&32767,me=_[_e],Be=_e-me&32767;Be>ce&&(ce=Be,ee=_e)}}}Q=ee,ee=_[Q],ye+=Q-ee&32767}if(se){R[K++]=268435456|Mh[re]<<18|xN[se];var Oe=Mh[re]&31,ze=xN[se]&31;L+=qu[Oe]+Vu[ze],++k[257+Oe],++h[ze],I=Y+re,++O}else R[K++]=r[Y],++k[r[Y]]}}for(Y=Math.max(Y,I);Y<s;++Y)R[K++]=r[Y],++k[r[Y]];A=FN(r,l,c,R,k,h,L,K,M,Y-M,A),c||(i.r=A&7|l[A/8|0]<<3,A-=7,i.h=E,i.p=_,i.i=Y,i.w=I)}else{for(var Y=i.w||0;Y<s+c;Y+=65535){var He=Y+65535;He>=s&&(l[A/8|0]=c,He=s),A=MN(l,A+1,r.subarray(Y,He))}i.i=s}return DN(o,0,a+Qh(A)+n)},UN=function(){var r=1,e=0;return{p:function(t){for(var a=r,n=e,i=t.length|0,s=0;s!=i;){for(var o=Math.min(s+2655,i);s<o;++s)n+=a+=t[s];a=(a&65535)+15*(a>>16),n=(n&65535)+15*(n>>16)}r=a,e=n},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},Kge=function(r,e,t,a,n){if(!n&&(n={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),s=new Va(i.length+r.length);s.set(i),s.set(r,i.length),r=s,n.w=i.length}return jge(r,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,a,n)},QN=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},Wge=function(r,e){var t=e.level,a=t==0?0:t<6?1:t==9?3:2;if(r[0]=120,r[1]=a<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var n=UN();n.p(e.dictionary),QN(r,2,n.d())}},$ge=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Ai(6,"invalid zlib data"),(r[1]>>5&1)==1&&Ai(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function Gh(r,e){e||(e={});var t=UN();t.p(r);var a=Kge(r,e,e.dictionary?6:2,4);return Wge(a,e),QN(a,a.length-4,t.d()),a}function Xge(r,e){return Vge(r.subarray($ge(r),-4),{i:2},e,e)}var Zge=typeof TextDecoder<"u"&&new TextDecoder,Jge=0;try{Zge.decode(PN,{stream:!0}),Jge=1}catch{}/** @license
|
|
397
|
+
.`+kh+Zpe+hN)},ege=function(r,e){var t=r.ownerDocument;if(t){var a=t.createElement("style");a.textContent=e,r.appendChild(a)}},bN=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),tge=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Ih(e)||ige(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return on(this,void 0,void 0,function(){var t,a,n,i,s=this;return Ga(this,function(o){switch(o.label){case 0:return t=bN.isSameOrigin(e),a=!Oh(e)&&this._options.useCORS===!0&&Fa.SUPPORT_CORS_IMAGES&&!t,n=!Oh(e)&&!t&&!Ih(e)&&typeof this._options.proxy=="string"&&Fa.SUPPORT_CORS_XHR&&!a,!t&&this._options.allowTaint===!1&&!Oh(e)&&!Ih(e)&&!n&&!a?[2]:(i=e,n?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var A=new Image;A.onload=function(){return l(A)},A.onerror=c,(sge(i)||a)&&(A.crossOrigin="anonymous"),A.src=i,A.complete===!0&&setTimeout(function(){return l(A)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,a=this._options.proxy;if(!a)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(i,s){var o=Fa.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")i(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(u){return s(u)},!1),d.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=a.indexOf("?")>-1?"&":"?";if(l.open("GET",""+a+c+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),t._options.imageTimeout){var A=t._options.imageTimeout;l.timeout=A,l.ontimeout=function(){return s("Timed out ("+A+"ms) proxying "+n)}}l.send()})},r}(),rge=/^data:image\/svg\+xml/i,age=/^data:image\/.*;base64,/i,nge=/^data:image\/.*/i,ige=function(r){return Fa.SUPPORT_SVG_DRAWING||!oge(r)},Oh=function(r){return nge.test(r)},sge=function(r){return age.test(r)},Ih=function(r){return r.substr(0,4)==="blob"},oge=function(r){return r.substr(-3).toLowerCase()==="svg"||rge.test(r)},ct=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),_l=function(r,e,t){return new ct(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},Fu=function(){function r(e,t,a,n){this.type=1,this.start=e,this.startControl=t,this.endControl=a,this.end=n}return r.prototype.subdivide=function(e,t){var a=_l(this.start,this.startControl,e),n=_l(this.startControl,this.endControl,e),i=_l(this.endControl,this.end,e),s=_l(a,n,e),o=_l(n,i,e),l=_l(s,o,e);return t?new r(this.start,a,s,l):new r(l,o,i,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Hn=function(r){return r.type===1},lge=function(){function r(e){var t=e.styles,a=e.bounds,n=yc(t.borderTopLeftRadius,a.width,a.height),i=n[0],s=n[1],o=yc(t.borderTopRightRadius,a.width,a.height),l=o[0],c=o[1],A=yc(t.borderBottomRightRadius,a.width,a.height),d=A[0],u=A[1],g=yc(t.borderBottomLeftRadius,a.width,a.height),m=g[0],_=g[1],E=[];E.push((i+l)/a.width),E.push((m+d)/a.width),E.push((s+_)/a.height),E.push((c+u)/a.height);var y=Math.max.apply(Math,E);y>1&&(i/=y,s/=y,l/=y,c/=y,d/=y,u/=y,m/=y,_/=y);var w=a.width-l,N=a.height-u,R=a.width-d,k=a.height-_,h=t.borderTopWidth,O=t.borderRightWidth,L=t.borderBottomWidth,Y=t.borderLeftWidth,K=Ir(t.paddingTop,e.bounds.width),I=Ir(t.paddingRight,e.bounds.width),M=Ir(t.paddingBottom,e.bounds.width),V=Ir(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?Ur(a.left+Y/3,a.top+h/3,i-Y/3,s-h/3,fr.TOP_LEFT):new ct(a.left+Y/3,a.top+h/3),this.topRightBorderDoubleOuterBox=i>0||s>0?Ur(a.left+w,a.top+h/3,l-O/3,c-h/3,fr.TOP_RIGHT):new ct(a.left+a.width-O/3,a.top+h/3),this.bottomRightBorderDoubleOuterBox=d>0||u>0?Ur(a.left+R,a.top+N,d-O/3,u-L/3,fr.BOTTOM_RIGHT):new ct(a.left+a.width-O/3,a.top+a.height-L/3),this.bottomLeftBorderDoubleOuterBox=m>0||_>0?Ur(a.left+Y/3,a.top+k,m-Y/3,_-L/3,fr.BOTTOM_LEFT):new ct(a.left+Y/3,a.top+a.height-L/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?Ur(a.left+Y*2/3,a.top+h*2/3,i-Y*2/3,s-h*2/3,fr.TOP_LEFT):new ct(a.left+Y*2/3,a.top+h*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?Ur(a.left+w,a.top+h*2/3,l-O*2/3,c-h*2/3,fr.TOP_RIGHT):new ct(a.left+a.width-O*2/3,a.top+h*2/3),this.bottomRightBorderDoubleInnerBox=d>0||u>0?Ur(a.left+R,a.top+N,d-O*2/3,u-L*2/3,fr.BOTTOM_RIGHT):new ct(a.left+a.width-O*2/3,a.top+a.height-L*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||_>0?Ur(a.left+Y*2/3,a.top+k,m-Y*2/3,_-L*2/3,fr.BOTTOM_LEFT):new ct(a.left+Y*2/3,a.top+a.height-L*2/3),this.topLeftBorderStroke=i>0||s>0?Ur(a.left+Y/2,a.top+h/2,i-Y/2,s-h/2,fr.TOP_LEFT):new ct(a.left+Y/2,a.top+h/2),this.topRightBorderStroke=i>0||s>0?Ur(a.left+w,a.top+h/2,l-O/2,c-h/2,fr.TOP_RIGHT):new ct(a.left+a.width-O/2,a.top+h/2),this.bottomRightBorderStroke=d>0||u>0?Ur(a.left+R,a.top+N,d-O/2,u-L/2,fr.BOTTOM_RIGHT):new ct(a.left+a.width-O/2,a.top+a.height-L/2),this.bottomLeftBorderStroke=m>0||_>0?Ur(a.left+Y/2,a.top+k,m-Y/2,_-L/2,fr.BOTTOM_LEFT):new ct(a.left+Y/2,a.top+a.height-L/2),this.topLeftBorderBox=i>0||s>0?Ur(a.left,a.top,i,s,fr.TOP_LEFT):new ct(a.left,a.top),this.topRightBorderBox=l>0||c>0?Ur(a.left+w,a.top,l,c,fr.TOP_RIGHT):new ct(a.left+a.width,a.top),this.bottomRightBorderBox=d>0||u>0?Ur(a.left+R,a.top+N,d,u,fr.BOTTOM_RIGHT):new ct(a.left+a.width,a.top+a.height),this.bottomLeftBorderBox=m>0||_>0?Ur(a.left,a.top+k,m,_,fr.BOTTOM_LEFT):new ct(a.left,a.top+a.height),this.topLeftPaddingBox=i>0||s>0?Ur(a.left+Y,a.top+h,Math.max(0,i-Y),Math.max(0,s-h),fr.TOP_LEFT):new ct(a.left+Y,a.top+h),this.topRightPaddingBox=l>0||c>0?Ur(a.left+Math.min(w,a.width-O),a.top+h,w>a.width+O?0:Math.max(0,l-O),Math.max(0,c-h),fr.TOP_RIGHT):new ct(a.left+a.width-O,a.top+h),this.bottomRightPaddingBox=d>0||u>0?Ur(a.left+Math.min(R,a.width-Y),a.top+Math.min(N,a.height-L),Math.max(0,d-O),Math.max(0,u-L),fr.BOTTOM_RIGHT):new ct(a.left+a.width-O,a.top+a.height-L),this.bottomLeftPaddingBox=m>0||_>0?Ur(a.left+Y,a.top+Math.min(k,a.height-L),Math.max(0,m-Y),Math.max(0,_-L),fr.BOTTOM_LEFT):new ct(a.left+Y,a.top+a.height-L),this.topLeftContentBox=i>0||s>0?Ur(a.left+Y+V,a.top+h+K,Math.max(0,i-(Y+V)),Math.max(0,s-(h+K)),fr.TOP_LEFT):new ct(a.left+Y+V,a.top+h+K),this.topRightContentBox=l>0||c>0?Ur(a.left+Math.min(w,a.width+Y+V),a.top+h+K,w>a.width+Y+V?0:l-Y+V,c-(h+K),fr.TOP_RIGHT):new ct(a.left+a.width-(O+I),a.top+h+K),this.bottomRightContentBox=d>0||u>0?Ur(a.left+Math.min(R,a.width-(Y+V)),a.top+Math.min(N,a.height+h+K),Math.max(0,d-(O+I)),u-(L+M),fr.BOTTOM_RIGHT):new ct(a.left+a.width-(O+I),a.top+a.height-(L+M)),this.bottomLeftContentBox=m>0||_>0?Ur(a.left+Y+V,a.top+k,Math.max(0,m-(Y+V)),_-(L+M),fr.BOTTOM_LEFT):new ct(a.left+Y+V,a.top+a.height-(L+M))}return r}(),fr;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(fr||(fr={}));var Ur=function(r,e,t,a,n){var i=4*((Math.sqrt(2)-1)/3),s=t*i,o=a*i,l=r+t,c=e+a;switch(n){case fr.TOP_LEFT:return new Fu(new ct(r,c),new ct(r,c-o),new ct(l-s,e),new ct(l,e));case fr.TOP_RIGHT:return new Fu(new ct(r,e),new ct(r+s,e),new ct(l,c-o),new ct(l,c));case fr.BOTTOM_RIGHT:return new Fu(new ct(l,e),new ct(l,e+o),new ct(r+s,c),new ct(r,c));case fr.BOTTOM_LEFT:default:return new Fu(new ct(l,c),new ct(l-s,c),new ct(r,e+o),new ct(r,e))}},Pu=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},cge=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Uu=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},Age=function(){function r(e,t,a){this.offsetX=e,this.offsetY=t,this.matrix=a,this.type=0,this.target=6}return r}(),Qu=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),uge=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),dge=function(r){return r.type===0},yN=function(r){return r.type===1},pge=function(r){return r.type===2},vN=function(r,e){return r.length===e.length?r.some(function(t,a){return t===e[a]}):!1},gge=function(r,e,t,a,n){return r.map(function(i,s){switch(s){case 0:return i.add(e,t);case 1:return i.add(e+a,t);case 2:return i.add(e+a,t+n);case 3:return i.add(e,t+n)}return i})},EN=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),SN=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new lge(this.container),this.container.styles.opacity<1&&this.effects.push(new uge(this.container.styles.opacity)),this.container.styles.transform!==null){var a=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Age(a,n,i))}if(this.container.styles.overflowX!==0){var s=Pu(this.curves),o=Uu(this.curves);vN(s,o)?this.effects.push(new Qu(s,6)):(this.effects.push(new Qu(s,2)),this.effects.push(new Qu(o,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,a=this.parent,n=this.effects.slice(0);a;){var i=a.effects.filter(function(l){return!yN(l)});if(t||a.container.styles.position!==0||!a.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(a.container.styles.position)===-1,a.container.styles.overflowX!==0){var s=Pu(a.curves),o=Uu(a.curves);vN(s,o)||n.unshift(new Qu(o,6))}}else n.unshift.apply(n,i);a=a.parent}return n.filter(function(l){return Ta(l.target,e)})},r}(),Rh=function(r,e,t,a){r.container.elements.forEach(function(n){var i=Ta(n.flags,4),s=Ta(n.flags,2),o=new SN(n,r);Ta(n.styles.display,2048)&&a.push(o);var l=Ta(n.flags,8)?[]:a;if(i||s){var c=i||n.styles.isPositioned()?t:e,A=new EN(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var u=0;c.negativeZIndex.some(function(m,_){return d>m.element.container.styles.zIndex.order?(u=_,!1):u>0}),c.negativeZIndex.splice(u,0,A)}else if(d>0){var g=0;c.positiveZIndex.some(function(m,_){return d>=m.element.container.styles.zIndex.order?(g=_+1,!1):g>0}),c.positiveZIndex.splice(g,0,A)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else n.styles.isFloating()?c.nonPositionedFloats.push(A):c.nonPositionedInlineLevel.push(A);Rh(o,A,i?A:t,l)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Rh(o,e,t,l);Ta(n.flags,8)&&wN(n,l)})},wN=function(r,e){for(var t=r instanceof yh?r.start:1,a=r instanceof yh?r.reversed:!1,n=0;n<e.length;n++){var i=e[n];i.container instanceof W2&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=Tc(t,i.container.styles.listStyleType,!0),t+=a?-1:1}},fge=function(r){var e=new SN(r,null),t=new EN(e),a=[];return Rh(e,t,t,a),wN(e.container,a),t},CN=function(r,e){switch(e){case 0:return Gn(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return Gn(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return Gn(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return Gn(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},_ge=function(r,e){switch(e){case 0:return Gn(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return Gn(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return Gn(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return Gn(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},mge=function(r,e){switch(e){case 0:return Gn(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return Gn(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return Gn(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return Gn(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},hge=function(r,e){switch(e){case 0:return zu(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return zu(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return zu(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return zu(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},zu=function(r,e){var t=[];return Hn(r)?t.push(r.subdivide(.5,!1)):t.push(r),Hn(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Gn=function(r,e,t,a){var n=[];return Hn(r)?n.push(r.subdivide(.5,!1)):n.push(r),Hn(t)?n.push(t.subdivide(.5,!0)):n.push(t),Hn(a)?n.push(a.subdivide(.5,!0).reverse()):n.push(a),Hn(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},TN=function(r){var e=r.bounds,t=r.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Hu=function(r){var e=r.styles,t=r.bounds,a=Ir(e.paddingLeft,t.width),n=Ir(e.paddingRight,t.width),i=Ir(e.paddingTop,t.width),s=Ir(e.paddingBottom,t.width);return t.add(a+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+a+n),-(e.borderTopWidth+e.borderBottomWidth+i+s))},bge=function(r,e){return r===0?e.bounds:r===2?Hu(e):TN(e)},yge=function(r,e){return r===0?e.bounds:r===2?Hu(e):TN(e)},Bh=function(r,e,t){var a=bge(hl(r.styles.backgroundOrigin,e),r),n=yge(hl(r.styles.backgroundClip,e),r),i=vge(hl(r.styles.backgroundSize,e),t,a),s=i[0],o=i[1],l=yc(hl(r.styles.backgroundPosition,e),a.width-s,a.height-o),c=Ege(hl(r.styles.backgroundRepeat,e),l,i,a,n),A=Math.round(a.left+l[0]),d=Math.round(a.top+l[1]);return[c,A,d,s,o]},ml=function(r){return Er(r)&&r.value===dl.AUTO},Gu=function(r){return typeof r=="number"},vge=function(r,e,t){var a=e[0],n=e[1],i=e[2],s=r[0],o=r[1];if(!s)return[0,0];if(_a(s)&&o&&_a(o))return[Ir(s,t.width),Ir(o,t.height)];var l=Gu(i);if(Er(s)&&(s.value===dl.CONTAIN||s.value===dl.COVER)){if(Gu(i)){var c=t.width/t.height;return c<i!=(s.value===dl.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var A=Gu(a),d=Gu(n),u=A||d;if(ml(s)&&(!o||ml(o))){if(A&&d)return[a,n];if(!l&&!u)return[t.width,t.height];if(u&&l){var g=A?a:n*i,m=d?n:a/i;return[g,m]}var _=A?a:t.width,E=d?n:t.height;return[_,E]}if(l){var y=0,w=0;return _a(s)?y=Ir(s,t.width):_a(o)&&(w=Ir(o,t.height)),ml(s)?y=w*i:(!o||ml(o))&&(w=y/i),[y,w]}var N=null,R=null;if(_a(s)?N=Ir(s,t.width):o&&_a(o)&&(R=Ir(o,t.height)),N!==null&&(!o||ml(o))&&(R=A&&d?N/a*n:t.height),R!==null&&ml(s)&&(N=A&&d?R/n*a:t.width),N!==null&&R!==null)return[N,R];throw new Error("Unable to calculate background-size for element")},hl=function(r,e){var t=r[e];return typeof t>"u"?r[0]:t},Ege=function(r,e,t,a,n){var i=e[0],s=e[1],o=t[0],l=t[1];switch(r){case 2:return[new ct(Math.round(a.left),Math.round(a.top+s)),new ct(Math.round(a.left+a.width),Math.round(a.top+s)),new ct(Math.round(a.left+a.width),Math.round(l+a.top+s)),new ct(Math.round(a.left),Math.round(l+a.top+s))];case 3:return[new ct(Math.round(a.left+i),Math.round(a.top)),new ct(Math.round(a.left+i+o),Math.round(a.top)),new ct(Math.round(a.left+i+o),Math.round(a.height+a.top)),new ct(Math.round(a.left+i),Math.round(a.height+a.top))];case 1:return[new ct(Math.round(a.left+i),Math.round(a.top+s)),new ct(Math.round(a.left+i+o),Math.round(a.top+s)),new ct(Math.round(a.left+i+o),Math.round(a.top+s+l)),new ct(Math.round(a.left+i),Math.round(a.top+s+l))];default:return[new ct(Math.round(n.left),Math.round(n.top)),new ct(Math.round(n.left+n.width),Math.round(n.top)),new ct(Math.round(n.left+n.width),Math.round(n.height+n.top)),new ct(Math.round(n.left),Math.round(n.height+n.top))]}},Sge="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",NN="Hidden Text",wge=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var a=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;a.style.visibility="hidden",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.style.whiteSpace="nowrap",s.appendChild(a),n.src=Sge,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(NN)),a.appendChild(i),a.appendChild(n);var o=n.offsetTop-i.offsetTop+2;a.removeChild(i),a.appendChild(this._document.createTextNode(NN)),a.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-a.offsetTop+2;return s.removeChild(a),{baseline:o,middle:l}},r.prototype.getMetrics=function(e,t){var a=e+" "+t;return typeof this._data[a]>"u"&&(this._data[a]=this.parseMetrics(e,t)),this._data[a]},r}(),kN=function(){function r(e,t){this.context=e,this.options=t}return r}(),Cge=1e4,Tge=function(r){oi(e,r);function e(t,a){var n=r.call(this,t,a)||this;return n._activeEffects=[],n.canvas=a.canvas?a.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),a.canvas||(n.canvas.width=Math.floor(a.width*a.scale),n.canvas.height=Math.floor(a.height*a.scale),n.canvas.style.width=a.width+"px",n.canvas.style.height=a.height+"px"),n.fontMetrics=new wge(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-a.x,-a.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+a.width+"x"+a.height+") with scale "+a.scale),n}return e.prototype.applyEffects=function(t){for(var a=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return a.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),pge(t)&&(this.ctx.globalAlpha=t.opacity),dge(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),yN(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return on(this,void 0,void 0,function(){var a;return Ga(this,function(n){switch(n.label){case 0:return a=t.element.container.styles,a.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return on(this,void 0,void 0,function(){return Ga(this,function(a){switch(a.label){case 0:if(Ta(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return a.sent(),[4,this.renderNodeContent(t)];case 2:a.sent(),a.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,a,n){var i=this;if(a===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var s=bh(t.text);s.reduce(function(o,l){return i.ctx.fillText(l,o,t.bounds.top+n),o+i.ctx.measureText(l).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var a=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=Rge(t.fontFamily).join(", "),i=bc(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,a,t.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(t,a){return on(this,void 0,void 0,function(){var n,i,s,o,l,c,A,d,u=this;return Ga(this,function(g){return n=this.createFontStyle(a),i=n[0],s=n[1],o=n[2],this.ctx.font=i,this.ctx.direction=a.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,A=l.middle,d=a.paintOrder,t.textBounds.forEach(function(m){d.forEach(function(_){switch(_){case 0:u.ctx.fillStyle=ka(a.color),u.renderTextWithLetterSpacing(m,a.letterSpacing,c);var E=a.textShadow;E.length&&m.text.trim().length&&(E.slice(0).reverse().forEach(function(y){u.ctx.shadowColor=ka(y.color),u.ctx.shadowOffsetX=y.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=y.offsetY.number*u.options.scale,u.ctx.shadowBlur=y.blur.number,u.renderTextWithLetterSpacing(m,a.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),a.textDecorationLine.length&&(u.ctx.fillStyle=ka(a.textDecorationColor||a.color),a.textDecorationLine.forEach(function(y){switch(y){case 1:u.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+c),m.bounds.width,1);break;case 2:u.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:u.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+A),m.bounds.width,1);break}}));break;case 1:a.webkitTextStrokeWidth&&m.text.trim().length&&(u.ctx.strokeStyle=ka(a.webkitTextStrokeColor),u.ctx.lineWidth=a.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,a,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Hu(t),s=Uu(a);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return on(this,void 0,void 0,function(){var a,n,i,s,o,l,w,w,c,A,d,u,R,g,m,k,_,E,y,w,N,R,k;return Ga(this,function(h){switch(h.label){case 0:this.applyEffects(t.getEffects(4)),a=t.container,n=t.curves,i=a.styles,s=0,o=a.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,i)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(a instanceof Y2))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(a.src)];case 6:return w=h.sent(),this.renderReplacedElement(a,n,w),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+a.src),[3,8];case 8:if(a instanceof j2&&this.renderReplacedElement(a,n,a.canvas),!(a instanceof K2))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(a.svg)];case 10:return w=h.sent(),this.renderReplacedElement(a,n,w),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+a.svg.substring(0,255)),[3,12];case 12:return a instanceof J2&&a.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:a.backgroundColor,x:0,y:0,width:a.width,height:a.height}),[4,c.render(a.tree)]):[3,14];case 13:A=h.sent(),a.width&&a.height&&this.ctx.drawImage(A,0,0,a.width,a.height,a.bounds.left,a.bounds.top,a.bounds.width,a.bounds.height),h.label=14;case 14:if(a instanceof vh&&(d=Math.min(a.bounds.width,a.bounds.height),a.type===Ru?a.checked&&(this.ctx.save(),this.path([new ct(a.bounds.left+d*.39363,a.bounds.top+d*.79),new ct(a.bounds.left+d*.16,a.bounds.top+d*.5549),new ct(a.bounds.left+d*.27347,a.bounds.top+d*.44071),new ct(a.bounds.left+d*.39694,a.bounds.top+d*.5649),new ct(a.bounds.left+d*.72983,a.bounds.top+d*.23),new ct(a.bounds.left+d*.84,a.bounds.top+d*.34085),new ct(a.bounds.left+d*.39363,a.bounds.top+d*.79)]),this.ctx.fillStyle=ka($2),this.ctx.fill(),this.ctx.restore()):a.type===Bu&&a.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(a.bounds.left+d/2,a.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=ka($2),this.ctx.fill(),this.ctx.restore())),Nge(a)&&a.value.length){switch(u=this.createFontStyle(i),R=u[0],g=u[1],m=this.fontMetrics.getMetrics(R,g).baseline,this.ctx.font=R,this.ctx.fillStyle=ka(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Oge(a.styles.textAlign),k=Hu(a),_=0,a.styles.textAlign){case 1:_+=k.width/2;break;case 2:_+=k.width;break}E=k.add(_,0,0,-k.height/2+1),this.ctx.save(),this.path([new ct(k.left,k.top),new ct(k.left+k.width,k.top),new ct(k.left+k.width,k.top+k.height),new ct(k.left,k.top+k.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new wc(a.value,E),i.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ta(a.styles.display,2048))return[3,20];if(a.styles.listStyleImage===null)return[3,19];if(y=a.styles.listStyleImage,y.type!==0)return[3,18];w=void 0,N=y.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(N)];case 16:return w=h.sent(),this.ctx.drawImage(w,a.bounds.left-(w.width+10),a.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+N),[3,18];case 18:return[3,20];case 19:t.listValue&&a.styles.listStyleType!==-1&&(R=this.createFontStyle(i)[0],this.ctx.font=R,this.ctx.fillStyle=ka(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",k=new Zi(a.bounds.left,a.bounds.top+Ir(a.styles.paddingTop,a.bounds.width),a.bounds.width,N2(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new wc(t.listValue,k),i.letterSpacing,N2(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return on(this,void 0,void 0,function(){var a,n,y,i,s,y,o,l,y,c,A,y,d,u,y,g,m,y,_,E,y;return Ga(this,function(w){switch(w.label){case 0:if(Ta(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:w.sent(),a=0,n=t.negativeZIndex,w.label=2;case 2:return a<n.length?(y=n[a],[4,this.renderStack(y)]):[3,5];case 3:w.sent(),w.label=4;case 4:return a++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:w.sent(),i=0,s=t.nonInlineLevel,w.label=7;case 7:return i<s.length?(y=s[i],[4,this.renderNode(y)]):[3,10];case 8:w.sent(),w.label=9;case 9:return i++,[3,7];case 10:o=0,l=t.nonPositionedFloats,w.label=11;case 11:return o<l.length?(y=l[o],[4,this.renderStack(y)]):[3,14];case 12:w.sent(),w.label=13;case 13:return o++,[3,11];case 14:c=0,A=t.nonPositionedInlineLevel,w.label=15;case 15:return c<A.length?(y=A[c],[4,this.renderStack(y)]):[3,18];case 16:w.sent(),w.label=17;case 17:return c++,[3,15];case 18:d=0,u=t.inlineLevel,w.label=19;case 19:return d<u.length?(y=u[d],[4,this.renderNode(y)]):[3,22];case 20:w.sent(),w.label=21;case 21:return d++,[3,19];case 22:g=0,m=t.zeroOrAutoZIndexOrTransformedOrOpacity,w.label=23;case 23:return g<m.length?(y=m[g],[4,this.renderStack(y)]):[3,26];case 24:w.sent(),w.label=25;case 25:return g++,[3,23];case 26:_=0,E=t.positiveZIndex,w.label=27;case 27:return _<E.length?(y=E[_],[4,this.renderStack(y)]):[3,30];case 28:w.sent(),w.label=29;case 29:return _++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var a=this;t.forEach(function(n,i){var s=Hn(n)?n.start:n;i===0?a.ctx.moveTo(s.x,s.y):a.ctx.lineTo(s.x,s.y),Hn(n)&&a.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,a,n,i){this.path(t),this.ctx.fillStyle=a,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},e.prototype.resizeImage=function(t,a,n){var i;if(t.width===a&&t.height===n)return t;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=s.createElement("canvas");o.width=Math.max(1,a),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(t,0,0,t.width,t.height,0,0,a,n),o},e.prototype.renderBackgroundImage=function(t){return on(this,void 0,void 0,function(){var a,n,i,s,o,l;return Ga(this,function(c){switch(c.label){case 0:a=t.styles.backgroundImage.length-1,n=function(A){var d,u,g,K,oe,ie,V,Q,L,m,K,oe,ie,V,Q,_,E,y,w,N,R,k,h,O,L,Y,K,I,M,V,Q,ee,oe,ie,re,se,Ae,ye,B,G,j,$;return Ga(this,function(ne){switch(ne.label){case 0:if(A.type!==0)return[3,5];d=void 0,u=A.url,ne.label=1;case 1:return ne.trys.push([1,3,,4]),[4,i.context.cache.match(u)];case 2:return d=ne.sent(),[3,4];case 3:return ne.sent(),i.context.logger.error("Error loading background-image "+u),[3,4];case 4:return d&&(g=Bh(t,a,[d.width,d.height,d.width/d.height]),K=g[0],oe=g[1],ie=g[2],V=g[3],Q=g[4],L=i.ctx.createPattern(i.resizeImage(d,V,Q),"repeat"),i.renderRepeat(K,L,oe,ie)),[3,6];case 5:due(A)?(m=Bh(t,a,[null,null,null]),K=m[0],oe=m[1],ie=m[2],V=m[3],Q=m[4],_=oue(A.angle,V,Q),E=_[0],y=_[1],w=_[2],N=_[3],R=_[4],k=document.createElement("canvas"),k.width=V,k.height=Q,h=k.getContext("2d"),O=h.createLinearGradient(y,N,w,R),_2(A.stops,E).forEach(function(ce){return O.addColorStop(ce.stop,ka(ce.color))}),h.fillStyle=O,h.fillRect(0,0,V,Q),V>0&&Q>0&&(L=i.ctx.createPattern(k,"repeat"),i.renderRepeat(K,L,oe,ie))):pue(A)&&(Y=Bh(t,a,[null,null,null]),K=Y[0],I=Y[1],M=Y[2],V=Y[3],Q=Y[4],ee=A.position.length===0?[nh]:A.position,oe=Ir(ee[0],V),ie=Ir(ee[ee.length-1],Q),re=lue(A,oe,ie,V,Q),se=re[0],Ae=re[1],se>0&&Ae>0&&(ye=i.ctx.createRadialGradient(I+oe,M+ie,0,I+oe,M+ie,se),_2(A.stops,se*2).forEach(function(ce){return ye.addColorStop(ce.stop,ka(ce.color))}),i.path(K),i.ctx.fillStyle=ye,se!==Ae?(B=t.bounds.left+.5*t.bounds.width,G=t.bounds.top+.5*t.bounds.height,j=Ae/se,$=1/j,i.ctx.save(),i.ctx.translate(B,G),i.ctx.transform(1,0,0,j,0,0),i.ctx.translate(-B,-G),i.ctx.fillRect(I,$*(M-G)+G,V,Q*$),i.ctx.restore()):i.ctx.fill())),ne.label=6;case 6:return a--,[2]}})},i=this,s=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,a,n){return on(this,void 0,void 0,function(){return Ga(this,function(i){return this.path(CN(n,a)),this.ctx.fillStyle=ka(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,a,n,i){return on(this,void 0,void 0,function(){var s,o;return Ga(this,function(l){switch(l.label){case 0:return a<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return l.sent(),[2];case 2:return s=_ge(i,n),this.path(s),this.ctx.fillStyle=ka(t),this.ctx.fill(),o=mge(i,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return on(this,void 0,void 0,function(){var a,n,i,s,o,l,c,A,d=this;return Ga(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),a=t.container.styles,n=!Ds(a.backgroundColor)||a.backgroundImage.length,i=[{style:a.borderTopStyle,color:a.borderTopColor,width:a.borderTopWidth},{style:a.borderRightStyle,color:a.borderRightColor,width:a.borderRightWidth},{style:a.borderBottomStyle,color:a.borderBottomColor,width:a.borderBottomWidth},{style:a.borderLeftStyle,color:a.borderLeftColor,width:a.borderLeftWidth}],s=kge(hl(a.backgroundClip,0),t.curves),n||a.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ds(a.backgroundColor)||(this.ctx.fillStyle=ka(a.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),a.boxShadow.slice(0).reverse().forEach(function(g){d.ctx.save();var m=Pu(t.curves),_=g.inset?0:Cge,E=gge(m,-_+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(d.path(m),d.ctx.clip(),d.mask(E)):(d.mask(m),d.ctx.clip(),d.path(E)),d.ctx.shadowOffsetX=g.offsetX.number+_,d.ctx.shadowOffsetY=g.offsetY.number,d.ctx.shadowColor=ka(g.color),d.ctx.shadowBlur=g.blur.number,d.ctx.fillStyle=g.inset?ka(g.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=i,u.label=3;case 3:return l<c.length?(A=c[l],A.style!==0&&!Ds(A.color)&&A.width>0?A.style!==2?[3,5]:[4,this.renderDashedDottedBorder(A.color,A.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return A.style!==3?[3,7]:[4,this.renderDashedDottedBorder(A.color,A.width,o,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return A.style!==4?[3,9]:[4,this.renderDoubleBorder(A.color,A.width,o,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(A.color,o,t.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,a,n,i,s){return on(this,void 0,void 0,function(){var o,l,c,A,d,u,g,m,_,E,y,w,N,R,k,h,k,h;return Ga(this,function(O){return this.ctx.save(),o=hge(i,n),l=CN(i,n),s===2&&(this.path(l),this.ctx.clip()),Hn(l[0])?(c=l[0].start.x,A=l[0].start.y):(c=l[0].x,A=l[0].y),Hn(l[1])?(d=l[1].end.x,u=l[1].end.y):(d=l[1].x,u=l[1].y),n===0||n===2?g=Math.abs(c-d):g=Math.abs(A-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),m=a<3?a*3:a*2,_=a<3?a*2:a,s===3&&(m=a,_=a),E=!0,g<=m*2?E=!1:g<=m*2+_?(y=g/(2*m+_),m*=y,_*=y):(w=Math.floor((g+_)/(m+_)),N=(g-w*m)/(w-1),R=(g-(w+1)*m)/w,_=R<=0||Math.abs(_-N)<Math.abs(_-R)?N:R),E&&(s===3?this.ctx.setLineDash([0,m+_]):this.ctx.setLineDash([m,_])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=a):this.ctx.lineWidth=a*2+1.1,this.ctx.strokeStyle=ka(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Hn(l[0])&&(k=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new ct(k.end.x,k.end.y),new ct(h.start.x,h.start.y)]),this.ctx.stroke()),Hn(l[1])&&(k=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new ct(k.end.x,k.end.y),new ct(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return on(this,void 0,void 0,function(){var a;return Ga(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ka(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),a=fge(t),[4,this.renderStack(a)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(kN),Nge=function(r){return r instanceof Z2||r instanceof X2?!0:r instanceof vh&&r.type!==Bu&&r.type!==Ru},kge=function(r,e){switch(r){case 0:return Pu(e);case 2:return cge(e);case 1:default:return Uu(e)}},Oge=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ige=["-apple-system","system-ui"],Rge=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(e){return Ige.indexOf(e)===-1}):r},Bge=function(r){oi(e,r);function e(t,a){var n=r.call(this,t,a)||this;return n.canvas=a.canvas?a.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=a,n.canvas.width=Math.floor(a.width*a.scale),n.canvas.height=Math.floor(a.height*a.scale),n.canvas.style.width=a.width+"px",n.canvas.style.height=a.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-a.x,-a.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+a.width+"x"+a.height+" at "+a.x+","+a.y+") with scale "+a.scale),n}return e.prototype.render=function(t){return on(this,void 0,void 0,function(){var a,n;return Ga(this,function(i){switch(i.label){case 0:return a=hh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,xge(a)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ka(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(kN),xge=function(r){return new Promise(function(e,t){var a=new Image;a.onload=function(){e(a)},a.onerror=t,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Dge=function(){function r(e){var t=e.id,a=e.enabled;this.id=t,this.enabled=a,this.start=Date.now()}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,XA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,XA([this.id,this.getTime()+"ms"],e))},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,XA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,XA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.instances={},r}(),Lge=function(){function r(e,t){var a;this.windowBounds=t,this.instanceName="#"+r.instanceCount++,this.logger=new Dge({id:this.instanceName,enabled:e.logging}),this.cache=(a=e.cache)!==null&&a!==void 0?a:new tge(this,e)}return r.instanceCount=1,r}(),xh=function(r,e){return e===void 0&&(e={}),Mge(r,e)};typeof window<"u"&&bN.setContext(window);var Mge=function(r,e){return on(void 0,void 0,void 0,function(){var t,a,n,i,s,o,l,c,A,d,u,g,m,_,E,y,w,N,R,k,O,h,O,L,Y,K,I,M,V,Q,ee,oe,ie,re,se,Ae,ye,B,G,j;return Ga(this,function($){switch($.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=r.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(a=t.defaultView,!a)throw new Error("Document is not attached to a Window");return n={allowTaint:(L=e.allowTaint)!==null&&L!==void 0?L:!1,imageTimeout:(Y=e.imageTimeout)!==null&&Y!==void 0?Y:15e3,proxy:e.proxy,useCORS:(K=e.useCORS)!==null&&K!==void 0?K:!1},i=Fm({logging:(I=e.logging)!==null&&I!==void 0?I:!0,cache:e.cache},n),s={windowWidth:(M=e.windowWidth)!==null&&M!==void 0?M:a.innerWidth,windowHeight:(V=e.windowHeight)!==null&&V!==void 0?V:a.innerHeight,scrollX:(Q=e.scrollX)!==null&&Q!==void 0?Q:a.pageXOffset,scrollY:(ee=e.scrollY)!==null&&ee!==void 0?ee:a.pageYOffset},o=new Zi(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Lge(i,o),c=(oe=e.foreignObjectRendering)!==null&&oe!==void 0?oe:!1,A={allowTaint:(ie=e.allowTaint)!==null&&ie!==void 0?ie:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),d=new mN(l,r,A),u=d.clonedReferenceElement,u?[4,d.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=$.sent(),m=Sh(u)||Ppe(u)?gce(u.ownerDocument):ZA(l,u),_=m.width,E=m.height,y=m.left,w=m.top,N=Fge(l,u,e.backgroundColor),R={canvas:e.canvas,backgroundColor:N,scale:(se=(re=e.scale)!==null&&re!==void 0?re:a.devicePixelRatio)!==null&&se!==void 0?se:1,x:((Ae=e.x)!==null&&Ae!==void 0?Ae:0)+y,y:((ye=e.y)!==null&&ye!==void 0?ye:0)+w,width:(B=e.width)!==null&&B!==void 0?B:Math.ceil(_),height:(G=e.height)!==null&&G!==void 0?G:Math.ceil(E)},c?(l.logger.debug("Document cloned, using foreign object rendering"),O=new Bge(l,R),[4,O.render(u)]):[3,3];case 2:return k=$.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+y+","+w+" with size "+_+"x"+E+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=tN(l,u),N===h.styles.backgroundColor&&(h.styles.backgroundColor=es.TRANSPARENT),l.logger.debug("Starting renderer for element at "+R.x+","+R.y+" with size "+R.width+"x"+R.height),O=new Tge(l,R),[4,O.render(h)];case 4:k=$.sent(),$.label=5;case 5:return(!((j=e.removeContainer)!==null&&j!==void 0)||j)&&(mN.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,k]}})})},Fge=function(r,e,t){var a=e.ownerDocument,n=a.documentElement?vc(r,getComputedStyle(a.documentElement).backgroundColor):es.TRANSPARENT,i=a.body?vc(r,getComputedStyle(a.body).backgroundColor):es.TRANSPARENT,s=typeof t=="string"?vc(r,t):t===null?es.TRANSPARENT:4294967295;return e===a.documentElement?Ds(n)?Ds(i)?s:i:n:s};const Pge=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"}));function cr(r){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(r)}var Va=Uint8Array,Rn=Uint16Array,Dh=Int32Array,qu=new Va([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]),Vu=new Va([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]),Lh=new Va([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ON=function(r,e){for(var t=new Rn(31),a=0;a<31;++a)t[a]=e+=1<<r[a-1];for(var n=new Dh(t[30]),a=1;a<30;++a)for(var i=t[a];i<t[a+1];++i)n[i]=i-t[a]<<5|a;return{b:t,r:n}},IN=ON(qu,2),RN=IN.b,Mh=IN.r;RN[28]=258,Mh[258]=28;for(var BN=ON(Vu,0),Uge=BN.b,xN=BN.r,Fh=new Rn(32768),Mr=0;Mr<32768;++Mr){var Ps=(Mr&43690)>>1|(Mr&21845)<<1;Ps=(Ps&52428)>>2|(Ps&13107)<<2,Ps=(Ps&61680)>>4|(Ps&3855)<<4,Fh[Mr]=((Ps&65280)>>8|(Ps&255)<<8)>>1}for(var Di=function(r,e,t){for(var a=r.length,n=0,i=new Rn(e);n<a;++n)r[n]&&++i[r[n]-1];var s=new Rn(e);for(n=1;n<e;++n)s[n]=s[n-1]+i[n-1]<<1;var o;if(t){o=new Rn(1<<e);var l=15-e;for(n=0;n<a;++n)if(r[n])for(var c=n<<4|r[n],A=e-r[n],d=s[r[n]-1]++<<A,u=d|(1<<A)-1;d<=u;++d)o[Fh[d]>>l]=c}else for(o=new Rn(a),n=0;n<a;++n)r[n]&&(o[n]=Fh[s[r[n]-1]++]>>15-r[n]);return o},Us=new Va(288),Mr=0;Mr<144;++Mr)Us[Mr]=8;for(var Mr=144;Mr<256;++Mr)Us[Mr]=9;for(var Mr=256;Mr<280;++Mr)Us[Mr]=7;for(var Mr=280;Mr<288;++Mr)Us[Mr]=8;for(var kc=new Va(32),Mr=0;Mr<32;++Mr)kc[Mr]=5;var Qge=Di(Us,9,0),zge=Di(Us,9,1),Hge=Di(kc,5,0),Gge=Di(kc,5,1),Ph=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},ci=function(r,e,t){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&t},Uh=function(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},Qh=function(r){return(r+7)/8|0},DN=function(r,e,t){return(t==null||t>r.length)&&(t=r.length),new Va(r.subarray(e,t))},qge=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ai=function(r,e,t){var a=new Error(e||qge[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Ai),!t)throw a;return a},Vge=function(r,e,t,a){var n=r.length,i=0;if(!n||e.f&&!e.l)return t||new Va(0);var s=!t,o=s||e.i!=2,l=e.i;s&&(t=new Va(n*3));var c=function(Oe){var ze=t.length;if(Oe>ze){var He=new Va(Math.max(ze*2,Oe));He.set(t),t=He}},A=e.f||0,d=e.p||0,u=e.b||0,g=e.l,m=e.d,_=e.m,E=e.n,y=n*8;do{if(!g){A=ci(r,d,1);var w=ci(r,d+1,3);if(d+=3,w)if(w==1)g=zge,m=Gge,_=9,E=5;else if(w==2){var h=ci(r,d,31)+257,O=ci(r,d+10,15)+4,L=h+ci(r,d+5,31)+1;d+=14;for(var Y=new Va(L),K=new Va(19),I=0;I<O;++I)K[Lh[I]]=ci(r,d+I*3,7);d+=O*3;for(var M=Ph(K),V=(1<<M)-1,Q=Di(K,M,1),I=0;I<L;){var ee=Q[ci(r,d,V)];d+=ee&15;var N=ee>>4;if(N<16)Y[I++]=N;else{var oe=0,ie=0;for(N==16?(ie=3+ci(r,d,3),d+=2,oe=Y[I-1]):N==17?(ie=3+ci(r,d,7),d+=3):N==18&&(ie=11+ci(r,d,127),d+=7);ie--;)Y[I++]=oe}}var re=Y.subarray(0,h),se=Y.subarray(h);_=Ph(re),E=Ph(se),g=Di(re,_,1),m=Di(se,E,1)}else Ai(1);else{var N=Qh(d)+4,R=r[N-4]|r[N-3]<<8,k=N+R;if(k>n){l&&Ai(0);break}o&&c(u+R),t.set(r.subarray(N,k),u),e.b=u+=R,e.p=d=k*8,e.f=A;continue}if(d>y){l&&Ai(0);break}}o&&c(u+131072);for(var Ae=(1<<_)-1,ye=(1<<E)-1,B=d;;B=d){var oe=g[Uh(r,d)&Ae],G=oe>>4;if(d+=oe&15,d>y){l&&Ai(0);break}if(oe||Ai(2),G<256)t[u++]=G;else if(G==256){B=d,g=null;break}else{var j=G-254;if(G>264){var I=G-257,$=qu[I];j=ci(r,d,(1<<$)-1)+RN[I],d+=$}var ne=m[Uh(r,d)&ye],ce=ne>>4;ne||Ai(3),d+=ne&15;var se=Uge[ce];if(ce>3){var $=Vu[ce];se+=Uh(r,d)&(1<<$)-1,d+=$}if(d>y){l&&Ai(0);break}o&&c(u+131072);var _e=u+j;if(u<se){var me=i-se,Be=Math.min(se,_e);for(me+u<0&&Ai(3);u<Be;++u)t[u]=a[me+u]}for(;u<_e;++u)t[u]=t[u-se]}}e.l=g,e.p=B,e.b=u,e.f=A,g&&(A=1,e.m=_,e.d=m,e.n=E)}while(!A);return u!=t.length&&s?DN(t,0,u):t.subarray(0,u)},rs=function(r,e,t){t<<=e&7;var a=e/8|0;r[a]|=t,r[a+1]|=t>>8},Oc=function(r,e,t){t<<=e&7;var a=e/8|0;r[a]|=t,r[a+1]|=t>>8,r[a+2]|=t>>16},zh=function(r,e){for(var t=[],a=0;a<r.length;++a)r[a]&&t.push({s:a,f:r[a]});var n=t.length,i=t.slice();if(!n)return{t:PN,l:0};if(n==1){var s=new Va(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(k,h){return k.f-h.f}),t.push({s:-1,f:25001});var o=t[0],l=t[1],c=0,A=1,d=2;for(t[0]={s:-1,f:o.f+l.f,l:o,r:l};A!=n-1;)o=t[t[c].f<t[d].f?c++:d++],l=t[c!=A&&t[c].f<t[d].f?c++:d++],t[A++]={s:-1,f:o.f+l.f,l:o,r:l};for(var u=i[0].s,a=1;a<n;++a)i[a].s>u&&(u=i[a].s);var g=new Rn(u+1),m=Hh(t[A-1],g,0);if(m>e){var a=0,_=0,E=m-e,y=1<<E;for(i.sort(function(h,O){return g[O.s]-g[h.s]||h.f-O.f});a<n;++a){var w=i[a].s;if(g[w]>e)_+=y-(1<<m-g[w]),g[w]=e;else break}for(_>>=E;_>0;){var N=i[a].s;g[N]<e?_-=1<<e-g[N]++-1:++a}for(;a>=0&&_;--a){var R=i[a].s;g[R]==e&&(--g[R],++_)}m=e}return{t:new Va(g),l:m}},Hh=function(r,e,t){return r.s==-1?Math.max(Hh(r.l,e,t+1),Hh(r.r,e,t+1)):e[r.s]=t},LN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new Rn(++e),a=0,n=r[0],i=1,s=function(l){t[a++]=l},o=1;o<=e;++o)if(r[o]==n&&o!=e)++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=r[o]}return{c:t.subarray(0,a),n:e}},Ic=function(r,e){for(var t=0,a=0;a<e.length;++a)t+=r[a]*e[a];return t},MN=function(r,e,t){var a=t.length,n=Qh(e+2);r[n]=a&255,r[n+1]=a>>8,r[n+2]=r[n]^255,r[n+3]=r[n+1]^255;for(var i=0;i<a;++i)r[n+i+4]=t[i];return(n+4+a)*8},FN=function(r,e,t,a,n,i,s,o,l,c,A){rs(e,A++,t),++n[256];for(var d=zh(n,15),u=d.t,g=d.l,m=zh(i,15),_=m.t,E=m.l,y=LN(u),w=y.c,N=y.n,R=LN(_),k=R.c,h=R.n,O=new Rn(19),L=0;L<w.length;++L)++O[w[L]&31];for(var L=0;L<k.length;++L)++O[k[L]&31];for(var Y=zh(O,7),K=Y.t,I=Y.l,M=19;M>4&&!K[Lh[M-1]];--M);var V=c+5<<3,Q=Ic(n,Us)+Ic(i,kc)+s,ee=Ic(n,u)+Ic(i,_)+s+14+3*M+Ic(O,K)+2*O[16]+3*O[17]+7*O[18];if(l>=0&&V<=Q&&V<=ee)return MN(e,A,r.subarray(l,l+c));var oe,ie,re,se;if(rs(e,A,1+(ee<Q)),A+=2,ee<Q){oe=Di(u,g,0),ie=u,re=Di(_,E,0),se=_;var Ae=Di(K,I,0);rs(e,A,N-257),rs(e,A+5,h-1),rs(e,A+10,M-4),A+=14;for(var L=0;L<M;++L)rs(e,A+3*L,K[Lh[L]]);A+=3*M;for(var ye=[w,k],B=0;B<2;++B)for(var G=ye[B],L=0;L<G.length;++L){var j=G[L]&31;rs(e,A,Ae[j]),A+=K[j],j>15&&(rs(e,A,G[L]>>5&127),A+=G[L]>>12)}}else oe=Qge,ie=Us,re=Hge,se=kc;for(var L=0;L<o;++L){var $=a[L];if($>255){var j=$>>18&31;Oc(e,A,oe[j+257]),A+=ie[j+257],j>7&&(rs(e,A,$>>23&31),A+=qu[j]);var ne=$&31;Oc(e,A,re[ne]),A+=se[ne],ne>3&&(Oc(e,A,$>>5&8191),A+=Vu[ne])}else Oc(e,A,oe[$]),A+=ie[$]}return Oc(e,A,oe[256]),A+ie[256]},Yge=new Dh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),PN=new Va(0),jge=function(r,e,t,a,n,i){var s=i.z||r.length,o=new Va(a+s+5*(1+Math.ceil(s/7e3))+n),l=o.subarray(a,o.length-n),c=i.l,A=(i.r||0)&7;if(e){A&&(l[0]=i.r>>3);for(var d=Yge[e-1],u=d>>13,g=d&8191,m=(1<<t)-1,_=i.p||new Rn(32768),E=i.h||new Rn(m+1),y=Math.ceil(t/3),w=2*y,N=function(rt){return(r[rt]^r[rt+1]<<y^r[rt+2]<<w)&m},R=new Dh(25e3),k=new Rn(288),h=new Rn(32),O=0,L=0,Y=i.i||0,K=0,I=i.w||0,M=0;Y+2<s;++Y){var V=N(Y),Q=Y&32767,ee=E[V];if(_[Q]=ee,E[V]=Q,I<=Y){var oe=s-Y;if((O>7e3||K>24576)&&(oe>423||!c)){A=FN(r,l,0,R,k,h,L,K,M,Y-M,A),K=O=L=0,M=Y;for(var ie=0;ie<286;++ie)k[ie]=0;for(var ie=0;ie<30;++ie)h[ie]=0}var re=2,se=0,Ae=g,ye=Q-ee&32767;if(oe>2&&V==N(Y-ye))for(var B=Math.min(u,oe)-1,G=Math.min(32767,Y),j=Math.min(258,oe);ye<=G&&--Ae&&Q!=ee;){if(r[Y+re]==r[Y+re-ye]){for(var $=0;$<j&&r[Y+$]==r[Y+$-ye];++$);if($>re){if(re=$,se=ye,$>B)break;for(var ne=Math.min(ye,$-2),ce=0,ie=0;ie<ne;++ie){var _e=Y-ye+ie&32767,me=_[_e],Be=_e-me&32767;Be>ce&&(ce=Be,ee=_e)}}}Q=ee,ee=_[Q],ye+=Q-ee&32767}if(se){R[K++]=268435456|Mh[re]<<18|xN[se];var Oe=Mh[re]&31,ze=xN[se]&31;L+=qu[Oe]+Vu[ze],++k[257+Oe],++h[ze],I=Y+re,++O}else R[K++]=r[Y],++k[r[Y]]}}for(Y=Math.max(Y,I);Y<s;++Y)R[K++]=r[Y],++k[r[Y]];A=FN(r,l,c,R,k,h,L,K,M,Y-M,A),c||(i.r=A&7|l[A/8|0]<<3,A-=7,i.h=E,i.p=_,i.i=Y,i.w=I)}else{for(var Y=i.w||0;Y<s+c;Y+=65535){var He=Y+65535;He>=s&&(l[A/8|0]=c,He=s),A=MN(l,A+1,r.subarray(Y,He))}i.i=s}return DN(o,0,a+Qh(A)+n)},UN=function(){var r=1,e=0;return{p:function(t){for(var a=r,n=e,i=t.length|0,s=0;s!=i;){for(var o=Math.min(s+2655,i);s<o;++s)n+=a+=t[s];a=(a&65535)+15*(a>>16),n=(n&65535)+15*(n>>16)}r=a,e=n},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},Kge=function(r,e,t,a,n){if(!n&&(n={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),s=new Va(i.length+r.length);s.set(i),s.set(r,i.length),r=s,n.w=i.length}return jge(r,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,a,n)},QN=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},Wge=function(r,e){var t=e.level,a=t==0?0:t<6?1:t==9?3:2;if(r[0]=120,r[1]=a<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var n=UN();n.p(e.dictionary),QN(r,2,n.d())}},$ge=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Ai(6,"invalid zlib data"),(r[1]>>5&1)==1&&Ai(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function Gh(r,e){e||(e={});var t=UN();t.p(r);var a=Kge(r,e,e.dictionary?6:2,4);return Wge(a,e),QN(a,a.length-4,t.d()),a}function Xge(r,e){return Vge(r.subarray($ge(r),-4),{i:2},e,e)}var Zge=typeof TextDecoder<"u"&&new TextDecoder,Jge=0;try{Zge.decode(PN,{stream:!0}),Jge=1}catch{}/** @license
|
|
398
398
|
*
|
|
399
399
|
* jsPDF - PDF Document creation from JavaScript
|
|
400
400
|
* Version 3.0.1 Built on 2025-03-17T14:19:36.873Z
|
|
@@ -442,7 +442,7 @@ ${a}
|
|
|
442
442
|
* Contributor(s):
|
|
443
443
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
444
444
|
* kim3er, mfo, alnorth, Flamenco
|
|
445
|
-
*/var xt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function qh(){xt.console&&typeof xt.console.log=="function"&&xt.console.log.apply(xt.console,arguments)}var Cr={log:qh,warn:function(r){xt.console&&(typeof xt.console.warn=="function"?xt.console.warn.apply(xt.console,arguments):qh.call(null,arguments))},error:function(r){xt.console&&(typeof xt.console.error=="function"?xt.console.error.apply(xt.console,arguments):qh(r))}};function Vh(r,e,t){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){wo(a.response,e,t)},a.onerror=function(){Cr.error("could not download file")},a.send()}function zN(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Yu(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var Rc,Yh,wo=xt.saveAs||((typeof window>"u"?"undefined":
|
|
445
|
+
*/var xt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function qh(){xt.console&&typeof xt.console.log=="function"&&xt.console.log.apply(xt.console,arguments)}var Cr={log:qh,warn:function(r){xt.console&&(typeof xt.console.warn=="function"?xt.console.warn.apply(xt.console,arguments):qh.call(null,arguments))},error:function(r){xt.console&&(typeof xt.console.error=="function"?xt.console.error.apply(xt.console,arguments):qh(r))}};function Vh(r,e,t){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){wo(a.response,e,t)},a.onerror=function(){Cr.error("could not download file")},a.send()}function zN(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Yu(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var Rc,Yh,wo=xt.saveAs||((typeof window>"u"?"undefined":cr(window))!=="object"||window!==xt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var a=xt.URL||xt.webkitURL,n=document.createElement("a");e=e||r.name||"download",n.download=e,n.rel="noopener",typeof r=="string"?(n.href=r,n.origin!==location.origin?zN(n.href)?Vh(r,e,t):Yu(n,n.target="_blank"):Yu(n)):(n.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(n.href)},4e4),setTimeout(function(){Yu(n)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(zN(r))Vh(r,e,t);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){Yu(a)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:cr(i)!=="object"&&(Cr.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(r,t),e)}:function(r,e,t,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return Vh(r,e,t);var n=r.type==="application/octet-stream",i=/constructor/i.test(xt.HTMLElement)||xt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":cr(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var A=o.result;A=s?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=A:location=A,a=null},o.readAsDataURL(r)}else{var l=xt.URL||xt.webkitURL,c=l.createObjectURL(r);a?a.location=c:location.href=c,a=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
|
|
446
446
|
* A class to parse color values
|
|
447
447
|
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
448
448
|
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
@@ -472,13 +472,13 @@ ${a}
|
|
|
472
472
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
473
473
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
474
474
|
* http://www.fpdf.org/en/script/script37.php
|
|
475
|
-
*/var VN={print:4,modify:8,copy:16,"annot-forms":32};function bl(r,e,t,a){this.v=1,this.r=2;var n=192;r.forEach(function(o){if(VN.perm!==void 0)throw new Error("Invalid permission: "+o);n+=VN[o]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(e+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=Kh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Wh(this.encryptionKey,this.padding)}function yl(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,a=0;a<t;a++){var n=r.charCodeAt(a);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?e+="#"+("0"+n.toString(16)).slice(-2):e+=r[a]}return e}function YN(r){if(Ar(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,a,n){if(n=n||!1,typeof t!="string"||typeof a!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[a,!!n],i},this.unsubscribe=function(t){for(var a in e)if(e[a][t])return delete e[a][t],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var a=Array.prototype.slice.call(arguments,1),n=[];for(var i in e[t]){var s=e[t][i];try{s[0].apply(r,a)}catch(o){xt.console&&Cr.error("jsPDF PubSub Error",o.message,o)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ku(r){if(!(this instanceof Ku))return new Ku(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function jN(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Co(r,e,t,a,n){if(!(this instanceof Co))return new Co(r,e,t,a,n);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,jN.call(this,a,n)}function vl(r,e,t,a,n){if(!(this instanceof vl))return new vl(r,e,t,a,n);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,jN.call(this,a,n)}function Bt(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],n=arguments[2],i=arguments[3],s=[],o=1,l=16,c="S",A=null;Ar(r=r||{})==="object"&&(t=r.orientation,a=r.unit||a,n=r.format||n,i=r.compress||r.compressPdf||i,(A=r.encryption||null)!==null&&(A.userPassword=A.userPassword||"",A.ownerPassword=A.ownerPassword||"",A.userPermissions=A.userPermissions||[]),o=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(l=r.floatPrecision),c=r.defaultPathOperation||"S"),s=r.filters||(i===!0?["FlateEncode"]:s),a=a||"mm",t=(""+(t||"P")).toLowerCase();var d=r.putOnlyUsedFonts||!1,u={},g={internal:{},__private__:{}};g.__private__.PubSub=YN;var m="1.3",_=g.__private__.getPdfVersion=function(){return m};g.__private__.setPdfVersion=function(b){m=b};var E={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]};g.__private__.getPageFormats=function(){return E};var y=g.__private__.getPageFormat=function(b){return E[b]};n=n||"a4";var w={COMPAT:"compat",ADVANCED:"advanced"},N=w.COMPAT;function R(){this.saveGraphicsState(),Z(new Re(Ze,0,0,-Ze,0,eo()*Ze).toString()+" cm"),this.setFontSize(this.getFontSize()/Ze),c="n",N=w.ADVANCED}function k(){this.restoreGraphicsState(),c="S",N=w.COMPAT}var h=g.__private__.combineFontStyleAndFontWeight=function(b,D){if(b=="bold"&&D=="normal"||b=="bold"&&D==400||b=="normal"&&D=="italic"||b=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(b=D==400||D==="normal"?b==="italic"?"italic":"normal":D!=700&&D!=="bold"||b!=="normal"?(D==700?"bold":D)+""+b:"bold"),b};g.advancedAPI=function(b){var D=N===w.COMPAT;return D&&R.call(this),typeof b!="function"||(b(this),D&&k.call(this)),this},g.compatAPI=function(b){var D=N===w.ADVANCED;return D&&k.call(this),typeof b!="function"||(b(this),D&&R.call(this)),this},g.isAdvancedAPI=function(){return N===w.ADVANCED};var O,L=function(b){if(N!==w.ADVANCED)throw new Error(b+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Y=g.roundToPrecision=g.__private__.roundToPrecision=function(b,D){var X=e||D;if(isNaN(b)||isNaN(X))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return b.toFixed(X).replace(/0+$/,"")};O=g.hpf=g.__private__.hpf=typeof l=="number"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(b,l)}:l==="smart"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(b,b>-1&&b<1?16:5)}:function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(b,16)};var K=g.f2=g.__private__.f2=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f2");return Y(b,2)},I=g.__private__.f3=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f3");return Y(b,3)},M=g.scale=g.__private__.scale=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.scale");return N===w.COMPAT?b*Ze:N===w.ADVANCED?b:void 0},V=function(b){return N===w.COMPAT?eo()-b:N===w.ADVANCED?b:void 0},Q=function(b){return M(V(b))};g.__private__.setPrecision=g.setPrecision=function(b){typeof parseInt(b,10)=="number"&&(e=parseInt(b,10))};var ee,oe="00000000000000000000000000000000",ie=g.__private__.getFileId=function(){return oe},re=g.__private__.setFileId=function(b){return oe=b!==void 0&&/^[a-fA-F0-9]{32}$/.test(b)?b.toUpperCase():oe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),A!==null&&(ot=new bl(A.userPermissions,A.userPassword,A.ownerPassword,oe)),oe};g.setFileId=function(b){return re(b),this},g.getFileId=function(){return ie()};var se=g.__private__.convertDateToPDFDate=function(b){var D=b.getTimezoneOffset(),X=D<0?"+":"-",le=Math.floor(Math.abs(D/60)),be=Math.abs(D%60),ke=[X,j(le),"'",j(be),"'"].join("");return["D:",b.getFullYear(),j(b.getMonth()+1),j(b.getDate()),j(b.getHours()),j(b.getMinutes()),j(b.getSeconds()),ke].join("")},Ae=g.__private__.convertPDFDateToDate=function(b){var D=parseInt(b.substr(2,4),10),X=parseInt(b.substr(6,2),10)-1,le=parseInt(b.substr(8,2),10),be=parseInt(b.substr(10,2),10),ke=parseInt(b.substr(12,2),10),Ve=parseInt(b.substr(14,2),10);return new Date(D,X,le,be,ke,Ve,0)},ye=g.__private__.setCreationDate=function(b){var D;if(b===void 0&&(b=new Date),b instanceof Date)D=se(b);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(b))throw new Error("Invalid argument passed to jsPDF.setCreationDate");D=b}return ee=D},B=g.__private__.getCreationDate=function(b){var D=ee;return b==="jsDate"&&(D=Ae(ee)),D};g.setCreationDate=function(b){return ye(b),this},g.getCreationDate=function(b){return B(b)};var G,j=g.__private__.padd2=function(b){return("0"+parseInt(b)).slice(-2)},$=g.__private__.padd2Hex=function(b){return("00"+(b=b.toString())).substr(b.length)},ne=0,ce=[],_e=[],me=0,Be=[],Oe=[],ze=!1,He=_e,rt=function(){ne=0,me=0,_e=[],ce=[],Be=[],Xa=Tr(),Gr=Tr()};g.__private__.setCustomOutputDestination=function(b){ze=!0,He=b};var Ce=function(b){ze||(He=b)};g.__private__.resetCustomOutputDestination=function(){ze=!1,He=_e};var Z=g.__private__.out=function(b){return b=b.toString(),me+=b.length+1,He.push(b),He},_t=g.__private__.write=function(b){return Z(arguments.length===1?b.toString():Array.prototype.join.call(arguments," "))},tt=g.__private__.getArrayBuffer=function(b){for(var D=b.length,X=new ArrayBuffer(D),le=new Uint8Array(X);D--;)le[D]=b.charCodeAt(D);return X},Fe=[["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]];g.__private__.getStandardFonts=function(){return Fe};var Ye=r.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(b){return Ye=N===w.ADVANCED?b/Ze:b,this};var Ke,We=g.__private__.getFontSize=g.getFontSize=function(){return N===w.COMPAT?Ye:Ye*Ze},Te=r.R2L||!1;g.__private__.setR2L=g.setR2L=function(b){return Te=b,this},g.__private__.getR2L=g.getR2L=function(){return Te};var Me,$e=g.__private__.setZoomMode=function(b){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(b))Ke=b;else if(isNaN(b)){if(D.indexOf(b)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+b+'" is not recognized.');Ke=b}else Ke=parseInt(b,10)};g.__private__.getZoomMode=function(){return Ke};var Xe,At=g.__private__.setPageMode=function(b){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(b)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+b+'" is not recognized.');Me=b};g.__private__.getPageMode=function(){return Me};var Ft=g.__private__.setLayoutMode=function(b){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(b)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+b+'" is not recognized.');Xe=b};g.__private__.getLayoutMode=function(){return Xe},g.__private__.setDisplayMode=g.setDisplayMode=function(b,D,X){return $e(b),Ft(D),At(X),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(b){if(Object.keys(mt).indexOf(b)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[b]},g.__private__.getDocumentProperties=function(){return mt},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(b){for(var D in mt)mt.hasOwnProperty(D)&&b[D]&&(mt[D]=b[D]);return this},g.__private__.setDocumentProperty=function(b,D){if(Object.keys(mt).indexOf(b)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[b]=D};var wt,Ze,rr,Lt,mr,Vt={},Jt={},Qr=[],Wt={},Jr={},Et={},Fr={},Ht=null,te=0,ve=[],Ie=new YN(g),Ct=r.hotfixes||[],$t={},tr={},st=[],Re=function b(D,X,le,be,ke,Ve){if(!(this instanceof b))return new b(D,X,le,be,ke,Ve);isNaN(D)&&(D=1),isNaN(X)&&(X=0),isNaN(le)&&(le=0),isNaN(be)&&(be=1),isNaN(ke)&&(ke=0),isNaN(Ve)&&(Ve=0),this._matrix=[D,X,le,be,ke,Ve]};Object.defineProperty(Re.prototype,"sx",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(Re.prototype,"shy",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(Re.prototype,"shx",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(Re.prototype,"sy",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(Re.prototype,"tx",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(Re.prototype,"ty",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(Re.prototype,"a",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(Re.prototype,"b",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(Re.prototype,"c",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(Re.prototype,"d",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(Re.prototype,"e",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(Re.prototype,"f",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(Re.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Re.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Re.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Re.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Re.prototype.join=function(b){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(b)},Re.prototype.multiply=function(b){var D=b.sx*this.sx+b.shy*this.shx,X=b.sx*this.shy+b.shy*this.sy,le=b.shx*this.sx+b.sy*this.shx,be=b.shx*this.shy+b.sy*this.sy,ke=b.tx*this.sx+b.ty*this.shx+this.tx,Ve=b.tx*this.shy+b.ty*this.sy+this.ty;return new Re(D,X,le,be,ke,Ve)},Re.prototype.decompose=function(){var b=this.sx,D=this.shy,X=this.shx,le=this.sy,be=this.tx,ke=this.ty,Ve=Math.sqrt(b*b+D*D),ut=(b/=Ve)*X+(D/=Ve)*le;X-=b*ut,le-=D*ut;var Nt=Math.sqrt(X*X+le*le);return ut/=Nt,b*(le/=Nt)<D*(X/=Nt)&&(b=-b,D=-D,ut=-ut,Ve=-Ve),{scale:new Re(Ve,0,0,Nt,0,0),translate:new Re(1,0,0,1,be,ke),rotate:new Re(b,D,-D,b,0,0),skew:new Re(1,0,ut,1,0,0)}},Re.prototype.toString=function(b){return this.join(" ")},Re.prototype.inversed=function(){var b=this.sx,D=this.shy,X=this.shx,le=this.sy,be=this.tx,ke=this.ty,Ve=1/(b*le-D*X),ut=le*Ve,Nt=-D*Ve,qt=-X*Ve,Qt=b*Ve;return new Re(ut,Nt,qt,Qt,-ut*be-qt*ke,-Nt*be-Qt*ke)},Re.prototype.applyToPoint=function(b){var D=b.x*this.sx+b.y*this.shx+this.tx,X=b.x*this.shy+b.y*this.sy+this.ty;return new Ml(D,X)},Re.prototype.applyToRectangle=function(b){var D=this.applyToPoint(b),X=this.applyToPoint(new Ml(b.x+b.w,b.y+b.h));return new nA(D.x,D.y,X.x-D.x,X.y-D.y)},Re.prototype.clone=function(){var b=this.sx,D=this.shy,X=this.shx,le=this.sy,be=this.tx,ke=this.ty;return new Re(b,D,X,le,be,ke)},g.Matrix=Re;var St=g.matrixMult=function(b,D){return D.multiply(b)},dr=new Re(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=dr;var Pt=function(b,D){if(!Jr[b]){var X=(D instanceof Co?"Sh":"P")+(Object.keys(Wt).length+1).toString(10);D.id=X,Jr[b]=X,Wt[X]=D,Ie.publish("addPattern",D)}};g.ShadingPattern=Co,g.TilingPattern=vl,g.addShadingPattern=function(b,D){return L("addShadingPattern()"),Pt(b,D),this},g.beginTilingPattern=function(b){L("beginTilingPattern()"),Dd(b.boundingBox[0],b.boundingBox[1],b.boundingBox[2]-b.boundingBox[0],b.boundingBox[3]-b.boundingBox[1],b.matrix)},g.endTilingPattern=function(b,D){L("endTilingPattern()"),D.stream=Oe[G].join(`
|
|
476
|
-
`),Pt(b,D),Ie.publish("endTilingPattern",D),st.pop().restore()};var hr=g.__private__.newObject=function(){var b=Tr();return ba(b,!0),b},Tr=g.__private__.newObjectDeferred=function(){return ne++,ce[ne]=function(){return me},ne},ba=function(b,D){return D=typeof D=="boolean"&&D,ce[b]=me,D&&Z(b+" 0 obj"),b},Yn=g.__private__.newAdditionalObject=function(){var b={objId:Tr(),content:""};return Be.push(b),b},Xa=Tr(),Gr=Tr(),Za=g.__private__.decodeColorString=function(b){var D=b.split(" ");if(D.length!==2||D[1]!=="g"&&D[1]!=="G")D.length===5&&(D[4]==="k"||D[4]==="K")&&(D=[(1-D[0])*(1-D[3]),(1-D[1])*(1-D[3]),(1-D[2])*(1-D[3]),"r"]);else{var X=parseFloat(D[0]);D=[X,X,X,"r"]}for(var le="#",be=0;be<3;be++)le+=("0"+Math.floor(255*parseFloat(D[be])).toString(16)).slice(-2);return le},Ja=g.__private__.encodeColorString=function(b){var D;typeof b=="string"&&(b={ch1:b});var X=b.ch1,le=b.ch2,be=b.ch3,ke=b.ch4,Ve=b.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof X=="string"&&X.charAt(0)!=="#"){var ut=new HN(X);if(ut.ok)X=ut.toHex();else if(!/^\d*\.?\d*$/.test(X))throw new Error('Invalid color "'+X+'" passed to jsPDF.encodeColorString.')}if(typeof X=="string"&&/^#[0-9A-Fa-f]{3}$/.test(X)&&(X="#"+X[1]+X[1]+X[2]+X[2]+X[3]+X[3]),typeof X=="string"&&/^#[0-9A-Fa-f]{6}$/.test(X)){var Nt=parseInt(X.substr(1),16);X=Nt>>16&255,le=Nt>>8&255,be=255&Nt}if(le===void 0||ke===void 0&&X===le&&le===be)if(typeof X=="string")D=X+" "+Ve[0];else switch(b.precision){case 2:D=K(X/255)+" "+Ve[0];break;case 3:default:D=I(X/255)+" "+Ve[0]}else if(ke===void 0||
|
|
475
|
+
*/var VN={print:4,modify:8,copy:16,"annot-forms":32};function bl(r,e,t,a){this.v=1,this.r=2;var n=192;r.forEach(function(o){if(VN.perm!==void 0)throw new Error("Invalid permission: "+o);n+=VN[o]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(e+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=Kh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Wh(this.encryptionKey,this.padding)}function yl(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,a=0;a<t;a++){var n=r.charCodeAt(a);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?e+="#"+("0"+n.toString(16)).slice(-2):e+=r[a]}return e}function YN(r){if(cr(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,a,n){if(n=n||!1,typeof t!="string"||typeof a!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[a,!!n],i},this.unsubscribe=function(t){for(var a in e)if(e[a][t])return delete e[a][t],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var a=Array.prototype.slice.call(arguments,1),n=[];for(var i in e[t]){var s=e[t][i];try{s[0].apply(r,a)}catch(o){xt.console&&Cr.error("jsPDF PubSub Error",o.message,o)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ku(r){if(!(this instanceof Ku))return new Ku(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function jN(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Co(r,e,t,a,n){if(!(this instanceof Co))return new Co(r,e,t,a,n);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,jN.call(this,a,n)}function vl(r,e,t,a,n){if(!(this instanceof vl))return new vl(r,e,t,a,n);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,jN.call(this,a,n)}function Bt(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],n=arguments[2],i=arguments[3],s=[],o=1,l=16,c="S",A=null;cr(r=r||{})==="object"&&(t=r.orientation,a=r.unit||a,n=r.format||n,i=r.compress||r.compressPdf||i,(A=r.encryption||null)!==null&&(A.userPassword=A.userPassword||"",A.ownerPassword=A.ownerPassword||"",A.userPermissions=A.userPermissions||[]),o=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(l=r.floatPrecision),c=r.defaultPathOperation||"S"),s=r.filters||(i===!0?["FlateEncode"]:s),a=a||"mm",t=(""+(t||"P")).toLowerCase();var d=r.putOnlyUsedFonts||!1,u={},g={internal:{},__private__:{}};g.__private__.PubSub=YN;var m="1.3",_=g.__private__.getPdfVersion=function(){return m};g.__private__.setPdfVersion=function(b){m=b};var E={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]};g.__private__.getPageFormats=function(){return E};var y=g.__private__.getPageFormat=function(b){return E[b]};n=n||"a4";var w={COMPAT:"compat",ADVANCED:"advanced"},N=w.COMPAT;function R(){this.saveGraphicsState(),Z(new Re(Ze,0,0,-Ze,0,eo()*Ze).toString()+" cm"),this.setFontSize(this.getFontSize()/Ze),c="n",N=w.ADVANCED}function k(){this.restoreGraphicsState(),c="S",N=w.COMPAT}var h=g.__private__.combineFontStyleAndFontWeight=function(b,D){if(b=="bold"&&D=="normal"||b=="bold"&&D==400||b=="normal"&&D=="italic"||b=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(b=D==400||D==="normal"?b==="italic"?"italic":"normal":D!=700&&D!=="bold"||b!=="normal"?(D==700?"bold":D)+""+b:"bold"),b};g.advancedAPI=function(b){var D=N===w.COMPAT;return D&&R.call(this),typeof b!="function"||(b(this),D&&k.call(this)),this},g.compatAPI=function(b){var D=N===w.ADVANCED;return D&&k.call(this),typeof b!="function"||(b(this),D&&R.call(this)),this},g.isAdvancedAPI=function(){return N===w.ADVANCED};var O,L=function(b){if(N!==w.ADVANCED)throw new Error(b+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Y=g.roundToPrecision=g.__private__.roundToPrecision=function(b,D){var X=e||D;if(isNaN(b)||isNaN(X))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return b.toFixed(X).replace(/0+$/,"")};O=g.hpf=g.__private__.hpf=typeof l=="number"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(b,l)}:l==="smart"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(b,b>-1&&b<1?16:5)}:function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(b,16)};var K=g.f2=g.__private__.f2=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f2");return Y(b,2)},I=g.__private__.f3=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f3");return Y(b,3)},M=g.scale=g.__private__.scale=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.scale");return N===w.COMPAT?b*Ze:N===w.ADVANCED?b:void 0},V=function(b){return N===w.COMPAT?eo()-b:N===w.ADVANCED?b:void 0},Q=function(b){return M(V(b))};g.__private__.setPrecision=g.setPrecision=function(b){typeof parseInt(b,10)=="number"&&(e=parseInt(b,10))};var ee,oe="00000000000000000000000000000000",ie=g.__private__.getFileId=function(){return oe},re=g.__private__.setFileId=function(b){return oe=b!==void 0&&/^[a-fA-F0-9]{32}$/.test(b)?b.toUpperCase():oe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),A!==null&&(ot=new bl(A.userPermissions,A.userPassword,A.ownerPassword,oe)),oe};g.setFileId=function(b){return re(b),this},g.getFileId=function(){return ie()};var se=g.__private__.convertDateToPDFDate=function(b){var D=b.getTimezoneOffset(),X=D<0?"+":"-",le=Math.floor(Math.abs(D/60)),be=Math.abs(D%60),ke=[X,j(le),"'",j(be),"'"].join("");return["D:",b.getFullYear(),j(b.getMonth()+1),j(b.getDate()),j(b.getHours()),j(b.getMinutes()),j(b.getSeconds()),ke].join("")},Ae=g.__private__.convertPDFDateToDate=function(b){var D=parseInt(b.substr(2,4),10),X=parseInt(b.substr(6,2),10)-1,le=parseInt(b.substr(8,2),10),be=parseInt(b.substr(10,2),10),ke=parseInt(b.substr(12,2),10),Ve=parseInt(b.substr(14,2),10);return new Date(D,X,le,be,ke,Ve,0)},ye=g.__private__.setCreationDate=function(b){var D;if(b===void 0&&(b=new Date),b instanceof Date)D=se(b);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(b))throw new Error("Invalid argument passed to jsPDF.setCreationDate");D=b}return ee=D},B=g.__private__.getCreationDate=function(b){var D=ee;return b==="jsDate"&&(D=Ae(ee)),D};g.setCreationDate=function(b){return ye(b),this},g.getCreationDate=function(b){return B(b)};var G,j=g.__private__.padd2=function(b){return("0"+parseInt(b)).slice(-2)},$=g.__private__.padd2Hex=function(b){return("00"+(b=b.toString())).substr(b.length)},ne=0,ce=[],_e=[],me=0,Be=[],Oe=[],ze=!1,He=_e,rt=function(){ne=0,me=0,_e=[],ce=[],Be=[],Xa=Tr(),Gr=Tr()};g.__private__.setCustomOutputDestination=function(b){ze=!0,He=b};var Ce=function(b){ze||(He=b)};g.__private__.resetCustomOutputDestination=function(){ze=!1,He=_e};var Z=g.__private__.out=function(b){return b=b.toString(),me+=b.length+1,He.push(b),He},_t=g.__private__.write=function(b){return Z(arguments.length===1?b.toString():Array.prototype.join.call(arguments," "))},tt=g.__private__.getArrayBuffer=function(b){for(var D=b.length,X=new ArrayBuffer(D),le=new Uint8Array(X);D--;)le[D]=b.charCodeAt(D);return X},Fe=[["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]];g.__private__.getStandardFonts=function(){return Fe};var Ye=r.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(b){return Ye=N===w.ADVANCED?b/Ze:b,this};var Ke,We=g.__private__.getFontSize=g.getFontSize=function(){return N===w.COMPAT?Ye:Ye*Ze},Te=r.R2L||!1;g.__private__.setR2L=g.setR2L=function(b){return Te=b,this},g.__private__.getR2L=g.getR2L=function(){return Te};var Me,$e=g.__private__.setZoomMode=function(b){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(b))Ke=b;else if(isNaN(b)){if(D.indexOf(b)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+b+'" is not recognized.');Ke=b}else Ke=parseInt(b,10)};g.__private__.getZoomMode=function(){return Ke};var Xe,At=g.__private__.setPageMode=function(b){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(b)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+b+'" is not recognized.');Me=b};g.__private__.getPageMode=function(){return Me};var Ft=g.__private__.setLayoutMode=function(b){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(b)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+b+'" is not recognized.');Xe=b};g.__private__.getLayoutMode=function(){return Xe},g.__private__.setDisplayMode=g.setDisplayMode=function(b,D,X){return $e(b),Ft(D),At(X),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(b){if(Object.keys(mt).indexOf(b)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[b]},g.__private__.getDocumentProperties=function(){return mt},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(b){for(var D in mt)mt.hasOwnProperty(D)&&b[D]&&(mt[D]=b[D]);return this},g.__private__.setDocumentProperty=function(b,D){if(Object.keys(mt).indexOf(b)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[b]=D};var wt,Ze,rr,Lt,mr,Vt={},Jt={},Qr=[],Wt={},Jr={},Et={},Fr={},Ht=null,te=0,ve=[],Ie=new YN(g),Ct=r.hotfixes||[],$t={},tr={},st=[],Re=function b(D,X,le,be,ke,Ve){if(!(this instanceof b))return new b(D,X,le,be,ke,Ve);isNaN(D)&&(D=1),isNaN(X)&&(X=0),isNaN(le)&&(le=0),isNaN(be)&&(be=1),isNaN(ke)&&(ke=0),isNaN(Ve)&&(Ve=0),this._matrix=[D,X,le,be,ke,Ve]};Object.defineProperty(Re.prototype,"sx",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(Re.prototype,"shy",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(Re.prototype,"shx",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(Re.prototype,"sy",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(Re.prototype,"tx",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(Re.prototype,"ty",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(Re.prototype,"a",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(Re.prototype,"b",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(Re.prototype,"c",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(Re.prototype,"d",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(Re.prototype,"e",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(Re.prototype,"f",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(Re.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Re.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Re.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Re.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Re.prototype.join=function(b){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(b)},Re.prototype.multiply=function(b){var D=b.sx*this.sx+b.shy*this.shx,X=b.sx*this.shy+b.shy*this.sy,le=b.shx*this.sx+b.sy*this.shx,be=b.shx*this.shy+b.sy*this.sy,ke=b.tx*this.sx+b.ty*this.shx+this.tx,Ve=b.tx*this.shy+b.ty*this.sy+this.ty;return new Re(D,X,le,be,ke,Ve)},Re.prototype.decompose=function(){var b=this.sx,D=this.shy,X=this.shx,le=this.sy,be=this.tx,ke=this.ty,Ve=Math.sqrt(b*b+D*D),ut=(b/=Ve)*X+(D/=Ve)*le;X-=b*ut,le-=D*ut;var Nt=Math.sqrt(X*X+le*le);return ut/=Nt,b*(le/=Nt)<D*(X/=Nt)&&(b=-b,D=-D,ut=-ut,Ve=-Ve),{scale:new Re(Ve,0,0,Nt,0,0),translate:new Re(1,0,0,1,be,ke),rotate:new Re(b,D,-D,b,0,0),skew:new Re(1,0,ut,1,0,0)}},Re.prototype.toString=function(b){return this.join(" ")},Re.prototype.inversed=function(){var b=this.sx,D=this.shy,X=this.shx,le=this.sy,be=this.tx,ke=this.ty,Ve=1/(b*le-D*X),ut=le*Ve,Nt=-D*Ve,qt=-X*Ve,Qt=b*Ve;return new Re(ut,Nt,qt,Qt,-ut*be-qt*ke,-Nt*be-Qt*ke)},Re.prototype.applyToPoint=function(b){var D=b.x*this.sx+b.y*this.shx+this.tx,X=b.x*this.shy+b.y*this.sy+this.ty;return new Ml(D,X)},Re.prototype.applyToRectangle=function(b){var D=this.applyToPoint(b),X=this.applyToPoint(new Ml(b.x+b.w,b.y+b.h));return new nA(D.x,D.y,X.x-D.x,X.y-D.y)},Re.prototype.clone=function(){var b=this.sx,D=this.shy,X=this.shx,le=this.sy,be=this.tx,ke=this.ty;return new Re(b,D,X,le,be,ke)},g.Matrix=Re;var St=g.matrixMult=function(b,D){return D.multiply(b)},dr=new Re(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=dr;var Pt=function(b,D){if(!Jr[b]){var X=(D instanceof Co?"Sh":"P")+(Object.keys(Wt).length+1).toString(10);D.id=X,Jr[b]=X,Wt[X]=D,Ie.publish("addPattern",D)}};g.ShadingPattern=Co,g.TilingPattern=vl,g.addShadingPattern=function(b,D){return L("addShadingPattern()"),Pt(b,D),this},g.beginTilingPattern=function(b){L("beginTilingPattern()"),Dd(b.boundingBox[0],b.boundingBox[1],b.boundingBox[2]-b.boundingBox[0],b.boundingBox[3]-b.boundingBox[1],b.matrix)},g.endTilingPattern=function(b,D){L("endTilingPattern()"),D.stream=Oe[G].join(`
|
|
476
|
+
`),Pt(b,D),Ie.publish("endTilingPattern",D),st.pop().restore()};var hr=g.__private__.newObject=function(){var b=Tr();return ba(b,!0),b},Tr=g.__private__.newObjectDeferred=function(){return ne++,ce[ne]=function(){return me},ne},ba=function(b,D){return D=typeof D=="boolean"&&D,ce[b]=me,D&&Z(b+" 0 obj"),b},Yn=g.__private__.newAdditionalObject=function(){var b={objId:Tr(),content:""};return Be.push(b),b},Xa=Tr(),Gr=Tr(),Za=g.__private__.decodeColorString=function(b){var D=b.split(" ");if(D.length!==2||D[1]!=="g"&&D[1]!=="G")D.length===5&&(D[4]==="k"||D[4]==="K")&&(D=[(1-D[0])*(1-D[3]),(1-D[1])*(1-D[3]),(1-D[2])*(1-D[3]),"r"]);else{var X=parseFloat(D[0]);D=[X,X,X,"r"]}for(var le="#",be=0;be<3;be++)le+=("0"+Math.floor(255*parseFloat(D[be])).toString(16)).slice(-2);return le},Ja=g.__private__.encodeColorString=function(b){var D;typeof b=="string"&&(b={ch1:b});var X=b.ch1,le=b.ch2,be=b.ch3,ke=b.ch4,Ve=b.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof X=="string"&&X.charAt(0)!=="#"){var ut=new HN(X);if(ut.ok)X=ut.toHex();else if(!/^\d*\.?\d*$/.test(X))throw new Error('Invalid color "'+X+'" passed to jsPDF.encodeColorString.')}if(typeof X=="string"&&/^#[0-9A-Fa-f]{3}$/.test(X)&&(X="#"+X[1]+X[1]+X[2]+X[2]+X[3]+X[3]),typeof X=="string"&&/^#[0-9A-Fa-f]{6}$/.test(X)){var Nt=parseInt(X.substr(1),16);X=Nt>>16&255,le=Nt>>8&255,be=255&Nt}if(le===void 0||ke===void 0&&X===le&&le===be)if(typeof X=="string")D=X+" "+Ve[0];else switch(b.precision){case 2:D=K(X/255)+" "+Ve[0];break;case 3:default:D=I(X/255)+" "+Ve[0]}else if(ke===void 0||cr(ke)==="object"){if(ke&&!isNaN(ke.a)&&ke.a===0)return D=["1.","1.","1.",Ve[1]].join(" ");if(typeof X=="string")D=[X,le,be,Ve[1]].join(" ");else switch(b.precision){case 2:D=[K(X/255),K(le/255),K(be/255),Ve[1]].join(" ");break;default:case 3:D=[I(X/255),I(le/255),I(be/255),Ve[1]].join(" ")}}else if(typeof X=="string")D=[X,le,be,ke,Ve[2]].join(" ");else switch(b.precision){case 2:D=[K(X),K(le),K(be),K(ke),Ve[2]].join(" ");break;case 3:default:D=[I(X),I(le),I(be),I(ke),Ve[2]].join(" ")}return D},en=g.__private__.getFilters=function(){return s},ya=g.__private__.putStream=function(b){var D=(b=b||{}).data||"",X=b.filters||en(),le=b.alreadyAppliedFilters||[],be=b.addLength1||!1,ke=D.length,Ve=b.objectId,ut=function(rn){return rn};if(A!==null&&Ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");A!==null&&(ut=ot.encryptor(Ve,0));var Nt={};X===!0&&(X=["FlateEncode"]);var qt=b.additionalKeyValues||[],Qt=(Nt=Bt.API.processDataByFilters!==void 0?Bt.API.processDataByFilters(D,X):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(le)?le.join(" "):le.toString());if(Nt.data.length!==0&&(qt.push({key:"Length",value:Nt.data.length}),be===!0&&qt.push({key:"Length1",value:ke})),Qt.length!=0)if(Qt.split("/").length-1==1)qt.push({key:"Filter",value:Qt});else{qt.push({key:"Filter",value:"["+Qt+"]"});for(var nr=0;nr<qt.length;nr+=1)if(qt[nr].key==="DecodeParms"){for(var jr=[],ta=0;ta<Nt.reverseChain.split("/").length-1;ta+=1)jr.push("null");jr.push(qt[nr].value),qt[nr].value="["+jr.join(" ")+"]"}}Z("<<");for(var Ea=0;Ea<qt.length;Ea++)Z("/"+qt[Ea].key+" "+qt[Ea].value);Z(">>"),Nt.data.length!==0&&(Z("stream"),Z(ut(Nt.data)),Z("endstream"))},Sn=g.__private__.putPage=function(b){var D=b.number,X=b.data,le=b.objId,be=b.contentsObjId;ba(le,!0),Z("<</Type /Page"),Z("/Parent "+b.rootDictionaryObjId+" 0 R"),Z("/Resources "+b.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(O(b.mediaBox.bottomLeftX))+" "+parseFloat(O(b.mediaBox.bottomLeftY))+" "+O(b.mediaBox.topRightX)+" "+O(b.mediaBox.topRightY)+"]"),b.cropBox!==null&&Z("/CropBox ["+O(b.cropBox.bottomLeftX)+" "+O(b.cropBox.bottomLeftY)+" "+O(b.cropBox.topRightX)+" "+O(b.cropBox.topRightY)+"]"),b.bleedBox!==null&&Z("/BleedBox ["+O(b.bleedBox.bottomLeftX)+" "+O(b.bleedBox.bottomLeftY)+" "+O(b.bleedBox.topRightX)+" "+O(b.bleedBox.topRightY)+"]"),b.trimBox!==null&&Z("/TrimBox ["+O(b.trimBox.bottomLeftX)+" "+O(b.trimBox.bottomLeftY)+" "+O(b.trimBox.topRightX)+" "+O(b.trimBox.topRightY)+"]"),b.artBox!==null&&Z("/ArtBox ["+O(b.artBox.bottomLeftX)+" "+O(b.artBox.bottomLeftY)+" "+O(b.artBox.topRightX)+" "+O(b.artBox.topRightY)+"]"),typeof b.userUnit=="number"&&b.userUnit!==1&&Z("/UserUnit "+b.userUnit),Ie.publish("putPage",{objId:le,pageContext:ve[D],pageNumber:D,page:X}),Z("/Contents "+be+" 0 R"),Z(">>"),Z("endobj");var ke=X.join(`
|
|
477
477
|
`);return N===w.ADVANCED&&(ke+=`
|
|
478
478
|
Q`),ba(be,!0),ya({data:ke,filters:en(),objectId:be}),Z("endobj"),le},ht=g.__private__.putPages=function(){var b,D,X=[];for(b=1;b<=te;b++)ve[b].objId=Tr(),ve[b].contentsObjId=Tr();for(b=1;b<=te;b++)X.push(Sn({number:b,data:Oe[b],objId:ve[b].objId,contentsObjId:ve[b].contentsObjId,mediaBox:ve[b].mediaBox,cropBox:ve[b].cropBox,bleedBox:ve[b].bleedBox,trimBox:ve[b].trimBox,artBox:ve[b].artBox,userUnit:ve[b].userUnit,rootDictionaryObjId:Xa,resourceDictionaryObjId:Gr}));ba(Xa,!0),Z("<</Type /Pages");var le="/Kids [";for(D=0;D<te;D++)le+=X[D]+" 0 R ";Z(le+"]"),Z("/Count "+te),Z(">>"),Z("endobj"),Ie.publish("postPutPages")},pe=function(b){Ie.publish("putFont",{font:b,out:Z,newObject:hr,putStream:ya}),b.isAlreadyPutted!==!0&&(b.objectNumber=hr(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+yl(b.postScriptName)),Z("/Subtype /Type1"),typeof b.encoding=="string"&&Z("/Encoding /"+b.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},Qe=function(){for(var b in Vt)Vt.hasOwnProperty(b)&&(d===!1||d===!0&&u.hasOwnProperty(b))&&pe(Vt[b])},dt=function(b){b.objectNumber=hr();var D=[];D.push({key:"Type",value:"/XObject"}),D.push({key:"Subtype",value:"/Form"}),D.push({key:"BBox",value:"["+[O(b.x),O(b.y),O(b.x+b.width),O(b.y+b.height)].join(" ")+"]"}),D.push({key:"Matrix",value:"["+b.matrix.toString()+"]"});var X=b.pages[1].join(`
|
|
479
479
|
`);ya({data:X,additionalKeyValues:D,objectId:b.objectNumber}),Z("endobj")},ar=function(){for(var b in $t)$t.hasOwnProperty(b)&&dt($t[b])},qr=function(b,D){var X,le=[],be=1/(D-1);for(X=0;X<1;X+=be)le.push(X);if(le.push(1),b[0].offset!=0){var ke={offset:0,color:b[0].color};b.unshift(ke)}if(b[b.length-1].offset!=1){var Ve={offset:1,color:b[b.length-1].color};b.push(Ve)}for(var ut="",Nt=0,qt=0;qt<le.length;qt++){for(X=le[qt];X>b[Nt+1].offset;)Nt++;var Qt=b[Nt].offset,nr=(X-Qt)/(b[Nt+1].offset-Qt),jr=b[Nt].color,ta=b[Nt+1].color;ut+=$(Math.round((1-nr)*jr[0]+nr*ta[0]).toString(16))+$(Math.round((1-nr)*jr[1]+nr*ta[1]).toString(16))+$(Math.round((1-nr)*jr[2]+nr*ta[2]).toString(16))}return ut.trim()},Vr=function(b,D){D||(D=21);var X=hr(),le=qr(b.colors,D),be=[];be.push({key:"FunctionType",value:"0"}),be.push({key:"Domain",value:"[0.0 1.0]"}),be.push({key:"Size",value:"["+D+"]"}),be.push({key:"BitsPerSample",value:"8"}),be.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),be.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ya({data:le,additionalKeyValues:be,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:X}),Z("endobj"),b.objectNumber=hr(),Z("<< /ShadingType "+b.type),Z("/ColorSpace /DeviceRGB");var ke="/Coords ["+O(parseFloat(b.coords[0]))+" "+O(parseFloat(b.coords[1]))+" ";b.type===2?ke+=O(parseFloat(b.coords[2]))+" "+O(parseFloat(b.coords[3])):ke+=O(parseFloat(b.coords[2]))+" "+O(parseFloat(b.coords[3]))+" "+O(parseFloat(b.coords[4]))+" "+O(parseFloat(b.coords[5])),Z(ke+="]"),b.matrix&&Z("/Matrix ["+b.matrix.toString()+"]"),Z("/Function "+X+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},va=function(b,D){var X=Tr(),le=hr();D.push({resourcesOid:X,objectOid:le}),b.objectNumber=le;var be=[];be.push({key:"Type",value:"/Pattern"}),be.push({key:"PatternType",value:"1"}),be.push({key:"PaintType",value:"1"}),be.push({key:"TilingType",value:"1"}),be.push({key:"BBox",value:"["+b.boundingBox.map(O).join(" ")+"]"}),be.push({key:"XStep",value:O(b.xStep)}),be.push({key:"YStep",value:O(b.yStep)}),be.push({key:"Resources",value:X+" 0 R"}),b.matrix&&be.push({key:"Matrix",value:"["+b.matrix.toString()+"]"}),ya({data:b.stream,additionalKeyValues:be,objectId:b.objectNumber}),Z("endobj")},ea=function(b){var D;for(D in Wt)Wt.hasOwnProperty(D)&&(Wt[D]instanceof Co?Vr(Wt[D]):Wt[D]instanceof vl&&va(Wt[D],b))},jn=function(b){for(var D in b.objectNumber=hr(),Z("<<"),b)switch(D){case"opacity":Z("/ca "+K(b[D]));break;case"stroke-opacity":Z("/CA "+K(b[D]))}Z(">>"),Z("endobj")},Pe=function(){var b;for(b in Et)Et.hasOwnProperty(b)&&jn(Et[b])},yt=function(){for(var b in Z("/XObject <<"),$t)$t.hasOwnProperty(b)&&$t[b].objectNumber>=0&&Z("/"+b+" "+$t[b].objectNumber+" 0 R");Ie.publish("putXobjectDict"),Z(">>")},Yt=function(){ot.oid=hr(),Z("<<"),Z("/Filter /Standard"),Z("/V "+ot.v),Z("/R "+ot.r),Z("/U <"+ot.toHexString(ot.U)+">"),Z("/O <"+ot.toHexString(ot.O)+">"),Z("/P "+ot.P),Z(">>"),Z("endobj")},pr=function(){for(var b in Z("/Font <<"),Vt)Vt.hasOwnProperty(b)&&(d===!1||d===!0&&u.hasOwnProperty(b))&&Z("/"+b+" "+Vt[b].objectNumber+" 0 R");Z(">>")},Yr=function(){if(Object.keys(Wt).length>0){for(var b in Z("/Shading <<"),Wt)Wt.hasOwnProperty(b)&&Wt[b]instanceof Co&&Wt[b].objectNumber>=0&&Z("/"+b+" "+Wt[b].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),Z(">>")}},Ua=function(b){if(Object.keys(Wt).length>0){for(var D in Z("/Pattern <<"),Wt)Wt.hasOwnProperty(D)&&Wt[D]instanceof g.TilingPattern&&Wt[D].objectNumber>=0&&Wt[D].objectNumber<b&&Z("/"+D+" "+Wt[D].objectNumber+" 0 R");Ie.publish("putTilingPatternDict"),Z(">>")}},Kn=function(){if(Object.keys(Et).length>0){var b;for(b in Z("/ExtGState <<"),Et)Et.hasOwnProperty(b)&&Et[b].objectNumber>=0&&Z("/"+b+" "+Et[b].objectNumber+" 0 R");Ie.publish("putGStateDict"),Z(">>")}},Br=function(b){ba(b.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),pr(),Yr(),Ua(b.objectOid),Kn(),yt(),Z(">>"),Z("endobj")},Ra=function(){var b=[];Qe(),Pe(),ar(),ea(b),Ie.publish("putResources"),b.forEach(Br),Br({resourcesOid:Gr,objectOid:Number.MAX_SAFE_INTEGER}),Ie.publish("postPutResources")},pn=function(){Ie.publish("putAdditionalObjects");for(var b=0;b<Be.length;b++){var D=Be[b];ba(D.objId,!0),Z(D.content),Z("endobj")}Ie.publish("postPutAdditionalObjects")},Uo=function(b){Jt[b.fontName]=Jt[b.fontName]||{},Jt[b.fontName][b.fontStyle]=b.id},js=function(b,D,X,le,be){var ke={id:"F"+(Object.keys(Vt).length+1).toString(10),postScriptName:b,fontName:D,fontStyle:X,encoding:le,isStandardFont:be||!1,metadata:{}};return Ie.publish("addFont",{font:ke,instance:this}),Vt[ke.id]=ke,Uo(ke),ke.id},Rl=function(b){for(var D=0,X=Fe.length;D<X;D++){var le=js.call(this,b[D][0],b[D][1],b[D][2],Fe[D][3],!0);d===!1&&(u[le]=!0);var be=b[D][0].split("-");Uo({id:le,fontName:be[0],fontStyle:be[1]||""})}Ie.publish("addFonts",{fonts:Vt,dictionary:Jt})},Bn=function(b){return b.foo=function(){try{return b.apply(this,arguments)}catch(le){var D=le.stack||"";~D.indexOf(" at ")&&(D=D.split(" at ")[1]);var X="Error in function "+D.split(`
|
|
480
480
|
`)[0].split("<")[0]+": "+le.message;if(!xt.console)throw new Error(X);xt.console.error(X,le),xt.alert&&alert(X)}},b.foo.bar=b,b.foo},Ks=function(b,D){var X,le,be,ke,Ve,ut,Nt,qt,Qt;if(be=(D=D||{}).sourceEncoding||"Unicode",Ve=D.outputEncoding,(D.autoencode||Ve)&&Vt[wt].metadata&&Vt[wt].metadata[be]&&Vt[wt].metadata[be].encoding&&(ke=Vt[wt].metadata[be].encoding,!Ve&&Vt[wt].encoding&&(Ve=Vt[wt].encoding),!Ve&&ke.codePages&&(Ve=ke.codePages[0]),typeof Ve=="string"&&(Ve=ke[Ve]),Ve)){for(Nt=!1,ut=[],X=0,le=b.length;X<le;X++)(qt=Ve[b.charCodeAt(X)])?ut.push(String.fromCharCode(qt)):ut.push(b[X]),ut[X].charCodeAt(0)>>8&&(Nt=!0);b=ut.join("")}for(X=b.length;Nt===void 0&&X!==0;)b.charCodeAt(X-1)>>8&&(Nt=!0),X--;if(!Nt)return b;for(ut=D.noBOM?[]:[254,255],X=0,le=b.length;X<le;X++){if((Qt=(qt=b.charCodeAt(X))>>8)>>8)throw new Error("Character at position "+X+" of string '"+b+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ut.push(Qt),ut.push(qt-(Qt<<8))}return String.fromCharCode.apply(void 0,ut)},tn=g.__private__.pdfEscape=g.pdfEscape=function(b,D){return Ks(b,D).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qo=g.__private__.beginPage=function(b){Oe[++te]=[],ve[te]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(b[0]),topRightY:Number(b[1])}},gn(te),Ce(Oe[G])},cs=function(b,D){var X,le,be;switch(t=D||t,typeof b=="string"&&(X=y(b.toLowerCase()),Array.isArray(X)&&(le=X[0],be=X[1])),Array.isArray(b)&&(le=b[0]*Ze,be=b[1]*Ze),isNaN(le)&&(le=n[0],be=n[1]),(le>14400||be>14400)&&(Cr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),le=Math.min(14400,le),be=Math.min(14400,be)),n=[le,be],t.substr(0,1)){case"l":be>le&&(n=[be,le]);break;case"p":le>be&&(n=[be,le])}Qo(n),Od(eA),Z(vi),rA!==0&&Z(rA+" J"),aA!==0&&Z(aA+" j"),Ie.publish("addPage",{pageNumber:te})},Bl=function(b){b>0&&b<=te&&(Oe.splice(b,1),ve.splice(b,1),te--,G>te&&(G=te),this.setPage(G))},gn=function(b){b>0&&b<=te&&(G=b)},$c=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return Oe.length-1},Ws=function(b,D,X){var le,be=void 0;return X=X||{},b=b!==void 0?b:Vt[wt].fontName,D=D!==void 0?D:Vt[wt].fontStyle,le=b.toLowerCase(),Jt[le]!==void 0&&Jt[le][D]!==void 0?be=Jt[le][D]:Jt[b]!==void 0&&Jt[b][D]!==void 0?be=Jt[b][D]:X.disableWarning===!1&&Cr.warn("Unable to look up font label for font '"+b+"', '"+D+"'. Refer to getFontList() for available fonts."),be||X.noFallback||(be=Jt.times[D])==null&&(be=Jt.times.normal),be},Mt=g.__private__.putInfo=function(){var b=hr(),D=function(le){return le};for(var X in A!==null&&(D=ot.encryptor(b,0)),Z("<<"),Z("/Producer ("+tn(D("jsPDF "+Bt.version))+")"),mt)mt.hasOwnProperty(X)&&mt[X]&&Z("/"+X.substr(0,1).toUpperCase()+X.substr(1)+" ("+tn(D(mt[X]))+")");Z("/CreationDate ("+tn(D(ee))+")"),Z(">>"),Z("endobj")},$s=g.__private__.putCatalog=function(b){var D=(b=b||{}).rootDictionaryObjId||Xa;switch(hr(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+D+" 0 R"),Ke||(Ke="fullwidth"),Ke){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 X=""+Ke;X.substr(X.length-1)==="%"&&(Ke=parseInt(Ke)/100),typeof Ke=="number"&&Z("/OpenAction [3 0 R /XYZ null null "+K(Ke)+"]")}switch(Xe||(Xe="continuous"),Xe){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")}Me&&Z("/PageMode /"+Me),Ie.publish("putCatalog"),Z(">>"),Z("endobj")},da=g.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(ne+1)),Z("/Root "+ne+" 0 R"),Z("/Info "+(ne-1)+" 0 R"),A!==null&&Z("/Encrypt "+ot.oid+" 0 R"),Z("/ID [ <"+oe+"> <"+oe+"> ]"),Z(">>")},br=g.__private__.putHeader=function(){Z("%PDF-"+m),Z("%ºß¬à")},Xs=g.__private__.putXRef=function(){var b="0000000000";Z("xref"),Z("0 "+(ne+1)),Z("0000000000 65535 f ");for(var D=1;D<=ne;D++)typeof ce[D]=="function"?Z((b+ce[D]()).slice(-10)+" 00000 n "):ce[D]!==void 0?Z((b+ce[D]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},Qa=g.__private__.buildDocument=function(){rt(),Ce(_e),Ie.publish("buildDocument"),br(),ht(),pn(),Ra(),A!==null&&Yt(),Mt(),$s();var b=me;return Xs(),da(),Z("startxref"),Z(""+b),Z("%%EOF"),Ce(Oe[G]),_e.join(`
|
|
481
|
-
`)},Qi=g.__private__.getBlob=function(b){return new Blob([tt(b)],{type:"application/pdf"})},zi=g.output=g.__private__.output=Bn(function(b,D){switch(typeof(D=D||{})=="string"?D={filename:D}:D.filename=D.filename||"generated.pdf",b){case void 0:return Qa();case"save":g.save(D.filename);break;case"arraybuffer":return tt(Qa());case"blob":return Qi(Qa());case"bloburi":case"bloburl":if(xt.URL!==void 0&&typeof xt.URL.createObjectURL=="function")return xt.URL&&xt.URL.createObjectURL(Qi(Qa()))||void 0;Cr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var X="",le=Qa();try{X=Yh(le)}catch{X=Yh(unescape(encodeURIComponent(le)))}return"data:application/pdf;filename="+D.filename+";base64,"+X;case"pdfobjectnewwindow":if(Object.prototype.toString.call(xt)==="[object Window]"){var be="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ke=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';D.pdfObjectUrl&&(be=D.pdfObjectUrl,ke="");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+be+'"'+ke+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(D)+");<\/script></body></html>",ut=xt.open();return ut!==null&&ut.document.write(Ve),ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(xt)==="[object Window]"){var Nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(D.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+D.filename+'" width="500px" height="400px" /></body></html>',qt=xt.open();if(qt!==null){qt.document.write(Nt);var Qt=this;qt.document.documentElement.querySelector("#pdfViewer").onload=function(){qt.document.title=D.filename,qt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Qt.output("bloburl"))}}return qt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(xt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var nr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",D)+'"></iframe></body></html>',jr=xt.open();if(jr!==null&&(jr.document.write(nr),jr.document.title=D.filename),jr||typeof safari>"u")return jr;break;case"datauri":case"dataurl":return xt.document.location.href=this.output("datauristring",D);default:return null}}),nt=function(b){return Array.isArray(Ct)===!0&&Ct.indexOf(b)>-1};switch(a){case"pt":Ze=1;break;case"mm":Ze=72/25.4;break;case"cm":Ze=72/2.54;break;case"in":Ze=72;break;case"px":Ze=nt("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ze=12;break;case"ex":Ze=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Ze=a}var ot=null;ye(),re();var Gt=function(b){return A!==null?ot.encryptor(b,0):function(D){return D}},sr=g.__private__.getPageInfo=g.getPageInfo=function(b){if(isNaN(b)||b%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ve[b].objId,pageNumber:b,pageContext:ve[b]}},vt=g.__private__.getPageInfoByObjId=function(b){if(isNaN(b)||b%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var D in ve)if(ve[D].objId===b)break;return sr(D)},xn=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:ve[G].objId,pageNumber:G,pageContext:ve[G]}};g.addPage=function(){return cs.apply(this,arguments),this},g.setPage=function(){return gn.apply(this,arguments),Ce.call(this,Oe[G]),this},g.insertPage=function(b){return this.addPage(),this.movePage(G,b),this},g.movePage=function(b,D){var X,le;if(b>D){X=Oe[b],le=ve[b];for(var be=b;be>D;be--)Oe[be]=Oe[be-1],ve[be]=ve[be-1];Oe[D]=X,ve[D]=le,this.setPage(D)}else if(b<D){X=Oe[b],le=ve[b];for(var ke=b;ke<D;ke++)Oe[ke]=Oe[ke+1],ve[ke]=ve[ke+1];Oe[D]=X,ve[D]=le,this.setPage(D)}return this},g.deletePage=function(){return Bl.apply(this,arguments),this},g.__private__.text=g.text=function(b,D,X,le,be){var ke,Ve,ut,Nt,qt,Qt,nr,jr,ta,Ea=(le=le||{}).scope||this;if(typeof b=="number"&&typeof D=="number"&&(typeof X=="string"||Array.isArray(X))){var rn=X;X=D,D=b,b=rn}if(arguments[3]instanceof Re?(L("The transform parameter of text() with a Matrix value"),ta=be):(ut=arguments[4],Nt=arguments[5],
|
|
481
|
+
`)},Qi=g.__private__.getBlob=function(b){return new Blob([tt(b)],{type:"application/pdf"})},zi=g.output=g.__private__.output=Bn(function(b,D){switch(typeof(D=D||{})=="string"?D={filename:D}:D.filename=D.filename||"generated.pdf",b){case void 0:return Qa();case"save":g.save(D.filename);break;case"arraybuffer":return tt(Qa());case"blob":return Qi(Qa());case"bloburi":case"bloburl":if(xt.URL!==void 0&&typeof xt.URL.createObjectURL=="function")return xt.URL&&xt.URL.createObjectURL(Qi(Qa()))||void 0;Cr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var X="",le=Qa();try{X=Yh(le)}catch{X=Yh(unescape(encodeURIComponent(le)))}return"data:application/pdf;filename="+D.filename+";base64,"+X;case"pdfobjectnewwindow":if(Object.prototype.toString.call(xt)==="[object Window]"){var be="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ke=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';D.pdfObjectUrl&&(be=D.pdfObjectUrl,ke="");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+be+'"'+ke+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(D)+");<\/script></body></html>",ut=xt.open();return ut!==null&&ut.document.write(Ve),ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(xt)==="[object Window]"){var Nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(D.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+D.filename+'" width="500px" height="400px" /></body></html>',qt=xt.open();if(qt!==null){qt.document.write(Nt);var Qt=this;qt.document.documentElement.querySelector("#pdfViewer").onload=function(){qt.document.title=D.filename,qt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Qt.output("bloburl"))}}return qt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(xt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var nr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",D)+'"></iframe></body></html>',jr=xt.open();if(jr!==null&&(jr.document.write(nr),jr.document.title=D.filename),jr||typeof safari>"u")return jr;break;case"datauri":case"dataurl":return xt.document.location.href=this.output("datauristring",D);default:return null}}),nt=function(b){return Array.isArray(Ct)===!0&&Ct.indexOf(b)>-1};switch(a){case"pt":Ze=1;break;case"mm":Ze=72/25.4;break;case"cm":Ze=72/2.54;break;case"in":Ze=72;break;case"px":Ze=nt("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ze=12;break;case"ex":Ze=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Ze=a}var ot=null;ye(),re();var Gt=function(b){return A!==null?ot.encryptor(b,0):function(D){return D}},sr=g.__private__.getPageInfo=g.getPageInfo=function(b){if(isNaN(b)||b%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ve[b].objId,pageNumber:b,pageContext:ve[b]}},vt=g.__private__.getPageInfoByObjId=function(b){if(isNaN(b)||b%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var D in ve)if(ve[D].objId===b)break;return sr(D)},xn=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:ve[G].objId,pageNumber:G,pageContext:ve[G]}};g.addPage=function(){return cs.apply(this,arguments),this},g.setPage=function(){return gn.apply(this,arguments),Ce.call(this,Oe[G]),this},g.insertPage=function(b){return this.addPage(),this.movePage(G,b),this},g.movePage=function(b,D){var X,le;if(b>D){X=Oe[b],le=ve[b];for(var be=b;be>D;be--)Oe[be]=Oe[be-1],ve[be]=ve[be-1];Oe[D]=X,ve[D]=le,this.setPage(D)}else if(b<D){X=Oe[b],le=ve[b];for(var ke=b;ke<D;ke++)Oe[ke]=Oe[ke+1],ve[ke]=ve[ke+1];Oe[D]=X,ve[D]=le,this.setPage(D)}return this},g.deletePage=function(){return Bl.apply(this,arguments),this},g.__private__.text=g.text=function(b,D,X,le,be){var ke,Ve,ut,Nt,qt,Qt,nr,jr,ta,Ea=(le=le||{}).scope||this;if(typeof b=="number"&&typeof D=="number"&&(typeof X=="string"||Array.isArray(X))){var rn=X;X=D,D=b,b=rn}if(arguments[3]instanceof Re?(L("The transform parameter of text() with a Matrix value"),ta=be):(ut=arguments[4],Nt=arguments[5],cr(nr=arguments[3])==="object"&&nr!==null||(typeof ut=="string"&&(Nt=ut,ut=null),typeof nr=="string"&&(Nt=nr,nr=null),typeof nr=="number"&&(ut=nr,nr=null),le={flags:nr,angle:ut,align:Nt})),isNaN(D)||isNaN(X)||b==null)throw new Error("Invalid arguments passed to jsPDF.text");if(b.length===0)return Ea;var Ba="",Ei=!1,Dn=typeof le.lineHeightFactor=="number"?le.lineHeightFactor:Ho,Gi=Ea.internal.scaleFactor;function Ld(xr){return xr=xr.split(" ").join(Array(le.TabLen||9).join(" ")),tn(xr,nr)}function lA(xr){for(var Dr,ga=xr.concat(),Na=[],gs=ga.length;gs--;)typeof(Dr=ga.shift())=="string"?Na.push(Dr):Array.isArray(xr)&&(Dr.length===1||Dr[1]===void 0&&Dr[2]===void 0)?Na.push(Dr[0]):Na.push([Dr[0],Dr[1],Dr[2]]);return Na}function cA(xr,Dr){var ga;if(typeof xr=="string")ga=Dr(xr)[0];else if(Array.isArray(xr)){for(var Na,gs,mA=xr.concat(),jl=[],Qd=mA.length;Qd--;)typeof(Na=mA.shift())=="string"?jl.push(Dr(Na)[0]):Array.isArray(Na)&&typeof Na[0]=="string"&&(gs=Dr(Na[0],Na[1],Na[2]),jl.push([gs[0],gs[1],gs[2]]));ga=jl}return ga}var Pl=!1,AA=!0;if(typeof b=="string")Pl=!0;else if(Array.isArray(b)){var uA=b.concat();Ve=[];for(var Ul,za=uA.length;za--;)(typeof(Ul=uA.shift())!="string"||Array.isArray(Ul)&&typeof Ul[0]!="string")&&(AA=!1);Pl=AA}if(Pl===!1)throw new Error('Type of text must be string or Array. "'+b+'" is not recognized.');typeof b=="string"&&(b=b.match(/[\r?\n]/)?b.split(/\r\n|\r|\n/g):[b]);var Ql=Ye/Ea.internal.scaleFactor,zl=Ql*(Dn-1);switch(le.baseline){case"bottom":X-=zl;break;case"top":X+=Ql-zl;break;case"hanging":X+=Ql-2*zl;break;case"middle":X+=Ql/2-zl}if((Qt=le.maxWidth||0)>0&&(typeof b=="string"?b=Ea.splitTextToSize(b,Qt):Object.prototype.toString.call(b)==="[object Array]"&&(b=b.reduce(function(xr,Dr){return xr.concat(Ea.splitTextToSize(Dr,Qt))},[]))),ke={text:b,x:D,y:X,options:le,mutex:{pdfEscape:tn,activeFontKey:wt,fonts:Vt,activeFontSize:Ye}},Ie.publish("preProcessText",ke),b=ke.text,ut=(le=ke.options).angle,!(ta instanceof Re)&&ut&&typeof ut=="number"){ut*=Math.PI/180,le.rotationDirection===0&&(ut=-ut),N===w.ADVANCED&&(ut=-ut);var Hl=Math.cos(ut),dA=Math.sin(ut);ta=new Re(Hl,dA,-dA,Hl,0,0)}else ut&&ut instanceof Re&&(ta=ut);N!==w.ADVANCED||ta||(ta=dr),(qt=le.charSpace||Ll)!==void 0&&(Ba+=O(M(qt))+` Tc
|
|
482
482
|
`,this.setCharSpace(this.getCharSpace()||0)),(jr=le.horizontalScale)!==void 0&&(Ba+=O(100*jr)+` Tz
|
|
483
483
|
`),le.lang;var wn=-1,zv=le.renderingMode!==void 0?le.renderingMode:le.stroke,pA=Ea.internal.getCurrentPageInfo().pageContext;switch(zv){case 0:case!1:case"fill":wn=0;break;case 1:case!0:case"stroke":wn=1;break;case 2:case"fillThenStroke":wn=2;break;case 3:case"invisible":wn=3;break;case 4:case"fillAndAddForClipping":wn=4;break;case 5:case"strokeAndAddPathForClipping":wn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":wn=6;break;case 7:case"addToPathForClipping":wn=7}var Md=pA.usedRenderingMode!==void 0?pA.usedRenderingMode:-1;wn!==-1?Ba+=wn+` Tr
|
|
484
484
|
`:Md!==-1&&(Ba+=`0 Tr
|
|
@@ -492,17 +492,17 @@ T* `):b.join(` Tj
|
|
|
492
492
|
/`;return Jn+=wt+" "+Ye+` Tf
|
|
493
493
|
`,Jn+=O(Ye*Dn)+` TL
|
|
494
494
|
`,Jn+=Go+`
|
|
495
|
-
`,Jn+=Ba,Jn+=b,Z(Jn+="ET"),u[wt]=!0,Ea};var Xc=g.__private__.clip=g.clip=function(b){return Z(b==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Xc("evenodd")},g.__private__.discardPath=g.discardPath=function(){return Z("n"),this};var Wn=g.__private__.isValidStyle=function(b){var D=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(b)!==-1&&(D=!0),D};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(b){return Wn(b)&&(c=b),this};var Nd=g.__private__.getStyle=g.getStyle=function(b){var D=c;switch(b){case"D":case"S":D="S";break;case"F":D="f";break;case"FD":case"DF":D="B";break;case"f":case"f*":case"B":case"B*":D=b}return D},kd=g.close=function(){return Z("h"),this};g.stroke=function(){return Z("S"),this},g.fill=function(b){return xl("f",b),this},g.fillEvenOdd=function(b){return xl("f*",b),this},g.fillStroke=function(b){return xl("B",b),this},g.fillStrokeEvenOdd=function(b){return xl("B*",b),this};var xl=function(b,D){Ar(D)==="object"?Dv(D,b):Z(b)},Zc=function(b){b===null||N===w.ADVANCED&&b===void 0||(b=Nd(b),Z(b))};function xv(b,D,X,le,be){var ke=new vl(D||this.boundingBox,X||this.xStep,le||this.yStep,this.gState,be||this.matrix);ke.stream=this.stream;var Ve=b+"$$"+this.cloneIndex+++"$$";return Pt(Ve,ke),ke}var Dv=function(b,D){var X=Jr[b.key],le=Wt[X];if(le instanceof Co)Z("q"),Z(Lv(D)),le.gState&&g.setGState(le.gState),Z(b.matrix.toString()+" cm"),Z("/"+X+" sh"),Z("Q");else if(le instanceof vl){var be=new Re(1,0,0,-1,0,eo());b.matrix&&(be=be.multiply(b.matrix||dr),X=xv.call(le,b.key,b.boundingBox,b.xStep,b.yStep,be).id),Z("q"),Z("/Pattern cs"),Z("/"+X+" scn"),le.gState&&g.setGState(le.gState),Z(D),Z("Q")}},Lv=function(b){switch(b){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Jc=g.moveTo=function(b,D){return Z(O(M(b))+" "+O(Q(D))+" m"),this},zo=g.lineTo=function(b,D){return Z(O(M(b))+" "+O(Q(D))+" l"),this},Zs=g.curveTo=function(b,D,X,le,be,ke){return Z([O(M(b)),O(Q(D)),O(M(X)),O(Q(le)),O(M(be)),O(Q(ke)),"c"].join(" ")),this};g.__private__.line=g.line=function(b,D,X,le,be){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||!Wn(be))throw new Error("Invalid arguments passed to jsPDF.line");return N===w.COMPAT?this.lines([[X-b,le-D]],b,D,[1,1],be||"S"):this.lines([[X-b,le-D]],b,D,[1,1]).stroke()},g.__private__.lines=g.lines=function(b,D,X,le,be,ke){var Ve,ut,Nt,qt,Qt,nr,jr,ta,Ea,rn,Ba,Ei;if(typeof b=="number"&&(Ei=X,X=D,D=b,b=Ei),le=le||[1,1],ke=ke||!1,isNaN(D)||isNaN(X)||!Array.isArray(b)||!Array.isArray(le)||!Wn(be)||typeof ke!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Jc(D,X),Ve=le[0],ut=le[1],qt=b.length,rn=D,Ba=X,Nt=0;Nt<qt;Nt++)(Qt=b[Nt]).length===2?(rn=Qt[0]*Ve+rn,Ba=Qt[1]*ut+Ba,zo(rn,Ba)):(nr=Qt[0]*Ve+rn,jr=Qt[1]*ut+Ba,ta=Qt[2]*Ve+rn,Ea=Qt[3]*ut+Ba,rn=Qt[4]*Ve+rn,Ba=Qt[5]*ut+Ba,Zs(nr,jr,ta,Ea,rn,Ba));return ke&&kd(),Zc(be),this},g.path=function(b){for(var D=0;D<b.length;D++){var X=b[D],le=X.c;switch(X.op){case"m":Jc(le[0],le[1]);break;case"l":zo(le[0],le[1]);break;case"c":Zs.apply(this,le);break;case"h":kd()}}return this},g.__private__.rect=g.rect=function(b,D,X,le,be){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||!Wn(be))throw new Error("Invalid arguments passed to jsPDF.rect");return N===w.COMPAT&&(le=-le),Z([O(M(b)),O(Q(D)),O(M(X)),O(M(le)),"re"].join(" ")),Zc(be),this},g.__private__.triangle=g.triangle=function(b,D,X,le,be,ke,Ve){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||isNaN(be)||isNaN(ke)||!Wn(Ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[X-b,le-D],[be-X,ke-le],[b-be,D-ke]],b,D,[1,1],Ve,!0),this},g.__private__.roundedRect=g.roundedRect=function(b,D,X,le,be,ke,Ve){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||isNaN(be)||isNaN(ke)||!Wn(Ve))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ut=4/3*(Math.SQRT2-1);return be=Math.min(be,.5*X),ke=Math.min(ke,.5*le),this.lines([[X-2*be,0],[be*ut,0,be,ke-ke*ut,be,ke],[0,le-2*ke],[0,ke*ut,-be*ut,ke,-be,ke],[2*be-X,0],[-be*ut,0,-be,-ke*ut,-be,-ke],[0,2*ke-le],[0,-ke*ut,be*ut,-ke,be,-ke]],b+be,D,[1,1],Ve,!0),this},g.__private__.ellipse=g.ellipse=function(b,D,X,le,be){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||!Wn(be))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ke=4/3*(Math.SQRT2-1)*X,Ve=4/3*(Math.SQRT2-1)*le;return Jc(b+X,D),Zs(b+X,D-Ve,b+ke,D-le,b,D-le),Zs(b-ke,D-le,b-X,D-Ve,b-X,D),Zs(b-X,D+Ve,b-ke,D+le,b,D+le),Zs(b+ke,D+le,b+X,D+Ve,b+X,D),Zc(be),this},g.__private__.circle=g.circle=function(b,D,X,le){if(isNaN(b)||isNaN(D)||isNaN(X)||!Wn(le))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(b,D,X,X,le)},g.setFont=function(b,D,X){return X&&(D=h(D,X)),wt=Ws(b,D,{disableWarning:!1}),this};var Mv=g.__private__.getFont=g.getFont=function(){return Vt[Ws.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var b,D,X={};for(b in Jt)if(Jt.hasOwnProperty(b))for(D in X[b]=[],Jt[b])Jt[b].hasOwnProperty(D)&&X[b].push(D);return X},g.addFont=function(b,D,X,le,be){var ke=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ke.indexOf(arguments[3])!==-1?be=arguments[3]:arguments[3]&&ke.indexOf(arguments[3])==-1&&(X=h(X,le)),be=be||"Identity-H",js.call(this,b,D,X,be)};var Ho,eA=r.lineWidth||.200025,Dl=g.__private__.getLineWidth=g.getLineWidth=function(){return eA},Od=g.__private__.setLineWidth=g.setLineWidth=function(b){return eA=b,Z(O(M(b))+" w"),this};g.__private__.setLineDash=Bt.API.setLineDash=Bt.API.setLineDashPattern=function(b,D){if(b=b||[],D=D||0,isNaN(D)||!Array.isArray(b))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return b=b.map(function(X){return O(M(X))}).join(" "),D=O(M(D)),Z("["+b+"] "+D+" d"),this};var Id=g.__private__.getLineHeight=g.getLineHeight=function(){return Ye*Ho};g.__private__.getLineHeight=g.getLineHeight=function(){return Ye*Ho};var Rd=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(b){return typeof(b=b||1.15)=="number"&&(Ho=b),this},Bd=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return Ho};Rd(r.lineHeight);var Hi=g.__private__.getHorizontalCoordinate=function(b){return M(b)},As=g.__private__.getVerticalCoordinate=function(b){return N===w.ADVANCED?b:ve[G].mediaBox.topRightY-ve[G].mediaBox.bottomLeftY-M(b)},Fv=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(b){return O(Hi(b))},Js=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(b){return O(As(b))},vi=r.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return Za(vi)},g.__private__.setStrokeColor=g.setDrawColor=function(b,D,X,le){return vi=Ja({ch1:b,ch2:D,ch3:X,ch4:le,pdfColorType:"draw",precision:2}),Z(vi),this};var tA=r.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return Za(tA)},g.__private__.setFillColor=g.setFillColor=function(b,D,X,le){return tA=Ja({ch1:b,ch2:D,ch3:X,ch4:le,pdfColorType:"fill",precision:2}),Z(tA),this};var Go=r.textColor||"0 g",Pv=g.__private__.getTextColor=g.getTextColor=function(){return Za(Go)};g.__private__.setTextColor=g.setTextColor=function(b,D,X,le){return Go=Ja({ch1:b,ch2:D,ch3:X,ch4:le,pdfColorType:"text",precision:3}),this};var Ll=r.charSpace,Uv=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Ll||0)};g.__private__.setCharSpace=g.setCharSpace=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ll=b,this};var rA=0;g.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},g.__private__.setLineCap=g.setLineCap=function(b){var D=g.CapJoinStyles[b];if(D===void 0)throw new Error("Line cap style of '"+b+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return rA=D,Z(D+" J"),this};var aA=0;g.__private__.setLineJoin=g.setLineJoin=function(b){var D=g.CapJoinStyles[b];if(D===void 0)throw new Error("Line join style of '"+b+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return aA=D,Z(D+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(b){if(b=b||0,isNaN(b))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(O(M(b))+" M"),this},g.GState=Ku,g.setGState=function(b){(b=typeof b=="string"?Et[Fr[b]]:xd(null,b)).equals(Ht)||(Z("/"+b.id+" gs"),Ht=b)};var xd=function(b,D){if(!b||!Fr[b]){var X=!1;for(var le in Et)if(Et.hasOwnProperty(le)&&Et[le].equals(D)){X=!0;break}if(X)D=Et[le];else{var be="GS"+(Object.keys(Et).length+1).toString(10);Et[be]=D,D.id=be}return b&&(Fr[b]=D.id),Ie.publish("addGState",D),D}};g.addGState=function(b,D){return xd(b,D),this},g.saveGraphicsState=function(){return Z("q"),Qr.push({key:wt,size:Ye,color:Go}),this},g.restoreGraphicsState=function(){Z("Q");var b=Qr.pop();return wt=b.key,Ye=b.size,Go=b.color,Ht=null,this},g.setCurrentTransformationMatrix=function(b){return Z(b.toString()+" cm"),this},g.comment=function(b){return Z("#"+b),this};var Ml=function(b,D){var X=b||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return X},set:function(ke){isNaN(ke)||(X=parseFloat(ke))}});var le=D||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return le},set:function(ke){isNaN(ke)||(le=parseFloat(ke))}});var be="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return be},set:function(ke){be=ke.toString()}}),this},nA=function(b,D,X,le){Ml.call(this,b,D),this.type="rect";var be=X||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return be},set:function(Ve){isNaN(Ve)||(be=parseFloat(Ve))}});var ke=le||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ke},set:function(Ve){isNaN(Ve)||(ke=parseFloat(Ve))}}),this},iA=function(){this.page=te,this.currentPage=G,this.pages=Oe.slice(0),this.pagesContext=ve.slice(0),this.x=rr,this.y=Lt,this.matrix=mr,this.width=qo(G),this.height=eo(G),this.outputDestination=He,this.id="",this.objectNumber=-1};iA.prototype.restore=function(){te=this.page,G=this.currentPage,ve=this.pagesContext,Oe=this.pages,rr=this.x,Lt=this.y,mr=this.matrix,sA(G,this.width),oA(G,this.height),He=this.outputDestination};var Dd=function(b,D,X,le,be){st.push(new iA),te=G=0,Oe=[],rr=b,Lt=D,mr=be,Qo([X,le])},Qv=function(b){if(tr[b])st.pop().restore();else{var D=new iA,X="Xo"+(Object.keys($t).length+1).toString(10);D.id=X,tr[b]=X,$t[X]=D,Ie.publish("addFormObject",D),st.pop().restore()}};for(var Fl in g.beginFormObject=function(b,D,X,le,be){return Dd(b,D,X,le,be),this},g.endFormObject=function(b){return Qv(b),this},g.doFormObject=function(b,D){var X=$t[tr[b]];return Z("q"),Z(D.toString()+" cm"),Z("/"+X.id+" Do"),Z("Q"),this},g.getFormObject=function(b){var D=$t[tr[b]];return{x:D.x,y:D.y,width:D.width,height:D.height,matrix:D.matrix}},g.save=function(b,D){return b=b||"generated.pdf",(D=D||{}).returnPromise=D.returnPromise||!1,D.returnPromise===!1?(wo(Qi(Qa()),b),typeof wo.unload=="function"&&xt.setTimeout&&setTimeout(wo.unload,911),this):new Promise(function(X,le){try{var be=wo(Qi(Qa()),b);typeof wo.unload=="function"&&xt.setTimeout&&setTimeout(wo.unload,911),X(be)}catch(ke){le(ke.message)}})},Bt.API)Bt.API.hasOwnProperty(Fl)&&(Fl==="events"&&Bt.API.events.length?function(b,D){var X,le,be;for(be=D.length-1;be!==-1;be--)X=D[be][0],le=D[be][1],b.subscribe.apply(b,[X].concat(typeof le=="function"?[le]:le))}(Ie,Bt.API.events):g[Fl]=Bt.API[Fl]);var qo=g.getPageWidth=function(b){return(ve[b=b||G].mediaBox.topRightX-ve[b].mediaBox.bottomLeftX)/Ze},sA=g.setPageWidth=function(b,D){ve[b].mediaBox.topRightX=D*Ze+ve[b].mediaBox.bottomLeftX},eo=g.getPageHeight=function(b){return(ve[b=b||G].mediaBox.topRightY-ve[b].mediaBox.bottomLeftY)/Ze},oA=g.setPageHeight=function(b,D){ve[b].mediaBox.topRightY=D*Ze+ve[b].mediaBox.bottomLeftY};return g.internal={pdfEscape:tn,getStyle:Nd,getFont:Mv,getFontSize:We,getCharSpace:Uv,getTextColor:Pv,getLineHeight:Id,getLineHeightFactor:Bd,getLineWidth:Dl,write:_t,getHorizontalCoordinate:Hi,getVerticalCoordinate:As,getCoordinateString:Fv,getVerticalCoordinateString:Js,collections:{},newObject:hr,newAdditionalObject:Yn,newObjectDeferred:Tr,newObjectDeferredBegin:ba,getFilters:en,putStream:ya,events:Ie,scaleFactor:Ze,pageSize:{getWidth:function(){return qo(G)},setWidth:function(b){sA(G,b)},getHeight:function(){return eo(G)},setHeight:function(b){oA(G,b)}},encryptionOptions:A,encryption:ot,getEncryptor:Gt,output:zi,getNumberOfPages:$c,pages:Oe,out:Z,f2:K,f3:I,getPageInfo:sr,getPageInfoByObjId:vt,getCurrentPageInfo:xn,getPDFVersion:_,Point:Ml,Rectangle:nA,Matrix:Re,hasHotfix:nt},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return qo(G)},set:function(b){sA(G,b)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return eo(G)},set:function(b){oA(G,b)},enumerable:!0,configurable:!0}),Rl.call(g,Fe),wt="F1",cs(n,t),Ie.publish("initialized"),g}bl.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},bl.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},bl.prototype.hexToBytes=function(r){for(var e=[],t=0;t<r.length;t+=2)e.push(String.fromCharCode(parseInt(r.substr(t,2),16)));return e.join("")},bl.prototype.processOwnerPassword=function(r,e){return Wh(Kh(e).substr(0,5),r)},bl.prototype.encryptor=function(r,e){var t=Kh(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return Wh(t,a)}},Ku.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||Ar(r)!==Ar(this))return!1;var a=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;a++}for(e in r)r.hasOwnProperty(e)&&t.indexOf(e)<0&&a--;return a===0},Bt.API={events:[]},Bt.version="3.0.1";var $r=Bt.API,$h=1,To=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},El=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ut=function(r){return r.toFixed(2)},zs=function(r){return r.toFixed(5)};$r.__acroform__={};var vn=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},KN=function(r){return r*$h},Li=function(r){var e=new $N,t=bt.internal.getHeight(r)||0,a=bt.internal.getWidth(r)||0;return e.BBox=[0,0,Number(Ut(a)),Number(Ut(t))],e},nfe=$r.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<e},ife=$r.__acroform__.clearBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<e)},sfe=$r.__acroform__.getBit=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(r&1<<e)==0?0:1},sa=$r.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return sfe(r,e-1)},oa=$r.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return nfe(r,e-1)},la=$r.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ife(r,e-1)},ofe=$r.__acroform__.calculateCoordinates=function(r,e){var t=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,n=r[0],i=r[1],s=r[2],o=r[3],l={};return l.lowerLeft_X=t(n)||0,l.lowerLeft_Y=a(i+o)||0,l.upperRight_X=t(n+s)||0,l.upperRight_Y=a(i)||0,[Number(Ut(l.lowerLeft_X)),Number(Ut(l.lowerLeft_Y)),Number(Ut(l.upperRight_X)),Number(Ut(l.upperRight_Y))]},lfe=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],t=r._V||r.DV,a=Xh(r,t),n=r.scope.internal.getFont(r.fontName,r.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.scope.__private__.encodeColorString(r.color)),e.push("/"+n+" "+Ut(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=Li(r);return i.scope=r.scope,i.stream=e.join(`
|
|
495
|
+
`,Jn+=Ba,Jn+=b,Z(Jn+="ET"),u[wt]=!0,Ea};var Xc=g.__private__.clip=g.clip=function(b){return Z(b==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Xc("evenodd")},g.__private__.discardPath=g.discardPath=function(){return Z("n"),this};var Wn=g.__private__.isValidStyle=function(b){var D=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(b)!==-1&&(D=!0),D};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(b){return Wn(b)&&(c=b),this};var Nd=g.__private__.getStyle=g.getStyle=function(b){var D=c;switch(b){case"D":case"S":D="S";break;case"F":D="f";break;case"FD":case"DF":D="B";break;case"f":case"f*":case"B":case"B*":D=b}return D},kd=g.close=function(){return Z("h"),this};g.stroke=function(){return Z("S"),this},g.fill=function(b){return xl("f",b),this},g.fillEvenOdd=function(b){return xl("f*",b),this},g.fillStroke=function(b){return xl("B",b),this},g.fillStrokeEvenOdd=function(b){return xl("B*",b),this};var xl=function(b,D){cr(D)==="object"?Dv(D,b):Z(b)},Zc=function(b){b===null||N===w.ADVANCED&&b===void 0||(b=Nd(b),Z(b))};function xv(b,D,X,le,be){var ke=new vl(D||this.boundingBox,X||this.xStep,le||this.yStep,this.gState,be||this.matrix);ke.stream=this.stream;var Ve=b+"$$"+this.cloneIndex+++"$$";return Pt(Ve,ke),ke}var Dv=function(b,D){var X=Jr[b.key],le=Wt[X];if(le instanceof Co)Z("q"),Z(Lv(D)),le.gState&&g.setGState(le.gState),Z(b.matrix.toString()+" cm"),Z("/"+X+" sh"),Z("Q");else if(le instanceof vl){var be=new Re(1,0,0,-1,0,eo());b.matrix&&(be=be.multiply(b.matrix||dr),X=xv.call(le,b.key,b.boundingBox,b.xStep,b.yStep,be).id),Z("q"),Z("/Pattern cs"),Z("/"+X+" scn"),le.gState&&g.setGState(le.gState),Z(D),Z("Q")}},Lv=function(b){switch(b){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Jc=g.moveTo=function(b,D){return Z(O(M(b))+" "+O(Q(D))+" m"),this},zo=g.lineTo=function(b,D){return Z(O(M(b))+" "+O(Q(D))+" l"),this},Zs=g.curveTo=function(b,D,X,le,be,ke){return Z([O(M(b)),O(Q(D)),O(M(X)),O(Q(le)),O(M(be)),O(Q(ke)),"c"].join(" ")),this};g.__private__.line=g.line=function(b,D,X,le,be){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||!Wn(be))throw new Error("Invalid arguments passed to jsPDF.line");return N===w.COMPAT?this.lines([[X-b,le-D]],b,D,[1,1],be||"S"):this.lines([[X-b,le-D]],b,D,[1,1]).stroke()},g.__private__.lines=g.lines=function(b,D,X,le,be,ke){var Ve,ut,Nt,qt,Qt,nr,jr,ta,Ea,rn,Ba,Ei;if(typeof b=="number"&&(Ei=X,X=D,D=b,b=Ei),le=le||[1,1],ke=ke||!1,isNaN(D)||isNaN(X)||!Array.isArray(b)||!Array.isArray(le)||!Wn(be)||typeof ke!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Jc(D,X),Ve=le[0],ut=le[1],qt=b.length,rn=D,Ba=X,Nt=0;Nt<qt;Nt++)(Qt=b[Nt]).length===2?(rn=Qt[0]*Ve+rn,Ba=Qt[1]*ut+Ba,zo(rn,Ba)):(nr=Qt[0]*Ve+rn,jr=Qt[1]*ut+Ba,ta=Qt[2]*Ve+rn,Ea=Qt[3]*ut+Ba,rn=Qt[4]*Ve+rn,Ba=Qt[5]*ut+Ba,Zs(nr,jr,ta,Ea,rn,Ba));return ke&&kd(),Zc(be),this},g.path=function(b){for(var D=0;D<b.length;D++){var X=b[D],le=X.c;switch(X.op){case"m":Jc(le[0],le[1]);break;case"l":zo(le[0],le[1]);break;case"c":Zs.apply(this,le);break;case"h":kd()}}return this},g.__private__.rect=g.rect=function(b,D,X,le,be){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||!Wn(be))throw new Error("Invalid arguments passed to jsPDF.rect");return N===w.COMPAT&&(le=-le),Z([O(M(b)),O(Q(D)),O(M(X)),O(M(le)),"re"].join(" ")),Zc(be),this},g.__private__.triangle=g.triangle=function(b,D,X,le,be,ke,Ve){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||isNaN(be)||isNaN(ke)||!Wn(Ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[X-b,le-D],[be-X,ke-le],[b-be,D-ke]],b,D,[1,1],Ve,!0),this},g.__private__.roundedRect=g.roundedRect=function(b,D,X,le,be,ke,Ve){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||isNaN(be)||isNaN(ke)||!Wn(Ve))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ut=4/3*(Math.SQRT2-1);return be=Math.min(be,.5*X),ke=Math.min(ke,.5*le),this.lines([[X-2*be,0],[be*ut,0,be,ke-ke*ut,be,ke],[0,le-2*ke],[0,ke*ut,-be*ut,ke,-be,ke],[2*be-X,0],[-be*ut,0,-be,-ke*ut,-be,-ke],[0,2*ke-le],[0,-ke*ut,be*ut,-ke,be,-ke]],b+be,D,[1,1],Ve,!0),this},g.__private__.ellipse=g.ellipse=function(b,D,X,le,be){if(isNaN(b)||isNaN(D)||isNaN(X)||isNaN(le)||!Wn(be))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ke=4/3*(Math.SQRT2-1)*X,Ve=4/3*(Math.SQRT2-1)*le;return Jc(b+X,D),Zs(b+X,D-Ve,b+ke,D-le,b,D-le),Zs(b-ke,D-le,b-X,D-Ve,b-X,D),Zs(b-X,D+Ve,b-ke,D+le,b,D+le),Zs(b+ke,D+le,b+X,D+Ve,b+X,D),Zc(be),this},g.__private__.circle=g.circle=function(b,D,X,le){if(isNaN(b)||isNaN(D)||isNaN(X)||!Wn(le))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(b,D,X,X,le)},g.setFont=function(b,D,X){return X&&(D=h(D,X)),wt=Ws(b,D,{disableWarning:!1}),this};var Mv=g.__private__.getFont=g.getFont=function(){return Vt[Ws.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var b,D,X={};for(b in Jt)if(Jt.hasOwnProperty(b))for(D in X[b]=[],Jt[b])Jt[b].hasOwnProperty(D)&&X[b].push(D);return X},g.addFont=function(b,D,X,le,be){var ke=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ke.indexOf(arguments[3])!==-1?be=arguments[3]:arguments[3]&&ke.indexOf(arguments[3])==-1&&(X=h(X,le)),be=be||"Identity-H",js.call(this,b,D,X,be)};var Ho,eA=r.lineWidth||.200025,Dl=g.__private__.getLineWidth=g.getLineWidth=function(){return eA},Od=g.__private__.setLineWidth=g.setLineWidth=function(b){return eA=b,Z(O(M(b))+" w"),this};g.__private__.setLineDash=Bt.API.setLineDash=Bt.API.setLineDashPattern=function(b,D){if(b=b||[],D=D||0,isNaN(D)||!Array.isArray(b))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return b=b.map(function(X){return O(M(X))}).join(" "),D=O(M(D)),Z("["+b+"] "+D+" d"),this};var Id=g.__private__.getLineHeight=g.getLineHeight=function(){return Ye*Ho};g.__private__.getLineHeight=g.getLineHeight=function(){return Ye*Ho};var Rd=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(b){return typeof(b=b||1.15)=="number"&&(Ho=b),this},Bd=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return Ho};Rd(r.lineHeight);var Hi=g.__private__.getHorizontalCoordinate=function(b){return M(b)},As=g.__private__.getVerticalCoordinate=function(b){return N===w.ADVANCED?b:ve[G].mediaBox.topRightY-ve[G].mediaBox.bottomLeftY-M(b)},Fv=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(b){return O(Hi(b))},Js=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(b){return O(As(b))},vi=r.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return Za(vi)},g.__private__.setStrokeColor=g.setDrawColor=function(b,D,X,le){return vi=Ja({ch1:b,ch2:D,ch3:X,ch4:le,pdfColorType:"draw",precision:2}),Z(vi),this};var tA=r.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return Za(tA)},g.__private__.setFillColor=g.setFillColor=function(b,D,X,le){return tA=Ja({ch1:b,ch2:D,ch3:X,ch4:le,pdfColorType:"fill",precision:2}),Z(tA),this};var Go=r.textColor||"0 g",Pv=g.__private__.getTextColor=g.getTextColor=function(){return Za(Go)};g.__private__.setTextColor=g.setTextColor=function(b,D,X,le){return Go=Ja({ch1:b,ch2:D,ch3:X,ch4:le,pdfColorType:"text",precision:3}),this};var Ll=r.charSpace,Uv=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Ll||0)};g.__private__.setCharSpace=g.setCharSpace=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ll=b,this};var rA=0;g.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},g.__private__.setLineCap=g.setLineCap=function(b){var D=g.CapJoinStyles[b];if(D===void 0)throw new Error("Line cap style of '"+b+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return rA=D,Z(D+" J"),this};var aA=0;g.__private__.setLineJoin=g.setLineJoin=function(b){var D=g.CapJoinStyles[b];if(D===void 0)throw new Error("Line join style of '"+b+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return aA=D,Z(D+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(b){if(b=b||0,isNaN(b))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(O(M(b))+" M"),this},g.GState=Ku,g.setGState=function(b){(b=typeof b=="string"?Et[Fr[b]]:xd(null,b)).equals(Ht)||(Z("/"+b.id+" gs"),Ht=b)};var xd=function(b,D){if(!b||!Fr[b]){var X=!1;for(var le in Et)if(Et.hasOwnProperty(le)&&Et[le].equals(D)){X=!0;break}if(X)D=Et[le];else{var be="GS"+(Object.keys(Et).length+1).toString(10);Et[be]=D,D.id=be}return b&&(Fr[b]=D.id),Ie.publish("addGState",D),D}};g.addGState=function(b,D){return xd(b,D),this},g.saveGraphicsState=function(){return Z("q"),Qr.push({key:wt,size:Ye,color:Go}),this},g.restoreGraphicsState=function(){Z("Q");var b=Qr.pop();return wt=b.key,Ye=b.size,Go=b.color,Ht=null,this},g.setCurrentTransformationMatrix=function(b){return Z(b.toString()+" cm"),this},g.comment=function(b){return Z("#"+b),this};var Ml=function(b,D){var X=b||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return X},set:function(ke){isNaN(ke)||(X=parseFloat(ke))}});var le=D||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return le},set:function(ke){isNaN(ke)||(le=parseFloat(ke))}});var be="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return be},set:function(ke){be=ke.toString()}}),this},nA=function(b,D,X,le){Ml.call(this,b,D),this.type="rect";var be=X||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return be},set:function(Ve){isNaN(Ve)||(be=parseFloat(Ve))}});var ke=le||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ke},set:function(Ve){isNaN(Ve)||(ke=parseFloat(Ve))}}),this},iA=function(){this.page=te,this.currentPage=G,this.pages=Oe.slice(0),this.pagesContext=ve.slice(0),this.x=rr,this.y=Lt,this.matrix=mr,this.width=qo(G),this.height=eo(G),this.outputDestination=He,this.id="",this.objectNumber=-1};iA.prototype.restore=function(){te=this.page,G=this.currentPage,ve=this.pagesContext,Oe=this.pages,rr=this.x,Lt=this.y,mr=this.matrix,sA(G,this.width),oA(G,this.height),He=this.outputDestination};var Dd=function(b,D,X,le,be){st.push(new iA),te=G=0,Oe=[],rr=b,Lt=D,mr=be,Qo([X,le])},Qv=function(b){if(tr[b])st.pop().restore();else{var D=new iA,X="Xo"+(Object.keys($t).length+1).toString(10);D.id=X,tr[b]=X,$t[X]=D,Ie.publish("addFormObject",D),st.pop().restore()}};for(var Fl in g.beginFormObject=function(b,D,X,le,be){return Dd(b,D,X,le,be),this},g.endFormObject=function(b){return Qv(b),this},g.doFormObject=function(b,D){var X=$t[tr[b]];return Z("q"),Z(D.toString()+" cm"),Z("/"+X.id+" Do"),Z("Q"),this},g.getFormObject=function(b){var D=$t[tr[b]];return{x:D.x,y:D.y,width:D.width,height:D.height,matrix:D.matrix}},g.save=function(b,D){return b=b||"generated.pdf",(D=D||{}).returnPromise=D.returnPromise||!1,D.returnPromise===!1?(wo(Qi(Qa()),b),typeof wo.unload=="function"&&xt.setTimeout&&setTimeout(wo.unload,911),this):new Promise(function(X,le){try{var be=wo(Qi(Qa()),b);typeof wo.unload=="function"&&xt.setTimeout&&setTimeout(wo.unload,911),X(be)}catch(ke){le(ke.message)}})},Bt.API)Bt.API.hasOwnProperty(Fl)&&(Fl==="events"&&Bt.API.events.length?function(b,D){var X,le,be;for(be=D.length-1;be!==-1;be--)X=D[be][0],le=D[be][1],b.subscribe.apply(b,[X].concat(typeof le=="function"?[le]:le))}(Ie,Bt.API.events):g[Fl]=Bt.API[Fl]);var qo=g.getPageWidth=function(b){return(ve[b=b||G].mediaBox.topRightX-ve[b].mediaBox.bottomLeftX)/Ze},sA=g.setPageWidth=function(b,D){ve[b].mediaBox.topRightX=D*Ze+ve[b].mediaBox.bottomLeftX},eo=g.getPageHeight=function(b){return(ve[b=b||G].mediaBox.topRightY-ve[b].mediaBox.bottomLeftY)/Ze},oA=g.setPageHeight=function(b,D){ve[b].mediaBox.topRightY=D*Ze+ve[b].mediaBox.bottomLeftY};return g.internal={pdfEscape:tn,getStyle:Nd,getFont:Mv,getFontSize:We,getCharSpace:Uv,getTextColor:Pv,getLineHeight:Id,getLineHeightFactor:Bd,getLineWidth:Dl,write:_t,getHorizontalCoordinate:Hi,getVerticalCoordinate:As,getCoordinateString:Fv,getVerticalCoordinateString:Js,collections:{},newObject:hr,newAdditionalObject:Yn,newObjectDeferred:Tr,newObjectDeferredBegin:ba,getFilters:en,putStream:ya,events:Ie,scaleFactor:Ze,pageSize:{getWidth:function(){return qo(G)},setWidth:function(b){sA(G,b)},getHeight:function(){return eo(G)},setHeight:function(b){oA(G,b)}},encryptionOptions:A,encryption:ot,getEncryptor:Gt,output:zi,getNumberOfPages:$c,pages:Oe,out:Z,f2:K,f3:I,getPageInfo:sr,getPageInfoByObjId:vt,getCurrentPageInfo:xn,getPDFVersion:_,Point:Ml,Rectangle:nA,Matrix:Re,hasHotfix:nt},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return qo(G)},set:function(b){sA(G,b)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return eo(G)},set:function(b){oA(G,b)},enumerable:!0,configurable:!0}),Rl.call(g,Fe),wt="F1",cs(n,t),Ie.publish("initialized"),g}bl.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},bl.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},bl.prototype.hexToBytes=function(r){for(var e=[],t=0;t<r.length;t+=2)e.push(String.fromCharCode(parseInt(r.substr(t,2),16)));return e.join("")},bl.prototype.processOwnerPassword=function(r,e){return Wh(Kh(e).substr(0,5),r)},bl.prototype.encryptor=function(r,e){var t=Kh(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return Wh(t,a)}},Ku.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||cr(r)!==cr(this))return!1;var a=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;a++}for(e in r)r.hasOwnProperty(e)&&t.indexOf(e)<0&&a--;return a===0},Bt.API={events:[]},Bt.version="3.0.1";var $r=Bt.API,$h=1,To=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},El=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ut=function(r){return r.toFixed(2)},zs=function(r){return r.toFixed(5)};$r.__acroform__={};var vn=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},KN=function(r){return r*$h},Li=function(r){var e=new $N,t=bt.internal.getHeight(r)||0,a=bt.internal.getWidth(r)||0;return e.BBox=[0,0,Number(Ut(a)),Number(Ut(t))],e},nfe=$r.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<e},ife=$r.__acroform__.clearBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<e)},sfe=$r.__acroform__.getBit=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(r&1<<e)==0?0:1},sa=$r.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return sfe(r,e-1)},oa=$r.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return nfe(r,e-1)},la=$r.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ife(r,e-1)},ofe=$r.__acroform__.calculateCoordinates=function(r,e){var t=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,n=r[0],i=r[1],s=r[2],o=r[3],l={};return l.lowerLeft_X=t(n)||0,l.lowerLeft_Y=a(i+o)||0,l.upperRight_X=t(n+s)||0,l.upperRight_Y=a(i)||0,[Number(Ut(l.lowerLeft_X)),Number(Ut(l.lowerLeft_Y)),Number(Ut(l.upperRight_X)),Number(Ut(l.upperRight_Y))]},lfe=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],t=r._V||r.DV,a=Xh(r,t),n=r.scope.internal.getFont(r.fontName,r.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.scope.__private__.encodeColorString(r.color)),e.push("/"+n+" "+Ut(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=Li(r);return i.scope=r.scope,i.stream=e.join(`
|
|
496
496
|
`),i}},Xh=function(r,e){var t=r.fontSize===0?r.maxFontSize:r.fontSize,a={text:"",fontSize:""},n=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");n=r.multiline?n.map(function(I){return I.split(`
|
|
497
497
|
`)}):n.map(function(I){return[I]});var i=t,s=bt.internal.getHeight(r)||0;s=s<0?-s:s;var o=bt.internal.getWidth(r)||0;o=o<0?-o:o;var l=function(I,M,V){if(I+1<n.length){var Q=M+" "+n[I+1][0];return Wu(Q,r,V).width<=o-4}return!1};i++;e:for(;i>0;){e="",i--;var c,A,d=Wu("3",r,i).height,u=r.multiline?s-i:(s-d)/2,g=u+=2,m=0,_=0,E=0;if(i<=0){e=`(...) Tj
|
|
498
498
|
`,e+="% Width of Text: "+Wu(e,r,i=12).width+", FieldWidth:"+o+`
|
|
499
499
|
`;break}for(var y="",w=0,N=0;N<n.length;N++)if(n.hasOwnProperty(N)){var R=!1;if(n[N].length!==1&&E!==n[N].length-1){if((d+2)*(w+2)+2>s)continue e;y+=n[N][E],R=!0,_=N,N--}else{y=(y+=n[N][E]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var k=parseInt(N),h=l(k,y,i),O=N>=n.length-1;if(h&&!O){y+=" ",E=0;continue}if(h||O){if(O)_=k;else if(r.multiline&&(d+2)*(w+2)+2>s)continue e}else{if(!r.multiline||(d+2)*(w+2)+2>s)continue e;_=k}}for(var L="",Y=m;Y<=_;Y++){var K=n[Y];if(r.multiline){if(Y===_){L+=K[E]+" ",E=(E+1)%K.length;continue}if(Y===m){L+=K[K.length-1]+" ";continue}}L+=K[0]+" "}switch(L=L.substr(L.length-1)==" "?L.substr(0,L.length-1):L,A=Wu(L,r,i).width,r.textAlign){case"right":c=o-A-2;break;case"center":c=(o-A)/2;break;case"left":default:c=2}e+=Ut(c)+" "+Ut(g)+` Td
|
|
500
500
|
`,e+="("+To(L)+`) Tj
|
|
501
501
|
`,e+=-Ut(c)+` 0 Td
|
|
502
|
-
`,g=-(i+2),A=0,m=R?_:_+1,w++,y=""}break}return a.text=e,a.fontSize=i,a},Wu=function(r,e,t){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(r,{font:a,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},cfe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Afe=function(r,e){var t={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(a){return a.type===t.type&&a.object===t.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(t)},ufe=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var a=t,n=r[t];e.internal.newObjectDeferredBegin(n.objId,!0),
|
|
503
|
-
`+d+">>"})}n.internal.putStream({additionalKeyValues:l,objectId:o.objId}),n.internal.out("endobj")}i&&ufe(n.internal.acroformPlugin.xForms,n)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},WN=$r.__acroform__.arrayToPdfArray=function(r,e,t){var a=function(s){return s};if(Array.isArray(r)){for(var n="[",i=0;i<r.length;i++)switch(i!==0&&(n+=" "),Ar(r[i])){case"boolean":case"number":case"object":n+=r[i].toString();break;case"string":r[i].substr(0,1)!=="/"?(e!==void 0&&t&&(a=t.internal.getEncryptor(e)),n+="("+To(a(r[i].toString()))+")"):n+=r[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Zh=function(r,e,t){var a=function(n){return n};return e!==void 0&&t&&(a=t.internal.getEncryptor(e)),(r=r||"").toString(),r="("+To(a(r))+")"},Mi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Mi.prototype.toString=function(){return this.objId+" 0 R"},Mi.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},Mi.prototype.getKeyValueListForStream=function(){var r=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var a=e[t],n=this[a];n&&(Array.isArray(n)?r.push({key:a,value:WN(n,this.objId,this.scope)}):n instanceof Mi?(n.scope=this.scope,r.push({key:a,value:n.objId+" 0 R"})):typeof n!="function"&&r.push({key:a,value:n}))}return r};var $N=function(){Mi.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 r,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){r=t.trim()},get:function(){return r||null}})};vn($N,Mi);var XN=function(){Mi.call(this);var r,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(a){return a};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+To(t(r))+")"}},set:function(t){r=t}})};vn(XN,Mi);var ui=function r(){Mi.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');e=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!sa(e,3)},set:function(y){y?this.F=oa(e,3):this.F=la(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');t=y}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(y){a=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(y){a[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(y){a[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(y){a[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(y){a[3]=y}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=y;break;default:throw new Error('Invalid value "'+y+'" 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 Zu)return;i="FieldObject"+r.FieldNum++}var y=function(w){return w};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+To(y(i))+")"},set:function(y){i=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(y){i=y}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/$h:c},set:function(y){c=y}});var A="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return A},set:function(y){A=y}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof Zu||this instanceof No))return Zh(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=y}});var u=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof Oa?u:Zh(u,this.objId,this.scope)},set:function(y){y=y.toString(),u=this instanceof Oa?y:y.substr(0,1)==="("?El(y.substr(1,y.length-2)):El(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa?El(u.substr(1,u.length-1)):u},set:function(y){y=y.toString(),u=this instanceof Oa?"/"+y:y}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Oa?g:Zh(g,this.objId,this.scope)},set:function(y){y=y.toString(),g=this instanceof Oa?y:y.substr(0,1)==="("?El(y.substr(1,y.length-2)):El(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa?El(g.substr(1,g.length-1)):g},set:function(y){y=y.toString(),g=this instanceof Oa?"/"+y:y}}),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 m,_=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return _},set:function(y){y=!!y,_=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(y){m=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,1)},set:function(y){y?this.Ff=oa(this.Ff,1):this.Ff=la(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,2)},set:function(y){y?this.Ff=oa(this.Ff,2):this.Ff=la(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,3)},set:function(y){y?this.Ff=oa(this.Ff,3):this.Ff=la(this.Ff,3)}});var E=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(E!==null)return E},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');E=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(E){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:E=2;break;case"center":case 1:E=1;break;case"left":case 0:default:E=0}}})};vn(ui,Mi);var Sl=function(){ui.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return WN(e,this.objId,this.scope)},set:function(t){var a,n;n=[],typeof(a=t)=="string"&&(n=function(i,s,o){o||(o=1);for(var l,c=[];l=s.exec(i);)c.push(l[o]);return c}(a,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,a){for(a=a||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,18)},set:function(t){t?this.Ff=oa(this.Ff,18):this.Ff=la(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=oa(this.Ff,19):this.Ff=la(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,20)},set:function(t){t?(this.Ff=oa(this.Ff,20),e.sort()):this.Ff=la(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,22)},set:function(t){t?this.Ff=oa(this.Ff,22):this.Ff=la(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,23)},set:function(t){t?this.Ff=oa(this.Ff,23):this.Ff=la(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,27)},set:function(t){t?this.Ff=oa(this.Ff,27):this.Ff=la(this.Ff,27)}}),this.hasAppearanceStream=!1};vn(Sl,ui);var wl=function(){Sl.call(this),this.fontName="helvetica",this.combo=!1};vn(wl,Sl);var Cl=function(){wl.call(this),this.combo=!0};vn(Cl,wl);var $u=function(){Cl.call(this),this.edit=!0};vn($u,Cl);var Oa=function(){ui.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,15)},set:function(t){t?this.Ff=oa(this.Ff,15):this.Ff=la(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,16)},set:function(t){t?this.Ff=oa(this.Ff,16):this.Ff=la(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,17)},set:function(t){t?this.Ff=oa(this.Ff,17):this.Ff=la(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,26)},set:function(t){t?this.Ff=oa(this.Ff,26):this.Ff=la(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,n=[];for(a in n.push("<<"),e)n.push("/"+a+" ("+To(t(e[a]))+")");return n.push(">>"),n.join(`
|
|
504
|
-
`)}},set:function(t){
|
|
505
|
-
`)},set:function(n){
|
|
502
|
+
`,g=-(i+2),A=0,m=R?_:_+1,w++,y=""}break}return a.text=e,a.fontSize=i,a},Wu=function(r,e,t){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(r,{font:a,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},cfe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Afe=function(r,e){var t={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(a){return a.type===t.type&&a.object===t.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(t)},ufe=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var a=t,n=r[t];e.internal.newObjectDeferredBegin(n.objId,!0),cr(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete r[a]}},dfe=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(ui.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(cfe)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");$h=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new XN,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in a)if(a.hasOwnProperty(n)){var i=a[n];i.objId=void 0,i.hasAnnotation&&Afe(i,t)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(t){(function(a,n){var i=!a;for(var s in a||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(s)){var o=a[s],l=[],c=o.Rect;if(o.Rect&&(o.Rect=ofe(o.Rect,n)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=bt.createDefaultAppearanceStream(o),cr(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(l=o.getKeyValueListForStream()),o.Rect=c,o.hasAppearanceStream&&!o.appearanceStreamContent){var A=lfe(o);l.push({key:"AP",value:"<</N "+A+">>"}),n.internal.acroformPlugin.xForms.push(A)}if(o.appearanceStreamContent){var d="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var g=o.appearanceStreamContent[u];if(d+="/"+u+" ",d+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var s in g)if(g.hasOwnProperty(s)){var m=g[s];typeof m=="function"&&(m=m.call(n,o)),d+="/"+s+" "+m+" ",n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m)}}else typeof(m=g)=="function"&&(m=m.call(n,o)),d+="/"+s+" "+m,n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m);d+=">>"}l.push({key:"AP",value:`<<
|
|
503
|
+
`+d+">>"})}n.internal.putStream({additionalKeyValues:l,objectId:o.objId}),n.internal.out("endobj")}i&&ufe(n.internal.acroformPlugin.xForms,n)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},WN=$r.__acroform__.arrayToPdfArray=function(r,e,t){var a=function(s){return s};if(Array.isArray(r)){for(var n="[",i=0;i<r.length;i++)switch(i!==0&&(n+=" "),cr(r[i])){case"boolean":case"number":case"object":n+=r[i].toString();break;case"string":r[i].substr(0,1)!=="/"?(e!==void 0&&t&&(a=t.internal.getEncryptor(e)),n+="("+To(a(r[i].toString()))+")"):n+=r[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Zh=function(r,e,t){var a=function(n){return n};return e!==void 0&&t&&(a=t.internal.getEncryptor(e)),(r=r||"").toString(),r="("+To(a(r))+")"},Mi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Mi.prototype.toString=function(){return this.objId+" 0 R"},Mi.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},Mi.prototype.getKeyValueListForStream=function(){var r=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var a=e[t],n=this[a];n&&(Array.isArray(n)?r.push({key:a,value:WN(n,this.objId,this.scope)}):n instanceof Mi?(n.scope=this.scope,r.push({key:a,value:n.objId+" 0 R"})):typeof n!="function"&&r.push({key:a,value:n}))}return r};var $N=function(){Mi.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 r,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){r=t.trim()},get:function(){return r||null}})};vn($N,Mi);var XN=function(){Mi.call(this);var r,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(a){return a};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+To(t(r))+")"}},set:function(t){r=t}})};vn(XN,Mi);var ui=function r(){Mi.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');e=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!sa(e,3)},set:function(y){y?this.F=oa(e,3):this.F=la(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');t=y}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(y){a=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(y){a[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(y){a[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(y){a[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(y){a[3]=y}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=y;break;default:throw new Error('Invalid value "'+y+'" 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 Zu)return;i="FieldObject"+r.FieldNum++}var y=function(w){return w};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+To(y(i))+")"},set:function(y){i=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(y){i=y}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/$h:c},set:function(y){c=y}});var A="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return A},set:function(y){A=y}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof Zu||this instanceof No))return Zh(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=y}});var u=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof Oa?u:Zh(u,this.objId,this.scope)},set:function(y){y=y.toString(),u=this instanceof Oa?y:y.substr(0,1)==="("?El(y.substr(1,y.length-2)):El(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa?El(u.substr(1,u.length-1)):u},set:function(y){y=y.toString(),u=this instanceof Oa?"/"+y:y}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Oa?g:Zh(g,this.objId,this.scope)},set:function(y){y=y.toString(),g=this instanceof Oa?y:y.substr(0,1)==="("?El(y.substr(1,y.length-2)):El(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa?El(g.substr(1,g.length-1)):g},set:function(y){y=y.toString(),g=this instanceof Oa?"/"+y:y}}),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 m,_=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return _},set:function(y){y=!!y,_=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(y){m=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,1)},set:function(y){y?this.Ff=oa(this.Ff,1):this.Ff=la(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,2)},set:function(y){y?this.Ff=oa(this.Ff,2):this.Ff=la(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,3)},set:function(y){y?this.Ff=oa(this.Ff,3):this.Ff=la(this.Ff,3)}});var E=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(E!==null)return E},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');E=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(E){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:E=2;break;case"center":case 1:E=1;break;case"left":case 0:default:E=0}}})};vn(ui,Mi);var Sl=function(){ui.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return WN(e,this.objId,this.scope)},set:function(t){var a,n;n=[],typeof(a=t)=="string"&&(n=function(i,s,o){o||(o=1);for(var l,c=[];l=s.exec(i);)c.push(l[o]);return c}(a,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,a){for(a=a||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,18)},set:function(t){t?this.Ff=oa(this.Ff,18):this.Ff=la(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=oa(this.Ff,19):this.Ff=la(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,20)},set:function(t){t?(this.Ff=oa(this.Ff,20),e.sort()):this.Ff=la(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,22)},set:function(t){t?this.Ff=oa(this.Ff,22):this.Ff=la(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,23)},set:function(t){t?this.Ff=oa(this.Ff,23):this.Ff=la(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,27)},set:function(t){t?this.Ff=oa(this.Ff,27):this.Ff=la(this.Ff,27)}}),this.hasAppearanceStream=!1};vn(Sl,ui);var wl=function(){Sl.call(this),this.fontName="helvetica",this.combo=!1};vn(wl,Sl);var Cl=function(){wl.call(this),this.combo=!0};vn(Cl,wl);var $u=function(){Cl.call(this),this.edit=!0};vn($u,Cl);var Oa=function(){ui.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,15)},set:function(t){t?this.Ff=oa(this.Ff,15):this.Ff=la(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,16)},set:function(t){t?this.Ff=oa(this.Ff,16):this.Ff=la(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,17)},set:function(t){t?this.Ff=oa(this.Ff,17):this.Ff=la(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,26)},set:function(t){t?this.Ff=oa(this.Ff,26):this.Ff=la(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,n=[];for(a in n.push("<<"),e)n.push("/"+a+" ("+To(t(e[a]))+")");return n.push(">>"),n.join(`
|
|
504
|
+
`)}},set:function(t){cr(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}})};vn(Oa,ui);var Xu=function(){Oa.call(this),this.pushButton=!0};vn(Xu,Oa);var Tl=function(){Oa.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e!==void 0?e:[]}})};vn(Tl,Oa);var Zu=function(){var r,e;ui.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(n){r=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(n){e=n}});var t,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),a)s.push("/"+i+" ("+To(n(a[i]))+")");return s.push(">>"),s.join(`
|
|
505
|
+
`)},set:function(n){cr(n)==="object"&&(a=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(n){typeof n=="string"&&(a.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=bt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vn(Zu,ui),Tl.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=r.createAppearanceStream(t.optionName),t.caption=r.getCA()}},Tl.prototype.createOption=function(r){var e=new Zu;return e.Parent=this,e.optionName=r,this.Kids.push(e),pfe.call(this.scope,e),e};var Ju=function(){Oa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=bt.CheckBox.createAppearanceStream()};vn(Ju,Oa);var No=function(){ui.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,13)},set:function(e){e?this.Ff=oa(this.Ff,13):this.Ff=la(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,21)},set:function(e){e?this.Ff=oa(this.Ff,21):this.Ff=la(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,23)},set:function(e){e?this.Ff=oa(this.Ff,23):this.Ff=la(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,24)},set:function(e){e?this.Ff=oa(this.Ff,24):this.Ff=la(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,25)},set:function(e){e?this.Ff=oa(this.Ff,25):this.Ff=la(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,26)},set:function(e){e?this.Ff=oa(this.Ff,26):this.Ff=la(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){Number.isInteger(e)&&(r=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};vn(No,ui);var ed=function(){No.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!sa(this.Ff,14)},set:function(r){r?this.Ff=oa(this.Ff,14):this.Ff=la(this.Ff,14)}}),this.password=!0};vn(ed,No);var bt={CheckBox:{createAppearanceStream:function(){return{N:{On:bt.CheckBox.YesNormal},D:{On:bt.CheckBox.YesPushDown,Off:bt.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=Li(r);e.scope=r.scope;var t=[],a=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),i=Xh(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+Ut(bt.internal.getWidth(r))+" "+Ut(bt.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+a+" "+Ut(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
|
|
506
506
|
`),e},YesNormal:function(r){var e=Li(r);e.scope=r.scope;var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,a=r.scope.__private__.encodeColorString(r.color),n=[],i=bt.internal.getHeight(r),s=bt.internal.getWidth(r),o=Xh(r,r.caption);return n.push("1 g"),n.push("0 0 "+Ut(s)+" "+Ut(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+Ut(s-1)+" "+Ut(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+Ut(o.fontSize)+" Tf "+a),n.push(o.text),n.push("ET"),n.push("Q"),e.stream=n.join(`
|
|
507
507
|
`),e},OffPushDown:function(r){var e=Li(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Ut(bt.internal.getWidth(r))+" "+Ut(bt.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
|
|
508
508
|
`),e}},RadioButton:{Circle:{createAppearanceStream:function(r){var e={D:{Off:bt.RadioButton.Circle.OffPushDown},N:{}};return e.N[r]=bt.RadioButton.Circle.YesNormal,e.D[r]=bt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(r){var e=Li(r);e.scope=r.scope;var t=[],a=bt.internal.getWidth(r)<=bt.internal.getHeight(r)?bt.internal.getWidth(r)/4:bt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var n=bt.internal.Bezier_C,i=Number((a*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+zs(bt.internal.getWidth(r)/2)+" "+zs(bt.internal.getHeight(r)/2)+" cm"),t.push(a+" 0 m"),t.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),t.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),t.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),t.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
|
|
@@ -511,7 +511,7 @@ T* `):b.join(` Tj
|
|
|
511
511
|
`),e}},Cross:{createAppearanceStream:function(r){var e={D:{Off:bt.RadioButton.Cross.OffPushDown},N:{}};return e.N[r]=bt.RadioButton.Cross.YesNormal,e.D[r]=bt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(r){var e=Li(r);e.scope=r.scope;var t=[],a=bt.internal.calculateCross(r);return t.push("q"),t.push("1 1 "+Ut(bt.internal.getWidth(r)-2)+" "+Ut(bt.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(Ut(a.x1.x)+" "+Ut(a.x1.y)+" m"),t.push(Ut(a.x2.x)+" "+Ut(a.x2.y)+" l"),t.push(Ut(a.x4.x)+" "+Ut(a.x4.y)+" m"),t.push(Ut(a.x3.x)+" "+Ut(a.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
|
|
512
512
|
`),e},YesPushDown:function(r){var e=Li(r);e.scope=r.scope;var t=bt.internal.calculateCross(r),a=[];return a.push("0.749023 g"),a.push("0 0 "+Ut(bt.internal.getWidth(r))+" "+Ut(bt.internal.getHeight(r))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Ut(bt.internal.getWidth(r)-2)+" "+Ut(bt.internal.getHeight(r)-2)+" re"),a.push("W"),a.push("n"),a.push(Ut(t.x1.x)+" "+Ut(t.x1.y)+" m"),a.push(Ut(t.x2.x)+" "+Ut(t.x2.y)+" l"),a.push(Ut(t.x4.x)+" "+Ut(t.x4.y)+" m"),a.push(Ut(t.x3.x)+" "+Ut(t.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
|
|
513
513
|
`),e},OffPushDown:function(r){var e=Li(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Ut(bt.internal.getWidth(r))+" "+Ut(bt.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
|
|
514
|
-
`),e}}},createDefaultAppearanceStream:function(r){var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color);return"/"+e+" "+r.fontSize+" Tf "+t}};bt.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=bt.internal.getWidth(r),t=bt.internal.getHeight(r),a=Math.min(e,t);return{x1:{x:(e-a)/2,y:(t-a)/2+a},x2:{x:(e-a)/2+a,y:(t-a)/2},x3:{x:(e-a)/2,y:(t-a)/2},x4:{x:(e-a)/2+a,y:(t-a)/2+a}}}},bt.internal.getWidth=function(r){var e=0;return Ar(r)==="object"&&(e=KN(r.Rect[2])),e},bt.internal.getHeight=function(r){var e=0;return Ar(r)==="object"&&(e=KN(r.Rect[3])),e};var pfe=$r.addField=function(r){if(dfe(this,r),!(r instanceof ui))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=r).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};$r.AcroFormChoiceField=Sl,$r.AcroFormListBox=wl,$r.AcroFormComboBox=Cl,$r.AcroFormEditBox=$u,$r.AcroFormButton=Oa,$r.AcroFormPushButton=Xu,$r.AcroFormRadioButton=Tl,$r.AcroFormCheckBox=Ju,$r.AcroFormTextField=No,$r.AcroFormPasswordField=ed,$r.AcroFormAppearance=bt,$r.AcroForm={ChoiceField:Sl,ListBox:wl,ComboBox:Cl,EditBox:$u,Button:Oa,PushButton:Xu,RadioButton:Tl,CheckBox:Ju,TextField:No,PasswordField:ed,Appearance:bt},Bt.AcroForm={ChoiceField:Sl,ListBox:wl,ComboBox:Cl,EditBox:$u,Button:Oa,PushButton:Xu,RadioButton:Tl,CheckBox:Ju,TextField:No,PasswordField:ed,Appearance:bt},Bt.AcroForm;function ZN(r){return r.reduce(function(e,t,a){return e[t]=a,e},{})}(function(r){r.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=r.__addimage__.getImageFileTypeByImageData=function(I,M){var V,Q,ee,oe,ie,re=e;if((M=M||e)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(h(I))for(ie in t)for(ee=t[ie],V=0;V<ee.length;V+=1){for(oe=!0,Q=0;Q<ee[V].length;Q+=1)if(ee[V][Q]!==void 0&&ee[V][Q]!==I[Q]){oe=!1;break}if(oe===!0){re=ie;break}}else for(ie in t)for(ee=t[ie],V=0;V<ee.length;V+=1){for(oe=!0,Q=0;Q<ee[V].length;Q+=1)if(ee[V][Q]!==void 0&&ee[V][Q]!==I.charCodeAt(Q)){oe=!1;break}if(oe===!0){re=ie;break}}return re===e&&M!==e&&(re=M),re},n=function I(M){for(var V=this.internal.write,Q=this.internal.putStream,ee=(0,this.internal.getFilters)();ee.indexOf("FlateEncode")!==-1;)ee.splice(ee.indexOf("FlateEncode"),1);M.objectId=this.internal.newObject();var oe=[];if(oe.push({key:"Type",value:"/XObject"}),oe.push({key:"Subtype",value:"/Image"}),oe.push({key:"Width",value:M.width}),oe.push({key:"Height",value:M.height}),M.colorSpace===E.INDEXED?oe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(M.palette.length/3-1)+" "+("sMask"in M&&M.sMask!==void 0?M.objectId+2:M.objectId+1)+" 0 R]"}):(oe.push({key:"ColorSpace",value:"/"+M.colorSpace}),M.colorSpace===E.DEVICE_CMYK&&oe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),oe.push({key:"BitsPerComponent",value:M.bitsPerComponent}),"decodeParameters"in M&&M.decodeParameters!==void 0&&oe.push({key:"DecodeParms",value:"<<"+M.decodeParameters+">>"}),"transparency"in M&&Array.isArray(M.transparency)){for(var ie="",re=0,se=M.transparency.length;re<se;re++)ie+=M.transparency[re]+" "+M.transparency[re]+" ";oe.push({key:"Mask",value:"["+ie+"]"})}M.sMask!==void 0&&oe.push({key:"SMask",value:M.objectId+1+" 0 R"});var Ae=M.filter!==void 0?["/"+M.filter]:void 0;if(Q({data:M.data,additionalKeyValues:oe,alreadyAppliedFilters:Ae,objectId:M.objectId}),V("endobj"),"sMask"in M&&M.sMask!==void 0){var ye="/Predictor "+M.predictor+" /Colors 1 /BitsPerComponent "+M.bitsPerComponent+" /Columns "+M.width,B={width:M.width,height:M.height,colorSpace:"DeviceGray",bitsPerComponent:M.bitsPerComponent,decodeParameters:ye,data:M.sMask};"filter"in M&&(B.filter=M.filter),I.call(this,B)}if(M.colorSpace===E.INDEXED){var G=this.internal.newObject();Q({data:L(new Uint8Array(M.palette)),objectId:G}),V("endobj")}},i=function(){var I=this.internal.collections.addImage_images;for(var M in I)n.call(this,I[M])},s=function(){var I,M=this.internal.collections.addImage_images,V=this.internal.write;for(var Q in M)V("/I"+(I=M[Q]).index,I.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var I=this.internal.collections.addImage_images;return o.call(this),I},c=function(){return Object.keys(this.internal.collections.addImage_images).length},A=function(I){return typeof r["process"+I.toUpperCase()]=="function"},d=function(I){return Ar(I)==="object"&&I.nodeType===1},u=function(I,M){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var V=""+I.getAttribute("src");if(V.indexOf("data:image/")===0)return Rc(unescape(V).split("base64,").pop());var Q=r.loadFile(V,!0);if(Q!==void 0)return Q}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var ee;switch(M){case"PNG":ee="image/png";break;case"WEBP":ee="image/webp";break;case"JPEG":case"JPG":default:ee="image/jpeg"}return Rc(I.toDataURL(ee,1).split("base64,").pop())}},g=function(I){var M=this.internal.collections.addImage_images;if(M){for(var V in M)if(I===M[V].alias)return M[V]}},m=function(I,M,V){return I||M||(I=-96,M=-96),I<0&&(I=-1*V.width*72/I/this.internal.scaleFactor),M<0&&(M=-1*V.height*72/M/this.internal.scaleFactor),I===0&&(I=M*V.width/V.height),M===0&&(M=I*V.height/V.width),[I,M]},_=function(I,M,V,Q,ee,oe){var ie=m.call(this,V,Q,ee),re=this.internal.getCoordinateString,se=this.internal.getVerticalCoordinateString,Ae=l.call(this);if(V=ie[0],Q=ie[1],Ae[ee.index]=ee,oe){oe*=Math.PI/180;var ye=Math.cos(oe),B=Math.sin(oe),G=function($){return $.toFixed(4)},j=[G(ye),G(B),G(-1*B),G(ye),0,0,"cm"]}this.internal.write("q"),oe?(this.internal.write([1,"0","0",1,re(I),se(M+Q),"cm"].join(" ")),this.internal.write(j.join(" ")),this.internal.write([re(V),"0","0",re(Q),"0","0","cm"].join(" "))):this.internal.write([re(V),"0","0",re(Q),re(I),se(M+Q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ee.index+" Do"),this.internal.write("Q")},E=r.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"};r.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 y=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=r.__addimage__.sHashCode=function(I){var M,V,Q=0;if(typeof I=="string")for(V=I.length,M=0;M<V;M++)Q=(Q<<5)-Q+I.charCodeAt(M),Q|=0;else if(h(I))for(V=I.byteLength/2,M=0;M<V;M++)Q=(Q<<5)-Q+I[M],Q|=0;return Q},N=r.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var M=!0;return I.length===0&&(M=!1),I.length%4!=0&&(M=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(M=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(M=!1),M},R=r.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var M=I.indexOf(",");return M<0?null:I.substring(0,M).trim().endsWith("base64")?I.substring(M+1):null},k=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(I){return k()&&I instanceof ArrayBuffer};var h=r.__addimage__.isArrayBufferView=function(I){return k()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},O=r.__addimage__.binaryStringToUint8Array=function(I){for(var M=I.length,V=new Uint8Array(M),Q=0;Q<M;Q++)V[Q]=I.charCodeAt(Q);return V},L=r.__addimage__.arrayBufferToBinaryString=function(I){for(var M="",V=h(I)?I:new Uint8Array(I),Q=0;Q<V.length;Q+=8192)M+=String.fromCharCode.apply(null,V.subarray(Q,Q+8192));return M};r.addImage=function(){var I,M,V,Q,ee,oe,ie,re,se;if(typeof arguments[1]=="number"?(M=e,V=arguments[1],Q=arguments[2],ee=arguments[3],oe=arguments[4],ie=arguments[5],re=arguments[6],se=arguments[7]):(M=arguments[1],V=arguments[2],Q=arguments[3],ee=arguments[4],oe=arguments[5],ie=arguments[6],re=arguments[7],se=arguments[8]),Ar(I=arguments[0])==="object"&&!d(I)&&"imageData"in I){var Ae=I;I=Ae.imageData,M=Ae.format||M||e,V=Ae.x||V||0,Q=Ae.y||Q||0,ee=Ae.w||Ae.width||ee,oe=Ae.h||Ae.height||oe,ie=Ae.alias||ie,re=Ae.compression||re,se=Ae.rotation||Ae.angle||se}var ye=this.internal.getFilters();if(re===void 0&&ye.indexOf("FlateEncode")!==-1&&(re="SLOW"),isNaN(V)||isNaN(Q))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var B=Y.call(this,I,M,ie,re);return _.call(this,V,Q,ee,oe,B,se),this};var Y=function(I,M,V,Q){var ee,oe,ie;if(typeof I=="string"&&a(I)===e){I=unescape(I);var re=K(I,!1);(re!==""||(re=r.loadFile(I,!0))!==void 0)&&(I=re)}if(d(I)&&(I=u(I,M)),M=a(I,M),!A(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(((ie=V)==null||ie.length===0)&&(V=function(se){return typeof se=="string"||h(se)?w(se):h(se.data)?w(se.data):null}(I)),(ee=g.call(this,V))||(k()&&(I instanceof Uint8Array||M==="RGBA"||(oe=I,I=O(I))),ee=this["process"+M.toUpperCase()](I,c.call(this),V,function(se){return se&&typeof se=="string"&&(se=se.toUpperCase()),se in r.image_compression?se:y.NONE}(Q),oe)),!ee)throw new Error("An unknown error occurred whilst processing the image.");return ee},K=r.__addimage__.convertBase64ToBinaryString=function(I,M){M=typeof M!="boolean"||M;var V,Q="";if(typeof I=="string"){var ee;V=(ee=R(I))!==null&&ee!==void 0?ee:I;try{Q=Rc(V)}catch(oe){if(M)throw N(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+oe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Q};r.getImageProperties=function(I){var M,V,Q="";if(d(I)&&(I=u(I)),typeof I=="string"&&a(I)===e&&((Q=K(I,!1))===""&&(Q=r.loadFile(I)||""),I=Q),V=a(I),!A(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(!k()||I instanceof Uint8Array||(I=O(I)),!(M=this["process"+V.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return M.fileType=V,M}})(Bt.API),function(r){var e=function(t){if(t!==void 0&&t!="")return!0};Bt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(t){for(var a,n,i,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,A=!1,d=0;d<c.length&&!A;d++)switch((a=c[d]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(A!=0){this.internal.write("/Annots [");for(var u=0;u<c.length;u++){a=c[u];var g=this.internal.pdfEscape,m=this.internal.getEncryptor(t.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var _=this.internal.newAdditionalObject(),E=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(_.objId),w=a.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(a.bounds.x)+" "+o(a.bounds.y+a.bounds.h)+" "+s(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y)+"] ")+"/Contents ("+g(y(a.contents))+")",i+=" /Popup "+E.objId+" 0 R",i+=" /P "+l.objId+" 0 R",i+=" /T ("+g(y(w))+") >>",_.content=i;var N=_.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(a.bounds.x+30)+" "+o(a.bounds.y+a.bounds.h)+" "+s(a.bounds.x+a.bounds.w+30)+" "+o(a.bounds.y)+"] ")+" /Parent "+N,a.open&&(i+=" /Open true"),i+=" >>",E.content=i,this.internal.write(_.objId,"0 R",E.objId,"0 R");break;case"freetext":n="/Rect ["+s(a.bounds.x)+" "+o(a.bounds.y)+" "+s(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y+a.bounds.h)+"] ";var R=a.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+g(m(a.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+R+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(a.options.name){var k=this.annotations._nameMap[a.options.name];a.options.pageNumber=k.page,a.options.top=k.y}else a.options.top||(a.options.top=0);if(n="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",i="",a.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+g(m(a.options.url))+") >>";else if(a.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,i+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var h=o(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),i+=" /XYZ "+a.options.left+" "+h+" "+a.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),r.createAnnotation=function(t){var a=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":a.pageContext.annotations.push(t)}},r.link=function(t,a,n,i,s){var o=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:l(t),y:c(a),w:l(t+n),h:c(a+i)},options:s,type:"link"})},r.textWithLink=function(t,a,n,i){var s,o,l=this.getTextWidth(t),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){o=i.maxWidth;var A=this.splitTextToSize(t,o).length;s=Math.ceil(c*A)}else o=l,s=c;return this.text(t,a,n,i),n+=.2*c,i.align==="center"&&(a-=l/2),i.align==="right"&&(a-=l),this.link(a,n-c,o,s,i),l},r.getTextWidth=function(t){var a=this.internal.getFontSize();return this.getStringUnitWidth(t)*a/this.internal.scaleFactor}}(Bt.API),function(r){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];r.__arabicParser__={};var i=r.__arabicParser__.isInArabicSubstitutionA=function(_){return e[_.charCodeAt(0)]!==void 0},s=r.__arabicParser__.isArabicLetter=function(_){return typeof _=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(_)},o=r.__arabicParser__.isArabicEndLetter=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length<=2},l=r.__arabicParser__.isArabicAlfLetter=function(_){return s(_)&&n.indexOf(_.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length>=1};var c=r.__arabicParser__.arabicLetterHasFinalForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length>=3};var A=r.__arabicParser__.arabicLetterHasMedialForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length==4},d=r.__arabicParser__.resolveLigatures=function(_){var E=0,y=t,w="",N=0;for(E=0;E<_.length;E+=1)y[_.charCodeAt(E)]!==void 0?(N++,typeof(y=y[_.charCodeAt(E)])=="number"&&(w+=String.fromCharCode(y),y=t,N=0),E===_.length-1&&(y=t,w+=_.charAt(E-(N-1)),E-=N-1,N=0)):(y=t,w+=_.charAt(E-N),E-=N,N=0);return w};r.__arabicParser__.isArabicDiacritic=function(_){return _!==void 0&&a[_.charCodeAt(0)]!==void 0};var u=r.__arabicParser__.getCorrectForm=function(_,E,y){return s(_)?i(_)===!1?-1:!c(_)||!s(E)&&!s(y)||!s(y)&&o(E)||o(_)&&!s(E)||o(_)&&l(E)||o(_)&&o(E)?0:A(_)&&s(E)&&!o(E)&&s(y)&&c(y)?3:o(_)||!s(y)?1:2:-1},g=function(_){var E=0,y=0,w=0,N="",R="",k="",h=(_=_||"").split("\\s+"),O=[];for(E=0;E<h.length;E+=1){for(O.push(""),y=0;y<h[E].length;y+=1)N=h[E][y],R=h[E][y-1],k=h[E][y+1],s(N)?(w=u(N,R,k),O[E]+=w!==-1?String.fromCharCode(e[N.charCodeAt(0)][w]):N):O[E]+=N;O[E]=d(O[E])}return O.join(" ")},m=r.__arabicParser__.processArabic=r.processArabic=function(){var _,E=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(E)){var w=0;for(y=[],w=0;w<E.length;w+=1)Array.isArray(E[w])?y.push([g(E[w][0]),E[w][1],E[w][2]]):y.push([g(E[w])]);_=y}else _=g(E);return typeof arguments[0]=="string"?_:(arguments[0].text=_,arguments[0])};r.events.push(["preProcessText",m])}(Bt.API),Bt.API.autoPrint=function(r){var e;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})}return this},function(r){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(o){t=o}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(o){a=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(o){i=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,a){var n;if((t=t||"2d")!=="2d")return null;for(n in a)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=a[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Bt.API),function(r){var e={left:0,top:0,bottom:0,right:0},t=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),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 l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(_){l=_}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(_){c=_}});var A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(_){A=_}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(_){d=_}});var u=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return u},set:function(_){u=_}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(_){g=_}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(_){m=_}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(l){return a.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},r.getTextDimensions=function(l,c){a.call(this);var A=(c=c||{}).fontSize||this.getFontSize(),d=c.font||this.getFont(),u=c.scaleFactor||this.internal.scaleFactor,g=0,m=0,_=0,E=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(N,R){return N.concat(E.splitTextToSize(R,y))},[])):l=Array.isArray(l)?l:[l];for(var w=0;w<l.length;w++)g<(_=this.getStringUnitWidth(l[w],{font:d})*A)&&(g=_);return g!==0&&(m=l.length),{w:g/=u,h:Math.max((m*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/u,0)}},r.cellAddPage=function(){a.call(this),this.addPage();var l=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=r.cell=function(){var l;l=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var c=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,d=this.internal.__cell__.margins||e,u=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=d.top,g&&u&&(this.printHeaderRow(l.lineNumber,!0),l.y+=u[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,t===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-A,l.y+A,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+A,{align:"center",baseline:"top",maxWidth:l.width-A-A}):this.text(l.text,l.x+A,l.y+A,{align:"left",baseline:"top",maxWidth:l.width-A-A})),this.internal.__cell__.lastCell=l,this};r.table=function(l,c,A,d,u){if(a.call(this),!A)throw new Error("No data for PDF table.");var g,m,_,E,y=[],w=[],N=[],R={},k={},h=[],O=[],L=(u=u||{}).autoSize||!1,Y=u.printHeaders!==!1,K=u.css&&u.css["font-size"]!==void 0?16*u.css["font-size"]:u.fontSize||12,I=u.margins||Object.assign({width:this.getPageWidth()},e),M=typeof u.padding=="number"?u.padding:3,V=u.headerBackgroundColor||"#c8c8c8",Q=u.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=Y,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=K,this.internal.__cell__.padding=M,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=Q,this.setFontSize(K),d==null)w=y=Object.keys(A[0]),N=y.map(function(){return"left"});else if(Array.isArray(d)&&Ar(d[0])==="object")for(y=d.map(function(Ae){return Ae.name}),w=d.map(function(Ae){return Ae.prompt||Ae.name||""}),N=d.map(function(Ae){return Ae.align||"left"}),g=0;g<d.length;g+=1)k[d[g].name]=d[g].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(w=y=d,N=y.map(function(){return"left"}));if(L||Array.isArray(d)&&typeof d[0]=="string")for(g=0;g<y.length;g+=1){for(R[E=y[g]]=A.map(function(Ae){return Ae[E]}),this.setFont(void 0,"bold"),h.push(this.getTextDimensions(w[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=R[E],this.setFont(void 0,"normal"),_=0;_<m.length;_+=1)h.push(this.getTextDimensions(m[_],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);k[E]=Math.max.apply(null,h)+M+M,h=[]}if(Y){var ee={};for(g=0;g<y.length;g+=1)ee[y[g]]={},ee[y[g]].text=w[g],ee[y[g]].align=N[g];var oe=o.call(this,ee,k);O=y.map(function(Ae){return new i(l,c,k[Ae],oe,ee[Ae].text,void 0,ee[Ae].align)}),this.setTableHeaderRow(O),this.printHeaderRow(1,!1)}var ie=d.reduce(function(Ae,ye){return Ae[ye.name]=ye.align,Ae},{});for(g=0;g<A.length;g+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:g,data:A[g]},this);var re=o.call(this,A[g],k);for(_=0;_<y.length;_+=1){var se=A[g][y[_]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:g,col:_,data:se},this),s.call(this,new i(l,c,k[y[_]],re,se,g+2,ie[y[_]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var o=function(l,c){var A=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,u=this.internal.scaleFactor;return Object.keys(l).map(function(g){var m=l[g];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,c[g]-A-A)},this).map(function(g){return this.getLineHeightFactor()*g.length*d/u+A+A},this).reduce(function(g,m){return Math.max(g,m)},0)};r.setTableHeaderRow=function(l){a.call(this),this.internal.__cell__.tableHeaderRow=l},r.printHeaderRow=function(l,c){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var A;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){A=this.internal.__cell__.tableHeaderRow[g].clone(),c&&(A.y=this.internal.__cell__.margins.top||0,u.push(A)),A.lineNumber=l;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,A),this.setTextColor(m)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),t=!1}}(Bt.API);var JN={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ek=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Jh=ZN(ek),tk=[100,200,300,400,500,600,700,800,900],gfe=ZN(tk);function e0(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return JN[i=i||"normal"]?i:"normal"}(r.style),a=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(r.weight),n=function(i){return typeof Jh[i=i||"normal"]=="number"?i:"normal"}(r.stretch);return{family:e,style:t,weight:a,stretch:n,src:r.src||[],ref:r.ref||{name:e,style:[n,t,a].join(" ")}}}function rk(r,e,t,a){var n;for(n=t;n>=0&&n<e.length;n+=a)if(r[e[n]])return r[e[n]];for(n=t;n>=0&&n<e.length;n-=a)if(r[e[n]])return r[e[n]]}var ffe={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ak={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function nk(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function _fe(r,e,t){for(var a=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},ffe,t.genericFontFamilies||{}),i=null,s=null,o=0;o<e.length;++o)if(n[(i=e0(e[o])).family]&&(i.family=n[i.family]),r.hasOwnProperty(i.family)){s=r[i.family];break}if(!(s=s||r[a]))throw new Error("Could not find a font-family for the rule '"+nk(i)+"' and default family '"+a+"'.");if(s=function(l,c){if(c[l])return c[l];var A=Jh[l],d=A<=Jh.normal?-1:1,u=rk(c,ek,A,d);if(!u)throw new Error("Could not find a matching font-stretch value for "+l);return u}(i.stretch,s),s=function(l,c){if(c[l])return c[l];for(var A=JN[l],d=0;d<A.length;++d)if(c[A[d]])return c[A[d]];throw new Error("Could not find a matching font-style for "+l)}(i.style,s),!(s=function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var A=gfe[l],d=rk(c,tk,A,l<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+l);return d}(i.weight,s)))throw new Error("Failed to resolve a font for the rule '"+nk(i)+"'.");return s}function ik(r){return r.trimLeft()}function mfe(r,e){for(var t=0;t<r.length;){if(r.charAt(t)===e)return[r.substring(0,t),r.substring(t+1)];t+=1}return null}function hfe(r){var e=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],r.substring(e[0].length)]}var td,sk,ok,t0=["times"];(function(r){var e,t,a,n,i,s,o,l,c,A=function(B){return B=B||{},this.isStrokeTransparent=B.isStrokeTransparent||!1,this.strokeOpacity=B.strokeOpacity||1,this.strokeStyle=B.strokeStyle||"#000000",this.fillStyle=B.fillStyle||"#000000",this.isFillTransparent=B.isFillTransparent||!1,this.fillOpacity=B.fillOpacity||1,this.font=B.font||"10px sans-serif",this.textBaseline=B.textBaseline||"alphabetic",this.textAlign=B.textAlign||"left",this.lineWidth=B.lineWidth||1,this.lineJoin=B.lineJoin||"miter",this.lineCap=B.lineCap||"butt",this.path=B.path||[],this.transform=B.transform!==void 0?B.transform.clone():new l,this.globalCompositeOperation=B.globalCompositeOperation||"normal",this.globalAlpha=B.globalAlpha||1,this.clip_path=B.clip_path||[],this.currentPoint=B.currentPoint||new s,this.miterLimit=B.miterLimit||10,this.lastPoint=B.lastPoint||new s,this.lineDashOffset=B.lineDashOffset||0,this.lineDash=B.lineDash||[],this.margin=B.margin||[0,0,0,0],this.prevPageLastElemOffset=B.prevPageLastElemOffset||0,this.ignoreClearRect=typeof B.ignoreClearRect!="boolean"||B.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,t=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,l=this.internal.Matrix,c=new A}]);var d=function(B){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var G=B;Object.defineProperty(this,"pdf",{get:function(){return G}});var j=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return j},set:function(Ce){j=!!Ce}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(Ce){$=!!Ce}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(Ce){isNaN(Ce)||(ne=Ce)}});var ce=0;Object.defineProperty(this,"posY",{get:function(){return ce},set:function(Ce){isNaN(Ce)||(ce=Ce)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ce){var Z;typeof Ce=="number"?Z=[Ce,Ce,Ce,Ce]:((Z=new Array(4))[0]=Ce[0],Z[1]=Ce.length>=2?Ce[1]:Z[0],Z[2]=Ce.length>=3?Ce[2]:Z[0],Z[3]=Ce.length>=4?Ce[3]:Z[1]),c.margin=Z}});var _e=!1;Object.defineProperty(this,"autoPaging",{get:function(){return _e},set:function(Ce){_e=Ce}});var me=0;Object.defineProperty(this,"lastBreak",{get:function(){return me},set:function(Ce){me=Ce}});var Be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Be},set:function(Ce){Be=Ce}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ce){Ce instanceof A&&(c=Ce)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ce){c.path=Ce}});var Oe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oe},set:function(Ce){Oe=Ce}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ce){var Z;Z=u(Ce),this.ctx.fillStyle=Z.style,this.ctx.isFillTransparent=Z.a===0,this.ctx.fillOpacity=Z.a,this.pdf.setFillColor(Z.r,Z.g,Z.b,{a:Z.a}),this.pdf.setTextColor(Z.r,Z.g,Z.b,{a:Z.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ce){var Z=u(Ce);this.ctx.strokeStyle=Z.style,this.ctx.isStrokeTransparent=Z.a===0,this.ctx.strokeOpacity=Z.a,Z.a===0?this.pdf.setDrawColor(255,255,255):(Z.a,this.pdf.setDrawColor(Z.r,Z.g,Z.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ce){["butt","round","square"].indexOf(Ce)!==-1&&(this.ctx.lineCap=Ce,this.pdf.setLineCap(Ce))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ce){isNaN(Ce)||(this.ctx.lineWidth=Ce,this.pdf.setLineWidth(Ce))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ce){["bevel","round","miter"].indexOf(Ce)!==-1&&(this.ctx.lineJoin=Ce,this.pdf.setLineJoin(Ce))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ce){isNaN(Ce)||(this.ctx.miterLimit=Ce,this.pdf.setMiterLimit(Ce))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ce){this.ctx.textBaseline=Ce}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ce){["right","end","center","left","start"].indexOf(Ce)!==-1&&(this.ctx.textAlign=Ce)}});var ze=null;function He(Ce,Z){if(ze===null){var _t=function(tt){var Fe=[];return Object.keys(tt).forEach(function(Ye){tt[Ye].forEach(function(Ke){var We=null;switch(Ke){case"bold":We={family:Ye,weight:"bold"};break;case"italic":We={family:Ye,style:"italic"};break;case"bolditalic":We={family:Ye,weight:"bold",style:"italic"};break;case"":case"normal":We={family:Ye}}We!==null&&(We.ref={name:Ye,style:Ke},Fe.push(We))})}),Fe}(Ce.getFontList());ze=function(tt){for(var Fe={},Ye=0;Ye<tt.length;++Ye){var Ke=e0(tt[Ye]),We=Ke.family,Te=Ke.stretch,Me=Ke.style,$e=Ke.weight;Fe[We]=Fe[We]||{},Fe[We][Te]=Fe[We][Te]||{},Fe[We][Te][Me]=Fe[We][Te][Me]||{},Fe[We][Te][Me][$e]=Ke}return Fe}(_t.concat(Z))}return ze}var rt=null;Object.defineProperty(this,"fontFaces",{get:function(){return rt},set:function(Ce){ze=null,rt=Ce}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ce){var Z;if(this.ctx.font=Ce,(Z=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ce))!==null){var _t=Z[1];Z[2];var tt=Z[3],Fe=Z[4];Z[5];var Ye=Z[6],Ke=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Fe)[2];Fe=Math.floor(Ke==="px"?parseFloat(Fe)*this.pdf.internal.scaleFactor:Ke==="em"?parseFloat(Fe)*this.pdf.getFontSize():parseFloat(Fe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Fe);var We=function(mt){var wt,Ze,rr=[],Lt=mt.trim();if(Lt==="")return t0;if(Lt in ak)return[ak[Lt]];for(;Lt!=="";){switch(Ze=null,wt=(Lt=ik(Lt)).charAt(0)){case'"':case"'":Ze=mfe(Lt.substring(1),wt);break;default:Ze=hfe(Lt)}if(Ze===null||(rr.push(Ze[0]),(Lt=ik(Ze[1]))!==""&&Lt.charAt(0)!==","))return t0;Lt=Lt.replace(/^,/,"")}return rr}(Ye);if(this.fontFaces){var Te=_fe(He(this.pdf,this.fontFaces),We.map(function(mt){return{family:mt,stretch:"normal",weight:tt,style:_t}}));this.pdf.setFont(Te.ref.name,Te.ref.style)}else{var Me="";(tt==="bold"||parseInt(tt,10)>=700||_t==="bold")&&(Me="bold"),_t==="italic"&&(Me+="italic"),Me.length===0&&(Me="normal");for(var $e="",Xe={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"},At=0;At<We.length;At++){if(this.pdf.internal.getFont(We[At],Me,{noFallback:!0,disableWarning:!0})!==void 0){$e=We[At];break}if(Me==="bolditalic"&&this.pdf.internal.getFont(We[At],"bold",{noFallback:!0,disableWarning:!0})!==void 0)$e=We[At],Me="bold";else if(this.pdf.internal.getFont(We[At],"normal",{noFallback:!0,disableWarning:!0})!==void 0){$e=We[At],Me="normal";break}}if($e===""){for(var Ft=0;Ft<We.length;Ft++)if(Xe[We[Ft]]){$e=Xe[We[Ft]];break}}$e=$e===""?"Times":$e,this.pdf.setFont($e,Me)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ce){this.ctx.globalCompositeOperation=Ce}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ce){this.ctx.globalAlpha=Ce}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ce){this.ctx.lineDashOffset=Ce,ye.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ce){this.ctx.lineDash=Ce,ye.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ce){this.ctx.ignoreClearRect=!!Ce}})};d.prototype.setLineDash=function(B){this.lineDash=B},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){R.call(this,"fill",!1)},d.prototype.stroke=function(){R.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var j=this.ctx.transform.applyToPoint(new s(B,G));this.path.push({type:"mt",x:j.x,y:j.y}),this.ctx.lastPoint=new s(B,G)},d.prototype.closePath=function(){var B=new s(0,0),G=0;for(G=this.path.length-1;G!==-1;G--)if(this.path[G].type==="begin"&&Ar(this.path[G+1])==="object"&&typeof this.path[G+1].x=="number"){B=new s(this.path[G+1].x,this.path[G+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(B.x,B.y)},d.prototype.lineTo=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var j=this.ctx.transform.applyToPoint(new s(B,G));this.path.push({type:"lt",x:j.x,y:j.y}),this.ctx.lastPoint=new s(j.x,j.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),R.call(this,null,!0)},d.prototype.quadraticCurveTo=function(B,G,j,$){if(isNaN(j)||isNaN($)||isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new s(j,$)),ce=this.ctx.transform.applyToPoint(new s(B,G));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new s(ne.x,ne.y)},d.prototype.bezierCurveTo=function(B,G,j,$,ne,ce){if(isNaN(ne)||isNaN(ce)||isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var _e=this.ctx.transform.applyToPoint(new s(ne,ce)),me=this.ctx.transform.applyToPoint(new s(B,G)),Be=this.ctx.transform.applyToPoint(new s(j,$));this.path.push({type:"bct",x1:me.x,y1:me.y,x2:Be.x,y2:Be.y,x:_e.x,y:_e.y}),this.ctx.lastPoint=new s(_e.x,_e.y)},d.prototype.arc=function(B,G,j,$,ne,ce){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($)||isNaN(ne))throw Cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=!!ce,!this.ctx.transform.isIdentity){var _e=this.ctx.transform.applyToPoint(new s(B,G));B=_e.x,G=_e.y;var me=this.ctx.transform.applyToPoint(new s(0,j)),Be=this.ctx.transform.applyToPoint(new s(0,0));j=Math.sqrt(Math.pow(me.x-Be.x,2)+Math.pow(me.y-Be.y,2))}Math.abs(ne-$)>=2*Math.PI&&($=0,ne=2*Math.PI),this.path.push({type:"arc",x:B,y:G,radius:j,startAngle:$,endAngle:ne,counterclockwise:ce})},d.prototype.arcTo=function(B,G,j,$,ne){throw new Error("arcTo not implemented.")},d.prototype.rect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(B,G),this.lineTo(B+j,G),this.lineTo(B+j,G+$),this.lineTo(B,G+$),this.lineTo(B,G),this.lineTo(B+j,G),this.lineTo(B,G)},d.prototype.fillRect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(B,G,j,$),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},d.prototype.strokeRect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(B,G,j,$),this.stroke())},d.prototype.clearRect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(B,G,j,$))},d.prototype.save=function(B){B=typeof B!="boolean"||B;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("q");if(this.pdf.setPage(G),B){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},d.prototype.restore=function(B){B=typeof B!="boolean"||B;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("Q");this.pdf.setPage(G),B&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(B){var G,j,$,ne;if(B.isCanvasGradient===!0&&(B=B.getColor()),!B)return{r:0,g:0,b:0,a:0,style:B};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(B))G=0,j=0,$=0,ne=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(B);if(ce!==null)G=parseInt(ce[1]),j=parseInt(ce[2]),$=parseInt(ce[3]),ne=1;else if((ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(B))!==null)G=parseInt(ce[1]),j=parseInt(ce[2]),$=parseInt(ce[3]),ne=parseFloat(ce[4]);else{if(ne=1,typeof B=="string"&&B.charAt(0)!=="#"){var _e=new HN(B);B=_e.ok?_e.toHex():"#000000"}B.length===4?(G=B.substring(1,2),G+=G,j=B.substring(2,3),j+=j,$=B.substring(3,4),$+=$):(G=B.substring(1,3),j=B.substring(3,5),$=B.substring(5,7)),G=parseInt(G,16),j=parseInt(j,16),$=parseInt($,16)}}return{r:G,g:j,b:$,a:ne,style:B}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(B,G,j,$){if(isNaN(G)||isNaN(j)||typeof B!="string")throw Cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!g.call(this)){var ne=re(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;M.call(this,{text:B,x:G,y:j,scale:ce,angle:ne,align:this.textAlign,maxWidth:$})}},d.prototype.strokeText=function(B,G,j,$){if(isNaN(G)||isNaN(j)||typeof B!="string")throw Cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){$=isNaN($)?void 0:$;var ne=re(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;M.call(this,{text:B,x:G,y:j,scale:ce,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:$})}},d.prototype.measureText=function(B){if(typeof B!="string")throw Cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var G=this.pdf,j=this.pdf.internal.scaleFactor,$=G.internal.getFontSize(),ne=G.getStringUnitWidth(B)*$/G.internal.scaleFactor,ce=function(_e){var me=(_e=_e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return me}}),this};return new ce({width:ne*=Math.round(96*j/72*1e4)/1e4})},d.prototype.scale=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var j=new l(B,0,0,G,0,0);this.ctx.transform=this.ctx.transform.multiply(j)},d.prototype.rotate=function(B){if(isNaN(B))throw Cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var G=new l(Math.cos(B),Math.sin(B),-Math.sin(B),Math.cos(B),0,0);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.translate=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var j=new l(1,0,0,1,B,G);this.ctx.transform=this.ctx.transform.multiply(j)},d.prototype.transform=function(B,G,j,$,ne,ce){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($)||isNaN(ne)||isNaN(ce))throw Cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var _e=new l(B,G,j,$,ne,ce);this.ctx.transform=this.ctx.transform.multiply(_e)},d.prototype.setTransform=function(B,G,j,$,ne,ce){B=isNaN(B)?1:B,G=isNaN(G)?0:G,j=isNaN(j)?0:j,$=isNaN($)?1:$,ne=isNaN(ne)?0:ne,ce=isNaN(ce)?0:ce,this.ctx.transform=new l(B,G,j,$,ne,ce)};var _=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(B,G,j,$,ne,ce,_e,me,Be){var Oe=this.pdf.getImageProperties(B),ze=1,He=1,rt=1,Ce=1;$!==void 0&&me!==void 0&&(rt=me/$,Ce=Be/ne,ze=Oe.width/$*me/$,He=Oe.height/ne*Be/ne),ce===void 0&&(ce=G,_e=j,G=0,j=0),$!==void 0&&me===void 0&&(me=$,Be=ne),$===void 0&&me===void 0&&(me=Oe.width,Be=Oe.height);for(var Z,_t=this.ctx.transform.decompose(),tt=re(_t.rotate.shx),Fe=new l,Ye=(Fe=(Fe=(Fe=Fe.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale)).applyToRectangle(new o(ce-G*rt,_e-j*Ce,$*ze,ne*He)),Ke=E.call(this,Ye),We=[],Te=0;Te<Ke.length;Te+=1)We.indexOf(Ke[Te])===-1&&We.push(Ke[Te]);if(N(We),this.autoPaging)for(var Me=We[0],$e=We[We.length-1],Xe=Me;Xe<$e+1;Xe++){this.pdf.setPage(Xe);var At=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ft=Xe===1?this.posY+this.margin[0]:this.margin[0],mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],wt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ze=Xe===1?0:mt+(Xe-2)*wt;if(this.ctx.clip_path.length!==0){var rr=this.path;Z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(Z,this.posX+this.margin[3],-Ze+Ft+this.ctx.prevPageLastElemOffset),k.call(this,"fill",!0),this.path=rr}var Lt=JSON.parse(JSON.stringify(Ye));Lt=w([Lt],this.posX+this.margin[3],-Ze+Ft+this.ctx.prevPageLastElemOffset)[0];var mr=(Xe>Me||Xe<$e)&&_.call(this);mr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],At,wt,null).clip().discardPath()),this.pdf.addImage(B,"JPEG",Lt.x,Lt.y,Lt.w,Lt.h,null,null,tt),mr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(B,"JPEG",Ye.x,Ye.y,Ye.w,Ye.h,null,null,tt)};var E=function(B,G,j){var $=[];G=G||this.pdf.internal.pageSize.width,j=j||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(B.type){default:case"mt":case"lt":$.push(Math.floor((B.y+ne)/j)+1);break;case"arc":$.push(Math.floor((B.y+ne-B.radius)/j)+1),$.push(Math.floor((B.y+ne+B.radius)/j)+1);break;case"qct":var ce=se(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x,B.y);$.push(Math.floor((ce.y+ne)/j)+1),$.push(Math.floor((ce.y+ce.h+ne)/j)+1);break;case"bct":var _e=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x2,B.y2,B.x,B.y);$.push(Math.floor((_e.y+ne)/j)+1),$.push(Math.floor((_e.y+_e.h+ne)/j)+1);break;case"rect":$.push(Math.floor((B.y+ne)/j)+1),$.push(Math.floor((B.y+B.h+ne)/j)+1)}for(var me=0;me<$.length;me+=1)for(;this.pdf.internal.getNumberOfPages()<$[me];)y.call(this);return $},y=function(){var B=this.fillStyle,G=this.strokeStyle,j=this.font,$=this.lineCap,ne=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=B,this.strokeStyle=G,this.font=j,this.lineCap=$,this.lineWidth=ne,this.lineJoin=ce},w=function(B,G,j){for(var $=0;$<B.length;$++)switch(B[$].type){case"bct":B[$].x2+=G,B[$].y2+=j;case"qct":B[$].x1+=G,B[$].y1+=j;case"mt":case"lt":case"arc":default:B[$].x+=G,B[$].y+=j}return B},N=function(B){return B.sort(function(G,j){return G-j})},R=function(B,G){for(var j,$,ne=this.fillStyle,ce=this.strokeStyle,_e=this.lineCap,me=this.lineWidth,Be=Math.abs(me*this.ctx.transform.scaleX),Oe=this.lineJoin,ze=JSON.parse(JSON.stringify(this.path)),He=JSON.parse(JSON.stringify(this.path)),rt=[],Ce=0;Ce<He.length;Ce++)if(He[Ce].x!==void 0)for(var Z=E.call(this,He[Ce]),_t=0;_t<Z.length;_t+=1)rt.indexOf(Z[_t])===-1&&rt.push(Z[_t]);for(var tt=0;tt<rt.length;tt++)for(;this.pdf.internal.getNumberOfPages()<rt[tt];)y.call(this);if(N(rt),this.autoPaging)for(var Fe=rt[0],Ye=rt[rt.length-1],Ke=Fe;Ke<Ye+1;Ke++){this.pdf.setPage(Ke),this.fillStyle=ne,this.strokeStyle=ce,this.lineCap=_e,this.lineWidth=Be,this.lineJoin=Oe;var We=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Te=Ke===1?this.posY+this.margin[0]:this.margin[0],Me=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=Ke===1?0:Me+(Ke-2)*$e;if(this.ctx.clip_path.length!==0){var At=this.path;j=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(j,this.posX+this.margin[3],-Xe+Te+this.ctx.prevPageLastElemOffset),k.call(this,B,!0),this.path=At}if($=JSON.parse(JSON.stringify(ze)),this.path=w($,this.posX+this.margin[3],-Xe+Te+this.ctx.prevPageLastElemOffset),G===!1||Ke===0){var Ft=(Ke>Fe||Ke<Ye)&&_.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],We,$e,null).clip().discardPath()),k.call(this,B,G),Ft&&this.pdf.restoreGraphicsState()}this.lineWidth=me}else this.lineWidth=Be,k.call(this,B,G),this.lineWidth=me;this.path=ze},k=function(B,G){if((B!=="stroke"||G||!m.call(this))&&(B==="stroke"||G||!g.call(this))){for(var j,$,ne=[],ce=this.path,_e=0;_e<ce.length;_e++){var me=ce[_e];switch(me.type){case"begin":ne.push({begin:!0});break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:me,deltas:[],abs:[]});break;case"lt":var Be=ne.length;if(ce[_e-1]&&!isNaN(ce[_e-1].x)&&(j=[me.x-ce[_e-1].x,me.y-ce[_e-1].y],Be>0)){for(;Be>=0;Be--)if(ne[Be-1].close!==!0&&ne[Be-1].begin!==!0){ne[Be-1].deltas.push(j),ne[Be-1].abs.push(me);break}}break;case"bct":j=[me.x1-ce[_e-1].x,me.y1-ce[_e-1].y,me.x2-ce[_e-1].x,me.y2-ce[_e-1].y,me.x-ce[_e-1].x,me.y-ce[_e-1].y],ne[ne.length-1].deltas.push(j);break;case"qct":var Oe=ce[_e-1].x+2/3*(me.x1-ce[_e-1].x),ze=ce[_e-1].y+2/3*(me.y1-ce[_e-1].y),He=me.x+2/3*(me.x1-me.x),rt=me.y+2/3*(me.y1-me.y),Ce=me.x,Z=me.y;j=[Oe-ce[_e-1].x,ze-ce[_e-1].y,He-ce[_e-1].x,rt-ce[_e-1].y,Ce-ce[_e-1].x,Z-ce[_e-1].y],ne[ne.length-1].deltas.push(j);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(me)}}$=G?null:B==="stroke"?"stroke":"fill";for(var _t=!1,tt=0;tt<ne.length;tt++)if(ne[tt].arc)for(var Fe=ne[tt].abs,Ye=0;Ye<Fe.length;Ye++){var Ke=Fe[Ye];Ke.type==="arc"?L.call(this,Ke.x,Ke.y,Ke.radius,Ke.startAngle,Ke.endAngle,Ke.counterclockwise,void 0,G,!_t):V.call(this,Ke.x,Ke.y),_t=!0}else if(ne[tt].close===!0)this.pdf.internal.out("h"),_t=!1;else if(ne[tt].begin!==!0){var We=ne[tt].start.x,Te=ne[tt].start.y;Q.call(this,ne[tt].deltas,We,Te),_t=!0}$&&Y.call(this,$),G&&K.call(this)}},h=function(B){var G=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,j=G*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return B-j;case"top":return B+G-j;case"hanging":return B+G-2*j;case"middle":return B+G/2-j;case"ideographic":return B;case"alphabetic":default:return B}},O=function(B){return B+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var B=function(){};return B.colorStops=[],B.addColorStop=function(G,j){this.colorStops.push([G,j])},B.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},B.isCanvasGradient=!0,B},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var L=function(B,G,j,$,ne,ce,_e,me,Be){for(var Oe=oe.call(this,j,$,ne,ce),ze=0;ze<Oe.length;ze++){var He=Oe[ze];ze===0&&(Be?I.call(this,He.x1+B,He.y1+G):V.call(this,He.x1+B,He.y1+G)),ee.call(this,B,G,He.x2,He.y2,He.x3,He.y3,He.x4,He.y4)}me?K.call(this):Y.call(this,_e)},Y=function(B){switch(B){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},K=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(B,G){this.pdf.internal.out(t(B)+" "+a(G)+" m")},M=function(B){var G;switch(B.align){case"right":case"end":G="right";break;case"center":G="center";break;case"left":case"start":default:G="left"}var j=this.pdf.getTextDimensions(B.text),$=h.call(this,B.y),ne=O.call(this,$)-j.h,ce=this.ctx.transform.applyToPoint(new s(B.x,$)),_e=this.ctx.transform.decompose(),me=new l;me=(me=(me=me.multiply(_e.translate)).multiply(_e.skew)).multiply(_e.scale);for(var Be,Oe,ze,He=this.ctx.transform.applyToRectangle(new o(B.x,$,j.w,j.h)),rt=me.applyToRectangle(new o(B.x,ne,j.w,j.h)),Ce=E.call(this,rt),Z=[],_t=0;_t<Ce.length;_t+=1)Z.indexOf(Ce[_t])===-1&&Z.push(Ce[_t]);if(N(Z),this.autoPaging)for(var tt=Z[0],Fe=Z[Z.length-1],Ye=tt;Ye<Fe+1;Ye++){this.pdf.setPage(Ye);var Ke=Ye===1?this.posY+this.margin[0]:this.margin[0],We=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Te=this.pdf.internal.pageSize.height-this.margin[2],Me=Te-this.margin[0],$e=this.pdf.internal.pageSize.width-this.margin[1],Xe=$e-this.margin[3],At=Ye===1?0:We+(Ye-2)*Me;if(this.ctx.clip_path.length!==0){var Ft=this.path;Be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(Be,this.posX+this.margin[3],-1*At+Ke),k.call(this,"fill",!0),this.path=Ft}var mt=w([JSON.parse(JSON.stringify(rt))],this.posX+this.margin[3],-At+Ke+this.ctx.prevPageLastElemOffset)[0];B.scale>=.01&&(Oe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oe*B.scale),ze=this.lineWidth,this.lineWidth=ze*B.scale);var wt=this.autoPaging!=="text";if(wt||mt.y+mt.h<=Te){if(wt||mt.y>=Ke&&mt.x<=$e){var Ze=wt?B.text:this.pdf.splitTextToSize(B.text,B.maxWidth||$e-mt.x)[0],rr=w([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-At+Ke+this.ctx.prevPageLastElemOffset)[0],Lt=wt&&(Ye>tt||Ye<Fe)&&_.call(this);Lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xe,Me,null).clip().discardPath()),this.pdf.text(Ze,rr.x,rr.y,{angle:B.angle,align:G,renderingMode:B.renderingMode}),Lt&&this.pdf.restoreGraphicsState()}}else mt.y<Te&&(this.ctx.prevPageLastElemOffset+=Te-mt.y);B.scale>=.01&&(this.pdf.setFontSize(Oe),this.lineWidth=ze)}else B.scale>=.01&&(Oe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oe*B.scale),ze=this.lineWidth,this.lineWidth=ze*B.scale),this.pdf.text(B.text,ce.x+this.posX,ce.y+this.posY,{angle:B.angle,align:G,renderingMode:B.renderingMode,maxWidth:B.maxWidth}),B.scale>=.01&&(this.pdf.setFontSize(Oe),this.lineWidth=ze)},V=function(B,G,j,$){j=j||0,$=$||0,this.pdf.internal.out(t(B+j)+" "+a(G+$)+" l")},Q=function(B,G,j){return this.pdf.lines(B,G,j,null,null)},ee=function(B,G,j,$,ne,ce,_e,me){this.pdf.internal.out([e(n(j+B)),e(i($+G)),e(n(ne+B)),e(i(ce+G)),e(n(_e+B)),e(i(me+G)),"c"].join(" "))},oe=function(B,G,j,$){for(var ne=2*Math.PI,ce=Math.PI/2;G>j;)G-=ne;var _e=Math.abs(j-G);_e<ne&&$&&(_e=ne-_e);for(var me=[],Be=$?-1:1,Oe=G;_e>1e-5;){var ze=Oe+Be*Math.min(_e,ce);me.push(ie.call(this,B,Oe,ze)),_e-=Math.abs(ze-Oe),Oe=ze}return me},ie=function(B,G,j){var $=(j-G)/2,ne=B*Math.cos($),ce=B*Math.sin($),_e=ne,me=-ce,Be=_e*_e+me*me,Oe=Be+_e*ne+me*ce,ze=4/3*(Math.sqrt(2*Be*Oe)-Oe)/(_e*ce-me*ne),He=_e-ze*me,rt=me+ze*_e,Ce=He,Z=-rt,_t=$+G,tt=Math.cos(_t),Fe=Math.sin(_t);return{x1:B*Math.cos(G),y1:B*Math.sin(G),x2:He*tt-rt*Fe,y2:He*Fe+rt*tt,x3:Ce*tt-Z*Fe,y3:Ce*Fe+Z*tt,x4:B*Math.cos(j),y4:B*Math.sin(j)}},re=function(B){return 180*B/Math.PI},se=function(B,G,j,$,ne,ce){var _e=B+.5*(j-B),me=G+.5*($-G),Be=ne+.5*(j-ne),Oe=ce+.5*($-ce),ze=Math.min(B,ne,_e,Be),He=Math.max(B,ne,_e,Be),rt=Math.min(G,ce,me,Oe),Ce=Math.max(G,ce,me,Oe);return new o(ze,rt,He-ze,Ce-rt)},Ae=function(B,G,j,$,ne,ce,_e,me){var Be,Oe,ze,He,rt,Ce,Z,_t,tt,Fe,Ye,Ke,We,Te,Me=j-B,$e=$-G,Xe=ne-j,At=ce-$,Ft=_e-ne,mt=me-ce;for(Oe=0;Oe<41;Oe++)tt=(Z=(ze=B+(Be=Oe/40)*Me)+Be*((rt=j+Be*Xe)-ze))+Be*(rt+Be*(ne+Be*Ft-rt)-Z),Fe=(_t=(He=G+Be*$e)+Be*((Ce=$+Be*At)-He))+Be*(Ce+Be*(ce+Be*mt-Ce)-_t),Oe==0?(Ye=tt,Ke=Fe,We=tt,Te=Fe):(Ye=Math.min(Ye,tt),Ke=Math.min(Ke,Fe),We=Math.max(We,tt),Te=Math.max(Te,Fe));return new o(Math.round(Ye),Math.round(Ke),Math.round(We-Ye),Math.round(Te-Ke))},ye=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var B,G,j=(B=this.ctx.lineDash,G=this.ctx.lineDashOffset,JSON.stringify({lineDash:B,lineDashOffset:G}));this.prevLineDash!==j&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=j)}}})(Bt.API),function(r){var e=function(i){var s,o,l,c,A,d,u,g,m,_;for(o=[],l=0,c=(i+=s="\0\0\0\0".slice(i.length%4||4)).length;c>l;l+=4)(A=(i.charCodeAt(l)<<24)+(i.charCodeAt(l+1)<<16)+(i.charCodeAt(l+2)<<8)+i.charCodeAt(l+3))!==0?(d=(A=((A=((A=((A=(A-(_=A%85))/85)-(m=A%85))/85)-(g=A%85))/85)-(u=A%85))/85)%85,o.push(d+33,u+33,g+33,m+33,_+33)):o.push(122);return function(E,y){for(var w=y;w>0;w--)E.pop()}(o,s.length),String.fromCharCode.apply(String,o)+"~>"},t=function(i){var s,o,l,c,A,d=String,u="length",g=255,m="charCodeAt",_="slice",E="replace";for(i[_](-2),i=i[_](0,-2)[E](/\s/g,"")[E]("z","!!!!!"),l=[],c=0,A=(i+=s="uuuuu"[_](i[u]%5||5))[u];A>c;c+=5)o=52200625*(i[m](c)-33)+614125*(i[m](c+1)-33)+7225*(i[m](c+2)-33)+85*(i[m](c+3)-33)+(i[m](c+4)-33),l.push(g&o>>24,g&o>>16,g&o>>8,g&o);return function(y,w){for(var N=w;N>0;N--)y.pop()}(l,s[u]),d.fromCharCode.apply(d,l)},a=function(i){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),s.test(i)===!1)return"";for(var o="",l=0;l<i.length;l+=2)o+=String.fromCharCode("0x"+(i[l]+i[l+1]));return o},n=function(i){for(var s=new Uint8Array(i.length),o=i.length;o--;)s[o]=i.charCodeAt(o);return i=(s=Gh(s)).reduce(function(l,c){return l+String.fromCharCode(c)},"")};r.processDataByFilters=function(i,s){var o=0,l=i||"",c=[];for(typeof(s=s||[])=="string"&&(s=[s]),o=0;o<s.length;o+=1)switch(s[o]){case"ASCII85Decode":case"/ASCII85Decode":l=t(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=a(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=n(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[o]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(Bt.API),function(r){r.loadFile=function(e,t,a){return function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=function(l,c,A){var d=new XMLHttpRequest,u=0,g=function(m){var _=m.length,E=[],y=String.fromCharCode;for(u=0;u<_;u+=1)E.push(y(255&m.charCodeAt(u)));return E.join("")};if(d.open("GET",l,!c),d.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(d.onload=function(){d.status===200?A(g(this.responseText)):A(void 0)}),d.send(null),c&&d.status===200)return g(d.responseText)}(n,i,s)}catch{}return o}(e,t,a)},r.loadImageFile=r.loadFile}(Bt.API),function(r){function e(){return(xt.html2canvas?Promise.resolve(xt.html2canvas):Promise.resolve().then(()=>Pge)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function t(){return(xt.DOMPurify?Promise.resolve(xt.DOMPurify):Promise.resolve().then(()=>c_e)).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var a=function(s){var o=Ar(s);return o==="undefined"?"undefined":o==="string"||s instanceof String?"string":o==="number"||s instanceof Number?"number":o==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(s,o){var l=document.createElement(s);for(var c in o.className&&(l.className=o.className),o.innerHTML&&o.dompurify&&(l.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)l.style[c]=o.style[c];return l},i=function s(o){var l=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),c=s.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,s,1,[s])).set(o)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(s,o){return s.__proto__=o||i.prototype,s},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(s,o){return this.then(function(){switch(o=o||function(l){switch(a(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(t).then(function(l){return this.set({src:n("div",{innerHTML:s,dompurify:l})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},i.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=function l(c,A){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),u=c.firstChild;u;u=u.nextSibling)A!==!0&&u.nodeType===1&&u.nodeName==="SCRIPT"||d.appendChild(l(u,A));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(s.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:s}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(o){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,o(this.prop.container,l)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(o){var l=this.opt.jsPDF,c=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:A,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 d.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var u=0;u<c.length;++u){var g=c[u],m=g.src.find(function(_){return _.format==="truetype"});m&&l.addFont(m.url,g.ref.name,g.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,l.context2d.save(!0),o(this.prop.container,d)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(s,o,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(s,o):this.outputPdf(s,o)},i.prototype.outputPdf=function(s,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,o)})},i.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},i.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(s){if(a(s)!=="object")return this;var o=Object.keys(s||{}).map(function(l){if(l in i.template.prop)return function(){this.prop[l]=s[l]};switch(l){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[l]=s[l]}}},this);return this.then(function(){return this.thenList(o)})},i.prototype.get=function(s,o){return this.then(function(){var l=s in i.template.prop?this.prop[s]:this.opt[s];return o?o(l):l})},i.prototype.setMargin=function(s){return this.then(function(){switch(a(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},i.prototype.setPageSize=function(s){function o(l,c){return Math.floor(l*c/72*96)}return this.then(function(){(s=s||Bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:o(s.inner.width,s.k),height:o(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},i.prototype.setProgress=function(s,o,l,c){return s!=null&&(this.progress.val=s),o!=null&&(this.progress.state=o),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(s,o,l,c){return this.setProgress(s?this.progress.val+s:null,o||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},i.prototype.then=function(s,o){var l=this;return this.thenCore(s,o,function(c,A){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(d){return l.updateProgress(null,c),d}).then(c,A).then(function(d){return l.updateProgress(1),d})})},i.prototype.thenCore=function(s,o,l){l=l||Promise.prototype.then,s&&(s=s.bind(this)),o&&(o=o.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),A=l.call(c,s,o);return i.convert(A,this.__proto__)},i.prototype.thenExternal=function(s,o){return Promise.prototype.then.call(this,s,o)},i.prototype.thenList=function(s){var o=this;return s.forEach(function(l){o=o.thenCore(l)}),o},i.prototype.catch=function(s){s&&(s=s.bind(this));var o=Promise.prototype.catch.call(this,s);return i.convert(o,this)},i.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},i.prototype.error=function(s){return this.then(function(){throw new Error(s)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,Bt.getPageSize=function(s,o,l){if(Ar(s)==="object"){var c=s;s=c.orientation,o=c.unit||o,l=c.format||l}o=o||"mm",l=l||"a4",s=(""+(s||"P")).toLowerCase();var A,d=(""+l).toLowerCase(),u={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(o){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+o}var g,m=0,_=0;if(u.hasOwnProperty(d))m=u[d][1]/A,_=u[d][0]/A;else try{m=l[1],_=l[0]}catch{throw new Error("Invalid format: "+l)}if(s==="p"||s==="portrait")s="p",_>m&&(g=_,_=m,m=g);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",m>_&&(g=_,_=m,m=g)}return{width:_,height:m,unit:o,k:A,orientation:s}},r.html=function(s,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(e0):null;var l=new i(o);return o.worker?l:l.from(s).doCallback()}}(Bt.API),Bt.API.addJS=function(r){return ok=r,this.internal.events.subscribe("postPutResources",function(){td=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(td+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),sk=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+ok+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){td!==void 0&&sk!==void 0&&this.internal.out("/Names <</JavaScript "+td+" 0 R>>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var t=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],o=a.exec(s);if(o!=null){var l=o[1];t.internal.newObjectDeferredBegin(l,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,A=[];for(i=0;i<c;i++){var d=t.internal.newObject();A.push(d);var u=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var g=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<A.length;i++)t.internal.write("(page_"+(i+1)+")"+A[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+g+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(a,n,i){var s={title:n,options:i,children:[]};return a==null&&(a=this.root),a.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(a){a.id=t.internal.newObjectDeferred();for(var n=0;n<a.children.length;n++)this.genIds_r(a.children[n])},t.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()},t.outline.renderItems=function(a){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<a.children.length;i++){var s=a.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(a)),i>0&&this.line("/Prev "+this.makeRef(a.children[i-1])),i<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var l=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var c=0;c<a.children.length;c++)this.renderItems(a.children[c])},t.outline.line=function(a){this.ctx.val+=a+`\r
|
|
514
|
+
`),e}}},createDefaultAppearanceStream:function(r){var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color);return"/"+e+" "+r.fontSize+" Tf "+t}};bt.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=bt.internal.getWidth(r),t=bt.internal.getHeight(r),a=Math.min(e,t);return{x1:{x:(e-a)/2,y:(t-a)/2+a},x2:{x:(e-a)/2+a,y:(t-a)/2},x3:{x:(e-a)/2,y:(t-a)/2},x4:{x:(e-a)/2+a,y:(t-a)/2+a}}}},bt.internal.getWidth=function(r){var e=0;return cr(r)==="object"&&(e=KN(r.Rect[2])),e},bt.internal.getHeight=function(r){var e=0;return cr(r)==="object"&&(e=KN(r.Rect[3])),e};var pfe=$r.addField=function(r){if(dfe(this,r),!(r instanceof ui))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=r).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};$r.AcroFormChoiceField=Sl,$r.AcroFormListBox=wl,$r.AcroFormComboBox=Cl,$r.AcroFormEditBox=$u,$r.AcroFormButton=Oa,$r.AcroFormPushButton=Xu,$r.AcroFormRadioButton=Tl,$r.AcroFormCheckBox=Ju,$r.AcroFormTextField=No,$r.AcroFormPasswordField=ed,$r.AcroFormAppearance=bt,$r.AcroForm={ChoiceField:Sl,ListBox:wl,ComboBox:Cl,EditBox:$u,Button:Oa,PushButton:Xu,RadioButton:Tl,CheckBox:Ju,TextField:No,PasswordField:ed,Appearance:bt},Bt.AcroForm={ChoiceField:Sl,ListBox:wl,ComboBox:Cl,EditBox:$u,Button:Oa,PushButton:Xu,RadioButton:Tl,CheckBox:Ju,TextField:No,PasswordField:ed,Appearance:bt},Bt.AcroForm;function ZN(r){return r.reduce(function(e,t,a){return e[t]=a,e},{})}(function(r){r.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=r.__addimage__.getImageFileTypeByImageData=function(I,M){var V,Q,ee,oe,ie,re=e;if((M=M||e)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(h(I))for(ie in t)for(ee=t[ie],V=0;V<ee.length;V+=1){for(oe=!0,Q=0;Q<ee[V].length;Q+=1)if(ee[V][Q]!==void 0&&ee[V][Q]!==I[Q]){oe=!1;break}if(oe===!0){re=ie;break}}else for(ie in t)for(ee=t[ie],V=0;V<ee.length;V+=1){for(oe=!0,Q=0;Q<ee[V].length;Q+=1)if(ee[V][Q]!==void 0&&ee[V][Q]!==I.charCodeAt(Q)){oe=!1;break}if(oe===!0){re=ie;break}}return re===e&&M!==e&&(re=M),re},n=function I(M){for(var V=this.internal.write,Q=this.internal.putStream,ee=(0,this.internal.getFilters)();ee.indexOf("FlateEncode")!==-1;)ee.splice(ee.indexOf("FlateEncode"),1);M.objectId=this.internal.newObject();var oe=[];if(oe.push({key:"Type",value:"/XObject"}),oe.push({key:"Subtype",value:"/Image"}),oe.push({key:"Width",value:M.width}),oe.push({key:"Height",value:M.height}),M.colorSpace===E.INDEXED?oe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(M.palette.length/3-1)+" "+("sMask"in M&&M.sMask!==void 0?M.objectId+2:M.objectId+1)+" 0 R]"}):(oe.push({key:"ColorSpace",value:"/"+M.colorSpace}),M.colorSpace===E.DEVICE_CMYK&&oe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),oe.push({key:"BitsPerComponent",value:M.bitsPerComponent}),"decodeParameters"in M&&M.decodeParameters!==void 0&&oe.push({key:"DecodeParms",value:"<<"+M.decodeParameters+">>"}),"transparency"in M&&Array.isArray(M.transparency)){for(var ie="",re=0,se=M.transparency.length;re<se;re++)ie+=M.transparency[re]+" "+M.transparency[re]+" ";oe.push({key:"Mask",value:"["+ie+"]"})}M.sMask!==void 0&&oe.push({key:"SMask",value:M.objectId+1+" 0 R"});var Ae=M.filter!==void 0?["/"+M.filter]:void 0;if(Q({data:M.data,additionalKeyValues:oe,alreadyAppliedFilters:Ae,objectId:M.objectId}),V("endobj"),"sMask"in M&&M.sMask!==void 0){var ye="/Predictor "+M.predictor+" /Colors 1 /BitsPerComponent "+M.bitsPerComponent+" /Columns "+M.width,B={width:M.width,height:M.height,colorSpace:"DeviceGray",bitsPerComponent:M.bitsPerComponent,decodeParameters:ye,data:M.sMask};"filter"in M&&(B.filter=M.filter),I.call(this,B)}if(M.colorSpace===E.INDEXED){var G=this.internal.newObject();Q({data:L(new Uint8Array(M.palette)),objectId:G}),V("endobj")}},i=function(){var I=this.internal.collections.addImage_images;for(var M in I)n.call(this,I[M])},s=function(){var I,M=this.internal.collections.addImage_images,V=this.internal.write;for(var Q in M)V("/I"+(I=M[Q]).index,I.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var I=this.internal.collections.addImage_images;return o.call(this),I},c=function(){return Object.keys(this.internal.collections.addImage_images).length},A=function(I){return typeof r["process"+I.toUpperCase()]=="function"},d=function(I){return cr(I)==="object"&&I.nodeType===1},u=function(I,M){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var V=""+I.getAttribute("src");if(V.indexOf("data:image/")===0)return Rc(unescape(V).split("base64,").pop());var Q=r.loadFile(V,!0);if(Q!==void 0)return Q}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var ee;switch(M){case"PNG":ee="image/png";break;case"WEBP":ee="image/webp";break;case"JPEG":case"JPG":default:ee="image/jpeg"}return Rc(I.toDataURL(ee,1).split("base64,").pop())}},g=function(I){var M=this.internal.collections.addImage_images;if(M){for(var V in M)if(I===M[V].alias)return M[V]}},m=function(I,M,V){return I||M||(I=-96,M=-96),I<0&&(I=-1*V.width*72/I/this.internal.scaleFactor),M<0&&(M=-1*V.height*72/M/this.internal.scaleFactor),I===0&&(I=M*V.width/V.height),M===0&&(M=I*V.height/V.width),[I,M]},_=function(I,M,V,Q,ee,oe){var ie=m.call(this,V,Q,ee),re=this.internal.getCoordinateString,se=this.internal.getVerticalCoordinateString,Ae=l.call(this);if(V=ie[0],Q=ie[1],Ae[ee.index]=ee,oe){oe*=Math.PI/180;var ye=Math.cos(oe),B=Math.sin(oe),G=function($){return $.toFixed(4)},j=[G(ye),G(B),G(-1*B),G(ye),0,0,"cm"]}this.internal.write("q"),oe?(this.internal.write([1,"0","0",1,re(I),se(M+Q),"cm"].join(" ")),this.internal.write(j.join(" ")),this.internal.write([re(V),"0","0",re(Q),"0","0","cm"].join(" "))):this.internal.write([re(V),"0","0",re(Q),re(I),se(M+Q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ee.index+" Do"),this.internal.write("Q")},E=r.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"};r.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 y=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=r.__addimage__.sHashCode=function(I){var M,V,Q=0;if(typeof I=="string")for(V=I.length,M=0;M<V;M++)Q=(Q<<5)-Q+I.charCodeAt(M),Q|=0;else if(h(I))for(V=I.byteLength/2,M=0;M<V;M++)Q=(Q<<5)-Q+I[M],Q|=0;return Q},N=r.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var M=!0;return I.length===0&&(M=!1),I.length%4!=0&&(M=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(M=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(M=!1),M},R=r.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var M=I.indexOf(",");return M<0?null:I.substring(0,M).trim().endsWith("base64")?I.substring(M+1):null},k=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(I){return k()&&I instanceof ArrayBuffer};var h=r.__addimage__.isArrayBufferView=function(I){return k()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},O=r.__addimage__.binaryStringToUint8Array=function(I){for(var M=I.length,V=new Uint8Array(M),Q=0;Q<M;Q++)V[Q]=I.charCodeAt(Q);return V},L=r.__addimage__.arrayBufferToBinaryString=function(I){for(var M="",V=h(I)?I:new Uint8Array(I),Q=0;Q<V.length;Q+=8192)M+=String.fromCharCode.apply(null,V.subarray(Q,Q+8192));return M};r.addImage=function(){var I,M,V,Q,ee,oe,ie,re,se;if(typeof arguments[1]=="number"?(M=e,V=arguments[1],Q=arguments[2],ee=arguments[3],oe=arguments[4],ie=arguments[5],re=arguments[6],se=arguments[7]):(M=arguments[1],V=arguments[2],Q=arguments[3],ee=arguments[4],oe=arguments[5],ie=arguments[6],re=arguments[7],se=arguments[8]),cr(I=arguments[0])==="object"&&!d(I)&&"imageData"in I){var Ae=I;I=Ae.imageData,M=Ae.format||M||e,V=Ae.x||V||0,Q=Ae.y||Q||0,ee=Ae.w||Ae.width||ee,oe=Ae.h||Ae.height||oe,ie=Ae.alias||ie,re=Ae.compression||re,se=Ae.rotation||Ae.angle||se}var ye=this.internal.getFilters();if(re===void 0&&ye.indexOf("FlateEncode")!==-1&&(re="SLOW"),isNaN(V)||isNaN(Q))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var B=Y.call(this,I,M,ie,re);return _.call(this,V,Q,ee,oe,B,se),this};var Y=function(I,M,V,Q){var ee,oe,ie;if(typeof I=="string"&&a(I)===e){I=unescape(I);var re=K(I,!1);(re!==""||(re=r.loadFile(I,!0))!==void 0)&&(I=re)}if(d(I)&&(I=u(I,M)),M=a(I,M),!A(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(((ie=V)==null||ie.length===0)&&(V=function(se){return typeof se=="string"||h(se)?w(se):h(se.data)?w(se.data):null}(I)),(ee=g.call(this,V))||(k()&&(I instanceof Uint8Array||M==="RGBA"||(oe=I,I=O(I))),ee=this["process"+M.toUpperCase()](I,c.call(this),V,function(se){return se&&typeof se=="string"&&(se=se.toUpperCase()),se in r.image_compression?se:y.NONE}(Q),oe)),!ee)throw new Error("An unknown error occurred whilst processing the image.");return ee},K=r.__addimage__.convertBase64ToBinaryString=function(I,M){M=typeof M!="boolean"||M;var V,Q="";if(typeof I=="string"){var ee;V=(ee=R(I))!==null&&ee!==void 0?ee:I;try{Q=Rc(V)}catch(oe){if(M)throw N(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+oe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Q};r.getImageProperties=function(I){var M,V,Q="";if(d(I)&&(I=u(I)),typeof I=="string"&&a(I)===e&&((Q=K(I,!1))===""&&(Q=r.loadFile(I)||""),I=Q),V=a(I),!A(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(!k()||I instanceof Uint8Array||(I=O(I)),!(M=this["process"+V.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return M.fileType=V,M}})(Bt.API),function(r){var e=function(t){if(t!==void 0&&t!="")return!0};Bt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(t){for(var a,n,i,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,A=!1,d=0;d<c.length&&!A;d++)switch((a=c[d]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(A!=0){this.internal.write("/Annots [");for(var u=0;u<c.length;u++){a=c[u];var g=this.internal.pdfEscape,m=this.internal.getEncryptor(t.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var _=this.internal.newAdditionalObject(),E=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(_.objId),w=a.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(a.bounds.x)+" "+o(a.bounds.y+a.bounds.h)+" "+s(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y)+"] ")+"/Contents ("+g(y(a.contents))+")",i+=" /Popup "+E.objId+" 0 R",i+=" /P "+l.objId+" 0 R",i+=" /T ("+g(y(w))+") >>",_.content=i;var N=_.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(a.bounds.x+30)+" "+o(a.bounds.y+a.bounds.h)+" "+s(a.bounds.x+a.bounds.w+30)+" "+o(a.bounds.y)+"] ")+" /Parent "+N,a.open&&(i+=" /Open true"),i+=" >>",E.content=i,this.internal.write(_.objId,"0 R",E.objId,"0 R");break;case"freetext":n="/Rect ["+s(a.bounds.x)+" "+o(a.bounds.y)+" "+s(a.bounds.x+a.bounds.w)+" "+o(a.bounds.y+a.bounds.h)+"] ";var R=a.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+g(m(a.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+R+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(a.options.name){var k=this.annotations._nameMap[a.options.name];a.options.pageNumber=k.page,a.options.top=k.y}else a.options.top||(a.options.top=0);if(n="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",i="",a.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+g(m(a.options.url))+") >>";else if(a.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,i+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var h=o(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),i+=" /XYZ "+a.options.left+" "+h+" "+a.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),r.createAnnotation=function(t){var a=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":a.pageContext.annotations.push(t)}},r.link=function(t,a,n,i,s){var o=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:l(t),y:c(a),w:l(t+n),h:c(a+i)},options:s,type:"link"})},r.textWithLink=function(t,a,n,i){var s,o,l=this.getTextWidth(t),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){o=i.maxWidth;var A=this.splitTextToSize(t,o).length;s=Math.ceil(c*A)}else o=l,s=c;return this.text(t,a,n,i),n+=.2*c,i.align==="center"&&(a-=l/2),i.align==="right"&&(a-=l),this.link(a,n-c,o,s,i),l},r.getTextWidth=function(t){var a=this.internal.getFontSize();return this.getStringUnitWidth(t)*a/this.internal.scaleFactor}}(Bt.API),function(r){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];r.__arabicParser__={};var i=r.__arabicParser__.isInArabicSubstitutionA=function(_){return e[_.charCodeAt(0)]!==void 0},s=r.__arabicParser__.isArabicLetter=function(_){return typeof _=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(_)},o=r.__arabicParser__.isArabicEndLetter=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length<=2},l=r.__arabicParser__.isArabicAlfLetter=function(_){return s(_)&&n.indexOf(_.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length>=1};var c=r.__arabicParser__.arabicLetterHasFinalForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length>=3};var A=r.__arabicParser__.arabicLetterHasMedialForm=function(_){return s(_)&&i(_)&&e[_.charCodeAt(0)].length==4},d=r.__arabicParser__.resolveLigatures=function(_){var E=0,y=t,w="",N=0;for(E=0;E<_.length;E+=1)y[_.charCodeAt(E)]!==void 0?(N++,typeof(y=y[_.charCodeAt(E)])=="number"&&(w+=String.fromCharCode(y),y=t,N=0),E===_.length-1&&(y=t,w+=_.charAt(E-(N-1)),E-=N-1,N=0)):(y=t,w+=_.charAt(E-N),E-=N,N=0);return w};r.__arabicParser__.isArabicDiacritic=function(_){return _!==void 0&&a[_.charCodeAt(0)]!==void 0};var u=r.__arabicParser__.getCorrectForm=function(_,E,y){return s(_)?i(_)===!1?-1:!c(_)||!s(E)&&!s(y)||!s(y)&&o(E)||o(_)&&!s(E)||o(_)&&l(E)||o(_)&&o(E)?0:A(_)&&s(E)&&!o(E)&&s(y)&&c(y)?3:o(_)||!s(y)?1:2:-1},g=function(_){var E=0,y=0,w=0,N="",R="",k="",h=(_=_||"").split("\\s+"),O=[];for(E=0;E<h.length;E+=1){for(O.push(""),y=0;y<h[E].length;y+=1)N=h[E][y],R=h[E][y-1],k=h[E][y+1],s(N)?(w=u(N,R,k),O[E]+=w!==-1?String.fromCharCode(e[N.charCodeAt(0)][w]):N):O[E]+=N;O[E]=d(O[E])}return O.join(" ")},m=r.__arabicParser__.processArabic=r.processArabic=function(){var _,E=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(E)){var w=0;for(y=[],w=0;w<E.length;w+=1)Array.isArray(E[w])?y.push([g(E[w][0]),E[w][1],E[w][2]]):y.push([g(E[w])]);_=y}else _=g(E);return typeof arguments[0]=="string"?_:(arguments[0].text=_,arguments[0])};r.events.push(["preProcessText",m])}(Bt.API),Bt.API.autoPrint=function(r){var e;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})}return this},function(r){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(o){t=o}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(o){a=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(o){i=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,a){var n;if((t=t||"2d")!=="2d")return null;for(n in a)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=a[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Bt.API),function(r){var e={left:0,top:0,bottom:0,right:0},t=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),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 l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(_){l=_}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(_){c=_}});var A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(_){A=_}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(_){d=_}});var u=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return u},set:function(_){u=_}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(_){g=_}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(_){m=_}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(l){return a.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},r.getTextDimensions=function(l,c){a.call(this);var A=(c=c||{}).fontSize||this.getFontSize(),d=c.font||this.getFont(),u=c.scaleFactor||this.internal.scaleFactor,g=0,m=0,_=0,E=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(N,R){return N.concat(E.splitTextToSize(R,y))},[])):l=Array.isArray(l)?l:[l];for(var w=0;w<l.length;w++)g<(_=this.getStringUnitWidth(l[w],{font:d})*A)&&(g=_);return g!==0&&(m=l.length),{w:g/=u,h:Math.max((m*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/u,0)}},r.cellAddPage=function(){a.call(this),this.addPage();var l=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=r.cell=function(){var l;l=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var c=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,d=this.internal.__cell__.margins||e,u=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=d.top,g&&u&&(this.printHeaderRow(l.lineNumber,!0),l.y+=u[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,t===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-A,l.y+A,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+A,{align:"center",baseline:"top",maxWidth:l.width-A-A}):this.text(l.text,l.x+A,l.y+A,{align:"left",baseline:"top",maxWidth:l.width-A-A})),this.internal.__cell__.lastCell=l,this};r.table=function(l,c,A,d,u){if(a.call(this),!A)throw new Error("No data for PDF table.");var g,m,_,E,y=[],w=[],N=[],R={},k={},h=[],O=[],L=(u=u||{}).autoSize||!1,Y=u.printHeaders!==!1,K=u.css&&u.css["font-size"]!==void 0?16*u.css["font-size"]:u.fontSize||12,I=u.margins||Object.assign({width:this.getPageWidth()},e),M=typeof u.padding=="number"?u.padding:3,V=u.headerBackgroundColor||"#c8c8c8",Q=u.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=Y,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=K,this.internal.__cell__.padding=M,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=Q,this.setFontSize(K),d==null)w=y=Object.keys(A[0]),N=y.map(function(){return"left"});else if(Array.isArray(d)&&cr(d[0])==="object")for(y=d.map(function(Ae){return Ae.name}),w=d.map(function(Ae){return Ae.prompt||Ae.name||""}),N=d.map(function(Ae){return Ae.align||"left"}),g=0;g<d.length;g+=1)k[d[g].name]=d[g].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(w=y=d,N=y.map(function(){return"left"}));if(L||Array.isArray(d)&&typeof d[0]=="string")for(g=0;g<y.length;g+=1){for(R[E=y[g]]=A.map(function(Ae){return Ae[E]}),this.setFont(void 0,"bold"),h.push(this.getTextDimensions(w[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=R[E],this.setFont(void 0,"normal"),_=0;_<m.length;_+=1)h.push(this.getTextDimensions(m[_],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);k[E]=Math.max.apply(null,h)+M+M,h=[]}if(Y){var ee={};for(g=0;g<y.length;g+=1)ee[y[g]]={},ee[y[g]].text=w[g],ee[y[g]].align=N[g];var oe=o.call(this,ee,k);O=y.map(function(Ae){return new i(l,c,k[Ae],oe,ee[Ae].text,void 0,ee[Ae].align)}),this.setTableHeaderRow(O),this.printHeaderRow(1,!1)}var ie=d.reduce(function(Ae,ye){return Ae[ye.name]=ye.align,Ae},{});for(g=0;g<A.length;g+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:g,data:A[g]},this);var re=o.call(this,A[g],k);for(_=0;_<y.length;_+=1){var se=A[g][y[_]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:g,col:_,data:se},this),s.call(this,new i(l,c,k[y[_]],re,se,g+2,ie[y[_]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var o=function(l,c){var A=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,u=this.internal.scaleFactor;return Object.keys(l).map(function(g){var m=l[g];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,c[g]-A-A)},this).map(function(g){return this.getLineHeightFactor()*g.length*d/u+A+A},this).reduce(function(g,m){return Math.max(g,m)},0)};r.setTableHeaderRow=function(l){a.call(this),this.internal.__cell__.tableHeaderRow=l},r.printHeaderRow=function(l,c){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var A;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){A=this.internal.__cell__.tableHeaderRow[g].clone(),c&&(A.y=this.internal.__cell__.margins.top||0,u.push(A)),A.lineNumber=l;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,A),this.setTextColor(m)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),t=!1}}(Bt.API);var JN={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ek=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Jh=ZN(ek),tk=[100,200,300,400,500,600,700,800,900],gfe=ZN(tk);function e0(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return JN[i=i||"normal"]?i:"normal"}(r.style),a=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(r.weight),n=function(i){return typeof Jh[i=i||"normal"]=="number"?i:"normal"}(r.stretch);return{family:e,style:t,weight:a,stretch:n,src:r.src||[],ref:r.ref||{name:e,style:[n,t,a].join(" ")}}}function rk(r,e,t,a){var n;for(n=t;n>=0&&n<e.length;n+=a)if(r[e[n]])return r[e[n]];for(n=t;n>=0&&n<e.length;n-=a)if(r[e[n]])return r[e[n]]}var ffe={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ak={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function nk(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function _fe(r,e,t){for(var a=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},ffe,t.genericFontFamilies||{}),i=null,s=null,o=0;o<e.length;++o)if(n[(i=e0(e[o])).family]&&(i.family=n[i.family]),r.hasOwnProperty(i.family)){s=r[i.family];break}if(!(s=s||r[a]))throw new Error("Could not find a font-family for the rule '"+nk(i)+"' and default family '"+a+"'.");if(s=function(l,c){if(c[l])return c[l];var A=Jh[l],d=A<=Jh.normal?-1:1,u=rk(c,ek,A,d);if(!u)throw new Error("Could not find a matching font-stretch value for "+l);return u}(i.stretch,s),s=function(l,c){if(c[l])return c[l];for(var A=JN[l],d=0;d<A.length;++d)if(c[A[d]])return c[A[d]];throw new Error("Could not find a matching font-style for "+l)}(i.style,s),!(s=function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var A=gfe[l],d=rk(c,tk,A,l<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+l);return d}(i.weight,s)))throw new Error("Failed to resolve a font for the rule '"+nk(i)+"'.");return s}function ik(r){return r.trimLeft()}function mfe(r,e){for(var t=0;t<r.length;){if(r.charAt(t)===e)return[r.substring(0,t),r.substring(t+1)];t+=1}return null}function hfe(r){var e=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],r.substring(e[0].length)]}var td,sk,ok,t0=["times"];(function(r){var e,t,a,n,i,s,o,l,c,A=function(B){return B=B||{},this.isStrokeTransparent=B.isStrokeTransparent||!1,this.strokeOpacity=B.strokeOpacity||1,this.strokeStyle=B.strokeStyle||"#000000",this.fillStyle=B.fillStyle||"#000000",this.isFillTransparent=B.isFillTransparent||!1,this.fillOpacity=B.fillOpacity||1,this.font=B.font||"10px sans-serif",this.textBaseline=B.textBaseline||"alphabetic",this.textAlign=B.textAlign||"left",this.lineWidth=B.lineWidth||1,this.lineJoin=B.lineJoin||"miter",this.lineCap=B.lineCap||"butt",this.path=B.path||[],this.transform=B.transform!==void 0?B.transform.clone():new l,this.globalCompositeOperation=B.globalCompositeOperation||"normal",this.globalAlpha=B.globalAlpha||1,this.clip_path=B.clip_path||[],this.currentPoint=B.currentPoint||new s,this.miterLimit=B.miterLimit||10,this.lastPoint=B.lastPoint||new s,this.lineDashOffset=B.lineDashOffset||0,this.lineDash=B.lineDash||[],this.margin=B.margin||[0,0,0,0],this.prevPageLastElemOffset=B.prevPageLastElemOffset||0,this.ignoreClearRect=typeof B.ignoreClearRect!="boolean"||B.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,t=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,l=this.internal.Matrix,c=new A}]);var d=function(B){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var G=B;Object.defineProperty(this,"pdf",{get:function(){return G}});var j=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return j},set:function(Ce){j=!!Ce}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(Ce){$=!!Ce}});var ne=0;Object.defineProperty(this,"posX",{get:function(){return ne},set:function(Ce){isNaN(Ce)||(ne=Ce)}});var ce=0;Object.defineProperty(this,"posY",{get:function(){return ce},set:function(Ce){isNaN(Ce)||(ce=Ce)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ce){var Z;typeof Ce=="number"?Z=[Ce,Ce,Ce,Ce]:((Z=new Array(4))[0]=Ce[0],Z[1]=Ce.length>=2?Ce[1]:Z[0],Z[2]=Ce.length>=3?Ce[2]:Z[0],Z[3]=Ce.length>=4?Ce[3]:Z[1]),c.margin=Z}});var _e=!1;Object.defineProperty(this,"autoPaging",{get:function(){return _e},set:function(Ce){_e=Ce}});var me=0;Object.defineProperty(this,"lastBreak",{get:function(){return me},set:function(Ce){me=Ce}});var Be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Be},set:function(Ce){Be=Ce}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ce){Ce instanceof A&&(c=Ce)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ce){c.path=Ce}});var Oe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oe},set:function(Ce){Oe=Ce}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ce){var Z;Z=u(Ce),this.ctx.fillStyle=Z.style,this.ctx.isFillTransparent=Z.a===0,this.ctx.fillOpacity=Z.a,this.pdf.setFillColor(Z.r,Z.g,Z.b,{a:Z.a}),this.pdf.setTextColor(Z.r,Z.g,Z.b,{a:Z.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ce){var Z=u(Ce);this.ctx.strokeStyle=Z.style,this.ctx.isStrokeTransparent=Z.a===0,this.ctx.strokeOpacity=Z.a,Z.a===0?this.pdf.setDrawColor(255,255,255):(Z.a,this.pdf.setDrawColor(Z.r,Z.g,Z.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ce){["butt","round","square"].indexOf(Ce)!==-1&&(this.ctx.lineCap=Ce,this.pdf.setLineCap(Ce))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ce){isNaN(Ce)||(this.ctx.lineWidth=Ce,this.pdf.setLineWidth(Ce))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ce){["bevel","round","miter"].indexOf(Ce)!==-1&&(this.ctx.lineJoin=Ce,this.pdf.setLineJoin(Ce))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ce){isNaN(Ce)||(this.ctx.miterLimit=Ce,this.pdf.setMiterLimit(Ce))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ce){this.ctx.textBaseline=Ce}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ce){["right","end","center","left","start"].indexOf(Ce)!==-1&&(this.ctx.textAlign=Ce)}});var ze=null;function He(Ce,Z){if(ze===null){var _t=function(tt){var Fe=[];return Object.keys(tt).forEach(function(Ye){tt[Ye].forEach(function(Ke){var We=null;switch(Ke){case"bold":We={family:Ye,weight:"bold"};break;case"italic":We={family:Ye,style:"italic"};break;case"bolditalic":We={family:Ye,weight:"bold",style:"italic"};break;case"":case"normal":We={family:Ye}}We!==null&&(We.ref={name:Ye,style:Ke},Fe.push(We))})}),Fe}(Ce.getFontList());ze=function(tt){for(var Fe={},Ye=0;Ye<tt.length;++Ye){var Ke=e0(tt[Ye]),We=Ke.family,Te=Ke.stretch,Me=Ke.style,$e=Ke.weight;Fe[We]=Fe[We]||{},Fe[We][Te]=Fe[We][Te]||{},Fe[We][Te][Me]=Fe[We][Te][Me]||{},Fe[We][Te][Me][$e]=Ke}return Fe}(_t.concat(Z))}return ze}var rt=null;Object.defineProperty(this,"fontFaces",{get:function(){return rt},set:function(Ce){ze=null,rt=Ce}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ce){var Z;if(this.ctx.font=Ce,(Z=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ce))!==null){var _t=Z[1];Z[2];var tt=Z[3],Fe=Z[4];Z[5];var Ye=Z[6],Ke=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Fe)[2];Fe=Math.floor(Ke==="px"?parseFloat(Fe)*this.pdf.internal.scaleFactor:Ke==="em"?parseFloat(Fe)*this.pdf.getFontSize():parseFloat(Fe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Fe);var We=function(mt){var wt,Ze,rr=[],Lt=mt.trim();if(Lt==="")return t0;if(Lt in ak)return[ak[Lt]];for(;Lt!=="";){switch(Ze=null,wt=(Lt=ik(Lt)).charAt(0)){case'"':case"'":Ze=mfe(Lt.substring(1),wt);break;default:Ze=hfe(Lt)}if(Ze===null||(rr.push(Ze[0]),(Lt=ik(Ze[1]))!==""&&Lt.charAt(0)!==","))return t0;Lt=Lt.replace(/^,/,"")}return rr}(Ye);if(this.fontFaces){var Te=_fe(He(this.pdf,this.fontFaces),We.map(function(mt){return{family:mt,stretch:"normal",weight:tt,style:_t}}));this.pdf.setFont(Te.ref.name,Te.ref.style)}else{var Me="";(tt==="bold"||parseInt(tt,10)>=700||_t==="bold")&&(Me="bold"),_t==="italic"&&(Me+="italic"),Me.length===0&&(Me="normal");for(var $e="",Xe={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"},At=0;At<We.length;At++){if(this.pdf.internal.getFont(We[At],Me,{noFallback:!0,disableWarning:!0})!==void 0){$e=We[At];break}if(Me==="bolditalic"&&this.pdf.internal.getFont(We[At],"bold",{noFallback:!0,disableWarning:!0})!==void 0)$e=We[At],Me="bold";else if(this.pdf.internal.getFont(We[At],"normal",{noFallback:!0,disableWarning:!0})!==void 0){$e=We[At],Me="normal";break}}if($e===""){for(var Ft=0;Ft<We.length;Ft++)if(Xe[We[Ft]]){$e=Xe[We[Ft]];break}}$e=$e===""?"Times":$e,this.pdf.setFont($e,Me)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ce){this.ctx.globalCompositeOperation=Ce}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ce){this.ctx.globalAlpha=Ce}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ce){this.ctx.lineDashOffset=Ce,ye.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ce){this.ctx.lineDash=Ce,ye.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ce){this.ctx.ignoreClearRect=!!Ce}})};d.prototype.setLineDash=function(B){this.lineDash=B},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){R.call(this,"fill",!1)},d.prototype.stroke=function(){R.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var j=this.ctx.transform.applyToPoint(new s(B,G));this.path.push({type:"mt",x:j.x,y:j.y}),this.ctx.lastPoint=new s(B,G)},d.prototype.closePath=function(){var B=new s(0,0),G=0;for(G=this.path.length-1;G!==-1;G--)if(this.path[G].type==="begin"&&cr(this.path[G+1])==="object"&&typeof this.path[G+1].x=="number"){B=new s(this.path[G+1].x,this.path[G+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(B.x,B.y)},d.prototype.lineTo=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var j=this.ctx.transform.applyToPoint(new s(B,G));this.path.push({type:"lt",x:j.x,y:j.y}),this.ctx.lastPoint=new s(j.x,j.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),R.call(this,null,!0)},d.prototype.quadraticCurveTo=function(B,G,j,$){if(isNaN(j)||isNaN($)||isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ne=this.ctx.transform.applyToPoint(new s(j,$)),ce=this.ctx.transform.applyToPoint(new s(B,G));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new s(ne.x,ne.y)},d.prototype.bezierCurveTo=function(B,G,j,$,ne,ce){if(isNaN(ne)||isNaN(ce)||isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var _e=this.ctx.transform.applyToPoint(new s(ne,ce)),me=this.ctx.transform.applyToPoint(new s(B,G)),Be=this.ctx.transform.applyToPoint(new s(j,$));this.path.push({type:"bct",x1:me.x,y1:me.y,x2:Be.x,y2:Be.y,x:_e.x,y:_e.y}),this.ctx.lastPoint=new s(_e.x,_e.y)},d.prototype.arc=function(B,G,j,$,ne,ce){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($)||isNaN(ne))throw Cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=!!ce,!this.ctx.transform.isIdentity){var _e=this.ctx.transform.applyToPoint(new s(B,G));B=_e.x,G=_e.y;var me=this.ctx.transform.applyToPoint(new s(0,j)),Be=this.ctx.transform.applyToPoint(new s(0,0));j=Math.sqrt(Math.pow(me.x-Be.x,2)+Math.pow(me.y-Be.y,2))}Math.abs(ne-$)>=2*Math.PI&&($=0,ne=2*Math.PI),this.path.push({type:"arc",x:B,y:G,radius:j,startAngle:$,endAngle:ne,counterclockwise:ce})},d.prototype.arcTo=function(B,G,j,$,ne){throw new Error("arcTo not implemented.")},d.prototype.rect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(B,G),this.lineTo(B+j,G),this.lineTo(B+j,G+$),this.lineTo(B,G+$),this.lineTo(B,G),this.lineTo(B+j,G),this.lineTo(B,G)},d.prototype.fillRect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var ne={};this.lineCap!=="butt"&&(ne.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ne.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(B,G,j,$),this.fill(),ne.hasOwnProperty("lineCap")&&(this.lineCap=ne.lineCap),ne.hasOwnProperty("lineJoin")&&(this.lineJoin=ne.lineJoin)}},d.prototype.strokeRect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(B,G,j,$),this.stroke())},d.prototype.clearRect=function(B,G,j,$){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($))throw Cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(B,G,j,$))},d.prototype.save=function(B){B=typeof B!="boolean"||B;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("q");if(this.pdf.setPage(G),B){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},d.prototype.restore=function(B){B=typeof B!="boolean"||B;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j<this.pdf.internal.getNumberOfPages();j++)this.pdf.setPage(j+1),this.pdf.internal.out("Q");this.pdf.setPage(G),B&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(B){var G,j,$,ne;if(B.isCanvasGradient===!0&&(B=B.getColor()),!B)return{r:0,g:0,b:0,a:0,style:B};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(B))G=0,j=0,$=0,ne=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(B);if(ce!==null)G=parseInt(ce[1]),j=parseInt(ce[2]),$=parseInt(ce[3]),ne=1;else if((ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(B))!==null)G=parseInt(ce[1]),j=parseInt(ce[2]),$=parseInt(ce[3]),ne=parseFloat(ce[4]);else{if(ne=1,typeof B=="string"&&B.charAt(0)!=="#"){var _e=new HN(B);B=_e.ok?_e.toHex():"#000000"}B.length===4?(G=B.substring(1,2),G+=G,j=B.substring(2,3),j+=j,$=B.substring(3,4),$+=$):(G=B.substring(1,3),j=B.substring(3,5),$=B.substring(5,7)),G=parseInt(G,16),j=parseInt(j,16),$=parseInt($,16)}}return{r:G,g:j,b:$,a:ne,style:B}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(B,G,j,$){if(isNaN(G)||isNaN(j)||typeof B!="string")throw Cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!g.call(this)){var ne=re(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;M.call(this,{text:B,x:G,y:j,scale:ce,angle:ne,align:this.textAlign,maxWidth:$})}},d.prototype.strokeText=function(B,G,j,$){if(isNaN(G)||isNaN(j)||typeof B!="string")throw Cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){$=isNaN($)?void 0:$;var ne=re(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;M.call(this,{text:B,x:G,y:j,scale:ce,renderingMode:"stroke",angle:ne,align:this.textAlign,maxWidth:$})}},d.prototype.measureText=function(B){if(typeof B!="string")throw Cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var G=this.pdf,j=this.pdf.internal.scaleFactor,$=G.internal.getFontSize(),ne=G.getStringUnitWidth(B)*$/G.internal.scaleFactor,ce=function(_e){var me=(_e=_e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return me}}),this};return new ce({width:ne*=Math.round(96*j/72*1e4)/1e4})},d.prototype.scale=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var j=new l(B,0,0,G,0,0);this.ctx.transform=this.ctx.transform.multiply(j)},d.prototype.rotate=function(B){if(isNaN(B))throw Cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var G=new l(Math.cos(B),Math.sin(B),-Math.sin(B),Math.cos(B),0,0);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.translate=function(B,G){if(isNaN(B)||isNaN(G))throw Cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var j=new l(1,0,0,1,B,G);this.ctx.transform=this.ctx.transform.multiply(j)},d.prototype.transform=function(B,G,j,$,ne,ce){if(isNaN(B)||isNaN(G)||isNaN(j)||isNaN($)||isNaN(ne)||isNaN(ce))throw Cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var _e=new l(B,G,j,$,ne,ce);this.ctx.transform=this.ctx.transform.multiply(_e)},d.prototype.setTransform=function(B,G,j,$,ne,ce){B=isNaN(B)?1:B,G=isNaN(G)?0:G,j=isNaN(j)?0:j,$=isNaN($)?1:$,ne=isNaN(ne)?0:ne,ce=isNaN(ce)?0:ce,this.ctx.transform=new l(B,G,j,$,ne,ce)};var _=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(B,G,j,$,ne,ce,_e,me,Be){var Oe=this.pdf.getImageProperties(B),ze=1,He=1,rt=1,Ce=1;$!==void 0&&me!==void 0&&(rt=me/$,Ce=Be/ne,ze=Oe.width/$*me/$,He=Oe.height/ne*Be/ne),ce===void 0&&(ce=G,_e=j,G=0,j=0),$!==void 0&&me===void 0&&(me=$,Be=ne),$===void 0&&me===void 0&&(me=Oe.width,Be=Oe.height);for(var Z,_t=this.ctx.transform.decompose(),tt=re(_t.rotate.shx),Fe=new l,Ye=(Fe=(Fe=(Fe=Fe.multiply(_t.translate)).multiply(_t.skew)).multiply(_t.scale)).applyToRectangle(new o(ce-G*rt,_e-j*Ce,$*ze,ne*He)),Ke=E.call(this,Ye),We=[],Te=0;Te<Ke.length;Te+=1)We.indexOf(Ke[Te])===-1&&We.push(Ke[Te]);if(N(We),this.autoPaging)for(var Me=We[0],$e=We[We.length-1],Xe=Me;Xe<$e+1;Xe++){this.pdf.setPage(Xe);var At=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ft=Xe===1?this.posY+this.margin[0]:this.margin[0],mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],wt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ze=Xe===1?0:mt+(Xe-2)*wt;if(this.ctx.clip_path.length!==0){var rr=this.path;Z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(Z,this.posX+this.margin[3],-Ze+Ft+this.ctx.prevPageLastElemOffset),k.call(this,"fill",!0),this.path=rr}var Lt=JSON.parse(JSON.stringify(Ye));Lt=w([Lt],this.posX+this.margin[3],-Ze+Ft+this.ctx.prevPageLastElemOffset)[0];var mr=(Xe>Me||Xe<$e)&&_.call(this);mr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],At,wt,null).clip().discardPath()),this.pdf.addImage(B,"JPEG",Lt.x,Lt.y,Lt.w,Lt.h,null,null,tt),mr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(B,"JPEG",Ye.x,Ye.y,Ye.w,Ye.h,null,null,tt)};var E=function(B,G,j){var $=[];G=G||this.pdf.internal.pageSize.width,j=j||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ne=this.posY+this.ctx.prevPageLastElemOffset;switch(B.type){default:case"mt":case"lt":$.push(Math.floor((B.y+ne)/j)+1);break;case"arc":$.push(Math.floor((B.y+ne-B.radius)/j)+1),$.push(Math.floor((B.y+ne+B.radius)/j)+1);break;case"qct":var ce=se(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x,B.y);$.push(Math.floor((ce.y+ne)/j)+1),$.push(Math.floor((ce.y+ce.h+ne)/j)+1);break;case"bct":var _e=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x2,B.y2,B.x,B.y);$.push(Math.floor((_e.y+ne)/j)+1),$.push(Math.floor((_e.y+_e.h+ne)/j)+1);break;case"rect":$.push(Math.floor((B.y+ne)/j)+1),$.push(Math.floor((B.y+B.h+ne)/j)+1)}for(var me=0;me<$.length;me+=1)for(;this.pdf.internal.getNumberOfPages()<$[me];)y.call(this);return $},y=function(){var B=this.fillStyle,G=this.strokeStyle,j=this.font,$=this.lineCap,ne=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=B,this.strokeStyle=G,this.font=j,this.lineCap=$,this.lineWidth=ne,this.lineJoin=ce},w=function(B,G,j){for(var $=0;$<B.length;$++)switch(B[$].type){case"bct":B[$].x2+=G,B[$].y2+=j;case"qct":B[$].x1+=G,B[$].y1+=j;case"mt":case"lt":case"arc":default:B[$].x+=G,B[$].y+=j}return B},N=function(B){return B.sort(function(G,j){return G-j})},R=function(B,G){for(var j,$,ne=this.fillStyle,ce=this.strokeStyle,_e=this.lineCap,me=this.lineWidth,Be=Math.abs(me*this.ctx.transform.scaleX),Oe=this.lineJoin,ze=JSON.parse(JSON.stringify(this.path)),He=JSON.parse(JSON.stringify(this.path)),rt=[],Ce=0;Ce<He.length;Ce++)if(He[Ce].x!==void 0)for(var Z=E.call(this,He[Ce]),_t=0;_t<Z.length;_t+=1)rt.indexOf(Z[_t])===-1&&rt.push(Z[_t]);for(var tt=0;tt<rt.length;tt++)for(;this.pdf.internal.getNumberOfPages()<rt[tt];)y.call(this);if(N(rt),this.autoPaging)for(var Fe=rt[0],Ye=rt[rt.length-1],Ke=Fe;Ke<Ye+1;Ke++){this.pdf.setPage(Ke),this.fillStyle=ne,this.strokeStyle=ce,this.lineCap=_e,this.lineWidth=Be,this.lineJoin=Oe;var We=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Te=Ke===1?this.posY+this.margin[0]:this.margin[0],Me=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=Ke===1?0:Me+(Ke-2)*$e;if(this.ctx.clip_path.length!==0){var At=this.path;j=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(j,this.posX+this.margin[3],-Xe+Te+this.ctx.prevPageLastElemOffset),k.call(this,B,!0),this.path=At}if($=JSON.parse(JSON.stringify(ze)),this.path=w($,this.posX+this.margin[3],-Xe+Te+this.ctx.prevPageLastElemOffset),G===!1||Ke===0){var Ft=(Ke>Fe||Ke<Ye)&&_.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],We,$e,null).clip().discardPath()),k.call(this,B,G),Ft&&this.pdf.restoreGraphicsState()}this.lineWidth=me}else this.lineWidth=Be,k.call(this,B,G),this.lineWidth=me;this.path=ze},k=function(B,G){if((B!=="stroke"||G||!m.call(this))&&(B==="stroke"||G||!g.call(this))){for(var j,$,ne=[],ce=this.path,_e=0;_e<ce.length;_e++){var me=ce[_e];switch(me.type){case"begin":ne.push({begin:!0});break;case"close":ne.push({close:!0});break;case"mt":ne.push({start:me,deltas:[],abs:[]});break;case"lt":var Be=ne.length;if(ce[_e-1]&&!isNaN(ce[_e-1].x)&&(j=[me.x-ce[_e-1].x,me.y-ce[_e-1].y],Be>0)){for(;Be>=0;Be--)if(ne[Be-1].close!==!0&&ne[Be-1].begin!==!0){ne[Be-1].deltas.push(j),ne[Be-1].abs.push(me);break}}break;case"bct":j=[me.x1-ce[_e-1].x,me.y1-ce[_e-1].y,me.x2-ce[_e-1].x,me.y2-ce[_e-1].y,me.x-ce[_e-1].x,me.y-ce[_e-1].y],ne[ne.length-1].deltas.push(j);break;case"qct":var Oe=ce[_e-1].x+2/3*(me.x1-ce[_e-1].x),ze=ce[_e-1].y+2/3*(me.y1-ce[_e-1].y),He=me.x+2/3*(me.x1-me.x),rt=me.y+2/3*(me.y1-me.y),Ce=me.x,Z=me.y;j=[Oe-ce[_e-1].x,ze-ce[_e-1].y,He-ce[_e-1].x,rt-ce[_e-1].y,Ce-ce[_e-1].x,Z-ce[_e-1].y],ne[ne.length-1].deltas.push(j);break;case"arc":ne.push({deltas:[],abs:[],arc:!0}),Array.isArray(ne[ne.length-1].abs)&&ne[ne.length-1].abs.push(me)}}$=G?null:B==="stroke"?"stroke":"fill";for(var _t=!1,tt=0;tt<ne.length;tt++)if(ne[tt].arc)for(var Fe=ne[tt].abs,Ye=0;Ye<Fe.length;Ye++){var Ke=Fe[Ye];Ke.type==="arc"?L.call(this,Ke.x,Ke.y,Ke.radius,Ke.startAngle,Ke.endAngle,Ke.counterclockwise,void 0,G,!_t):V.call(this,Ke.x,Ke.y),_t=!0}else if(ne[tt].close===!0)this.pdf.internal.out("h"),_t=!1;else if(ne[tt].begin!==!0){var We=ne[tt].start.x,Te=ne[tt].start.y;Q.call(this,ne[tt].deltas,We,Te),_t=!0}$&&Y.call(this,$),G&&K.call(this)}},h=function(B){var G=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,j=G*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return B-j;case"top":return B+G-j;case"hanging":return B+G-2*j;case"middle":return B+G/2-j;case"ideographic":return B;case"alphabetic":default:return B}},O=function(B){return B+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var B=function(){};return B.colorStops=[],B.addColorStop=function(G,j){this.colorStops.push([G,j])},B.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},B.isCanvasGradient=!0,B},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var L=function(B,G,j,$,ne,ce,_e,me,Be){for(var Oe=oe.call(this,j,$,ne,ce),ze=0;ze<Oe.length;ze++){var He=Oe[ze];ze===0&&(Be?I.call(this,He.x1+B,He.y1+G):V.call(this,He.x1+B,He.y1+G)),ee.call(this,B,G,He.x2,He.y2,He.x3,He.y3,He.x4,He.y4)}me?K.call(this):Y.call(this,_e)},Y=function(B){switch(B){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},K=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(B,G){this.pdf.internal.out(t(B)+" "+a(G)+" m")},M=function(B){var G;switch(B.align){case"right":case"end":G="right";break;case"center":G="center";break;case"left":case"start":default:G="left"}var j=this.pdf.getTextDimensions(B.text),$=h.call(this,B.y),ne=O.call(this,$)-j.h,ce=this.ctx.transform.applyToPoint(new s(B.x,$)),_e=this.ctx.transform.decompose(),me=new l;me=(me=(me=me.multiply(_e.translate)).multiply(_e.skew)).multiply(_e.scale);for(var Be,Oe,ze,He=this.ctx.transform.applyToRectangle(new o(B.x,$,j.w,j.h)),rt=me.applyToRectangle(new o(B.x,ne,j.w,j.h)),Ce=E.call(this,rt),Z=[],_t=0;_t<Ce.length;_t+=1)Z.indexOf(Ce[_t])===-1&&Z.push(Ce[_t]);if(N(Z),this.autoPaging)for(var tt=Z[0],Fe=Z[Z.length-1],Ye=tt;Ye<Fe+1;Ye++){this.pdf.setPage(Ye);var Ke=Ye===1?this.posY+this.margin[0]:this.margin[0],We=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Te=this.pdf.internal.pageSize.height-this.margin[2],Me=Te-this.margin[0],$e=this.pdf.internal.pageSize.width-this.margin[1],Xe=$e-this.margin[3],At=Ye===1?0:We+(Ye-2)*Me;if(this.ctx.clip_path.length!==0){var Ft=this.path;Be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(Be,this.posX+this.margin[3],-1*At+Ke),k.call(this,"fill",!0),this.path=Ft}var mt=w([JSON.parse(JSON.stringify(rt))],this.posX+this.margin[3],-At+Ke+this.ctx.prevPageLastElemOffset)[0];B.scale>=.01&&(Oe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oe*B.scale),ze=this.lineWidth,this.lineWidth=ze*B.scale);var wt=this.autoPaging!=="text";if(wt||mt.y+mt.h<=Te){if(wt||mt.y>=Ke&&mt.x<=$e){var Ze=wt?B.text:this.pdf.splitTextToSize(B.text,B.maxWidth||$e-mt.x)[0],rr=w([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-At+Ke+this.ctx.prevPageLastElemOffset)[0],Lt=wt&&(Ye>tt||Ye<Fe)&&_.call(this);Lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xe,Me,null).clip().discardPath()),this.pdf.text(Ze,rr.x,rr.y,{angle:B.angle,align:G,renderingMode:B.renderingMode}),Lt&&this.pdf.restoreGraphicsState()}}else mt.y<Te&&(this.ctx.prevPageLastElemOffset+=Te-mt.y);B.scale>=.01&&(this.pdf.setFontSize(Oe),this.lineWidth=ze)}else B.scale>=.01&&(Oe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oe*B.scale),ze=this.lineWidth,this.lineWidth=ze*B.scale),this.pdf.text(B.text,ce.x+this.posX,ce.y+this.posY,{angle:B.angle,align:G,renderingMode:B.renderingMode,maxWidth:B.maxWidth}),B.scale>=.01&&(this.pdf.setFontSize(Oe),this.lineWidth=ze)},V=function(B,G,j,$){j=j||0,$=$||0,this.pdf.internal.out(t(B+j)+" "+a(G+$)+" l")},Q=function(B,G,j){return this.pdf.lines(B,G,j,null,null)},ee=function(B,G,j,$,ne,ce,_e,me){this.pdf.internal.out([e(n(j+B)),e(i($+G)),e(n(ne+B)),e(i(ce+G)),e(n(_e+B)),e(i(me+G)),"c"].join(" "))},oe=function(B,G,j,$){for(var ne=2*Math.PI,ce=Math.PI/2;G>j;)G-=ne;var _e=Math.abs(j-G);_e<ne&&$&&(_e=ne-_e);for(var me=[],Be=$?-1:1,Oe=G;_e>1e-5;){var ze=Oe+Be*Math.min(_e,ce);me.push(ie.call(this,B,Oe,ze)),_e-=Math.abs(ze-Oe),Oe=ze}return me},ie=function(B,G,j){var $=(j-G)/2,ne=B*Math.cos($),ce=B*Math.sin($),_e=ne,me=-ce,Be=_e*_e+me*me,Oe=Be+_e*ne+me*ce,ze=4/3*(Math.sqrt(2*Be*Oe)-Oe)/(_e*ce-me*ne),He=_e-ze*me,rt=me+ze*_e,Ce=He,Z=-rt,_t=$+G,tt=Math.cos(_t),Fe=Math.sin(_t);return{x1:B*Math.cos(G),y1:B*Math.sin(G),x2:He*tt-rt*Fe,y2:He*Fe+rt*tt,x3:Ce*tt-Z*Fe,y3:Ce*Fe+Z*tt,x4:B*Math.cos(j),y4:B*Math.sin(j)}},re=function(B){return 180*B/Math.PI},se=function(B,G,j,$,ne,ce){var _e=B+.5*(j-B),me=G+.5*($-G),Be=ne+.5*(j-ne),Oe=ce+.5*($-ce),ze=Math.min(B,ne,_e,Be),He=Math.max(B,ne,_e,Be),rt=Math.min(G,ce,me,Oe),Ce=Math.max(G,ce,me,Oe);return new o(ze,rt,He-ze,Ce-rt)},Ae=function(B,G,j,$,ne,ce,_e,me){var Be,Oe,ze,He,rt,Ce,Z,_t,tt,Fe,Ye,Ke,We,Te,Me=j-B,$e=$-G,Xe=ne-j,At=ce-$,Ft=_e-ne,mt=me-ce;for(Oe=0;Oe<41;Oe++)tt=(Z=(ze=B+(Be=Oe/40)*Me)+Be*((rt=j+Be*Xe)-ze))+Be*(rt+Be*(ne+Be*Ft-rt)-Z),Fe=(_t=(He=G+Be*$e)+Be*((Ce=$+Be*At)-He))+Be*(Ce+Be*(ce+Be*mt-Ce)-_t),Oe==0?(Ye=tt,Ke=Fe,We=tt,Te=Fe):(Ye=Math.min(Ye,tt),Ke=Math.min(Ke,Fe),We=Math.max(We,tt),Te=Math.max(Te,Fe));return new o(Math.round(Ye),Math.round(Ke),Math.round(We-Ye),Math.round(Te-Ke))},ye=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var B,G,j=(B=this.ctx.lineDash,G=this.ctx.lineDashOffset,JSON.stringify({lineDash:B,lineDashOffset:G}));this.prevLineDash!==j&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=j)}}})(Bt.API),function(r){var e=function(i){var s,o,l,c,A,d,u,g,m,_;for(o=[],l=0,c=(i+=s="\0\0\0\0".slice(i.length%4||4)).length;c>l;l+=4)(A=(i.charCodeAt(l)<<24)+(i.charCodeAt(l+1)<<16)+(i.charCodeAt(l+2)<<8)+i.charCodeAt(l+3))!==0?(d=(A=((A=((A=((A=(A-(_=A%85))/85)-(m=A%85))/85)-(g=A%85))/85)-(u=A%85))/85)%85,o.push(d+33,u+33,g+33,m+33,_+33)):o.push(122);return function(E,y){for(var w=y;w>0;w--)E.pop()}(o,s.length),String.fromCharCode.apply(String,o)+"~>"},t=function(i){var s,o,l,c,A,d=String,u="length",g=255,m="charCodeAt",_="slice",E="replace";for(i[_](-2),i=i[_](0,-2)[E](/\s/g,"")[E]("z","!!!!!"),l=[],c=0,A=(i+=s="uuuuu"[_](i[u]%5||5))[u];A>c;c+=5)o=52200625*(i[m](c)-33)+614125*(i[m](c+1)-33)+7225*(i[m](c+2)-33)+85*(i[m](c+3)-33)+(i[m](c+4)-33),l.push(g&o>>24,g&o>>16,g&o>>8,g&o);return function(y,w){for(var N=w;N>0;N--)y.pop()}(l,s[u]),d.fromCharCode.apply(d,l)},a=function(i){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),s.test(i)===!1)return"";for(var o="",l=0;l<i.length;l+=2)o+=String.fromCharCode("0x"+(i[l]+i[l+1]));return o},n=function(i){for(var s=new Uint8Array(i.length),o=i.length;o--;)s[o]=i.charCodeAt(o);return i=(s=Gh(s)).reduce(function(l,c){return l+String.fromCharCode(c)},"")};r.processDataByFilters=function(i,s){var o=0,l=i||"",c=[];for(typeof(s=s||[])=="string"&&(s=[s]),o=0;o<s.length;o+=1)switch(s[o]){case"ASCII85Decode":case"/ASCII85Decode":l=t(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=a(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=n(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[o]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(Bt.API),function(r){r.loadFile=function(e,t,a){return function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=function(l,c,A){var d=new XMLHttpRequest,u=0,g=function(m){var _=m.length,E=[],y=String.fromCharCode;for(u=0;u<_;u+=1)E.push(y(255&m.charCodeAt(u)));return E.join("")};if(d.open("GET",l,!c),d.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(d.onload=function(){d.status===200?A(g(this.responseText)):A(void 0)}),d.send(null),c&&d.status===200)return g(d.responseText)}(n,i,s)}catch{}return o}(e,t,a)},r.loadImageFile=r.loadFile}(Bt.API),function(r){function e(){return(xt.html2canvas?Promise.resolve(xt.html2canvas):Promise.resolve().then(()=>Pge)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function t(){return(xt.DOMPurify?Promise.resolve(xt.DOMPurify):Promise.resolve().then(()=>c_e)).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var a=function(s){var o=cr(s);return o==="undefined"?"undefined":o==="string"||s instanceof String?"string":o==="number"||s instanceof Number?"number":o==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(s,o){var l=document.createElement(s);for(var c in o.className&&(l.className=o.className),o.innerHTML&&o.dompurify&&(l.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)l.style[c]=o.style[c];return l},i=function s(o){var l=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),c=s.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,s,1,[s])).set(o)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(s,o){return s.__proto__=o||i.prototype,s},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(s,o){return this.then(function(){switch(o=o||function(l){switch(a(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(t).then(function(l){return this.set({src:n("div",{innerHTML:s,dompurify:l})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},i.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=function l(c,A){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),u=c.firstChild;u;u=u.nextSibling)A!==!0&&u.nodeType===1&&u.nodeName==="SCRIPT"||d.appendChild(l(u,A));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(s.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:s}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(o){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,o(this.prop.container,l)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(e).then(function(o){var l=this.opt.jsPDF,c=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:A,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 d.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var u=0;u<c.length;++u){var g=c[u],m=g.src.find(function(_){return _.format==="truetype"});m&&l.addFont(m.url,g.ref.name,g.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,l.context2d.save(!0),o(this.prop.container,d)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(s,o,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(s,o):this.outputPdf(s,o)},i.prototype.outputPdf=function(s,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,o)})},i.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},i.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(s){if(a(s)!=="object")return this;var o=Object.keys(s||{}).map(function(l){if(l in i.template.prop)return function(){this.prop[l]=s[l]};switch(l){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[l]=s[l]}}},this);return this.then(function(){return this.thenList(o)})},i.prototype.get=function(s,o){return this.then(function(){var l=s in i.template.prop?this.prop[s]:this.opt[s];return o?o(l):l})},i.prototype.setMargin=function(s){return this.then(function(){switch(a(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},i.prototype.setPageSize=function(s){function o(l,c){return Math.floor(l*c/72*96)}return this.then(function(){(s=s||Bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:o(s.inner.width,s.k),height:o(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},i.prototype.setProgress=function(s,o,l,c){return s!=null&&(this.progress.val=s),o!=null&&(this.progress.state=o),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(s,o,l,c){return this.setProgress(s?this.progress.val+s:null,o||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},i.prototype.then=function(s,o){var l=this;return this.thenCore(s,o,function(c,A){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(d){return l.updateProgress(null,c),d}).then(c,A).then(function(d){return l.updateProgress(1),d})})},i.prototype.thenCore=function(s,o,l){l=l||Promise.prototype.then,s&&(s=s.bind(this)),o&&(o=o.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),A=l.call(c,s,o);return i.convert(A,this.__proto__)},i.prototype.thenExternal=function(s,o){return Promise.prototype.then.call(this,s,o)},i.prototype.thenList=function(s){var o=this;return s.forEach(function(l){o=o.thenCore(l)}),o},i.prototype.catch=function(s){s&&(s=s.bind(this));var o=Promise.prototype.catch.call(this,s);return i.convert(o,this)},i.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},i.prototype.error=function(s){return this.then(function(){throw new Error(s)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,Bt.getPageSize=function(s,o,l){if(cr(s)==="object"){var c=s;s=c.orientation,o=c.unit||o,l=c.format||l}o=o||"mm",l=l||"a4",s=(""+(s||"P")).toLowerCase();var A,d=(""+l).toLowerCase(),u={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(o){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+o}var g,m=0,_=0;if(u.hasOwnProperty(d))m=u[d][1]/A,_=u[d][0]/A;else try{m=l[1],_=l[0]}catch{throw new Error("Invalid format: "+l)}if(s==="p"||s==="portrait")s="p",_>m&&(g=_,_=m,m=g);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",m>_&&(g=_,_=m,m=g)}return{width:_,height:m,unit:o,k:A,orientation:s}},r.html=function(s,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(e0):null;var l=new i(o);return o.worker?l:l.from(s).doCallback()}}(Bt.API),Bt.API.addJS=function(r){return ok=r,this.internal.events.subscribe("postPutResources",function(){td=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(td+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),sk=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+ok+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){td!==void 0&&sk!==void 0&&this.internal.out("/Names <</JavaScript "+td+" 0 R>>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var t=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],o=a.exec(s);if(o!=null){var l=o[1];t.internal.newObjectDeferredBegin(l,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,A=[];for(i=0;i<c;i++){var d=t.internal.newObject();A.push(d);var u=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var g=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<A.length;i++)t.internal.write("(page_"+(i+1)+")"+A[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+g+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(a,n,i){var s={title:n,options:i,children:[]};return a==null&&(a=this.root),a.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(a){a.id=t.internal.newObjectDeferred();for(var n=0;n<a.children.length;n++)this.genIds_r(a.children[n])},t.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()},t.outline.renderItems=function(a){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<a.children.length;i++){var s=a.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(a)),i>0&&this.line("/Prev "+this.makeRef(a.children[i-1])),i<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var l=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var c=0;c<a.children.length;c++)this.renderItems(a.children[c])},t.outline.line=function(a){this.ctx.val+=a+`\r
|
|
515
515
|
`},t.outline.makeRef=function(a){return a.id+" 0 R"},t.outline.makeString=function(a){return"("+t.internal.pdfEscape(a)+")"},t.outline.objStart=function(a){this.ctx.val+=`\r
|
|
516
516
|
`+a.id+` 0 obj\r
|
|
517
517
|
<<\r
|
|
@@ -605,9 +605,9 @@ endobj\r
|
|
|
605
605
|
*
|
|
606
606
|
* Licensed under the MIT License.
|
|
607
607
|
* http://opensource.org/licenses/mit-license
|
|
608
|
-
*/function di(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function dk(r){function e(L){if(!L)throw Error("assert :P")}function t(L,Y,K){for(var I=0;4>I;I++)if(L[Y+I]!=K.charCodeAt(I))return!0;return!1}function a(L,Y,K,I,M){for(var V=0;V<M;V++)L[Y+V]=K[I+V]}function n(L,Y,K,I){for(var M=0;M<I;M++)L[Y+M]=K}function i(L){return new Int32Array(L)}function s(L,Y){for(var K=[],I=0;I<L;I++)K.push(new Y);return K}function o(L,Y){var K=[];return function I(M,V,Q){for(var ee=Q[V],oe=0;oe<ee&&(M.push(Q.length>V+1?[]:new Y),!(Q.length<V+1));oe++)I(M[oe],V+1,Q)}(K,0,L),K}var l=function(){var L=this;function Y(p,f){for(var v=1<<f-1>>>0;p&v;)v>>>=1;return v?(p&v-1)+v:p}function K(p,f,v,C,x){e(!(C%v));do p[f+(C-=v)]=x;while(0<C)}function I(p,f,v,C,x){if(e(2328>=x),512>=x)var P=i(512);else if((P=i(x))==null)return 0;return function(U,z,q,W,ue,Ee){var Se,he,Le=z,Ne=1<<q,de=i(16),fe=i(16);for(e(ue!=0),e(W!=null),e(U!=null),e(0<q),he=0;he<ue;++he){if(15<W[he])return 0;++de[W[he]]}if(de[0]==ue)return 0;for(fe[1]=0,Se=1;15>Se;++Se){if(de[Se]>1<<Se)return 0;fe[Se+1]=fe[Se]+de[Se]}for(he=0;he<ue;++he)Se=W[he],0<W[he]&&(Ee[fe[Se]++]=he);if(fe[15]==1)return(W=new M).g=0,W.value=Ee[0],K(U,Le,1,Ne,W),Ne;var xe,Ue=-1,De=Ne-1,pt=0,at=1,Rt=1,it=1<<q;for(he=0,Se=1,ue=2;Se<=q;++Se,ue<<=1){if(at+=Rt<<=1,0>(Rt-=de[Se]))return 0;for(;0<de[Se];--de[Se])(W=new M).g=Se,W.value=Ee[he++],K(U,Le+pt,ue,it,W),pt=Y(pt,Se)}for(Se=q+1,ue=2;15>=Se;++Se,ue<<=1){if(at+=Rt<<=1,0>(Rt-=de[Se]))return 0;for(;0<de[Se];--de[Se]){if(W=new M,(pt&De)!=Ue){for(Le+=it,xe=1<<(Ue=Se)-q;15>Ue&&!(0>=(xe-=de[Ue]));)++Ue,xe<<=1;Ne+=it=1<<(xe=Ue-q),U[z+(Ue=pt&De)].g=xe+q,U[z+Ue].value=Le-z-Ue}W.g=Se-q,W.value=Ee[he++],K(U,Le+(pt>>q),ue,it,W),pt=Y(pt,Se)}}return at!=2*fe[15]-1?0:Ne}(p,f,v,C,x,P)}function M(){this.value=this.g=0}function V(){this.value=this.g=0}function Q(){this.G=s(5,M),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(za,V)}function ee(p,f,v,C){e(p!=null),e(f!=null),e(2147483648>C),p.Ca=254,p.I=0,p.b=-8,p.Ka=0,p.oa=f,p.pa=v,p.Jd=f,p.Yc=v+C,p.Zc=4<=C?v+C-4+1:v,ce(p)}function oe(p,f){for(var v=0;0<f--;)v|=me(p,128)<<f;return v}function ie(p,f){var v=oe(p,f);return _e(p)?-v:v}function re(p,f,v,C){var x,P=0;for(e(p!=null),e(f!=null),e(4294967288>C),p.Sb=C,p.Ra=0,p.u=0,p.h=0,4<C&&(C=4),x=0;x<C;++x)P+=f[v+x]<<8*x;p.Ra=P,p.bb=C,p.oa=f,p.pa=v}function se(p){for(;8<=p.u&&p.bb<p.Sb;)p.Ra>>>=8,p.Ra+=p.oa[p.pa+p.bb]<<Hl-8>>>0,++p.bb,p.u-=8;j(p)&&(p.h=1,p.u=0)}function Ae(p,f){if(e(0<=f),!p.h&&f<=zl){var v=G(p)&Ql[f];return p.u+=f,se(p),v}return p.h=1,p.u=0}function ye(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function G(p){return p.Ra>>>(p.u&Hl-1)>>>0}function j(p){return e(p.bb<=p.Sb),p.h||p.bb==p.Sb&&p.u>Hl}function $(p,f){p.u=f,p.h=j(p)}function ne(p){p.u>=dA&&(e(p.u>=dA),se(p))}function ce(p){e(p!=null&&p.oa!=null),p.pa<p.Zc?(p.I=(p.oa[p.pa++]|p.I<<8)>>>0,p.b+=8):(e(p!=null&&p.oa!=null),p.pa<p.Yc?(p.b+=8,p.I=p.oa[p.pa++]|p.I<<8):p.Ka?p.b=0:(p.I<<=8,p.b+=8,p.Ka=1))}function _e(p){return oe(p,1)}function me(p,f){var v=p.Ca;0>p.b&&ce(p);var C=p.b,x=v*f>>>8,P=(p.I>>>C>x)+0;for(P?(v-=x,p.I-=x+1<<C>>>0):v=x+1,C=v,x=0;256<=C;)x+=8,C>>=8;return C=7^x+wn[C],p.b-=C,p.Ca=(v<<C)-1,P}function Be(p,f,v){p[f+0]=v>>24&255,p[f+1]=v>>16&255,p[f+2]=v>>8&255,p[f+3]=v>>0&255}function Oe(p,f){return p[f+0]<<0|p[f+1]<<8}function ze(p,f){return Oe(p,f)|p[f+2]<<16}function He(p,f){return Oe(p,f)|Oe(p,f+2)<<16}function rt(p,f){var v=1<<f;return e(p!=null),e(0<f),p.X=i(v),p.X==null?0:(p.Mb=32-f,p.Xa=f,1)}function Ce(p,f){e(p!=null),e(f!=null),e(p.Xa==f.Xa),a(f.X,0,p.X,0,1<<f.Xa)}function Z(){this.X=[],this.Xa=this.Mb=0}function _t(p,f,v,C){e(v!=null),e(C!=null);var x=v[0],P=C[0];return x==0&&(x=(p*P+f/2)/f),P==0&&(P=(f*x+p/2)/p),0>=x||0>=P?0:(v[0]=x,C[0]=P,1)}function tt(p,f){return p+(1<<f)-1>>>f}function Fe(p,f){return((4278255360&p)+(4278255360&f)>>>0&4278255360)+((16711935&p)+(16711935&f)>>>0&16711935)>>>0}function Ye(p,f){L[f]=function(v,C,x,P,U,z,q){var W;for(W=0;W<U;++W){var ue=L[p](z[q+W-1],x,P+W);z[q+W]=Fe(v[C+W],ue)}}}function Ke(){this.ud=this.hd=this.jd=0}function We(p,f){return((4278124286&(p^f))>>>1)+(p&f)>>>0}function Te(p){return 0<=p&&256>p?p:0>p?0:255<p?255:void 0}function Me(p,f){return Te(p+(p-f+.5>>1))}function $e(p,f,v){return Math.abs(f-v)-Math.abs(p-v)}function Xe(p,f,v,C,x,P,U){for(C=P[U-1],v=0;v<x;++v)P[U+v]=C=Fe(p[f+v],C)}function At(p,f,v,C,x){var P;for(P=0;P<v;++P){var U=p[f+P],z=U>>8&255,q=16711935&(q=(q=16711935&U)+((z<<16)+z));C[x+P]=(4278255360&U)+q>>>0}}function Ft(p,f){f.jd=p>>0&255,f.hd=p>>8&255,f.ud=p>>16&255}function mt(p,f,v,C,x,P){var U;for(U=0;U<C;++U){var z=f[v+U],q=z>>>8,W=z,ue=255&(ue=(ue=z>>>16)+((p.jd<<24>>24)*(q<<24>>24)>>>5));W=255&(W=(W=W+((p.hd<<24>>24)*(q<<24>>24)>>>5))+((p.ud<<24>>24)*(ue<<24>>24)>>>5)),x[P+U]=(4278255360&z)+(ue<<16)+W}}function wt(p,f,v,C,x){L[f]=function(P,U,z,q,W,ue,Ee,Se,he){for(q=Ee;q<Se;++q)for(Ee=0;Ee<he;++Ee)W[ue++]=x(z[C(P[U++])])},L[p]=function(P,U,z,q,W,ue,Ee){var Se=8>>P.b,he=P.Ea,Le=P.K[0],Ne=P.w;if(8>Se)for(P=(1<<P.b)-1,Ne=(1<<Se)-1;U<z;++U){var de,fe=0;for(de=0;de<he;++de)de&P||(fe=C(q[W++])),ue[Ee++]=x(Le[fe&Ne]),fe>>=Se}else L["VP8LMapColor"+v](q,W,Le,Ne,ue,Ee,U,z,he)}}function Ze(p,f,v,C,x){for(v=f+v;f<v;){var P=p[f++];C[x++]=P>>16&255,C[x++]=P>>8&255,C[x++]=P>>0&255}}function rr(p,f,v,C,x){for(v=f+v;f<v;){var P=p[f++];C[x++]=P>>16&255,C[x++]=P>>8&255,C[x++]=P>>0&255,C[x++]=P>>24&255}}function Lt(p,f,v,C,x){for(v=f+v;f<v;){var P=(U=p[f++])>>16&240|U>>12&15,U=U>>0&240|U>>28&15;C[x++]=P,C[x++]=U}}function mr(p,f,v,C,x){for(v=f+v;f<v;){var P=(U=p[f++])>>16&248|U>>13&7,U=U>>5&224|U>>3&31;C[x++]=P,C[x++]=U}}function Vt(p,f,v,C,x){for(v=f+v;f<v;){var P=p[f++];C[x++]=P>>0&255,C[x++]=P>>8&255,C[x++]=P>>16&255}}function Jt(p,f,v,C,x,P){if(P==0)for(v=f+v;f<v;)Be(C,((P=p[f++])[0]>>24|P[1]>>8&65280|P[2]<<8&16711680|P[3]<<24)>>>0),x+=32;else a(C,x,p,f,v)}function Qr(p,f){L[f][0]=L[p+"0"],L[f][1]=L[p+"1"],L[f][2]=L[p+"2"],L[f][3]=L[p+"3"],L[f][4]=L[p+"4"],L[f][5]=L[p+"5"],L[f][6]=L[p+"6"],L[f][7]=L[p+"7"],L[f][8]=L[p+"8"],L[f][9]=L[p+"9"],L[f][10]=L[p+"10"],L[f][11]=L[p+"11"],L[f][12]=L[p+"12"],L[f][13]=L[p+"13"],L[f][14]=L[p+"0"],L[f][15]=L[p+"0"]}function Wt(p){return p==qv||p==Vv||p==Yd||p==Yv}function Jr(){this.eb=[],this.size=this.A=this.fb=0}function Et(){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 Fr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Jr,this.f.kb=new Et,this.sd=null}function Ht(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function te(){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 ve(p){return alert("todo:WebPSamplerProcessPlane"),p.T}function Ie(p,f){var v=p.T,C=f.ba.f.RGBA,x=C.eb,P=C.fb+p.ka*C.A,U=ti[f.ba.S],z=p.y,q=p.O,W=p.f,ue=p.N,Ee=p.ea,Se=p.W,he=f.cc,Le=f.dc,Ne=f.Mc,de=f.Nc,fe=p.ka,xe=p.ka+p.T,Ue=p.U,De=Ue+1>>1;for(fe==0?U(z,q,null,null,W,ue,Ee,Se,W,ue,Ee,Se,x,P,null,null,Ue):(U(f.ec,f.fc,z,q,he,Le,Ne,de,W,ue,Ee,Se,x,P-C.A,x,P,Ue),++v);fe+2<xe;fe+=2)he=W,Le=ue,Ne=Ee,de=Se,ue+=p.Rc,Se+=p.Rc,P+=2*C.A,U(z,(q+=2*p.fa)-p.fa,z,q,he,Le,Ne,de,W,ue,Ee,Se,x,P-C.A,x,P,Ue);return q+=p.fa,p.j+xe<p.o?(a(f.ec,f.fc,z,q,Ue),a(f.cc,f.dc,W,ue,De),a(f.Mc,f.Nc,Ee,Se,De),v--):1&xe||U(z,q,null,null,W,ue,Ee,Se,W,ue,Ee,Se,x,P+C.A,null,null,Ue),v}function Ct(p,f,v){var C=p.F,x=[p.J];if(C!=null){var P=p.U,U=f.ba.S,z=U==Vd||U==Yd;f=f.ba.f.RGBA;var q=[0],W=p.ka;q[0]=p.T,p.Kb&&(W==0?--q[0]:(--W,x[0]-=p.width),p.j+p.ka+p.T==p.o&&(q[0]=p.o-p.j-W));var ue=f.eb;W=f.fb+W*f.A,p=Dr(C,x[0],p.width,P,q,ue,W+(z?0:3),f.A),e(v==q),p&&Wt(U)&&Jn(ue,W,z,P,q,f.A)}return 0}function $t(p){var f=p.ma,v=f.ba.S,C=11>v,x=v==Gd||v==qd||v==Vd||v==Gv||v==12||Wt(v);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!AA(f.Oa,p,x?11:12))return 0;if(x&&Wt(v)&&Ve(),p.da)alert("todo:use_scaling");else{if(C){if(f.Ib=ve,p.Kb){if(v=p.U+1>>1,f.memory=i(p.U+2*v),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+p.U,f.Mc=f.cc,f.Nc=f.dc+v,f.Ib=Ie,Ve()}}else alert("todo:EmitYUV");x&&(f.Jb=Ct,C&&be())}if(C&&!G4){for(p=0;256>p;++p)Dhe[p]=89858*(p-128)+Kd>>jd,Fhe[p]=-22014*(p-128)+Kd,Mhe[p]=-45773*(p-128),Lhe[p]=113618*(p-128)+Kd>>jd;for(p=bA;p<Wv;++p)f=76283*(p-16)+Kd>>jd,Phe[p-bA]=Dn(f,255),Uhe[p-bA]=Dn(f+8>>4,15);G4=1}return 1}function tr(p){var f=p.ma,v=p.U,C=p.T;return e(!(1&p.ka)),0>=v||0>=C?0:(v=f.Ib(p,f),f.Jb!=null&&f.Jb(p,f,v),f.Dc+=v,1)}function st(p){p.ma.memory=null}function Re(p,f,v,C){return Ae(p,8)!=47?0:(f[0]=Ae(p,14)+1,v[0]=Ae(p,14)+1,C[0]=Ae(p,1),Ae(p,3)!=0?0:!p.h)}function St(p,f){if(4>p)return p+1;var v=p-2>>1;return(2+(1&p)<<v)+Ae(f,v)+1}function dr(p,f){return 120<f?f-120:1<=(v=((v=yhe[f-1])>>4)*p+(8-(15&v)))?v:1;var v}function Pt(p,f,v){var C=G(v),x=p[f+=255&C].g-8;return 0<x&&($(v,v.u+8),C=G(v),f+=p[f].value,f+=C&(1<<x)-1),$(v,v.u+p[f].g),p[f].value}function hr(p,f,v){return v.g+=p.g,v.value+=p.value<<f>>>0,e(8>=v.g),p.g}function Tr(p,f,v){var C=p.xc;return e((f=C==0?0:p.vc[p.md*(v>>C)+(f>>C)])<p.Wb),p.Ya[f]}function ba(p,f,v,C){var x=p.ab,P=p.c*f,U=p.C;f=U+f;var z=v,q=C;for(C=p.Ta,v=p.Ua;0<x--;){var W=p.gc[x],ue=U,Ee=f,Se=z,he=q,Le=(q=C,z=v,W.Ea);switch(e(ue<Ee),e(Ee<=W.nc),W.hc){case 2:Md(Se,he,(Ee-ue)*Le,q,z);break;case 0:var Ne=ue,de=Ee,fe=q,xe=z,Ue=(it=W).Ea;Ne==0&&(zv(Se,he,null,null,1,fe,xe),Xe(Se,he+1,0,0,Ue-1,fe,xe+1),he+=Ue,xe+=Ue,++Ne);for(var De=1<<it.b,pt=De-1,at=tt(Ue,it.b),Rt=it.K,it=it.w+(Ne>>it.b)*at;Ne<de;){var gr=Rt,yr=it,or=1;for(pA(Se,he,fe,xe-Ue,1,fe,xe);or<Ue;){var er=(or&~pt)+De;er>Ue&&(er=Ue),(0,to[gr[yr++]>>8&15])(Se,he+ +or,fe,xe+or-Ue,er-or,fe,xe+or),or=er}he+=Ue,xe+=Ue,++Ne&pt||(it+=at)}Ee!=W.nc&&a(q,z-Le,q,z+(Ee-ue-1)*Le,Le);break;case 1:for(Le=Se,de=he,Ue=(Se=W.Ea)-(xe=Se&~(fe=(he=1<<W.b)-1)),Ne=tt(Se,W.b),De=W.K,W=W.w+(ue>>W.b)*Ne;ue<Ee;){for(pt=De,at=W,Rt=new Ke,it=de+xe,gr=de+Se;de<it;)Ft(pt[at++],Rt),Vo(Rt,Le,de,he,q,z),de+=he,z+=he;de<gr&&(Ft(pt[at++],Rt),Vo(Rt,Le,de,Ue,q,z),de+=Ue,z+=Ue),++ue&fe||(W+=Ne)}break;case 3:if(Se==q&&he==z&&0<W.b){for(de=q,Se=Le=z+(Ee-ue)*Le-(xe=(Ee-ue)*tt(W.Ea,W.b)),he=q,fe=z,Ne=[],xe=(Ue=xe)-1;0<=xe;--xe)Ne[xe]=he[fe+xe];for(xe=Ue-1;0<=xe;--xe)de[Se+xe]=Ne[xe];$n(W,ue,Ee,q,Le,q,z)}else $n(W,ue,Ee,Se,he,q,z)}z=C,q=v}q!=v&&a(C,v,z,q,P)}function Yn(p,f){var v=p.V,C=p.Ba+p.c*p.C,x=f-p.C;if(e(f<=p.l.o),e(16>=x),0<x){var P=p.l,U=p.Ta,z=p.Ua,q=P.width;if(ba(p,x,v,C),x=z=[z],e((v=p.C)<(C=f)),e(P.v<P.va),C>P.o&&(C=P.o),v<P.j){var W=P.j-v;v=P.j,x[0]+=W*q}if(v>=C?v=0:(x[0]+=4*P.v,P.ka=v-P.j,P.U=P.va-P.v,P.T=C-v,v=1),v){if(z=z[0],11>(v=p.ca).S){var ue=v.f.RGBA,Ee=(C=v.S,x=P.U,P=P.T,W=ue.eb,ue.A),Se=P;for(ue=ue.fb+p.Ma*ue.A;0<Se--;){var he=U,Le=z,Ne=x,de=W,fe=ue;switch(C){case Hd:Cn(he,Le,Ne,de,fe);break;case Gd:fn(he,Le,Ne,de,fe);break;case qv:fn(he,Le,Ne,de,fe),Jn(de,fe,0,Ne,1,0);break;case D4:ds(he,Le,Ne,de,fe);break;case qd:Jt(he,Le,Ne,de,fe,1);break;case Vv:Jt(he,Le,Ne,de,fe,1),Jn(de,fe,0,Ne,1,0);break;case Vd:Jt(he,Le,Ne,de,fe,0);break;case Yd:Jt(he,Le,Ne,de,fe,0),Jn(de,fe,1,Ne,1,0);break;case Gv:ro(he,Le,Ne,de,fe);break;case Yv:ro(he,Le,Ne,de,fe),xr(de,fe,Ne,1,0);break;case L4:us(he,Le,Ne,de,fe);break;default:e(0)}z+=q,ue+=Ee}p.Ma+=P}else alert("todo:EmitRescaledRowsYUVA");e(p.Ma<=v.height)}}p.C=f,e(p.C<=p.i)}function Xa(p){var f;if(0<p.ua)return 0;for(f=0;f<p.Wb;++f){var v=p.Ya[f].G,C=p.Ya[f].H;if(0<v[1][C[1]+0].g||0<v[2][C[2]+0].g||0<v[3][C[3]+0].g)return 0}return 1}function Gr(p,f,v,C,x,P){if(p.Z!=0){var U=p.qd,z=p.rd;for(e(so[p.Z]!=null);f<v;++f)so[p.Z](U,z,C,x,C,x,P),U=C,z=x,x+=P;p.qd=U,p.rd=z}}function Za(p,f){var v=p.l.ma,C=v.Z==0||v.Z==1?p.l.j:p.C;if(C=p.C<C?C:p.C,e(f<=p.l.o),f>C){var x=p.l.width,P=v.ca,U=v.tb+x*C,z=p.V,q=p.Ba+p.c*C,W=p.gc;e(p.ab==1),e(W[0].hc==3),Fd(W[0],C,f,z,q,P,U),Gr(v,C,f,P,U,x)}p.C=p.Ma=f}function Ja(p,f,v,C,x,P,U){var z=p.$/C,q=p.$%C,W=p.m,ue=p.s,Ee=v+p.$,Se=Ee;x=v+C*x;var he=v+C*P,Le=280+ue.ua,Ne=p.Pb?z:16777216,de=0<ue.ua?ue.Wa:null,fe=ue.wc,xe=Ee<he?Tr(ue,q,z):null;e(p.C<P),e(he<=x);var Ue=!1;e:for(;;){for(;Ue||Ee<he;){var De=0;if(z>=Ne){var pt=Ee-v;e((Ne=p).Pb),Ne.wd=Ne.m,Ne.xd=pt,0<Ne.s.ua&&Ce(Ne.s.Wa,Ne.s.vb),Ne=z+Ehe}if(q&fe||(xe=Tr(ue,q,z)),e(xe!=null),xe.Qb&&(f[Ee]=xe.qb,Ue=!0),!Ue)if(ne(W),xe.jc){De=W,pt=f;var at=Ee,Rt=xe.pd[G(De)&za-1];e(xe.jc),256>Rt.g?($(De,De.u+Rt.g),pt[at]=Rt.value,De=0):($(De,De.u+Rt.g-256),e(256<=Rt.value),De=Rt.value),De==0&&(Ue=!0)}else De=Pt(xe.G[0],xe.H[0],W);if(W.h)break;if(Ue||256>De){if(!Ue)if(xe.nd)f[Ee]=(xe.qb|De<<8)>>>0;else{if(ne(W),Ue=Pt(xe.G[1],xe.H[1],W),ne(W),pt=Pt(xe.G[2],xe.H[2],W),at=Pt(xe.G[3],xe.H[3],W),W.h)break;f[Ee]=(at<<24|Ue<<16|De<<8|pt)>>>0}if(Ue=!1,++Ee,++q>=C&&(q=0,++z,U!=null&&z<=P&&!(z%16)&&U(p,z),de!=null))for(;Se<Ee;)De=f[Se++],de.X[(506832829*De&4294967295)>>>de.Mb]=De}else if(280>De){if(De=St(De-256,W),pt=Pt(xe.G[4],xe.H[4],W),ne(W),pt=dr(C,pt=St(pt,W)),W.h)break;if(Ee-v<pt||x-Ee<De)break e;for(at=0;at<De;++at)f[Ee+at]=f[Ee+at-pt];for(Ee+=De,q+=De;q>=C;)q-=C,++z,U!=null&&z<=P&&!(z%16)&&U(p,z);if(e(Ee<=x),q&fe&&(xe=Tr(ue,q,z)),de!=null)for(;Se<Ee;)De=f[Se++],de.X[(506832829*De&4294967295)>>>de.Mb]=De}else{if(!(De<Le))break e;for(Ue=De-280,e(de!=null);Se<Ee;)De=f[Se++],de.X[(506832829*De&4294967295)>>>de.Mb]=De;De=Ee,e(!(Ue>>>(pt=de).Xa)),f[De]=pt.X[Ue],Ue=!0}Ue||e(W.h==j(W))}if(p.Pb&&W.h&&Ee<x)e(p.m.h),p.a=5,p.m=p.wd,p.$=p.xd,0<p.s.ua&&Ce(p.s.vb,p.s.Wa);else{if(W.h)break e;U!=null&&U(p,z>P?P:z),p.a=0,p.$=Ee-v}return 1}return p.a=3,0}function en(p){e(p!=null),p.vc=null,p.yc=null,p.Ya=null;var f=p.Wa;f!=null&&(f.X=null),p.vb=null,e(p!=null)}function ya(){var p=new Qv;return p==null?null:(p.a=0,p.xb=P4,Qr("Predictor","VP8LPredictors"),Qr("Predictor","VP8LPredictors_C"),Qr("PredictorAdd","VP8LPredictorsAdd"),Qr("PredictorAdd","VP8LPredictorsAdd_C"),Md=At,Vo=mt,Cn=Ze,fn=rr,ro=Lt,us=mr,ds=Vt,L.VP8LMapColor32b=Gl,L.VP8LMapColor8b=Pd,p)}function Sn(p,f,v,C,x){var P=1,U=[p],z=[f],q=C.m,W=C.s,ue=null,Ee=0;e:for(;;){if(v)for(;P&&Ae(q,1);){var Se=U,he=z,Le=C,Ne=1,de=Le.m,fe=Le.gc[Le.ab],xe=Ae(de,2);if(Le.Oc&1<<xe)P=0;else{switch(Le.Oc|=1<<xe,fe.hc=xe,fe.Ea=Se[0],fe.nc=he[0],fe.K=[null],++Le.ab,e(4>=Le.ab),xe){case 0:case 1:fe.b=Ae(de,3)+2,Ne=Sn(tt(fe.Ea,fe.b),tt(fe.nc,fe.b),0,Le,fe.K),fe.K=fe.K[0];break;case 3:var Ue,De=Ae(de,8)+1,pt=16<De?0:4<De?1:2<De?2:3;if(Se[0]=tt(fe.Ea,pt),fe.b=pt,Ue=Ne=Sn(De,1,0,Le,fe.K)){var at,Rt=De,it=fe,gr=1<<(8>>it.b),yr=i(gr);if(yr==null)Ue=0;else{var or=it.K[0],er=it.w;for(yr[0]=it.K[0][0],at=1;at<1*Rt;++at)yr[at]=Fe(or[er+at],yr[at-1]);for(;at<4*gr;++at)yr[at]=0;it.K[0]=null,it.K[0]=yr,Ue=1}}Ne=Ue;break;case 2:break;default:e(0)}P=Ne}}if(U=U[0],z=z[0],P&&Ae(q,1)&&!(P=1<=(Ee=Ae(q,4))&&11>=Ee)){C.a=3;break e}var Nr;if(Nr=P)t:{var Sr,jt,Sa,Tn=C,wa=U,Nn=z,vr=Ee,Mn=v,Fn=Tn.m,xa=Tn.s,Ha=[null],mn=1,ri=0,qi=vhe[vr];r:for(;;){if(Mn&&Ae(Fn,1)){var Da=Ae(Fn,3)+2,_s=tt(wa,Da),$o=tt(Nn,Da),Kl=_s*$o;if(!Sn(_s,$o,0,Tn,Ha))break r;for(Ha=Ha[0],xa.xc=Da,Sr=0;Sr<Kl;++Sr){var oo=Ha[Sr]>>8&65535;Ha[Sr]=oo,oo>=mn&&(mn=oo+1)}}if(Fn.h)break r;for(jt=0;5>jt;++jt){var ra=M4[jt];!jt&&0<vr&&(ra+=1<<vr),ri<ra&&(ri=ra)}var $v=s(mn*qi,M),Y4=mn,j4=s(Y4,Q);if(j4==null)var $d=null;else e(65536>=Y4),$d=j4;var yA=i(ri);if($d==null||yA==null||$v==null){Tn.a=1;break r}var Xd=$v;for(Sr=Sa=0;Sr<mn;++Sr){var wi=$d[Sr],Wl=wi.G,$l=wi.H,K4=0,Zd=1,W4=0;for(jt=0;5>jt;++jt){ra=M4[jt],Wl[jt]=Xd,$l[jt]=Sa,!jt&&0<vr&&(ra+=1<<vr);n:{var Jd,Xv=ra,ep=Tn,vA=yA,Hhe=Xd,Ghe=Sa,Zv=0,lo=ep.m,qhe=Ae(lo,1);if(n(vA,0,0,Xv),qhe){var Vhe=Ae(lo,1)+1,Yhe=Ae(lo,1),$4=Ae(lo,Yhe==0?1:8);vA[$4]=1,Vhe==2&&(vA[$4=Ae(lo,8)]=1);var tp=1}else{var X4=i(19),Z4=Ae(lo,4)+4;if(19<Z4){ep.a=3;var rp=0;break n}for(Jd=0;Jd<Z4;++Jd)X4[bhe[Jd]]=Ae(lo,3);var Jv=void 0,EA=void 0,J4=ep,jhe=X4,ap=Xv,eB=vA,eE=0,co=J4.m,tB=8,rB=s(128,M);a:for(;I(rB,0,7,jhe,19);){if(Ae(co,1)){var Khe=2+2*Ae(co,3);if((Jv=2+Ae(co,Khe))>ap)break a}else Jv=ap;for(EA=0;EA<ap&&Jv--;){ne(co);var aB=rB[0+(127&G(co))];$(co,co.u+aB.g);var Xl=aB.value;if(16>Xl)eB[EA++]=Xl,Xl!=0&&(tB=Xl);else{var Whe=Xl==16,nB=Xl-16,$he=mhe[nB],iB=Ae(co,_he[nB])+$he;if(EA+iB>ap)break a;for(var Xhe=Whe?tB:0;0<iB--;)eB[EA++]=Xhe}}eE=1;break a}eE||(J4.a=3),tp=eE}(tp=tp&&!lo.h)&&(Zv=I(Hhe,Ghe,8,vA,Xv)),tp&&Zv!=0?rp=Zv:(ep.a=3,rp=0)}if(rp==0)break r;if(Zd&&hhe[jt]==1&&(Zd=Xd[Sa].g==0),K4+=Xd[Sa].g,Sa+=rp,3>=jt){var SA,tE=yA[0];for(SA=1;SA<ra;++SA)yA[SA]>tE&&(tE=yA[SA]);W4+=tE}}if(wi.nd=Zd,wi.Qb=0,Zd&&(wi.qb=(Wl[3][$l[3]+0].value<<24|Wl[1][$l[1]+0].value<<16|Wl[2][$l[2]+0].value)>>>0,K4==0&&256>Wl[0][$l[0]+0].value&&(wi.Qb=1,wi.qb+=Wl[0][$l[0]+0].value<<8)),wi.jc=!wi.Qb&&6>W4,wi.jc){var np,ms=wi;for(np=0;np<za;++np){var Ao=np,uo=ms.pd[Ao],ip=ms.G[0][ms.H[0]+Ao];256<=ip.value?(uo.g=ip.g+256,uo.value=ip.value):(uo.g=0,uo.value=0,Ao>>=hr(ip,8,uo),Ao>>=hr(ms.G[1][ms.H[1]+Ao],16,uo),Ao>>=hr(ms.G[2][ms.H[2]+Ao],0,uo),hr(ms.G[3][ms.H[3]+Ao],24,uo))}}}xa.vc=Ha,xa.Wb=mn,xa.Ya=$d,xa.yc=$v,Nr=1;break t}Nr=0}if(!(P=Nr)){C.a=3;break e}if(0<Ee){if(W.ua=1<<Ee,!rt(W.Wa,Ee)){C.a=1,P=0;break e}}else W.ua=0;var rE=C,sB=U,Zhe=z,aE=rE.s,nE=aE.xc;if(rE.c=sB,rE.i=Zhe,aE.md=tt(sB,nE),aE.wc=nE==0?-1:(1<<nE)-1,v){C.xb=Ohe;break e}if((ue=i(U*z))==null){C.a=1,P=0;break e}P=(P=Ja(C,ue,0,U,z,z,null))&&!q.h;break e}return P?(x!=null?x[0]=ue:(e(ue==null),e(v)),C.$=0,v||en(W)):en(W),P}function ht(p,f){var v=p.c*p.i,C=v+f+16*f;return e(p.c<=f),p.V=i(C),p.V==null?(p.Ta=null,p.Ua=0,p.a=1,0):(p.Ta=p.V,p.Ua=p.Ba+v+f,1)}function pe(p,f){var v=p.C,C=f-v,x=p.V,P=p.Ba+p.c*v;for(e(f<=p.l.o);0<C;){var U=16<C?16:C,z=p.l.ma,q=p.l.width,W=q*U,ue=z.ca,Ee=z.tb+q*v,Se=p.Ta,he=p.Ua;ba(p,U,x,P),ga(Se,he,ue,Ee,W),Gr(z,v,v+U,ue,Ee,q),C-=U,x+=U*p.c,v+=U}e(v==f),p.C=p.Ma=f}function Qe(){this.ub=this.yd=this.td=this.Rb=0}function dt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ar(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function qr(){this.Yb=function(){var p=[];return function f(v,C,x){for(var P=x[C],U=0;U<P&&(v.push(x.length>C+1?[]:0),!(x.length<C+1));U++)f(v[U],C+1,x)}(p,0,[3,11]),p}()}function Vr(){this.jb=i(3),this.Wc=o([4,8],qr),this.Xc=o([4,17],qr)}function va(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function ea(){this.ld=this.La=this.dd=this.tc=0}function jn(){this.Na=this.la=0}function Pe(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yt(){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 Yt(){this.uc=this.M=this.Nb=0,this.wa=Array(new ea),this.Y=0,this.ya=Array(new yt),this.aa=0,this.l=new Ua}function pr(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Yr(){this.cb=this.a=0,this.sc="",this.m=new ye,this.Od=new Qe,this.Kc=new dt,this.ed=new va,this.Qa=new ar,this.Ic=this.$c=this.Aa=0,this.D=new Yt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,ye),this.ia=0,this.pb=s(4,Pe),this.Pa=new Vr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new pr),this.Hd=0,this.rb=Array(new jn),this.sb=0,this.wa=Array(new ea),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 yt),this.L=this.aa=0,this.gd=o([4,2],ea),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 Ua(){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 Kn(){var p=new Yr;return p!=null&&(p.a=0,p.sc="OK",p.cb=0,p.Xb=0,hA||(hA=Uo)),p}function Br(p,f,v){return p.a==0&&(p.a=f,p.sc=v,p.cb=0),0}function Ra(p,f,v){return 3<=v&&p[f+0]==157&&p[f+1]==1&&p[f+2]==42}function pn(p,f){if(p==null)return 0;if(p.a=0,p.sc="OK",f==null)return Br(p,2,"null VP8Io passed to VP8GetHeaders()");var v=f.data,C=f.w,x=f.ha;if(4>x)return Br(p,7,"Truncated header.");var P=v[C+0]|v[C+1]<<8|v[C+2]<<16,U=p.Od;if(U.Rb=!(1&P),U.td=P>>1&7,U.yd=P>>4&1,U.ub=P>>5,3<U.td)return Br(p,3,"Incorrect keyframe parameters.");if(!U.yd)return Br(p,4,"Frame not displayable.");C+=3,x-=3;var z=p.Kc;if(U.Rb){if(7>x)return Br(p,7,"cannot parse picture header");if(!Ra(v,C,x))return Br(p,3,"Bad code word");z.c=16383&(v[C+4]<<8|v[C+3]),z.Td=v[C+4]>>6,z.i=16383&(v[C+6]<<8|v[C+5]),z.Ud=v[C+6]>>6,C+=7,x-=7,p.za=z.c+15>>4,p.Ub=z.i+15>>4,f.width=z.c,f.height=z.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,n((P=p.Pa).jb,0,255,P.jb.length),e((P=p.Qa)!=null),P.Cb=0,P.Bb=0,P.Fb=1,n(P.Zb,0,0,P.Zb.length),n(P.Lb,0,0,P.Lb)}if(U.ub>x)return Br(p,7,"bad partition length");ee(P=p.m,v,C,U.ub),C+=U.ub,x-=U.ub,U.Rb&&(z.Ld=_e(P),z.Kd=_e(P)),z=p.Qa;var q,W=p.Pa;if(e(P!=null),e(z!=null),z.Cb=_e(P),z.Cb){if(z.Bb=_e(P),_e(P)){for(z.Fb=_e(P),q=0;4>q;++q)z.Zb[q]=_e(P)?ie(P,7):0;for(q=0;4>q;++q)z.Lb[q]=_e(P)?ie(P,6):0}if(z.Bb)for(q=0;3>q;++q)W.jb[q]=_e(P)?oe(P,8):255}else z.Bb=0;if(P.Ka)return Br(p,3,"cannot parse segment header");if((z=p.ed).zd=_e(P),z.Tb=oe(P,6),z.wb=oe(P,3),z.Pc=_e(P),z.Pc&&_e(P)){for(W=0;4>W;++W)_e(P)&&(z.vd[W]=ie(P,6));for(W=0;4>W;++W)_e(P)&&(z.od[W]=ie(P,6))}if(p.L=z.Tb==0?0:z.zd?1:2,P.Ka)return Br(p,3,"cannot parse filter header");var ue=x;if(x=q=C,C=q+ue,z=ue,p.Xb=(1<<oe(p.m,2))-1,ue<3*(W=p.Xb))v=7;else{for(q+=3*W,z-=3*W,ue=0;ue<W;++ue){var Ee=v[x+0]|v[x+1]<<8|v[x+2]<<16;Ee>z&&(Ee=z),ee(p.Jc[+ue],v,q,Ee),q+=Ee,z-=Ee,x+=3}ee(p.Jc[+W],v,q,z),v=q<C?0:5}if(v!=0)return Br(p,v,"cannot parse partitions");for(v=oe(q=p.m,7),x=_e(q)?ie(q,4):0,C=_e(q)?ie(q,4):0,z=_e(q)?ie(q,4):0,W=_e(q)?ie(q,4):0,q=_e(q)?ie(q,4):0,ue=p.Qa,Ee=0;4>Ee;++Ee){if(ue.Cb){var Se=ue.Zb[Ee];ue.Fb||(Se+=v)}else{if(0<Ee){p.pb[Ee]=p.pb[0];continue}Se=v}var he=p.pb[Ee];he.Sc[0]=jv[Dn(Se+x,127)],he.Sc[1]=Kv[Dn(Se+0,127)],he.Eb[0]=2*jv[Dn(Se+C,127)],he.Eb[1]=101581*Kv[Dn(Se+z,127)]>>16,8>he.Eb[1]&&(he.Eb[1]=8),he.Qc[0]=jv[Dn(Se+W,117)],he.Qc[1]=Kv[Dn(Se+q,127)],he.lc=Se+q}if(!U.Rb)return Br(p,4,"Not a key frame.");for(_e(P),U=p.Pa,v=0;4>v;++v){for(x=0;8>x;++x)for(C=0;3>C;++C)for(z=0;11>z;++z)W=me(P,Nhe[v][x][C][z])?oe(P,8):Che[v][x][C][z],U.Wc[v][x].Yb[C][z]=W;for(x=0;17>x;++x)U.Xc[v][x]=U.Wc[v][khe[x]]}return p.kc=_e(P),p.kc&&(p.Bd=oe(P,8)),p.cb=1}function Uo(p,f,v,C,x,P,U){var z=f[x].Yb[v];for(v=0;16>x;++x){if(!me(p,z[v+0]))return x;for(;!me(p,z[v+1]);)if(z=f[++x].Yb[0],v=0,x==16)return 16;var q=f[x+1].Yb;if(me(p,z[v+2])){var W=p,ue=0;if(me(W,(Se=z)[(Ee=v)+3]))if(me(W,Se[Ee+6])){for(z=0,Ee=2*(ue=me(W,Se[Ee+8]))+(Se=me(W,Se[Ee+9+ue])),ue=0,Se=She[Ee];Se[z];++z)ue+=ue+me(W,Se[z]);ue+=3+(8<<Ee)}else me(W,Se[Ee+7])?(ue=7+2*me(W,165),ue+=me(W,145)):ue=5+me(W,159);else ue=me(W,Se[Ee+4])?3+me(W,Se[Ee+5]):2;z=q[2]}else ue=1,z=q[1];q=U+whe[x],0>(W=p).b&&ce(W);var Ee,Se=W.b,he=(Ee=W.Ca>>1)-(W.I>>Se)>>31;--W.b,W.Ca+=he,W.Ca|=1,W.I-=(Ee+1&he)<<Se,P[q]=((ue^he)-he)*C[(0<x)+0]}return 16}function js(p){var f=p.rb[p.sb-1];f.la=0,f.Na=0,n(p.zc,0,0,p.zc.length),p.ja=0}function Rl(p,f){if(p==null)return 0;if(f==null)return Br(p,2,"NULL VP8Io parameter in VP8Decode().");if(!p.cb&&!pn(p,f))return 0;if(e(p.cb),f.ac==null||f.ac(f)){f.ob&&(p.L=0);var v=Wd[p.L];if(p.L==2?(p.yb=0,p.zb=0):(p.yb=f.v-v>>4,p.zb=f.j-v>>4,0>p.yb&&(p.yb=0),0>p.zb&&(p.zb=0)),p.Va=f.o+15+v>>4,p.Hb=f.va+15+v>>4,p.Hb>p.za&&(p.Hb=p.za),p.Va>p.Ub&&(p.Va=p.Ub),0<p.L){var C=p.ed;for(v=0;4>v;++v){var x;if(p.Qa.Cb){var P=p.Qa.Lb[v];p.Qa.Fb||(P+=C.Tb)}else P=C.Tb;for(x=0;1>=x;++x){var U=p.gd[v][x],z=P;if(C.Pc&&(z+=C.vd[0],x&&(z+=C.od[0])),0<(z=0>z?0:63<z?63:z)){var q=z;0<C.wb&&(q=4<C.wb?q>>2:q>>1)>9-C.wb&&(q=9-C.wb),1>q&&(q=1),U.dd=q,U.tc=2*z+q,U.ld=40<=z?2:15<=z?1:0}else U.tc=0;U.La=x}}}v=0}else Br(p,6,"Frame setup failed"),v=p.a;if(v=v==0){if(v){p.$c=0,0<p.Aa||(p.Ic=zhe);e:{v=p.Ic,C=4*(q=p.za);var W=32*q,ue=q+1,Ee=0<p.L?q*(0<p.Aa?2:1):0,Se=(p.Aa==2?2:1)*q;if((U=C+832+(x=3*(16*v+Wd[p.L])/2*W)+(P=p.Fa!=null&&0<p.Fa.length?p.Kc.c*p.Kc.i:0))!=U)v=0;else{if(U>p.Vb){if(p.Vb=0,p.Ec=i(U),p.Fc=0,p.Ec==null){v=Br(p,1,"no memory during frame initialization.");break e}p.Vb=U}U=p.Ec,z=p.Fc,p.Ac=U,p.Bc=z,z+=C,p.Gd=s(W,pr),p.Hd=0,p.rb=s(ue+1,jn),p.sb=1,p.wa=Ee?s(Ee,ea):null,p.Y=0,p.D.Nb=0,p.D.wa=p.wa,p.D.Y=p.Y,0<p.Aa&&(p.D.Y+=q),e(!0),p.oc=U,p.pc=z,z+=832,p.ya=s(Se,yt),p.aa=0,p.D.ya=p.ya,p.D.aa=p.aa,p.Aa==2&&(p.D.aa+=q),p.R=16*q,p.B=8*q,q=(W=Wd[p.L])*p.R,W=W/2*p.B,p.sa=U,p.ta=z+q,p.qa=p.sa,p.ra=p.ta+16*v*p.R+W,p.Ha=p.qa,p.Ia=p.ra+8*v*p.B+W,p.$c=0,z+=x,p.mb=P?U:null,p.nb=P?z:null,e(z+P<=p.Fc+p.Vb),js(p),n(p.Ac,p.Bc,0,C),v=1}}if(v){if(f.ka=0,f.y=p.sa,f.O=p.ta,f.f=p.qa,f.N=p.ra,f.ea=p.Ha,f.Vd=p.Ia,f.fa=p.R,f.Rc=p.B,f.F=null,f.J=0,!Qd){for(v=-255;255>=v;++v)Na[255+v]=0>v?-v:v;for(v=-1020;1020>=v;++v)gs[1020+v]=-128>v?-128:127<v?127:v;for(v=-112;112>=v;++v)mA[112+v]=-16>v?-16:15<v?15:v;for(v=-255;510>=v;++v)jl[255+v]=0>v?0:255<v?255:v;Qd=1}ql=Mt,ps=Bl,gA=gn,_n=$c,Xn=Ws,pa=cs,Vl=tA,Ud=Go,fA=Uv,Yo=rA,jo=Pv,ao=Ll,Ko=aA,Yl=xd,Wo=Bd,no=Hi,_A=As,Zn=Fv,Si[0]=Wn,Si[1]=da,Si[2]=xn,Si[3]=Xc,Si[4]=Nd,Si[5]=xl,Si[6]=kd,Si[7]=Zc,Si[8]=Dv,Si[9]=xv,io[0]=nt,io[1]=Xs,io[2]=Qa,io[3]=Qi,io[4]=ot,io[5]=Gt,io[6]=sr,fs[0]=Zs,fs[1]=br,fs[2]=Lv,fs[3]=Jc,fs[4]=Ho,fs[5]=Mv,fs[6]=eA,v=1}else v=0}v&&(v=function(he,Le){for(he.M=0;he.M<he.Va;++he.M){var Ne,de=he.Jc[he.M&he.Xb],fe=he.m,xe=he;for(Ne=0;Ne<xe.za;++Ne){var Ue=fe,De=xe,pt=De.Ac,at=De.Bc+4*Ne,Rt=De.zc,it=De.ya[De.aa+Ne];if(De.Qa.Bb?it.$b=me(Ue,De.Pa.jb[0])?2+me(Ue,De.Pa.jb[2]):me(Ue,De.Pa.jb[1]):it.$b=0,De.kc&&(it.Ad=me(Ue,De.Bd)),it.Za=!me(Ue,145)+0,it.Za){var gr=it.Ob,yr=0;for(De=0;4>De;++De){var or,er=Rt[0+De];for(or=0;4>or;++or){er=The[pt[at+or]][er];for(var Nr=F4[me(Ue,er[0])];0<Nr;)Nr=F4[2*Nr+me(Ue,er[Nr])];er=-Nr,pt[at+or]=er}a(gr,yr,pt,at,4),yr+=4,Rt[0+De]=er}}else er=me(Ue,156)?me(Ue,128)?1:3:me(Ue,163)?2:0,it.Ob[0]=er,n(pt,at,er,4),n(Rt,0,er,4);it.Dd=me(Ue,142)?me(Ue,114)?me(Ue,183)?1:3:2:0}if(xe.m.Ka)return Br(he,7,"Premature end-of-partition0 encountered.");for(;he.ja<he.za;++he.ja){if(xe=de,Ue=(fe=he).rb[fe.sb-1],pt=fe.rb[fe.sb+fe.ja],Ne=fe.ya[fe.aa+fe.ja],at=fe.kc?Ne.Ad:0)Ue.la=pt.la=0,Ne.Za||(Ue.Na=pt.Na=0),Ne.Hc=0,Ne.Gc=0,Ne.ia=0;else{var Sr,jt;if(Ue=pt,pt=xe,at=fe.Pa.Xc,Rt=fe.ya[fe.aa+fe.ja],it=fe.pb[Rt.$b],De=Rt.ad,gr=0,yr=fe.rb[fe.sb-1],er=or=0,n(De,gr,0,384),Rt.Za)var Sa=0,Tn=at[3];else{Nr=i(16);var wa=Ue.Na+yr.Na;if(wa=hA(pt,at[1],wa,it.Eb,0,Nr,0),Ue.Na=yr.Na=(0<wa)+0,1<wa)ql(Nr,0,De,gr);else{var Nn=Nr[0]+3>>3;for(Nr=0;256>Nr;Nr+=16)De[gr+Nr]=Nn}Sa=1,Tn=at[0]}var vr=15&Ue.la,Mn=15&yr.la;for(Nr=0;4>Nr;++Nr){var Fn=1&Mn;for(Nn=jt=0;4>Nn;++Nn)vr=vr>>1|(Fn=(wa=hA(pt,Tn,wa=Fn+(1&vr),it.Sc,Sa,De,gr))>Sa)<<7,jt=jt<<2|(3<wa?3:1<wa?2:De[gr+0]!=0),gr+=16;vr>>=4,Mn=Mn>>1|Fn<<7,or=(or<<8|jt)>>>0}for(Tn=vr,Sa=Mn>>4,Sr=0;4>Sr;Sr+=2){for(jt=0,vr=Ue.la>>4+Sr,Mn=yr.la>>4+Sr,Nr=0;2>Nr;++Nr){for(Fn=1&Mn,Nn=0;2>Nn;++Nn)wa=Fn+(1&vr),vr=vr>>1|(Fn=0<(wa=hA(pt,at[2],wa,it.Qc,0,De,gr)))<<3,jt=jt<<2|(3<wa?3:1<wa?2:De[gr+0]!=0),gr+=16;vr>>=2,Mn=Mn>>1|Fn<<5}er|=jt<<4*Sr,Tn|=vr<<4<<Sr,Sa|=(240&Mn)<<Sr}Ue.la=Tn,yr.la=Sa,Rt.Hc=or,Rt.Gc=er,Rt.ia=43690&er?0:it.ia,at=!(or|er)}if(0<fe.L&&(fe.wa[fe.Y+fe.ja]=fe.gd[Ne.$b][Ne.Za],fe.wa[fe.Y+fe.ja].La|=!at),xe.Ka)return Br(he,7,"Premature end-of-file encountered.")}if(js(he),fe=Le,xe=1,Ne=(de=he).D,Ue=0<de.L&&de.M>=de.zb&&de.M<=de.Va,de.Aa==0)e:{if(Ne.M=de.M,Ne.uc=Ue,cA(de,Ne),xe=1,Ne=(jt=de.D).Nb,Ue=(er=Wd[de.L])*de.R,pt=er/2*de.B,Nr=16*Ne*de.R,Nn=8*Ne*de.B,at=de.sa,Rt=de.ta-Ue+Nr,it=de.qa,De=de.ra-pt+Nn,gr=de.Ha,yr=de.Ia-pt+Nn,Mn=(vr=jt.M)==0,or=vr>=de.Va-1,de.Aa==2&&cA(de,jt),jt.uc)for(Fn=(wa=de).D.M,e(wa.D.uc),jt=wa.yb;jt<wa.Hb;++jt){Sa=jt,Tn=Fn;var xa=(Ha=(ra=wa).D).Nb;Sr=ra.R;var Ha=Ha.wa[Ha.Y+Sa],mn=ra.sa,ri=ra.ta+16*xa*Sr+16*Sa,qi=Ha.dd,Da=Ha.tc;if(Da!=0)if(e(3<=Da),ra.L==1)0<Sa&&no(mn,ri,Sr,Da+4),Ha.La&&Zn(mn,ri,Sr,Da),0<Tn&&Wo(mn,ri,Sr,Da+4),Ha.La&&_A(mn,ri,Sr,Da);else{var _s=ra.B,$o=ra.qa,Kl=ra.ra+8*xa*_s+8*Sa,oo=ra.Ha,ra=ra.Ia+8*xa*_s+8*Sa;xa=Ha.ld,0<Sa&&(Ud(mn,ri,Sr,Da+4,qi,xa),Yo($o,Kl,oo,ra,_s,Da+4,qi,xa)),Ha.La&&(ao(mn,ri,Sr,Da,qi,xa),Yl($o,Kl,oo,ra,_s,Da,qi,xa)),0<Tn&&(Vl(mn,ri,Sr,Da+4,qi,xa),fA($o,Kl,oo,ra,_s,Da+4,qi,xa)),Ha.La&&(jo(mn,ri,Sr,Da,qi,xa),Ko($o,Kl,oo,ra,_s,Da,qi,xa))}}if(de.ia&&alert("todo:DitherRow"),fe.put!=null){if(jt=16*vr,vr=16*(vr+1),Mn?(fe.y=de.sa,fe.O=de.ta+Nr,fe.f=de.qa,fe.N=de.ra+Nn,fe.ea=de.Ha,fe.W=de.Ia+Nn):(jt-=er,fe.y=at,fe.O=Rt,fe.f=it,fe.N=De,fe.ea=gr,fe.W=yr),or||(vr-=er),vr>fe.o&&(vr=fe.o),fe.F=null,fe.J=null,de.Fa!=null&&0<de.Fa.length&&jt<vr&&(fe.J=oA(de,fe,jt,vr-jt),fe.F=de.mb,fe.F==null&&fe.F.length==0)){xe=Br(de,3,"Could not decode alpha data.");break e}jt<fe.j&&(er=fe.j-jt,jt=fe.j,e(!(1&er)),fe.O+=de.R*er,fe.N+=de.B*(er>>1),fe.W+=de.B*(er>>1),fe.F!=null&&(fe.J+=fe.width*er)),jt<vr&&(fe.O+=fe.v,fe.N+=fe.v>>1,fe.W+=fe.v>>1,fe.F!=null&&(fe.J+=fe.v),fe.ka=jt-fe.j,fe.U=fe.va-fe.v,fe.T=vr-jt,xe=fe.put(fe))}Ne+1!=de.Ic||or||(a(de.sa,de.ta-Ue,at,Rt+16*de.R,Ue),a(de.qa,de.ra-pt,it,De+8*de.B,pt),a(de.Ha,de.Ia-pt,gr,yr+8*de.B,pt))}if(!xe)return Br(he,6,"Output aborted.")}return 1}(p,f)),f.bc!=null&&f.bc(f),v&=1}return v?(p.cb=0,v):0}function Bn(p,f,v,C,x){x=p[f+v+32*C]+(x>>3),p[f+v+32*C]=-256&x?0>x?0:255:x}function Ks(p,f,v,C,x,P){Bn(p,f,0,v,C+x),Bn(p,f,1,v,C+P),Bn(p,f,2,v,C-P),Bn(p,f,3,v,C-x)}function tn(p){return(20091*p>>16)+p}function Qo(p,f,v,C){var x,P=0,U=i(16);for(x=0;4>x;++x){var z=p[f+0]+p[f+8],q=p[f+0]-p[f+8],W=(35468*p[f+4]>>16)-tn(p[f+12]),ue=tn(p[f+4])+(35468*p[f+12]>>16);U[P+0]=z+ue,U[P+1]=q+W,U[P+2]=q-W,U[P+3]=z-ue,P+=4,f++}for(x=P=0;4>x;++x)z=(p=U[P+0]+4)+U[P+8],q=p-U[P+8],W=(35468*U[P+4]>>16)-tn(U[P+12]),Bn(v,C,0,0,z+(ue=tn(U[P+4])+(35468*U[P+12]>>16))),Bn(v,C,1,0,q+W),Bn(v,C,2,0,q-W),Bn(v,C,3,0,z-ue),P++,C+=32}function cs(p,f,v,C){var x=p[f+0]+4,P=35468*p[f+4]>>16,U=tn(p[f+4]),z=35468*p[f+1]>>16;Ks(v,C,0,x+U,p=tn(p[f+1]),z),Ks(v,C,1,x+P,p,z),Ks(v,C,2,x-P,p,z),Ks(v,C,3,x-U,p,z)}function Bl(p,f,v,C,x){Qo(p,f,v,C),x&&Qo(p,f+16,v,C+4)}function gn(p,f,v,C){ps(p,f+0,v,C,1),ps(p,f+32,v,C+128,1)}function $c(p,f,v,C){var x;for(p=p[f+0]+4,x=0;4>x;++x)for(f=0;4>f;++f)Bn(v,C,f,x,p)}function Ws(p,f,v,C){p[f+0]&&_n(p,f+0,v,C),p[f+16]&&_n(p,f+16,v,C+4),p[f+32]&&_n(p,f+32,v,C+128),p[f+48]&&_n(p,f+48,v,C+128+4)}function Mt(p,f,v,C){var x,P=i(16);for(x=0;4>x;++x){var U=p[f+0+x]+p[f+12+x],z=p[f+4+x]+p[f+8+x],q=p[f+4+x]-p[f+8+x],W=p[f+0+x]-p[f+12+x];P[0+x]=U+z,P[8+x]=U-z,P[4+x]=W+q,P[12+x]=W-q}for(x=0;4>x;++x)U=(p=P[0+4*x]+3)+P[3+4*x],z=P[1+4*x]+P[2+4*x],q=P[1+4*x]-P[2+4*x],W=p-P[3+4*x],v[C+0]=U+z>>3,v[C+16]=W+q>>3,v[C+32]=U-z>>3,v[C+48]=W-q>>3,C+=64}function $s(p,f,v){var C,x=f-32,P=Ln,U=255-p[x-1];for(C=0;C<v;++C){var z,q=P,W=U+p[f-1];for(z=0;z<v;++z)p[f+z]=q[W+p[x+z]];f+=32}}function da(p,f){$s(p,f,4)}function br(p,f){$s(p,f,8)}function Xs(p,f){$s(p,f,16)}function Qa(p,f){var v;for(v=0;16>v;++v)a(p,f+32*v,p,f-32,16)}function Qi(p,f){var v;for(v=16;0<v;--v)n(p,f,p[f-1],16),f+=32}function zi(p,f,v){var C;for(C=0;16>C;++C)n(f,v+32*C,p,16)}function nt(p,f){var v,C=16;for(v=0;16>v;++v)C+=p[f-1+32*v]+p[f+v-32];zi(C>>5,p,f)}function ot(p,f){var v,C=8;for(v=0;16>v;++v)C+=p[f-1+32*v];zi(C>>4,p,f)}function Gt(p,f){var v,C=8;for(v=0;16>v;++v)C+=p[f+v-32];zi(C>>4,p,f)}function sr(p,f){zi(128,p,f)}function vt(p,f,v){return p+2*f+v+2>>2}function xn(p,f){var v,C=f-32;for(C=new Uint8Array([vt(p[C-1],p[C+0],p[C+1]),vt(p[C+0],p[C+1],p[C+2]),vt(p[C+1],p[C+2],p[C+3]),vt(p[C+2],p[C+3],p[C+4])]),v=0;4>v;++v)a(p,f+32*v,C,0,C.length)}function Xc(p,f){var v=p[f-1],C=p[f-1+32],x=p[f-1+64],P=p[f-1+96];Be(p,f+0,16843009*vt(p[f-1-32],v,C)),Be(p,f+32,16843009*vt(v,C,x)),Be(p,f+64,16843009*vt(C,x,P)),Be(p,f+96,16843009*vt(x,P,P))}function Wn(p,f){var v,C=4;for(v=0;4>v;++v)C+=p[f+v-32]+p[f-1+32*v];for(C>>=3,v=0;4>v;++v)n(p,f+32*v,C,4)}function Nd(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1-32],U=p[f+0-32],z=p[f+1-32],q=p[f+2-32],W=p[f+3-32];p[f+0+96]=vt(C,x,p[f-1+96]),p[f+1+96]=p[f+0+64]=vt(v,C,x),p[f+2+96]=p[f+1+64]=p[f+0+32]=vt(P,v,C),p[f+3+96]=p[f+2+64]=p[f+1+32]=p[f+0+0]=vt(U,P,v),p[f+3+64]=p[f+2+32]=p[f+1+0]=vt(z,U,P),p[f+3+32]=p[f+2+0]=vt(q,z,U),p[f+3+0]=vt(W,q,z)}function kd(p,f){var v=p[f+1-32],C=p[f+2-32],x=p[f+3-32],P=p[f+4-32],U=p[f+5-32],z=p[f+6-32],q=p[f+7-32];p[f+0+0]=vt(p[f+0-32],v,C),p[f+1+0]=p[f+0+32]=vt(v,C,x),p[f+2+0]=p[f+1+32]=p[f+0+64]=vt(C,x,P),p[f+3+0]=p[f+2+32]=p[f+1+64]=p[f+0+96]=vt(x,P,U),p[f+3+32]=p[f+2+64]=p[f+1+96]=vt(P,U,z),p[f+3+64]=p[f+2+96]=vt(U,z,q),p[f+3+96]=vt(z,q,q)}function xl(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1-32],U=p[f+0-32],z=p[f+1-32],q=p[f+2-32],W=p[f+3-32];p[f+0+0]=p[f+1+64]=P+U+1>>1,p[f+1+0]=p[f+2+64]=U+z+1>>1,p[f+2+0]=p[f+3+64]=z+q+1>>1,p[f+3+0]=q+W+1>>1,p[f+0+96]=vt(x,C,v),p[f+0+64]=vt(C,v,P),p[f+0+32]=p[f+1+96]=vt(v,P,U),p[f+1+32]=p[f+2+96]=vt(P,U,z),p[f+2+32]=p[f+3+96]=vt(U,z,q),p[f+3+32]=vt(z,q,W)}function Zc(p,f){var v=p[f+0-32],C=p[f+1-32],x=p[f+2-32],P=p[f+3-32],U=p[f+4-32],z=p[f+5-32],q=p[f+6-32],W=p[f+7-32];p[f+0+0]=v+C+1>>1,p[f+1+0]=p[f+0+64]=C+x+1>>1,p[f+2+0]=p[f+1+64]=x+P+1>>1,p[f+3+0]=p[f+2+64]=P+U+1>>1,p[f+0+32]=vt(v,C,x),p[f+1+32]=p[f+0+96]=vt(C,x,P),p[f+2+32]=p[f+1+96]=vt(x,P,U),p[f+3+32]=p[f+2+96]=vt(P,U,z),p[f+3+64]=vt(U,z,q),p[f+3+96]=vt(z,q,W)}function xv(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1+96];p[f+0+0]=v+C+1>>1,p[f+2+0]=p[f+0+32]=C+x+1>>1,p[f+2+32]=p[f+0+64]=x+P+1>>1,p[f+1+0]=vt(v,C,x),p[f+3+0]=p[f+1+32]=vt(C,x,P),p[f+3+32]=p[f+1+64]=vt(x,P,P),p[f+3+64]=p[f+2+64]=p[f+0+96]=p[f+1+96]=p[f+2+96]=p[f+3+96]=P}function Dv(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1+96],U=p[f-1-32],z=p[f+0-32],q=p[f+1-32],W=p[f+2-32];p[f+0+0]=p[f+2+32]=v+U+1>>1,p[f+0+32]=p[f+2+64]=C+v+1>>1,p[f+0+64]=p[f+2+96]=x+C+1>>1,p[f+0+96]=P+x+1>>1,p[f+3+0]=vt(z,q,W),p[f+2+0]=vt(U,z,q),p[f+1+0]=p[f+3+32]=vt(v,U,z),p[f+1+32]=p[f+3+64]=vt(C,v,U),p[f+1+64]=p[f+3+96]=vt(x,C,v),p[f+1+96]=vt(P,x,C)}function Lv(p,f){var v;for(v=0;8>v;++v)a(p,f+32*v,p,f-32,8)}function Jc(p,f){var v;for(v=0;8>v;++v)n(p,f,p[f-1],8),f+=32}function zo(p,f,v){var C;for(C=0;8>C;++C)n(f,v+32*C,p,8)}function Zs(p,f){var v,C=8;for(v=0;8>v;++v)C+=p[f+v-32]+p[f-1+32*v];zo(C>>4,p,f)}function Mv(p,f){var v,C=4;for(v=0;8>v;++v)C+=p[f+v-32];zo(C>>3,p,f)}function Ho(p,f){var v,C=4;for(v=0;8>v;++v)C+=p[f-1+32*v];zo(C>>3,p,f)}function eA(p,f){zo(128,p,f)}function Dl(p,f,v){var C=p[f-v],x=p[f+0],P=3*(x-C)+Hv[1020+p[f-2*v]-p[f+v]],U=zd[112+(P+4>>3)];p[f-v]=Ln[255+C+zd[112+(P+3>>3)]],p[f+0]=Ln[255+x-U]}function Od(p,f,v,C){var x=p[f+0],P=p[f+v];return ei[255+p[f-2*v]-p[f-v]]>C||ei[255+P-x]>C}function Id(p,f,v,C){return 4*ei[255+p[f-v]-p[f+0]]+ei[255+p[f-2*v]-p[f+v]]<=C}function Rd(p,f,v,C,x){var P=p[f-3*v],U=p[f-2*v],z=p[f-v],q=p[f+0],W=p[f+v],ue=p[f+2*v],Ee=p[f+3*v];return 4*ei[255+z-q]+ei[255+U-W]>C?0:ei[255+p[f-4*v]-P]<=x&&ei[255+P-U]<=x&&ei[255+U-z]<=x&&ei[255+Ee-ue]<=x&&ei[255+ue-W]<=x&&ei[255+W-q]<=x}function Bd(p,f,v,C){var x=2*C+1;for(C=0;16>C;++C)Id(p,f+C,v,x)&&Dl(p,f+C,v)}function Hi(p,f,v,C){var x=2*C+1;for(C=0;16>C;++C)Id(p,f+C*v,1,x)&&Dl(p,f+C*v,1)}function As(p,f,v,C){var x;for(x=3;0<x;--x)Bd(p,f+=4*v,v,C)}function Fv(p,f,v,C){var x;for(x=3;0<x;--x)Hi(p,f+=4,v,C)}function Js(p,f,v,C,x,P,U,z){for(P=2*P+1;0<x--;){if(Rd(p,f,v,P,U))if(Od(p,f,v,z))Dl(p,f,v);else{var q=p,W=f,ue=v,Ee=q[W-2*ue],Se=q[W-ue],he=q[W+0],Le=q[W+ue],Ne=q[W+2*ue],de=27*(xe=Hv[1020+3*(he-Se)+Hv[1020+Ee-Le]])+63>>7,fe=18*xe+63>>7,xe=9*xe+63>>7;q[W-3*ue]=Ln[255+q[W-3*ue]+xe],q[W-2*ue]=Ln[255+Ee+fe],q[W-ue]=Ln[255+Se+de],q[W+0]=Ln[255+he-de],q[W+ue]=Ln[255+Le-fe],q[W+2*ue]=Ln[255+Ne-xe]}f+=C}}function vi(p,f,v,C,x,P,U,z){for(P=2*P+1;0<x--;){if(Rd(p,f,v,P,U))if(Od(p,f,v,z))Dl(p,f,v);else{var q=p,W=f,ue=v,Ee=q[W-ue],Se=q[W+0],he=q[W+ue],Le=zd[112+((Ne=3*(Se-Ee))+4>>3)],Ne=zd[112+(Ne+3>>3)],de=Le+1>>1;q[W-2*ue]=Ln[255+q[W-2*ue]+de],q[W-ue]=Ln[255+Ee+Ne],q[W+0]=Ln[255+Se-Le],q[W+ue]=Ln[255+he-de]}f+=C}}function tA(p,f,v,C,x,P){Js(p,f,v,1,16,C,x,P)}function Go(p,f,v,C,x,P){Js(p,f,1,v,16,C,x,P)}function Pv(p,f,v,C,x,P){var U;for(U=3;0<U;--U)vi(p,f+=4*v,v,1,16,C,x,P)}function Ll(p,f,v,C,x,P){var U;for(U=3;0<U;--U)vi(p,f+=4,1,v,16,C,x,P)}function Uv(p,f,v,C,x,P,U,z){Js(p,f,x,1,8,P,U,z),Js(v,C,x,1,8,P,U,z)}function rA(p,f,v,C,x,P,U,z){Js(p,f,1,x,8,P,U,z),Js(v,C,1,x,8,P,U,z)}function aA(p,f,v,C,x,P,U,z){vi(p,f+4*x,x,1,8,P,U,z),vi(v,C+4*x,x,1,8,P,U,z)}function xd(p,f,v,C,x,P,U,z){vi(p,f+4,1,x,8,P,U,z),vi(v,C+4,1,x,8,P,U,z)}function Ml(){this.ba=new Fr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new te,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nA(){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 iA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Dd(){this.ua=0,this.Wa=new Z,this.vb=new Z,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Q,this.yc=new M}function Qv(){this.xb=this.a=0,this.l=new Ua,this.ca=new Fr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Dd,this.ab=0,this.gc=s(4,iA),this.Oc=0}function Fl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ua,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function qo(p,f,v,C,x,P,U){for(p=p==null?0:p[f+0],f=0;f<U;++f)x[P+f]=p+v[C+f]&255,p=x[P+f]}function sA(p,f,v,C,x,P,U){var z;if(p==null)qo(null,null,v,C,x,P,U);else for(z=0;z<U;++z)x[P+z]=p[f+z]+v[C+z]&255}function eo(p,f,v,C,x,P,U){if(p==null)qo(null,null,v,C,x,P,U);else{var z,q=p[f+0],W=q,ue=q;for(z=0;z<U;++z)W=ue+(q=p[f+z])-W,ue=v[C+z]+(-256&W?0>W?0:255:W)&255,W=q,x[P+z]=ue}}function oA(p,f,v,C){var x=f.width,P=f.o;if(e(p!=null&&f!=null),0>v||0>=C||v+C>P)return null;if(!p.Cc){if(p.ga==null){var U;if(p.ga=new Fl,(U=p.ga==null)||(U=f.width*f.o,e(p.Gb.length==0),p.Gb=i(U),p.Uc=0,p.Gb==null?U=0:(p.mb=p.Gb,p.nb=p.Uc,p.rc=null,U=1),U=!U),!U){U=p.ga;var z=p.Fa,q=p.P,W=p.qc,ue=p.mb,Ee=p.nb,Se=q+1,he=W-1,Le=U.l;if(e(z!=null&&ue!=null&&f!=null),so[0]=null,so[1]=qo,so[2]=sA,so[3]=eo,U.ca=ue,U.tb=Ee,U.c=f.width,U.i=f.height,e(0<U.c&&0<U.i),1>=W)f=0;else if(U.$a=z[q+0]>>0&3,U.Z=z[q+0]>>2&3,U.Lc=z[q+0]>>4&3,q=z[q+0]>>6&3,0>U.$a||1<U.$a||4<=U.Z||1<U.Lc||q)f=0;else if(Le.put=tr,Le.ac=$t,Le.bc=st,Le.ma=U,Le.width=f.width,Le.height=f.height,Le.Da=f.Da,Le.v=f.v,Le.va=f.va,Le.j=f.j,Le.o=f.o,U.$a)e:{e(U.$a==1),f=ya();t:for(;;){if(f==null){f=0;break e}if(e(U!=null),U.mc=f,f.c=U.c,f.i=U.i,f.l=U.l,f.l.ma=U,f.l.width=U.c,f.l.height=U.i,f.a=0,re(f.m,z,Se,he),!Sn(U.c,U.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Xa(f.s)?(U.ic=1,z=f.c*f.i,f.Ta=null,f.Ua=0,f.V=i(z),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(U.ic=0,f=ht(f,U.c)),!f))break t;f=1;break e}U.mc=null,f=0}else f=he>=U.c*U.i;U=!f}if(U)return null;p.ga.Lc!=1?p.Ga=0:C=P-v}e(p.ga!=null),e(v+C<=P);e:{if(f=(z=p.ga).c,P=z.l.o,z.$a==0){if(Se=p.rc,he=p.Vc,Le=p.Fa,q=p.P+1+v*f,W=p.mb,ue=p.nb+v*f,e(q<=p.P+p.qc),z.Z!=0)for(e(so[z.Z]!=null),U=0;U<C;++U)so[z.Z](Se,he,Le,q,W,ue,f),Se=W,he=ue,ue+=f,q+=f;else for(U=0;U<C;++U)a(W,ue,Le,q,f),Se=W,he=ue,ue+=f,q+=f;p.rc=Se,p.Vc=he}else{if(e(z.mc!=null),f=v+C,e((U=z.mc)!=null),e(f<=U.i),U.C>=f)f=1;else if(z.ic||be(),z.ic){z=U.V,Se=U.Ba,he=U.c;var Ne=U.i,de=(Le=1,q=U.$/he,W=U.$%he,ue=U.m,Ee=U.s,U.$),fe=he*Ne,xe=he*f,Ue=Ee.wc,De=de<xe?Tr(Ee,W,q):null;e(de<=fe),e(f<=Ne),e(Xa(Ee));t:for(;;){for(;!ue.h&&de<xe;){if(W&Ue||(De=Tr(Ee,W,q)),e(De!=null),ne(ue),256>(Ne=Pt(De.G[0],De.H[0],ue)))z[Se+de]=Ne,++de,++W>=he&&(W=0,++q<=f&&!(q%16)&&Za(U,q));else{if(!(280>Ne)){Le=0;break t}Ne=St(Ne-256,ue);var pt,at=Pt(De.G[4],De.H[4],ue);if(ne(ue),!(de>=(at=dr(he,at=St(at,ue)))&&fe-de>=Ne)){Le=0;break t}for(pt=0;pt<Ne;++pt)z[Se+de+pt]=z[Se+de+pt-at];for(de+=Ne,W+=Ne;W>=he;)W-=he,++q<=f&&!(q%16)&&Za(U,q);de<xe&&W&Ue&&(De=Tr(Ee,W,q))}e(ue.h==j(ue))}Za(U,q>f?f:q);break t}!Le||ue.h&&de<fe?(Le=0,U.a=ue.h?5:3):U.$=de,f=Le}else f=Ja(U,U.V,U.Ba,U.c,U.i,f,pe);if(!f){C=0;break e}}v+C>=P&&(p.Cc=1),C=1}if(!C)return null;if(p.Cc&&((C=p.ga)!=null&&(C.mc=null),p.ga=null,0<p.Ga))return alert("todo:WebPDequantizeLevels"),null}return p.nb+v*x}function b(p,f,v,C,x,P){for(;0<x--;){var U,z=p,q=f+(v?1:0),W=p,ue=f+(v?0:3);for(U=0;U<C;++U){var Ee=W[ue+4*U];Ee!=255&&(Ee*=32897,z[q+4*U+0]=z[q+4*U+0]*Ee>>23,z[q+4*U+1]=z[q+4*U+1]*Ee>>23,z[q+4*U+2]=z[q+4*U+2]*Ee>>23)}f+=P}}function D(p,f,v,C,x){for(;0<C--;){var P;for(P=0;P<v;++P){var U=p[f+2*P+0],z=15&(W=p[f+2*P+1]),q=4369*z,W=(240&W|W>>4)*q>>16;p[f+2*P+0]=(240&U|U>>4)*q>>16&240|(15&U|U<<4)*q>>16>>4&15,p[f+2*P+1]=240&W|z}f+=x}}function X(p,f,v,C,x,P,U,z){var q,W,ue=255;for(W=0;W<x;++W){for(q=0;q<C;++q){var Ee=p[f+q];P[U+4*q]=Ee,ue&=Ee}f+=v,U+=z}return ue!=255}function le(p,f,v,C,x){var P;for(P=0;P<x;++P)v[C+P]=p[f+P]>>8}function be(){Jn=b,xr=D,Dr=X,ga=le}function ke(p,f,v){L[p]=function(C,x,P,U,z,q,W,ue,Ee,Se,he,Le,Ne,de,fe,xe,Ue){var De,pt=Ue-1>>1,at=z[q+0]|W[ue+0]<<16,Rt=Ee[Se+0]|he[Le+0]<<16;e(C!=null);var it=3*at+Rt+131074>>2;for(f(C[x+0],255&it,it>>16,Ne,de),P!=null&&(it=3*Rt+at+131074>>2,f(P[U+0],255&it,it>>16,fe,xe)),De=1;De<=pt;++De){var gr=z[q+De]|W[ue+De]<<16,yr=Ee[Se+De]|he[Le+De]<<16,or=at+gr+Rt+yr+524296,er=or+2*(gr+Rt)>>3;it=er+at>>1,at=(or=or+2*(at+yr)>>3)+gr>>1,f(C[x+2*De-1],255&it,it>>16,Ne,de+(2*De-1)*v),f(C[x+2*De-0],255&at,at>>16,Ne,de+(2*De-0)*v),P!=null&&(it=or+Rt>>1,at=er+yr>>1,f(P[U+2*De-1],255&it,it>>16,fe,xe+(2*De-1)*v),f(P[U+2*De+0],255&at,at>>16,fe,xe+(2*De+0)*v)),at=gr,Rt=yr}1&Ue||(it=3*at+Rt+131074>>2,f(C[x+Ue-1],255&it,it>>16,Ne,de+(Ue-1)*v),P!=null&&(it=3*Rt+at+131074>>2,f(P[U+Ue-1],255&it,it>>16,fe,xe+(Ue-1)*v)))}}function Ve(){ti[Hd]=Ihe,ti[Gd]=U4,ti[D4]=Rhe,ti[qd]=Q4,ti[Vd]=z4,ti[Gv]=H4,ti[L4]=Bhe,ti[qv]=U4,ti[Vv]=Q4,ti[Yd]=z4,ti[Yv]=H4}function ut(p){return p&-16384?0>p?0:255:p>>xhe}function Nt(p,f){return ut((19077*p>>8)+(26149*f>>8)-14234)}function qt(p,f,v){return ut((19077*p>>8)-(6419*f>>8)-(13320*v>>8)+8708)}function Qt(p,f){return ut((19077*p>>8)+(33050*f>>8)-17685)}function nr(p,f,v,C,x){C[x+0]=Nt(p,v),C[x+1]=qt(p,f,v),C[x+2]=Qt(p,f)}function jr(p,f,v,C,x){C[x+0]=Qt(p,f),C[x+1]=qt(p,f,v),C[x+2]=Nt(p,v)}function ta(p,f,v,C,x){var P=qt(p,f,v);f=P<<3&224|Qt(p,f)>>3,C[x+0]=248&Nt(p,v)|P>>5,C[x+1]=f}function Ea(p,f,v,C,x){var P=240&Qt(p,f)|15;C[x+0]=240&Nt(p,v)|qt(p,f,v)>>4,C[x+1]=P}function rn(p,f,v,C,x){C[x+0]=255,nr(p,f,v,C,x+1)}function Ba(p,f,v,C,x){jr(p,f,v,C,x),C[x+3]=255}function Ei(p,f,v,C,x){nr(p,f,v,C,x),C[x+3]=255}function Dn(p,f){return 0>p?0:p>f?f:p}function Gi(p,f,v){L[p]=function(C,x,P,U,z,q,W,ue,Ee){for(var Se=ue+(-2&Ee)*v;ue!=Se;)f(C[x+0],P[U+0],z[q+0],W,ue),f(C[x+1],P[U+0],z[q+0],W,ue+v),x+=2,++U,++q,ue+=2*v;1&Ee&&f(C[x+0],P[U+0],z[q+0],W,ue)}}function Ld(p,f,v){return v==0?p==0?f==0?6:5:f==0?4:0:v}function lA(p,f,v,C,x){switch(p>>>30){case 3:ps(f,v,C,x,0);break;case 2:pa(f,v,C,x);break;case 1:_n(f,v,C,x)}}function cA(p,f){var v,C,x=f.M,P=f.Nb,U=p.oc,z=p.pc+40,q=p.oc,W=p.pc+584,ue=p.oc,Ee=p.pc+600;for(v=0;16>v;++v)U[z+32*v-1]=129;for(v=0;8>v;++v)q[W+32*v-1]=129,ue[Ee+32*v-1]=129;for(0<x?U[z-1-32]=q[W-1-32]=ue[Ee-1-32]=129:(n(U,z-32-1,127,21),n(q,W-32-1,127,9),n(ue,Ee-32-1,127,9)),C=0;C<p.za;++C){var Se=f.ya[f.aa+C];if(0<C){for(v=-1;16>v;++v)a(U,z+32*v-4,U,z+32*v+12,4);for(v=-1;8>v;++v)a(q,W+32*v-4,q,W+32*v+4,4),a(ue,Ee+32*v-4,ue,Ee+32*v+4,4)}var he=p.Gd,Le=p.Hd+C,Ne=Se.ad,de=Se.Hc;if(0<x&&(a(U,z-32,he[Le].y,0,16),a(q,W-32,he[Le].f,0,8),a(ue,Ee-32,he[Le].ea,0,8)),Se.Za){var fe=U,xe=z-32+16;for(0<x&&(C>=p.za-1?n(fe,xe,he[Le].y[15],4):a(fe,xe,he[Le+1].y,0,4)),v=0;4>v;v++)fe[xe+128+v]=fe[xe+256+v]=fe[xe+384+v]=fe[xe+0+v];for(v=0;16>v;++v,de<<=2)fe=U,xe=z+q4[v],Si[Se.Ob[v]](fe,xe),lA(de,Ne,16*+v,fe,xe)}else if(fe=Ld(C,x,Se.Ob[0]),io[fe](U,z),de!=0)for(v=0;16>v;++v,de<<=2)lA(de,Ne,16*+v,U,z+q4[v]);for(v=Se.Gc,fe=Ld(C,x,Se.Dd),fs[fe](q,W),fs[fe](ue,Ee),de=Ne,fe=q,xe=W,255&(Se=v>>0)&&(170&Se?gA(de,256,fe,xe):Xn(de,256,fe,xe)),Se=ue,de=Ee,255&(v>>=8)&&(170&v?gA(Ne,320,Se,de):Xn(Ne,320,Se,de)),x<p.Ub-1&&(a(he[Le].y,0,U,z+480,16),a(he[Le].f,0,q,W+224,8),a(he[Le].ea,0,ue,Ee+224,8)),v=8*P*p.B,he=p.sa,Le=p.ta+16*C+16*P*p.R,Ne=p.qa,Se=p.ra+8*C+v,de=p.Ha,fe=p.Ia+8*C+v,v=0;16>v;++v)a(he,Le+v*p.R,U,z+32*v,16);for(v=0;8>v;++v)a(Ne,Se+v*p.B,q,W+32*v,8),a(de,fe+v*p.B,ue,Ee+32*v,8)}}function Pl(p,f,v,C,x,P,U,z,q){var W=[0],ue=[0],Ee=0,Se=q!=null?q.kd:0,he=q??new nA;if(p==null||12>v)return 7;he.data=p,he.w=f,he.ha=v,f=[f],v=[v],he.gb=[he.gb];e:{var Le=f,Ne=v,de=he.gb;if(e(p!=null),e(Ne!=null),e(de!=null),de[0]=0,12<=Ne[0]&&!t(p,Le[0],"RIFF")){if(t(p,Le[0]+8,"WEBP")){de=3;break e}var fe=He(p,Le[0]+4);if(12>fe||4294967286<fe){de=3;break e}if(Se&&fe>Ne[0]-8){de=7;break e}de[0]=fe,Le[0]+=12,Ne[0]-=12}de=0}if(de!=0)return de;for(fe=0<he.gb[0],v=v[0];;){e:{var xe=p;Ne=f,de=v;var Ue=W,De=ue,pt=Le=[0];if((it=Ee=[Ee])[0]=0,8>de[0])de=7;else{if(!t(xe,Ne[0],"VP8X")){if(He(xe,Ne[0]+4)!=10){de=3;break e}if(18>de[0]){de=7;break e}var at=He(xe,Ne[0]+8),Rt=1+ze(xe,Ne[0]+12);if(2147483648<=Rt*(xe=1+ze(xe,Ne[0]+15))){de=3;break e}pt!=null&&(pt[0]=at),Ue!=null&&(Ue[0]=Rt),De!=null&&(De[0]=xe),Ne[0]+=18,de[0]-=18,it[0]=1}de=0}}if(Ee=Ee[0],Le=Le[0],de!=0)return de;if(Ne=!!(2&Le),!fe&&Ee)return 3;if(P!=null&&(P[0]=!!(16&Le)),U!=null&&(U[0]=Ne),z!=null&&(z[0]=0),U=W[0],Le=ue[0],Ee&&Ne&&q==null){de=0;break}if(4>v){de=7;break}if(fe&&Ee||!fe&&!Ee&&!t(p,f[0],"ALPH")){v=[v],he.na=[he.na],he.P=[he.P],he.Sa=[he.Sa];e:{at=p,de=f,fe=v;var it=he.gb;Ue=he.na,De=he.P,pt=he.Sa,Rt=22,e(at!=null),e(fe!=null),xe=de[0];var gr=fe[0];for(e(Ue!=null),e(pt!=null),Ue[0]=null,De[0]=null,pt[0]=0;;){if(de[0]=xe,fe[0]=gr,8>gr){de=7;break e}var yr=He(at,xe+4);if(4294967286<yr){de=3;break e}var or=8+yr+1&-2;if(Rt+=or,0<it&&Rt>it){de=3;break e}if(!t(at,xe,"VP8 ")||!t(at,xe,"VP8L")){de=0;break e}if(gr[0]<or){de=7;break e}t(at,xe,"ALPH")||(Ue[0]=at,De[0]=xe+8,pt[0]=yr),xe+=or,gr-=or}}if(v=v[0],he.na=he.na[0],he.P=he.P[0],he.Sa=he.Sa[0],de!=0)break}v=[v],he.Ja=[he.Ja],he.xa=[he.xa];e:if(it=p,de=f,fe=v,Ue=he.gb[0],De=he.Ja,pt=he.xa,at=de[0],xe=!t(it,at,"VP8 "),Rt=!t(it,at,"VP8L"),e(it!=null),e(fe!=null),e(De!=null),e(pt!=null),8>fe[0])de=7;else{if(xe||Rt){if(it=He(it,at+4),12<=Ue&&it>Ue-12){de=3;break e}if(Se&&it>fe[0]-8){de=7;break e}De[0]=it,de[0]+=8,fe[0]-=8,pt[0]=Rt}else pt[0]=5<=fe[0]&&it[at+0]==47&&!(it[at+4]>>5),De[0]=fe[0];de=0}if(v=v[0],he.Ja=he.Ja[0],he.xa=he.xa[0],f=f[0],de!=0)break;if(4294967286<he.Ja)return 3;if(z==null||Ne||(z[0]=he.xa?2:1),U=[U],Le=[Le],he.xa){if(5>v){de=7;break}z=U,Se=Le,Ne=P,p==null||5>v?p=0:5<=v&&p[f+0]==47&&!(p[f+4]>>5)?(fe=[0],it=[0],Ue=[0],re(De=new B,p,f,v),Re(De,fe,it,Ue)?(z!=null&&(z[0]=fe[0]),Se!=null&&(Se[0]=it[0]),Ne!=null&&(Ne[0]=Ue[0]),p=1):p=0):p=0}else{if(10>v){de=7;break}z=Le,p==null||10>v||!Ra(p,f+3,v-3)?p=0:(Se=p[f+0]|p[f+1]<<8|p[f+2]<<16,Ne=16383&(p[f+7]<<8|p[f+6]),p=16383&(p[f+9]<<8|p[f+8]),1&Se||3<(Se>>1&7)||!(Se>>4&1)||Se>>5>=he.Ja||!Ne||!p?p=0:(U&&(U[0]=Ne),z&&(z[0]=p),p=1))}if(!p||(U=U[0],Le=Le[0],Ee&&(W[0]!=U||ue[0]!=Le)))return 3;q!=null&&(q[0]=he,q.offset=f-q.w,e(4294967286>f-q.w),e(q.offset==q.ha-v));break}return de==0||de==7&&Ee&&q==null?(P!=null&&(P[0]|=he.na!=null&&0<he.na.length),C!=null&&(C[0]=U),x!=null&&(x[0]=Le),0):de}function AA(p,f,v){var C=f.width,x=f.height,P=0,U=0,z=C,q=x;if(f.Da=p!=null&&0<p.Da,f.Da&&(z=p.cd,q=p.bd,P=p.v,U=p.j,11>v||(P&=-2,U&=-2),0>P||0>U||0>=z||0>=q||P+z>C||U+q>x))return 0;if(f.v=P,f.j=U,f.va=P+z,f.o=U+q,f.U=z,f.T=q,f.da=p!=null&&0<p.da,f.da){if(!_t(z,q,v=[p.ib],P=[p.hb]))return 0;f.ib=v[0],f.hb=P[0]}return f.ob=p!=null&&p.ob,f.Kb=p==null||!p.Sd,f.da&&(f.ob=f.ib<3*C/4&&f.hb<3*x/4,f.Kb=0),1}function uA(p){if(p==null)return 2;if(11>p.S){var f=p.f.RGBA;f.fb+=(p.height-1)*f.A,f.A=-f.A}else f=p.f.kb,p=p.height,f.O+=(p-1)*f.fa,f.fa=-f.fa,f.N+=(p-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(p-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(p-1)*f.lb,f.lb=-f.lb);return 0}function Ul(p,f,v,C){if(C==null||0>=p||0>=f)return 2;if(v!=null){if(v.Da){var x=v.cd,P=v.bd,U=-2&v.v,z=-2&v.j;if(0>U||0>z||0>=x||0>=P||U+x>p||z+P>f)return 2;p=x,f=P}if(v.da){if(!_t(p,f,x=[v.ib],P=[v.hb]))return 2;p=x[0],f=P[0]}}C.width=p,C.height=f;e:{var q=C.width,W=C.height;if(p=C.S,0>=q||0>=W||!(p>=Hd&&13>p))p=2;else{if(0>=C.Rd&&C.sd==null){U=P=x=f=0;var ue=(z=q*V4[p])*W;if(11>p||(P=(W+1)/2*(f=(q+1)/2),p==12&&(U=(x=q)*W)),(W=i(ue+2*P+U))==null){p=1;break e}C.sd=W,11>p?((q=C.f.RGBA).eb=W,q.fb=0,q.A=z,q.size=ue):((q=C.f.kb).y=W,q.O=0,q.fa=z,q.Fd=ue,q.f=W,q.N=0+ue,q.Ab=f,q.Cd=P,q.ea=W,q.W=0+ue+P,q.Db=f,q.Ed=P,p==12&&(q.F=W,q.J=0+ue+2*P),q.Tc=U,q.lb=x)}if(f=1,x=C.S,P=C.width,U=C.height,x>=Hd&&13>x)if(11>x)p=C.f.RGBA,f&=(z=Math.abs(p.A))*(U-1)+P<=p.size,f&=z>=P*V4[x],f&=p.eb!=null;else{p=C.f.kb,z=(P+1)/2,ue=(U+1)/2,q=Math.abs(p.fa),W=Math.abs(p.Ab);var Ee=Math.abs(p.Db),Se=Math.abs(p.lb),he=Se*(U-1)+P;f&=q*(U-1)+P<=p.Fd,f&=W*(ue-1)+z<=p.Cd,f=(f&=Ee*(ue-1)+z<=p.Ed)&q>=P&W>=z&Ee>=z,f&=p.y!=null,f&=p.f!=null,f&=p.ea!=null,x==12&&(f&=Se>=P,f&=he<=p.Tc,f&=p.F!=null)}else f=0;p=f?0:2}}return p!=0||v!=null&&v.fd&&(p=uA(C)),p}var za=64,Ql=[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],zl=24,Hl=32,dA=8,wn=[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];Ye("Predictor0","PredictorAdd0"),L.Predictor0=function(){return 4278190080},L.Predictor1=function(p){return p},L.Predictor2=function(p,f,v){return f[v+0]},L.Predictor3=function(p,f,v){return f[v+1]},L.Predictor4=function(p,f,v){return f[v-1]},L.Predictor5=function(p,f,v){return We(We(p,f[v+1]),f[v+0])},L.Predictor6=function(p,f,v){return We(p,f[v-1])},L.Predictor7=function(p,f,v){return We(p,f[v+0])},L.Predictor8=function(p,f,v){return We(f[v-1],f[v+0])},L.Predictor9=function(p,f,v){return We(f[v+0],f[v+1])},L.Predictor10=function(p,f,v){return We(We(p,f[v-1]),We(f[v+0],f[v+1]))},L.Predictor11=function(p,f,v){var C=f[v+0];return 0>=$e(C>>24&255,p>>24&255,(f=f[v-1])>>24&255)+$e(C>>16&255,p>>16&255,f>>16&255)+$e(C>>8&255,p>>8&255,f>>8&255)+$e(255&C,255&p,255&f)?C:p},L.Predictor12=function(p,f,v){var C=f[v+0];return(Te((p>>24&255)+(C>>24&255)-((f=f[v-1])>>24&255))<<24|Te((p>>16&255)+(C>>16&255)-(f>>16&255))<<16|Te((p>>8&255)+(C>>8&255)-(f>>8&255))<<8|Te((255&p)+(255&C)-(255&f)))>>>0},L.Predictor13=function(p,f,v){var C=f[v-1];return(Me((p=We(p,f[v+0]))>>24&255,C>>24&255)<<24|Me(p>>16&255,C>>16&255)<<16|Me(p>>8&255,C>>8&255)<<8|Me(p>>0&255,C>>0&255))>>>0};var zv=L.PredictorAdd0;L.PredictorAdd1=Xe,Ye("Predictor2","PredictorAdd2"),Ye("Predictor3","PredictorAdd3"),Ye("Predictor4","PredictorAdd4"),Ye("Predictor5","PredictorAdd5"),Ye("Predictor6","PredictorAdd6"),Ye("Predictor7","PredictorAdd7"),Ye("Predictor8","PredictorAdd8"),Ye("Predictor9","PredictorAdd9"),Ye("Predictor10","PredictorAdd10"),Ye("Predictor11","PredictorAdd11"),Ye("Predictor12","PredictorAdd12"),Ye("Predictor13","PredictorAdd13");var pA=L.PredictorAdd2;wt("ColorIndexInverseTransform","MapARGB","32b",function(p){return p>>8&255},function(p){return p}),wt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(p){return p},function(p){return p>>8&255});var Md,$n=L.ColorIndexInverseTransform,Gl=L.MapARGB,Fd=L.VP8LColorIndexInverseTransformAlpha,Pd=L.MapAlpha,to=L.VP8LPredictorsAdd=[];to.length=16,(L.VP8LPredictors=[]).length=16,(L.VP8LPredictorsAdd_C=[]).length=16,(L.VP8LPredictors_C=[]).length=16;var Vo,Cn,fn,ro,us,ds,ql,ps,pa,gA,_n,Xn,Vl,Ud,fA,Yo,jo,ao,Ko,Yl,Wo,no,_A,Zn,Jn,xr,Dr,ga,Na=i(511),gs=i(2041),mA=i(225),jl=i(767),Qd=0,Hv=gs,zd=mA,Ln=jl,ei=Na,Hd=0,Gd=1,D4=2,qd=3,Vd=4,Gv=5,L4=6,qv=7,Vv=8,Yd=9,Yv=10,_he=[2,3,7],mhe=[3,3,11],M4=[280,256,256,256,40],hhe=[0,1,1,1,0],bhe=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yhe=[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],vhe=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ehe=8,jv=[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],Kv=[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],hA=null,She=[[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]],whe=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],F4=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Che=[[[[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]]]],The=[[[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]]],Nhe=[[[[255,255,255,255,255,255,255,255,255,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]]]],khe=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],io=[],Si=[],fs=[],Ohe=1,P4=2,so=[],ti=[];ke("UpsampleRgbLinePair",nr,3),ke("UpsampleBgrLinePair",jr,3),ke("UpsampleRgbaLinePair",Ei,4),ke("UpsampleBgraLinePair",Ba,4),ke("UpsampleArgbLinePair",rn,4),ke("UpsampleRgba4444LinePair",Ea,2),ke("UpsampleRgb565LinePair",ta,2);var Ihe=L.UpsampleRgbLinePair,Rhe=L.UpsampleBgrLinePair,U4=L.UpsampleRgbaLinePair,Q4=L.UpsampleBgraLinePair,z4=L.UpsampleArgbLinePair,H4=L.UpsampleRgba4444LinePair,Bhe=L.UpsampleRgb565LinePair,jd=16,Kd=1<<jd-1,bA=-227,Wv=482,xhe=6,G4=0,Dhe=i(256),Lhe=i(256),Mhe=i(256),Fhe=i(256),Phe=i(Wv-bA),Uhe=i(Wv-bA);Gi("YuvToRgbRow",nr,3),Gi("YuvToBgrRow",jr,3),Gi("YuvToRgbaRow",Ei,4),Gi("YuvToBgraRow",Ba,4),Gi("YuvToArgbRow",rn,4),Gi("YuvToRgba4444Row",Ea,2),Gi("YuvToRgb565Row",ta,2);var q4=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Wd=[0,2,8],Qhe=[8,7,6,4,4,2,2,2,1,1,1,1],zhe=1;this.WebPDecodeRGBA=function(p,f,v,C,x){var P=Gd,U=new Ml,z=new Fr;U.ba=z,z.S=P,z.width=[z.width],z.height=[z.height];var q=z.width,W=z.height,ue=new Ht;if(ue==null||p==null)var Ee=2;else e(ue!=null),Ee=Pl(p,f,v,ue.width,ue.height,ue.Pd,ue.Qd,ue.format,null);if(Ee!=0?q=0:(q!=null&&(q[0]=ue.width[0]),W!=null&&(W[0]=ue.height[0]),q=1),q){z.width=z.width[0],z.height=z.height[0],C!=null&&(C[0]=z.width),x!=null&&(x[0]=z.height);e:{if(C=new Ua,(x=new nA).data=p,x.w=f,x.ha=v,x.kd=1,f=[0],e(x!=null),((p=Pl(x.data,x.w,x.ha,null,null,null,f,null,x))==0||p==7)&&f[0]&&(p=4),(f=p)==0){if(e(U!=null),C.data=x.data,C.w=x.w+x.offset,C.ha=x.ha-x.offset,C.put=tr,C.ac=$t,C.bc=st,C.ma=U,x.xa){if((p=ya())==null){U=1;break e}if(function(Se,he){var Le=[0],Ne=[0],de=[0];t:for(;;){if(Se==null)return 0;if(he==null)return Se.a=2,0;if(Se.l=he,Se.a=0,re(Se.m,he.data,he.w,he.ha),!Re(Se.m,Le,Ne,de)){Se.a=3;break t}if(Se.xb=P4,he.width=Le[0],he.height=Ne[0],!Sn(Le[0],Ne[0],1,Se,null))break t;return 1}return e(Se.a!=0),0}(p,C)){if(C=(f=Ul(C.width,C.height,U.Oa,U.ba))==0){t:{C=p;r:for(;;){if(C==null){C=0;break t}if(e(C.s.yc!=null),e(C.s.Ya!=null),e(0<C.s.Wb),e((v=C.l)!=null),e((x=v.ma)!=null),C.xb!=0){if(C.ca=x.ba,C.tb=x.tb,e(C.ca!=null),!AA(x.Oa,v,qd)){C.a=2;break r}if(!ht(C,v.width)||v.da)break r;if((v.da||Wt(C.ca.S))&&be(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&be()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!rt(C.s.vb,C.s.Wa.Xa)){C.a=1;break r}C.xb=0}if(!Ja(C,C.V,C.Ba,C.c,C.i,v.o,Yn))break r;x.Dc=C.Ma,C=1;break t}e(C.a!=0),C=0}C=!C}C&&(f=p.a)}else f=p.a}else{if((p=new Kn)==null){U=1;break e}if(p.Fa=x.na,p.P=x.P,p.qc=x.Sa,pn(p,C)){if((f=Ul(C.width,C.height,U.Oa,U.ba))==0){if(p.Aa=0,v=U.Oa,e((x=p)!=null),v!=null){if(0<(q=0>(q=v.Md)?0:100<q?255:255*q/100)){for(W=ue=0;4>W;++W)12>(Ee=x.pb[W]).lc&&(Ee.ia=q*Qhe[0>Ee.lc?0:Ee.lc]>>3),ue|=Ee.ia;ue&&(alert("todo:VP8InitRandom"),x.ia=1)}x.Ga=v.Id,100<x.Ga?x.Ga=100:0>x.Ga&&(x.Ga=0)}Rl(p,C)||(f=p.a)}}else f=p.a}f==0&&U.Oa!=null&&U.Oa.fd&&(f=uA(U.ba))}U=f}P=U!=0?null:11>P?z.f.RGBA.eb:z.f.kb.y}else P=null;return P};var V4=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(L,Y){for(var K="",I=0;I<4;I++)K+=String.fromCharCode(L[Y++]);return K}function A(L,Y){return(L[Y+0]<<0|L[Y+1]<<8|L[Y+2]<<16)>>>0}function d(L,Y){return(L[Y+0]<<0|L[Y+1]<<8|L[Y+2]<<16|L[Y+3]<<24)>>>0}new l;var u=[0],g=[0],m=[],_=new l,E=r,y=function(L,Y){var K={},I=0,M=!1,V=0,Q=0;if(K.frames=[],!function(G,j,$,ne){for(var ce=0;ce<ne;ce++)if(G[j+ce]!=$.charCodeAt(ce))return!0;return!1}(L,Y,"RIFF",4)){for(d(L,Y+=4),Y+=8;Y<L.length;){var ee=c(L,Y),oe=d(L,Y+=4);Y+=4;var ie=oe+(1&oe);switch(ee){case"VP8 ":case"VP8L":K.frames[I]===void 0&&(K.frames[I]={}),(Ae=K.frames[I]).src_off=M?Q:Y-8,Ae.src_size=V+oe+8,I++,M&&(M=!1,V=0,Q=0);break;case"VP8X":(Ae=K.header={}).feature_flags=L[Y];var re=Y+4;Ae.canvas_width=1+A(L,re),re+=3,Ae.canvas_height=1+A(L,re),re+=3;break;case"ALPH":M=!0,V=ie+8,Q=Y-8;break;case"ANIM":(Ae=K.header).bgcolor=d(L,Y),re=Y+4,Ae.loop_count=(ye=L)[(B=re)+0]<<0|ye[B+1]<<8,re+=2;break;case"ANMF":var se,Ae;(Ae=K.frames[I]={}).offset_x=2*A(L,Y),Y+=3,Ae.offset_y=2*A(L,Y),Y+=3,Ae.width=1+A(L,Y),Y+=3,Ae.height=1+A(L,Y),Y+=3,Ae.duration=A(L,Y),Y+=3,se=L[Y++],Ae.dispose=1&se,Ae.blend=se>>1&1}ee!="ANMF"&&(Y+=ie)}var ye,B;return K}}(E,0);y.response=E,y.rgbaoutput=!0,y.dataurl=!1;var w=y.header?y.header:null,N=y.frames?y.frames:null;if(w){w.loop_counter=w.loop_count,u=[w.canvas_height],g=[w.canvas_width];for(var R=0;R<N.length&&N[R].blend!=0;R++);}var k=N[0],h=_.WebPDecodeRGBA(E,k.src_off,k.src_size,g,u);k.rgba=h,k.imgwidth=g[0],k.imgheight=u[0];for(var O=0;O<g[0]*u[0]*4;O++)m[O]=h[O];return this.width=g,this.height=u,this.data=m,this}(function(r){var e=function(){return typeof Gh=="function"},t=function(u,g,m,_){var E=4,y=s;switch(_){case r.image_compression.FAST:E=1,y=i;break;case r.image_compression.MEDIUM:E=6,y=o;break;case r.image_compression.SLOW:E=9,y=l}u=a(u,g,m,y);var w=Gh(u,{level:E});return r.__addimage__.arrayBufferToBinaryString(w)},a=function(u,g,m,_){for(var E,y,w,N=u.length/g,R=new Uint8Array(u.length+N),k=A(),h=0;h<N;h+=1){if(w=h*g,E=u.subarray(w,w+g),_)R.set(_(E,m,y),w+h);else{for(var O,L=k.length,Y=[];O<L;O+=1)Y[O]=k[O](E,m,y);var K=d(Y.concat());R.set(Y[K],w+h)}y=E}return R},n=function(u){var g=Array.apply([],u);return g.unshift(0),g},i=function(u,g){var m,_=[],E=u.length;_[0]=1;for(var y=0;y<E;y+=1)m=u[y-g]||0,_[y+1]=u[y]-m+256&255;return _},s=function(u,g,m){var _,E=[],y=u.length;E[0]=2;for(var w=0;w<y;w+=1)_=m&&m[w]||0,E[w+1]=u[w]-_+256&255;return E},o=function(u,g,m){var _,E,y=[],w=u.length;y[0]=3;for(var N=0;N<w;N+=1)_=u[N-g]||0,E=m&&m[N]||0,y[N+1]=u[N]+256-(_+E>>>1)&255;return y},l=function(u,g,m){var _,E,y,w,N=[],R=u.length;N[0]=4;for(var k=0;k<R;k+=1)_=u[k-g]||0,E=m&&m[k]||0,y=m&&m[k-g]||0,w=c(_,E,y),N[k+1]=u[k]-w+256&255;return N},c=function(u,g,m){if(u===g&&g===m)return u;var _=Math.abs(g-m),E=Math.abs(u-m),y=Math.abs(u+g-m-m);return _<=E&&_<=y?u:E<=y?g:m},A=function(){return[n,i,s,o,l]},d=function(u){var g=u.map(function(m){return m.reduce(function(_,E){return _+Math.abs(E)},0)});return g.indexOf(Math.min.apply(null,g))};r.processPNG=function(u,g,m,_){var E,y,w,N,R,k,h,O,L,Y,K,I,M,V,Q,ee=this.decode.FLATE_DECODE,oe="";if(this.__addimage__.isArrayBuffer(u)&&(u=new Uint8Array(u)),this.__addimage__.isArrayBufferView(u)){if(u=(w=new bfe(u)).imgData,y=w.bits,E=w.colorSpace,R=w.colors,[4,6].indexOf(w.colorType)!==-1){if(w.bits===8){L=(O=w.pixelBitlength==32?new Uint32Array(w.decodePixels().buffer):w.pixelBitlength==16?new Uint16Array(w.decodePixels().buffer):new Uint8Array(w.decodePixels().buffer)).length,K=new Uint8Array(L*w.colors),Y=new Uint8Array(L);var ie,re=w.pixelBitlength-w.bits;for(V=0,Q=0;V<L;V++){for(M=O[V],ie=0;ie<re;)K[Q++]=M>>>ie&255,ie+=w.bits;Y[V]=M>>>ie&255}}if(w.bits===16){L=(O=new Uint32Array(w.decodePixels().buffer)).length,K=new Uint8Array(L*(32/w.pixelBitlength)*w.colors),Y=new Uint8Array(L*(32/w.pixelBitlength)),I=w.colors>1,V=0,Q=0;for(var se=0;V<L;)M=O[V++],K[Q++]=M>>>0&255,I&&(K[Q++]=M>>>16&255,M=O[V++],K[Q++]=M>>>0&255),Y[se++]=M>>>16&255;y=8}_!==r.image_compression.NONE&&e()?(u=t(K,w.width*w.colors,w.colors,_),h=t(Y,w.width,1,_)):(u=K,h=Y,ee=void 0)}if(w.colorType===3&&(E=this.color_spaces.INDEXED,k=w.palette,w.transparency.indexed)){var Ae=w.transparency.indexed,ye=0;for(V=0,L=Ae.length;V<L;++V)ye+=Ae[V];if((ye/=255)===L-1&&Ae.indexOf(0)!==-1)N=[Ae.indexOf(0)];else if(ye!==L){for(O=w.decodePixels(),Y=new Uint8Array(O.length),V=0,L=O.length;V<L;V++)Y[V]=Ae[O[V]];h=t(Y,w.width,1)}}var B=function(G){var j;switch(G){case r.image_compression.FAST:j=11;break;case r.image_compression.MEDIUM:j=13;break;case r.image_compression.SLOW:j=14;break;default:j=12}return j}(_);return ee===this.decode.FLATE_DECODE&&(oe="/Predictor "+B+" "),oe+="/Colors "+R+" /BitsPerComponent "+y+" /Columns "+w.width,(this.__addimage__.isArrayBuffer(u)||this.__addimage__.isArrayBufferView(u))&&(u=this.__addimage__.arrayBufferToBinaryString(u)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:m,data:u,index:g,filter:ee,decodeParameters:oe,transparency:N,palette:k,sMask:h,predictor:B,width:w.width,height:w.height,bitsPerComponent:y,colorSpace:E}}}})(Bt.API),function(r){r.processGIF89A=function(e,t,a,n){var i=new yfe(e),s=i.width,o=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:s,height:o},A=new r0(100).encode(c,100);return r.processJPEG.call(this,A,t,a,n)},r.processGIF87A=r.processGIF89A}(Bt.API),di.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var e=0;e<r;e++){var t=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:a,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},di.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[r]()}catch(t){Cr.log("bit decode error:"+t)}},di.prototype.bit1=function(){var r,e=Math.ceil(this.width/8),t=e%4;for(r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=a*this.width*4+8*n*4,o=0;o<8&&8*n+o<this.width;o++){var l=this.palette[i>>7-o&1];this.data[s+4*o]=l.blue,this.data[s+4*o+1]=l.green,this.data[s+4*o+2]=l.red,this.data[s+4*o+3]=255}t!==0&&(this.pos+=4-t)}},di.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,n=0;n<r;n++){var i=this.datav.getUint8(this.pos++,!0),s=a*this.width*4+2*n*4,o=i>>4,l=15&i,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*n+1>=this.width)break;c=this.palette[l],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},di.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*a;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}r!==0&&(this.pos+=4-r)}},di.prototype.bit15=function(){for(var r=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&e)/e*255|0,o=(i>>5&e)/e*255|0,l=(i>>10&e)/e*255|0,c=i>>15?255:0,A=a*this.width*4+4*n;this.data[A]=l,this.data[A+1]=o,this.data[A+2]=s,this.data[A+3]=c}this.pos+=r}},di.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var n=this.bottom_up?a:this.height-1-a,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,l=(s>>5&t)/t*255|0,c=(s>>11)/e*255|0,A=n*this.width*4+4*i;this.data[A]=c,this.data[A+1]=l,this.data[A+2]=o,this.data[A+3]=255}this.pos+=r}},di.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var a=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=a,this.data[s+3]=255}this.pos+=this.width%4}},di.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var a=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),o=e*this.width*4+4*t;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=a,this.data[o+3]=s}},di.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,t,a,n){var i=new di(e,!1),s=i.width,o=i.height,l={data:i.getData(),width:s,height:o},c=new r0(100).encode(l,100);return r.processJPEG.call(this,c,t,a,n)}}(Bt.API),dk.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,t,a,n){var i=new dk(e),s=i.width,o=i.height,l={data:i.getData(),width:s,height:o},c=new r0(100).encode(l,100);return r.processJPEG.call(this,c,t,a,n)}}(Bt.API),Bt.API.processRGBA=function(r,e,t){for(var a=r.data,n=a.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),o=0,l=0,c=0;c<n;c+=4){var A=a[c],d=a[c+1],u=a[c+2],g=a[c+3];i[o++]=A,i[o++]=d,i[o++]=u,s[l++]=g}var m=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:m,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Bt.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Nl=Bt.API,rd=Nl.getCharWidthsArray=function(r,e){var t,a,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),o=e.widths?e.widths:n.metadata.Unicode.widths,l=o.fof?o.fof:1,c=e.kerning?e.kerning:n.metadata.Unicode.kerning,A=c.fof?c.fof:1,d=e.doKerning!==!1,u=0,g=r.length,m=0,_=o[0]||l,E=[];for(t=0;t<g;t++)a=r.charCodeAt(t),typeof n.metadata.widthOfString=="function"?E.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(a))+s*(1e3/i)||0)/1e3):(u=d&&Ar(c[a])==="object"&&!isNaN(parseInt(c[a][m],10))?c[a][m]/A:0,E.push((o[a]||_)/l+u)),m=a;return E},lk=Nl.getStringUnitWidth=function(r,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return Nl.processArabic&&(r=Nl.processArabic(r)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(r,t,n)/t:rd.apply(this,arguments).reduce(function(i,s){return i+s},0)},ck=function(r,e,t,a){for(var n=[],i=0,s=r.length,o=0;i!==s&&o+e[i]<t;)o+=e[i],i++;n.push(r.slice(0,i));var l=i;for(o=0;i!==s;)o+e[i]>a&&(n.push(r.slice(l,i)),o=0,l=i),o+=e[i],i++;return l!==i&&n.push(r.slice(l,i)),n},Ak=function(r,e,t){t||(t={});var a,n,i,s,o,l,c,A=[],d=[A],u=t.textIndent||0,g=0,m=0,_=r.split(" "),E=rd.apply(this,[" ",t])[0];if(l=t.lineIndent===-1?_[0].length+2:t.lineIndent||0){var y=Array(l).join(" "),w=[];_.map(function(R){(R=R.split(/\s*\n/)).length>1?w=w.concat(R.map(function(k,h){return(h&&k.length?`
|
|
608
|
+
*/function di(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function dk(r){function e(L){if(!L)throw Error("assert :P")}function t(L,Y,K){for(var I=0;4>I;I++)if(L[Y+I]!=K.charCodeAt(I))return!0;return!1}function a(L,Y,K,I,M){for(var V=0;V<M;V++)L[Y+V]=K[I+V]}function n(L,Y,K,I){for(var M=0;M<I;M++)L[Y+M]=K}function i(L){return new Int32Array(L)}function s(L,Y){for(var K=[],I=0;I<L;I++)K.push(new Y);return K}function o(L,Y){var K=[];return function I(M,V,Q){for(var ee=Q[V],oe=0;oe<ee&&(M.push(Q.length>V+1?[]:new Y),!(Q.length<V+1));oe++)I(M[oe],V+1,Q)}(K,0,L),K}var l=function(){var L=this;function Y(p,f){for(var v=1<<f-1>>>0;p&v;)v>>>=1;return v?(p&v-1)+v:p}function K(p,f,v,C,x){e(!(C%v));do p[f+(C-=v)]=x;while(0<C)}function I(p,f,v,C,x){if(e(2328>=x),512>=x)var P=i(512);else if((P=i(x))==null)return 0;return function(U,z,q,W,ue,Ee){var Se,he,Le=z,Ne=1<<q,de=i(16),fe=i(16);for(e(ue!=0),e(W!=null),e(U!=null),e(0<q),he=0;he<ue;++he){if(15<W[he])return 0;++de[W[he]]}if(de[0]==ue)return 0;for(fe[1]=0,Se=1;15>Se;++Se){if(de[Se]>1<<Se)return 0;fe[Se+1]=fe[Se]+de[Se]}for(he=0;he<ue;++he)Se=W[he],0<W[he]&&(Ee[fe[Se]++]=he);if(fe[15]==1)return(W=new M).g=0,W.value=Ee[0],K(U,Le,1,Ne,W),Ne;var xe,Ue=-1,De=Ne-1,pt=0,at=1,Rt=1,it=1<<q;for(he=0,Se=1,ue=2;Se<=q;++Se,ue<<=1){if(at+=Rt<<=1,0>(Rt-=de[Se]))return 0;for(;0<de[Se];--de[Se])(W=new M).g=Se,W.value=Ee[he++],K(U,Le+pt,ue,it,W),pt=Y(pt,Se)}for(Se=q+1,ue=2;15>=Se;++Se,ue<<=1){if(at+=Rt<<=1,0>(Rt-=de[Se]))return 0;for(;0<de[Se];--de[Se]){if(W=new M,(pt&De)!=Ue){for(Le+=it,xe=1<<(Ue=Se)-q;15>Ue&&!(0>=(xe-=de[Ue]));)++Ue,xe<<=1;Ne+=it=1<<(xe=Ue-q),U[z+(Ue=pt&De)].g=xe+q,U[z+Ue].value=Le-z-Ue}W.g=Se-q,W.value=Ee[he++],K(U,Le+(pt>>q),ue,it,W),pt=Y(pt,Se)}}return at!=2*fe[15]-1?0:Ne}(p,f,v,C,x,P)}function M(){this.value=this.g=0}function V(){this.value=this.g=0}function Q(){this.G=s(5,M),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(za,V)}function ee(p,f,v,C){e(p!=null),e(f!=null),e(2147483648>C),p.Ca=254,p.I=0,p.b=-8,p.Ka=0,p.oa=f,p.pa=v,p.Jd=f,p.Yc=v+C,p.Zc=4<=C?v+C-4+1:v,ce(p)}function oe(p,f){for(var v=0;0<f--;)v|=me(p,128)<<f;return v}function ie(p,f){var v=oe(p,f);return _e(p)?-v:v}function re(p,f,v,C){var x,P=0;for(e(p!=null),e(f!=null),e(4294967288>C),p.Sb=C,p.Ra=0,p.u=0,p.h=0,4<C&&(C=4),x=0;x<C;++x)P+=f[v+x]<<8*x;p.Ra=P,p.bb=C,p.oa=f,p.pa=v}function se(p){for(;8<=p.u&&p.bb<p.Sb;)p.Ra>>>=8,p.Ra+=p.oa[p.pa+p.bb]<<Hl-8>>>0,++p.bb,p.u-=8;j(p)&&(p.h=1,p.u=0)}function Ae(p,f){if(e(0<=f),!p.h&&f<=zl){var v=G(p)&Ql[f];return p.u+=f,se(p),v}return p.h=1,p.u=0}function ye(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function G(p){return p.Ra>>>(p.u&Hl-1)>>>0}function j(p){return e(p.bb<=p.Sb),p.h||p.bb==p.Sb&&p.u>Hl}function $(p,f){p.u=f,p.h=j(p)}function ne(p){p.u>=dA&&(e(p.u>=dA),se(p))}function ce(p){e(p!=null&&p.oa!=null),p.pa<p.Zc?(p.I=(p.oa[p.pa++]|p.I<<8)>>>0,p.b+=8):(e(p!=null&&p.oa!=null),p.pa<p.Yc?(p.b+=8,p.I=p.oa[p.pa++]|p.I<<8):p.Ka?p.b=0:(p.I<<=8,p.b+=8,p.Ka=1))}function _e(p){return oe(p,1)}function me(p,f){var v=p.Ca;0>p.b&&ce(p);var C=p.b,x=v*f>>>8,P=(p.I>>>C>x)+0;for(P?(v-=x,p.I-=x+1<<C>>>0):v=x+1,C=v,x=0;256<=C;)x+=8,C>>=8;return C=7^x+wn[C],p.b-=C,p.Ca=(v<<C)-1,P}function Be(p,f,v){p[f+0]=v>>24&255,p[f+1]=v>>16&255,p[f+2]=v>>8&255,p[f+3]=v>>0&255}function Oe(p,f){return p[f+0]<<0|p[f+1]<<8}function ze(p,f){return Oe(p,f)|p[f+2]<<16}function He(p,f){return Oe(p,f)|Oe(p,f+2)<<16}function rt(p,f){var v=1<<f;return e(p!=null),e(0<f),p.X=i(v),p.X==null?0:(p.Mb=32-f,p.Xa=f,1)}function Ce(p,f){e(p!=null),e(f!=null),e(p.Xa==f.Xa),a(f.X,0,p.X,0,1<<f.Xa)}function Z(){this.X=[],this.Xa=this.Mb=0}function _t(p,f,v,C){e(v!=null),e(C!=null);var x=v[0],P=C[0];return x==0&&(x=(p*P+f/2)/f),P==0&&(P=(f*x+p/2)/p),0>=x||0>=P?0:(v[0]=x,C[0]=P,1)}function tt(p,f){return p+(1<<f)-1>>>f}function Fe(p,f){return((4278255360&p)+(4278255360&f)>>>0&4278255360)+((16711935&p)+(16711935&f)>>>0&16711935)>>>0}function Ye(p,f){L[f]=function(v,C,x,P,U,z,q){var W;for(W=0;W<U;++W){var ue=L[p](z[q+W-1],x,P+W);z[q+W]=Fe(v[C+W],ue)}}}function Ke(){this.ud=this.hd=this.jd=0}function We(p,f){return((4278124286&(p^f))>>>1)+(p&f)>>>0}function Te(p){return 0<=p&&256>p?p:0>p?0:255<p?255:void 0}function Me(p,f){return Te(p+(p-f+.5>>1))}function $e(p,f,v){return Math.abs(f-v)-Math.abs(p-v)}function Xe(p,f,v,C,x,P,U){for(C=P[U-1],v=0;v<x;++v)P[U+v]=C=Fe(p[f+v],C)}function At(p,f,v,C,x){var P;for(P=0;P<v;++P){var U=p[f+P],z=U>>8&255,q=16711935&(q=(q=16711935&U)+((z<<16)+z));C[x+P]=(4278255360&U)+q>>>0}}function Ft(p,f){f.jd=p>>0&255,f.hd=p>>8&255,f.ud=p>>16&255}function mt(p,f,v,C,x,P){var U;for(U=0;U<C;++U){var z=f[v+U],q=z>>>8,W=z,ue=255&(ue=(ue=z>>>16)+((p.jd<<24>>24)*(q<<24>>24)>>>5));W=255&(W=(W=W+((p.hd<<24>>24)*(q<<24>>24)>>>5))+((p.ud<<24>>24)*(ue<<24>>24)>>>5)),x[P+U]=(4278255360&z)+(ue<<16)+W}}function wt(p,f,v,C,x){L[f]=function(P,U,z,q,W,ue,Ee,Se,he){for(q=Ee;q<Se;++q)for(Ee=0;Ee<he;++Ee)W[ue++]=x(z[C(P[U++])])},L[p]=function(P,U,z,q,W,ue,Ee){var Se=8>>P.b,he=P.Ea,Le=P.K[0],Ne=P.w;if(8>Se)for(P=(1<<P.b)-1,Ne=(1<<Se)-1;U<z;++U){var de,fe=0;for(de=0;de<he;++de)de&P||(fe=C(q[W++])),ue[Ee++]=x(Le[fe&Ne]),fe>>=Se}else L["VP8LMapColor"+v](q,W,Le,Ne,ue,Ee,U,z,he)}}function Ze(p,f,v,C,x){for(v=f+v;f<v;){var P=p[f++];C[x++]=P>>16&255,C[x++]=P>>8&255,C[x++]=P>>0&255}}function rr(p,f,v,C,x){for(v=f+v;f<v;){var P=p[f++];C[x++]=P>>16&255,C[x++]=P>>8&255,C[x++]=P>>0&255,C[x++]=P>>24&255}}function Lt(p,f,v,C,x){for(v=f+v;f<v;){var P=(U=p[f++])>>16&240|U>>12&15,U=U>>0&240|U>>28&15;C[x++]=P,C[x++]=U}}function mr(p,f,v,C,x){for(v=f+v;f<v;){var P=(U=p[f++])>>16&248|U>>13&7,U=U>>5&224|U>>3&31;C[x++]=P,C[x++]=U}}function Vt(p,f,v,C,x){for(v=f+v;f<v;){var P=p[f++];C[x++]=P>>0&255,C[x++]=P>>8&255,C[x++]=P>>16&255}}function Jt(p,f,v,C,x,P){if(P==0)for(v=f+v;f<v;)Be(C,((P=p[f++])[0]>>24|P[1]>>8&65280|P[2]<<8&16711680|P[3]<<24)>>>0),x+=32;else a(C,x,p,f,v)}function Qr(p,f){L[f][0]=L[p+"0"],L[f][1]=L[p+"1"],L[f][2]=L[p+"2"],L[f][3]=L[p+"3"],L[f][4]=L[p+"4"],L[f][5]=L[p+"5"],L[f][6]=L[p+"6"],L[f][7]=L[p+"7"],L[f][8]=L[p+"8"],L[f][9]=L[p+"9"],L[f][10]=L[p+"10"],L[f][11]=L[p+"11"],L[f][12]=L[p+"12"],L[f][13]=L[p+"13"],L[f][14]=L[p+"0"],L[f][15]=L[p+"0"]}function Wt(p){return p==qv||p==Vv||p==Yd||p==Yv}function Jr(){this.eb=[],this.size=this.A=this.fb=0}function Et(){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 Fr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Jr,this.f.kb=new Et,this.sd=null}function Ht(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function te(){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 ve(p){return alert("todo:WebPSamplerProcessPlane"),p.T}function Ie(p,f){var v=p.T,C=f.ba.f.RGBA,x=C.eb,P=C.fb+p.ka*C.A,U=ti[f.ba.S],z=p.y,q=p.O,W=p.f,ue=p.N,Ee=p.ea,Se=p.W,he=f.cc,Le=f.dc,Ne=f.Mc,de=f.Nc,fe=p.ka,xe=p.ka+p.T,Ue=p.U,De=Ue+1>>1;for(fe==0?U(z,q,null,null,W,ue,Ee,Se,W,ue,Ee,Se,x,P,null,null,Ue):(U(f.ec,f.fc,z,q,he,Le,Ne,de,W,ue,Ee,Se,x,P-C.A,x,P,Ue),++v);fe+2<xe;fe+=2)he=W,Le=ue,Ne=Ee,de=Se,ue+=p.Rc,Se+=p.Rc,P+=2*C.A,U(z,(q+=2*p.fa)-p.fa,z,q,he,Le,Ne,de,W,ue,Ee,Se,x,P-C.A,x,P,Ue);return q+=p.fa,p.j+xe<p.o?(a(f.ec,f.fc,z,q,Ue),a(f.cc,f.dc,W,ue,De),a(f.Mc,f.Nc,Ee,Se,De),v--):1&xe||U(z,q,null,null,W,ue,Ee,Se,W,ue,Ee,Se,x,P+C.A,null,null,Ue),v}function Ct(p,f,v){var C=p.F,x=[p.J];if(C!=null){var P=p.U,U=f.ba.S,z=U==Vd||U==Yd;f=f.ba.f.RGBA;var q=[0],W=p.ka;q[0]=p.T,p.Kb&&(W==0?--q[0]:(--W,x[0]-=p.width),p.j+p.ka+p.T==p.o&&(q[0]=p.o-p.j-W));var ue=f.eb;W=f.fb+W*f.A,p=Dr(C,x[0],p.width,P,q,ue,W+(z?0:3),f.A),e(v==q),p&&Wt(U)&&Jn(ue,W,z,P,q,f.A)}return 0}function $t(p){var f=p.ma,v=f.ba.S,C=11>v,x=v==Gd||v==qd||v==Vd||v==Gv||v==12||Wt(v);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!AA(f.Oa,p,x?11:12))return 0;if(x&&Wt(v)&&Ve(),p.da)alert("todo:use_scaling");else{if(C){if(f.Ib=ve,p.Kb){if(v=p.U+1>>1,f.memory=i(p.U+2*v),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+p.U,f.Mc=f.cc,f.Nc=f.dc+v,f.Ib=Ie,Ve()}}else alert("todo:EmitYUV");x&&(f.Jb=Ct,C&&be())}if(C&&!G4){for(p=0;256>p;++p)Dhe[p]=89858*(p-128)+Kd>>jd,Fhe[p]=-22014*(p-128)+Kd,Mhe[p]=-45773*(p-128),Lhe[p]=113618*(p-128)+Kd>>jd;for(p=bA;p<Wv;++p)f=76283*(p-16)+Kd>>jd,Phe[p-bA]=Dn(f,255),Uhe[p-bA]=Dn(f+8>>4,15);G4=1}return 1}function tr(p){var f=p.ma,v=p.U,C=p.T;return e(!(1&p.ka)),0>=v||0>=C?0:(v=f.Ib(p,f),f.Jb!=null&&f.Jb(p,f,v),f.Dc+=v,1)}function st(p){p.ma.memory=null}function Re(p,f,v,C){return Ae(p,8)!=47?0:(f[0]=Ae(p,14)+1,v[0]=Ae(p,14)+1,C[0]=Ae(p,1),Ae(p,3)!=0?0:!p.h)}function St(p,f){if(4>p)return p+1;var v=p-2>>1;return(2+(1&p)<<v)+Ae(f,v)+1}function dr(p,f){return 120<f?f-120:1<=(v=((v=yhe[f-1])>>4)*p+(8-(15&v)))?v:1;var v}function Pt(p,f,v){var C=G(v),x=p[f+=255&C].g-8;return 0<x&&($(v,v.u+8),C=G(v),f+=p[f].value,f+=C&(1<<x)-1),$(v,v.u+p[f].g),p[f].value}function hr(p,f,v){return v.g+=p.g,v.value+=p.value<<f>>>0,e(8>=v.g),p.g}function Tr(p,f,v){var C=p.xc;return e((f=C==0?0:p.vc[p.md*(v>>C)+(f>>C)])<p.Wb),p.Ya[f]}function ba(p,f,v,C){var x=p.ab,P=p.c*f,U=p.C;f=U+f;var z=v,q=C;for(C=p.Ta,v=p.Ua;0<x--;){var W=p.gc[x],ue=U,Ee=f,Se=z,he=q,Le=(q=C,z=v,W.Ea);switch(e(ue<Ee),e(Ee<=W.nc),W.hc){case 2:Md(Se,he,(Ee-ue)*Le,q,z);break;case 0:var Ne=ue,de=Ee,fe=q,xe=z,Ue=(it=W).Ea;Ne==0&&(zv(Se,he,null,null,1,fe,xe),Xe(Se,he+1,0,0,Ue-1,fe,xe+1),he+=Ue,xe+=Ue,++Ne);for(var De=1<<it.b,pt=De-1,at=tt(Ue,it.b),Rt=it.K,it=it.w+(Ne>>it.b)*at;Ne<de;){var gr=Rt,yr=it,or=1;for(pA(Se,he,fe,xe-Ue,1,fe,xe);or<Ue;){var er=(or&~pt)+De;er>Ue&&(er=Ue),(0,to[gr[yr++]>>8&15])(Se,he+ +or,fe,xe+or-Ue,er-or,fe,xe+or),or=er}he+=Ue,xe+=Ue,++Ne&pt||(it+=at)}Ee!=W.nc&&a(q,z-Le,q,z+(Ee-ue-1)*Le,Le);break;case 1:for(Le=Se,de=he,Ue=(Se=W.Ea)-(xe=Se&~(fe=(he=1<<W.b)-1)),Ne=tt(Se,W.b),De=W.K,W=W.w+(ue>>W.b)*Ne;ue<Ee;){for(pt=De,at=W,Rt=new Ke,it=de+xe,gr=de+Se;de<it;)Ft(pt[at++],Rt),Vo(Rt,Le,de,he,q,z),de+=he,z+=he;de<gr&&(Ft(pt[at++],Rt),Vo(Rt,Le,de,Ue,q,z),de+=Ue,z+=Ue),++ue&fe||(W+=Ne)}break;case 3:if(Se==q&&he==z&&0<W.b){for(de=q,Se=Le=z+(Ee-ue)*Le-(xe=(Ee-ue)*tt(W.Ea,W.b)),he=q,fe=z,Ne=[],xe=(Ue=xe)-1;0<=xe;--xe)Ne[xe]=he[fe+xe];for(xe=Ue-1;0<=xe;--xe)de[Se+xe]=Ne[xe];$n(W,ue,Ee,q,Le,q,z)}else $n(W,ue,Ee,Se,he,q,z)}z=C,q=v}q!=v&&a(C,v,z,q,P)}function Yn(p,f){var v=p.V,C=p.Ba+p.c*p.C,x=f-p.C;if(e(f<=p.l.o),e(16>=x),0<x){var P=p.l,U=p.Ta,z=p.Ua,q=P.width;if(ba(p,x,v,C),x=z=[z],e((v=p.C)<(C=f)),e(P.v<P.va),C>P.o&&(C=P.o),v<P.j){var W=P.j-v;v=P.j,x[0]+=W*q}if(v>=C?v=0:(x[0]+=4*P.v,P.ka=v-P.j,P.U=P.va-P.v,P.T=C-v,v=1),v){if(z=z[0],11>(v=p.ca).S){var ue=v.f.RGBA,Ee=(C=v.S,x=P.U,P=P.T,W=ue.eb,ue.A),Se=P;for(ue=ue.fb+p.Ma*ue.A;0<Se--;){var he=U,Le=z,Ne=x,de=W,fe=ue;switch(C){case Hd:Cn(he,Le,Ne,de,fe);break;case Gd:fn(he,Le,Ne,de,fe);break;case qv:fn(he,Le,Ne,de,fe),Jn(de,fe,0,Ne,1,0);break;case D4:ds(he,Le,Ne,de,fe);break;case qd:Jt(he,Le,Ne,de,fe,1);break;case Vv:Jt(he,Le,Ne,de,fe,1),Jn(de,fe,0,Ne,1,0);break;case Vd:Jt(he,Le,Ne,de,fe,0);break;case Yd:Jt(he,Le,Ne,de,fe,0),Jn(de,fe,1,Ne,1,0);break;case Gv:ro(he,Le,Ne,de,fe);break;case Yv:ro(he,Le,Ne,de,fe),xr(de,fe,Ne,1,0);break;case L4:us(he,Le,Ne,de,fe);break;default:e(0)}z+=q,ue+=Ee}p.Ma+=P}else alert("todo:EmitRescaledRowsYUVA");e(p.Ma<=v.height)}}p.C=f,e(p.C<=p.i)}function Xa(p){var f;if(0<p.ua)return 0;for(f=0;f<p.Wb;++f){var v=p.Ya[f].G,C=p.Ya[f].H;if(0<v[1][C[1]+0].g||0<v[2][C[2]+0].g||0<v[3][C[3]+0].g)return 0}return 1}function Gr(p,f,v,C,x,P){if(p.Z!=0){var U=p.qd,z=p.rd;for(e(so[p.Z]!=null);f<v;++f)so[p.Z](U,z,C,x,C,x,P),U=C,z=x,x+=P;p.qd=U,p.rd=z}}function Za(p,f){var v=p.l.ma,C=v.Z==0||v.Z==1?p.l.j:p.C;if(C=p.C<C?C:p.C,e(f<=p.l.o),f>C){var x=p.l.width,P=v.ca,U=v.tb+x*C,z=p.V,q=p.Ba+p.c*C,W=p.gc;e(p.ab==1),e(W[0].hc==3),Fd(W[0],C,f,z,q,P,U),Gr(v,C,f,P,U,x)}p.C=p.Ma=f}function Ja(p,f,v,C,x,P,U){var z=p.$/C,q=p.$%C,W=p.m,ue=p.s,Ee=v+p.$,Se=Ee;x=v+C*x;var he=v+C*P,Le=280+ue.ua,Ne=p.Pb?z:16777216,de=0<ue.ua?ue.Wa:null,fe=ue.wc,xe=Ee<he?Tr(ue,q,z):null;e(p.C<P),e(he<=x);var Ue=!1;e:for(;;){for(;Ue||Ee<he;){var De=0;if(z>=Ne){var pt=Ee-v;e((Ne=p).Pb),Ne.wd=Ne.m,Ne.xd=pt,0<Ne.s.ua&&Ce(Ne.s.Wa,Ne.s.vb),Ne=z+Ehe}if(q&fe||(xe=Tr(ue,q,z)),e(xe!=null),xe.Qb&&(f[Ee]=xe.qb,Ue=!0),!Ue)if(ne(W),xe.jc){De=W,pt=f;var at=Ee,Rt=xe.pd[G(De)&za-1];e(xe.jc),256>Rt.g?($(De,De.u+Rt.g),pt[at]=Rt.value,De=0):($(De,De.u+Rt.g-256),e(256<=Rt.value),De=Rt.value),De==0&&(Ue=!0)}else De=Pt(xe.G[0],xe.H[0],W);if(W.h)break;if(Ue||256>De){if(!Ue)if(xe.nd)f[Ee]=(xe.qb|De<<8)>>>0;else{if(ne(W),Ue=Pt(xe.G[1],xe.H[1],W),ne(W),pt=Pt(xe.G[2],xe.H[2],W),at=Pt(xe.G[3],xe.H[3],W),W.h)break;f[Ee]=(at<<24|Ue<<16|De<<8|pt)>>>0}if(Ue=!1,++Ee,++q>=C&&(q=0,++z,U!=null&&z<=P&&!(z%16)&&U(p,z),de!=null))for(;Se<Ee;)De=f[Se++],de.X[(506832829*De&4294967295)>>>de.Mb]=De}else if(280>De){if(De=St(De-256,W),pt=Pt(xe.G[4],xe.H[4],W),ne(W),pt=dr(C,pt=St(pt,W)),W.h)break;if(Ee-v<pt||x-Ee<De)break e;for(at=0;at<De;++at)f[Ee+at]=f[Ee+at-pt];for(Ee+=De,q+=De;q>=C;)q-=C,++z,U!=null&&z<=P&&!(z%16)&&U(p,z);if(e(Ee<=x),q&fe&&(xe=Tr(ue,q,z)),de!=null)for(;Se<Ee;)De=f[Se++],de.X[(506832829*De&4294967295)>>>de.Mb]=De}else{if(!(De<Le))break e;for(Ue=De-280,e(de!=null);Se<Ee;)De=f[Se++],de.X[(506832829*De&4294967295)>>>de.Mb]=De;De=Ee,e(!(Ue>>>(pt=de).Xa)),f[De]=pt.X[Ue],Ue=!0}Ue||e(W.h==j(W))}if(p.Pb&&W.h&&Ee<x)e(p.m.h),p.a=5,p.m=p.wd,p.$=p.xd,0<p.s.ua&&Ce(p.s.vb,p.s.Wa);else{if(W.h)break e;U!=null&&U(p,z>P?P:z),p.a=0,p.$=Ee-v}return 1}return p.a=3,0}function en(p){e(p!=null),p.vc=null,p.yc=null,p.Ya=null;var f=p.Wa;f!=null&&(f.X=null),p.vb=null,e(p!=null)}function ya(){var p=new Qv;return p==null?null:(p.a=0,p.xb=P4,Qr("Predictor","VP8LPredictors"),Qr("Predictor","VP8LPredictors_C"),Qr("PredictorAdd","VP8LPredictorsAdd"),Qr("PredictorAdd","VP8LPredictorsAdd_C"),Md=At,Vo=mt,Cn=Ze,fn=rr,ro=Lt,us=mr,ds=Vt,L.VP8LMapColor32b=Gl,L.VP8LMapColor8b=Pd,p)}function Sn(p,f,v,C,x){var P=1,U=[p],z=[f],q=C.m,W=C.s,ue=null,Ee=0;e:for(;;){if(v)for(;P&&Ae(q,1);){var Se=U,he=z,Le=C,Ne=1,de=Le.m,fe=Le.gc[Le.ab],xe=Ae(de,2);if(Le.Oc&1<<xe)P=0;else{switch(Le.Oc|=1<<xe,fe.hc=xe,fe.Ea=Se[0],fe.nc=he[0],fe.K=[null],++Le.ab,e(4>=Le.ab),xe){case 0:case 1:fe.b=Ae(de,3)+2,Ne=Sn(tt(fe.Ea,fe.b),tt(fe.nc,fe.b),0,Le,fe.K),fe.K=fe.K[0];break;case 3:var Ue,De=Ae(de,8)+1,pt=16<De?0:4<De?1:2<De?2:3;if(Se[0]=tt(fe.Ea,pt),fe.b=pt,Ue=Ne=Sn(De,1,0,Le,fe.K)){var at,Rt=De,it=fe,gr=1<<(8>>it.b),yr=i(gr);if(yr==null)Ue=0;else{var or=it.K[0],er=it.w;for(yr[0]=it.K[0][0],at=1;at<1*Rt;++at)yr[at]=Fe(or[er+at],yr[at-1]);for(;at<4*gr;++at)yr[at]=0;it.K[0]=null,it.K[0]=yr,Ue=1}}Ne=Ue;break;case 2:break;default:e(0)}P=Ne}}if(U=U[0],z=z[0],P&&Ae(q,1)&&!(P=1<=(Ee=Ae(q,4))&&11>=Ee)){C.a=3;break e}var Nr;if(Nr=P)t:{var Sr,jt,Sa,Tn=C,wa=U,Nn=z,vr=Ee,Mn=v,Fn=Tn.m,xa=Tn.s,Ha=[null],mn=1,ri=0,qi=vhe[vr];r:for(;;){if(Mn&&Ae(Fn,1)){var Da=Ae(Fn,3)+2,_s=tt(wa,Da),$o=tt(Nn,Da),Kl=_s*$o;if(!Sn(_s,$o,0,Tn,Ha))break r;for(Ha=Ha[0],xa.xc=Da,Sr=0;Sr<Kl;++Sr){var oo=Ha[Sr]>>8&65535;Ha[Sr]=oo,oo>=mn&&(mn=oo+1)}}if(Fn.h)break r;for(jt=0;5>jt;++jt){var ra=M4[jt];!jt&&0<vr&&(ra+=1<<vr),ri<ra&&(ri=ra)}var $v=s(mn*qi,M),Y4=mn,j4=s(Y4,Q);if(j4==null)var $d=null;else e(65536>=Y4),$d=j4;var yA=i(ri);if($d==null||yA==null||$v==null){Tn.a=1;break r}var Xd=$v;for(Sr=Sa=0;Sr<mn;++Sr){var wi=$d[Sr],Wl=wi.G,$l=wi.H,K4=0,Zd=1,W4=0;for(jt=0;5>jt;++jt){ra=M4[jt],Wl[jt]=Xd,$l[jt]=Sa,!jt&&0<vr&&(ra+=1<<vr);n:{var Jd,Xv=ra,ep=Tn,vA=yA,Hhe=Xd,Ghe=Sa,Zv=0,lo=ep.m,qhe=Ae(lo,1);if(n(vA,0,0,Xv),qhe){var Vhe=Ae(lo,1)+1,Yhe=Ae(lo,1),$4=Ae(lo,Yhe==0?1:8);vA[$4]=1,Vhe==2&&(vA[$4=Ae(lo,8)]=1);var tp=1}else{var X4=i(19),Z4=Ae(lo,4)+4;if(19<Z4){ep.a=3;var rp=0;break n}for(Jd=0;Jd<Z4;++Jd)X4[bhe[Jd]]=Ae(lo,3);var Jv=void 0,EA=void 0,J4=ep,jhe=X4,ap=Xv,eB=vA,eE=0,co=J4.m,tB=8,rB=s(128,M);a:for(;I(rB,0,7,jhe,19);){if(Ae(co,1)){var Khe=2+2*Ae(co,3);if((Jv=2+Ae(co,Khe))>ap)break a}else Jv=ap;for(EA=0;EA<ap&&Jv--;){ne(co);var aB=rB[0+(127&G(co))];$(co,co.u+aB.g);var Xl=aB.value;if(16>Xl)eB[EA++]=Xl,Xl!=0&&(tB=Xl);else{var Whe=Xl==16,nB=Xl-16,$he=mhe[nB],iB=Ae(co,_he[nB])+$he;if(EA+iB>ap)break a;for(var Xhe=Whe?tB:0;0<iB--;)eB[EA++]=Xhe}}eE=1;break a}eE||(J4.a=3),tp=eE}(tp=tp&&!lo.h)&&(Zv=I(Hhe,Ghe,8,vA,Xv)),tp&&Zv!=0?rp=Zv:(ep.a=3,rp=0)}if(rp==0)break r;if(Zd&&hhe[jt]==1&&(Zd=Xd[Sa].g==0),K4+=Xd[Sa].g,Sa+=rp,3>=jt){var SA,tE=yA[0];for(SA=1;SA<ra;++SA)yA[SA]>tE&&(tE=yA[SA]);W4+=tE}}if(wi.nd=Zd,wi.Qb=0,Zd&&(wi.qb=(Wl[3][$l[3]+0].value<<24|Wl[1][$l[1]+0].value<<16|Wl[2][$l[2]+0].value)>>>0,K4==0&&256>Wl[0][$l[0]+0].value&&(wi.Qb=1,wi.qb+=Wl[0][$l[0]+0].value<<8)),wi.jc=!wi.Qb&&6>W4,wi.jc){var np,ms=wi;for(np=0;np<za;++np){var Ao=np,uo=ms.pd[Ao],ip=ms.G[0][ms.H[0]+Ao];256<=ip.value?(uo.g=ip.g+256,uo.value=ip.value):(uo.g=0,uo.value=0,Ao>>=hr(ip,8,uo),Ao>>=hr(ms.G[1][ms.H[1]+Ao],16,uo),Ao>>=hr(ms.G[2][ms.H[2]+Ao],0,uo),hr(ms.G[3][ms.H[3]+Ao],24,uo))}}}xa.vc=Ha,xa.Wb=mn,xa.Ya=$d,xa.yc=$v,Nr=1;break t}Nr=0}if(!(P=Nr)){C.a=3;break e}if(0<Ee){if(W.ua=1<<Ee,!rt(W.Wa,Ee)){C.a=1,P=0;break e}}else W.ua=0;var rE=C,sB=U,Zhe=z,aE=rE.s,nE=aE.xc;if(rE.c=sB,rE.i=Zhe,aE.md=tt(sB,nE),aE.wc=nE==0?-1:(1<<nE)-1,v){C.xb=Ohe;break e}if((ue=i(U*z))==null){C.a=1,P=0;break e}P=(P=Ja(C,ue,0,U,z,z,null))&&!q.h;break e}return P?(x!=null?x[0]=ue:(e(ue==null),e(v)),C.$=0,v||en(W)):en(W),P}function ht(p,f){var v=p.c*p.i,C=v+f+16*f;return e(p.c<=f),p.V=i(C),p.V==null?(p.Ta=null,p.Ua=0,p.a=1,0):(p.Ta=p.V,p.Ua=p.Ba+v+f,1)}function pe(p,f){var v=p.C,C=f-v,x=p.V,P=p.Ba+p.c*v;for(e(f<=p.l.o);0<C;){var U=16<C?16:C,z=p.l.ma,q=p.l.width,W=q*U,ue=z.ca,Ee=z.tb+q*v,Se=p.Ta,he=p.Ua;ba(p,U,x,P),ga(Se,he,ue,Ee,W),Gr(z,v,v+U,ue,Ee,q),C-=U,x+=U*p.c,v+=U}e(v==f),p.C=p.Ma=f}function Qe(){this.ub=this.yd=this.td=this.Rb=0}function dt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ar(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function qr(){this.Yb=function(){var p=[];return function f(v,C,x){for(var P=x[C],U=0;U<P&&(v.push(x.length>C+1?[]:0),!(x.length<C+1));U++)f(v[U],C+1,x)}(p,0,[3,11]),p}()}function Vr(){this.jb=i(3),this.Wc=o([4,8],qr),this.Xc=o([4,17],qr)}function va(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function ea(){this.ld=this.La=this.dd=this.tc=0}function jn(){this.Na=this.la=0}function Pe(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yt(){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 Yt(){this.uc=this.M=this.Nb=0,this.wa=Array(new ea),this.Y=0,this.ya=Array(new yt),this.aa=0,this.l=new Ua}function pr(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Yr(){this.cb=this.a=0,this.sc="",this.m=new ye,this.Od=new Qe,this.Kc=new dt,this.ed=new va,this.Qa=new ar,this.Ic=this.$c=this.Aa=0,this.D=new Yt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,ye),this.ia=0,this.pb=s(4,Pe),this.Pa=new Vr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new pr),this.Hd=0,this.rb=Array(new jn),this.sb=0,this.wa=Array(new ea),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 yt),this.L=this.aa=0,this.gd=o([4,2],ea),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 Ua(){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 Kn(){var p=new Yr;return p!=null&&(p.a=0,p.sc="OK",p.cb=0,p.Xb=0,hA||(hA=Uo)),p}function Br(p,f,v){return p.a==0&&(p.a=f,p.sc=v,p.cb=0),0}function Ra(p,f,v){return 3<=v&&p[f+0]==157&&p[f+1]==1&&p[f+2]==42}function pn(p,f){if(p==null)return 0;if(p.a=0,p.sc="OK",f==null)return Br(p,2,"null VP8Io passed to VP8GetHeaders()");var v=f.data,C=f.w,x=f.ha;if(4>x)return Br(p,7,"Truncated header.");var P=v[C+0]|v[C+1]<<8|v[C+2]<<16,U=p.Od;if(U.Rb=!(1&P),U.td=P>>1&7,U.yd=P>>4&1,U.ub=P>>5,3<U.td)return Br(p,3,"Incorrect keyframe parameters.");if(!U.yd)return Br(p,4,"Frame not displayable.");C+=3,x-=3;var z=p.Kc;if(U.Rb){if(7>x)return Br(p,7,"cannot parse picture header");if(!Ra(v,C,x))return Br(p,3,"Bad code word");z.c=16383&(v[C+4]<<8|v[C+3]),z.Td=v[C+4]>>6,z.i=16383&(v[C+6]<<8|v[C+5]),z.Ud=v[C+6]>>6,C+=7,x-=7,p.za=z.c+15>>4,p.Ub=z.i+15>>4,f.width=z.c,f.height=z.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,n((P=p.Pa).jb,0,255,P.jb.length),e((P=p.Qa)!=null),P.Cb=0,P.Bb=0,P.Fb=1,n(P.Zb,0,0,P.Zb.length),n(P.Lb,0,0,P.Lb)}if(U.ub>x)return Br(p,7,"bad partition length");ee(P=p.m,v,C,U.ub),C+=U.ub,x-=U.ub,U.Rb&&(z.Ld=_e(P),z.Kd=_e(P)),z=p.Qa;var q,W=p.Pa;if(e(P!=null),e(z!=null),z.Cb=_e(P),z.Cb){if(z.Bb=_e(P),_e(P)){for(z.Fb=_e(P),q=0;4>q;++q)z.Zb[q]=_e(P)?ie(P,7):0;for(q=0;4>q;++q)z.Lb[q]=_e(P)?ie(P,6):0}if(z.Bb)for(q=0;3>q;++q)W.jb[q]=_e(P)?oe(P,8):255}else z.Bb=0;if(P.Ka)return Br(p,3,"cannot parse segment header");if((z=p.ed).zd=_e(P),z.Tb=oe(P,6),z.wb=oe(P,3),z.Pc=_e(P),z.Pc&&_e(P)){for(W=0;4>W;++W)_e(P)&&(z.vd[W]=ie(P,6));for(W=0;4>W;++W)_e(P)&&(z.od[W]=ie(P,6))}if(p.L=z.Tb==0?0:z.zd?1:2,P.Ka)return Br(p,3,"cannot parse filter header");var ue=x;if(x=q=C,C=q+ue,z=ue,p.Xb=(1<<oe(p.m,2))-1,ue<3*(W=p.Xb))v=7;else{for(q+=3*W,z-=3*W,ue=0;ue<W;++ue){var Ee=v[x+0]|v[x+1]<<8|v[x+2]<<16;Ee>z&&(Ee=z),ee(p.Jc[+ue],v,q,Ee),q+=Ee,z-=Ee,x+=3}ee(p.Jc[+W],v,q,z),v=q<C?0:5}if(v!=0)return Br(p,v,"cannot parse partitions");for(v=oe(q=p.m,7),x=_e(q)?ie(q,4):0,C=_e(q)?ie(q,4):0,z=_e(q)?ie(q,4):0,W=_e(q)?ie(q,4):0,q=_e(q)?ie(q,4):0,ue=p.Qa,Ee=0;4>Ee;++Ee){if(ue.Cb){var Se=ue.Zb[Ee];ue.Fb||(Se+=v)}else{if(0<Ee){p.pb[Ee]=p.pb[0];continue}Se=v}var he=p.pb[Ee];he.Sc[0]=jv[Dn(Se+x,127)],he.Sc[1]=Kv[Dn(Se+0,127)],he.Eb[0]=2*jv[Dn(Se+C,127)],he.Eb[1]=101581*Kv[Dn(Se+z,127)]>>16,8>he.Eb[1]&&(he.Eb[1]=8),he.Qc[0]=jv[Dn(Se+W,117)],he.Qc[1]=Kv[Dn(Se+q,127)],he.lc=Se+q}if(!U.Rb)return Br(p,4,"Not a key frame.");for(_e(P),U=p.Pa,v=0;4>v;++v){for(x=0;8>x;++x)for(C=0;3>C;++C)for(z=0;11>z;++z)W=me(P,Nhe[v][x][C][z])?oe(P,8):Che[v][x][C][z],U.Wc[v][x].Yb[C][z]=W;for(x=0;17>x;++x)U.Xc[v][x]=U.Wc[v][khe[x]]}return p.kc=_e(P),p.kc&&(p.Bd=oe(P,8)),p.cb=1}function Uo(p,f,v,C,x,P,U){var z=f[x].Yb[v];for(v=0;16>x;++x){if(!me(p,z[v+0]))return x;for(;!me(p,z[v+1]);)if(z=f[++x].Yb[0],v=0,x==16)return 16;var q=f[x+1].Yb;if(me(p,z[v+2])){var W=p,ue=0;if(me(W,(Se=z)[(Ee=v)+3]))if(me(W,Se[Ee+6])){for(z=0,Ee=2*(ue=me(W,Se[Ee+8]))+(Se=me(W,Se[Ee+9+ue])),ue=0,Se=She[Ee];Se[z];++z)ue+=ue+me(W,Se[z]);ue+=3+(8<<Ee)}else me(W,Se[Ee+7])?(ue=7+2*me(W,165),ue+=me(W,145)):ue=5+me(W,159);else ue=me(W,Se[Ee+4])?3+me(W,Se[Ee+5]):2;z=q[2]}else ue=1,z=q[1];q=U+whe[x],0>(W=p).b&&ce(W);var Ee,Se=W.b,he=(Ee=W.Ca>>1)-(W.I>>Se)>>31;--W.b,W.Ca+=he,W.Ca|=1,W.I-=(Ee+1&he)<<Se,P[q]=((ue^he)-he)*C[(0<x)+0]}return 16}function js(p){var f=p.rb[p.sb-1];f.la=0,f.Na=0,n(p.zc,0,0,p.zc.length),p.ja=0}function Rl(p,f){if(p==null)return 0;if(f==null)return Br(p,2,"NULL VP8Io parameter in VP8Decode().");if(!p.cb&&!pn(p,f))return 0;if(e(p.cb),f.ac==null||f.ac(f)){f.ob&&(p.L=0);var v=Wd[p.L];if(p.L==2?(p.yb=0,p.zb=0):(p.yb=f.v-v>>4,p.zb=f.j-v>>4,0>p.yb&&(p.yb=0),0>p.zb&&(p.zb=0)),p.Va=f.o+15+v>>4,p.Hb=f.va+15+v>>4,p.Hb>p.za&&(p.Hb=p.za),p.Va>p.Ub&&(p.Va=p.Ub),0<p.L){var C=p.ed;for(v=0;4>v;++v){var x;if(p.Qa.Cb){var P=p.Qa.Lb[v];p.Qa.Fb||(P+=C.Tb)}else P=C.Tb;for(x=0;1>=x;++x){var U=p.gd[v][x],z=P;if(C.Pc&&(z+=C.vd[0],x&&(z+=C.od[0])),0<(z=0>z?0:63<z?63:z)){var q=z;0<C.wb&&(q=4<C.wb?q>>2:q>>1)>9-C.wb&&(q=9-C.wb),1>q&&(q=1),U.dd=q,U.tc=2*z+q,U.ld=40<=z?2:15<=z?1:0}else U.tc=0;U.La=x}}}v=0}else Br(p,6,"Frame setup failed"),v=p.a;if(v=v==0){if(v){p.$c=0,0<p.Aa||(p.Ic=zhe);e:{v=p.Ic,C=4*(q=p.za);var W=32*q,ue=q+1,Ee=0<p.L?q*(0<p.Aa?2:1):0,Se=(p.Aa==2?2:1)*q;if((U=C+832+(x=3*(16*v+Wd[p.L])/2*W)+(P=p.Fa!=null&&0<p.Fa.length?p.Kc.c*p.Kc.i:0))!=U)v=0;else{if(U>p.Vb){if(p.Vb=0,p.Ec=i(U),p.Fc=0,p.Ec==null){v=Br(p,1,"no memory during frame initialization.");break e}p.Vb=U}U=p.Ec,z=p.Fc,p.Ac=U,p.Bc=z,z+=C,p.Gd=s(W,pr),p.Hd=0,p.rb=s(ue+1,jn),p.sb=1,p.wa=Ee?s(Ee,ea):null,p.Y=0,p.D.Nb=0,p.D.wa=p.wa,p.D.Y=p.Y,0<p.Aa&&(p.D.Y+=q),e(!0),p.oc=U,p.pc=z,z+=832,p.ya=s(Se,yt),p.aa=0,p.D.ya=p.ya,p.D.aa=p.aa,p.Aa==2&&(p.D.aa+=q),p.R=16*q,p.B=8*q,q=(W=Wd[p.L])*p.R,W=W/2*p.B,p.sa=U,p.ta=z+q,p.qa=p.sa,p.ra=p.ta+16*v*p.R+W,p.Ha=p.qa,p.Ia=p.ra+8*v*p.B+W,p.$c=0,z+=x,p.mb=P?U:null,p.nb=P?z:null,e(z+P<=p.Fc+p.Vb),js(p),n(p.Ac,p.Bc,0,C),v=1}}if(v){if(f.ka=0,f.y=p.sa,f.O=p.ta,f.f=p.qa,f.N=p.ra,f.ea=p.Ha,f.Vd=p.Ia,f.fa=p.R,f.Rc=p.B,f.F=null,f.J=0,!Qd){for(v=-255;255>=v;++v)Na[255+v]=0>v?-v:v;for(v=-1020;1020>=v;++v)gs[1020+v]=-128>v?-128:127<v?127:v;for(v=-112;112>=v;++v)mA[112+v]=-16>v?-16:15<v?15:v;for(v=-255;510>=v;++v)jl[255+v]=0>v?0:255<v?255:v;Qd=1}ql=Mt,ps=Bl,gA=gn,_n=$c,Xn=Ws,pa=cs,Vl=tA,Ud=Go,fA=Uv,Yo=rA,jo=Pv,ao=Ll,Ko=aA,Yl=xd,Wo=Bd,no=Hi,_A=As,Zn=Fv,Si[0]=Wn,Si[1]=da,Si[2]=xn,Si[3]=Xc,Si[4]=Nd,Si[5]=xl,Si[6]=kd,Si[7]=Zc,Si[8]=Dv,Si[9]=xv,io[0]=nt,io[1]=Xs,io[2]=Qa,io[3]=Qi,io[4]=ot,io[5]=Gt,io[6]=sr,fs[0]=Zs,fs[1]=br,fs[2]=Lv,fs[3]=Jc,fs[4]=Ho,fs[5]=Mv,fs[6]=eA,v=1}else v=0}v&&(v=function(he,Le){for(he.M=0;he.M<he.Va;++he.M){var Ne,de=he.Jc[he.M&he.Xb],fe=he.m,xe=he;for(Ne=0;Ne<xe.za;++Ne){var Ue=fe,De=xe,pt=De.Ac,at=De.Bc+4*Ne,Rt=De.zc,it=De.ya[De.aa+Ne];if(De.Qa.Bb?it.$b=me(Ue,De.Pa.jb[0])?2+me(Ue,De.Pa.jb[2]):me(Ue,De.Pa.jb[1]):it.$b=0,De.kc&&(it.Ad=me(Ue,De.Bd)),it.Za=!me(Ue,145)+0,it.Za){var gr=it.Ob,yr=0;for(De=0;4>De;++De){var or,er=Rt[0+De];for(or=0;4>or;++or){er=The[pt[at+or]][er];for(var Nr=F4[me(Ue,er[0])];0<Nr;)Nr=F4[2*Nr+me(Ue,er[Nr])];er=-Nr,pt[at+or]=er}a(gr,yr,pt,at,4),yr+=4,Rt[0+De]=er}}else er=me(Ue,156)?me(Ue,128)?1:3:me(Ue,163)?2:0,it.Ob[0]=er,n(pt,at,er,4),n(Rt,0,er,4);it.Dd=me(Ue,142)?me(Ue,114)?me(Ue,183)?1:3:2:0}if(xe.m.Ka)return Br(he,7,"Premature end-of-partition0 encountered.");for(;he.ja<he.za;++he.ja){if(xe=de,Ue=(fe=he).rb[fe.sb-1],pt=fe.rb[fe.sb+fe.ja],Ne=fe.ya[fe.aa+fe.ja],at=fe.kc?Ne.Ad:0)Ue.la=pt.la=0,Ne.Za||(Ue.Na=pt.Na=0),Ne.Hc=0,Ne.Gc=0,Ne.ia=0;else{var Sr,jt;if(Ue=pt,pt=xe,at=fe.Pa.Xc,Rt=fe.ya[fe.aa+fe.ja],it=fe.pb[Rt.$b],De=Rt.ad,gr=0,yr=fe.rb[fe.sb-1],er=or=0,n(De,gr,0,384),Rt.Za)var Sa=0,Tn=at[3];else{Nr=i(16);var wa=Ue.Na+yr.Na;if(wa=hA(pt,at[1],wa,it.Eb,0,Nr,0),Ue.Na=yr.Na=(0<wa)+0,1<wa)ql(Nr,0,De,gr);else{var Nn=Nr[0]+3>>3;for(Nr=0;256>Nr;Nr+=16)De[gr+Nr]=Nn}Sa=1,Tn=at[0]}var vr=15&Ue.la,Mn=15&yr.la;for(Nr=0;4>Nr;++Nr){var Fn=1&Mn;for(Nn=jt=0;4>Nn;++Nn)vr=vr>>1|(Fn=(wa=hA(pt,Tn,wa=Fn+(1&vr),it.Sc,Sa,De,gr))>Sa)<<7,jt=jt<<2|(3<wa?3:1<wa?2:De[gr+0]!=0),gr+=16;vr>>=4,Mn=Mn>>1|Fn<<7,or=(or<<8|jt)>>>0}for(Tn=vr,Sa=Mn>>4,Sr=0;4>Sr;Sr+=2){for(jt=0,vr=Ue.la>>4+Sr,Mn=yr.la>>4+Sr,Nr=0;2>Nr;++Nr){for(Fn=1&Mn,Nn=0;2>Nn;++Nn)wa=Fn+(1&vr),vr=vr>>1|(Fn=0<(wa=hA(pt,at[2],wa,it.Qc,0,De,gr)))<<3,jt=jt<<2|(3<wa?3:1<wa?2:De[gr+0]!=0),gr+=16;vr>>=2,Mn=Mn>>1|Fn<<5}er|=jt<<4*Sr,Tn|=vr<<4<<Sr,Sa|=(240&Mn)<<Sr}Ue.la=Tn,yr.la=Sa,Rt.Hc=or,Rt.Gc=er,Rt.ia=43690&er?0:it.ia,at=!(or|er)}if(0<fe.L&&(fe.wa[fe.Y+fe.ja]=fe.gd[Ne.$b][Ne.Za],fe.wa[fe.Y+fe.ja].La|=!at),xe.Ka)return Br(he,7,"Premature end-of-file encountered.")}if(js(he),fe=Le,xe=1,Ne=(de=he).D,Ue=0<de.L&&de.M>=de.zb&&de.M<=de.Va,de.Aa==0)e:{if(Ne.M=de.M,Ne.uc=Ue,cA(de,Ne),xe=1,Ne=(jt=de.D).Nb,Ue=(er=Wd[de.L])*de.R,pt=er/2*de.B,Nr=16*Ne*de.R,Nn=8*Ne*de.B,at=de.sa,Rt=de.ta-Ue+Nr,it=de.qa,De=de.ra-pt+Nn,gr=de.Ha,yr=de.Ia-pt+Nn,Mn=(vr=jt.M)==0,or=vr>=de.Va-1,de.Aa==2&&cA(de,jt),jt.uc)for(Fn=(wa=de).D.M,e(wa.D.uc),jt=wa.yb;jt<wa.Hb;++jt){Sa=jt,Tn=Fn;var xa=(Ha=(ra=wa).D).Nb;Sr=ra.R;var Ha=Ha.wa[Ha.Y+Sa],mn=ra.sa,ri=ra.ta+16*xa*Sr+16*Sa,qi=Ha.dd,Da=Ha.tc;if(Da!=0)if(e(3<=Da),ra.L==1)0<Sa&&no(mn,ri,Sr,Da+4),Ha.La&&Zn(mn,ri,Sr,Da),0<Tn&&Wo(mn,ri,Sr,Da+4),Ha.La&&_A(mn,ri,Sr,Da);else{var _s=ra.B,$o=ra.qa,Kl=ra.ra+8*xa*_s+8*Sa,oo=ra.Ha,ra=ra.Ia+8*xa*_s+8*Sa;xa=Ha.ld,0<Sa&&(Ud(mn,ri,Sr,Da+4,qi,xa),Yo($o,Kl,oo,ra,_s,Da+4,qi,xa)),Ha.La&&(ao(mn,ri,Sr,Da,qi,xa),Yl($o,Kl,oo,ra,_s,Da,qi,xa)),0<Tn&&(Vl(mn,ri,Sr,Da+4,qi,xa),fA($o,Kl,oo,ra,_s,Da+4,qi,xa)),Ha.La&&(jo(mn,ri,Sr,Da,qi,xa),Ko($o,Kl,oo,ra,_s,Da,qi,xa))}}if(de.ia&&alert("todo:DitherRow"),fe.put!=null){if(jt=16*vr,vr=16*(vr+1),Mn?(fe.y=de.sa,fe.O=de.ta+Nr,fe.f=de.qa,fe.N=de.ra+Nn,fe.ea=de.Ha,fe.W=de.Ia+Nn):(jt-=er,fe.y=at,fe.O=Rt,fe.f=it,fe.N=De,fe.ea=gr,fe.W=yr),or||(vr-=er),vr>fe.o&&(vr=fe.o),fe.F=null,fe.J=null,de.Fa!=null&&0<de.Fa.length&&jt<vr&&(fe.J=oA(de,fe,jt,vr-jt),fe.F=de.mb,fe.F==null&&fe.F.length==0)){xe=Br(de,3,"Could not decode alpha data.");break e}jt<fe.j&&(er=fe.j-jt,jt=fe.j,e(!(1&er)),fe.O+=de.R*er,fe.N+=de.B*(er>>1),fe.W+=de.B*(er>>1),fe.F!=null&&(fe.J+=fe.width*er)),jt<vr&&(fe.O+=fe.v,fe.N+=fe.v>>1,fe.W+=fe.v>>1,fe.F!=null&&(fe.J+=fe.v),fe.ka=jt-fe.j,fe.U=fe.va-fe.v,fe.T=vr-jt,xe=fe.put(fe))}Ne+1!=de.Ic||or||(a(de.sa,de.ta-Ue,at,Rt+16*de.R,Ue),a(de.qa,de.ra-pt,it,De+8*de.B,pt),a(de.Ha,de.Ia-pt,gr,yr+8*de.B,pt))}if(!xe)return Br(he,6,"Output aborted.")}return 1}(p,f)),f.bc!=null&&f.bc(f),v&=1}return v?(p.cb=0,v):0}function Bn(p,f,v,C,x){x=p[f+v+32*C]+(x>>3),p[f+v+32*C]=-256&x?0>x?0:255:x}function Ks(p,f,v,C,x,P){Bn(p,f,0,v,C+x),Bn(p,f,1,v,C+P),Bn(p,f,2,v,C-P),Bn(p,f,3,v,C-x)}function tn(p){return(20091*p>>16)+p}function Qo(p,f,v,C){var x,P=0,U=i(16);for(x=0;4>x;++x){var z=p[f+0]+p[f+8],q=p[f+0]-p[f+8],W=(35468*p[f+4]>>16)-tn(p[f+12]),ue=tn(p[f+4])+(35468*p[f+12]>>16);U[P+0]=z+ue,U[P+1]=q+W,U[P+2]=q-W,U[P+3]=z-ue,P+=4,f++}for(x=P=0;4>x;++x)z=(p=U[P+0]+4)+U[P+8],q=p-U[P+8],W=(35468*U[P+4]>>16)-tn(U[P+12]),Bn(v,C,0,0,z+(ue=tn(U[P+4])+(35468*U[P+12]>>16))),Bn(v,C,1,0,q+W),Bn(v,C,2,0,q-W),Bn(v,C,3,0,z-ue),P++,C+=32}function cs(p,f,v,C){var x=p[f+0]+4,P=35468*p[f+4]>>16,U=tn(p[f+4]),z=35468*p[f+1]>>16;Ks(v,C,0,x+U,p=tn(p[f+1]),z),Ks(v,C,1,x+P,p,z),Ks(v,C,2,x-P,p,z),Ks(v,C,3,x-U,p,z)}function Bl(p,f,v,C,x){Qo(p,f,v,C),x&&Qo(p,f+16,v,C+4)}function gn(p,f,v,C){ps(p,f+0,v,C,1),ps(p,f+32,v,C+128,1)}function $c(p,f,v,C){var x;for(p=p[f+0]+4,x=0;4>x;++x)for(f=0;4>f;++f)Bn(v,C,f,x,p)}function Ws(p,f,v,C){p[f+0]&&_n(p,f+0,v,C),p[f+16]&&_n(p,f+16,v,C+4),p[f+32]&&_n(p,f+32,v,C+128),p[f+48]&&_n(p,f+48,v,C+128+4)}function Mt(p,f,v,C){var x,P=i(16);for(x=0;4>x;++x){var U=p[f+0+x]+p[f+12+x],z=p[f+4+x]+p[f+8+x],q=p[f+4+x]-p[f+8+x],W=p[f+0+x]-p[f+12+x];P[0+x]=U+z,P[8+x]=U-z,P[4+x]=W+q,P[12+x]=W-q}for(x=0;4>x;++x)U=(p=P[0+4*x]+3)+P[3+4*x],z=P[1+4*x]+P[2+4*x],q=P[1+4*x]-P[2+4*x],W=p-P[3+4*x],v[C+0]=U+z>>3,v[C+16]=W+q>>3,v[C+32]=U-z>>3,v[C+48]=W-q>>3,C+=64}function $s(p,f,v){var C,x=f-32,P=Ln,U=255-p[x-1];for(C=0;C<v;++C){var z,q=P,W=U+p[f-1];for(z=0;z<v;++z)p[f+z]=q[W+p[x+z]];f+=32}}function da(p,f){$s(p,f,4)}function br(p,f){$s(p,f,8)}function Xs(p,f){$s(p,f,16)}function Qa(p,f){var v;for(v=0;16>v;++v)a(p,f+32*v,p,f-32,16)}function Qi(p,f){var v;for(v=16;0<v;--v)n(p,f,p[f-1],16),f+=32}function zi(p,f,v){var C;for(C=0;16>C;++C)n(f,v+32*C,p,16)}function nt(p,f){var v,C=16;for(v=0;16>v;++v)C+=p[f-1+32*v]+p[f+v-32];zi(C>>5,p,f)}function ot(p,f){var v,C=8;for(v=0;16>v;++v)C+=p[f-1+32*v];zi(C>>4,p,f)}function Gt(p,f){var v,C=8;for(v=0;16>v;++v)C+=p[f+v-32];zi(C>>4,p,f)}function sr(p,f){zi(128,p,f)}function vt(p,f,v){return p+2*f+v+2>>2}function xn(p,f){var v,C=f-32;for(C=new Uint8Array([vt(p[C-1],p[C+0],p[C+1]),vt(p[C+0],p[C+1],p[C+2]),vt(p[C+1],p[C+2],p[C+3]),vt(p[C+2],p[C+3],p[C+4])]),v=0;4>v;++v)a(p,f+32*v,C,0,C.length)}function Xc(p,f){var v=p[f-1],C=p[f-1+32],x=p[f-1+64],P=p[f-1+96];Be(p,f+0,16843009*vt(p[f-1-32],v,C)),Be(p,f+32,16843009*vt(v,C,x)),Be(p,f+64,16843009*vt(C,x,P)),Be(p,f+96,16843009*vt(x,P,P))}function Wn(p,f){var v,C=4;for(v=0;4>v;++v)C+=p[f+v-32]+p[f-1+32*v];for(C>>=3,v=0;4>v;++v)n(p,f+32*v,C,4)}function Nd(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1-32],U=p[f+0-32],z=p[f+1-32],q=p[f+2-32],W=p[f+3-32];p[f+0+96]=vt(C,x,p[f-1+96]),p[f+1+96]=p[f+0+64]=vt(v,C,x),p[f+2+96]=p[f+1+64]=p[f+0+32]=vt(P,v,C),p[f+3+96]=p[f+2+64]=p[f+1+32]=p[f+0+0]=vt(U,P,v),p[f+3+64]=p[f+2+32]=p[f+1+0]=vt(z,U,P),p[f+3+32]=p[f+2+0]=vt(q,z,U),p[f+3+0]=vt(W,q,z)}function kd(p,f){var v=p[f+1-32],C=p[f+2-32],x=p[f+3-32],P=p[f+4-32],U=p[f+5-32],z=p[f+6-32],q=p[f+7-32];p[f+0+0]=vt(p[f+0-32],v,C),p[f+1+0]=p[f+0+32]=vt(v,C,x),p[f+2+0]=p[f+1+32]=p[f+0+64]=vt(C,x,P),p[f+3+0]=p[f+2+32]=p[f+1+64]=p[f+0+96]=vt(x,P,U),p[f+3+32]=p[f+2+64]=p[f+1+96]=vt(P,U,z),p[f+3+64]=p[f+2+96]=vt(U,z,q),p[f+3+96]=vt(z,q,q)}function xl(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1-32],U=p[f+0-32],z=p[f+1-32],q=p[f+2-32],W=p[f+3-32];p[f+0+0]=p[f+1+64]=P+U+1>>1,p[f+1+0]=p[f+2+64]=U+z+1>>1,p[f+2+0]=p[f+3+64]=z+q+1>>1,p[f+3+0]=q+W+1>>1,p[f+0+96]=vt(x,C,v),p[f+0+64]=vt(C,v,P),p[f+0+32]=p[f+1+96]=vt(v,P,U),p[f+1+32]=p[f+2+96]=vt(P,U,z),p[f+2+32]=p[f+3+96]=vt(U,z,q),p[f+3+32]=vt(z,q,W)}function Zc(p,f){var v=p[f+0-32],C=p[f+1-32],x=p[f+2-32],P=p[f+3-32],U=p[f+4-32],z=p[f+5-32],q=p[f+6-32],W=p[f+7-32];p[f+0+0]=v+C+1>>1,p[f+1+0]=p[f+0+64]=C+x+1>>1,p[f+2+0]=p[f+1+64]=x+P+1>>1,p[f+3+0]=p[f+2+64]=P+U+1>>1,p[f+0+32]=vt(v,C,x),p[f+1+32]=p[f+0+96]=vt(C,x,P),p[f+2+32]=p[f+1+96]=vt(x,P,U),p[f+3+32]=p[f+2+96]=vt(P,U,z),p[f+3+64]=vt(U,z,q),p[f+3+96]=vt(z,q,W)}function xv(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1+96];p[f+0+0]=v+C+1>>1,p[f+2+0]=p[f+0+32]=C+x+1>>1,p[f+2+32]=p[f+0+64]=x+P+1>>1,p[f+1+0]=vt(v,C,x),p[f+3+0]=p[f+1+32]=vt(C,x,P),p[f+3+32]=p[f+1+64]=vt(x,P,P),p[f+3+64]=p[f+2+64]=p[f+0+96]=p[f+1+96]=p[f+2+96]=p[f+3+96]=P}function Dv(p,f){var v=p[f-1+0],C=p[f-1+32],x=p[f-1+64],P=p[f-1+96],U=p[f-1-32],z=p[f+0-32],q=p[f+1-32],W=p[f+2-32];p[f+0+0]=p[f+2+32]=v+U+1>>1,p[f+0+32]=p[f+2+64]=C+v+1>>1,p[f+0+64]=p[f+2+96]=x+C+1>>1,p[f+0+96]=P+x+1>>1,p[f+3+0]=vt(z,q,W),p[f+2+0]=vt(U,z,q),p[f+1+0]=p[f+3+32]=vt(v,U,z),p[f+1+32]=p[f+3+64]=vt(C,v,U),p[f+1+64]=p[f+3+96]=vt(x,C,v),p[f+1+96]=vt(P,x,C)}function Lv(p,f){var v;for(v=0;8>v;++v)a(p,f+32*v,p,f-32,8)}function Jc(p,f){var v;for(v=0;8>v;++v)n(p,f,p[f-1],8),f+=32}function zo(p,f,v){var C;for(C=0;8>C;++C)n(f,v+32*C,p,8)}function Zs(p,f){var v,C=8;for(v=0;8>v;++v)C+=p[f+v-32]+p[f-1+32*v];zo(C>>4,p,f)}function Mv(p,f){var v,C=4;for(v=0;8>v;++v)C+=p[f+v-32];zo(C>>3,p,f)}function Ho(p,f){var v,C=4;for(v=0;8>v;++v)C+=p[f-1+32*v];zo(C>>3,p,f)}function eA(p,f){zo(128,p,f)}function Dl(p,f,v){var C=p[f-v],x=p[f+0],P=3*(x-C)+Hv[1020+p[f-2*v]-p[f+v]],U=zd[112+(P+4>>3)];p[f-v]=Ln[255+C+zd[112+(P+3>>3)]],p[f+0]=Ln[255+x-U]}function Od(p,f,v,C){var x=p[f+0],P=p[f+v];return ei[255+p[f-2*v]-p[f-v]]>C||ei[255+P-x]>C}function Id(p,f,v,C){return 4*ei[255+p[f-v]-p[f+0]]+ei[255+p[f-2*v]-p[f+v]]<=C}function Rd(p,f,v,C,x){var P=p[f-3*v],U=p[f-2*v],z=p[f-v],q=p[f+0],W=p[f+v],ue=p[f+2*v],Ee=p[f+3*v];return 4*ei[255+z-q]+ei[255+U-W]>C?0:ei[255+p[f-4*v]-P]<=x&&ei[255+P-U]<=x&&ei[255+U-z]<=x&&ei[255+Ee-ue]<=x&&ei[255+ue-W]<=x&&ei[255+W-q]<=x}function Bd(p,f,v,C){var x=2*C+1;for(C=0;16>C;++C)Id(p,f+C,v,x)&&Dl(p,f+C,v)}function Hi(p,f,v,C){var x=2*C+1;for(C=0;16>C;++C)Id(p,f+C*v,1,x)&&Dl(p,f+C*v,1)}function As(p,f,v,C){var x;for(x=3;0<x;--x)Bd(p,f+=4*v,v,C)}function Fv(p,f,v,C){var x;for(x=3;0<x;--x)Hi(p,f+=4,v,C)}function Js(p,f,v,C,x,P,U,z){for(P=2*P+1;0<x--;){if(Rd(p,f,v,P,U))if(Od(p,f,v,z))Dl(p,f,v);else{var q=p,W=f,ue=v,Ee=q[W-2*ue],Se=q[W-ue],he=q[W+0],Le=q[W+ue],Ne=q[W+2*ue],de=27*(xe=Hv[1020+3*(he-Se)+Hv[1020+Ee-Le]])+63>>7,fe=18*xe+63>>7,xe=9*xe+63>>7;q[W-3*ue]=Ln[255+q[W-3*ue]+xe],q[W-2*ue]=Ln[255+Ee+fe],q[W-ue]=Ln[255+Se+de],q[W+0]=Ln[255+he-de],q[W+ue]=Ln[255+Le-fe],q[W+2*ue]=Ln[255+Ne-xe]}f+=C}}function vi(p,f,v,C,x,P,U,z){for(P=2*P+1;0<x--;){if(Rd(p,f,v,P,U))if(Od(p,f,v,z))Dl(p,f,v);else{var q=p,W=f,ue=v,Ee=q[W-ue],Se=q[W+0],he=q[W+ue],Le=zd[112+((Ne=3*(Se-Ee))+4>>3)],Ne=zd[112+(Ne+3>>3)],de=Le+1>>1;q[W-2*ue]=Ln[255+q[W-2*ue]+de],q[W-ue]=Ln[255+Ee+Ne],q[W+0]=Ln[255+Se-Le],q[W+ue]=Ln[255+he-de]}f+=C}}function tA(p,f,v,C,x,P){Js(p,f,v,1,16,C,x,P)}function Go(p,f,v,C,x,P){Js(p,f,1,v,16,C,x,P)}function Pv(p,f,v,C,x,P){var U;for(U=3;0<U;--U)vi(p,f+=4*v,v,1,16,C,x,P)}function Ll(p,f,v,C,x,P){var U;for(U=3;0<U;--U)vi(p,f+=4,1,v,16,C,x,P)}function Uv(p,f,v,C,x,P,U,z){Js(p,f,x,1,8,P,U,z),Js(v,C,x,1,8,P,U,z)}function rA(p,f,v,C,x,P,U,z){Js(p,f,1,x,8,P,U,z),Js(v,C,1,x,8,P,U,z)}function aA(p,f,v,C,x,P,U,z){vi(p,f+4*x,x,1,8,P,U,z),vi(v,C+4*x,x,1,8,P,U,z)}function xd(p,f,v,C,x,P,U,z){vi(p,f+4,1,x,8,P,U,z),vi(v,C+4,1,x,8,P,U,z)}function Ml(){this.ba=new Fr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new te,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nA(){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 iA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Dd(){this.ua=0,this.Wa=new Z,this.vb=new Z,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Q,this.yc=new M}function Qv(){this.xb=this.a=0,this.l=new Ua,this.ca=new Fr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Dd,this.ab=0,this.gc=s(4,iA),this.Oc=0}function Fl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ua,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function qo(p,f,v,C,x,P,U){for(p=p==null?0:p[f+0],f=0;f<U;++f)x[P+f]=p+v[C+f]&255,p=x[P+f]}function sA(p,f,v,C,x,P,U){var z;if(p==null)qo(null,null,v,C,x,P,U);else for(z=0;z<U;++z)x[P+z]=p[f+z]+v[C+z]&255}function eo(p,f,v,C,x,P,U){if(p==null)qo(null,null,v,C,x,P,U);else{var z,q=p[f+0],W=q,ue=q;for(z=0;z<U;++z)W=ue+(q=p[f+z])-W,ue=v[C+z]+(-256&W?0>W?0:255:W)&255,W=q,x[P+z]=ue}}function oA(p,f,v,C){var x=f.width,P=f.o;if(e(p!=null&&f!=null),0>v||0>=C||v+C>P)return null;if(!p.Cc){if(p.ga==null){var U;if(p.ga=new Fl,(U=p.ga==null)||(U=f.width*f.o,e(p.Gb.length==0),p.Gb=i(U),p.Uc=0,p.Gb==null?U=0:(p.mb=p.Gb,p.nb=p.Uc,p.rc=null,U=1),U=!U),!U){U=p.ga;var z=p.Fa,q=p.P,W=p.qc,ue=p.mb,Ee=p.nb,Se=q+1,he=W-1,Le=U.l;if(e(z!=null&&ue!=null&&f!=null),so[0]=null,so[1]=qo,so[2]=sA,so[3]=eo,U.ca=ue,U.tb=Ee,U.c=f.width,U.i=f.height,e(0<U.c&&0<U.i),1>=W)f=0;else if(U.$a=z[q+0]>>0&3,U.Z=z[q+0]>>2&3,U.Lc=z[q+0]>>4&3,q=z[q+0]>>6&3,0>U.$a||1<U.$a||4<=U.Z||1<U.Lc||q)f=0;else if(Le.put=tr,Le.ac=$t,Le.bc=st,Le.ma=U,Le.width=f.width,Le.height=f.height,Le.Da=f.Da,Le.v=f.v,Le.va=f.va,Le.j=f.j,Le.o=f.o,U.$a)e:{e(U.$a==1),f=ya();t:for(;;){if(f==null){f=0;break e}if(e(U!=null),U.mc=f,f.c=U.c,f.i=U.i,f.l=U.l,f.l.ma=U,f.l.width=U.c,f.l.height=U.i,f.a=0,re(f.m,z,Se,he),!Sn(U.c,U.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Xa(f.s)?(U.ic=1,z=f.c*f.i,f.Ta=null,f.Ua=0,f.V=i(z),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(U.ic=0,f=ht(f,U.c)),!f))break t;f=1;break e}U.mc=null,f=0}else f=he>=U.c*U.i;U=!f}if(U)return null;p.ga.Lc!=1?p.Ga=0:C=P-v}e(p.ga!=null),e(v+C<=P);e:{if(f=(z=p.ga).c,P=z.l.o,z.$a==0){if(Se=p.rc,he=p.Vc,Le=p.Fa,q=p.P+1+v*f,W=p.mb,ue=p.nb+v*f,e(q<=p.P+p.qc),z.Z!=0)for(e(so[z.Z]!=null),U=0;U<C;++U)so[z.Z](Se,he,Le,q,W,ue,f),Se=W,he=ue,ue+=f,q+=f;else for(U=0;U<C;++U)a(W,ue,Le,q,f),Se=W,he=ue,ue+=f,q+=f;p.rc=Se,p.Vc=he}else{if(e(z.mc!=null),f=v+C,e((U=z.mc)!=null),e(f<=U.i),U.C>=f)f=1;else if(z.ic||be(),z.ic){z=U.V,Se=U.Ba,he=U.c;var Ne=U.i,de=(Le=1,q=U.$/he,W=U.$%he,ue=U.m,Ee=U.s,U.$),fe=he*Ne,xe=he*f,Ue=Ee.wc,De=de<xe?Tr(Ee,W,q):null;e(de<=fe),e(f<=Ne),e(Xa(Ee));t:for(;;){for(;!ue.h&&de<xe;){if(W&Ue||(De=Tr(Ee,W,q)),e(De!=null),ne(ue),256>(Ne=Pt(De.G[0],De.H[0],ue)))z[Se+de]=Ne,++de,++W>=he&&(W=0,++q<=f&&!(q%16)&&Za(U,q));else{if(!(280>Ne)){Le=0;break t}Ne=St(Ne-256,ue);var pt,at=Pt(De.G[4],De.H[4],ue);if(ne(ue),!(de>=(at=dr(he,at=St(at,ue)))&&fe-de>=Ne)){Le=0;break t}for(pt=0;pt<Ne;++pt)z[Se+de+pt]=z[Se+de+pt-at];for(de+=Ne,W+=Ne;W>=he;)W-=he,++q<=f&&!(q%16)&&Za(U,q);de<xe&&W&Ue&&(De=Tr(Ee,W,q))}e(ue.h==j(ue))}Za(U,q>f?f:q);break t}!Le||ue.h&&de<fe?(Le=0,U.a=ue.h?5:3):U.$=de,f=Le}else f=Ja(U,U.V,U.Ba,U.c,U.i,f,pe);if(!f){C=0;break e}}v+C>=P&&(p.Cc=1),C=1}if(!C)return null;if(p.Cc&&((C=p.ga)!=null&&(C.mc=null),p.ga=null,0<p.Ga))return alert("todo:WebPDequantizeLevels"),null}return p.nb+v*x}function b(p,f,v,C,x,P){for(;0<x--;){var U,z=p,q=f+(v?1:0),W=p,ue=f+(v?0:3);for(U=0;U<C;++U){var Ee=W[ue+4*U];Ee!=255&&(Ee*=32897,z[q+4*U+0]=z[q+4*U+0]*Ee>>23,z[q+4*U+1]=z[q+4*U+1]*Ee>>23,z[q+4*U+2]=z[q+4*U+2]*Ee>>23)}f+=P}}function D(p,f,v,C,x){for(;0<C--;){var P;for(P=0;P<v;++P){var U=p[f+2*P+0],z=15&(W=p[f+2*P+1]),q=4369*z,W=(240&W|W>>4)*q>>16;p[f+2*P+0]=(240&U|U>>4)*q>>16&240|(15&U|U<<4)*q>>16>>4&15,p[f+2*P+1]=240&W|z}f+=x}}function X(p,f,v,C,x,P,U,z){var q,W,ue=255;for(W=0;W<x;++W){for(q=0;q<C;++q){var Ee=p[f+q];P[U+4*q]=Ee,ue&=Ee}f+=v,U+=z}return ue!=255}function le(p,f,v,C,x){var P;for(P=0;P<x;++P)v[C+P]=p[f+P]>>8}function be(){Jn=b,xr=D,Dr=X,ga=le}function ke(p,f,v){L[p]=function(C,x,P,U,z,q,W,ue,Ee,Se,he,Le,Ne,de,fe,xe,Ue){var De,pt=Ue-1>>1,at=z[q+0]|W[ue+0]<<16,Rt=Ee[Se+0]|he[Le+0]<<16;e(C!=null);var it=3*at+Rt+131074>>2;for(f(C[x+0],255&it,it>>16,Ne,de),P!=null&&(it=3*Rt+at+131074>>2,f(P[U+0],255&it,it>>16,fe,xe)),De=1;De<=pt;++De){var gr=z[q+De]|W[ue+De]<<16,yr=Ee[Se+De]|he[Le+De]<<16,or=at+gr+Rt+yr+524296,er=or+2*(gr+Rt)>>3;it=er+at>>1,at=(or=or+2*(at+yr)>>3)+gr>>1,f(C[x+2*De-1],255&it,it>>16,Ne,de+(2*De-1)*v),f(C[x+2*De-0],255&at,at>>16,Ne,de+(2*De-0)*v),P!=null&&(it=or+Rt>>1,at=er+yr>>1,f(P[U+2*De-1],255&it,it>>16,fe,xe+(2*De-1)*v),f(P[U+2*De+0],255&at,at>>16,fe,xe+(2*De+0)*v)),at=gr,Rt=yr}1&Ue||(it=3*at+Rt+131074>>2,f(C[x+Ue-1],255&it,it>>16,Ne,de+(Ue-1)*v),P!=null&&(it=3*Rt+at+131074>>2,f(P[U+Ue-1],255&it,it>>16,fe,xe+(Ue-1)*v)))}}function Ve(){ti[Hd]=Ihe,ti[Gd]=U4,ti[D4]=Rhe,ti[qd]=Q4,ti[Vd]=z4,ti[Gv]=H4,ti[L4]=Bhe,ti[qv]=U4,ti[Vv]=Q4,ti[Yd]=z4,ti[Yv]=H4}function ut(p){return p&-16384?0>p?0:255:p>>xhe}function Nt(p,f){return ut((19077*p>>8)+(26149*f>>8)-14234)}function qt(p,f,v){return ut((19077*p>>8)-(6419*f>>8)-(13320*v>>8)+8708)}function Qt(p,f){return ut((19077*p>>8)+(33050*f>>8)-17685)}function nr(p,f,v,C,x){C[x+0]=Nt(p,v),C[x+1]=qt(p,f,v),C[x+2]=Qt(p,f)}function jr(p,f,v,C,x){C[x+0]=Qt(p,f),C[x+1]=qt(p,f,v),C[x+2]=Nt(p,v)}function ta(p,f,v,C,x){var P=qt(p,f,v);f=P<<3&224|Qt(p,f)>>3,C[x+0]=248&Nt(p,v)|P>>5,C[x+1]=f}function Ea(p,f,v,C,x){var P=240&Qt(p,f)|15;C[x+0]=240&Nt(p,v)|qt(p,f,v)>>4,C[x+1]=P}function rn(p,f,v,C,x){C[x+0]=255,nr(p,f,v,C,x+1)}function Ba(p,f,v,C,x){jr(p,f,v,C,x),C[x+3]=255}function Ei(p,f,v,C,x){nr(p,f,v,C,x),C[x+3]=255}function Dn(p,f){return 0>p?0:p>f?f:p}function Gi(p,f,v){L[p]=function(C,x,P,U,z,q,W,ue,Ee){for(var Se=ue+(-2&Ee)*v;ue!=Se;)f(C[x+0],P[U+0],z[q+0],W,ue),f(C[x+1],P[U+0],z[q+0],W,ue+v),x+=2,++U,++q,ue+=2*v;1&Ee&&f(C[x+0],P[U+0],z[q+0],W,ue)}}function Ld(p,f,v){return v==0?p==0?f==0?6:5:f==0?4:0:v}function lA(p,f,v,C,x){switch(p>>>30){case 3:ps(f,v,C,x,0);break;case 2:pa(f,v,C,x);break;case 1:_n(f,v,C,x)}}function cA(p,f){var v,C,x=f.M,P=f.Nb,U=p.oc,z=p.pc+40,q=p.oc,W=p.pc+584,ue=p.oc,Ee=p.pc+600;for(v=0;16>v;++v)U[z+32*v-1]=129;for(v=0;8>v;++v)q[W+32*v-1]=129,ue[Ee+32*v-1]=129;for(0<x?U[z-1-32]=q[W-1-32]=ue[Ee-1-32]=129:(n(U,z-32-1,127,21),n(q,W-32-1,127,9),n(ue,Ee-32-1,127,9)),C=0;C<p.za;++C){var Se=f.ya[f.aa+C];if(0<C){for(v=-1;16>v;++v)a(U,z+32*v-4,U,z+32*v+12,4);for(v=-1;8>v;++v)a(q,W+32*v-4,q,W+32*v+4,4),a(ue,Ee+32*v-4,ue,Ee+32*v+4,4)}var he=p.Gd,Le=p.Hd+C,Ne=Se.ad,de=Se.Hc;if(0<x&&(a(U,z-32,he[Le].y,0,16),a(q,W-32,he[Le].f,0,8),a(ue,Ee-32,he[Le].ea,0,8)),Se.Za){var fe=U,xe=z-32+16;for(0<x&&(C>=p.za-1?n(fe,xe,he[Le].y[15],4):a(fe,xe,he[Le+1].y,0,4)),v=0;4>v;v++)fe[xe+128+v]=fe[xe+256+v]=fe[xe+384+v]=fe[xe+0+v];for(v=0;16>v;++v,de<<=2)fe=U,xe=z+q4[v],Si[Se.Ob[v]](fe,xe),lA(de,Ne,16*+v,fe,xe)}else if(fe=Ld(C,x,Se.Ob[0]),io[fe](U,z),de!=0)for(v=0;16>v;++v,de<<=2)lA(de,Ne,16*+v,U,z+q4[v]);for(v=Se.Gc,fe=Ld(C,x,Se.Dd),fs[fe](q,W),fs[fe](ue,Ee),de=Ne,fe=q,xe=W,255&(Se=v>>0)&&(170&Se?gA(de,256,fe,xe):Xn(de,256,fe,xe)),Se=ue,de=Ee,255&(v>>=8)&&(170&v?gA(Ne,320,Se,de):Xn(Ne,320,Se,de)),x<p.Ub-1&&(a(he[Le].y,0,U,z+480,16),a(he[Le].f,0,q,W+224,8),a(he[Le].ea,0,ue,Ee+224,8)),v=8*P*p.B,he=p.sa,Le=p.ta+16*C+16*P*p.R,Ne=p.qa,Se=p.ra+8*C+v,de=p.Ha,fe=p.Ia+8*C+v,v=0;16>v;++v)a(he,Le+v*p.R,U,z+32*v,16);for(v=0;8>v;++v)a(Ne,Se+v*p.B,q,W+32*v,8),a(de,fe+v*p.B,ue,Ee+32*v,8)}}function Pl(p,f,v,C,x,P,U,z,q){var W=[0],ue=[0],Ee=0,Se=q!=null?q.kd:0,he=q??new nA;if(p==null||12>v)return 7;he.data=p,he.w=f,he.ha=v,f=[f],v=[v],he.gb=[he.gb];e:{var Le=f,Ne=v,de=he.gb;if(e(p!=null),e(Ne!=null),e(de!=null),de[0]=0,12<=Ne[0]&&!t(p,Le[0],"RIFF")){if(t(p,Le[0]+8,"WEBP")){de=3;break e}var fe=He(p,Le[0]+4);if(12>fe||4294967286<fe){de=3;break e}if(Se&&fe>Ne[0]-8){de=7;break e}de[0]=fe,Le[0]+=12,Ne[0]-=12}de=0}if(de!=0)return de;for(fe=0<he.gb[0],v=v[0];;){e:{var xe=p;Ne=f,de=v;var Ue=W,De=ue,pt=Le=[0];if((it=Ee=[Ee])[0]=0,8>de[0])de=7;else{if(!t(xe,Ne[0],"VP8X")){if(He(xe,Ne[0]+4)!=10){de=3;break e}if(18>de[0]){de=7;break e}var at=He(xe,Ne[0]+8),Rt=1+ze(xe,Ne[0]+12);if(2147483648<=Rt*(xe=1+ze(xe,Ne[0]+15))){de=3;break e}pt!=null&&(pt[0]=at),Ue!=null&&(Ue[0]=Rt),De!=null&&(De[0]=xe),Ne[0]+=18,de[0]-=18,it[0]=1}de=0}}if(Ee=Ee[0],Le=Le[0],de!=0)return de;if(Ne=!!(2&Le),!fe&&Ee)return 3;if(P!=null&&(P[0]=!!(16&Le)),U!=null&&(U[0]=Ne),z!=null&&(z[0]=0),U=W[0],Le=ue[0],Ee&&Ne&&q==null){de=0;break}if(4>v){de=7;break}if(fe&&Ee||!fe&&!Ee&&!t(p,f[0],"ALPH")){v=[v],he.na=[he.na],he.P=[he.P],he.Sa=[he.Sa];e:{at=p,de=f,fe=v;var it=he.gb;Ue=he.na,De=he.P,pt=he.Sa,Rt=22,e(at!=null),e(fe!=null),xe=de[0];var gr=fe[0];for(e(Ue!=null),e(pt!=null),Ue[0]=null,De[0]=null,pt[0]=0;;){if(de[0]=xe,fe[0]=gr,8>gr){de=7;break e}var yr=He(at,xe+4);if(4294967286<yr){de=3;break e}var or=8+yr+1&-2;if(Rt+=or,0<it&&Rt>it){de=3;break e}if(!t(at,xe,"VP8 ")||!t(at,xe,"VP8L")){de=0;break e}if(gr[0]<or){de=7;break e}t(at,xe,"ALPH")||(Ue[0]=at,De[0]=xe+8,pt[0]=yr),xe+=or,gr-=or}}if(v=v[0],he.na=he.na[0],he.P=he.P[0],he.Sa=he.Sa[0],de!=0)break}v=[v],he.Ja=[he.Ja],he.xa=[he.xa];e:if(it=p,de=f,fe=v,Ue=he.gb[0],De=he.Ja,pt=he.xa,at=de[0],xe=!t(it,at,"VP8 "),Rt=!t(it,at,"VP8L"),e(it!=null),e(fe!=null),e(De!=null),e(pt!=null),8>fe[0])de=7;else{if(xe||Rt){if(it=He(it,at+4),12<=Ue&&it>Ue-12){de=3;break e}if(Se&&it>fe[0]-8){de=7;break e}De[0]=it,de[0]+=8,fe[0]-=8,pt[0]=Rt}else pt[0]=5<=fe[0]&&it[at+0]==47&&!(it[at+4]>>5),De[0]=fe[0];de=0}if(v=v[0],he.Ja=he.Ja[0],he.xa=he.xa[0],f=f[0],de!=0)break;if(4294967286<he.Ja)return 3;if(z==null||Ne||(z[0]=he.xa?2:1),U=[U],Le=[Le],he.xa){if(5>v){de=7;break}z=U,Se=Le,Ne=P,p==null||5>v?p=0:5<=v&&p[f+0]==47&&!(p[f+4]>>5)?(fe=[0],it=[0],Ue=[0],re(De=new B,p,f,v),Re(De,fe,it,Ue)?(z!=null&&(z[0]=fe[0]),Se!=null&&(Se[0]=it[0]),Ne!=null&&(Ne[0]=Ue[0]),p=1):p=0):p=0}else{if(10>v){de=7;break}z=Le,p==null||10>v||!Ra(p,f+3,v-3)?p=0:(Se=p[f+0]|p[f+1]<<8|p[f+2]<<16,Ne=16383&(p[f+7]<<8|p[f+6]),p=16383&(p[f+9]<<8|p[f+8]),1&Se||3<(Se>>1&7)||!(Se>>4&1)||Se>>5>=he.Ja||!Ne||!p?p=0:(U&&(U[0]=Ne),z&&(z[0]=p),p=1))}if(!p||(U=U[0],Le=Le[0],Ee&&(W[0]!=U||ue[0]!=Le)))return 3;q!=null&&(q[0]=he,q.offset=f-q.w,e(4294967286>f-q.w),e(q.offset==q.ha-v));break}return de==0||de==7&&Ee&&q==null?(P!=null&&(P[0]|=he.na!=null&&0<he.na.length),C!=null&&(C[0]=U),x!=null&&(x[0]=Le),0):de}function AA(p,f,v){var C=f.width,x=f.height,P=0,U=0,z=C,q=x;if(f.Da=p!=null&&0<p.Da,f.Da&&(z=p.cd,q=p.bd,P=p.v,U=p.j,11>v||(P&=-2,U&=-2),0>P||0>U||0>=z||0>=q||P+z>C||U+q>x))return 0;if(f.v=P,f.j=U,f.va=P+z,f.o=U+q,f.U=z,f.T=q,f.da=p!=null&&0<p.da,f.da){if(!_t(z,q,v=[p.ib],P=[p.hb]))return 0;f.ib=v[0],f.hb=P[0]}return f.ob=p!=null&&p.ob,f.Kb=p==null||!p.Sd,f.da&&(f.ob=f.ib<3*C/4&&f.hb<3*x/4,f.Kb=0),1}function uA(p){if(p==null)return 2;if(11>p.S){var f=p.f.RGBA;f.fb+=(p.height-1)*f.A,f.A=-f.A}else f=p.f.kb,p=p.height,f.O+=(p-1)*f.fa,f.fa=-f.fa,f.N+=(p-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(p-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(p-1)*f.lb,f.lb=-f.lb);return 0}function Ul(p,f,v,C){if(C==null||0>=p||0>=f)return 2;if(v!=null){if(v.Da){var x=v.cd,P=v.bd,U=-2&v.v,z=-2&v.j;if(0>U||0>z||0>=x||0>=P||U+x>p||z+P>f)return 2;p=x,f=P}if(v.da){if(!_t(p,f,x=[v.ib],P=[v.hb]))return 2;p=x[0],f=P[0]}}C.width=p,C.height=f;e:{var q=C.width,W=C.height;if(p=C.S,0>=q||0>=W||!(p>=Hd&&13>p))p=2;else{if(0>=C.Rd&&C.sd==null){U=P=x=f=0;var ue=(z=q*V4[p])*W;if(11>p||(P=(W+1)/2*(f=(q+1)/2),p==12&&(U=(x=q)*W)),(W=i(ue+2*P+U))==null){p=1;break e}C.sd=W,11>p?((q=C.f.RGBA).eb=W,q.fb=0,q.A=z,q.size=ue):((q=C.f.kb).y=W,q.O=0,q.fa=z,q.Fd=ue,q.f=W,q.N=0+ue,q.Ab=f,q.Cd=P,q.ea=W,q.W=0+ue+P,q.Db=f,q.Ed=P,p==12&&(q.F=W,q.J=0+ue+2*P),q.Tc=U,q.lb=x)}if(f=1,x=C.S,P=C.width,U=C.height,x>=Hd&&13>x)if(11>x)p=C.f.RGBA,f&=(z=Math.abs(p.A))*(U-1)+P<=p.size,f&=z>=P*V4[x],f&=p.eb!=null;else{p=C.f.kb,z=(P+1)/2,ue=(U+1)/2,q=Math.abs(p.fa),W=Math.abs(p.Ab);var Ee=Math.abs(p.Db),Se=Math.abs(p.lb),he=Se*(U-1)+P;f&=q*(U-1)+P<=p.Fd,f&=W*(ue-1)+z<=p.Cd,f=(f&=Ee*(ue-1)+z<=p.Ed)&q>=P&W>=z&Ee>=z,f&=p.y!=null,f&=p.f!=null,f&=p.ea!=null,x==12&&(f&=Se>=P,f&=he<=p.Tc,f&=p.F!=null)}else f=0;p=f?0:2}}return p!=0||v!=null&&v.fd&&(p=uA(C)),p}var za=64,Ql=[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],zl=24,Hl=32,dA=8,wn=[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];Ye("Predictor0","PredictorAdd0"),L.Predictor0=function(){return 4278190080},L.Predictor1=function(p){return p},L.Predictor2=function(p,f,v){return f[v+0]},L.Predictor3=function(p,f,v){return f[v+1]},L.Predictor4=function(p,f,v){return f[v-1]},L.Predictor5=function(p,f,v){return We(We(p,f[v+1]),f[v+0])},L.Predictor6=function(p,f,v){return We(p,f[v-1])},L.Predictor7=function(p,f,v){return We(p,f[v+0])},L.Predictor8=function(p,f,v){return We(f[v-1],f[v+0])},L.Predictor9=function(p,f,v){return We(f[v+0],f[v+1])},L.Predictor10=function(p,f,v){return We(We(p,f[v-1]),We(f[v+0],f[v+1]))},L.Predictor11=function(p,f,v){var C=f[v+0];return 0>=$e(C>>24&255,p>>24&255,(f=f[v-1])>>24&255)+$e(C>>16&255,p>>16&255,f>>16&255)+$e(C>>8&255,p>>8&255,f>>8&255)+$e(255&C,255&p,255&f)?C:p},L.Predictor12=function(p,f,v){var C=f[v+0];return(Te((p>>24&255)+(C>>24&255)-((f=f[v-1])>>24&255))<<24|Te((p>>16&255)+(C>>16&255)-(f>>16&255))<<16|Te((p>>8&255)+(C>>8&255)-(f>>8&255))<<8|Te((255&p)+(255&C)-(255&f)))>>>0},L.Predictor13=function(p,f,v){var C=f[v-1];return(Me((p=We(p,f[v+0]))>>24&255,C>>24&255)<<24|Me(p>>16&255,C>>16&255)<<16|Me(p>>8&255,C>>8&255)<<8|Me(p>>0&255,C>>0&255))>>>0};var zv=L.PredictorAdd0;L.PredictorAdd1=Xe,Ye("Predictor2","PredictorAdd2"),Ye("Predictor3","PredictorAdd3"),Ye("Predictor4","PredictorAdd4"),Ye("Predictor5","PredictorAdd5"),Ye("Predictor6","PredictorAdd6"),Ye("Predictor7","PredictorAdd7"),Ye("Predictor8","PredictorAdd8"),Ye("Predictor9","PredictorAdd9"),Ye("Predictor10","PredictorAdd10"),Ye("Predictor11","PredictorAdd11"),Ye("Predictor12","PredictorAdd12"),Ye("Predictor13","PredictorAdd13");var pA=L.PredictorAdd2;wt("ColorIndexInverseTransform","MapARGB","32b",function(p){return p>>8&255},function(p){return p}),wt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(p){return p},function(p){return p>>8&255});var Md,$n=L.ColorIndexInverseTransform,Gl=L.MapARGB,Fd=L.VP8LColorIndexInverseTransformAlpha,Pd=L.MapAlpha,to=L.VP8LPredictorsAdd=[];to.length=16,(L.VP8LPredictors=[]).length=16,(L.VP8LPredictorsAdd_C=[]).length=16,(L.VP8LPredictors_C=[]).length=16;var Vo,Cn,fn,ro,us,ds,ql,ps,pa,gA,_n,Xn,Vl,Ud,fA,Yo,jo,ao,Ko,Yl,Wo,no,_A,Zn,Jn,xr,Dr,ga,Na=i(511),gs=i(2041),mA=i(225),jl=i(767),Qd=0,Hv=gs,zd=mA,Ln=jl,ei=Na,Hd=0,Gd=1,D4=2,qd=3,Vd=4,Gv=5,L4=6,qv=7,Vv=8,Yd=9,Yv=10,_he=[2,3,7],mhe=[3,3,11],M4=[280,256,256,256,40],hhe=[0,1,1,1,0],bhe=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yhe=[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],vhe=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ehe=8,jv=[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],Kv=[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],hA=null,She=[[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]],whe=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],F4=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Che=[[[[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]]]],The=[[[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]]],Nhe=[[[[255,255,255,255,255,255,255,255,255,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]]]],khe=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],io=[],Si=[],fs=[],Ohe=1,P4=2,so=[],ti=[];ke("UpsampleRgbLinePair",nr,3),ke("UpsampleBgrLinePair",jr,3),ke("UpsampleRgbaLinePair",Ei,4),ke("UpsampleBgraLinePair",Ba,4),ke("UpsampleArgbLinePair",rn,4),ke("UpsampleRgba4444LinePair",Ea,2),ke("UpsampleRgb565LinePair",ta,2);var Ihe=L.UpsampleRgbLinePair,Rhe=L.UpsampleBgrLinePair,U4=L.UpsampleRgbaLinePair,Q4=L.UpsampleBgraLinePair,z4=L.UpsampleArgbLinePair,H4=L.UpsampleRgba4444LinePair,Bhe=L.UpsampleRgb565LinePair,jd=16,Kd=1<<jd-1,bA=-227,Wv=482,xhe=6,G4=0,Dhe=i(256),Lhe=i(256),Mhe=i(256),Fhe=i(256),Phe=i(Wv-bA),Uhe=i(Wv-bA);Gi("YuvToRgbRow",nr,3),Gi("YuvToBgrRow",jr,3),Gi("YuvToRgbaRow",Ei,4),Gi("YuvToBgraRow",Ba,4),Gi("YuvToArgbRow",rn,4),Gi("YuvToRgba4444Row",Ea,2),Gi("YuvToRgb565Row",ta,2);var q4=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Wd=[0,2,8],Qhe=[8,7,6,4,4,2,2,2,1,1,1,1],zhe=1;this.WebPDecodeRGBA=function(p,f,v,C,x){var P=Gd,U=new Ml,z=new Fr;U.ba=z,z.S=P,z.width=[z.width],z.height=[z.height];var q=z.width,W=z.height,ue=new Ht;if(ue==null||p==null)var Ee=2;else e(ue!=null),Ee=Pl(p,f,v,ue.width,ue.height,ue.Pd,ue.Qd,ue.format,null);if(Ee!=0?q=0:(q!=null&&(q[0]=ue.width[0]),W!=null&&(W[0]=ue.height[0]),q=1),q){z.width=z.width[0],z.height=z.height[0],C!=null&&(C[0]=z.width),x!=null&&(x[0]=z.height);e:{if(C=new Ua,(x=new nA).data=p,x.w=f,x.ha=v,x.kd=1,f=[0],e(x!=null),((p=Pl(x.data,x.w,x.ha,null,null,null,f,null,x))==0||p==7)&&f[0]&&(p=4),(f=p)==0){if(e(U!=null),C.data=x.data,C.w=x.w+x.offset,C.ha=x.ha-x.offset,C.put=tr,C.ac=$t,C.bc=st,C.ma=U,x.xa){if((p=ya())==null){U=1;break e}if(function(Se,he){var Le=[0],Ne=[0],de=[0];t:for(;;){if(Se==null)return 0;if(he==null)return Se.a=2,0;if(Se.l=he,Se.a=0,re(Se.m,he.data,he.w,he.ha),!Re(Se.m,Le,Ne,de)){Se.a=3;break t}if(Se.xb=P4,he.width=Le[0],he.height=Ne[0],!Sn(Le[0],Ne[0],1,Se,null))break t;return 1}return e(Se.a!=0),0}(p,C)){if(C=(f=Ul(C.width,C.height,U.Oa,U.ba))==0){t:{C=p;r:for(;;){if(C==null){C=0;break t}if(e(C.s.yc!=null),e(C.s.Ya!=null),e(0<C.s.Wb),e((v=C.l)!=null),e((x=v.ma)!=null),C.xb!=0){if(C.ca=x.ba,C.tb=x.tb,e(C.ca!=null),!AA(x.Oa,v,qd)){C.a=2;break r}if(!ht(C,v.width)||v.da)break r;if((v.da||Wt(C.ca.S))&&be(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&be()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!rt(C.s.vb,C.s.Wa.Xa)){C.a=1;break r}C.xb=0}if(!Ja(C,C.V,C.Ba,C.c,C.i,v.o,Yn))break r;x.Dc=C.Ma,C=1;break t}e(C.a!=0),C=0}C=!C}C&&(f=p.a)}else f=p.a}else{if((p=new Kn)==null){U=1;break e}if(p.Fa=x.na,p.P=x.P,p.qc=x.Sa,pn(p,C)){if((f=Ul(C.width,C.height,U.Oa,U.ba))==0){if(p.Aa=0,v=U.Oa,e((x=p)!=null),v!=null){if(0<(q=0>(q=v.Md)?0:100<q?255:255*q/100)){for(W=ue=0;4>W;++W)12>(Ee=x.pb[W]).lc&&(Ee.ia=q*Qhe[0>Ee.lc?0:Ee.lc]>>3),ue|=Ee.ia;ue&&(alert("todo:VP8InitRandom"),x.ia=1)}x.Ga=v.Id,100<x.Ga?x.Ga=100:0>x.Ga&&(x.Ga=0)}Rl(p,C)||(f=p.a)}}else f=p.a}f==0&&U.Oa!=null&&U.Oa.fd&&(f=uA(U.ba))}U=f}P=U!=0?null:11>P?z.f.RGBA.eb:z.f.kb.y}else P=null;return P};var V4=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(L,Y){for(var K="",I=0;I<4;I++)K+=String.fromCharCode(L[Y++]);return K}function A(L,Y){return(L[Y+0]<<0|L[Y+1]<<8|L[Y+2]<<16)>>>0}function d(L,Y){return(L[Y+0]<<0|L[Y+1]<<8|L[Y+2]<<16|L[Y+3]<<24)>>>0}new l;var u=[0],g=[0],m=[],_=new l,E=r,y=function(L,Y){var K={},I=0,M=!1,V=0,Q=0;if(K.frames=[],!function(G,j,$,ne){for(var ce=0;ce<ne;ce++)if(G[j+ce]!=$.charCodeAt(ce))return!0;return!1}(L,Y,"RIFF",4)){for(d(L,Y+=4),Y+=8;Y<L.length;){var ee=c(L,Y),oe=d(L,Y+=4);Y+=4;var ie=oe+(1&oe);switch(ee){case"VP8 ":case"VP8L":K.frames[I]===void 0&&(K.frames[I]={}),(Ae=K.frames[I]).src_off=M?Q:Y-8,Ae.src_size=V+oe+8,I++,M&&(M=!1,V=0,Q=0);break;case"VP8X":(Ae=K.header={}).feature_flags=L[Y];var re=Y+4;Ae.canvas_width=1+A(L,re),re+=3,Ae.canvas_height=1+A(L,re),re+=3;break;case"ALPH":M=!0,V=ie+8,Q=Y-8;break;case"ANIM":(Ae=K.header).bgcolor=d(L,Y),re=Y+4,Ae.loop_count=(ye=L)[(B=re)+0]<<0|ye[B+1]<<8,re+=2;break;case"ANMF":var se,Ae;(Ae=K.frames[I]={}).offset_x=2*A(L,Y),Y+=3,Ae.offset_y=2*A(L,Y),Y+=3,Ae.width=1+A(L,Y),Y+=3,Ae.height=1+A(L,Y),Y+=3,Ae.duration=A(L,Y),Y+=3,se=L[Y++],Ae.dispose=1&se,Ae.blend=se>>1&1}ee!="ANMF"&&(Y+=ie)}var ye,B;return K}}(E,0);y.response=E,y.rgbaoutput=!0,y.dataurl=!1;var w=y.header?y.header:null,N=y.frames?y.frames:null;if(w){w.loop_counter=w.loop_count,u=[w.canvas_height],g=[w.canvas_width];for(var R=0;R<N.length&&N[R].blend!=0;R++);}var k=N[0],h=_.WebPDecodeRGBA(E,k.src_off,k.src_size,g,u);k.rgba=h,k.imgwidth=g[0],k.imgheight=u[0];for(var O=0;O<g[0]*u[0]*4;O++)m[O]=h[O];return this.width=g,this.height=u,this.data=m,this}(function(r){var e=function(){return typeof Gh=="function"},t=function(u,g,m,_){var E=4,y=s;switch(_){case r.image_compression.FAST:E=1,y=i;break;case r.image_compression.MEDIUM:E=6,y=o;break;case r.image_compression.SLOW:E=9,y=l}u=a(u,g,m,y);var w=Gh(u,{level:E});return r.__addimage__.arrayBufferToBinaryString(w)},a=function(u,g,m,_){for(var E,y,w,N=u.length/g,R=new Uint8Array(u.length+N),k=A(),h=0;h<N;h+=1){if(w=h*g,E=u.subarray(w,w+g),_)R.set(_(E,m,y),w+h);else{for(var O,L=k.length,Y=[];O<L;O+=1)Y[O]=k[O](E,m,y);var K=d(Y.concat());R.set(Y[K],w+h)}y=E}return R},n=function(u){var g=Array.apply([],u);return g.unshift(0),g},i=function(u,g){var m,_=[],E=u.length;_[0]=1;for(var y=0;y<E;y+=1)m=u[y-g]||0,_[y+1]=u[y]-m+256&255;return _},s=function(u,g,m){var _,E=[],y=u.length;E[0]=2;for(var w=0;w<y;w+=1)_=m&&m[w]||0,E[w+1]=u[w]-_+256&255;return E},o=function(u,g,m){var _,E,y=[],w=u.length;y[0]=3;for(var N=0;N<w;N+=1)_=u[N-g]||0,E=m&&m[N]||0,y[N+1]=u[N]+256-(_+E>>>1)&255;return y},l=function(u,g,m){var _,E,y,w,N=[],R=u.length;N[0]=4;for(var k=0;k<R;k+=1)_=u[k-g]||0,E=m&&m[k]||0,y=m&&m[k-g]||0,w=c(_,E,y),N[k+1]=u[k]-w+256&255;return N},c=function(u,g,m){if(u===g&&g===m)return u;var _=Math.abs(g-m),E=Math.abs(u-m),y=Math.abs(u+g-m-m);return _<=E&&_<=y?u:E<=y?g:m},A=function(){return[n,i,s,o,l]},d=function(u){var g=u.map(function(m){return m.reduce(function(_,E){return _+Math.abs(E)},0)});return g.indexOf(Math.min.apply(null,g))};r.processPNG=function(u,g,m,_){var E,y,w,N,R,k,h,O,L,Y,K,I,M,V,Q,ee=this.decode.FLATE_DECODE,oe="";if(this.__addimage__.isArrayBuffer(u)&&(u=new Uint8Array(u)),this.__addimage__.isArrayBufferView(u)){if(u=(w=new bfe(u)).imgData,y=w.bits,E=w.colorSpace,R=w.colors,[4,6].indexOf(w.colorType)!==-1){if(w.bits===8){L=(O=w.pixelBitlength==32?new Uint32Array(w.decodePixels().buffer):w.pixelBitlength==16?new Uint16Array(w.decodePixels().buffer):new Uint8Array(w.decodePixels().buffer)).length,K=new Uint8Array(L*w.colors),Y=new Uint8Array(L);var ie,re=w.pixelBitlength-w.bits;for(V=0,Q=0;V<L;V++){for(M=O[V],ie=0;ie<re;)K[Q++]=M>>>ie&255,ie+=w.bits;Y[V]=M>>>ie&255}}if(w.bits===16){L=(O=new Uint32Array(w.decodePixels().buffer)).length,K=new Uint8Array(L*(32/w.pixelBitlength)*w.colors),Y=new Uint8Array(L*(32/w.pixelBitlength)),I=w.colors>1,V=0,Q=0;for(var se=0;V<L;)M=O[V++],K[Q++]=M>>>0&255,I&&(K[Q++]=M>>>16&255,M=O[V++],K[Q++]=M>>>0&255),Y[se++]=M>>>16&255;y=8}_!==r.image_compression.NONE&&e()?(u=t(K,w.width*w.colors,w.colors,_),h=t(Y,w.width,1,_)):(u=K,h=Y,ee=void 0)}if(w.colorType===3&&(E=this.color_spaces.INDEXED,k=w.palette,w.transparency.indexed)){var Ae=w.transparency.indexed,ye=0;for(V=0,L=Ae.length;V<L;++V)ye+=Ae[V];if((ye/=255)===L-1&&Ae.indexOf(0)!==-1)N=[Ae.indexOf(0)];else if(ye!==L){for(O=w.decodePixels(),Y=new Uint8Array(O.length),V=0,L=O.length;V<L;V++)Y[V]=Ae[O[V]];h=t(Y,w.width,1)}}var B=function(G){var j;switch(G){case r.image_compression.FAST:j=11;break;case r.image_compression.MEDIUM:j=13;break;case r.image_compression.SLOW:j=14;break;default:j=12}return j}(_);return ee===this.decode.FLATE_DECODE&&(oe="/Predictor "+B+" "),oe+="/Colors "+R+" /BitsPerComponent "+y+" /Columns "+w.width,(this.__addimage__.isArrayBuffer(u)||this.__addimage__.isArrayBufferView(u))&&(u=this.__addimage__.arrayBufferToBinaryString(u)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:m,data:u,index:g,filter:ee,decodeParameters:oe,transparency:N,palette:k,sMask:h,predictor:B,width:w.width,height:w.height,bitsPerComponent:y,colorSpace:E}}}})(Bt.API),function(r){r.processGIF89A=function(e,t,a,n){var i=new yfe(e),s=i.width,o=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:s,height:o},A=new r0(100).encode(c,100);return r.processJPEG.call(this,A,t,a,n)},r.processGIF87A=r.processGIF89A}(Bt.API),di.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var e=0;e<r;e++){var t=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:a,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},di.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[r]()}catch(t){Cr.log("bit decode error:"+t)}},di.prototype.bit1=function(){var r,e=Math.ceil(this.width/8),t=e%4;for(r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=a*this.width*4+8*n*4,o=0;o<8&&8*n+o<this.width;o++){var l=this.palette[i>>7-o&1];this.data[s+4*o]=l.blue,this.data[s+4*o+1]=l.green,this.data[s+4*o+2]=l.red,this.data[s+4*o+3]=255}t!==0&&(this.pos+=4-t)}},di.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,n=0;n<r;n++){var i=this.datav.getUint8(this.pos++,!0),s=a*this.width*4+2*n*4,o=i>>4,l=15&i,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*n+1>=this.width)break;c=this.palette[l],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},di.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*a;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}r!==0&&(this.pos+=4-r)}},di.prototype.bit15=function(){for(var r=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&e)/e*255|0,o=(i>>5&e)/e*255|0,l=(i>>10&e)/e*255|0,c=i>>15?255:0,A=a*this.width*4+4*n;this.data[A]=l,this.data[A+1]=o,this.data[A+2]=s,this.data[A+3]=c}this.pos+=r}},di.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var n=this.bottom_up?a:this.height-1-a,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,l=(s>>5&t)/t*255|0,c=(s>>11)/e*255|0,A=n*this.width*4+4*i;this.data[A]=c,this.data[A+1]=l,this.data[A+2]=o,this.data[A+3]=255}this.pos+=r}},di.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var a=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=a,this.data[s+3]=255}this.pos+=this.width%4}},di.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var a=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),o=e*this.width*4+4*t;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=a,this.data[o+3]=s}},di.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,t,a,n){var i=new di(e,!1),s=i.width,o=i.height,l={data:i.getData(),width:s,height:o},c=new r0(100).encode(l,100);return r.processJPEG.call(this,c,t,a,n)}}(Bt.API),dk.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,t,a,n){var i=new dk(e),s=i.width,o=i.height,l={data:i.getData(),width:s,height:o},c=new r0(100).encode(l,100);return r.processJPEG.call(this,c,t,a,n)}}(Bt.API),Bt.API.processRGBA=function(r,e,t){for(var a=r.data,n=a.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),o=0,l=0,c=0;c<n;c+=4){var A=a[c],d=a[c+1],u=a[c+2],g=a[c+3];i[o++]=A,i[o++]=d,i[o++]=u,s[l++]=g}var m=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:m,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Bt.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Nl=Bt.API,rd=Nl.getCharWidthsArray=function(r,e){var t,a,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),o=e.widths?e.widths:n.metadata.Unicode.widths,l=o.fof?o.fof:1,c=e.kerning?e.kerning:n.metadata.Unicode.kerning,A=c.fof?c.fof:1,d=e.doKerning!==!1,u=0,g=r.length,m=0,_=o[0]||l,E=[];for(t=0;t<g;t++)a=r.charCodeAt(t),typeof n.metadata.widthOfString=="function"?E.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(a))+s*(1e3/i)||0)/1e3):(u=d&&cr(c[a])==="object"&&!isNaN(parseInt(c[a][m],10))?c[a][m]/A:0,E.push((o[a]||_)/l+u)),m=a;return E},lk=Nl.getStringUnitWidth=function(r,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return Nl.processArabic&&(r=Nl.processArabic(r)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(r,t,n)/t:rd.apply(this,arguments).reduce(function(i,s){return i+s},0)},ck=function(r,e,t,a){for(var n=[],i=0,s=r.length,o=0;i!==s&&o+e[i]<t;)o+=e[i],i++;n.push(r.slice(0,i));var l=i;for(o=0;i!==s;)o+e[i]>a&&(n.push(r.slice(l,i)),o=0,l=i),o+=e[i],i++;return l!==i&&n.push(r.slice(l,i)),n},Ak=function(r,e,t){t||(t={});var a,n,i,s,o,l,c,A=[],d=[A],u=t.textIndent||0,g=0,m=0,_=r.split(" "),E=rd.apply(this,[" ",t])[0];if(l=t.lineIndent===-1?_[0].length+2:t.lineIndent||0){var y=Array(l).join(" "),w=[];_.map(function(R){(R=R.split(/\s*\n/)).length>1?w=w.concat(R.map(function(k,h){return(h&&k.length?`
|
|
609
609
|
`:"")+k})):w.push(R[0])}),_=w,l=lk.apply(this,[y,t])}for(i=0,s=_.length;i<s;i++){var N=0;if(a=_[i],l&&a[0]==`
|
|
610
|
-
`&&(a=a.substr(1),N=1),u+g+(m=(n=rd.apply(this,[a,t])).reduce(function(R,k){return R+k},0))>e||N){if(m>e){for(o=ck.apply(this,[a,n,e-(u+g),e]),A.push(o.shift()),A=[o.pop()];o.length;)d.push([o.shift()]);m=n.slice(a.length-(A[0]?A[0].length:0)).reduce(function(R,k){return R+k},0)}else A=[a];d.push(A),u=m+l,g=E}else A.push(a),u+=g+m,g=E}return c=l?function(R,k){return(k?y:"")+R.join(" ")}:function(R){return R.join(" ")},d.map(c)},Nl.splitTextToSize=function(r,e,t){var a,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var d=this.internal.getFont(A.fontName,A.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var o,l,c=[];for(o=0,l=a.length;o<l;o++)c=c.concat(Ak.apply(this,[a[o],s,i]));return c},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",t={},a={},n=0;n<e.length;n++)t[e[n]]="0123456789abcdef"[n],a["0123456789abcdef"[n]]=e[n];var i=function(d){return"0x"+parseInt(d,10).toString(16)},s=r.__fontmetrics__.compress=function(d){var u,g,m,_,E=["{"];for(var y in d){if(u=d[y],isNaN(parseInt(y,10))?g="'"+y+"'":(y=parseInt(y,10),g=(g=i(y).slice(2)).slice(0,-1)+a[g.slice(-1)]),typeof u=="number")u<0?(m=i(u).slice(3),_="-"):(m=i(u).slice(2),_=""),m=_+m.slice(0,-1)+a[m.slice(-1)];else{if(Ar(u)!=="object")throw new Error("Don't know what to do with value type "+Ar(u)+".");m=s(u)}E.push(g+m)}return E.push("}"),E.join("")},o=r.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var u,g,m,_,E={},y=1,w=E,N=[],R="",k="",h=d.length-1,O=1;O<h;O+=1)(_=d[O])=="'"?u?(m=u.join(""),u=void 0):u=[]:u?u.push(_):_=="{"?(N.push([w,m]),w={},m=void 0):_=="}"?((g=N.pop())[0][g[1]]=w,m=void 0,w=g[0]):_=="-"?y=-1:m===void 0?t.hasOwnProperty(_)?(R+=t[_],m=parseInt(R,16)*y,y=1,R=""):R+=_:t.hasOwnProperty(_)?(k+=t[_],w[m]=parseInt(k,16)*y,y=1,m=void 0,k=""):k+=_;return E},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}},A={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}}}")}};r.events.push(["addFont",function(d){var u=d.font,g=A.Unicode[u.postScriptName];g&&(u.metadata.Unicode={},u.metadata.Unicode.widths=g.widths,u.metadata.Unicode.kerning=g.kerning);var m=c.Unicode[u.postScriptName];m&&(u.metadata.Unicode.encoding=m,u.encoding=m.codePages[0])}])}(Bt.API),function(r){var e=function(t){for(var a=t.length,n=new Uint8Array(a),i=0;i<a;i++)n[i]=t.charCodeAt(i);return n};r.API.events.push(["addFont",function(t){var a=void 0,n=t.font,i=t.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(a=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(s,o){o=/^\x00\x01\x00\x00/.test(o)?e(o):e(Rc(o)),s.metadata=r.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(n,a)}}])}(Bt),function(r){function e(){return(xt.canvg?Promise.resolve(xt.canvg):Promise.resolve().then(()=>fhe)).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}Bt.API.addSvgAsImage=function(t,a,n,i,s,o,l,c){if(isNaN(a)||isNaN(n))throw Cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(s))throw Cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=i,A.height=s;var d=A.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,A.width,A.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return e().then(function(m){return m.fromString(d,t,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(u)}).then(function(){g.addImage(A.toDataURL("image/jpeg",1),a,n,i,s,l,c)})}}(),Bt.API.putTotalPages=function(r){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var n=0;n<this.internal.pages[a].length;n++)this.internal.pages[a][n]=this.internal.pages[a][n].replace(e,t);return this},Bt.API.viewerPreferences=function(r,e){var t;r=r||{},e=e||!1;var a,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}},o=Object.keys(s),l=[],c=0,A=0,d=0;function u(m,_){var E,y=!1;for(E=0;E<m.length;E+=1)m[E]===_&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,r==="reset"||e===!0){var g=o.length;for(d=0;d<g;d+=1)t[o[d]].value=t[o[d]].defaultValue,t[o[d]].explicitSet=!1}if(Ar(r)==="object"){for(n in r)if(i=r[n],u(o,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&u(t[n].valueSet,i))t[n].value=i;else if(t[n].type==="integer"&&Number.isInteger(i))t[n].value=i;else if(t[n].type==="array"){for(c=0;c<i.length;c+=1)if(a=!0,i[c].length===1&&typeof i[c][0]=="number")l.push(String(i[c]-1));else if(i[c].length>1){for(A=0;A<i[c].length;A+=1)typeof i[c][A]!="number"&&(a=!1);a===!0&&l.push([i[c][0]-1,i[c][1]-1].join(" "))}t[n].value="["+l.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,_=[];for(m in t)t[m].explicitSet===!0&&(t[m].type==="name"?_.push("/"+m+" /"+t[m].value):_.push("/"+m+" "+t[m].value));_.length!==0&&this.internal.write(`/ViewerPreferences
|
|
610
|
+
`&&(a=a.substr(1),N=1),u+g+(m=(n=rd.apply(this,[a,t])).reduce(function(R,k){return R+k},0))>e||N){if(m>e){for(o=ck.apply(this,[a,n,e-(u+g),e]),A.push(o.shift()),A=[o.pop()];o.length;)d.push([o.shift()]);m=n.slice(a.length-(A[0]?A[0].length:0)).reduce(function(R,k){return R+k},0)}else A=[a];d.push(A),u=m+l,g=E}else A.push(a),u+=g+m,g=E}return c=l?function(R,k){return(k?y:"")+R.join(" ")}:function(R){return R.join(" ")},d.map(c)},Nl.splitTextToSize=function(r,e,t){var a,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var d=this.internal.getFont(A.fontName,A.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var o,l,c=[];for(o=0,l=a.length;o<l;o++)c=c.concat(Ak.apply(this,[a[o],s,i]));return c},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",t={},a={},n=0;n<e.length;n++)t[e[n]]="0123456789abcdef"[n],a["0123456789abcdef"[n]]=e[n];var i=function(d){return"0x"+parseInt(d,10).toString(16)},s=r.__fontmetrics__.compress=function(d){var u,g,m,_,E=["{"];for(var y in d){if(u=d[y],isNaN(parseInt(y,10))?g="'"+y+"'":(y=parseInt(y,10),g=(g=i(y).slice(2)).slice(0,-1)+a[g.slice(-1)]),typeof u=="number")u<0?(m=i(u).slice(3),_="-"):(m=i(u).slice(2),_=""),m=_+m.slice(0,-1)+a[m.slice(-1)];else{if(cr(u)!=="object")throw new Error("Don't know what to do with value type "+cr(u)+".");m=s(u)}E.push(g+m)}return E.push("}"),E.join("")},o=r.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var u,g,m,_,E={},y=1,w=E,N=[],R="",k="",h=d.length-1,O=1;O<h;O+=1)(_=d[O])=="'"?u?(m=u.join(""),u=void 0):u=[]:u?u.push(_):_=="{"?(N.push([w,m]),w={},m=void 0):_=="}"?((g=N.pop())[0][g[1]]=w,m=void 0,w=g[0]):_=="-"?y=-1:m===void 0?t.hasOwnProperty(_)?(R+=t[_],m=parseInt(R,16)*y,y=1,R=""):R+=_:t.hasOwnProperty(_)?(k+=t[_],w[m]=parseInt(k,16)*y,y=1,m=void 0,k=""):k+=_;return E},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}},A={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}}}")}};r.events.push(["addFont",function(d){var u=d.font,g=A.Unicode[u.postScriptName];g&&(u.metadata.Unicode={},u.metadata.Unicode.widths=g.widths,u.metadata.Unicode.kerning=g.kerning);var m=c.Unicode[u.postScriptName];m&&(u.metadata.Unicode.encoding=m,u.encoding=m.codePages[0])}])}(Bt.API),function(r){var e=function(t){for(var a=t.length,n=new Uint8Array(a),i=0;i<a;i++)n[i]=t.charCodeAt(i);return n};r.API.events.push(["addFont",function(t){var a=void 0,n=t.font,i=t.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(a=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(s,o){o=/^\x00\x01\x00\x00/.test(o)?e(o):e(Rc(o)),s.metadata=r.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(n,a)}}])}(Bt),function(r){function e(){return(xt.canvg?Promise.resolve(xt.canvg):Promise.resolve().then(()=>fhe)).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}Bt.API.addSvgAsImage=function(t,a,n,i,s,o,l,c){if(isNaN(a)||isNaN(n))throw Cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(s))throw Cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=i,A.height=s;var d=A.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,A.width,A.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return e().then(function(m){return m.fromString(d,t,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(u)}).then(function(){g.addImage(A.toDataURL("image/jpeg",1),a,n,i,s,l,c)})}}(),Bt.API.putTotalPages=function(r){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var n=0;n<this.internal.pages[a].length;n++)this.internal.pages[a][n]=this.internal.pages[a][n].replace(e,t);return this},Bt.API.viewerPreferences=function(r,e){var t;r=r||{},e=e||!1;var a,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}},o=Object.keys(s),l=[],c=0,A=0,d=0;function u(m,_){var E,y=!1;for(E=0;E<m.length;E+=1)m[E]===_&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,r==="reset"||e===!0){var g=o.length;for(d=0;d<g;d+=1)t[o[d]].value=t[o[d]].defaultValue,t[o[d]].explicitSet=!1}if(cr(r)==="object"){for(n in r)if(i=r[n],u(o,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&u(t[n].valueSet,i))t[n].value=i;else if(t[n].type==="integer"&&Number.isInteger(i))t[n].value=i;else if(t[n].type==="array"){for(c=0;c<i.length;c+=1)if(a=!0,i[c].length===1&&typeof i[c][0]=="number")l.push(String(i[c]-1));else if(i[c].length>1){for(A=0;A<i[c].length;A+=1)typeof i[c][A]!="number"&&(a=!1);a===!0&&l.push([i[c][0]-1,i[c][1]-1].join(" "))}t[n].value="["+l.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,_=[];for(m in t)t[m].explicitSet===!0&&(t[m].type==="name"?_.push("/"+m+" /"+t[m].value):_.push("/"+m+" "+t[m].value));_.length!==0&&this.internal.write(`/ViewerPreferences
|
|
611
611
|
<<
|
|
612
612
|
`+_.join(`
|
|
613
613
|
`)+`
|
|
@@ -639,7 +639,7 @@ end`};e.events.push(["putFont",function(i){(function(s){var o=s.font,l=s.out,c=s
|
|
|
639
639
|
`)}return""+t},e}();const Mfe=()=>{const[r,e]=kr.useState(!1);return{downloadPdf:async(a,n,i,s)=>{e(!0);const o=a.length;s&&s();const l=document.getElementById("slide-1");if(l===null){console.error("The slide does not exist.");return}const{width:c,height:A}=await xh(l),d=new Bt({orientation:"l",unit:"px",format:[c/5,A/5],compress:!0});for(let u=1;u<=o;u++){const g=document.getElementById(`slide-${u}`);if(g===null){console.log(`slide-${u}`),console.error("The slide does not exist.");return}const m=await xh(g),_=m.toDataURL("image/svg",1);i&&i(),d.addImage(_,"SVG",0,0,m.width/5,m.height/5,`slide-${u}`),u!==o&&d.addPage()}d.save(n??"richmd_slide.pdf"),e(!1)},isLoading:r}},Ffe=({text:r})=>{const{html:e,slide:t}=Lm(r,!0),{isLoading:a,downloadPdf:n}=Mfe(),i=kr.useCallback(()=>{n(t)},[]);return kr.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:"auto",overflow:"scroll",gap:"20px"}},kr.createElement("button",{onClick:i,style:{margin:"20px 0",cursor:"pointer",fontSize:"1rem"},disabled:a},a?"Downloading....":"PDF Download"),sp(e))};function Pfe(r,e,t,a){const n=wA.useRef(t),i=wA.useRef(a);wA.useEffect(()=>{n.current=t,i.current=a}),wA.useEffect(()=>{const s=r&&"current"in r?r.current:r;if(!s)return;let o=0;function l(...A){o||n.current.apply(this,A)}s.addEventListener(e,l);const c=i.current;return()=>{o=1,s.removeEventListener(e,l),c&&c()}},[r,e])}const Ufe=({text:r,isController:e=!1})=>{const{slide:t}=Lm(r,!0),[a,n]=kr.useState(0),i=t.length-1,s=kr.useMemo(()=>sp(t[a]),[a,t]),o=kr.useCallback(()=>{a!==i&&n(A=>A+1)},[a,i,t]),l=kr.useCallback(()=>{a!==0&&n(A=>A-1)},[a,t]),c=kr.useCallback(A=>{(A.key==="ArrowRight"||A.key==="Enter")&&o(),(A.key==="ArrowLeft"||A.key==="Backspace")&&l(),A.key==="Escape"&&n(0)},[o,l]);return typeof window<"u"&&Pfe(window,"keydown",c),kr.createElement("div",{className:"richmd-slide"},s,e&&kr.createElement("div",{className:"slide-control-wrap"},kr.createElement("div",{className:"slide-control"},kr.createElement("button",{onClick:()=>l()},kr.createElement("svg",{width:"25px",height:"25px",viewBox:"0 0 291 338",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"slide-button"},kr.createElement("path",{d:"M0 169L291 0.991089V337.009L0 169Z",fill:"#71a3e3"}))),kr.createElement("button",{onClick:()=>o()},kr.createElement("svg",{width:"25px",height:"25px",viewBox:"0 0 291 338",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"slide-button"},kr.createElement("path",{d:"M291 169L0 337.009V0.991074L291 169Z",fill:"#71a3e3"}))))))},Qfe=({text:r,isController:e=!1,pdfDownload:t=!1})=>t?kr.createElement(Ffe,{text:r}):kr.createElement(Ufe,{text:r,isController:e});/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:_k,setPrototypeOf:mk,isFrozen:zfe,getPrototypeOf:Hfe,getOwnPropertyDescriptor:Gfe}=Object;let{freeze:ln,seal:qn,create:hk}=Object,{apply:a0,construct:n0}=typeof Reflect<"u"&&Reflect;ln||(ln=function(e){return e}),qn||(qn=function(e){return e}),a0||(a0=function(e,t,a){return e.apply(t,a)}),n0||(n0=function(e,t){return new e(...t)});const ad=An(Array.prototype.forEach),qfe=An(Array.prototype.lastIndexOf),bk=An(Array.prototype.pop),Bc=An(Array.prototype.push),Vfe=An(Array.prototype.splice),nd=An(String.prototype.toLowerCase),i0=An(String.prototype.toString),yk=An(String.prototype.match),xc=An(String.prototype.replace),Yfe=An(String.prototype.indexOf),jfe=An(String.prototype.trim),gi=An(Object.prototype.hasOwnProperty),cn=An(RegExp.prototype.test),Dc=Kfe(TypeError);function An(r){return function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return a0(r,e,a)}}function Kfe(r){return function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return n0(r,t)}}function Xt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nd;mk&&mk(r,null);let a=e.length;for(;a--;){let n=e[a];if(typeof n=="string"){const i=t(n);i!==n&&(zfe(e)||(e[a]=i),n=i)}r[n]=!0}return r}function Wfe(r){for(let e=0;e<r.length;e++)gi(r,e)||(r[e]=null);return r}function ko(r){const e=hk(null);for(const[t,a]of _k(r))gi(r,t)&&(Array.isArray(a)?e[t]=Wfe(a):a&&typeof a=="object"&&a.constructor===Object?e[t]=ko(a):e[t]=a);return e}function Lc(r,e){for(;r!==null;){const a=Gfe(r,e);if(a){if(a.get)return An(a.get);if(typeof a.value=="function")return An(a.value)}r=Hfe(r)}function t(){return null}return t}const vk=ln(["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","section","select","shadow","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"]),s0=ln(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),o0=ln(["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"]),$fe=ln(["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"]),l0=ln(["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"]),Xfe=ln(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ek=ln(["#text"]),Sk=ln(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),c0=ln(["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","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"]),wk=ln(["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"]),id=ln(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zfe=qn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jfe=qn(/<%[\w\W]*|[\w\W]*%>/gm),e_e=qn(/\$\{[\w\W]*/gm),t_e=qn(/^data-[\-\w.\u00B7-\uFFFF]+$/),r_e=qn(/^aria-[\-\w]+$/),Ck=qn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),a_e=qn(/^(?:\w+script|data):/i),n_e=qn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tk=qn(/^html$/i),i_e=qn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nk=Object.freeze({__proto__:null,ARIA_ATTR:r_e,ATTR_WHITESPACE:n_e,CUSTOM_ELEMENT:i_e,DATA_ATTR:t_e,DOCTYPE_NAME:Tk,ERB_EXPR:Jfe,IS_ALLOWED_URI:Ck,IS_SCRIPT_OR_DATA:a_e,MUSTACHE_EXPR:Zfe,TMPLIT_EXPR:e_e});const Mc={element:1,text:3,progressingInstruction:7,comment:8,document:9},s_e=function(){return typeof window>"u"?null:window},o_e=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(a=t.getAttribute(n));const i="dompurify"+(a?"#"+a:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},kk=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ok(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s_e();const e=ht=>Ok(ht);if(e.version="3.2.4",e.removed=[],!r||!r.document||r.document.nodeType!==Mc.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const a=t,n=a.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:A=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:g}=r,m=l.prototype,_=Lc(m,"cloneNode"),E=Lc(m,"remove"),y=Lc(m,"nextSibling"),w=Lc(m,"childNodes"),N=Lc(m,"parentNode");if(typeof s=="function"){const ht=t.createElement("template");ht.content&&ht.content.ownerDocument&&(t=ht.content.ownerDocument)}let R,k="";const{implementation:h,createNodeIterator:O,createDocumentFragment:L,getElementsByTagName:Y}=t,{importNode:K}=a;let I=kk();e.isSupported=typeof _k=="function"&&typeof N=="function"&&h&&h.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:ee,ARIA_ATTR:oe,IS_SCRIPT_OR_DATA:ie,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:se}=Nk;let{IS_ALLOWED_URI:Ae}=Nk,ye=null;const B=Xt({},[...vk,...s0,...o0,...l0,...Ek]);let G=null;const j=Xt({},[...Sk,...c0,...wk,...id]);let $=Object.seal(hk(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}})),ne=null,ce=null,_e=!0,me=!0,Be=!1,Oe=!0,ze=!1,He=!0,rt=!1,Ce=!1,Z=!1,_t=!1,tt=!1,Fe=!1,Ye=!0,Ke=!1;const We="user-content-";let Te=!0,Me=!1,$e={},Xe=null;const At=Xt({},["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"]);let Ft=null;const mt=Xt({},["audio","video","img","source","image","track"]);let wt=null;const Ze=Xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rr="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",mr="http://www.w3.org/1999/xhtml";let Vt=mr,Jt=!1,Qr=null;const Wt=Xt({},[rr,Lt,mr],i0);let Jr=Xt({},["mi","mo","mn","ms","mtext"]),Et=Xt({},["annotation-xml"]);const Fr=Xt({},["title","style","font","a","script"]);let Ht=null;const te=["application/xhtml+xml","text/html"],ve="text/html";let Ie=null,Ct=null;const $t=t.createElement("form"),tr=function(pe){return pe instanceof RegExp||pe instanceof Function},st=function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ct&&Ct===pe)){if((!pe||typeof pe!="object")&&(pe={}),pe=ko(pe),Ht=te.indexOf(pe.PARSER_MEDIA_TYPE)===-1?ve:pe.PARSER_MEDIA_TYPE,Ie=Ht==="application/xhtml+xml"?i0:nd,ye=gi(pe,"ALLOWED_TAGS")?Xt({},pe.ALLOWED_TAGS,Ie):B,G=gi(pe,"ALLOWED_ATTR")?Xt({},pe.ALLOWED_ATTR,Ie):j,Qr=gi(pe,"ALLOWED_NAMESPACES")?Xt({},pe.ALLOWED_NAMESPACES,i0):Wt,wt=gi(pe,"ADD_URI_SAFE_ATTR")?Xt(ko(Ze),pe.ADD_URI_SAFE_ATTR,Ie):Ze,Ft=gi(pe,"ADD_DATA_URI_TAGS")?Xt(ko(mt),pe.ADD_DATA_URI_TAGS,Ie):mt,Xe=gi(pe,"FORBID_CONTENTS")?Xt({},pe.FORBID_CONTENTS,Ie):At,ne=gi(pe,"FORBID_TAGS")?Xt({},pe.FORBID_TAGS,Ie):{},ce=gi(pe,"FORBID_ATTR")?Xt({},pe.FORBID_ATTR,Ie):{},$e=gi(pe,"USE_PROFILES")?pe.USE_PROFILES:!1,_e=pe.ALLOW_ARIA_ATTR!==!1,me=pe.ALLOW_DATA_ATTR!==!1,Be=pe.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=pe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ze=pe.SAFE_FOR_TEMPLATES||!1,He=pe.SAFE_FOR_XML!==!1,rt=pe.WHOLE_DOCUMENT||!1,_t=pe.RETURN_DOM||!1,tt=pe.RETURN_DOM_FRAGMENT||!1,Fe=pe.RETURN_TRUSTED_TYPE||!1,Z=pe.FORCE_BODY||!1,Ye=pe.SANITIZE_DOM!==!1,Ke=pe.SANITIZE_NAMED_PROPS||!1,Te=pe.KEEP_CONTENT!==!1,Me=pe.IN_PLACE||!1,Ae=pe.ALLOWED_URI_REGEXP||Ck,Vt=pe.NAMESPACE||mr,Jr=pe.MATHML_TEXT_INTEGRATION_POINTS||Jr,Et=pe.HTML_INTEGRATION_POINTS||Et,$=pe.CUSTOM_ELEMENT_HANDLING||{},pe.CUSTOM_ELEMENT_HANDLING&&tr(pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),pe.CUSTOM_ELEMENT_HANDLING&&tr(pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),pe.CUSTOM_ELEMENT_HANDLING&&typeof pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ze&&(me=!1),tt&&(_t=!0),$e&&(ye=Xt({},Ek),G=[],$e.html===!0&&(Xt(ye,vk),Xt(G,Sk)),$e.svg===!0&&(Xt(ye,s0),Xt(G,c0),Xt(G,id)),$e.svgFilters===!0&&(Xt(ye,o0),Xt(G,c0),Xt(G,id)),$e.mathMl===!0&&(Xt(ye,l0),Xt(G,wk),Xt(G,id))),pe.ADD_TAGS&&(ye===B&&(ye=ko(ye)),Xt(ye,pe.ADD_TAGS,Ie)),pe.ADD_ATTR&&(G===j&&(G=ko(G)),Xt(G,pe.ADD_ATTR,Ie)),pe.ADD_URI_SAFE_ATTR&&Xt(wt,pe.ADD_URI_SAFE_ATTR,Ie),pe.FORBID_CONTENTS&&(Xe===At&&(Xe=ko(Xe)),Xt(Xe,pe.FORBID_CONTENTS,Ie)),Te&&(ye["#text"]=!0),rt&&Xt(ye,["html","head","body"]),ye.table&&(Xt(ye,["tbody"]),delete ne.tbody),pe.TRUSTED_TYPES_POLICY){if(typeof pe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Dc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof pe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Dc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=pe.TRUSTED_TYPES_POLICY,k=R.createHTML("")}else R===void 0&&(R=o_e(g,n)),R!==null&&typeof k=="string"&&(k=R.createHTML(""));ln&&ln(pe),Ct=pe}},Re=Xt({},[...s0,...o0,...$fe]),St=Xt({},[...l0,...Xfe]),dr=function(pe){let Qe=N(pe);(!Qe||!Qe.tagName)&&(Qe={namespaceURI:Vt,tagName:"template"});const dt=nd(pe.tagName),ar=nd(Qe.tagName);return Qr[pe.namespaceURI]?pe.namespaceURI===Lt?Qe.namespaceURI===mr?dt==="svg":Qe.namespaceURI===rr?dt==="svg"&&(ar==="annotation-xml"||Jr[ar]):!!Re[dt]:pe.namespaceURI===rr?Qe.namespaceURI===mr?dt==="math":Qe.namespaceURI===Lt?dt==="math"&&Et[ar]:!!St[dt]:pe.namespaceURI===mr?Qe.namespaceURI===Lt&&!Et[ar]||Qe.namespaceURI===rr&&!Jr[ar]?!1:!St[dt]&&(Fr[dt]||!Re[dt]):!!(Ht==="application/xhtml+xml"&&Qr[pe.namespaceURI]):!1},Pt=function(pe){Bc(e.removed,{element:pe});try{N(pe).removeChild(pe)}catch{E(pe)}},hr=function(pe,Qe){try{Bc(e.removed,{attribute:Qe.getAttributeNode(pe),from:Qe})}catch{Bc(e.removed,{attribute:null,from:Qe})}if(Qe.removeAttribute(pe),pe==="is")if(_t||tt)try{Pt(Qe)}catch{}else try{Qe.setAttribute(pe,"")}catch{}},Tr=function(pe){let Qe=null,dt=null;if(Z)pe="<remove></remove>"+pe;else{const Vr=yk(pe,/^[\r\n\t ]+/);dt=Vr&&Vr[0]}Ht==="application/xhtml+xml"&&Vt===mr&&(pe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+pe+"</body></html>");const ar=R?R.createHTML(pe):pe;if(Vt===mr)try{Qe=new u().parseFromString(ar,Ht)}catch{}if(!Qe||!Qe.documentElement){Qe=h.createDocument(Vt,"template",null);try{Qe.documentElement.innerHTML=Jt?k:ar}catch{}}const qr=Qe.body||Qe.documentElement;return pe&&dt&&qr.insertBefore(t.createTextNode(dt),qr.childNodes[0]||null),Vt===mr?Y.call(Qe,rt?"html":"body")[0]:rt?Qe.documentElement:qr},ba=function(pe){return O.call(pe.ownerDocument||pe,pe,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Yn=function(pe){return pe instanceof d&&(typeof pe.nodeName!="string"||typeof pe.textContent!="string"||typeof pe.removeChild!="function"||!(pe.attributes instanceof A)||typeof pe.removeAttribute!="function"||typeof pe.setAttribute!="function"||typeof pe.namespaceURI!="string"||typeof pe.insertBefore!="function"||typeof pe.hasChildNodes!="function")},Xa=function(pe){return typeof o=="function"&&pe instanceof o};function Gr(ht,pe,Qe){ad(ht,dt=>{dt.call(e,pe,Qe,Ct)})}const Za=function(pe){let Qe=null;if(Gr(I.beforeSanitizeElements,pe,null),Yn(pe))return Pt(pe),!0;const dt=Ie(pe.nodeName);if(Gr(I.uponSanitizeElement,pe,{tagName:dt,allowedTags:ye}),pe.hasChildNodes()&&!Xa(pe.firstElementChild)&&cn(/<[/\w]/g,pe.innerHTML)&&cn(/<[/\w]/g,pe.textContent)||pe.nodeType===Mc.progressingInstruction||He&&pe.nodeType===Mc.comment&&cn(/<[/\w]/g,pe.data))return Pt(pe),!0;if(!ye[dt]||ne[dt]){if(!ne[dt]&&en(dt)&&($.tagNameCheck instanceof RegExp&&cn($.tagNameCheck,dt)||$.tagNameCheck instanceof Function&&$.tagNameCheck(dt)))return!1;if(Te&&!Xe[dt]){const ar=N(pe)||pe.parentNode,qr=w(pe)||pe.childNodes;if(qr&&ar){const Vr=qr.length;for(let va=Vr-1;va>=0;--va){const ea=_(qr[va],!0);ea.__removalCount=(pe.__removalCount||0)+1,ar.insertBefore(ea,y(pe))}}}return Pt(pe),!0}return pe instanceof l&&!dr(pe)||(dt==="noscript"||dt==="noembed"||dt==="noframes")&&cn(/<\/no(script|embed|frames)/i,pe.innerHTML)?(Pt(pe),!0):(ze&&pe.nodeType===Mc.text&&(Qe=pe.textContent,ad([M,V,Q],ar=>{Qe=xc(Qe,ar," ")}),pe.textContent!==Qe&&(Bc(e.removed,{element:pe.cloneNode()}),pe.textContent=Qe)),Gr(I.afterSanitizeElements,pe,null),!1)},Ja=function(pe,Qe,dt){if(Ye&&(Qe==="id"||Qe==="name")&&(dt in t||dt in $t))return!1;if(!(me&&!ce[Qe]&&cn(ee,Qe))){if(!(_e&&cn(oe,Qe))){if(!G[Qe]||ce[Qe]){if(!(en(pe)&&($.tagNameCheck instanceof RegExp&&cn($.tagNameCheck,pe)||$.tagNameCheck instanceof Function&&$.tagNameCheck(pe))&&($.attributeNameCheck instanceof RegExp&&cn($.attributeNameCheck,Qe)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(Qe))||Qe==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&cn($.tagNameCheck,dt)||$.tagNameCheck instanceof Function&&$.tagNameCheck(dt))))return!1}else if(!wt[Qe]){if(!cn(Ae,xc(dt,re,""))){if(!((Qe==="src"||Qe==="xlink:href"||Qe==="href")&&pe!=="script"&&Yfe(dt,"data:")===0&&Ft[pe])){if(!(Be&&!cn(ie,xc(dt,re,"")))){if(dt)return!1}}}}}}return!0},en=function(pe){return pe!=="annotation-xml"&&yk(pe,se)},ya=function(pe){Gr(I.beforeSanitizeAttributes,pe,null);const{attributes:Qe}=pe;if(!Qe||Yn(pe))return;const dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let ar=Qe.length;for(;ar--;){const qr=Qe[ar],{name:Vr,namespaceURI:va,value:ea}=qr,jn=Ie(Vr);let Pe=Vr==="value"?ea:jfe(ea);if(dt.attrName=jn,dt.attrValue=Pe,dt.keepAttr=!0,dt.forceKeepAttr=void 0,Gr(I.uponSanitizeAttribute,pe,dt),Pe=dt.attrValue,Ke&&(jn==="id"||jn==="name")&&(hr(Vr,pe),Pe=We+Pe),He&&cn(/((--!?|])>)|<\/(style|title)/i,Pe)){hr(Vr,pe);continue}if(dt.forceKeepAttr||(hr(Vr,pe),!dt.keepAttr))continue;if(!Oe&&cn(/\/>/i,Pe)){hr(Vr,pe);continue}ze&&ad([M,V,Q],Yt=>{Pe=xc(Pe,Yt," ")});const yt=Ie(pe.nodeName);if(Ja(yt,jn,Pe)){if(R&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!va)switch(g.getAttributeType(yt,jn)){case"TrustedHTML":{Pe=R.createHTML(Pe);break}case"TrustedScriptURL":{Pe=R.createScriptURL(Pe);break}}try{va?pe.setAttributeNS(va,Vr,Pe):pe.setAttribute(Vr,Pe),Yn(pe)?Pt(pe):bk(e.removed)}catch{}}}Gr(I.afterSanitizeAttributes,pe,null)},Sn=function ht(pe){let Qe=null;const dt=ba(pe);for(Gr(I.beforeSanitizeShadowDOM,pe,null);Qe=dt.nextNode();)Gr(I.uponSanitizeShadowNode,Qe,null),Za(Qe),ya(Qe),Qe.content instanceof i&&ht(Qe.content);Gr(I.afterSanitizeShadowDOM,pe,null)};return e.sanitize=function(ht){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qe=null,dt=null,ar=null,qr=null;if(Jt=!ht,Jt&&(ht="<!-->"),typeof ht!="string"&&!Xa(ht))if(typeof ht.toString=="function"){if(ht=ht.toString(),typeof ht!="string")throw Dc("dirty is not a string, aborting")}else throw Dc("toString is not a function");if(!e.isSupported)return ht;if(Ce||st(pe),e.removed=[],typeof ht=="string"&&(Me=!1),Me){if(ht.nodeName){const ea=Ie(ht.nodeName);if(!ye[ea]||ne[ea])throw Dc("root node is forbidden and cannot be sanitized in-place")}}else if(ht instanceof o)Qe=Tr("<!---->"),dt=Qe.ownerDocument.importNode(ht,!0),dt.nodeType===Mc.element&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?Qe=dt:Qe.appendChild(dt);else{if(!_t&&!ze&&!rt&&ht.indexOf("<")===-1)return R&&Fe?R.createHTML(ht):ht;if(Qe=Tr(ht),!Qe)return _t?null:Fe?k:""}Qe&&Z&&Pt(Qe.firstChild);const Vr=ba(Me?ht:Qe);for(;ar=Vr.nextNode();)Za(ar),ya(ar),ar.content instanceof i&&Sn(ar.content);if(Me)return ht;if(_t){if(tt)for(qr=L.call(Qe.ownerDocument);Qe.firstChild;)qr.appendChild(Qe.firstChild);else qr=Qe;return(G.shadowroot||G.shadowrootmode)&&(qr=K.call(a,qr,!0)),qr}let va=rt?Qe.outerHTML:Qe.innerHTML;return rt&&ye["!doctype"]&&Qe.ownerDocument&&Qe.ownerDocument.doctype&&Qe.ownerDocument.doctype.name&&cn(Tk,Qe.ownerDocument.doctype.name)&&(va="<!DOCTYPE "+Qe.ownerDocument.doctype.name+`>
|
|
640
640
|
`+va),ze&&ad([M,V,Q],ea=>{va=xc(va,ea," ")}),R&&Fe?R.createHTML(va):va},e.setConfig=function(){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(ht),Ce=!0},e.clearConfig=function(){Ct=null,Ce=!1},e.isValidAttribute=function(ht,pe,Qe){Ct||st({});const dt=Ie(ht),ar=Ie(pe);return Ja(dt,ar,Qe)},e.addHook=function(ht,pe){typeof pe=="function"&&Bc(I[ht],pe)},e.removeHook=function(ht,pe){if(pe!==void 0){const Qe=qfe(I[ht],pe);return Qe===-1?void 0:Vfe(I[ht],Qe,1)[0]}return bk(I[ht])},e.removeHooks=function(ht){I[ht]=[]},e.removeAllHooks=function(){I=kk()},e}var l_e=Ok();const c_e=Object.freeze(Object.defineProperty({__proto__:null,default:l_e},Symbol.toStringTag,{value:"Module"}));var A0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ik(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Rk={},Bk={},Fc,xk;function Xr(){if(xk)return Fc;xk=1;var r=function(e){return e&&e.Math===Math&&e};return Fc=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof A0=="object"&&A0)||r(typeof Fc=="object"&&Fc)||function(){return this}()||Function("return this")(),Fc}var u0={},d0,Dk;function ca(){return Dk||(Dk=1,d0=function(r){try{return!!r()}catch{return!0}}),d0}var p0,Lk;function fi(){if(Lk)return p0;Lk=1;var r=ca();return p0=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),p0}var g0,Mk;function sd(){if(Mk)return g0;Mk=1;var r=ca();return g0=!r(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),g0}var f0,Fk;function Pa(){if(Fk)return f0;Fk=1;var r=sd(),e=Function.prototype.call;return f0=r?e.bind(e):function(){return e.apply(e,arguments)},f0}var _0={},Pk;function A_e(){if(Pk)return _0;Pk=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return _0.f=t?function(n){var i=e(this,n);return!!i&&i.enumerable}:r,_0}var m0,Uk;function h0(){return Uk||(Uk=1,m0=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),m0}var b0,Qk;function Aa(){if(Qk)return b0;Qk=1;var r=sd(),e=Function.prototype,t=e.call,a=r&&e.bind.bind(t,t);return b0=r?a:function(n){return function(){return t.apply(n,arguments)}},b0}var y0,zk;function Oo(){if(zk)return y0;zk=1;var r=Aa(),e=r({}.toString),t=r("".slice);return y0=function(a){return t(e(a),8,-1)},y0}var v0,Hk;function Gk(){if(Hk)return v0;Hk=1;var r=Aa(),e=ca(),t=Oo(),a=Object,n=r("".split);return v0=e(function(){return!a("z").propertyIsEnumerable(0)})?function(i){return t(i)==="String"?n(i,""):a(i)}:a,v0}var E0,qk;function Io(){return qk||(qk=1,E0=function(r){return r==null}),E0}var S0,Vk;function _i(){if(Vk)return S0;Vk=1;var r=Io(),e=TypeError;return S0=function(t){if(r(t))throw new e("Can't call method on "+t);return t},S0}var w0,Yk;function Pc(){if(Yk)return w0;Yk=1;var r=Gk(),e=_i();return w0=function(t){return r(e(t))},w0}var C0,jk;function ua(){if(jk)return C0;jk=1;var r=typeof document=="object"&&document.all;return C0=typeof r>"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},C0}var T0,Kk;function mi(){if(Kk)return T0;Kk=1;var r=ua();return T0=function(e){return typeof e=="object"?e!==null:r(e)},T0}var N0,Wk;function Ro(){if(Wk)return N0;Wk=1;var r=Xr(),e=ua(),t=function(a){return e(a)?a:void 0};return N0=function(a,n){return arguments.length<2?t(r[a]):r[a]&&r[a][n]},N0}var k0,$k;function od(){if($k)return k0;$k=1;var r=Aa();return k0=r({}.isPrototypeOf),k0}var O0,Xk;function Uc(){if(Xk)return O0;Xk=1;var r=Xr(),e=r.navigator,t=e&&e.userAgent;return O0=t?String(t):"",O0}var I0,Zk;function R0(){if(Zk)return I0;Zk=1;var r=Xr(),e=Uc(),t=r.process,a=r.Deno,n=t&&t.versions||a&&a.version,i=n&&n.v8,s,o;return i&&(s=i.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),I0=o,I0}var B0,Jk;function e5(){if(Jk)return B0;Jk=1;var r=R0(),e=ca(),t=Xr(),a=t.String;return B0=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!a(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}),B0}var x0,t5;function r5(){if(t5)return x0;t5=1;var r=e5();return x0=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",x0}var D0,a5;function n5(){if(a5)return D0;a5=1;var r=Ro(),e=ua(),t=od(),a=r5(),n=Object;return D0=a?function(i){return typeof i=="symbol"}:function(i){var s=r("Symbol");return e(s)&&t(s.prototype,n(i))},D0}var L0,i5;function ld(){if(i5)return L0;i5=1;var r=String;return L0=function(e){try{return r(e)}catch{return"Object"}},L0}var M0,s5;function as(){if(s5)return M0;s5=1;var r=ua(),e=ld(),t=TypeError;return M0=function(a){if(r(a))return a;throw new t(e(a)+" is not a function")},M0}var F0,o5;function kl(){if(o5)return F0;o5=1;var r=as(),e=Io();return F0=function(t,a){var n=t[a];return e(n)?void 0:r(n)},F0}var P0,l5;function u_e(){if(l5)return P0;l5=1;var r=Pa(),e=ua(),t=mi(),a=TypeError;return P0=function(n,i){var s,o;if(i==="string"&&e(s=n.toString)&&!t(o=r(s,n))||e(s=n.valueOf)&&!t(o=r(s,n))||i!=="string"&&e(s=n.toString)&&!t(o=r(s,n)))return o;throw new a("Can't convert object to primitive value")},P0}var U0={exports:{}},Q0,c5;function Pi(){return c5||(c5=1,Q0=!1),Q0}var z0,A5;function H0(){if(A5)return z0;A5=1;var r=Xr(),e=Object.defineProperty;return z0=function(t,a){try{e(r,t,{value:a,configurable:!0,writable:!0})}catch{r[t]=a}return a},z0}var u5;function G0(){if(u5)return U0.exports;u5=1;var r=Pi(),e=Xr(),t=H0(),a="__core-js_shared__",n=U0.exports=e[a]||t(a,{});return(n.versions||(n.versions=[])).push({version:"3.41.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),U0.exports}var q0,d5;function V0(){if(d5)return q0;d5=1;var r=G0();return q0=function(e,t){return r[e]||(r[e]=t||{})},q0}var Y0,p5;function cd(){if(p5)return Y0;p5=1;var r=_i(),e=Object;return Y0=function(t){return e(r(t))},Y0}var j0,g5;function hi(){if(g5)return j0;g5=1;var r=Aa(),e=cd(),t=r({}.hasOwnProperty);return j0=Object.hasOwn||function(n,i){return t(e(n),i)},j0}var K0,f5;function _5(){if(f5)return K0;f5=1;var r=Aa(),e=0,t=Math.random(),a=r(1 .toString);return K0=function(n){return"Symbol("+(n===void 0?"":n)+")_"+a(++e+t,36)},K0}var W0,m5;function Ia(){if(m5)return W0;m5=1;var r=Xr(),e=V0(),t=hi(),a=_5(),n=e5(),i=r5(),s=r.Symbol,o=e("wks"),l=i?s.for||s:s&&s.withoutSetter||a;return W0=function(c){return t(o,c)||(o[c]=n&&t(s,c)?s[c]:l("Symbol."+c)),o[c]},W0}var $0,h5;function d_e(){if(h5)return $0;h5=1;var r=Pa(),e=mi(),t=n5(),a=kl(),n=u_e(),i=Ia(),s=TypeError,o=i("toPrimitive");return $0=function(l,c){if(!e(l)||t(l))return l;var A=a(l,o),d;if(A){if(c===void 0&&(c="default"),d=r(A,l,c),!e(d)||t(d))return d;throw new s("Can't convert object to primitive value")}return c===void 0&&(c="number"),n(l,c)},$0}var X0,b5;function y5(){if(b5)return X0;b5=1;var r=d_e(),e=n5();return X0=function(t){var a=r(t,"string");return e(a)?a:a+""},X0}var Z0,v5;function Ad(){if(v5)return Z0;v5=1;var r=Xr(),e=mi(),t=r.document,a=e(t)&&e(t.createElement);return Z0=function(n){return a?t.createElement(n):{}},Z0}var J0,E5;function S5(){if(E5)return J0;E5=1;var r=fi(),e=ca(),t=Ad();return J0=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),J0}var w5;function ud(){if(w5)return u0;w5=1;var r=fi(),e=Pa(),t=A_e(),a=h0(),n=Pc(),i=y5(),s=hi(),o=S5(),l=Object.getOwnPropertyDescriptor;return u0.f=r?l:function(A,d){if(A=n(A),d=i(d),o)try{return l(A,d)}catch{}if(s(A,d))return a(!e(t.f,A,d),A[d])},u0}var eb={},tb,C5;function T5(){if(C5)return tb;C5=1;var r=fi(),e=ca();return tb=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),tb}var rb,N5;function un(){if(N5)return rb;N5=1;var r=mi(),e=String,t=TypeError;return rb=function(a){if(r(a))return a;throw new t(e(a)+" is not an object")},rb}var k5;function Gs(){if(k5)return eb;k5=1;var r=fi(),e=S5(),t=T5(),a=un(),n=y5(),i=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",A="writable";return eb.f=r?t?function(u,g,m){if(a(u),g=n(g),a(m),typeof u=="function"&&g==="prototype"&&"value"in m&&A in m&&!m[A]){var _=o(u,g);_&&_[A]&&(u[g]=m.value,m={configurable:c in m?m[c]:_[c],enumerable:l in m?m[l]:_[l],writable:!1})}return s(u,g,m)}:s:function(u,g,m){if(a(u),g=n(g),a(m),e)try{return s(u,g,m)}catch{}if("get"in m||"set"in m)throw new i("Accessors not supported");return"value"in m&&(u[g]=m.value),u},eb}var ab,O5;function Qc(){if(O5)return ab;O5=1;var r=fi(),e=Gs(),t=h0();return ab=r?function(a,n,i){return e.f(a,n,t(1,i))}:function(a,n,i){return a[n]=i,a},ab}var nb={exports:{}},ib,I5;function dd(){if(I5)return ib;I5=1;var r=fi(),e=hi(),t=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,n=e(t,"name"),i=n&&(function(){}).name==="something",s=n&&(!r||r&&a(t,"name").configurable);return ib={EXISTS:n,PROPER:i,CONFIGURABLE:s},ib}var sb,R5;function ob(){if(R5)return sb;R5=1;var r=Aa(),e=ua(),t=G0(),a=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(n){return a(n)}),sb=t.inspectSource,sb}var lb,B5;function p_e(){if(B5)return lb;B5=1;var r=Xr(),e=ua(),t=r.WeakMap;return lb=e(t)&&/native code/.test(String(t)),lb}var cb,x5;function Ab(){if(x5)return cb;x5=1;var r=V0(),e=_5(),t=r("keys");return cb=function(a){return t[a]||(t[a]=e(a))},cb}var ub,D5;function db(){return D5||(D5=1,ub={}),ub}var pb,L5;function pd(){if(L5)return pb;L5=1;var r=p_e(),e=Xr(),t=mi(),a=Qc(),n=hi(),i=G0(),s=Ab(),o=db(),l="Object already initialized",c=e.TypeError,A=e.WeakMap,d,u,g,m=function(w){return g(w)?u(w):d(w,{})},_=function(w){return function(N){var R;if(!t(N)||(R=u(N)).type!==w)throw new c("Incompatible receiver, "+w+" required");return R}};if(r||i.state){var E=i.state||(i.state=new A);E.get=E.get,E.has=E.has,E.set=E.set,d=function(w,N){if(E.has(w))throw new c(l);return N.facade=w,E.set(w,N),N},u=function(w){return E.get(w)||{}},g=function(w){return E.has(w)}}else{var y=s("state");o[y]=!0,d=function(w,N){if(n(w,y))throw new c(l);return N.facade=w,a(w,y,N),N},u=function(w){return n(w,y)?w[y]:{}},g=function(w){return n(w,y)}}return pb={set:d,get:u,has:g,enforce:m,getterFor:_},pb}var M5;function F5(){if(M5)return nb.exports;M5=1;var r=Aa(),e=ca(),t=ua(),a=hi(),n=fi(),i=dd().CONFIGURABLE,s=ob(),o=pd(),l=o.enforce,c=o.get,A=String,d=Object.defineProperty,u=r("".slice),g=r("".replace),m=r([].join),_=n&&!e(function(){return d(function(){},"length",{value:8}).length!==8}),E=String(String).split("String"),y=nb.exports=function(w,N,R){u(A(N),0,7)==="Symbol("&&(N="["+g(A(N),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),R&&R.getter&&(N="get "+N),R&&R.setter&&(N="set "+N),(!a(w,"name")||i&&w.name!==N)&&(n?d(w,"name",{value:N,configurable:!0}):w.name=N),_&&R&&a(R,"arity")&&w.length!==R.arity&&d(w,"length",{value:R.arity});try{R&&a(R,"constructor")&&R.constructor?n&&d(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var k=l(w);return a(k,"source")||(k.source=m(E,typeof N=="string"?N:"")),w};return Function.prototype.toString=y(function(){return t(this)&&c(this).source||s(this)},"toString"),nb.exports}var gb,P5;function Bo(){if(P5)return gb;P5=1;var r=ua(),e=Gs(),t=F5(),a=H0();return gb=function(n,i,s,o){o||(o={});var l=o.enumerable,c=o.name!==void 0?o.name:i;if(r(s)&&t(s,c,o),o.global)l?n[i]=s:a(i,s);else{try{o.unsafe?n[i]&&(l=!0):delete n[i]}catch{}l?n[i]=s:e.f(n,i,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return n},gb}var fb={},_b,U5;function g_e(){if(U5)return _b;U5=1;var r=Math.ceil,e=Math.floor;return _b=Math.trunc||function(a){var n=+a;return(n>0?e:r)(n)},_b}var mb,Q5;function gd(){if(Q5)return mb;Q5=1;var r=g_e();return mb=function(e){var t=+e;return t!==t||t===0?0:r(t)},mb}var hb,z5;function f_e(){if(z5)return hb;z5=1;var r=gd(),e=Math.max,t=Math.min;return hb=function(a,n){var i=r(a);return i<0?e(i+n,0):t(i,n)},hb}var bb,H5;function Ol(){if(H5)return bb;H5=1;var r=gd(),e=Math.min;return bb=function(t){var a=r(t);return a>0?e(a,9007199254740991):0},bb}var yb,G5;function vb(){if(G5)return yb;G5=1;var r=Ol();return yb=function(e){return r(e.length)},yb}var Eb,q5;function V5(){if(q5)return Eb;q5=1;var r=Pc(),e=f_e(),t=vb(),a=function(n){return function(i,s,o){var l=r(i),c=t(l);if(c===0)return!n&&-1;var A=e(o,c),d;if(n&&s!==s){for(;c>A;)if(d=l[A++],d!==d)return!0}else for(;c>A;A++)if((n||A in l)&&l[A]===s)return n||A||0;return!n&&-1}};return Eb={includes:a(!0),indexOf:a(!1)},Eb}var Sb,Y5;function j5(){if(Y5)return Sb;Y5=1;var r=Aa(),e=hi(),t=Pc(),a=V5().indexOf,n=db(),i=r([].push);return Sb=function(s,o){var l=t(s),c=0,A=[],d;for(d in l)!e(n,d)&&e(l,d)&&i(A,d);for(;o.length>c;)e(l,d=o[c++])&&(~a(A,d)||i(A,d));return A},Sb}var wb,K5;function Cb(){return K5||(K5=1,wb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),wb}var W5;function __e(){if(W5)return fb;W5=1;var r=j5(),e=Cb(),t=e.concat("length","prototype");return fb.f=Object.getOwnPropertyNames||function(n){return r(n,t)},fb}var Tb={},$5;function m_e(){return $5||($5=1,Tb.f=Object.getOwnPropertySymbols),Tb}var Nb,X5;function h_e(){if(X5)return Nb;X5=1;var r=Ro(),e=Aa(),t=__e(),a=m_e(),n=un(),i=e([].concat);return Nb=r("Reflect","ownKeys")||function(o){var l=t.f(n(o)),c=a.f;return c?i(l,c(o)):l},Nb}var kb,Z5;function b_e(){if(Z5)return kb;Z5=1;var r=hi(),e=h_e(),t=ud(),a=Gs();return kb=function(n,i,s){for(var o=e(i),l=a.f,c=t.f,A=0;A<o.length;A++){var d=o[A];!r(n,d)&&!(s&&r(s,d))&&l(n,d,c(i,d))}},kb}var Ob,J5;function eO(){if(J5)return Ob;J5=1;var r=ca(),e=ua(),t=/#|\.prototype\./,a=function(l,c){var A=i[n(l)];return A===o?!0:A===s?!1:e(c)?r(c):!!c},n=a.normalize=function(l){return String(l).replace(t,".").toLowerCase()},i=a.data={},s=a.NATIVE="N",o=a.POLYFILL="P";return Ob=a,Ob}var Ib,tO;function dn(){if(tO)return Ib;tO=1;var r=Xr(),e=ud().f,t=Qc(),a=Bo(),n=H0(),i=b_e(),s=eO();return Ib=function(o,l){var c=o.target,A=o.global,d=o.stat,u,g,m,_,E,y;if(A?g=r:d?g=r[c]||n(c,{}):g=r[c]&&r[c].prototype,g)for(m in l){if(E=l[m],o.dontCallGetSet?(y=e(g,m),_=y&&y.value):_=g[m],u=s(A?m:c+(d?".":"#")+m,o.forced),!u&&_!==void 0){if(typeof E==typeof _)continue;i(E,_)}(o.sham||_&&_.sham)&&t(E,"sham",!0),a(g,m,E,o)}},Ib}var Rb,rO;function aO(){if(rO)return Rb;rO=1;var r=Xr(),e=Uc(),t=Oo(),a=function(n){return e.slice(0,n.length)===n};return Rb=function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":t(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}(),Rb}var Bb,nO;function fd(){if(nO)return Bb;nO=1;var r=aO();return Bb=r==="NODE",Bb}var xb,iO;function y_e(){if(iO)return xb;iO=1;var r=Aa(),e=as();return xb=function(t,a,n){try{return r(e(Object.getOwnPropertyDescriptor(t,a)[n]))}catch{}},xb}var Db,sO;function v_e(){if(sO)return Db;sO=1;var r=mi();return Db=function(e){return r(e)||e===null},Db}var Lb,oO;function E_e(){if(oO)return Lb;oO=1;var r=v_e(),e=String,t=TypeError;return Lb=function(a){if(r(a))return a;throw new t("Can't set "+e(a)+" as a prototype")},Lb}var Mb,lO;function cO(){if(lO)return Mb;lO=1;var r=y_e(),e=mi(),t=_i(),a=E_e();return Mb=Object.setPrototypeOf||("__proto__"in{}?function(){var n=!1,i={},s;try{s=r(Object.prototype,"__proto__","set"),s(i,[]),n=i instanceof Array}catch{}return function(l,c){return t(l),a(c),e(l)&&(n?s(l,c):l.__proto__=c),l}}():void 0),Mb}var Fb,AO;function _d(){if(AO)return Fb;AO=1;var r=Gs().f,e=hi(),t=Ia(),a=t("toStringTag");return Fb=function(n,i,s){n&&!s&&(n=n.prototype),n&&!e(n,a)&&r(n,a,{configurable:!0,value:i})},Fb}var Pb,uO;function S_e(){if(uO)return Pb;uO=1;var r=F5(),e=Gs();return Pb=function(t,a,n){return n.get&&r(n.get,a,{getter:!0}),n.set&&r(n.set,a,{setter:!0}),e.f(t,a,n)},Pb}var Ub,dO;function w_e(){if(dO)return Ub;dO=1;var r=Ro(),e=S_e(),t=Ia(),a=fi(),n=t("species");return Ub=function(i){var s=r(i);a&&s&&!s[n]&&e(s,n,{configurable:!0,get:function(){return this}})},Ub}var Qb,pO;function C_e(){if(pO)return Qb;pO=1;var r=od(),e=TypeError;return Qb=function(t,a){if(r(a,t))return t;throw new e("Incorrect invocation")},Qb}var zb,gO;function T_e(){if(gO)return zb;gO=1;var r=Ia(),e=r("toStringTag"),t={};return t[e]="z",zb=String(t)==="[object z]",zb}var Hb,fO;function Gb(){if(fO)return Hb;fO=1;var r=T_e(),e=ua(),t=Oo(),a=Ia(),n=a("toStringTag"),i=Object,s=t(function(){return arguments}())==="Arguments",o=function(l,c){try{return l[c]}catch{}};return Hb=r?t:function(l){var c,A,d;return l===void 0?"Undefined":l===null?"Null":typeof(A=o(c=i(l),n))=="string"?A:s?t(c):(d=t(c))==="Object"&&e(c.callee)?"Arguments":d},Hb}var qb,_O;function N_e(){if(_O)return qb;_O=1;var r=Aa(),e=ca(),t=ua(),a=Gb(),n=Ro(),i=ob(),s=function(){},o=n("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=r(l.exec),A=!l.test(s),d=function(m){if(!t(m))return!1;try{return o(s,[],m),!0}catch{return!1}},u=function(m){if(!t(m))return!1;switch(a(m)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return A||!!c(l,i(m))}catch{return!0}};return u.sham=!0,qb=!o||e(function(){var g;return d(d.call)||!d(Object)||!d(function(){g=!0})||g})?u:d,qb}var Vb,mO;function k_e(){if(mO)return Vb;mO=1;var r=N_e(),e=ld(),t=TypeError;return Vb=function(a){if(r(a))return a;throw new t(e(a)+" is not a constructor")},Vb}var Yb,hO;function bO(){if(hO)return Yb;hO=1;var r=un(),e=k_e(),t=Io(),a=Ia(),n=a("species");return Yb=function(i,s){var o=r(i).constructor,l;return o===void 0||t(l=r(o)[n])?s:e(l)},Yb}var jb,yO;function vO(){if(yO)return jb;yO=1;var r=sd(),e=Function.prototype,t=e.apply,a=e.call;return jb=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(t):function(){return a.apply(t,arguments)}),jb}var Kb,EO;function md(){if(EO)return Kb;EO=1;var r=Oo(),e=Aa();return Kb=function(t){if(r(t)==="Function")return e(t)},Kb}var Wb,SO;function $b(){if(SO)return Wb;SO=1;var r=md(),e=as(),t=sd(),a=r(r.bind);return Wb=function(n,i){return e(n),i===void 0?n:t?a(n,i):function(){return n.apply(i,arguments)}},Wb}var Xb,wO;function CO(){if(wO)return Xb;wO=1;var r=Ro();return Xb=r("document","documentElement"),Xb}var Zb,TO;function O_e(){if(TO)return Zb;TO=1;var r=Aa();return Zb=r([].slice),Zb}var Jb,NO;function I_e(){if(NO)return Jb;NO=1;var r=TypeError;return Jb=function(e,t){if(e<t)throw new r("Not enough arguments");return e},Jb}var ey,kO;function OO(){if(kO)return ey;kO=1;var r=Uc();return ey=/(?:ipad|iphone|ipod).*applewebkit/i.test(r),ey}var ty,IO;function RO(){if(IO)return ty;IO=1;var r=Xr(),e=vO(),t=$b(),a=ua(),n=hi(),i=ca(),s=CO(),o=O_e(),l=Ad(),c=I_e(),A=OO(),d=fd(),u=r.setImmediate,g=r.clearImmediate,m=r.process,_=r.Dispatch,E=r.Function,y=r.MessageChannel,w=r.String,N=0,R={},k="onreadystatechange",h,O,L,Y;i(function(){h=r.location});var K=function(Q){if(n(R,Q)){var ee=R[Q];delete R[Q],ee()}},I=function(Q){return function(){K(Q)}},M=function(Q){K(Q.data)},V=function(Q){r.postMessage(w(Q),h.protocol+"//"+h.host)};return(!u||!g)&&(u=function(ee){c(arguments.length,1);var oe=a(ee)?ee:E(ee),ie=o(arguments,1);return R[++N]=function(){e(oe,void 0,ie)},O(N),N},g=function(ee){delete R[ee]},d?O=function(Q){m.nextTick(I(Q))}:_&&_.now?O=function(Q){_.now(I(Q))}:y&&!A?(L=new y,Y=L.port2,L.port1.onmessage=M,O=t(Y.postMessage,Y)):r.addEventListener&&a(r.postMessage)&&!r.importScripts&&h&&h.protocol!=="file:"&&!i(V)?(O=V,r.addEventListener("message",M,!1)):k in l("script")?O=function(Q){s.appendChild(l("script"))[k]=function(){s.removeChild(this),K(Q)}}:O=function(Q){setTimeout(I(Q),0)}),ty={set:u,clear:g},ty}var ry,BO;function R_e(){if(BO)return ry;BO=1;var r=Xr(),e=fi(),t=Object.getOwnPropertyDescriptor;return ry=function(a){if(!e)return r[a];var n=t(r,a);return n&&n.value},ry}var ay,xO;function DO(){if(xO)return ay;xO=1;var r=function(){this.head=null,this.tail=null};return r.prototype={add:function(e){var t={item:e,next:null},a=this.tail;a?a.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}},ay=r,ay}var ny,LO;function B_e(){if(LO)return ny;LO=1;var r=Uc();return ny=/ipad|iphone|ipod/i.test(r)&&typeof Pebble<"u",ny}var iy,MO;function x_e(){if(MO)return iy;MO=1;var r=Uc();return iy=/web0s(?!.*chrome)/i.test(r),iy}var sy,FO;function D_e(){if(FO)return sy;FO=1;var r=Xr(),e=R_e(),t=$b(),a=RO().set,n=DO(),i=OO(),s=B_e(),o=x_e(),l=fd(),c=r.MutationObserver||r.WebKitMutationObserver,A=r.document,d=r.process,u=r.Promise,g=e("queueMicrotask"),m,_,E,y,w;if(!g){var N=new n,R=function(){var k,h;for(l&&(k=d.domain)&&k.exit();h=N.get();)try{h()}catch(O){throw N.head&&m(),O}k&&k.enter()};!i&&!l&&!o&&c&&A?(_=!0,E=A.createTextNode(""),new c(R).observe(E,{characterData:!0}),m=function(){E.data=_=!_}):!s&&u&&u.resolve?(y=u.resolve(void 0),y.constructor=u,w=t(y.then,y),m=function(){w(R)}):l?m=function(){d.nextTick(R)}:(a=t(a,r),m=function(){a(R)}),g=function(k){N.head||m(),N.add(k)}}return sy=g,sy}var oy,PO;function L_e(){return PO||(PO=1,oy=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch{}}),oy}var ly,UO;function cy(){return UO||(UO=1,ly=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}),ly}var Ay,QO;function zc(){if(QO)return Ay;QO=1;var r=Xr();return Ay=r.Promise,Ay}var uy,zO;function Hc(){if(zO)return uy;zO=1;var r=Xr(),e=zc(),t=ua(),a=eO(),n=ob(),i=Ia(),s=aO(),o=Pi(),l=R0(),c=e&&e.prototype,A=i("species"),d=!1,u=t(r.PromiseRejectionEvent),g=a("Promise",function(){var m=n(e),_=m!==String(e);if(!_&&l===66||o&&!(c.catch&&c.finally))return!0;if(!l||l<51||!/native code/.test(m)){var E=new e(function(N){N(1)}),y=function(N){N(function(){},function(){})},w=E.constructor={};if(w[A]=y,d=E.then(function(){})instanceof y,!d)return!0}return!_&&(s==="BROWSER"||s==="DENO")&&!u});return uy={CONSTRUCTOR:g,REJECTION_EVENT:u,SUBCLASSING:d},uy}var dy={},HO;function Gc(){if(HO)return dy;HO=1;var r=as(),e=TypeError,t=function(a){var n,i;this.promise=new a(function(s,o){if(n!==void 0||i!==void 0)throw new e("Bad Promise constructor");n=s,i=o}),this.resolve=r(n),this.reject=r(i)};return dy.f=function(a){return new t(a)},dy}var GO;function M_e(){if(GO)return Bk;GO=1;var r=dn(),e=Pi(),t=fd(),a=Xr(),n=Pa(),i=Bo(),s=cO(),o=_d(),l=w_e(),c=as(),A=ua(),d=mi(),u=C_e(),g=bO(),m=RO().set,_=D_e(),E=L_e(),y=cy(),w=DO(),N=pd(),R=zc(),k=Hc(),h=Gc(),O="Promise",L=k.CONSTRUCTOR,Y=k.REJECTION_EVENT,K=k.SUBCLASSING,I=N.getterFor(O),M=N.set,V=R&&R.prototype,Q=R,ee=V,oe=a.TypeError,ie=a.document,re=a.process,se=h.f,Ae=se,ye=!!(ie&&ie.createEvent&&a.dispatchEvent),B="unhandledrejection",G="rejectionhandled",j=0,$=1,ne=2,ce=1,_e=2,me,Be,Oe,ze,He=function(Te){var Me;return d(Te)&&A(Me=Te.then)?Me:!1},rt=function(Te,Me){var $e=Me.value,Xe=Me.state===$,At=Xe?Te.ok:Te.fail,Ft=Te.resolve,mt=Te.reject,wt=Te.domain,Ze,rr,Lt;try{At?(Xe||(Me.rejection===_e&&Fe(Me),Me.rejection=ce),At===!0?Ze=$e:(wt&&wt.enter(),Ze=At($e),wt&&(wt.exit(),Lt=!0)),Ze===Te.promise?mt(new oe("Promise-chain cycle")):(rr=He(Ze))?n(rr,Ze,Ft,mt):Ft(Ze)):mt($e)}catch(mr){wt&&!Lt&&wt.exit(),mt(mr)}},Ce=function(Te,Me){Te.notified||(Te.notified=!0,_(function(){for(var $e=Te.reactions,Xe;Xe=$e.get();)rt(Xe,Te);Te.notified=!1,Me&&!Te.rejection&&_t(Te)}))},Z=function(Te,Me,$e){var Xe,At;ye?(Xe=ie.createEvent("Event"),Xe.promise=Me,Xe.reason=$e,Xe.initEvent(Te,!1,!0),a.dispatchEvent(Xe)):Xe={promise:Me,reason:$e},!Y&&(At=a["on"+Te])?At(Xe):Te===B&&E("Unhandled promise rejection",$e)},_t=function(Te){n(m,a,function(){var Me=Te.facade,$e=Te.value,Xe=tt(Te),At;if(Xe&&(At=y(function(){t?re.emit("unhandledRejection",$e,Me):Z(B,Me,$e)}),Te.rejection=t||tt(Te)?_e:ce,At.error))throw At.value})},tt=function(Te){return Te.rejection!==ce&&!Te.parent},Fe=function(Te){n(m,a,function(){var Me=Te.facade;t?re.emit("rejectionHandled",Me):Z(G,Me,Te.value)})},Ye=function(Te,Me,$e){return function(Xe){Te(Me,Xe,$e)}},Ke=function(Te,Me,$e){Te.done||(Te.done=!0,$e&&(Te=$e),Te.value=Me,Te.state=ne,Ce(Te,!0))},We=function(Te,Me,$e){if(!Te.done){Te.done=!0,$e&&(Te=$e);try{if(Te.facade===Me)throw new oe("Promise can't be resolved itself");var Xe=He(Me);Xe?_(function(){var At={done:!1};try{n(Xe,Me,Ye(We,At,Te),Ye(Ke,At,Te))}catch(Ft){Ke(At,Ft,Te)}}):(Te.value=Me,Te.state=$,Ce(Te,!1))}catch(At){Ke({done:!1},At,Te)}}};if(L&&(Q=function(Me){u(this,ee),c(Me),n(me,this);var $e=I(this);try{Me(Ye(We,$e),Ye(Ke,$e))}catch(Xe){Ke($e,Xe)}},ee=Q.prototype,me=function(Me){M(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:j,value:null})},me.prototype=i(ee,"then",function(Me,$e){var Xe=I(this),At=se(g(this,Q));return Xe.parent=!0,At.ok=A(Me)?Me:!0,At.fail=A($e)&&$e,At.domain=t?re.domain:void 0,Xe.state===j?Xe.reactions.add(At):_(function(){rt(At,Xe)}),At.promise}),Be=function(){var Te=new me,Me=I(Te);this.promise=Te,this.resolve=Ye(We,Me),this.reject=Ye(Ke,Me)},h.f=se=function(Te){return Te===Q||Te===Oe?new Be(Te):Ae(Te)},!e&&A(R)&&V!==Object.prototype)){ze=V.then,K||i(V,"then",function(Me,$e){var Xe=this;return new Q(function(At,Ft){n(ze,Xe,At,Ft)}).then(Me,$e)},{unsafe:!0});try{delete V.constructor}catch{}s&&s(V,ee)}return r({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:Q}),o(Q,O,!1,!0),l(O),Bk}var qO={},py,VO;function qc(){return VO||(VO=1,py={}),py}var gy,YO;function F_e(){if(YO)return gy;YO=1;var r=Ia(),e=qc(),t=r("iterator"),a=Array.prototype;return gy=function(n){return n!==void 0&&(e.Array===n||a[t]===n)},gy}var fy,jO;function KO(){if(jO)return fy;jO=1;var r=Gb(),e=kl(),t=Io(),a=qc(),n=Ia(),i=n("iterator");return fy=function(s){if(!t(s))return e(s,i)||e(s,"@@iterator")||a[r(s)]},fy}var _y,WO;function P_e(){if(WO)return _y;WO=1;var r=Pa(),e=as(),t=un(),a=ld(),n=KO(),i=TypeError;return _y=function(s,o){var l=arguments.length<2?n(s):o;if(e(l))return t(r(l,s));throw new i(a(s)+" is not iterable")},_y}var my,$O;function U_e(){if($O)return my;$O=1;var r=Pa(),e=un(),t=kl();return my=function(a,n,i){var s,o;e(a);try{if(s=t(a,"return"),!s){if(n==="throw")throw i;return i}s=r(s,a)}catch(l){o=!0,s=l}if(n==="throw")throw i;if(o)throw s;return e(s),i},my}var hy,XO;function ZO(){if(XO)return hy;XO=1;var r=$b(),e=Pa(),t=un(),a=ld(),n=F_e(),i=vb(),s=od(),o=P_e(),l=KO(),c=U_e(),A=TypeError,d=function(g,m){this.stopped=g,this.result=m},u=d.prototype;return hy=function(g,m,_){var E=_&&_.that,y=!!(_&&_.AS_ENTRIES),w=!!(_&&_.IS_RECORD),N=!!(_&&_.IS_ITERATOR),R=!!(_&&_.INTERRUPTED),k=r(m,E),h,O,L,Y,K,I,M,V=function(ee){return h&&c(h,"normal",ee),new d(!0,ee)},Q=function(ee){return y?(t(ee),R?k(ee[0],ee[1],V):k(ee[0],ee[1])):R?k(ee,V):k(ee)};if(w)h=g.iterator;else if(N)h=g;else{if(O=l(g),!O)throw new A(a(g)+" is not iterable");if(n(O)){for(L=0,Y=i(g);Y>L;L++)if(K=Q(g[L]),K&&s(u,K))return K;return new d(!1)}h=o(g,O)}for(I=w?g.next:h.next;!(M=e(I,h)).done;){try{K=Q(M.value)}catch(ee){c(h,"throw",ee)}if(typeof K=="object"&&K&&s(u,K))return K}return new d(!1)},hy}var by,JO;function Q_e(){if(JO)return by;JO=1;var r=Ia(),e=r("iterator"),t=!1;try{var a=0,n={next:function(){return{done:!!a++}},return:function(){t=!0}};n[e]=function(){return this},Array.from(n,function(){throw 2})}catch{}return by=function(i,s){try{if(!s&&!t)return!1}catch{return!1}var o=!1;try{var l={};l[e]=function(){return{next:function(){return{done:o=!0}}}},i(l)}catch{}return o},by}var yy,eI;function tI(){if(eI)return yy;eI=1;var r=zc(),e=Q_e(),t=Hc().CONSTRUCTOR;return yy=t||!e(function(a){r.all(a).then(void 0,function(){})}),yy}var rI;function z_e(){if(rI)return qO;rI=1;var r=dn(),e=Pa(),t=as(),a=Gc(),n=cy(),i=ZO(),s=tI();return r({target:"Promise",stat:!0,forced:s},{all:function(l){var c=this,A=a.f(c),d=A.resolve,u=A.reject,g=n(function(){var m=t(c.resolve),_=[],E=0,y=1;i(l,function(w){var N=E++,R=!1;y++,e(m,c,w).then(function(k){R||(R=!0,_[N]=k,--y||d(_))},u)}),--y||d(_)});return g.error&&u(g.value),A.promise}}),qO}var aI={},nI;function H_e(){if(nI)return aI;nI=1;var r=dn(),e=Pi(),t=Hc().CONSTRUCTOR,a=zc(),n=Ro(),i=ua(),s=Bo(),o=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(c){return this.then(void 0,c)}}),!e&&i(a)){var l=n("Promise").prototype.catch;o.catch!==l&&s(o,"catch",l,{unsafe:!0})}return aI}var iI={},sI;function G_e(){if(sI)return iI;sI=1;var r=dn(),e=Pa(),t=as(),a=Gc(),n=cy(),i=ZO(),s=tI();return r({target:"Promise",stat:!0,forced:s},{race:function(l){var c=this,A=a.f(c),d=A.reject,u=n(function(){var g=t(c.resolve);i(l,function(m){e(g,c,m).then(A.resolve,d)})});return u.error&&d(u.value),A.promise}}),iI}var oI={},lI;function q_e(){if(lI)return oI;lI=1;var r=dn(),e=Gc(),t=Hc().CONSTRUCTOR;return r({target:"Promise",stat:!0,forced:t},{reject:function(n){var i=e.f(this),s=i.reject;return s(n),i.promise}}),oI}var cI={},vy,AI;function V_e(){if(AI)return vy;AI=1;var r=un(),e=mi(),t=Gc();return vy=function(a,n){if(r(a),e(n)&&n.constructor===a)return n;var i=t.f(a),s=i.resolve;return s(n),i.promise},vy}var uI;function Y_e(){if(uI)return cI;uI=1;var r=dn(),e=Ro(),t=Pi(),a=zc(),n=Hc().CONSTRUCTOR,i=V_e(),s=e("Promise"),o=t&&!n;return r({target:"Promise",stat:!0,forced:t||n},{resolve:function(c){return i(o&&this===s?a:this,c)}}),cI}var dI;function j_e(){return dI||(dI=1,M_e(),z_e(),H_e(),G_e(),q_e(),Y_e()),Rk}j_e();function pI(r,e,t,a,n,i,s){try{var o=r[i](s),l=o.value}catch(c){return void t(c)}o.done?e(l):Promise.resolve(l).then(a,n)}function ns(r){return function(){var e=this,t=arguments;return new Promise(function(a,n){var i=r.apply(e,t);function s(l){pI(i,a,n,s,o,"next",l)}function o(l){pI(i,a,n,s,o,"throw",l)}s(void 0)})}}var gI={},fI={},Ey,_I;function Ui(){if(_I)return Ey;_I=1;var r=Gb(),e=String;return Ey=function(t){if(r(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(t)},Ey}var Sy,mI;function hI(){if(mI)return Sy;mI=1;var r=un();return Sy=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Sy}var wy,bI;function yI(){if(bI)return wy;bI=1;var r=ca(),e=Xr(),t=e.RegExp,a=r(function(){var s=t("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),n=a||r(function(){return!t("a","y").sticky}),i=a||r(function(){var s=t("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return wy={BROKEN_CARET:i,MISSED_STICKY:n,UNSUPPORTED_Y:a},wy}var Cy={},Ty,vI;function K_e(){if(vI)return Ty;vI=1;var r=j5(),e=Cb();return Ty=Object.keys||function(a){return r(a,e)},Ty}var EI;function W_e(){if(EI)return Cy;EI=1;var r=fi(),e=T5(),t=Gs(),a=un(),n=Pc(),i=K_e();return Cy.f=r&&!e?Object.defineProperties:function(o,l){a(o);for(var c=n(l),A=i(l),d=A.length,u=0,g;d>u;)t.f(o,g=A[u++],c[g]);return o},Cy}var Ny,SI;function hd(){if(SI)return Ny;SI=1;var r=un(),e=W_e(),t=Cb(),a=db(),n=CO(),i=Ad(),s=Ab(),o=">",l="<",c="prototype",A="script",d=s("IE_PROTO"),u=function(){},g=function(w){return l+A+o+w+l+"/"+A+o},m=function(w){w.write(g("")),w.close();var N=w.parentWindow.Object;return w=null,N},_=function(){var w=i("iframe"),N="java"+A+":",R;return w.style.display="none",n.appendChild(w),w.src=String(N),R=w.contentWindow.document,R.open(),R.write(g("document.F=Object")),R.close(),R.F},E,y=function(){try{E=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&E?m(E):_():m(E);for(var w=t.length;w--;)delete y[c][t[w]];return y()};return a[d]=!0,Ny=Object.create||function(N,R){var k;return N!==null?(u[c]=r(N),k=new u,u[c]=null,k[d]=N):k=y(),R===void 0?k:e.f(k,R)},Ny}var ky,wI;function $_e(){if(wI)return ky;wI=1;var r=ca(),e=Xr(),t=e.RegExp;return ky=r(function(){var a=t(".","s");return!(a.dotAll&&a.test(`
|
|
641
641
|
`)&&a.flags==="s")}),ky}var Oy,CI;function X_e(){if(CI)return Oy;CI=1;var r=ca(),e=Xr(),t=e.RegExp;return Oy=r(function(){var a=t("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),Oy}var Iy,TI;function Ry(){if(TI)return Iy;TI=1;var r=Pa(),e=Aa(),t=Ui(),a=hI(),n=yI(),i=V0(),s=hd(),o=pd().get,l=$_e(),c=X_e(),A=i("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,u=d,g=e("".charAt),m=e("".indexOf),_=e("".replace),E=e("".slice),y=function(){var k=/a/,h=/b*/g;return r(d,k,"a"),r(d,h,"a"),k.lastIndex!==0||h.lastIndex!==0}(),w=n.BROKEN_CARET,N=/()??/.exec("")[1]!==void 0,R=y||N||w||l||c;return R&&(u=function(h){var O=this,L=o(O),Y=t(h),K=L.raw,I,M,V,Q,ee,oe,ie;if(K)return K.lastIndex=O.lastIndex,I=r(u,K,Y),O.lastIndex=K.lastIndex,I;var re=L.groups,se=w&&O.sticky,Ae=r(a,O),ye=O.source,B=0,G=Y;if(se&&(Ae=_(Ae,"y",""),m(Ae,"g")===-1&&(Ae+="g"),G=E(Y,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&g(Y,O.lastIndex-1)!==`
|
|
642
|
-
`)&&(ye="(?: "+ye+")",G=" "+G,B++),M=new RegExp("^(?:"+ye+")",Ae)),N&&(M=new RegExp("^"+ye+"$(?!\\s)",Ae)),y&&(V=O.lastIndex),Q=r(d,se?M:O,G),se?Q?(Q.input=E(Q.input,B),Q[0]=E(Q[0],B),Q.index=O.lastIndex,O.lastIndex+=Q[0].length):O.lastIndex=0:y&&Q&&(O.lastIndex=O.global?Q.index+Q[0].length:V),N&&Q&&Q.length>1&&r(A,Q[0],M,function(){for(ee=1;ee<arguments.length-2;ee++)arguments[ee]===void 0&&(Q[ee]=void 0)}),Q&&re)for(Q.groups=oe=s(null),ee=0;ee<re.length;ee++)ie=re[ee],oe[ie[0]]=Q[ie[1]];return Q}),Iy=u,Iy}var NI;function Z_e(){if(NI)return fI;NI=1;var r=dn(),e=Ry();return r({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),fI}var By,kI;function xy(){if(kI)return By;kI=1,Z_e();var r=Pa(),e=Bo(),t=Ry(),a=ca(),n=Ia(),i=Qc(),s=n("species"),o=RegExp.prototype;return By=function(l,c,A,d){var u=n(l),g=!a(function(){var y={};return y[u]=function(){return 7},""[l](y)!==7}),m=g&&!a(function(){var y=!1,w=/a/;return l==="split"&&(w={},w.constructor={},w.constructor[s]=function(){return w},w.flags="",w[u]=/./[u]),w.exec=function(){return y=!0,null},w[u](""),!y});if(!g||!m||A){var _=/./[u],E=c(u,""[l],function(y,w,N,R,k){var h=w.exec;return h===t||h===o.exec?g&&!k?{done:!0,value:r(_,w,N,R)}:{done:!0,value:r(y,N,w,R)}:{done:!1}});e(String.prototype,l,E[0]),e(o,u,E[1])}d&&i(o[u],"sham",!0)},By}var Dy,OI;function J_e(){if(OI)return Dy;OI=1;var r=Aa(),e=gd(),t=Ui(),a=_i(),n=r("".charAt),i=r("".charCodeAt),s=r("".slice),o=function(l){return function(c,A){var d=t(a(c)),u=e(A),g=d.length,m,_;return u<0||u>=g?l?"":void 0:(m=i(d,u),m<55296||m>56319||u+1===g||(_=i(d,u+1))<56320||_>57343?l?n(d,u):m:l?s(d,u,u+2):(m-55296<<10)+(_-56320)+65536)}};return Dy={codeAt:o(!1),charAt:o(!0)},Dy}var Ly,II;function My(){if(II)return Ly;II=1;var r=J_e().charAt;return Ly=function(e,t,a){return t+(a?r(e,t).length:1)},Ly}var Fy,RI;function Py(){if(RI)return Fy;RI=1;var r=Pa(),e=un(),t=ua(),a=Oo(),n=Ry(),i=TypeError;return Fy=function(s,o){var l=s.exec;if(t(l)){var c=r(l,s,o);return c!==null&&e(c),c}if(a(s)==="RegExp")return r(n,s,o);throw new i("RegExp#exec called on incompatible receiver")},Fy}var BI;function eme(){if(BI)return gI;BI=1;var r=Pa(),e=xy(),t=un(),a=Io(),n=Ol(),i=Ui(),s=_i(),o=kl(),l=My(),c=Py();return e("match",function(A,d,u){return[function(m){var _=s(this),E=a(m)?void 0:o(m,A);return E?r(E,m,_):new RegExp(m)[A](i(_))},function(g){var m=t(this),_=i(g),E=u(d,m,_);if(E.done)return E.value;if(!m.global)return c(m,_);var y=m.unicode;m.lastIndex=0;for(var w=[],N=0,R;(R=c(m,_))!==null;){var k=i(R[0]);w[N]=k,k===""&&(m.lastIndex=l(_,n(m.lastIndex),y)),N++}return N===0?null:w}]}),gI}eme();var xI={},Uy,DI;function tme(){if(DI)return Uy;DI=1;var r=Aa(),e=cd(),t=Math.floor,a=r("".charAt),n=r("".replace),i=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return Uy=function(l,c,A,d,u,g){var m=A+l.length,_=d.length,E=o;return u!==void 0&&(u=e(u),E=s),n(g,E,function(y,w){var N;switch(a(w,0)){case"$":return"$";case"&":return l;case"`":return i(c,0,A);case"'":return i(c,m);case"<":N=u[i(w,1,-1)];break;default:var R=+w;if(R===0)return y;if(R>_){var k=t(R/10);return k===0?y:k<=_?d[k-1]===void 0?a(w,1):d[k-1]+a(w,1):y}N=d[R-1]}return N===void 0?"":N})},Uy}var LI;function rme(){if(LI)return xI;LI=1;var r=vO(),e=Pa(),t=Aa(),a=xy(),n=ca(),i=un(),s=ua(),o=Io(),l=gd(),c=Ol(),A=Ui(),d=_i(),u=My(),g=kl(),m=tme(),_=Py(),E=Ia(),y=E("replace"),w=Math.max,N=Math.min,R=t([].concat),k=t([].push),h=t("".indexOf),O=t("".slice),L=function(M){return M===void 0?M:String(M)},Y=function(){return"a".replace(/./,"$0")==="$0"}(),K=function(){return/./[y]?/./[y]("a","$0")==="":!1}(),I=!n(function(){var M=/./;return M.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(M,"$<a>")!=="7"});return a("replace",function(M,V,Q){var ee=K?"$":"$0";return[function(ie,re){var se=d(this),Ae=o(ie)?void 0:g(ie,y);return Ae?e(Ae,ie,se,re):e(V,A(se),ie,re)},function(oe,ie){var re=i(this),se=A(oe);if(typeof ie=="string"&&h(ie,ee)===-1&&h(ie,"$<")===-1){var Ae=Q(V,re,se,ie);if(Ae.done)return Ae.value}var ye=s(ie);ye||(ie=A(ie));var B=re.global,G;B&&(G=re.unicode,re.lastIndex=0);for(var j=[],$;$=_(re,se),!($===null||(k(j,$),!B));){var ne=A($[0]);ne===""&&(re.lastIndex=u(se,c(re.lastIndex),G))}for(var ce="",_e=0,me=0;me<j.length;me++){$=j[me];for(var Be=A($[0]),Oe=w(N(l($.index),se.length),0),ze=[],He,rt=1;rt<$.length;rt++)k(ze,L($[rt]));var Ce=$.groups;if(ye){var Z=R([Be],ze,Oe,se);Ce!==void 0&&k(Z,Ce),He=A(r(ie,void 0,Z))}else He=m(Be,se,Oe,ze,Ce,ie);Oe>=_e&&(ce+=O(se,_e,Oe)+He,_e=Oe+Be.length)}return ce+O(se,_e)}]},!I||!Y||K),xI}rme();var MI={},Qy,FI;function ame(){if(FI)return Qy;FI=1;var r=mi(),e=Oo(),t=Ia(),a=t("match");return Qy=function(n){var i;return r(n)&&((i=n[a])!==void 0?!!i:e(n)==="RegExp")},Qy}var zy,PI;function Hy(){if(PI)return zy;PI=1;var r=ame(),e=TypeError;return zy=function(t){if(r(t))throw new e("The method doesn't accept regular expressions");return t},zy}var Gy,UI;function qy(){if(UI)return Gy;UI=1;var r=Ia(),e=r("match");return Gy=function(t){var a=/./;try{"/./"[t](a)}catch{try{return a[e]=!1,"/./"[t](a)}catch{}}return!1},Gy}var QI;function nme(){if(QI)return MI;QI=1;var r=dn(),e=md(),t=ud().f,a=Ol(),n=Ui(),i=Hy(),s=_i(),o=qy(),l=Pi(),c=e("".slice),A=Math.min,d=o("startsWith"),u=!l&&!d&&!!function(){var g=t(String.prototype,"startsWith");return g&&!g.writable}();return r({target:"String",proto:!0,forced:!u&&!d},{startsWith:function(m){var _=n(s(this));i(m);var E=a(A(arguments.length>1?arguments[1]:void 0,_.length)),y=n(m);return c(_,E,E+y.length)===y}}),MI}nme();var Vy,zI;function ime(){if(zI)return Vy;zI=1;var r=Ia(),e=hd(),t=Gs().f,a=r("unscopables"),n=Array.prototype;return n[a]===void 0&&t(n,a,{configurable:!0,value:e(null)}),Vy=function(i){n[a][i]=!0},Vy}var Yy,HI;function sme(){if(HI)return Yy;HI=1;var r=ca();return Yy=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Yy}var jy,GI;function qI(){if(GI)return jy;GI=1;var r=hi(),e=ua(),t=cd(),a=Ab(),n=sme(),i=a("IE_PROTO"),s=Object,o=s.prototype;return jy=n?s.getPrototypeOf:function(l){var c=t(l);if(r(c,i))return c[i];var A=c.constructor;return e(A)&&c instanceof A?A.prototype:c instanceof s?o:null},jy}var Ky,VI;function YI(){if(VI)return Ky;VI=1;var r=ca(),e=ua(),t=mi(),a=hd(),n=qI(),i=Bo(),s=Ia(),o=Pi(),l=s("iterator"),c=!1,A,d,u;[].keys&&(u=[].keys(),"next"in u?(d=n(n(u)),d!==Object.prototype&&(A=d)):c=!0);var g=!t(A)||r(function(){var m={};return A[l].call(m)!==m});return g?A={}:o&&(A=a(A)),e(A[l])||i(A,l,function(){return this}),Ky={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:c},Ky}var Wy,jI;function ome(){if(jI)return Wy;jI=1;var r=YI().IteratorPrototype,e=hd(),t=h0(),a=_d(),n=qc(),i=function(){return this};return Wy=function(s,o,l,c){var A=o+" Iterator";return s.prototype=e(r,{next:t(+!c,l)}),a(s,A,!1,!0),n[A]=i,s},Wy}var $y,KI;function lme(){if(KI)return $y;KI=1;var r=dn(),e=Pa(),t=Pi(),a=dd(),n=ua(),i=ome(),s=qI(),o=cO(),l=_d(),c=Qc(),A=Bo(),d=Ia(),u=qc(),g=YI(),m=a.PROPER,_=a.CONFIGURABLE,E=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,w=d("iterator"),N="keys",R="values",k="entries",h=function(){return this};return $y=function(O,L,Y,K,I,M,V){i(Y,L,K);var Q=function(j){if(j===I&&se)return se;if(!y&&j&&j in ie)return ie[j];switch(j){case N:return function(){return new Y(this,j)};case R:return function(){return new Y(this,j)};case k:return function(){return new Y(this,j)}}return function(){return new Y(this)}},ee=L+" Iterator",oe=!1,ie=O.prototype,re=ie[w]||ie["@@iterator"]||I&&ie[I],se=!y&&re||Q(I),Ae=L==="Array"&&ie.entries||re,ye,B,G;if(Ae&&(ye=s(Ae.call(new O)),ye!==Object.prototype&&ye.next&&(!t&&s(ye)!==E&&(o?o(ye,E):n(ye[w])||A(ye,w,h)),l(ye,ee,!0,!0),t&&(u[ee]=h))),m&&I===R&&re&&re.name!==R&&(!t&&_?c(ie,"name",R):(oe=!0,se=function(){return e(re,this)})),I)if(B={values:Q(R),keys:M?se:Q(N),entries:Q(k)},V)for(G in B)(y||oe||!(G in ie))&&A(ie,G,B[G]);else r({target:L,proto:!0,forced:y||oe},B);return(!t||V)&&ie[w]!==se&&A(ie,w,se,{name:I}),u[L]=se,B},$y}var Xy,WI;function cme(){return WI||(WI=1,Xy=function(r,e){return{value:r,done:e}}),Xy}var Zy,$I;function XI(){if($I)return Zy;$I=1;var r=Pc(),e=ime(),t=qc(),a=pd(),n=Gs().f,i=lme(),s=cme(),o=Pi(),l=fi(),c="Array Iterator",A=a.set,d=a.getterFor(c);Zy=i(Array,"Array",function(g,m){A(this,{type:c,target:r(g),index:0,kind:m})},function(){var g=d(this),m=g.target,_=g.index++;if(!m||_>=m.length)return g.target=null,s(void 0,!0);switch(g.kind){case"keys":return s(_,!1);case"values":return s(m[_],!1)}return s([_,m[_]],!1)},"values");var u=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!o&&l&&u.name!=="values")try{n(u,"name",{value:"values"})}catch{}return Zy}XI();var ZI={},Jy,JI;function Ame(){return JI||(JI=1,Jy={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}),Jy}var ev,eR;function ume(){if(eR)return ev;eR=1;var r=Ad(),e=r("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ev=t===Object.prototype?void 0:t,ev}var tR;function dme(){if(tR)return ZI;tR=1;var r=Xr(),e=Ame(),t=ume(),a=XI(),n=Qc(),i=_d(),s=Ia(),o=s("iterator"),l=a.values,c=function(d,u){if(d){if(d[o]!==l)try{n(d,o,l)}catch{d[o]=l}if(i(d,u,!0),e[u]){for(var g in a)if(d[g]!==a[g])try{n(d,g,a[g])}catch{d[g]=a[g]}}}};for(var A in e)c(r[A]&&r[A].prototype,A);return c(t,"DOMTokenList"),ZI}dme();function pme(r,e){if(Ar(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(Ar(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function gme(r){var e=pme(r,"string");return Ar(e)=="symbol"?e:e+""}function tv(r,e,t){return(e=gme(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rR={},rv,aR;function fme(){if(aR)return rv;aR=1;var r=as(),e=cd(),t=Gk(),a=vb(),n=TypeError,i="Reduce of empty array with no initial value",s=function(o){return function(l,c,A,d){var u=e(l),g=t(u),m=a(u);if(r(c),m===0&&A<2)throw new n(i);var _=o?m-1:0,E=o?-1:1;if(A<2)for(;;){if(_ in g){d=g[_],_+=E;break}if(_+=E,o?_<0:m<=_)throw new n(i)}for(;o?_>=0:m>_;_+=E)_ in g&&(d=c(d,g[_],_,u));return d}};return rv={left:s(!1),right:s(!0)},rv}var av,nR;function iR(){if(nR)return av;nR=1;var r=ca();return av=function(e,t){var a=[][e];return!!a&&r(function(){a.call(null,t||function(){return 1},1)})},av}var sR;function _me(){if(sR)return rR;sR=1;var r=dn(),e=fme().left,t=iR(),a=R0(),n=fd(),i=!n&&a>79&&a<83,s=i||!t("reduce");return r({target:"Array",proto:!0,forced:s},{reduce:function(l){var c=arguments.length;return e(this,l,c,c>1?arguments[1]:void 0)}}),rR}_me();var oR={},lR;function mme(){if(lR)return oR;lR=1;var r=dn(),e=md(),t=ud().f,a=Ol(),n=Ui(),i=Hy(),s=_i(),o=qy(),l=Pi(),c=e("".slice),A=Math.min,d=o("endsWith"),u=!l&&!d&&!!function(){var g=t(String.prototype,"endsWith");return g&&!g.writable}();return r({target:"String",proto:!0,forced:!u&&!d},{endsWith:function(m){var _=n(s(this));i(m);var E=arguments.length>1?arguments[1]:void 0,y=_.length,w=E===void 0?y:A(a(E),y),N=n(m);return c(_,w-N.length,w)===N}}),oR}mme();var cR={},AR;function hme(){if(AR)return cR;AR=1;var r=Pa(),e=Aa(),t=xy(),a=un(),n=Io(),i=_i(),s=bO(),o=My(),l=Ol(),c=Ui(),A=kl(),d=Py(),u=yI(),g=ca(),m=u.UNSUPPORTED_Y,_=4294967295,E=Math.min,y=e([].push),w=e("".slice),N=!g(function(){var k=/(?:)/,h=k.exec;k.exec=function(){return h.apply(this,arguments)};var O="ab".split(k);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),R="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return t("split",function(k,h,O){var L="0".split(void 0,0).length?function(Y,K){return Y===void 0&&K===0?[]:r(h,this,Y,K)}:h;return[function(K,I){var M=i(this),V=n(K)?void 0:A(K,k);return V?r(V,K,M,I):r(L,c(M),K,I)},function(Y,K){var I=a(this),M=c(Y);if(!R){var V=O(L,I,M,K,L!==h);if(V.done)return V.value}var Q=s(I,RegExp),ee=I.unicode,oe=(I.ignoreCase?"i":"")+(I.multiline?"m":"")+(I.unicode?"u":"")+(m?"g":"y"),ie=new Q(m?"^(?:"+I.source+")":I,oe),re=K===void 0?_:K>>>0;if(re===0)return[];if(M.length===0)return d(ie,M)===null?[M]:[];for(var se=0,Ae=0,ye=[];Ae<M.length;){ie.lastIndex=m?0:Ae;var B=d(ie,m?w(M,Ae):M),G;if(B===null||(G=E(l(ie.lastIndex+(m?Ae:0)),M.length))===se)Ae=o(M,Ae,ee);else{if(y(ye,w(M,se,Ae)),ye.length===re)return ye;for(var j=1;j<=B.length-1;j++)if(y(ye,B[j]),ye.length===re)return ye;Ae=se=G}}return y(ye,w(M,se)),ye}]},R||!N,m),cR}hme();var Vc={exports:{}},xo={exports:{}},bme=xo.exports,uR;function yme(){return uR||(uR=1,(function(){var r,e,t,a,n,i;typeof performance<"u"&&performance!==null&&performance.now?xo.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(xo.exports=function(){return(r()-n)/1e6},e=process.hrtime,r=function(){var s;return s=e(),s[0]*1e9+s[1]},a=r(),i=process.uptime()*1e9,n=a-i):Date.now?(xo.exports=function(){return Date.now()-t},t=Date.now()):(xo.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(bme)),xo.exports}var dR;function vme(){if(dR)return Vc.exports;dR=1;for(var r=yme(),e=typeof window>"u"?A0:window,t=["moz","webkit"],a="AnimationFrame",n=e["request"+a],i=e["cancel"+a]||e["cancelRequest"+a],s=0;!n&&s<t.length;s++)n=e[t[s]+"Request"+a],i=e[t[s]+"Cancel"+a]||e[t[s]+"CancelRequest"+a];if(!n||!i){var o=0,l=0,c=[],A=1e3/60;n=function(d){if(c.length===0){var u=r(),g=Math.max(0,A-(u-o));o=g+u,setTimeout(function(){var m=c.slice(0);c.length=0;for(var _=0;_<m.length;_++)if(!m[_].cancelled)try{m[_].callback(o)}catch(E){setTimeout(function(){throw E},0)}},Math.round(g))}return c.push({handle:++l,callback:d,cancelled:!1}),l},i=function(d){for(var u=0;u<c.length;u++)c[u].handle===d&&(c[u].cancelled=!0)}}return Vc.exports=function(d){return n.call(e,d)},Vc.exports.cancel=function(){i.apply(e,arguments)},Vc.exports.polyfill=function(d){d||(d=e),d.requestAnimationFrame=n,d.cancelAnimationFrame=i},Vc.exports}var Eme=vme();const nv=Ik(Eme);var pR={},iv,gR;function fR(){return gR||(gR=1,iv=`
|
|
642
|
+
`)&&(ye="(?: "+ye+")",G=" "+G,B++),M=new RegExp("^(?:"+ye+")",Ae)),N&&(M=new RegExp("^"+ye+"$(?!\\s)",Ae)),y&&(V=O.lastIndex),Q=r(d,se?M:O,G),se?Q?(Q.input=E(Q.input,B),Q[0]=E(Q[0],B),Q.index=O.lastIndex,O.lastIndex+=Q[0].length):O.lastIndex=0:y&&Q&&(O.lastIndex=O.global?Q.index+Q[0].length:V),N&&Q&&Q.length>1&&r(A,Q[0],M,function(){for(ee=1;ee<arguments.length-2;ee++)arguments[ee]===void 0&&(Q[ee]=void 0)}),Q&&re)for(Q.groups=oe=s(null),ee=0;ee<re.length;ee++)ie=re[ee],oe[ie[0]]=Q[ie[1]];return Q}),Iy=u,Iy}var NI;function Z_e(){if(NI)return fI;NI=1;var r=dn(),e=Ry();return r({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),fI}var By,kI;function xy(){if(kI)return By;kI=1,Z_e();var r=Pa(),e=Bo(),t=Ry(),a=ca(),n=Ia(),i=Qc(),s=n("species"),o=RegExp.prototype;return By=function(l,c,A,d){var u=n(l),g=!a(function(){var y={};return y[u]=function(){return 7},""[l](y)!==7}),m=g&&!a(function(){var y=!1,w=/a/;return l==="split"&&(w={},w.constructor={},w.constructor[s]=function(){return w},w.flags="",w[u]=/./[u]),w.exec=function(){return y=!0,null},w[u](""),!y});if(!g||!m||A){var _=/./[u],E=c(u,""[l],function(y,w,N,R,k){var h=w.exec;return h===t||h===o.exec?g&&!k?{done:!0,value:r(_,w,N,R)}:{done:!0,value:r(y,N,w,R)}:{done:!1}});e(String.prototype,l,E[0]),e(o,u,E[1])}d&&i(o[u],"sham",!0)},By}var Dy,OI;function J_e(){if(OI)return Dy;OI=1;var r=Aa(),e=gd(),t=Ui(),a=_i(),n=r("".charAt),i=r("".charCodeAt),s=r("".slice),o=function(l){return function(c,A){var d=t(a(c)),u=e(A),g=d.length,m,_;return u<0||u>=g?l?"":void 0:(m=i(d,u),m<55296||m>56319||u+1===g||(_=i(d,u+1))<56320||_>57343?l?n(d,u):m:l?s(d,u,u+2):(m-55296<<10)+(_-56320)+65536)}};return Dy={codeAt:o(!1),charAt:o(!0)},Dy}var Ly,II;function My(){if(II)return Ly;II=1;var r=J_e().charAt;return Ly=function(e,t,a){return t+(a?r(e,t).length:1)},Ly}var Fy,RI;function Py(){if(RI)return Fy;RI=1;var r=Pa(),e=un(),t=ua(),a=Oo(),n=Ry(),i=TypeError;return Fy=function(s,o){var l=s.exec;if(t(l)){var c=r(l,s,o);return c!==null&&e(c),c}if(a(s)==="RegExp")return r(n,s,o);throw new i("RegExp#exec called on incompatible receiver")},Fy}var BI;function eme(){if(BI)return gI;BI=1;var r=Pa(),e=xy(),t=un(),a=Io(),n=Ol(),i=Ui(),s=_i(),o=kl(),l=My(),c=Py();return e("match",function(A,d,u){return[function(m){var _=s(this),E=a(m)?void 0:o(m,A);return E?r(E,m,_):new RegExp(m)[A](i(_))},function(g){var m=t(this),_=i(g),E=u(d,m,_);if(E.done)return E.value;if(!m.global)return c(m,_);var y=m.unicode;m.lastIndex=0;for(var w=[],N=0,R;(R=c(m,_))!==null;){var k=i(R[0]);w[N]=k,k===""&&(m.lastIndex=l(_,n(m.lastIndex),y)),N++}return N===0?null:w}]}),gI}eme();var xI={},Uy,DI;function tme(){if(DI)return Uy;DI=1;var r=Aa(),e=cd(),t=Math.floor,a=r("".charAt),n=r("".replace),i=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return Uy=function(l,c,A,d,u,g){var m=A+l.length,_=d.length,E=o;return u!==void 0&&(u=e(u),E=s),n(g,E,function(y,w){var N;switch(a(w,0)){case"$":return"$";case"&":return l;case"`":return i(c,0,A);case"'":return i(c,m);case"<":N=u[i(w,1,-1)];break;default:var R=+w;if(R===0)return y;if(R>_){var k=t(R/10);return k===0?y:k<=_?d[k-1]===void 0?a(w,1):d[k-1]+a(w,1):y}N=d[R-1]}return N===void 0?"":N})},Uy}var LI;function rme(){if(LI)return xI;LI=1;var r=vO(),e=Pa(),t=Aa(),a=xy(),n=ca(),i=un(),s=ua(),o=Io(),l=gd(),c=Ol(),A=Ui(),d=_i(),u=My(),g=kl(),m=tme(),_=Py(),E=Ia(),y=E("replace"),w=Math.max,N=Math.min,R=t([].concat),k=t([].push),h=t("".indexOf),O=t("".slice),L=function(M){return M===void 0?M:String(M)},Y=function(){return"a".replace(/./,"$0")==="$0"}(),K=function(){return/./[y]?/./[y]("a","$0")==="":!1}(),I=!n(function(){var M=/./;return M.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(M,"$<a>")!=="7"});return a("replace",function(M,V,Q){var ee=K?"$":"$0";return[function(ie,re){var se=d(this),Ae=o(ie)?void 0:g(ie,y);return Ae?e(Ae,ie,se,re):e(V,A(se),ie,re)},function(oe,ie){var re=i(this),se=A(oe);if(typeof ie=="string"&&h(ie,ee)===-1&&h(ie,"$<")===-1){var Ae=Q(V,re,se,ie);if(Ae.done)return Ae.value}var ye=s(ie);ye||(ie=A(ie));var B=re.global,G;B&&(G=re.unicode,re.lastIndex=0);for(var j=[],$;$=_(re,se),!($===null||(k(j,$),!B));){var ne=A($[0]);ne===""&&(re.lastIndex=u(se,c(re.lastIndex),G))}for(var ce="",_e=0,me=0;me<j.length;me++){$=j[me];for(var Be=A($[0]),Oe=w(N(l($.index),se.length),0),ze=[],He,rt=1;rt<$.length;rt++)k(ze,L($[rt]));var Ce=$.groups;if(ye){var Z=R([Be],ze,Oe,se);Ce!==void 0&&k(Z,Ce),He=A(r(ie,void 0,Z))}else He=m(Be,se,Oe,ze,Ce,ie);Oe>=_e&&(ce+=O(se,_e,Oe)+He,_e=Oe+Be.length)}return ce+O(se,_e)}]},!I||!Y||K),xI}rme();var MI={},Qy,FI;function ame(){if(FI)return Qy;FI=1;var r=mi(),e=Oo(),t=Ia(),a=t("match");return Qy=function(n){var i;return r(n)&&((i=n[a])!==void 0?!!i:e(n)==="RegExp")},Qy}var zy,PI;function Hy(){if(PI)return zy;PI=1;var r=ame(),e=TypeError;return zy=function(t){if(r(t))throw new e("The method doesn't accept regular expressions");return t},zy}var Gy,UI;function qy(){if(UI)return Gy;UI=1;var r=Ia(),e=r("match");return Gy=function(t){var a=/./;try{"/./"[t](a)}catch{try{return a[e]=!1,"/./"[t](a)}catch{}}return!1},Gy}var QI;function nme(){if(QI)return MI;QI=1;var r=dn(),e=md(),t=ud().f,a=Ol(),n=Ui(),i=Hy(),s=_i(),o=qy(),l=Pi(),c=e("".slice),A=Math.min,d=o("startsWith"),u=!l&&!d&&!!function(){var g=t(String.prototype,"startsWith");return g&&!g.writable}();return r({target:"String",proto:!0,forced:!u&&!d},{startsWith:function(m){var _=n(s(this));i(m);var E=a(A(arguments.length>1?arguments[1]:void 0,_.length)),y=n(m);return c(_,E,E+y.length)===y}}),MI}nme();var Vy,zI;function ime(){if(zI)return Vy;zI=1;var r=Ia(),e=hd(),t=Gs().f,a=r("unscopables"),n=Array.prototype;return n[a]===void 0&&t(n,a,{configurable:!0,value:e(null)}),Vy=function(i){n[a][i]=!0},Vy}var Yy,HI;function sme(){if(HI)return Yy;HI=1;var r=ca();return Yy=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Yy}var jy,GI;function qI(){if(GI)return jy;GI=1;var r=hi(),e=ua(),t=cd(),a=Ab(),n=sme(),i=a("IE_PROTO"),s=Object,o=s.prototype;return jy=n?s.getPrototypeOf:function(l){var c=t(l);if(r(c,i))return c[i];var A=c.constructor;return e(A)&&c instanceof A?A.prototype:c instanceof s?o:null},jy}var Ky,VI;function YI(){if(VI)return Ky;VI=1;var r=ca(),e=ua(),t=mi(),a=hd(),n=qI(),i=Bo(),s=Ia(),o=Pi(),l=s("iterator"),c=!1,A,d,u;[].keys&&(u=[].keys(),"next"in u?(d=n(n(u)),d!==Object.prototype&&(A=d)):c=!0);var g=!t(A)||r(function(){var m={};return A[l].call(m)!==m});return g?A={}:o&&(A=a(A)),e(A[l])||i(A,l,function(){return this}),Ky={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:c},Ky}var Wy,jI;function ome(){if(jI)return Wy;jI=1;var r=YI().IteratorPrototype,e=hd(),t=h0(),a=_d(),n=qc(),i=function(){return this};return Wy=function(s,o,l,c){var A=o+" Iterator";return s.prototype=e(r,{next:t(+!c,l)}),a(s,A,!1,!0),n[A]=i,s},Wy}var $y,KI;function lme(){if(KI)return $y;KI=1;var r=dn(),e=Pa(),t=Pi(),a=dd(),n=ua(),i=ome(),s=qI(),o=cO(),l=_d(),c=Qc(),A=Bo(),d=Ia(),u=qc(),g=YI(),m=a.PROPER,_=a.CONFIGURABLE,E=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,w=d("iterator"),N="keys",R="values",k="entries",h=function(){return this};return $y=function(O,L,Y,K,I,M,V){i(Y,L,K);var Q=function(j){if(j===I&&se)return se;if(!y&&j&&j in ie)return ie[j];switch(j){case N:return function(){return new Y(this,j)};case R:return function(){return new Y(this,j)};case k:return function(){return new Y(this,j)}}return function(){return new Y(this)}},ee=L+" Iterator",oe=!1,ie=O.prototype,re=ie[w]||ie["@@iterator"]||I&&ie[I],se=!y&&re||Q(I),Ae=L==="Array"&&ie.entries||re,ye,B,G;if(Ae&&(ye=s(Ae.call(new O)),ye!==Object.prototype&&ye.next&&(!t&&s(ye)!==E&&(o?o(ye,E):n(ye[w])||A(ye,w,h)),l(ye,ee,!0,!0),t&&(u[ee]=h))),m&&I===R&&re&&re.name!==R&&(!t&&_?c(ie,"name",R):(oe=!0,se=function(){return e(re,this)})),I)if(B={values:Q(R),keys:M?se:Q(N),entries:Q(k)},V)for(G in B)(y||oe||!(G in ie))&&A(ie,G,B[G]);else r({target:L,proto:!0,forced:y||oe},B);return(!t||V)&&ie[w]!==se&&A(ie,w,se,{name:I}),u[L]=se,B},$y}var Xy,WI;function cme(){return WI||(WI=1,Xy=function(r,e){return{value:r,done:e}}),Xy}var Zy,$I;function XI(){if($I)return Zy;$I=1;var r=Pc(),e=ime(),t=qc(),a=pd(),n=Gs().f,i=lme(),s=cme(),o=Pi(),l=fi(),c="Array Iterator",A=a.set,d=a.getterFor(c);Zy=i(Array,"Array",function(g,m){A(this,{type:c,target:r(g),index:0,kind:m})},function(){var g=d(this),m=g.target,_=g.index++;if(!m||_>=m.length)return g.target=null,s(void 0,!0);switch(g.kind){case"keys":return s(_,!1);case"values":return s(m[_],!1)}return s([_,m[_]],!1)},"values");var u=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!o&&l&&u.name!=="values")try{n(u,"name",{value:"values"})}catch{}return Zy}XI();var ZI={},Jy,JI;function Ame(){return JI||(JI=1,Jy={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}),Jy}var ev,eR;function ume(){if(eR)return ev;eR=1;var r=Ad(),e=r("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ev=t===Object.prototype?void 0:t,ev}var tR;function dme(){if(tR)return ZI;tR=1;var r=Xr(),e=Ame(),t=ume(),a=XI(),n=Qc(),i=_d(),s=Ia(),o=s("iterator"),l=a.values,c=function(d,u){if(d){if(d[o]!==l)try{n(d,o,l)}catch{d[o]=l}if(i(d,u,!0),e[u]){for(var g in a)if(d[g]!==a[g])try{n(d,g,a[g])}catch{d[g]=a[g]}}}};for(var A in e)c(r[A]&&r[A].prototype,A);return c(t,"DOMTokenList"),ZI}dme();function pme(r,e){if(cr(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(cr(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function gme(r){var e=pme(r,"string");return cr(e)=="symbol"?e:e+""}function tv(r,e,t){return(e=gme(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rR={},rv,aR;function fme(){if(aR)return rv;aR=1;var r=as(),e=cd(),t=Gk(),a=vb(),n=TypeError,i="Reduce of empty array with no initial value",s=function(o){return function(l,c,A,d){var u=e(l),g=t(u),m=a(u);if(r(c),m===0&&A<2)throw new n(i);var _=o?m-1:0,E=o?-1:1;if(A<2)for(;;){if(_ in g){d=g[_],_+=E;break}if(_+=E,o?_<0:m<=_)throw new n(i)}for(;o?_>=0:m>_;_+=E)_ in g&&(d=c(d,g[_],_,u));return d}};return rv={left:s(!1),right:s(!0)},rv}var av,nR;function iR(){if(nR)return av;nR=1;var r=ca();return av=function(e,t){var a=[][e];return!!a&&r(function(){a.call(null,t||function(){return 1},1)})},av}var sR;function _me(){if(sR)return rR;sR=1;var r=dn(),e=fme().left,t=iR(),a=R0(),n=fd(),i=!n&&a>79&&a<83,s=i||!t("reduce");return r({target:"Array",proto:!0,forced:s},{reduce:function(l){var c=arguments.length;return e(this,l,c,c>1?arguments[1]:void 0)}}),rR}_me();var oR={},lR;function mme(){if(lR)return oR;lR=1;var r=dn(),e=md(),t=ud().f,a=Ol(),n=Ui(),i=Hy(),s=_i(),o=qy(),l=Pi(),c=e("".slice),A=Math.min,d=o("endsWith"),u=!l&&!d&&!!function(){var g=t(String.prototype,"endsWith");return g&&!g.writable}();return r({target:"String",proto:!0,forced:!u&&!d},{endsWith:function(m){var _=n(s(this));i(m);var E=arguments.length>1?arguments[1]:void 0,y=_.length,w=E===void 0?y:A(a(E),y),N=n(m);return c(_,w-N.length,w)===N}}),oR}mme();var cR={},AR;function hme(){if(AR)return cR;AR=1;var r=Pa(),e=Aa(),t=xy(),a=un(),n=Io(),i=_i(),s=bO(),o=My(),l=Ol(),c=Ui(),A=kl(),d=Py(),u=yI(),g=ca(),m=u.UNSUPPORTED_Y,_=4294967295,E=Math.min,y=e([].push),w=e("".slice),N=!g(function(){var k=/(?:)/,h=k.exec;k.exec=function(){return h.apply(this,arguments)};var O="ab".split(k);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),R="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return t("split",function(k,h,O){var L="0".split(void 0,0).length?function(Y,K){return Y===void 0&&K===0?[]:r(h,this,Y,K)}:h;return[function(K,I){var M=i(this),V=n(K)?void 0:A(K,k);return V?r(V,K,M,I):r(L,c(M),K,I)},function(Y,K){var I=a(this),M=c(Y);if(!R){var V=O(L,I,M,K,L!==h);if(V.done)return V.value}var Q=s(I,RegExp),ee=I.unicode,oe=(I.ignoreCase?"i":"")+(I.multiline?"m":"")+(I.unicode?"u":"")+(m?"g":"y"),ie=new Q(m?"^(?:"+I.source+")":I,oe),re=K===void 0?_:K>>>0;if(re===0)return[];if(M.length===0)return d(ie,M)===null?[M]:[];for(var se=0,Ae=0,ye=[];Ae<M.length;){ie.lastIndex=m?0:Ae;var B=d(ie,m?w(M,Ae):M),G;if(B===null||(G=E(l(ie.lastIndex+(m?Ae:0)),M.length))===se)Ae=o(M,Ae,ee);else{if(y(ye,w(M,se,Ae)),ye.length===re)return ye;for(var j=1;j<=B.length-1;j++)if(y(ye,B[j]),ye.length===re)return ye;Ae=se=G}}return y(ye,w(M,se)),ye}]},R||!N,m),cR}hme();var Vc={exports:{}},xo={exports:{}},bme=xo.exports,uR;function yme(){return uR||(uR=1,(function(){var r,e,t,a,n,i;typeof performance<"u"&&performance!==null&&performance.now?xo.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(xo.exports=function(){return(r()-n)/1e6},e=process.hrtime,r=function(){var s;return s=e(),s[0]*1e9+s[1]},a=r(),i=process.uptime()*1e9,n=a-i):Date.now?(xo.exports=function(){return Date.now()-t},t=Date.now()):(xo.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(bme)),xo.exports}var dR;function vme(){if(dR)return Vc.exports;dR=1;for(var r=yme(),e=typeof window>"u"?A0:window,t=["moz","webkit"],a="AnimationFrame",n=e["request"+a],i=e["cancel"+a]||e["cancelRequest"+a],s=0;!n&&s<t.length;s++)n=e[t[s]+"Request"+a],i=e[t[s]+"Cancel"+a]||e[t[s]+"CancelRequest"+a];if(!n||!i){var o=0,l=0,c=[],A=1e3/60;n=function(d){if(c.length===0){var u=r(),g=Math.max(0,A-(u-o));o=g+u,setTimeout(function(){var m=c.slice(0);c.length=0;for(var _=0;_<m.length;_++)if(!m[_].cancelled)try{m[_].callback(o)}catch(E){setTimeout(function(){throw E},0)}},Math.round(g))}return c.push({handle:++l,callback:d,cancelled:!1}),l},i=function(d){for(var u=0;u<c.length;u++)c[u].handle===d&&(c[u].cancelled=!0)}}return Vc.exports=function(d){return n.call(e,d)},Vc.exports.cancel=function(){i.apply(e,arguments)},Vc.exports.polyfill=function(d){d||(d=e),d.requestAnimationFrame=n,d.cancelAnimationFrame=i},Vc.exports}var Eme=vme();const nv=Ik(Eme);var pR={},iv,gR;function fR(){return gR||(gR=1,iv=`
|
|
643
643
|
\v\f\r \u2028\u2029\uFEFF`),iv}var sv,_R;function Sme(){if(_R)return sv;_R=1;var r=Aa(),e=_i(),t=Ui(),a=fR(),n=r("".replace),i=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),o=function(l){return function(c){var A=t(e(c));return l&1&&(A=n(A,i,"")),l&2&&(A=n(A,s,"$1")),A}};return sv={start:o(1),end:o(2),trim:o(3)},sv}var ov,mR;function wme(){if(mR)return ov;mR=1;var r=dd().PROPER,e=ca(),t=fR(),a="
";return ov=function(n){return e(function(){return!!t[n]()||a[n]()!==a||r&&t[n].name!==n})},ov}var hR;function Cme(){if(hR)return pR;hR=1;var r=dn(),e=Sme().trim,t=wme();return r({target:"String",proto:!0,forced:t("trim")},{trim:function(){return e(this)}}),pR}Cme();var lv,bR;function Tme(){return bR||(bR=1,lv=function(r){this.ok=!1,this.alpha=1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r=r.replace(/ /g,""),r=r.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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"};r=e[r]||r;for(var t=[{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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3]),parseFloat(l[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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],a=0;a<t.length;a++){var n=t[a].re,i=t[a].process,s=n.exec(r);if(s){var o=i(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[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 l=this.r.toString(16),c=this.g.toString(16),A=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),A.length==1&&(A="0"+A),"#"+l+c+A},this.getHelpXML=function(){for(var l=new Array,c=0;c<t.length;c++)for(var A=t[c].example,d=0;d<A.length;d++)l[l.length]=A[d];for(var u in e)l[l.length]=u;var g=document.createElement("ul");g.setAttribute("id","rgbcolor-examples");for(var c=0;c<l.length;c++)try{var m=document.createElement("li"),_=new RGBColor(l[c]),E=document.createElement("div");E.style.cssText="margin: 3px; border: 1px solid black; background:"+_.toHex()+"; color:"+_.toHex(),E.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+l[c]+" -> "+_.toRGB()+" -> "+_.toHex());m.appendChild(E),m.appendChild(y),g.appendChild(m)}catch{}return g}}),lv}var Nme=Tme();const cv=Ik(Nme);var yR={},vR;function kme(){if(vR)return yR;vR=1;var r=dn(),e=md(),t=V5().indexOf,a=iR(),n=e([].indexOf),i=!!n&&1/n([1],1,-0)<0,s=i||!a("indexOf");return r({target:"Array",proto:!0,forced:s},{indexOf:function(l){var c=arguments.length>1?arguments[1]:void 0;return i?n(this,l,c)||0:t(this,l,c)}}),yR}kme();var ER={},SR;function Ome(){if(SR)return ER;SR=1;var r=dn(),e=Aa(),t=Hy(),a=_i(),n=Ui(),i=qy(),s=e("".indexOf);return r({target:"String",proto:!0,forced:!i("includes")},{includes:function(l){return!!~s(n(a(this)),n(t(l)),arguments.length>1?arguments[1]:void 0)}}),ER}Ome();var wR={},Av,CR;function Ime(){if(CR)return Av;CR=1;var r=Oo();return Av=Array.isArray||function(t){return r(t)==="Array"},Av}var TR;function Rme(){if(TR)return wR;TR=1;var r=dn(),e=Aa(),t=Ime(),a=e([].reverse),n=[1,2];return r({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),a(this)}}),wR}Rme();/*! *****************************************************************************
|
|
644
644
|
Copyright (c) Microsoft Corporation.
|
|
645
645
|
|