Skip to content

Instantly share code, notes, and snippets.

@prappo
Created June 5, 2023 06:07
Show Gist options
  • Save prappo/b18fd91be04e4b3c3d372cab8a777fbd to your computer and use it in GitHub Desktop.
Save prappo/b18fd91be04e4b3c3d372cab8a777fbd to your computer and use it in GitHub Desktop.
popup
This file has been truncated, but you can view the full file.
(function(Qi,Pu){typeof exports=="object"&&typeof module<"u"?Pu(exports):typeof define=="function"&&define.amd?define(["exports"],Pu):(Qi=typeof globalThis<"u"?globalThis:Qi||self,Pu(Qi.labelbaker=Qi.labelbaker||{}))})(this,function(Qi){"use strict";const Pu="";var Xx=(A,t,e)=>{if(!t.has(A))throw TypeError("Cannot "+e)},Im=(A,t,e)=>{if(t.has(A))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(A):t.set(A,e)},Tu=(A,t,e)=>(Xx(A,t,"access private method"),e),Yx=Math.PI/180;function Jx(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const is=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Wt={_global:is,version:"8.4.2",isBrowser:Jx(),isUnminified:/param/.test(function(A){}.toString()),dblClickWindow:400,getAngle(A){return Wt.angleDeg?A*Yx:A},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Wt.DD.isDragging},isDragReady(){return!!Wt.DD.node},releaseCanvasOnDestroy:!0,document:is.document,_injectGlobal(A){is.Konva=A}},eA=A=>{Wt[A.prototype.getClassName()]=A};Wt._injectGlobal(Wt);let an=class Wx{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new Wx(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}}translate(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this}scale(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this}rotate(t){var e=Math.cos(t),r=Math.sin(t),n=this.m[0]*e+this.m[2]*r,i=this.m[1]*e+this.m[3]*r,a=this.m[0]*-r+this.m[2]*e,s=this.m[1]*-r+this.m[3]*e;return this.m[0]=n,this.m[1]=i,this.m[2]=a,this.m[3]=s,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,e){var r=this.m[0]+this.m[2]*e,n=this.m[1]+this.m[3]*e,i=this.m[2]+this.m[0]*t,a=this.m[3]+this.m[1]*t;return this.m[0]=r,this.m[1]=n,this.m[2]=i,this.m[3]=a,this}multiply(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],r=this.m[1]*t.m[0]+this.m[3]*t.m[1],n=this.m[0]*t.m[2]+this.m[2]*t.m[3],i=this.m[1]*t.m[2]+this.m[3]*t.m[3],a=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],s=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=r,this.m[2]=n,this.m[3]=i,this.m[4]=a,this.m[5]=s,this}invert(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,r=-this.m[1]*t,n=-this.m[2]*t,i=this.m[0]*t,a=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),s=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=r,this.m[2]=n,this.m[3]=i,this.m[4]=a,this.m[5]=s,this}getMatrix(){return this.m}decompose(){var t=this.m[0],e=this.m[1],r=this.m[2],n=this.m[3],i=this.m[4],a=this.m[5],s=t*n-e*r;let o={x:i,y:a,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!=0||e!=0){var h=Math.sqrt(t*t+e*e);o.rotation=e>0?Math.acos(t/h):-Math.acos(t/h),o.scaleX=h,o.scaleY=s/h,o.skewX=(t*r+e*n)/s,o.skewY=0}else if(r!=0||n!=0){var u=Math.sqrt(r*r+n*n);o.rotation=Math.PI/2-(n>0?Math.acos(-r/u):-Math.acos(r/u)),o.scaleX=s/u,o.scaleY=u,o.skewX=0,o.skewY=(t*r+e*n)/s}return o.rotation=ht._getRotation(o.rotation),o}};var Zx="[object Array]",tF="[object Number]",eF="[object String]",AF="[object Boolean]",rF=Math.PI/180,nF=180/Math.PI,Bf="#",iF="",aF="0",sF="Konva warning: ",_m="Konva error: ",oF="rgb(",vf={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},hF=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,Mu=[];const uF=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(A){setTimeout(A,60)},ht={_isElement(A){return!!(A&&A.nodeType==1)},_isFunction(A){return!!(A&&A.constructor&&A.call&&A.apply)},_isPlainObject(A){return!!A&&A.constructor===Object},_isArray(A){return Object.prototype.toString.call(A)===Zx},_isNumber(A){return Object.prototype.toString.call(A)===tF&&!isNaN(A)&&isFinite(A)},_isString(A){return Object.prototype.toString.call(A)===eF},_isBoolean(A){return Object.prototype.toString.call(A)===AF},isObject(A){return A instanceof Object},isValidSelector(A){if(typeof A!="string")return!1;var t=A[0];return t==="#"||t==="."||t===t.toUpperCase()},_sign(A){return A===0||A>0?1:-1},requestAnimFrame(A){Mu.push(A),Mu.length===1&&uF(function(){const t=Mu;Mu=[],t.forEach(function(e){e()})})},createCanvasElement(){var A=document.createElement("canvas");try{A.style=A.style||{}}catch{}return A},createImageElement(){return document.createElement("img")},_isInDocument(A){for(;A=A.parentNode;)if(A==document)return!0;return!1},_urlToImage(A,t){var e=ht.createImageElement();e.onload=function(){t(e)},e.src=A},_rgbToHex(A,t,e){return((1<<24)+(A<<16)+(t<<8)+e).toString(16).slice(1)},_hexToRgb(A){A=A.replace(Bf,iF);var t=parseInt(A,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){for(var A=(Math.random()*16777215<<0).toString(16);A.length<6;)A=aF+A;return Bf+A},getRGB(A){var t;return A in vf?(t=vf[A],{r:t[0],g:t[1],b:t[2]}):A[0]===Bf?this._hexToRgb(A.substring(1)):A.substr(0,4)===oF?(t=hF.exec(A.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(A){return A=A||"black",ht._namedColorToRBA(A)||ht._hex3ColorToRGBA(A)||ht._hex4ColorToRGBA(A)||ht._hex6ColorToRGBA(A)||ht._hex8ColorToRGBA(A)||ht._rgbColorToRGBA(A)||ht._rgbaColorToRGBA(A)||ht._hslColorToRGBA(A)},_namedColorToRBA(A){var t=vf[A.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(A){if(A.indexOf("rgb(")===0){A=A.match(/rgb\(([^)]+)\)/)[1];var t=A.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(A){if(A.indexOf("rgba(")===0){A=A.match(/rgba\(([^)]+)\)/)[1];var t=A.split(/ *, */).map((e,r)=>e.slice(-1)==="%"?r===3?parseInt(e)/100:parseInt(e)/100*255:Number(e));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(A){if(A[0]==="#"&&A.length===9)return{r:parseInt(A.slice(1,3),16),g:parseInt(A.slice(3,5),16),b:parseInt(A.slice(5,7),16),a:parseInt(A.slice(7,9),16)/255}},_hex6ColorToRGBA(A){if(A[0]==="#"&&A.length===7)return{r:parseInt(A.slice(1,3),16),g:parseInt(A.slice(3,5),16),b:parseInt(A.slice(5,7),16),a:1}},_hex4ColorToRGBA(A){if(A[0]==="#"&&A.length===5)return{r:parseInt(A[1]+A[1],16),g:parseInt(A[2]+A[2],16),b:parseInt(A[3]+A[3],16),a:parseInt(A[4]+A[4],16)/255}},_hex3ColorToRGBA(A){if(A[0]==="#"&&A.length===4)return{r:parseInt(A[1]+A[1],16),g:parseInt(A[2]+A[2],16),b:parseInt(A[3]+A[3],16),a:1}},_hslColorToRGBA(A){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(A)){const[t,...e]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(A),r=Number(e[0])/360,n=Number(e[1])/100,i=Number(e[2])/100;let a,s,o;if(n===0)return o=i*255,{r:Math.round(o),g:Math.round(o),b:Math.round(o),a:1};i<.5?a=i*(1+n):a=i+n-i*n;const h=2*i-a,u=[0,0,0];for(let d=0;d<3;d++)s=r+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?o=h+(a-h)*6*s:2*s<1?o=a:3*s<2?o=h+(a-h)*(2/3-s)*6:o=h,u[d]=o*255;return{r:Math.round(u[0]),g:Math.round(u[1]),b:Math.round(u[2]),a:1}}},haveIntersection(A,t){return!(t.x>A.x+A.width||t.x+t.width<A.x||t.y>A.y+A.height||t.y+t.height<A.y)},cloneObject(A){var t={};for(var e in A)this._isPlainObject(A[e])?t[e]=this.cloneObject(A[e]):this._isArray(A[e])?t[e]=this.cloneArray(A[e]):t[e]=A[e];return t},cloneArray(A){return A.slice(0)},degToRad(A){return A*rF},radToDeg(A){return A*nF},_degToRad(A){return ht.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),ht.degToRad(A)},_radToDeg(A){return ht.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),ht.radToDeg(A)},_getRotation(A){return Wt.angleDeg?ht.radToDeg(A):A},_capitalize(A){return A.charAt(0).toUpperCase()+A.slice(1)},throw(A){throw new Error(_m+A)},error(A){console.error(_m+A)},warn(A){!Wt.showWarnings||console.warn(sF+A)},each(A,t){for(var e in A)t(e,A[e])},_inRange(A,t,e){return t<=A&&A<e},_getProjectionToSegment(A,t,e,r,n,i){var a,s,o,h=(A-e)*(A-e)+(t-r)*(t-r);if(h==0)a=A,s=t,o=(n-e)*(n-e)+(i-r)*(i-r);else{var u=((n-A)*(e-A)+(i-t)*(r-t))/h;u<0?(a=A,s=t,o=(A-n)*(A-n)+(t-i)*(t-i)):u>1?(a=e,s=r,o=(e-n)*(e-n)+(r-i)*(r-i)):(a=A+u*(e-A),s=t+u*(r-t),o=(a-n)*(a-n)+(s-i)*(s-i))}return[a,s,o]},_getProjectionToLine(A,t,e){var r=ht.cloneObject(A),n=Number.MAX_VALUE;return t.forEach(function(i,a){if(!(!e&&a===t.length-1)){var s=t[(a+1)%t.length],o=ht._getProjectionToSegment(i.x,i.y,s.x,s.y,A.x,A.y),h=o[0],u=o[1],d=o[2];d<n&&(r.x=h,r.y=u,n=d)}}),r},_prepareArrayForTween(A,t,e){var r,n=[],i=[];if(A.length>t.length){var a=t;t=A,A=a}for(r=0;r<A.length;r+=2)n.push({x:A[r],y:A[r+1]});for(r=0;r<t.length;r+=2)i.push({x:t[r],y:t[r+1]});var s=[];return i.forEach(function(o){var h=ht._getProjectionToLine(o,n,e);s.push(h.x),s.push(h.y)}),s},_prepareToStringify(A){var t;A.visitedByCircularReferenceRemoval=!0;for(var e in A)if(A.hasOwnProperty(e)&&A[e]&&typeof A[e]=="object"){if(t=Object.getOwnPropertyDescriptor(A,e),A[e].visitedByCircularReferenceRemoval||ht._isElement(A[e]))if(t.configurable)delete A[e];else return null;else if(ht._prepareToStringify(A[e])===null)if(t.configurable)delete A[e];else return null}return delete A.visitedByCircularReferenceRemoval,A},_assign(A,t){for(var e in t)A[e]=t[e];return A},_getFirstPointerId(A){return A.touches?A.changedTouches[0].identifier:A.pointerId||999},releaseCanvas(...A){!Wt.releaseCanvasOnDestroy||A.forEach(t=>{t.width=0,t.height=0})},drawRoundedRectPath(A,t,e,r){let n=0,i=0,a=0,s=0;typeof r=="number"?n=i=a=s=Math.min(r,t/2,e/2):(n=Math.min(r[0]||0,t/2,e/2),i=Math.min(r[1]||0,t/2,e/2),s=Math.min(r[2]||0,t/2,e/2),a=Math.min(r[3]||0,t/2,e/2)),A.moveTo(n,0),A.lineTo(t-i,0),A.arc(t-i,i,i,Math.PI*3/2,0,!1),A.lineTo(t,e-s),A.arc(t-s,e-s,s,0,Math.PI/2,!1),A.lineTo(a,e),A.arc(a,e-a,a,Math.PI/2,Math.PI,!1),A.lineTo(0,n),A.arc(n,n,n,Math.PI,Math.PI*3/2,!1)}};function Ei(A){return ht._isString(A)?'"'+A+'"':Object.prototype.toString.call(A)==="[object Number]"||ht._isBoolean(A)?A:Object.prototype.toString.call(A)}function Nm(A){return A>255?255:A<0?0:Math.round(A)}function _t(){if(Wt.isUnminified)return function(A,t){return ht._isNumber(A)||ht.warn(Ei(A)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),A}}function yf(A){if(Wt.isUnminified)return function(t,e){let r=ht._isNumber(t),n=ht._isArray(t)&&t.length==A;return!r&&!n&&ht.warn(Ei(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or Array<number>('+A+")"),t}}function bf(){if(Wt.isUnminified)return function(A,t){var e=ht._isNumber(A),r=A==="auto";return e||r||ht.warn(Ei(A)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),A}}function as(){if(Wt.isUnminified)return function(A,t){return ht._isString(A)||ht.warn(Ei(A)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),A}}function Pm(){if(Wt.isUnminified)return function(A,t){const e=ht._isString(A),r=Object.prototype.toString.call(A)==="[object CanvasGradient]"||A&&A.addColorStop;return e||r||ht.warn(Ei(A)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),A}}function cF(){if(Wt.isUnminified)return function(A,t){const e=Int8Array?Object.getPrototypeOf(Int8Array):null;return e&&A instanceof e||(ht._isArray(A)?A.forEach(function(r){ht._isNumber(r)||ht.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):ht.warn(Ei(A)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),A}}function sn(){if(Wt.isUnminified)return function(A,t){var e=A===!0||A===!1;return e||ht.warn(Ei(A)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),A}}function lF(A){if(Wt.isUnminified)return function(t,e){return t==null||ht.isObject(t)||ht.warn(Ei(t)+' is a not valid value for "'+e+'" attribute. The value should be an object with properties '+A),t}}var ko="get",Ho="set";const W={addGetterSetter(A,t,e,r,n){W.addGetter(A,t,e),W.addSetter(A,t,r,n),W.addOverloadedGetterSetter(A,t)},addGetter(A,t,e){var r=ko+ht._capitalize(t);A.prototype[r]=A.prototype[r]||function(){var n=this.attrs[t];return n===void 0?e:n}},addSetter(A,t,e,r){var n=Ho+ht._capitalize(t);A.prototype[n]||W.overWriteSetter(A,t,e,r)},overWriteSetter(A,t,e,r){var n=Ho+ht._capitalize(t);A.prototype[n]=function(i){return e&&i!==void 0&&i!==null&&(i=e.call(this,i,t)),this._setAttr(t,i),r&&r.call(this),this}},addComponentsGetterSetter(A,t,e,r,n){var i=e.length,a=ht._capitalize,s=ko+a(t),o=Ho+a(t),h,u;A.prototype[s]=function(){var f={};for(h=0;h<i;h++)u=e[h],f[u]=this.getAttr(t+a(u));return f};var d=lF(e);A.prototype[o]=function(f){var l=this.attrs[t],p;r&&(f=r.call(this,f)),d&&d.call(this,f,t);for(p in f)!f.hasOwnProperty(p)||this._setAttr(t+a(p),f[p]);return f||e.forEach(w=>{this._setAttr(t+a(w),void 0)}),this._fireChangeEvent(t,l,f),n&&n.call(this),this},W.addOverloadedGetterSetter(A,t)},addOverloadedGetterSetter(A,t){var e=ht._capitalize(t),r=Ho+e,n=ko+e;A.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[n]()}},addDeprecatedGetterSetter(A,t,e,r){ht.error("Adding deprecated "+t);var n=ko+ht._capitalize(t),i=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";A.prototype[n]=function(){ht.error(i);var a=this.attrs[t];return a===void 0?e:a},W.addSetter(A,t,r,function(){ht.error(i)}),W.addOverloadedGetterSetter(A,t)},backCompat(A,t){ht.each(t,function(e,r){var n=A.prototype[r],i=ko+ht._capitalize(e),a=Ho+ht._capitalize(e);function s(){n.apply(this,arguments),ht.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+r+'" instead.')}A.prototype[e]=s,A.prototype[i]=s,A.prototype[a]=s})},afterSetFilter(){this._filterUpToDate=!1}};function dF(A){var t=[],e=A.length,r=ht,n,i;for(n=0;n<e;n++)i=A[n],r._isNumber(i)?i=Math.round(i*1e3)/1e3:r._isString(i)||(i=i+""),t.push(i);return t}var Tm=",",fF="(",gF=")",pF="([",mF="])",wF=";",BF="()",vF="=",Mm=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],yF=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const bF=100;let Ou=class{constructor(t){this.canvas=t,Wt.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,e){var r=this.traceArr,n=r.length,i="",a,s,o,h;for(a=0;a<n;a++)s=r[a],o=s.method,o?(h=s.args,i+=o,t?i+=BF:ht._isArray(h[0])?i+=pF+h.join(Tm)+mF:(e&&(h=h.map(u=>typeof u=="number"?Math.floor(u):u)),i+=fF+h.join(Tm)+gF)):(i+=s.property,t||(i+=vF+s.val)),i+=wF;return i}clearTrace(){this.traceArr=[]}_trace(t){var e=this.traceArr,r;e.push(t),r=e.length,r>=bF&&e.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)}_applyLineCap(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)}_applyOpacity(t){var e=t.getAbsoluteOpacity();e!==1&&this.setAttr("globalAlpha",e)}_applyLineJoin(t){var e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)}setAttr(t,e){this._context[t]=e}arc(t,e,r,n,i,a){this._context.arc(t,e,r,n,i,a)}arcTo(t,e,r,n,i){this._context.arcTo(t,e,r,n,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,e,r,n,i,a){this._context.bezierCurveTo(t,e,r,n,i,a)}clearRect(t,e,r,n){this._context.clearRect(t,e,r,n)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(t,e){var r=arguments;if(r.length===2)return this._context.createImageData(t,e);if(r.length===1)return this._context.createImageData(t)}createLinearGradient(t,e,r,n){return this._context.createLinearGradient(t,e,r,n)}createPattern(t,e){return this._context.createPattern(t,e)}createRadialGradient(t,e,r,n,i,a){return this._context.createRadialGradient(t,e,r,n,i,a)}drawImage(t,e,r,n,i,a,s,o,h){var u=arguments,d=this._context;u.length===3?d.drawImage(t,e,r):u.length===5?d.drawImage(t,e,r,n,i):u.length===9&&d.drawImage(t,e,r,n,i,a,s,o,h)}ellipse(t,e,r,n,i,a,s,o){this._context.ellipse(t,e,r,n,i,a,s,o)}isPointInPath(t,e,r,n){return r?this._context.isPointInPath(r,t,e,n):this._context.isPointInPath(t,e,n)}fill(t){t?this._context.fill(t):this._context.fill()}fillRect(t,e,r,n){this._context.fillRect(t,e,r,n)}strokeRect(t,e,r,n){this._context.strokeRect(t,e,r,n)}fillText(t,e,r,n){n?this._context.fillText(t,e,r,n):this._context.fillText(t,e,r)}measureText(t){return this._context.measureText(t)}getImageData(t,e,r,n){return this._context.getImageData(t,e,r,n)}lineTo(t,e){this._context.lineTo(t,e)}moveTo(t,e){this._context.moveTo(t,e)}rect(t,e,r,n){this._context.rect(t,e,r,n)}putImageData(t,e,r){this._context.putImageData(t,e,r)}quadraticCurveTo(t,e,r,n){this._context.quadraticCurveTo(t,e,r,n)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,e){this._context.scale(t,e)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,e,r,n,i,a){this._context.setTransform(t,e,r,n,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,e,r,n){this._context.strokeText(t,e,r,n)}transform(t,e,r,n,i,a){this._context.transform(t,e,r,n,i,a)}translate(t,e){this._context.translate(t,e)}_enableTrace(){var t=this,e=Mm.length,r=this.setAttr,n,i,a=function(s){var o=t[s],h;t[s]=function(){return i=dF(Array.prototype.slice.call(arguments,0)),h=o.apply(t,arguments),t._trace({method:s,args:i}),h}};for(n=0;n<e;n++)a(Mm[n]);t.setAttr=function(){r.apply(t,arguments);var s=arguments[0],o=arguments[1];(s==="shadowOffsetX"||s==="shadowOffsetY"||s==="shadowBlur")&&(o=o/this.canvas.getPixelRatio()),t._trace({property:s,val:o})}}_applyGlobalCompositeOperation(t){const e=t.attrs.globalCompositeOperation;var r=!e||e==="source-over";r||this.setAttr("globalCompositeOperation",e)}};yF.forEach(function(A){Object.defineProperty(Ou.prototype,A,{get(){return this._context[A]},set(t){this._context[A]=t}})});class CF extends Ou{constructor(t){super(t),this._context=t._canvas.getContext("2d")}_fillColor(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fillRadialGradient(t){var e=t._getRadialGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))}_fill(t){var e=t.fill(),r=t.getFillPriority();if(e&&r==="color"){this._fillColor(t);return}var n=t.getFillPatternImage();if(n&&r==="pattern"){this._fillPattern(t);return}var i=t.getFillLinearGradientColorStops();if(i&&r==="linear-gradient"){this._fillLinearGradient(t);return}var a=t.getFillRadialGradientColorStops();if(a&&r==="radial-gradient"){this._fillRadialGradient(t);return}e?this._fillColor(t):n?this._fillPattern(t):i?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}_strokeLinearGradient(t){var e=t.getStrokeLinearGradientStartPoint(),r=t.getStrokeLinearGradientEndPoint(),n=t.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(e.x,e.y,r.x,r.y);if(n){for(var a=0;a<n.length;a+=2)i.addColorStop(n[a],n[a+1]);this.setAttr("strokeStyle",i)}}_stroke(t){var e=t.dash(),r=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!r){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var i=t.getStrokeLinearGradientColorStops();i?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),r||this.restore()}}_applyShadow(t){var e,r,n,i=(e=t.getShadowRGBA())!==null&&e!==void 0?e:"black",a=(r=t.getShadowBlur())!==null&&r!==void 0?r:5,s=(n=t.getShadowOffset())!==null&&n!==void 0?n:{x:0,y:0},o=t.getAbsoluteScale(),h=this.canvas.getPixelRatio(),u=o.x*h,d=o.y*h;this.setAttr("shadowColor",i),this.setAttr("shadowBlur",a*Math.min(Math.abs(u),Math.abs(d))),this.setAttr("shadowOffsetX",s.x*u),this.setAttr("shadowOffsetY",s.y*d)}}class xF extends Ou{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t);var n=t.hitStrokeWidth(),i=n==="auto"?t.strokeWidth():n;this.setAttr("lineWidth",i),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}}var ku;function FF(){if(ku)return ku;var A=ht.createCanvasElement(),t=A.getContext("2d");return ku=function(){var e=Wt._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/r}(),ht.releaseCanvas(A),ku}let Hu=class{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=t||{},r=e.pixelRatio||Wt.pixelRatio||FF();this.pixelRatio=r,this._canvas=ht.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio,r=this.getContext()._context;r.scale(e,e)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio,r=this.getContext()._context;r.scale(e,e)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,e){this.setWidth(t||0),this.setHeight(e||0)}toDataURL(t,e){try{return this._canvas.toDataURL(t,e)}catch{try{return this._canvas.toDataURL()}catch(r){return ht.error("Unable to get data URL. "+r.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};W.addGetterSetter(Hu,"pixelRatio",void 0,_t());let ss=class extends Hu{constructor(t={width:0,height:0}){super(t),this.context=new CF(this),this.setSize(t.width,t.height)}},Cf=class extends Hu{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new xF(this),this.setSize(t.width,t.height)}};const Se={get isDragging(){var A=!1;return Se._dragElements.forEach(t=>{t.dragStatus==="dragging"&&(A=!0)}),A},justDragged:!1,get node(){var A;return Se._dragElements.forEach(t=>{A=t.node}),A},_dragElements:new Map,_drag(A){const t=[];Se._dragElements.forEach((e,r)=>{const{node:n}=e,i=n.getStage();i.setPointersPositions(A),e.pointerId===void 0&&(e.pointerId=ht._getFirstPointerId(A));const a=i._changedPointerPositions.find(h=>h.id===e.pointerId);if(a){if(e.dragStatus!=="dragging"){var s=n.dragDistance(),o=Math.max(Math.abs(a.x-e.startPointerPos.x),Math.abs(a.y-e.startPointerPos.y));if(o<s||(n.startDrag({evt:A}),!n.isDragging()))return}n._setDragPosition(A,e),t.push(n)}}),t.forEach(e=>{e.fire("dragmove",{type:"dragmove",target:e,evt:A},!0)})},_endDragBefore(A){const t=[];Se._dragElements.forEach(e=>{const{node:r}=e,n=r.getStage();if(A&&n.setPointersPositions(A),!n._changedPointerPositions.find(a=>a.id===e.pointerId))return;(e.dragStatus==="dragging"||e.dragStatus==="stopped")&&(Se.justDragged=!0,Wt._mouseListenClick=!1,Wt._touchListenClick=!1,Wt._pointerListenClick=!1,e.dragStatus="stopped");const i=e.node.getLayer()||e.node instanceof Wt.Stage&&e.node;i&&t.indexOf(i)===-1&&t.push(i)}),t.forEach(e=>{e.draw()})},_endDragAfter(A){Se._dragElements.forEach((t,e)=>{t.dragStatus==="stopped"&&t.node.fire("dragend",{type:"dragend",target:t.node,evt:A},!0),t.dragStatus!=="dragging"&&Se._dragElements.delete(e)})}};Wt.isBrowser&&(window.addEventListener("mouseup",Se._endDragBefore,!0),window.addEventListener("touchend",Se._endDragBefore,!0),window.addEventListener("mousemove",Se._drag),window.addEventListener("touchmove",Se._drag),window.addEventListener("mouseup",Se._endDragAfter,!1),window.addEventListener("touchend",Se._endDragAfter,!1));var Du="absoluteOpacity",Ru="allEventListeners",Yn="absoluteTransform",Om="absoluteScale",wa="canvas",QF="Change",EF="children",UF="konva",xf="listening",km="mouseenter",Hm="mouseleave",Dm="set",Rm="Shape",ju=" ",jm="stage",Ui="transform",SF="Stage",Ff="visible",LF=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(ju);let IF=1,Nt=class Lm{constructor(t){this._id=IF++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Ui||t===Yn)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,e){var r=this._cache.get(t),n=t===Ui||t===Yn,i=r===void 0||n&&r.dirty===!0;return i&&(r=e.call(this),this._cache.set(t,r)),r}_calculate(t,e,r){if(!this._attachedDepsListeners.get(t)){const n=e.map(i=>i+"Change.konva").join(ju);this.on(n,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(wa)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Yn&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(wa)){const{scene:t,filter:e,hit:r}=this._cache.get(wa);ht.releaseCanvas(t,e,r),this._cache.delete(wa)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var e=t||{},r={};(e.x===void 0||e.y===void 0||e.width===void 0||e.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var n=Math.ceil(e.width||r.width),i=Math.ceil(e.height||r.height),a=e.pixelRatio,s=e.x===void 0?Math.floor(r.x):e.x,o=e.y===void 0?Math.floor(r.y):e.y,h=e.offset||0,u=e.drawBorder||!1,d=e.hitCanvasPixelRatio||1;if(!n||!i){ht.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}n+=h*2+1,i+=h*2+1,s-=h,o-=h;var f=new ss({pixelRatio:a,width:n,height:i}),l=new ss({pixelRatio:a,width:0,height:0}),p=new Cf({pixelRatio:d,width:n,height:i}),w=f.getContext(),y=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(wa),this._filterUpToDate=!1,e.imageSmoothingEnabled===!1&&(f.getContext()._context.imageSmoothingEnabled=!1,l.getContext()._context.imageSmoothingEnabled=!1),w.save(),y.save(),w.translate(-s,-o),y.translate(-s,-o),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Du),this._clearSelfAndDescendantCache(Om),this.drawScene(f,this),this.drawHit(p,this),this._isUnderCache=!1,w.restore(),y.restore(),u&&(w.save(),w.beginPath(),w.rect(0,0,n,i),w.closePath(),w.setAttr("strokeStyle","red"),w.setAttr("lineWidth",5),w.stroke(),w.restore()),this._cache.set(wa,{scene:f,filter:l,hit:p,x:s,y:o}),this._requestDraw(),this}isCached(){return this._cache.has(wa)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,e){var r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n,i,a,s,o=this.getAbsoluteTransform(e);return r.forEach(function(h){var u=o.point(h);n===void 0&&(n=a=u.x,i=s=u.y),n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),s=Math.max(s,u.y)}),{x:n,y:i,width:a-n,height:s-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const e=this._getCanvasCache();t.translate(e.x,e.y);var r=this._getCachedSceneCanvas(),n=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/n,r.height/n),t.restore()}_drawCachedHitCanvas(t){var e=this._getCanvasCache(),r=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),e=this._getCanvasCache(),r=e.scene,n=e.filter,i=n.getContext(),a,s,o,h;if(t){if(!this._filterUpToDate){var u=r.pixelRatio;n.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(r._canvas,0,0,r.getWidth()/u,r.getHeight()/u),s=i.getImageData(0,0,n.getWidth(),n.getHeight()),o=0;o<a;o++){if(h=t[o],typeof h!="function"){ht.error("Filter should be type of function, but got "+typeof h+" instead. Please check correct filters");continue}h.call(this,s),i.putImageData(s,0,0)}}catch(d){ht.error("Unable to apply filter. "+d.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return n}return r}on(t,e){if(this._cache&&this._cache.delete(Ru),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(ju),n=r.length,i,a,s,o,h;for(i=0;i<n;i++)a=r[i],s=a.split("."),o=s[0],h=s[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:h,handler:e});return this}off(t,e){var r=(t||"").split(ju),n=r.length,i,a,s,o,h,u;if(this._cache&&this._cache.delete(Ru),!t)for(a in this.eventListeners)this._off(a);for(i=0;i<n;i++)if(s=r[i],o=s.split("."),h=o[0],u=o[1],h)this.eventListeners[h]&&this._off(h,u,e);else for(a in this.eventListeners)this._off(a,u,e);return this}dispatchEvent(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this}addEventListener(t,e){return this.on(t,function(r){e.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,e,r){var n=this;this.on(t,function(i){for(var a=i.target.findAncestors(e,!0,n),s=0;s<a.length;s++)i=ht.cloneObject(i),i.currentTarget=a[s],r.call(a[s],i)})}remove(){return this.isDragging()&&this.stopDrag(),Se._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Yn),this._clearSelfAndDescendantCache(Du),this._clearSelfAndDescendantCache(Om),this._clearSelfAndDescendantCache(jm),this._clearSelfAndDescendantCache(Ff),this._clearSelfAndDescendantCache(xf)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var e="get"+ht._capitalize(t);return ht._isFunction(this[e])?this[e]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),e=[];t;)e.push(t),t=t.getParent();return e}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var e,r;if(!t)return this;for(e in t)e!==EF&&(r=Dm+ht._capitalize(e),ht._isFunction(this[r])?this[r](t[e]):this._setAttr(e,t[e]))}),this}isListening(){return this._getCache(xf,this._isListening)}_isListening(t){if(!this.listening())return!1;const e=this.getParent();return e&&e!==t&&this!==t?e._isListening(t):!0}isVisible(){return this._getCache(Ff,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const e=this.getParent();return e&&e!==t&&this!==t?e._isVisible(t):!0}shouldDrawHit(t,e=!1){if(t)return this._isVisible(t)&&this._isListening(t);var r=this.getLayer(),n=!1;Se._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===r)&&(n=!0)});var i=!e&&!Wt.hitOnDragEnabled&&n;return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),e=this,r=0,n,i,a,s;function o(h){for(n=[],i=h.length,a=0;a<i;a++)s=h[a],r++,s.nodeType!==Rm&&(n=n.concat(s.getChildren().slice())),s._id===e._id&&(a=i);n.length>0&&n[0].getDepth()<=t&&o(n)}return e.nodeType!==SF&&o(e.getStage().getChildren()),r}getDepth(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Ui),this._clearSelfAndDescendantCache(Yn)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var t=this.getStage().getPointerPosition();if(!t)return null;var e=this.getAbsoluteTransform().copy();return e.invert(),e.point(t)}getAbsolutePosition(t){let e=!1,r=this.parent;for(;r;){if(r.isCached()){e=!0;break}r=r.parent}e&&!t&&(t=!0);var n=this.getAbsoluteTransform(t).getMatrix(),i=new an,a=this.offset();return i.m=n.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){var e=this._clearTransform();this.attrs.x=e.x,this.attrs.y=e.y,delete e.x,delete e.y,this._clearCache(Ui);var r=this._getAbsoluteTransform().copy();return r.invert(),r.translate(t.x,t.y),t={x:this.attrs.x+r.getTranslation().x,y:this.attrs.y+r.getTranslation().y},this._setTransform(e),this.setPosition({x:t.x,y:t.y}),this._clearCache(Ui),this._clearSelfAndDescendantCache(Yn),this}_setTransform(t){var e;for(e in t)this.attrs[e]=t[e]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var e=t.x,r=t.y,n=this.x(),i=this.y();return e!==void 0&&(n+=e),r!==void 0&&(i+=r),this.setPosition({x:n,y:i}),this}_eachAncestorReverse(t,e){var r=[],n=this.getParent(),i,a;if(!(e&&e._id===this._id)){for(r.unshift(this);n&&(!e||n._id!==e._id);)r.unshift(n),n=n.parent;for(i=r.length,a=0;a<i;a++)t(r[a])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return ht.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return ht.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,e=this.parent.getChildren().length;return t<e-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return ht.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return ht.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return ht.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&ht.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Du,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t={},e=this.getAttrs(),r,n,i,a,s;t.attrs={};for(r in e)n=e[r],s=ht.isObject(n)&&!ht._isPlainObject(n)&&!ht._isArray(n),!s&&(i=typeof this[r]=="function"&&this[r],delete e[r],a=i?i.call(this):null,e[r]=n,a!==n&&(t.attrs[r]=n));return t.className=this.getClassName(),ht._prepareToStringify(t)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,e,r){var n=[];e&&this._isMatch(t)&&n.push(this);for(var i=this.parent;i;){if(i===r)return n;i._isMatch(t)&&n.push(i),i=i.parent}return n}isAncestorOf(t){return!1}findAncestor(t,e,r){return this.findAncestors(t,e,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var e=t.replace(/ /g,"").split(","),r=e.length,n,i;for(n=0;n<r;n++)if(i=e[n],ht.isValidSelector(i)||(ht.warn('Selector "'+i+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),ht.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),ht.warn("Konva is awesome, right?")),i.charAt(0)==="#"){if(this.id()===i.slice(1))return!0}else if(i.charAt(0)==="."){if(this.hasName(i.slice(1)))return!0}else if(this.className===i||this.nodeType===i)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(jm,this._getStage)}_getStage(){var t=this.getParent();if(t)return t.getStage()}fire(t,e={},r){return e.target=e.target||this,r?this._fireAndBubble(t,e):this._fire(t,e),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(Yn,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var e;if(t)return e=new an,this._eachAncestorReverse(function(n){var i=n.transformsEnabled();i==="all"?e.multiply(n.getTransform()):i==="position"&&e.translate(n.x()-n.offsetX(),n.y()-n.offsetY())},t),e;e=this._cache.get(Yn)||new an,this.parent?this.parent.getAbsoluteTransform().copyInto(e):e.reset();var r=this.transformsEnabled();if(r==="all")e.multiply(this.getTransform());else if(r==="position"){const n=this.attrs.x||0,i=this.attrs.y||0,a=this.attrs.offsetX||0,s=this.attrs.offsetY||0;e.translate(n-a,i-s)}return e.dirty=!1,e}getAbsoluteScale(t){for(var e=this;e;)e._isUnderCache&&(t=e),e=e.getParent();const r=this.getAbsoluteTransform(t).decompose();return{x:r.scaleX,y:r.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Ui,this._getTransform)}_getTransform(){var t,e,r=this._cache.get(Ui)||new an;r.reset();var n=this.x(),i=this.y(),a=Wt.getAngle(this.rotation()),s=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,o=(e=this.attrs.scaleY)!==null&&e!==void 0?e:1,h=this.attrs.skewX||0,u=this.attrs.skewY||0,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(n!==0||i!==0)&&r.translate(n,i),a!==0&&r.rotate(a),(h!==0||u!==0)&&r.skew(h,u),(s!==1||o!==1)&&r.scale(s,o),(d!==0||f!==0)&&r.translate(-1*d,-1*f),r.dirty=!1,r}clone(t){var e=ht.cloneObject(this.attrs),r,n,i,a,s;for(r in t)e[r]=t[r];var o=new this.constructor(e);for(r in this.eventListeners)for(n=this.eventListeners[r],i=n.length,a=0;a<i;a++)s=n[a],s.name.indexOf(UF)<0&&(o.eventListeners[r]||(o.eventListeners[r]=[]),o.eventListeners[r].push(s));return o}_toKonvaCanvas(t){t=t||{};var e=this.getClientRect(),r=this.getStage(),n=t.x!==void 0?t.x:Math.floor(e.x),i=t.y!==void 0?t.y:Math.floor(e.y),a=t.pixelRatio||1,s=new ss({width:t.width||Math.ceil(e.width)||(r?r.width():0),height:t.height||Math.ceil(e.height)||(r?r.height():0),pixelRatio:a}),o=s.getContext();return t.imageSmoothingEnabled===!1&&(o._context.imageSmoothingEnabled=!1),o.save(),(n||i)&&o.translate(-1*n,-1*i),this.drawScene(s),o.restore(),s}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var e=t.mimeType||null,r=t.quality||null,n=this._toKonvaCanvas(t).toDataURL(e,r);return t.callback&&t.callback(n),n}toImage(t){return new Promise((e,r)=>{try{const n=t==null?void 0:t.callback;n&&delete t.callback,ht._urlToImage(this.toDataURL(t),function(i){e(i),n==null||n(i)})}catch(n){r(n)}})}toBlob(t){return new Promise((e,r)=>{try{const n=t==null?void 0:t.callback;n&&delete t.callback,this.toCanvas(t).toBlob(i=>{e(i),n==null||n(i)})}catch(n){r(n)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Wt.dragDistance}_off(t,e,r){var n=this.eventListeners[t],i,a,s;for(i=0;i<n.length;i++)if(a=n[i].name,s=n[i].handler,(a!=="konva"||e==="konva")&&(!e||a===e)&&(!r||r===s)){if(n.splice(i,1),n.length===0){delete this.eventListeners[t];break}i--}}_fireChangeEvent(t,e,r){this._fire(t+QF,{oldVal:e,newVal:r})}addName(t){if(!this.hasName(t)){var e=this.name(),r=e?e+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const e=this.name();if(!e)return!1;var r=(e||"").split(/\s/g);return r.indexOf(t)!==-1}removeName(t){var e=(this.name()||"").split(/\s/g),r=e.indexOf(t);return r!==-1&&(e.splice(r,1),this.name(e.join(" "))),this}setAttr(t,e){var r=this[Dm+ht._capitalize(t)];return ht._isFunction(r)?r.call(this,e):this._setAttr(t,e),this}_requestDraw(){if(Wt.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,e){var r=this.attrs[t];r===e&&!ht.isObject(e)||(e==null?delete this.attrs[t]:this.attrs[t]=e,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,e),this._requestDraw())}_setComponentAttr(t,e,r){var n;r!==void 0&&(n=this.attrs[t],n||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=r,this._fireChangeEvent(t,n,r))}_fireAndBubble(t,e,r){e&&this.nodeType===Rm&&(e.target=this);var n=(t===km||t===Hm)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!n){this._fire(t,e);var i=(t===km||t===Hm)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!i&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,e,r):this._fireAndBubble.call(this.parent,t,e))}}_getProtoListeners(t){let e=this._cache.get(Ru);if(!e){e={};let n=Object.getPrototypeOf(this);for(;n;){if(!n.eventListeners){n=Object.getPrototypeOf(n);continue}for(var r in n.eventListeners){const i=n.eventListeners[r],a=e[r]||[];e[r]=i.concat(a)}n=Object.getPrototypeOf(n)}this._cache.set(Ru,e)}return e[t]}_fire(t,e){e=e||{},e.currentTarget=this,e.type=t;const r=this._getProtoListeners(t);if(r)for(var n=0;n<r.length;n++)r[n].handler.call(this,e);const i=this.eventListeners[t];if(i)for(var n=0;n<i.length;n++)i[n].handler.call(this,e)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var e=t?t.pointerId:void 0,r=this.getStage(),n=this.getAbsolutePosition(),i=r._getPointerById(e)||r._changedPointerPositions[0]||n;Se._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-n.x,y:i.y-n.y},dragStatus:"ready",pointerId:e})}startDrag(t,e=!0){Se._dragElements.has(this._id)||this._createDragElement(t);const r=Se._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},e)}_setDragPosition(t,e){const r=this.getStage()._getPointerById(e.pointerId);if(r){var n={x:r.x-e.offset.x,y:r.y-e.offset.y},i=this.dragBoundFunc();if(i!==void 0){const a=i.call(this,n,t);a?n=a:ht.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==n.x||this._lastPos.y!==n.y)&&(this.setAbsolutePosition(n),this._requestDraw()),this._lastPos=n}}stopDrag(t){const e=Se._dragElements.get(this._id);e&&(e.dragStatus="stopped"),Se._endDragBefore(t),Se._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Se._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var e=t.evt.button!==void 0,r=!e||Wt.dragButtons.indexOf(t.evt.button)>=0;if(r&&!this.isDragging()){var n=!1;Se._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(n=!0)}),n||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const e=Se._dragElements.get(this._id),r=e&&e.dragStatus==="dragging",n=e&&e.dragStatus==="ready";r?this.stopDrag():n&&Se._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const e=this.getStage();if(!e)return!1;const r={x:-t.x,y:-t.y,width:e.width()+2*t.x,height:e.height()+2*t.y};return ht.haveIntersection(r,this.getClientRect())}static create(t,e){return ht._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)}static _createNode(t,e){var r=Lm.prototype.getClassName.call(t),n=t.children,i,a,s;e&&(t.attrs.container=e),Wt[r]||(ht.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const o=Wt[r];if(i=new o(t.attrs),n)for(a=n.length,s=0;s<a;s++)i.add(Lm._createNode(n[s]));return i}};Nt.prototype.nodeType="Node",Nt.prototype._attrsAffectingSize=[],Nt.prototype.eventListeners={},Nt.prototype.on.call(Nt.prototype,LF,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Ui),this._clearSelfAndDescendantCache(Yn)}),Nt.prototype.on.call(Nt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(Ff)}),Nt.prototype.on.call(Nt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(xf)}),Nt.prototype.on.call(Nt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Du)});const Ge=W.addGetterSetter;Ge(Nt,"zIndex"),Ge(Nt,"absolutePosition"),Ge(Nt,"position"),Ge(Nt,"x",0,_t()),Ge(Nt,"y",0,_t()),Ge(Nt,"globalCompositeOperation","source-over",as()),Ge(Nt,"opacity",1,_t()),Ge(Nt,"name","",as()),Ge(Nt,"id","",as()),Ge(Nt,"rotation",0,_t()),W.addComponentsGetterSetter(Nt,"scale",["x","y"]),Ge(Nt,"scaleX",1,_t()),Ge(Nt,"scaleY",1,_t()),W.addComponentsGetterSetter(Nt,"skew",["x","y"]),Ge(Nt,"skewX",0,_t()),Ge(Nt,"skewY",0,_t()),W.addComponentsGetterSetter(Nt,"offset",["x","y"]),Ge(Nt,"offsetX",0,_t()),Ge(Nt,"offsetY",0,_t()),Ge(Nt,"dragDistance",null,_t()),Ge(Nt,"width",0,_t()),Ge(Nt,"height",0,_t()),Ge(Nt,"listening",!0,sn()),Ge(Nt,"preventDefault",!0,sn()),Ge(Nt,"filters",null,function(A){return this._filterUpToDate=!1,A}),Ge(Nt,"visible",!0,sn()),Ge(Nt,"transformsEnabled","all",as()),Ge(Nt,"size"),Ge(Nt,"dragBoundFunc"),Ge(Nt,"draggable",!1,sn()),W.backCompat(Nt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});let _r=class extends Nt{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const e=this.children||[];var r=[];return e.forEach(function(n){t(n)&&r.push(n)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(var e=0;e<t.length;e++)this.add(t[e]);return this}const r=t[0];return r.getParent()?(r.moveTo(this),this):(this._validateAdd(r),r.index=this.getChildren().length,r.parent=this,r._clearCaches(),this.getChildren().push(r),this._fire("add",{child:r}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0}_generalFind(t,e){var r=[];return this._descendants(n=>{const i=n._isMatch(t);return i&&r.push(n),!!(i&&e)}),r}_descendants(t){let e=!1;const r=this.getChildren();for(const n of r)if(e=t(n),e||n.hasChildren()&&(e=n._descendants(t),e))return!0;return!1}toObject(){var t=Nt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(e=>{t.children.push(e.toObject())}),t}isAncestorOf(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1}clone(t){var e=Nt.prototype.clone.call(this,t);return this.getChildren().forEach(function(r){e.add(r.clone())}),e}getAllIntersections(t){var e=[];return this.find("Shape").forEach(function(r){r.isVisible()&&r.intersects(t)&&e.push(r)}),e}_clearSelfAndDescendantCache(t){var e;super._clearSelfAndDescendantCache(t),!this.isCached()&&((e=this.children)===null||e===void 0||e.forEach(function(r){r._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(e,r){e.index=r}),this._requestDraw()}drawScene(t,e){var r=this.getLayer(),n=t||r&&r.getCanvas(),i=n&&n.getContext(),a=this._getCanvasCache(),s=a&&a.scene,o=n&&n.isCache;if(!this.isVisible()&&!o)return this;if(s){i.save();var h=this.getAbsoluteTransform(e).getMatrix();i.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(i),i.restore()}else this._drawChildren("drawScene",n,e);return this}drawHit(t,e){if(!this.shouldDrawHit(e))return this;var r=this.getLayer(),n=t||r&&r.hitCanvas,i=n&&n.getContext(),a=this._getCanvasCache(),s=a&&a.hit;if(s){i.save();var o=this.getAbsoluteTransform(e).getMatrix();i.transform(o[0],o[1],o[2],o[3],o[4],o[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",n,e);return this}_drawChildren(t,e,r){var n,i=e&&e.getContext(),a=this.clipWidth(),s=this.clipHeight(),o=this.clipFunc(),h=a&&s||o;const u=r===this;if(h){i.save();var d=this.getAbsoluteTransform(r),f=d.getMatrix();if(i.transform(f[0],f[1],f[2],f[3],f[4],f[5]),i.beginPath(),o)o.call(this,i,this);else{var l=this.clipX(),p=this.clipY();i.rect(l,p,a,s)}i.clip(),f=d.copy().invert().getMatrix(),i.transform(f[0],f[1],f[2],f[3],f[4],f[5])}var w=!u&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";w&&(i.save(),i._applyGlobalCompositeOperation(this)),(n=this.children)===null||n===void 0||n.forEach(function(y){y[t](e,r)}),w&&i.restore(),h&&i.restore()}getClientRect(t){var e;t=t||{};var r=t.skipTransform,n=t.relativeTo,i,a,s,o,h={x:1/0,y:1/0,width:0,height:0},u=this;(e=this.children)===null||e===void 0||e.forEach(function(w){if(w.visible()){var y=w.getClientRect({relativeTo:u,skipShadow:t.skipShadow,skipStroke:t.skipStroke});y.width===0&&y.height===0||(i===void 0?(i=y.x,a=y.y,s=y.x+y.width,o=y.y+y.height):(i=Math.min(i,y.x),a=Math.min(a,y.y),s=Math.max(s,y.x+y.width),o=Math.max(o,y.y+y.height)))}});for(var d=this.find("Shape"),f=!1,l=0;l<d.length;l++){var p=d[l];if(p._isVisible(this)){f=!0;break}}return f&&i!==void 0?h={x:i,y:a,width:s-i,height:o-a}:h={x:0,y:0,width:0,height:0},r?h:this._transformedRect(h,n)}};W.addComponentsGetterSetter(_r,"clip",["x","y","width","height"]),W.addGetterSetter(_r,"clipX",void 0,_t()),W.addGetterSetter(_r,"clipY",void 0,_t()),W.addGetterSetter(_r,"clipWidth",void 0,_t()),W.addGetterSetter(_r,"clipHeight",void 0,_t()),W.addGetterSetter(_r,"clipFunc");const Do=new Map,Gm=Wt._global.PointerEvent!==void 0;function Qf(A){return Do.get(A)}function Ef(A){return{evt:A,pointerId:A.pointerId}}function Km(A,t){return Do.get(A)===t}function Vm(A,t){Ro(A),t.getStage()&&(Do.set(A,t),Gm&&t._fire("gotpointercapture",Ef(new PointerEvent("gotpointercapture"))))}function Ro(A,t){const e=Do.get(A);if(!e)return;const r=e.getStage();r&&r.content,Do.delete(A),Gm&&e._fire("lostpointercapture",Ef(new PointerEvent("lostpointercapture")))}var _F="Stage",NF="string",$m="px",PF="mouseout",zm="mouseleave",Wm="mouseover",qm="mouseenter",Xm="mousemove",Ym="mousedown",Jm="mouseup",jo="pointermove",Go="pointerdown",os="pointerup",Ko="pointercancel",TF="lostpointercapture",Gu="pointerout",Ku="pointerleave",Vu="pointerover",$u="pointerenter",Uf="contextmenu",Zm="touchstart",tw="touchend",ew="touchmove",Aw="touchcancel",Sf="wheel",MF=5,OF=[[qm,"_pointerenter"],[Ym,"_pointerdown"],[Xm,"_pointermove"],[Jm,"_pointerup"],[zm,"_pointerleave"],[Zm,"_pointerdown"],[ew,"_pointermove"],[tw,"_pointerup"],[Aw,"_pointercancel"],[Wm,"_pointerover"],[Sf,"_wheel"],[Uf,"_contextmenu"],[Go,"_pointerdown"],[jo,"_pointermove"],[os,"_pointerup"],[Ko,"_pointercancel"],[TF,"_lostpointercapture"]];const Lf={mouse:{[Gu]:PF,[Ku]:zm,[Vu]:Wm,[$u]:qm,[jo]:Xm,[Go]:Ym,[os]:Jm,[Ko]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[Gu]:"touchout",[Ku]:"touchleave",[Vu]:"touchover",[$u]:"touchenter",[jo]:ew,[Go]:Zm,[os]:tw,[Ko]:Aw,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[Gu]:Gu,[Ku]:Ku,[Vu]:Vu,[$u]:$u,[jo]:jo,[Go]:Go,[os]:os,[Ko]:Ko,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},Vo=A=>A.indexOf("pointer")>=0?"pointer":A.indexOf("touch")>=0?"touch":"mouse",hs=A=>{const t=Vo(A);if(t==="pointer")return Wt.pointerEventsEnabled&&Lf.pointer;if(t==="touch")return Lf.touch;if(t==="mouse")return Lf.mouse};function rw(A={}){return(A.clipFunc||A.clipWidth||A.clipHeight)&&ht.warn("Stage does not support clipping. Please use clip for Layers or Groups."),A}const kF="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",zu=[];let Wu=class extends _r{constructor(t){super(rw(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),zu.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{rw(this.attrs)}),this._checkVisibility()}_validateAdd(t){const e=t.getType()==="Layer",r=t.getType()==="FastLayer";e||r||ht.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===NF){if(t.charAt(0)==="."){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var r;t.charAt(0)!=="#"?r=t:r=t.slice(1),t=document.getElementById(r)}if(!t)throw"Can not find container in document with id "+r}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t=this.children,e=t.length,r;for(r=0;r<e;r++)t[r].clear();return this}clone(t){return t||(t={}),t.container=typeof document<"u"&&document.createElement("div"),_r.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&ht._isInDocument(t)&&this.container().removeChild(t);var e=zu.indexOf(this);return e>-1&&zu.splice(e,1),ht.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(ht.warn(kF),null)}_getPointerById(t){return this._pointerPositions.find(e=>e.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t=t||{},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var e=new ss({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),r=e.getContext()._context,n=this.children;return(t.x||t.y)&&r.translate(-1*t.x,-1*t.y),n.forEach(function(i){if(i.isVisible()){var a=i._toKonvaCanvas(t);r.drawImage(a._canvas,t.x,t.y,a.getWidth()/a.getPixelRatio(),a.getHeight()/a.getPixelRatio())}}),e}getIntersection(t){if(!t)return null;var e=this.children,r=e.length,n=r-1,i;for(i=n;i>=0;i--){const a=e[i].getIntersection(t);if(a)return a}return null}_resizeDOM(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+$m,this.content.style.height=e+$m),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.forEach(r=>{r.setSize({width:t,height:e}),r.draw()})}add(t,...e){if(arguments.length>1){for(var r=0;r<arguments.length;r++)this.add(arguments[r]);return this}super.add(t);var n=this.children.length;return n>MF&&ht.warn("The stage has "+n+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),Wt.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return Km(t,this)}setPointerCapture(t){Vm(t,this)}releaseCapture(t){Ro(t)}getLayers(){return this.children}_bindContentEvents(){!Wt.isBrowser||OF.forEach(([t,e])=>{this.content.addEventListener(t,r=>{this[e](r)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const e=hs(t.type);this._fire(e.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const e=hs(t.type);this._fire(e.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let e=this[t+"targetShape"];return e&&!e.getStage()&&(e=null),e}_pointerleave(t){const e=hs(t.type),r=Vo(t.type);if(e){this.setPointersPositions(t);var n=this._getTargetShape(r),i=!Se.isDragging||Wt.hitOnDragEnabled;n&&i?(n._fireAndBubble(e.pointerout,{evt:t}),n._fireAndBubble(e.pointerleave,{evt:t}),this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this[r+"targetShape"]=null):i&&(this._fire(e.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(e.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){const e=hs(t.type),r=Vo(t.type);if(e){this.setPointersPositions(t);var n=!1;this._changedPointerPositions.forEach(i=>{var a=this.getIntersection(i);if(Se.justDragged=!1,Wt["_"+r+"ListenClick"]=!0,!(a&&a.isListening()))return;Wt.capturePointerEventsEnabled&&a.setPointerCapture(i.id),this[r+"ClickStartShape"]=a,a._fireAndBubble(e.pointerdown,{evt:t,pointerId:i.id}),n=!0;const s=t.type.indexOf("touch")>=0;a.preventDefault()&&t.cancelable&&s&&t.preventDefault()}),n||this._fire(e.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){const e=hs(t.type),r=Vo(t.type);if(!e)return;Se.isDragging&&Se.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t);var n=!Se.isDragging||Wt.hitOnDragEnabled;if(!n)return;var i={};let a=!1;var s=this._getTargetShape(r);this._changedPointerPositions.forEach(o=>{const h=Qf(o.id)||this.getIntersection(o),u=o.id,d={evt:t,pointerId:u};var f=s!==h;if(f&&s&&(s._fireAndBubble(e.pointerout,Object.assign({},d),h),s._fireAndBubble(e.pointerleave,Object.assign({},d),h)),h){if(i[h._id])return;i[h._id]=!0}h&&h.isListening()?(a=!0,f&&(h._fireAndBubble(e.pointerover,Object.assign({},d),s),h._fireAndBubble(e.pointerenter,Object.assign({},d),s),this[r+"targetShape"]=h),h._fireAndBubble(e.pointermove,Object.assign({},d))):s&&(this._fire(e.pointerover,{evt:t,target:this,currentTarget:this,pointerId:u}),this[r+"targetShape"]=null)}),a||this._fire(e.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const e=hs(t.type),r=Vo(t.type);if(!e)return;this.setPointersPositions(t);const n=this[r+"ClickStartShape"],i=this[r+"ClickEndShape"];var a={};let s=!1;this._changedPointerPositions.forEach(o=>{const h=Qf(o.id)||this.getIntersection(o);if(h){if(h.releaseCapture(o.id),a[h._id])return;a[h._id]=!0}const u=o.id,d={evt:t,pointerId:u};let f=!1;Wt["_"+r+"InDblClickWindow"]?(f=!0,clearTimeout(this[r+"DblTimeout"])):Se.justDragged||(Wt["_"+r+"InDblClickWindow"]=!0,clearTimeout(this[r+"DblTimeout"])),this[r+"DblTimeout"]=setTimeout(function(){Wt["_"+r+"InDblClickWindow"]=!1},Wt.dblClickWindow),h&&h.isListening()?(s=!0,this[r+"ClickEndShape"]=h,h._fireAndBubble(e.pointerup,Object.assign({},d)),Wt["_"+r+"ListenClick"]&&n&&n===h&&(h._fireAndBubble(e.pointerclick,Object.assign({},d)),f&&i&&i===h&&h._fireAndBubble(e.pointerdblclick,Object.assign({},d)))):(this[r+"ClickEndShape"]=null,Wt["_"+r+"ListenClick"]&&this._fire(e.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:u}),f&&this._fire(e.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:u}))}),s||this._fire(e.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Wt["_"+r+"ListenClick"]=!1,t.cancelable&&r!=="touch"&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(Uf,{evt:t}):this._fire(Uf,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(Sf,{evt:t}):this._fire(Sf,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const e=Qf(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(os,Ef(t)),Ro(t.pointerId)}_lostpointercapture(t){Ro(t.pointerId)}setPointersPositions(t){var e=this._getContentPosition(),r=null,n=null;t=t||window.event,t.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,i=>{this._pointerPositions.push({id:i.identifier,x:(i.clientX-e.left)/e.scaleX,y:(i.clientY-e.top)/e.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,i=>{this._changedPointerPositions.push({id:i.identifier,x:(i.clientX-e.left)/e.scaleX,y:(i.clientY-e.top)/e.scaleY})})):(r=(t.clientX-e.left)/e.scaleX,n=(t.clientY-e.top)/e.scaleY,this.pointerPos={x:r,y:n},this._pointerPositions=[{x:r,y:n,id:ht._getFirstPointerId(t)}],this._changedPointerPositions=[{x:r,y:n,id:ht._getFirstPointerId(t)}])}_setPointerPosition(t){ht.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new ss({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Cf({pixelRatio:1,width:this.width(),height:this.height()}),!!Wt.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return ht.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}};Wu.prototype.nodeType=_F,eA(Wu),W.addGetterSetter(Wu,"container");var nw="hasShadow",iw="shadowRGBA",aw="patternImage",sw="linearGradient",ow="radialGradient";let If;function _f(){return If||(If=ht.createCanvasElement().getContext("2d"),If)}const $o={};function HF(A){A.fill()}function DF(A){A.stroke()}function RF(A){A.fill()}function jF(A){A.stroke()}function GF(){this._clearCache(nw)}function KF(){this._clearCache(iw)}function VF(){this._clearCache(aw)}function $F(){this._clearCache(sw)}function zF(){this._clearCache(ow)}let Et=class extends Nt{constructor(t){super(t);let e;for(;e=ht.getRandomColor(),!(e&&!(e in $o)););this.colorKey=e,$o[e]=this}getContext(){return ht.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return ht.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(nw,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(aw,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var t=_f();const e=t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(e&&e.setTransform){const r=new an;r.translate(this.fillPatternX(),this.fillPatternY()),r.rotate(Wt.getAngle(this.fillPatternRotation())),r.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),r.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=r.getMatrix(),i=typeof DOMMatrix>"u"?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);e.setTransform(i)}return e}}_getLinearGradient(){return this._getCache(sw,this.__getLinearGradient)}__getLinearGradient(){var t=this.fillLinearGradientColorStops();if(t){for(var e=_f(),r=this.fillLinearGradientStartPoint(),n=this.fillLinearGradientEndPoint(),i=e.createLinearGradient(r.x,r.y,n.x,n.y),a=0;a<t.length;a+=2)i.addColorStop(t[a],t[a+1]);return i}}_getRadialGradient(){return this._getCache(ow,this.__getRadialGradient)}__getRadialGradient(){var t=this.fillRadialGradientColorStops();if(t){for(var e=_f(),r=this.fillRadialGradientStartPoint(),n=this.fillRadialGradientEndPoint(),i=e.createRadialGradient(r.x,r.y,this.fillRadialGradientStartRadius(),n.x,n.y,this.fillRadialGradientEndRadius()),a=0;a<t.length;a+=2)i.addColorStop(t[a],t[a+1]);return i}}getShadowRGBA(){return this._getCache(iw,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var t=ht.colorToRGBA(this.shadowColor());if(t)return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const t=this.hitStrokeWidth();return t==="auto"?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){var e=this.getStage(),r=e.bufferHitCanvas,n;return r.getContext().clear(),this.drawHit(r,null,!0),n=r.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,n[3]>0}destroy(){return Nt.prototype.destroy.call(this),delete $o[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var e;if(!this.getStage()||!(!((e=this.attrs.perfectDrawEnabled)!==null&&e!==void 0)||e))return!1;const r=t||this.hasFill(),n=this.hasStroke(),i=this.getAbsoluteOpacity()!==1;if(r&&n&&i)return!0;const a=this.hasShadow(),s=this.shadowForStrokeEnabled();return!!(r&&n&&a&&s)}setStrokeHitEnabled(t){ht.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){const e=t.skipTransform,r=t.relativeTo,n=this.getSelfRect(),i=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,a=n.width+i,s=n.height+i,o=!t.skipShadow&&this.hasShadow(),h=o?this.shadowOffsetX():0,u=o?this.shadowOffsetY():0,d=a+Math.abs(h),f=s+Math.abs(u),l=o&&this.shadowBlur()||0,p=d+l*2,w=f+l*2,y={width:p,height:w,x:-(i/2+l)+Math.min(h,0)+n.x,y:-(i/2+l)+Math.min(u,0)+n.y};return e?y:this._transformedRect(y,r)}drawScene(t,e){var r=this.getLayer(),n=t||r.getCanvas(),i=n.getContext(),a=this._getCanvasCache(),s=this.getSceneFunc(),o=this.hasShadow(),h,u,d,f=n.isCache,l=e===this;if(!this.isVisible()&&!l)return this;if(a){i.save();var p=this.getAbsoluteTransform(e).getMatrix();return i.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedSceneCanvas(i),i.restore(),this}if(!s)return this;if(i.save(),this._useBufferCanvas()&&!f){h=this.getStage(),u=h.bufferCanvas,d=u.getContext(),d.clear(),d.save(),d._applyLineJoin(this);var w=this.getAbsoluteTransform(e).getMatrix();d.transform(w[0],w[1],w[2],w[3],w[4],w[5]),s.call(this,d,this),d.restore();var y=u.pixelRatio;o&&i._applyShadow(this),i._applyOpacity(this),i._applyGlobalCompositeOperation(this),i.drawImage(u._canvas,0,0,u.width/y,u.height/y)}else{if(i._applyLineJoin(this),!l){var w=this.getAbsoluteTransform(e).getMatrix();i.transform(w[0],w[1],w[2],w[3],w[4],w[5]),i._applyOpacity(this),i._applyGlobalCompositeOperation(this)}o&&i._applyShadow(this),s.call(this,i,this)}return i.restore(),this}drawHit(t,e,r=!1){if(!this.shouldDrawHit(e,r))return this;var n=this.getLayer(),i=t||n.hitCanvas,a=i&&i.getContext(),s=this.hitFunc()||this.sceneFunc(),o=this._getCanvasCache(),h=o&&o.hit;if(this.colorKey||ht.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),h){a.save();var u=this.getAbsoluteTransform(e).getMatrix();return a.transform(u[0],u[1],u[2],u[3],u[4],u[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!s)return this;if(a.save(),a._applyLineJoin(this),this!==e){var d=this.getAbsoluteTransform(e).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5])}return s.call(this,a,this),a.restore(),this}drawHitFromCache(t=0){var e=this._getCanvasCache(),r=this._getCachedSceneCanvas(),n=e.hit,i=n.getContext(),a=n.getWidth(),s=n.getHeight(),o,h,u,d,f,l;i.clear(),i.drawImage(r._canvas,0,0,a,s);try{for(o=i.getImageData(0,0,a,s),h=o.data,u=h.length,d=ht._hexToRgb(this.colorKey),f=0;f<u;f+=4)l=h[f+3],l>t?(h[f]=d.r,h[f+1]=d.g,h[f+2]=d.b,h[f+3]=255):h[f+3]=0;i.putImageData(o,0,0)}catch(p){ht.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this}hasPointerCapture(t){return Km(t,this)}setPointerCapture(t){Vm(t,this)}releaseCapture(t){Ro(t)}};Et.prototype._fillFunc=HF,Et.prototype._strokeFunc=DF,Et.prototype._fillFuncHit=RF,Et.prototype._strokeFuncHit=jF,Et.prototype._centroid=!1,Et.prototype.nodeType="Shape",eA(Et),Et.prototype.eventListeners={},Et.prototype.on.call(Et.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",GF),Et.prototype.on.call(Et.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",KF),Et.prototype.on.call(Et.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",VF),Et.prototype.on.call(Et.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",$F),Et.prototype.on.call(Et.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",zF),W.addGetterSetter(Et,"stroke",void 0,Pm()),W.addGetterSetter(Et,"strokeWidth",2,_t()),W.addGetterSetter(Et,"fillAfterStrokeEnabled",!1),W.addGetterSetter(Et,"hitStrokeWidth","auto",bf()),W.addGetterSetter(Et,"strokeHitEnabled",!0,sn()),W.addGetterSetter(Et,"perfectDrawEnabled",!0,sn()),W.addGetterSetter(Et,"shadowForStrokeEnabled",!0,sn()),W.addGetterSetter(Et,"lineJoin"),W.addGetterSetter(Et,"lineCap"),W.addGetterSetter(Et,"sceneFunc"),W.addGetterSetter(Et,"hitFunc"),W.addGetterSetter(Et,"dash"),W.addGetterSetter(Et,"dashOffset",0,_t()),W.addGetterSetter(Et,"shadowColor",void 0,as()),W.addGetterSetter(Et,"shadowBlur",0,_t()),W.addGetterSetter(Et,"shadowOpacity",1,_t()),W.addComponentsGetterSetter(Et,"shadowOffset",["x","y"]),W.addGetterSetter(Et,"shadowOffsetX",0,_t()),W.addGetterSetter(Et,"shadowOffsetY",0,_t()),W.addGetterSetter(Et,"fillPatternImage"),W.addGetterSetter(Et,"fill",void 0,Pm()),W.addGetterSetter(Et,"fillPatternX",0,_t()),W.addGetterSetter(Et,"fillPatternY",0,_t()),W.addGetterSetter(Et,"fillLinearGradientColorStops"),W.addGetterSetter(Et,"strokeLinearGradientColorStops"),W.addGetterSetter(Et,"fillRadialGradientStartRadius",0),W.addGetterSetter(Et,"fillRadialGradientEndRadius",0),W.addGetterSetter(Et,"fillRadialGradientColorStops"),W.addGetterSetter(Et,"fillPatternRepeat","repeat"),W.addGetterSetter(Et,"fillEnabled",!0),W.addGetterSetter(Et,"strokeEnabled",!0),W.addGetterSetter(Et,"shadowEnabled",!0),W.addGetterSetter(Et,"dashEnabled",!0),W.addGetterSetter(Et,"strokeScaleEnabled",!0),W.addGetterSetter(Et,"fillPriority","color"),W.addComponentsGetterSetter(Et,"fillPatternOffset",["x","y"]),W.addGetterSetter(Et,"fillPatternOffsetX",0,_t()),W.addGetterSetter(Et,"fillPatternOffsetY",0,_t()),W.addComponentsGetterSetter(Et,"fillPatternScale",["x","y"]),W.addGetterSetter(Et,"fillPatternScaleX",1,_t()),W.addGetterSetter(Et,"fillPatternScaleY",1,_t()),W.addComponentsGetterSetter(Et,"fillLinearGradientStartPoint",["x","y"]),W.addComponentsGetterSetter(Et,"strokeLinearGradientStartPoint",["x","y"]),W.addGetterSetter(Et,"fillLinearGradientStartPointX",0),W.addGetterSetter(Et,"strokeLinearGradientStartPointX",0),W.addGetterSetter(Et,"fillLinearGradientStartPointY",0),W.addGetterSetter(Et,"strokeLinearGradientStartPointY",0),W.addComponentsGetterSetter(Et,"fillLinearGradientEndPoint",["x","y"]),W.addComponentsGetterSetter(Et,"strokeLinearGradientEndPoint",["x","y"]),W.addGetterSetter(Et,"fillLinearGradientEndPointX",0),W.addGetterSetter(Et,"strokeLinearGradientEndPointX",0),W.addGetterSetter(Et,"fillLinearGradientEndPointY",0),W.addGetterSetter(Et,"strokeLinearGradientEndPointY",0),W.addComponentsGetterSetter(Et,"fillRadialGradientStartPoint",["x","y"]),W.addGetterSetter(Et,"fillRadialGradientStartPointX",0),W.addGetterSetter(Et,"fillRadialGradientStartPointY",0),W.addComponentsGetterSetter(Et,"fillRadialGradientEndPoint",["x","y"]),W.addGetterSetter(Et,"fillRadialGradientEndPointX",0),W.addGetterSetter(Et,"fillRadialGradientEndPointY",0),W.addGetterSetter(Et,"fillPatternRotation",0),W.backCompat(Et,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var WF="#",qF="beforeDraw",XF="draw",hw=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],YF=hw.length;let Ba=class extends _r{constructor(t){super(t),this.canvas=new ss,this.hitCanvas=new Cf({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),t<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[t+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Nt.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=Nt.prototype.moveUp.call(this);if(!t)return!1;var e=this.getStage();return!e||!e.content?!1:(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Nt.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Nt.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),e[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Nt.prototype.remove.call(this),t&&t.parentNode&&ht._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:e}){return this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e),this._setSmoothEnabled(),this}_validateAdd(t){var e=t.getType();e!=="Group"&&e!=="Shape"&&ht.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),Nt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){ht.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){ht.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,ht.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var e=1,r=!1;;){for(let n=0;n<YF;n++){const i=hw[n],a=this._getIntersection({x:t.x+i.x*e,y:t.y+i.y*e}),s=a.shape;if(s)return s;if(r=!!a.antialiased,!a.antialiased)break}if(r)e+=1;else return null}}_getIntersection(t){const e=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*e),Math.round(t.y*e),1,1).data,n=r[3];if(n===255){const i=ht._rgbToHex(r[0],r[1],r[2]),a=$o[WF+i];return a?{shape:a}:{antialiased:!0}}else if(n>0)return{antialiased:!0};return{}}drawScene(t,e){var r=this.getLayer(),n=t||r&&r.getCanvas();return this._fire(qF,{node:this}),this.clearBeforeDraw()&&n.getContext().clear(),_r.prototype.drawScene.call(this,n,e),this._fire(XF,{node:this}),this}drawHit(t,e){var r=this.getLayer(),n=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),_r.prototype.drawHit.call(this,n,e),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){ht.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return ht.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,e=!!this.hitCanvas._canvas.parentNode;e?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return ht.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};Ba.prototype.nodeType="Layer",eA(Ba),W.addGetterSetter(Ba,"imageSmoothingEnabled",!0),W.addGetterSetter(Ba,"clearBeforeDraw",!0),W.addGetterSetter(Ba,"hitGraphEnabled",!0,sn());let Nf=class extends Ba{constructor(t){super(t),this.listening(!1),ht.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};Nf.prototype.nodeType="FastLayer",eA(Nf);let us=class extends _r{_validateAdd(t){var e=t.getType();e!=="Group"&&e!=="Shape"&&ht.throw("You may only add groups and shapes to groups.")}};us.prototype.nodeType="Group",eA(us);var Pf=function(){return is.performance&&is.performance.now?function(){return is.performance.now()}:function(){return new Date().getTime()}}();let cs=class Oo{constructor(t,e){this.id=Oo.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Pf(),frameRate:0},this.func=t,this.setLayers(e)}setLayers(t){var e=[];return t?t.length>0?e=t:e=[t]:e=[],this.layers=e,this}getLayers(){return this.layers}addLayer(t){var e=this.layers,r=e.length,n;for(n=0;n<r;n++)if(e[n]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){var t=Oo,e=t.animations,r=e.length,n;for(n=0;n<r;n++)if(e[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=Pf(),Oo._addAnimation(this),this}stop(){return Oo._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){var e=t.id,r=this.animations,n=r.length,i;for(i=0;i<n;i++)if(r[i].id===e){this.animations.splice(i,1);break}}static _runFrames(){var t={},e=this.animations,r,n,i,a,s,o,h,u,d;for(a=0;a<e.length;a++)if(r=e[a],n=r.layers,i=r.func,r._updateFrameObject(Pf()),o=n.length,i?d=i.call(r,r.frame)!==!1:d=!0,!!d)for(s=0;s<o;s++)h=n[s],h._id!==void 0&&(t[h._id]=h);for(u in t)!t.hasOwnProperty(u)||t[u].batchDraw()}static _animationLoop(){var t=Oo;t.animations.length?(t._runFrames(),ht.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,ht.requestAnimFrame(this._animationLoop))}};cs.animations=[],cs.animIdCounter=0,cs.animRunning=!1;var JF={node:1,duration:1,easing:1,onFinish:1,yoyo:1},ZF=1,uw=2,cw=3,tQ=0,lw=["fill","stroke","shadowColor"];class eQ{constructor(t,e,r,n,i,a,s){this.prop=t,this.propFunc=e,this.begin=n,this._pos=n,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=s,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=r,this._change=i-this.begin,this.pause()}fire(t){var e=this[t];e&&e()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return t===void 0&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=uw,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=cw,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;this.state===uw?this.setTime(t):this.state===cw&&this.setTime(this.duration-t)}pause(){this.state=ZF,this.fire("onPause")}getTimer(){return new Date().getTime()}}let qu=class XA{constructor(t){var e=this,r=t.node,n=r._id,i,a=t.easing||zo.Linear,s=!!t.yoyo,o;typeof t.duration>"u"?i=.3:t.duration===0?i=.001:i=t.duration,this.node=r,this._id=tQ++;var h=r.getLayer()||(r instanceof Wt.Stage?r.getLayers():null);h||ht.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new cs(function(){e.tween.onEnterFrame()},h),this.tween=new eQ(o,function(u){e._tweenFunc(u)},a,0,1,i*1e3,s),this._addListeners(),XA.attrs[n]||(XA.attrs[n]={}),XA.attrs[n][this._id]||(XA.attrs[n][this._id]={}),XA.tweens[n]||(XA.tweens[n]={});for(o in t)JF[o]===void 0&&this._addAttr(o,t[o]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,e){var r=this.node,n=r._id,i,a,s,o,h,u,d,f;if(s=XA.tweens[n][t],s&&delete XA.attrs[n][s][t],i=r.getAttr(t),ht._isArray(e))if(a=[],h=Math.max(e.length,i.length),t==="points"&&e.length!==i.length&&(e.length>i.length?(d=i,i=ht._prepareArrayForTween(i,e,r.closed())):(u=e,e=ht._prepareArrayForTween(e,i,r.closed()))),t.indexOf("fill")===0)for(o=0;o<h;o++)if(o%2===0)a.push(e[o]-i[o]);else{var l=ht.colorToRGBA(i[o]);f=ht.colorToRGBA(e[o]),i[o]=l,a.push({r:f.r-l.r,g:f.g-l.g,b:f.b-l.b,a:f.a-l.a})}else for(o=0;o<h;o++)a.push(e[o]-i[o]);else lw.indexOf(t)!==-1?(i=ht.colorToRGBA(i),f=ht.colorToRGBA(e),a={r:f.r-i.r,g:f.g-i.g,b:f.b-i.b,a:f.a-i.a}):a=e-i;XA.attrs[n][this._id][t]={start:i,diff:a,end:e,trueEnd:u,trueStart:d},XA.tweens[n][t]=this._id}_tweenFunc(t){var e=this.node,r=XA.attrs[e._id][this._id],n,i,a,s,o,h,u,d;for(n in r){if(i=r[n],a=i.start,s=i.diff,d=i.end,ht._isArray(a))if(o=[],u=Math.max(a.length,d.length),n.indexOf("fill")===0)for(h=0;h<u;h++)h%2===0?o.push((a[h]||0)+s[h]*t):o.push("rgba("+Math.round(a[h].r+s[h].r*t)+","+Math.round(a[h].g+s[h].g*t)+","+Math.round(a[h].b+s[h].b*t)+","+(a[h].a+s[h].a*t)+")");else for(h=0;h<u;h++)o.push((a[h]||0)+s[h]*t);else lw.indexOf(n)!==-1?o="rgba("+Math.round(a.r+s.r*t)+","+Math.round(a.g+s.g*t)+","+Math.round(a.b+s.b*t)+","+(a.a+s.a*t)+")":o=a+s*t;e.setAttr(n,o)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,e=XA.attrs[t._id][this._id];e.points&&e.points.trueEnd&&t.setAttr("points",e.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,e=XA.attrs[t._id][this._id];e.points&&e.points.trueStart&&t.points(e.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(t*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t=this.node._id,e=this._id,r=XA.tweens[t],n;this.pause();for(n in r)delete XA.tweens[t][n];delete XA.attrs[t][e]}};qu.attrs={},qu.tweens={},Nt.prototype.to=function(A){var t=A.onFinish;A.node=this,A.onFinish=function(){this.destroy(),t&&t()};var e=new qu(A);e.play()};const zo={BackEaseIn(A,t,e,r){var n=1.70158;return e*(A/=r)*A*((n+1)*A-n)+t},BackEaseOut(A,t,e,r){var n=1.70158;return e*((A=A/r-1)*A*((n+1)*A+n)+1)+t},BackEaseInOut(A,t,e,r){var n=1.70158;return(A/=r/2)<1?e/2*(A*A*(((n*=1.525)+1)*A-n))+t:e/2*((A-=2)*A*(((n*=1.525)+1)*A+n)+2)+t},ElasticEaseIn(A,t,e,r,n,i){var a=0;return A===0?t:(A/=r)===1?t+e:(i||(i=r*.3),!n||n<Math.abs(e)?(n=e,a=i/4):a=i/(2*Math.PI)*Math.asin(e/n),-(n*Math.pow(2,10*(A-=1))*Math.sin((A*r-a)*(2*Math.PI)/i))+t)},ElasticEaseOut(A,t,e,r,n,i){var a=0;return A===0?t:(A/=r)===1?t+e:(i||(i=r*.3),!n||n<Math.abs(e)?(n=e,a=i/4):a=i/(2*Math.PI)*Math.asin(e/n),n*Math.pow(2,-10*A)*Math.sin((A*r-a)*(2*Math.PI)/i)+e+t)},ElasticEaseInOut(A,t,e,r,n,i){var a=0;return A===0?t:(A/=r/2)===2?t+e:(i||(i=r*(.3*1.5)),!n||n<Math.abs(e)?(n=e,a=i/4):a=i/(2*Math.PI)*Math.asin(e/n),A<1?-.5*(n*Math.pow(2,10*(A-=1))*Math.sin((A*r-a)*(2*Math.PI)/i))+t:n*Math.pow(2,-10*(A-=1))*Math.sin((A*r-a)*(2*Math.PI)/i)*.5+e+t)},BounceEaseOut(A,t,e,r){return(A/=r)<1/2.75?e*(7.5625*A*A)+t:A<2/2.75?e*(7.5625*(A-=1.5/2.75)*A+.75)+t:A<2.5/2.75?e*(7.5625*(A-=2.25/2.75)*A+.9375)+t:e*(7.5625*(A-=2.625/2.75)*A+.984375)+t},BounceEaseIn(A,t,e,r){return e-zo.BounceEaseOut(r-A,0,e,r)+t},BounceEaseInOut(A,t,e,r){return A<r/2?zo.BounceEaseIn(A*2,0,e,r)*.5+t:zo.BounceEaseOut(A*2-r,0,e,r)*.5+e*.5+t},EaseIn(A,t,e,r){return e*(A/=r)*A+t},EaseOut(A,t,e,r){return-e*(A/=r)*(A-2)+t},EaseInOut(A,t,e,r){return(A/=r/2)<1?e/2*A*A+t:-e/2*(--A*(A-2)-1)+t},StrongEaseIn(A,t,e,r){return e*(A/=r)*A*A*A*A+t},StrongEaseOut(A,t,e,r){return e*((A=A/r-1)*A*A*A*A+1)+t},StrongEaseInOut(A,t,e,r){return(A/=r/2)<1?e/2*A*A*A*A*A+t:e/2*((A-=2)*A*A*A*A+2)+t},Linear(A,t,e,r){return e*A/r+t}},dw=ht._assign(Wt,{Util:ht,Transform:an,Node:Nt,Container:_r,Stage:Wu,stages:zu,Layer:Ba,FastLayer:Nf,Group:us,DD:Se,Shape:Et,shapes:$o,Animation:cs,Tween:qu,Easings:zo,Context:Ou,Canvas:Hu});let Jn=class extends Et{_sceneFunc(t){var e=Wt.getAngle(this.angle()),r=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,r),t.arc(0,0,this.innerRadius(),e,0,!r),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),e=this.outerRadius(),r=this.clockwise(),n=Wt.getAngle(r?360-this.angle():this.angle()),i=Math.cos(Math.min(n,Math.PI)),a=1,s=Math.sin(Math.min(Math.max(Math.PI,n),3*Math.PI/2)),o=Math.sin(Math.min(n,Math.PI/2)),h=i*(i>0?t:e),u=a*e,d=s*(s>0?t:e),f=o*(o>0?e:t);return{x:h,y:r?-1*f:d,width:u-h,height:f-d}}};Jn.prototype._centroid=!0,Jn.prototype.className="Arc",Jn.prototype._attrsAffectingSize=["innerRadius","outerRadius"],eA(Jn),W.addGetterSetter(Jn,"innerRadius",0,_t()),W.addGetterSetter(Jn,"outerRadius",0,_t()),W.addGetterSetter(Jn,"angle",0,_t()),W.addGetterSetter(Jn,"clockwise",!1,sn());function Tf(A,t,e,r,n,i,a){var s=Math.sqrt(Math.pow(e-A,2)+Math.pow(r-t,2)),o=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-r,2)),h=a*s/(s+o),u=a*o/(s+o),d=e-h*(n-A),f=r-h*(i-t),l=e+u*(n-A),p=r+u*(i-t);return[d,f,l,p]}function fw(A,t){var e=A.length,r=[],n,i;for(n=2;n<e-2;n+=2)i=Tf(A[n-2],A[n-1],A[n],A[n+1],A[n+2],A[n+3],t),!isNaN(i[0])&&(r.push(i[0]),r.push(i[1]),r.push(A[n]),r.push(A[n+1]),r.push(i[2]),r.push(i[3]));return r}let Zn=class extends Et{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var e=this.points(),r=e.length,n=this.tension(),i=this.closed(),a=this.bezier(),s,o,h;if(r){if(t.beginPath(),t.moveTo(e[0],e[1]),n!==0&&r>4){for(s=this.getTensionPoints(),o=s.length,h=i?0:4,i||t.quadraticCurveTo(s[0],s[1],s[2],s[3]);h<o-2;)t.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]);i||t.quadraticCurveTo(s[o-2],s[o-1],e[r-2],e[r-1])}else if(a)for(h=2;h<r;)t.bezierCurveTo(e[h++],e[h++],e[h++],e[h++],e[h++],e[h++]);else for(h=2;h<r;h+=2)t.lineTo(e[h],e[h+1]);i?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():fw(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),e=t.length,r=this.tension(),n=Tf(t[e-2],t[e-1],t[0],t[1],t[2],t[3],r),i=Tf(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],r),a=fw(t,r),s=[n[2],n[3]].concat(a).concat([i[0],i[1],t[e-2],t[e-1],i[2],i[3],n[0],n[1],t[0],t[1]]);return s}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var e=t[0],r=t[0],n=t[1],i=t[1],a,s,o=0;o<t.length/2;o++)a=t[o*2],s=t[o*2+1],e=Math.min(e,a),r=Math.max(r,a),n=Math.min(n,s),i=Math.max(i,s);return{x:e,y:n,width:r-e,height:i-n}}};Zn.prototype.className="Line",Zn.prototype._attrsAffectingSize=["points","bezier","tension"],eA(Zn),W.addGetterSetter(Zn,"closed",!1),W.addGetterSetter(Zn,"bezier",!1),W.addGetterSetter(Zn,"tension",0,_t()),W.addGetterSetter(Zn,"points",[],cF());let KA=class In extends Et{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=In.parsePathData(this.data()),this.pathLength=0;for(var e=0;e<this.dataArray.length;++e)this.pathLength+=this.dataArray[e].pathLength;this.on("dataChange.konva",function(){this.dataArray=In.parsePathData(this.data()),this.pathLength=0;for(var r=0;r<this.dataArray.length;++r)this.pathLength+=this.dataArray[r].pathLength})}_sceneFunc(t){var e=this.dataArray;t.beginPath();for(var r=!1,n=0;n<e.length;n++){var i=e[n].command,a=e[n].points;switch(i){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var s=a[0],o=a[1],h=a[2],u=a[3],d=a[4],f=a[5],l=a[6],p=a[7],w=h>u?h:u,y=h>u?1:h/u,v=h>u?u/h:1;t.translate(s,o),t.rotate(l),t.scale(y,v),t.arc(0,0,w,d,d+f,1-p),t.scale(1/y,1/v),t.rotate(-l),t.translate(-s,-o);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(h){if(h.command==="A"){var u=h.points[4],d=h.points[5],f=h.points[4]+d,l=Math.PI/180;if(Math.abs(u-f)<l&&(l=Math.abs(u-f)),d<0)for(let p=u-l;p>f;p-=l){const w=In.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],p,0);t.push(w.x,w.y)}else for(let p=u+l;p<f;p+=l){const w=In.getPointOnEllipticalArc(h.points[0],h.points[1],h.points[2],h.points[3],p,0);t.push(w.x,w.y)}}else if(h.command==="C")for(let p=0;p<=1;p+=.01){const w=In.getPointOnCubicBezier(p,h.start.x,h.start.y,h.points[0],h.points[1],h.points[2],h.points[3],h.points[4],h.points[5]);t.push(w.x,w.y)}else t=t.concat(h.points)});for(var e=t[0],r=t[0],n=t[1],i=t[1],a,s,o=0;o<t.length/2;o++)a=t[o*2],s=t[o*2+1],isNaN(a)||(e=Math.min(e,a),r=Math.max(r,a)),isNaN(s)||(n=Math.min(n,s),i=Math.max(i,s));return{x:e,y:n,width:r-e,height:i-n}}getLength(){return this.pathLength}getPointAtLength(t){var e,r=0,n=this.dataArray.length;if(!n)return null;for(;r<n&&t>this.dataArray[r].pathLength;)t-=this.dataArray[r].pathLength,++r;if(r===n)return e=this.dataArray[r-1].points.slice(-2),{x:e[0],y:e[1]};if(t<.01)return e=this.dataArray[r].points.slice(0,2),{x:e[0],y:e[1]};var i=this.dataArray[r],a=i.points;switch(i.command){case"L":return In.getPointOnLine(t,i.start.x,i.start.y,a[0],a[1]);case"C":return In.getPointOnCubicBezier(t/i.pathLength,i.start.x,i.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return In.getPointOnQuadraticBezier(t/i.pathLength,i.start.x,i.start.y,a[0],a[1],a[2],a[3]);case"A":var s=a[0],o=a[1],h=a[2],u=a[3],d=a[4],f=a[5],l=a[6];return d+=f*t/i.pathLength,In.getPointOnEllipticalArc(s,o,h,u,d,l)}return null}static getLineLength(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}static getPointOnLine(t,e,r,n,i,a,s){a===void 0&&(a=e),s===void 0&&(s=r);var o=(i-r)/(n-e+1e-8),h=Math.sqrt(t*t/(1+o*o));n<e&&(h*=-1);var u=o*h,d;if(n===e)d={x:a,y:s+u};else if((s-r)/(a-e+1e-8)===o)d={x:a+h,y:s+u};else{var f,l,p=this.getLineLength(e,r,n,i),w=(a-e)*(n-e)+(s-r)*(i-r);w=w/(p*p),f=e+w*(n-e),l=r+w*(i-r);var y=this.getLineLength(a,s,f,l),v=Math.sqrt(t*t-y*y);h=Math.sqrt(v*v/(1+o*o)),n<e&&(h*=-1),u=o*h,d={x:f+h,y:l+u}}return d}static getPointOnCubicBezier(t,e,r,n,i,a,s,o,h){function u(y){return y*y*y}function d(y){return 3*y*y*(1-y)}function f(y){return 3*y*(1-y)*(1-y)}function l(y){return(1-y)*(1-y)*(1-y)}var p=o*u(t)+a*d(t)+n*f(t)+e*l(t),w=h*u(t)+s*d(t)+i*f(t)+r*l(t);return{x:p,y:w}}static getPointOnQuadraticBezier(t,e,r,n,i,a,s){function o(l){return l*l}function h(l){return 2*l*(1-l)}function u(l){return(1-l)*(1-l)}var d=a*o(t)+n*h(t)+e*u(t),f=s*o(t)+i*h(t)+r*u(t);return{x:d,y:f}}static getPointOnEllipticalArc(t,e,r,n,i,a){var s=Math.cos(a),o=Math.sin(a),h={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:t+(h.x*s-h.y*o),y:e+(h.x*o+h.y*s)}}static parsePathData(t){if(!t)return[];var e=t,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var n=0;n<r.length;n++)e=e.replace(new RegExp(r[n],"g"),"|"+r[n]);var i=e.split("|"),a=[],s=[],o=0,h=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,d;for(n=1;n<i.length;n++){var f=i[n],l=f.charAt(0);for(f=f.slice(1),s.length=0;d=u.exec(f);)s.push(d[0]);for(var p=[],w=0,y=s.length;w<y;w++){if(s[w]==="00"){p.push(0,0);continue}var v=parseFloat(s[w]);isNaN(v)?p.push(0):p.push(v)}for(;p.length>0&&!isNaN(p[0]);){var C=null,x=[],L=o,k=h,M,H,N,V,$,U,S,O,D,nt;switch(l){case"l":o+=p.shift(),h+=p.shift(),C="L",x.push(o,h);break;case"L":o=p.shift(),h=p.shift(),x.push(o,h);break;case"m":var Y=p.shift(),at=p.shift();if(o+=Y,h+=at,C="M",a.length>2&&a[a.length-1].command==="z"){for(var rt=a.length-2;rt>=0;rt--)if(a[rt].command==="M"){o=a[rt].points[0]+Y,h=a[rt].points[1]+at;break}}x.push(o,h),l="l";break;case"M":o=p.shift(),h=p.shift(),C="M",x.push(o,h),l="L";break;case"h":o+=p.shift(),C="L",x.push(o,h);break;case"H":o=p.shift(),C="L",x.push(o,h);break;case"v":h+=p.shift(),C="L",x.push(o,h);break;case"V":h=p.shift(),C="L",x.push(o,h);break;case"C":x.push(p.shift(),p.shift(),p.shift(),p.shift()),o=p.shift(),h=p.shift(),x.push(o,h);break;case"c":x.push(o+p.shift(),h+p.shift(),o+p.shift(),h+p.shift()),o+=p.shift(),h+=p.shift(),C="C",x.push(o,h);break;case"S":H=o,N=h,M=a[a.length-1],M.command==="C"&&(H=o+(o-M.points[2]),N=h+(h-M.points[3])),x.push(H,N,p.shift(),p.shift()),o=p.shift(),h=p.shift(),C="C",x.push(o,h);break;case"s":H=o,N=h,M=a[a.length-1],M.command==="C"&&(H=o+(o-M.points[2]),N=h+(h-M.points[3])),x.push(H,N,o+p.shift(),h+p.shift()),o+=p.shift(),h+=p.shift(),C="C",x.push(o,h);break;case"Q":x.push(p.shift(),p.shift()),o=p.shift(),h=p.shift(),x.push(o,h);break;case"q":x.push(o+p.shift(),h+p.shift()),o+=p.shift(),h+=p.shift(),C="Q",x.push(o,h);break;case"T":H=o,N=h,M=a[a.length-1],M.command==="Q"&&(H=o+(o-M.points[0]),N=h+(h-M.points[1])),o=p.shift(),h=p.shift(),C="Q",x.push(H,N,o,h);break;case"t":H=o,N=h,M=a[a.length-1],M.command==="Q"&&(H=o+(o-M.points[0]),N=h+(h-M.points[1])),o+=p.shift(),h+=p.shift(),C="Q",x.push(H,N,o,h);break;case"A":V=p.shift(),$=p.shift(),U=p.shift(),S=p.shift(),O=p.shift(),D=o,nt=h,o=p.shift(),h=p.shift(),C="A",x=this.convertEndpointToCenterParameterization(D,nt,o,h,S,O,V,$,U);break;case"a":V=p.shift(),$=p.shift(),U=p.shift(),S=p.shift(),O=p.shift(),D=o,nt=h,o+=p.shift(),h+=p.shift(),C="A",x=this.convertEndpointToCenterParameterization(D,nt,o,h,S,O,V,$,U);break}a.push({command:C||l,points:x,start:{x:L,y:k},pathLength:this.calcLength(L,k,C||l,x)})}(l==="z"||l==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,e,r,n){var i,a,s,o,h=In;switch(r){case"L":return h.getLineLength(t,e,n[0],n[1]);case"C":for(i=0,a=h.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=h.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case"Q":for(i=0,a=h.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=h.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),i+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case"A":i=0;var u=n[4],d=n[5],f=n[4]+d,l=Math.PI/180;if(Math.abs(u-f)<l&&(l=Math.abs(u-f)),a=h.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),d<0)for(o=u-l;o>f;o-=l)s=h.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=u+l;o<f;o+=l)s=h.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=h.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=h.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],f,0),i+=h.getLineLength(a.x,a.y,s.x,s.y),i}return 0}static convertEndpointToCenterParameterization(t,e,r,n,i,a,s,o,h){var u=h*(Math.PI/180),d=Math.cos(u)*(t-r)/2+Math.sin(u)*(e-n)/2,f=-1*Math.sin(u)*(t-r)/2+Math.cos(u)*(e-n)/2,l=d*d/(s*s)+f*f/(o*o);l>1&&(s*=Math.sqrt(l),o*=Math.sqrt(l));var p=Math.sqrt((s*s*(o*o)-s*s*(f*f)-o*o*(d*d))/(s*s*(f*f)+o*o*(d*d)));i===a&&(p*=-1),isNaN(p)&&(p=0);var w=p*s*f/o,y=p*-o*d/s,v=(t+r)/2+Math.cos(u)*w-Math.sin(u)*y,C=(e+n)/2+Math.sin(u)*w+Math.cos(u)*y,x=function($){return Math.sqrt($[0]*$[0]+$[1]*$[1])},L=function($,U){return($[0]*U[0]+$[1]*U[1])/(x($)*x(U))},k=function($,U){return($[0]*U[1]<$[1]*U[0]?-1:1)*Math.acos(L($,U))},M=k([1,0],[(d-w)/s,(f-y)/o]),H=[(d-w)/s,(f-y)/o],N=[(-1*d-w)/s,(-1*f-y)/o],V=k(H,N);return L(H,N)<=-1&&(V=Math.PI),L(H,N)>=1&&(V=0),a===0&&V>0&&(V=V-2*Math.PI),a===1&&V<0&&(V=V+2*Math.PI),[v,C,s,o,M,V,u,a]}};KA.prototype.className="Path",KA.prototype._attrsAffectingSize=["data"],eA(KA),W.addGetterSetter(KA,"data");let va=class extends Zn{_sceneFunc(t){super._sceneFunc(t);var e=Math.PI*2,r=this.points(),n=r,i=this.tension()!==0&&r.length>4;i&&(n=this.getTensionPoints());var a=this.pointerLength(),s=r.length,o,h;if(i){const f=[n[n.length-4],n[n.length-3],n[n.length-2],n[n.length-1],r[s-2],r[s-1]],l=KA.calcLength(n[n.length-4],n[n.length-3],"C",f),p=KA.getPointOnQuadraticBezier(Math.min(1,1-a/l),f[0],f[1],f[2],f[3],f[4],f[5]);o=r[s-2]-p.x,h=r[s-1]-p.y}else o=r[s-2]-r[s-4],h=r[s-1]-r[s-3];var u=(Math.atan2(h,o)+e)%e,d=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(r[s-2],r[s-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-a,d/2),t.lineTo(-a,-d/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(r[0],r[1]),i?(o=(n[0]+n[2])/2-r[0],h=(n[1]+n[3])/2-r[1]):(o=r[2]-r[0],h=r[3]-r[1]),t.rotate((Math.atan2(-h,-o)+e)%e),t.moveTo(0,0),t.lineTo(-a,d/2),t.lineTo(-a,-d/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var e=this.dashEnabled();e&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),e&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),e=this.pointerWidth()/2;return{x:t.x-e,y:t.y-e,width:t.width+e*2,height:t.height+e*2}}};va.prototype.className="Arrow",eA(va),W.addGetterSetter(va,"pointerLength",10,_t()),W.addGetterSetter(va,"pointerWidth",10,_t()),W.addGetterSetter(va,"pointerAtBeginning",!1),W.addGetterSetter(va,"pointerAtEnding",!0);let ls=class extends Et{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};ls.prototype._centroid=!0,ls.prototype.className="Circle",ls.prototype._attrsAffectingSize=["radius"],eA(ls),W.addGetterSetter(ls,"radius",0,_t());let Si=class extends Et{_sceneFunc(t){var e=this.radiusX(),r=this.radiusY();t.beginPath(),t.save(),e!==r&&t.scale(1,r/e),t.arc(0,0,e,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}};Si.prototype.className="Ellipse",Si.prototype._centroid=!0,Si.prototype._attrsAffectingSize=["radiusX","radiusY"],eA(Si),W.addComponentsGetterSetter(Si,"radius",["x","y"]),W.addGetterSetter(Si,"radiusX",0,_t()),W.addGetterSetter(Si,"radiusY",0,_t());let _n=class qx extends Et{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const e=this.getWidth(),r=this.getHeight(),n=this.cornerRadius(),i=this.attrs.image;let a;if(i){const s=this.attrs.cropWidth,o=this.attrs.cropHeight;s&&o?a=[i,this.cropX(),this.cropY(),s,o,0,0,e,r]:a=[i,0,0,e,r]}(this.hasFill()||this.hasStroke()||n)&&(t.beginPath(),n?ht.drawRoundedRectPath(t,e,r,n):t.rect(0,0,e,r),t.closePath(),t.fillStrokeShape(this)),i&&(n&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){var e=this.width(),r=this.height(),n=this.cornerRadius();t.beginPath(),n?ht.drawRoundedRectPath(t,e,r,n):t.rect(0,0,e,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,e;return(t=this.attrs.width)!==null&&t!==void 0?t:(e=this.image())===null||e===void 0?void 0:e.width}getHeight(){var t,e;return(t=this.attrs.height)!==null&&t!==void 0?t:(e=this.image())===null||e===void 0?void 0:e.height}static fromURL(t,e,r=null){var n=ht.createImageElement();n.onload=function(){var i=new qx({image:n});e(i)},n.onerror=r,n.crossOrigin="Anonymous",n.src=t}};_n.prototype.className="Image",eA(_n),W.addGetterSetter(_n,"cornerRadius",0,yf(4)),W.addGetterSetter(_n,"image"),W.addComponentsGetterSetter(_n,"crop",["x","y","width","height"]),W.addGetterSetter(_n,"cropX",0,_t()),W.addGetterSetter(_n,"cropY",0,_t()),W.addGetterSetter(_n,"cropWidth",0,_t()),W.addGetterSetter(_n,"cropHeight",0,_t());var gw=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],AQ="Change.konva",rQ="none",Mf="up",Of="right",kf="down",Hf="left",nQ=gw.length;let Df=class extends us{constructor(t){super(t),this.on("add.konva",function(e){this._addListeners(e.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var e=this,r,n=function(){e._sync()};for(r=0;r<nQ;r++)t.on(gw[r]+AQ,n)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),e=this.getTag(),r,n,i,a,s,o,h;if(t&&e){switch(r=t.width(),n=t.height(),i=e.pointerDirection(),a=e.pointerWidth(),h=e.pointerHeight(),s=0,o=0,i){case Mf:s=r/2,o=-1*h;break;case Of:s=r+a,o=n/2;break;case kf:s=r/2,o=n+h;break;case Hf:s=-1*a,o=n/2;break}e.setAttrs({x:-1*s,y:-1*o,width:r,height:n}),t.setAttrs({x:-1*s,y:-1*o})}}};Df.prototype.className="Label",eA(Df);let ya=class extends Et{_sceneFunc(t){var e=this.width(),r=this.height(),n=this.pointerDirection(),i=this.pointerWidth(),a=this.pointerHeight(),s=this.cornerRadius();let o=0,h=0,u=0,d=0;typeof s=="number"?o=h=u=d=Math.min(s,e/2,r/2):(o=Math.min(s[0]||0,e/2,r/2),h=Math.min(s[1]||0,e/2,r/2),d=Math.min(s[2]||0,e/2,r/2),u=Math.min(s[3]||0,e/2,r/2)),t.beginPath(),t.moveTo(o,0),n===Mf&&(t.lineTo((e-i)/2,0),t.lineTo(e/2,-1*a),t.lineTo((e+i)/2,0)),t.lineTo(e-h,0),t.arc(e-h,h,h,Math.PI*3/2,0,!1),n===Of&&(t.lineTo(e,(r-a)/2),t.lineTo(e+i,r/2),t.lineTo(e,(r+a)/2)),t.lineTo(e,r-d),t.arc(e-d,r-d,d,0,Math.PI/2,!1),n===kf&&(t.lineTo((e+i)/2,r),t.lineTo(e/2,r+a),t.lineTo((e-i)/2,r)),t.lineTo(u,r),t.arc(u,r-u,u,Math.PI/2,Math.PI,!1),n===Hf&&(t.lineTo(0,(r+a)/2),t.lineTo(-1*i,r/2),t.lineTo(0,(r-a)/2)),t.lineTo(0,o),t.arc(o,o,o,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,e=0,r=this.pointerWidth(),n=this.pointerHeight(),i=this.pointerDirection(),a=this.width(),s=this.height();return i===Mf?(e-=n,s+=n):i===kf?s+=n:i===Hf?(t-=r*1.5,a+=r):i===Of&&(a+=r*1.5),{x:t,y:e,width:a,height:s}}};ya.prototype.className="Tag",eA(ya),W.addGetterSetter(ya,"pointerDirection",rQ),W.addGetterSetter(ya,"pointerWidth",0,_t()),W.addGetterSetter(ya,"pointerHeight",0,_t()),W.addGetterSetter(ya,"cornerRadius",0,yf(4));let Wo=class extends Et{_sceneFunc(t){var e=this.cornerRadius(),r=this.width(),n=this.height();t.beginPath(),e?ht.drawRoundedRectPath(t,r,n,e):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}};Wo.prototype.className="Rect",eA(Wo),W.addGetterSetter(Wo,"cornerRadius",0,yf(4));let ba=class extends Et{_sceneFunc(t){const e=this._getPoints();t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var r=1;r<e.length;r++)t.lineTo(e[r].x,e[r].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,e=this.attrs.radius||0,r=[];for(var n=0;n<t;n++)r.push({x:e*Math.sin(n*2*Math.PI/t),y:-1*e*Math.cos(n*2*Math.PI/t)});return r}getSelfRect(){const t=this._getPoints();var e=t[0].x,r=t[0].y,n=t[0].x,i=t[0].y;return t.forEach(a=>{e=Math.min(e,a.x),r=Math.max(r,a.x),n=Math.min(n,a.y),i=Math.max(i,a.y)}),{x:e,y:n,width:r-e,height:i-n}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}};ba.prototype.className="RegularPolygon",ba.prototype._centroid=!0,ba.prototype._attrsAffectingSize=["radius"],eA(ba),W.addGetterSetter(ba,"radius",0,_t()),W.addGetterSetter(ba,"sides",0,_t());var pw=Math.PI*2;let Ca=class extends Et{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,pw,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),pw,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}};Ca.prototype.className="Ring",Ca.prototype._centroid=!0,Ca.prototype._attrsAffectingSize=["innerRadius","outerRadius"],eA(Ca),W.addGetterSetter(Ca,"innerRadius",0,_t()),W.addGetterSetter(Ca,"outerRadius",0,_t());let Nn=class extends Et{constructor(t){super(t),this._updated=!0,this.anim=new cs(()=>{var e=this._updated;return this._updated=!1,e}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){!this.anim.isRunning()||(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var e=this.animation(),r=this.frameIndex(),n=r*4,i=this.animations()[e],a=this.frameOffsets(),s=i[n+0],o=i[n+1],h=i[n+2],u=i[n+3],d=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,h,u),t.closePath(),t.fillStrokeShape(this)),d)if(a){var f=a[e],l=r*2;t.drawImage(d,s,o,h,u,f[l+0],f[l+1],h,u)}else t.drawImage(d,s,o,h,u,0,0,h,u)}_hitFunc(t){var e=this.animation(),r=this.frameIndex(),n=r*4,i=this.animations()[e],a=this.frameOffsets(),s=i[n+2],o=i[n+3];if(t.beginPath(),a){var h=a[e],u=r*2;t.rect(h[u+0],h[u+1],s,o)}else t.rect(0,0,s,o);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),e=this.animation(),r=this.animations(),n=r[e],i=n.length/4;t<i-1?this.frameIndex(t+1):this.frameIndex(0)}};Nn.prototype.className="Sprite",eA(Nn),W.addGetterSetter(Nn,"animation"),W.addGetterSetter(Nn,"animations"),W.addGetterSetter(Nn,"frameOffsets"),W.addGetterSetter(Nn,"image"),W.addGetterSetter(Nn,"frameIndex",0,_t()),W.addGetterSetter(Nn,"frameRate",17,_t()),W.backCompat(Nn,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});let Li=class extends Et{_sceneFunc(t){var e=this.innerRadius(),r=this.outerRadius(),n=this.numPoints();t.beginPath(),t.moveTo(0,0-r);for(var i=1;i<n*2;i++){var a=i%2===0?r:e,s=a*Math.sin(i*Math.PI/n),o=-1*a*Math.cos(i*Math.PI/n);t.lineTo(s,o)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}};Li.prototype.className="Star",Li.prototype._centroid=!0,Li.prototype._attrsAffectingSize=["innerRadius","outerRadius"],eA(Li),W.addGetterSetter(Li,"numPoints",5,_t()),W.addGetterSetter(Li,"innerRadius",0,_t()),W.addGetterSetter(Li,"outerRadius",0,_t());function mw(A){return Array.from(A)}var ds="auto",iQ="center",qo="justify",aQ="Change.konva",sQ="2d",ww="-",Bw="left",oQ="text",hQ="Text",uQ="top",cQ="bottom",vw="middle",yw="normal",lQ="px ",Xu=" ",dQ="right",fQ="word",gQ="char",bw="none",Rf="…",Cw=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],pQ=Cw.length;function mQ(A){return A.split(",").map(t=>{t=t.trim();const e=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!r&&(t=`"${t}"`),t}).join(", ")}var jf;function Gf(){return jf||(jf=ht.createCanvasElement().getContext(sQ),jf)}function wQ(A){A.fillText(this._partialText,this._partialTextX,this._partialTextY)}function BQ(A){A.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function vQ(A){return A=A||{},!A.fillLinearGradientColorStops&&!A.fillRadialGradientColorStops&&!A.fillPatternImage&&(A.fill=A.fill||"black"),A}let AA=class extends Et{constructor(t){super(vQ(t)),this._partialTextX=0,this._partialTextY=0;for(var e=0;e<pQ;e++)this.on(Cw[e]+aQ,this._setTextData);this._setTextData()}_sceneFunc(t){var e=this.textArr,r=e.length;if(this.text()){var n=this.padding(),i=this.fontSize(),a=this.lineHeight()*i,s=this.verticalAlign(),o=0,h=this.align(),u=this.getWidth(),d=this.letterSpacing(),f=this.fill(),l=this.textDecoration(),p=l.indexOf("underline")!==-1,w=l.indexOf("line-through")!==-1,y,v=0,v=a/2,C=0,x=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",vw),t.setAttr("textAlign",Bw),s===vw?o=(this.getHeight()-r*a-n*2)/2:s===cQ&&(o=this.getHeight()-r*a-n*2),t.translate(n,o+n),y=0;y<r;y++){var C=0,x=0,L=e[y],k=L.text,M=L.width,H=L.lastInParagraph,N,V,$;if(t.save(),h===dQ?C+=u-M-n*2:h===iQ&&(C+=(u-M-n*2)/2),p){t.save(),t.beginPath(),t.moveTo(C,v+x+Math.round(i/2)),N=k.split(" ").length-1,V=N===0,$=h===qo&&!H?u-n*2:M,t.lineTo(C+Math.round($),v+x+Math.round(i/2)),t.lineWidth=i/15;const Y=this._getLinearGradient();t.strokeStyle=Y||f,t.stroke(),t.restore()}if(w){t.save(),t.beginPath(),t.moveTo(C,v+x),N=k.split(" ").length-1,V=N===0,$=h===qo&&H&&!V?u-n*2:M,t.lineTo(C+Math.round($),v+x),t.lineWidth=i/15;const Y=this._getLinearGradient();t.strokeStyle=Y||f,t.stroke(),t.restore()}if(d!==0||h===qo){N=k.split(" ").length-1;for(var U=mw(k),S=0;S<U.length;S++){var O=U[S];O===" "&&!H&&h===qo&&(C+=(u-n*2-M)/N),this._partialTextX=C,this._partialTextY=v+x,this._partialText=O,t.fillStrokeShape(this),C+=this.measureSize(O).width+d}}else this._partialTextX=C,this._partialTextY=v+x,this._partialText=k,t.fillStrokeShape(this);t.restore(),r>1&&(v+=a)}}}_hitFunc(t){var e=this.getWidth(),r=this.getHeight();t.beginPath(),t.rect(0,0,e,r),t.closePath(),t.fillStrokeShape(this)}setText(t){var e=ht._isString(t)?t:t==null?"":t+"";return this._setAttr(oQ,e),this}getWidth(){var t=this.attrs.width===ds||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===ds||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return ht.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var e=Gf(),r=this.fontSize(),n;return e.save(),e.font=this._getContextFont(),n=e.measureText(t),e.restore(),{width:n.width,height:r}}_getContextFont(){return this.fontStyle()+Xu+this.fontVariant()+Xu+(this.fontSize()+lQ)+mQ(this.fontFamily())}_addTextLine(t){this.align()===qo&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e,lastInParagraph:!1})}_getTextWidth(t){var e=this.letterSpacing(),r=t.length;return Gf().measureText(t).width+(r?e*(r-1):0)}_setTextData(){var t=this.text().split(`
`),e=+this.fontSize(),r=0,n=this.lineHeight()*e,i=this.attrs.width,a=this.attrs.height,s=i!==ds&&i!==void 0,o=a!==ds&&a!==void 0,h=this.padding(),u=i-h*2,d=a-h*2,f=0,l=this.wrap(),p=l!==bw,w=l!==gQ&&p,y=this.ellipsis();this.textArr=[],Gf().font=this._getContextFont();for(var v=y?this._getTextWidth(Rf):0,C=0,x=t.length;C<x;++C){var L=t[C],k=this._getTextWidth(L);if(s&&k>u)for(;L.length>0;){for(var M=0,H=L.length,N="",V=0;M<H;){var $=M+H>>>1,U=L.slice(0,$+1),S=this._getTextWidth(U)+v;S<=u?(M=$+1,N=U,V=S):H=$}if(N){if(w){var O,D=L[N.length],nt=D===Xu||D===ww;nt&&V<=u?O=N.length:O=Math.max(N.lastIndexOf(Xu),N.lastIndexOf(ww))+1,O>0&&(M=O,N=N.slice(0,M),V=this._getTextWidth(N))}N=N.trimRight(),this._addTextLine(N),r=Math.max(r,V),f+=n;var Y=this._shouldHandleEllipsis(f);if(Y){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(M),L=L.trimLeft(),L.length>0&&(k=this._getTextWidth(L),k<=u)){this._addTextLine(L),f+=n,r=Math.max(r,k);break}}else break}else this._addTextLine(L),f+=n,r=Math.max(r,k),this._shouldHandleEllipsis(f)&&C<x-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),o&&f+n>d)break}this.textHeight=e,this.textWidth=r}_shouldHandleEllipsis(t){var e=+this.fontSize(),r=this.lineHeight()*e,n=this.attrs.height,i=n!==ds&&n!==void 0,a=this.padding(),s=n-a*2,o=this.wrap(),h=o!==bw;return!h||i&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,e=t!==ds&&t!==void 0,r=this.padding(),n=t-r*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!i)){if(e){var s=this._getTextWidth(a.text+Rf)<n;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Rf)}}getStrokeScaleEnabled(){return!0}};AA.prototype._fillFunc=wQ,AA.prototype._strokeFunc=BQ,AA.prototype.className=hQ,AA.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],eA(AA),W.overWriteSetter(AA,"width",bf()),W.overWriteSetter(AA,"height",bf()),W.addGetterSetter(AA,"fontFamily","Arial"),W.addGetterSetter(AA,"fontSize",12,_t()),W.addGetterSetter(AA,"fontStyle",yw),W.addGetterSetter(AA,"fontVariant",yw),W.addGetterSetter(AA,"padding",0,_t()),W.addGetterSetter(AA,"align",Bw),W.addGetterSetter(AA,"verticalAlign",uQ),W.addGetterSetter(AA,"lineHeight",1,_t()),W.addGetterSetter(AA,"wrap",fQ),W.addGetterSetter(AA,"ellipsis",!1,sn()),W.addGetterSetter(AA,"letterSpacing",0,_t()),W.addGetterSetter(AA,"text","",as()),W.addGetterSetter(AA,"textDecoration","");var yQ="",xw="normal";function Fw(A){A.fillText(this.partialText,0,0)}function Qw(A){A.strokeText(this.partialText,0,0)}let IA=class extends Et{constructor(t){super(t),this.dummyCanvas=ht.createCanvasElement(),this.dataArray=[],this.dataArray=KA.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=KA.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),r=this.fill(),n=this.fontSize(),i=this.glyphInfo;e==="underline"&&t.beginPath();for(var a=0;a<i.length;a++){t.save();var s=i[a].p0;t.translate(s.x,s.y),t.rotate(i[a].rotation),this.partialText=i[a].text,t.fillStrokeShape(this),e==="underline"&&(a===0&&t.moveTo(0,n/2+1),t.lineTo(n,n/2+1)),t.restore()}e==="underline"&&(t.strokeStyle=r,t.lineWidth=n/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var r=e[0].p0;t.moveTo(r.x,r.y)}for(var n=0;n<e.length;n++){var i=e[n].p1;t.lineTo(i.x,i.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return ht.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return AA.prototype.setText.call(this,t)}_getContextFont(){return AA.prototype._getContextFont.call(this)}_getTextSize(t){var e=this.dummyCanvas,r=e.getContext("2d");r.save(),r.font=this._getContextFont();var n=r.measureText(t);return r.restore(),{width:n.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var t=this,e=this._getTextSize(this.attrs.text),r=this.letterSpacing(),n=this.align(),i=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);this.glyphInfo=[];for(var s=0,o=0;o<t.dataArray.length;o++)t.dataArray[o].pathLength>0&&(s+=t.dataArray[o].pathLength);var h=0;n==="center"&&(h=Math.max(0,s/2-a/2)),n==="right"&&(h=Math.max(0,s-a));for(var u=mw(this.text()),d=this.text().split(" ").length-1,f,l,p,w=-1,y=0,v=function(){y=0;for(var S=t.dataArray,O=w+1;O<S.length;O++){if(S[O].pathLength>0)return w=O,S[O];S[O].command==="M"&&(f={x:S[O].points[0],y:S[O].points[1]})}return{}},C=function(S){var O=t._getTextSize(S).width+r;S===" "&&n==="justify"&&(O+=(s-a)/d);var D=0,nt=0;for(l=void 0;Math.abs(O-D)/O>.01&&nt<20;){nt++;for(var Y=D;p===void 0;)p=v(),p&&Y+p.pathLength<O&&(Y+=p.pathLength,p=void 0);if(Object.keys(p).length===0||f===void 0)return;var at=!1;switch(p.command){case"L":KA.getLineLength(f.x,f.y,p.points[0],p.points[1])>O?l=KA.getPointOnLine(O,f.x,f.y,p.points[0],p.points[1],f.x,f.y):p=void 0;break;case"A":var rt=p.points[4],ot=p.points[5],At=p.points[4]+ot;y===0?y=rt+1e-8:O>D?y+=Math.PI/180*ot/Math.abs(ot):y-=Math.PI/360*ot/Math.abs(ot),(ot<0&&y<At||ot>=0&&y>At)&&(y=At,at=!0),l=KA.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],y,p.points[6]);break;case"C":y===0?O>p.pathLength?y=1e-8:y=O/p.pathLength:O>D?y+=(O-D)/p.pathLength/2:y=Math.max(y-(D-O)/p.pathLength/2,0),y>1&&(y=1,at=!0),l=KA.getPointOnCubicBezier(y,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case"Q":y===0?y=O/p.pathLength:O>D?y+=(O-D)/p.pathLength:y-=(D-O)/p.pathLength,y>1&&(y=1,at=!0),l=KA.getPointOnQuadraticBezier(y,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}l!==void 0&&(D=KA.getLineLength(f.x,f.y,l.x,l.y)),at&&(at=!1,p=void 0)}},x="C",L=t._getTextSize(x).width+r,k=h/L-1,M=0;M<k&&(C(x),!(f===void 0||l===void 0));M++)f=l;for(var H=0;H<u.length&&(C(u[H]),!(f===void 0||l===void 0));H++){var N=KA.getLineLength(f.x,f.y,l.x,l.y),V=0;if(i)try{V=i(u[H-1],u[H])*this.fontSize()}catch{V=0}f.x+=V,l.x+=V,this.textWidth+=V;var $=KA.getPointOnLine(V+N/2,f.x,f.y,l.x,l.y),U=Math.atan2(l.y-f.y,l.x-f.x);this.glyphInfo.push({transposeX:$.x,transposeY:$.y,text:u[H],rotation:U,p0:f,p1:l}),f=l}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(u){t.push(u.p0.x),t.push(u.p0.y),t.push(u.p1.x),t.push(u.p1.y)});for(var e=t[0]||0,r=t[0]||0,n=t[1]||0,i=t[1]||0,a,s,o=0;o<t.length/2;o++)a=t[o*2],s=t[o*2+1],e=Math.min(e,a),r=Math.max(r,a),n=Math.min(n,s),i=Math.max(i,s);var h=this.fontSize();return{x:e-h/2,y:n-h/2,width:r-e+h,height:i-n+h}}destroy(){return ht.releaseCanvas(this.dummyCanvas),super.destroy()}};IA.prototype._fillFunc=Fw,IA.prototype._strokeFunc=Qw,IA.prototype._fillFuncHit=Fw,IA.prototype._strokeFuncHit=Qw,IA.prototype.className="TextPath",IA.prototype._attrsAffectingSize=["text","fontSize","data"],eA(IA),W.addGetterSetter(IA,"data"),W.addGetterSetter(IA,"fontFamily","Arial"),W.addGetterSetter(IA,"fontSize",12,_t()),W.addGetterSetter(IA,"fontStyle",xw),W.addGetterSetter(IA,"align","left"),W.addGetterSetter(IA,"letterSpacing",0,_t()),W.addGetterSetter(IA,"textBaseline","middle"),W.addGetterSetter(IA,"fontVariant",xw),W.addGetterSetter(IA,"text",yQ),W.addGetterSetter(IA,"textDecoration",null),W.addGetterSetter(IA,"kerningFunc",null);var Ew="tr-konva",bQ=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map(A=>A+`.${Ew}`).join(" "),Uw="nodesRect",CQ=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],xQ={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const FQ="ontouchstart"in Wt._global;function QQ(A,t){if(A==="rotater")return"crosshair";t+=ht.degToRad(xQ[A]||0);var e=(ht.radToDeg(t)%360+360)%360;return ht._inRange(e,315+22.5,360)||ht._inRange(e,0,22.5)?"ns-resize":ht._inRange(e,45-22.5,45+22.5)?"nesw-resize":ht._inRange(e,90-22.5,90+22.5)?"ew-resize":ht._inRange(e,135-22.5,135+22.5)?"nwse-resize":ht._inRange(e,180-22.5,180+22.5)?"ns-resize":ht._inRange(e,225-22.5,225+22.5)?"nesw-resize":ht._inRange(e,270-22.5,270+22.5)?"ew-resize":ht._inRange(e,315-22.5,315+22.5)?"nwse-resize":(ht.error("Transformer has unknown angle for cursor detection: "+e),"pointer")}var Yu=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],Sw=1e8;function EQ(A){return{x:A.x+A.width/2*Math.cos(A.rotation)+A.height/2*Math.sin(-A.rotation),y:A.y+A.height/2*Math.cos(A.rotation)+A.width/2*Math.sin(A.rotation)}}function Lw(A,t,e){const r=e.x+(A.x-e.x)*Math.cos(t)-(A.y-e.y)*Math.sin(t),n=e.y+(A.x-e.x)*Math.sin(t)+(A.y-e.y)*Math.cos(t);return Object.assign(Object.assign({},A),{rotation:A.rotation+t,x:r,y:n})}function UQ(A,t){const e=EQ(A);return Lw(A,t,e)}function SQ(A,t,e){let r=t;for(let n=0;n<A.length;n++){const i=Wt.getAngle(A[n]),a=Math.abs(i-t)%(Math.PI*2);Math.min(a,Math.PI*2-a)<e&&(r=i)}return r}let Ne=class extends us{constructor(t){super(t),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(bQ,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return ht.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return Ew+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(r=>{const n=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},i=r._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");r.on(i,n),r.on(CQ.map(a=>a+`.${this._getEventNamespace()}`).join(" "),n),r.on(`absoluteTransformChange.${this._getEventNamespace()}`,n),this._proxyDrag(r)}),this._resetTransformCache();var e=!!this.findOne(".top-left");return e&&this.update(),this}_proxyDrag(t){let e;t.on(`dragstart.${this._getEventNamespace()}`,r=>{e=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(r,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!e)return;const n=t.getAbsolutePosition(),i=n.x-e.x,a=n.y-e.y;this.nodes().forEach(s=>{if(s===t||s.isDragging())return;const o=s.getAbsolutePosition();s.setAbsolutePosition({x:o.x+i,y:o.y+a}),s.startDrag(r)}),e=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(Uw),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(Uw,this.__getNodeRect)}__getNodeShape(t,e=this.rotation(),r){var n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(r),a=t.getAbsolutePosition(r),s=n.x*i.x-t.offsetX()*i.x,o=n.y*i.y-t.offsetY()*i.y;const h=(Wt.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),u={x:a.x+s*Math.cos(h)+o*Math.sin(-h),y:a.y+o*Math.cos(h)+s*Math.sin(h),width:n.width*i.x,height:n.height*i.y,rotation:h};return Lw(u,-Wt.getAngle(e),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-Sw,y:-Sw,width:0,height:0,rotation:0};const e=[];this.nodes().map(h=>{const u=h.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var d=[{x:u.x,y:u.y},{x:u.x+u.width,y:u.y},{x:u.x+u.width,y:u.y+u.height},{x:u.x,y:u.y+u.height}],f=h.getAbsoluteTransform();d.forEach(function(l){var p=f.point(l);e.push(p)})});const r=new an;r.rotate(-Wt.getAngle(this.rotation()));var n,i,a,s;e.forEach(function(h){var u=r.point(h);n===void 0&&(n=a=u.x,i=s=u.y),n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),s=Math.max(s,u.y)}),r.invert();const o=r.point({x:n,y:i});return{x:o.x,y:o.y,width:a-n,height:s-i,rotation:Wt.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),Yu.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")}_createAnchor(t){var e=new Wo({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:FQ?10:"auto"}),r=this;e.on("mousedown touchstart",function(n){r._handleMouseDown(n)}),e.on("dragstart",n=>{e.stopDrag(),n.cancelBubble=!0}),e.on("dragend",n=>{n.cancelBubble=!0}),e.on("mouseenter",()=>{var n=Wt.getAngle(this.rotation()),i=QQ(t,n);e.getStage().content&&(e.getStage().content.style.cursor=i),this._cursorChange=!0}),e.on("mouseout",()=>{e.getStage().content&&(e.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(e)}_createBack(){var t=new Et({name:"back",width:0,height:0,draggable:!0,sceneFunc(e){var r=this.getParent(),n=r.padding();e.beginPath(),e.rect(-n,-n,this.width()+n*2,this.height()+n*2),e.moveTo(this.width()/2,-n),r.rotateEnabled()&&e.lineTo(this.width()/2,-r.rotateAnchorOffset()*ht._sign(this.height())-n),e.fillStrokeShape(this)},hitFunc:(e,r)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,r.width()+n*2,r.height()+n*2),e.fillStrokeShape(r)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",e=>{e.cancelBubble=!0}),t.on("dragmove",e=>{e.cancelBubble=!0}),t.on("dragend",e=>{e.cancelBubble=!0}),this.on("dragmove",e=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),r=e.width,n=e.height,i=Math.sqrt(Math.pow(r,2)+Math.pow(n,2));this.sin=Math.abs(n/i),this.cos=Math.abs(r/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var a=t.target.getAbsolutePosition(),s=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-a.x,y:s.y-a.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(o=>{o._fire("transformstart",{evt:t.evt,target:o})})}_handleMouseMove(t){var e,r,n,i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const s=a.getPointerPosition();let o={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const h=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(o=this.anchorDragBoundFunc()(h,o,t)),i.setAbsolutePosition(o);const u=i.getAbsolutePosition();if(!(h.x===u.x&&h.y===u.y)){if(this._movingAnchorName==="rotater"){var d=this._getNodeRect();e=i.x()-d.width/2,r=-i.y()+d.height/2;let S=Math.atan2(-r,e)+Math.PI/2;d.height<0&&(S-=Math.PI);var f=Wt.getAngle(this.rotation());const O=f+S,D=Wt.getAngle(this.rotationSnapTolerance()),nt=SQ(this.rotationSnaps(),O,D)-d.rotation,Y=UQ(d,nt);this._fitNodesInto(Y,t);return}var l=this.keepRatio()||t.shiftKey,C=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(l){var p=C?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};n=Math.sqrt(Math.pow(p.x-i.x(),2)+Math.pow(p.y-i.y(),2));var w=this.findOne(".top-left").x()>p.x?-1:1,y=this.findOne(".top-left").y()>p.y?-1:1;e=n*this.cos*w,r=n*this.sin*y,this.findOne(".top-left").x(p.x-e),this.findOne(".top-left").y(p.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(l){var p=C?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};n=Math.sqrt(Math.pow(i.x()-p.x,2)+Math.pow(p.y-i.y(),2));var w=this.findOne(".top-right").x()<p.x?-1:1,y=this.findOne(".top-right").y()>p.y?-1:1;e=n*this.cos*w,r=n*this.sin*y,this.findOne(".top-right").x(p.x+e),this.findOne(".top-right").y(p.y-r)}var v=i.position();this.findOne(".top-left").y(v.y),this.findOne(".bottom-right").x(v.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(l){var p=C?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};n=Math.sqrt(Math.pow(p.x-i.x(),2)+Math.pow(i.y()-p.y,2));var w=p.x<i.x()?-1:1,y=i.y()<p.y?-1:1;e=n*this.cos*w,r=n*this.sin*y,i.x(p.x-e),i.y(p.y+r)}v=i.position(),this.findOne(".top-left").x(v.x),this.findOne(".bottom-right").y(v.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(i.y());else if(this._movingAnchorName==="bottom-right"){if(l){var p=C?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};n=Math.sqrt(Math.pow(i.x()-p.x,2)+Math.pow(i.y()-p.y,2));var w=this.findOne(".bottom-right").x()<p.x?-1:1,y=this.findOne(".bottom-right").y()<p.y?-1:1;e=n*this.cos*w,r=n*this.sin*y,this.findOne(".bottom-right").x(p.x+e),this.findOne(".bottom-right").y(p.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var C=this.centeredScaling()||t.altKey;if(C){var x=this.findOne(".top-left"),L=this.findOne(".bottom-right"),k=x.x(),M=x.y(),H=this.getWidth()-L.x(),N=this.getHeight()-L.y();L.move({x:-k,y:-M}),x.move({x:H,y:N})}var V=this.findOne(".top-left").getAbsolutePosition();e=V.x,r=V.y;var $=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),U=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:r,width:$,height:U,rotation:Wt.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var e=this.getNode();this._fire("transformend",{evt:t,target:e}),e&&this._nodes.forEach(r=>{r._fire("transformend",{evt:t,target:r})}),this._movingAnchorName=null}}_fitNodesInto(t,e){var r=this._getNodeRect();const n=1;if(ht._inRange(t.width,-this.padding()*2-n,n)){this.update();return}if(ht._inRange(t.height,-this.padding()*2-n,n)){this.update();return}const i=this.flipEnabled();var a=new an;if(a.rotate(Wt.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const d=a.point({x:-this.padding()*2,y:0});if(t.x+=d.x,t.y+=d.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,!i){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const d=a.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.width+=this.padding()*2,!i){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const d=a.point({x:0,y:-this.padding()*2});if(t.x+=d.x,t.y+=d.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.height+=this.padding()*2,!i){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const d=a.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.height+=this.padding()*2,!i){this.update();return}}if(this.boundBoxFunc()){const d=this.boundBoxFunc()(r,t);d?t=d:ht.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,o=new an;o.translate(r.x,r.y),o.rotate(r.rotation),o.scale(r.width/s,r.height/s);const h=new an;h.translate(t.x,t.y),h.rotate(t.rotation),h.scale(t.width/s,t.height/s);const u=h.multiply(o.invert());this._nodes.forEach(d=>{var f;const l=d.getParent().getAbsoluteTransform(),p=d.getTransform().copy();p.translate(d.offsetX(),d.offsetY());const w=new an;w.multiply(l.copy().invert()).multiply(u).multiply(l).multiply(p);const y=w.decompose();d.setAttrs(y),this._fire("transform",{evt:e,target:d}),d._fire("transform",{evt:e,target:d}),(f=d.getLayer())===null||f===void 0||f.batchDraw()}),this.rotation(ht._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,e){this.findOne(t).setAttrs(e)}update(){var t,e=this._getNodeRect();this.rotation(ht._getRotation(e.rotation));var r=e.width,n=e.height,i=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),o=this.anchorSize();this.find("._anchor").forEach(h=>{h.setAttrs({width:o,height:o,offsetX:o/2,offsetY:o/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:o/2+s,offsetY:o/2+s,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:o/2+s,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:o/2-s,offsetY:o/2+s,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:n/2,offsetX:o/2+s,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:n/2,offsetX:o/2-s,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:n,offsetX:o/2+s,offsetY:o/2-s,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:n,offsetY:o/2-s,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:n,offsetX:o/2-s,offsetY:o/2-s,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*ht._sign(n)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:n,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),us.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Nt.prototype.toObject.call(this)}clone(t){var e=Nt.prototype.clone.call(this,t);return e}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};function LQ(A){return A instanceof Array||ht.warn("enabledAnchors value should be an array"),A instanceof Array&&A.forEach(function(t){Yu.indexOf(t)===-1&&ht.warn("Unknown anchor name: "+t+". Available names are: "+Yu.join(", "))}),A||[]}Ne.prototype.className="Transformer",eA(Ne),W.addGetterSetter(Ne,"enabledAnchors",Yu,LQ),W.addGetterSetter(Ne,"flipEnabled",!0,sn()),W.addGetterSetter(Ne,"resizeEnabled",!0),W.addGetterSetter(Ne,"anchorSize",10,_t()),W.addGetterSetter(Ne,"rotateEnabled",!0),W.addGetterSetter(Ne,"rotationSnaps",[]),W.addGetterSetter(Ne,"rotateAnchorOffset",50,_t()),W.addGetterSetter(Ne,"rotationSnapTolerance",5,_t()),W.addGetterSetter(Ne,"borderEnabled",!0),W.addGetterSetter(Ne,"anchorStroke","rgb(0, 161, 255)"),W.addGetterSetter(Ne,"anchorStrokeWidth",1,_t()),W.addGetterSetter(Ne,"anchorFill","white"),W.addGetterSetter(Ne,"anchorCornerRadius",0,_t()),W.addGetterSetter(Ne,"borderStroke","rgb(0, 161, 255)"),W.addGetterSetter(Ne,"borderStrokeWidth",1,_t()),W.addGetterSetter(Ne,"borderDash"),W.addGetterSetter(Ne,"keepRatio",!0),W.addGetterSetter(Ne,"centeredScaling",!1),W.addGetterSetter(Ne,"ignoreStroke",!1),W.addGetterSetter(Ne,"padding",0,_t()),W.addGetterSetter(Ne,"node"),W.addGetterSetter(Ne,"nodes"),W.addGetterSetter(Ne,"boundBoxFunc"),W.addGetterSetter(Ne,"anchorDragBoundFunc"),W.addGetterSetter(Ne,"shouldOverdrawWholeArea",!1),W.addGetterSetter(Ne,"useSingleNodeRotation",!0),W.backCompat(Ne,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});let ti=class extends Et{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Wt.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}};ti.prototype.className="Wedge",ti.prototype._centroid=!0,ti.prototype._attrsAffectingSize=["radius"],eA(ti),W.addGetterSetter(ti,"radius",0,_t()),W.addGetterSetter(ti,"angle",0,_t()),W.addGetterSetter(ti,"clockwise",!1),W.backCompat(ti,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function Iw(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var IQ=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],_Q=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function NQ(A,t){var e=A.data,r=A.width,n=A.height,i,a,s,o,h,u,d,f,l,p,w,y,v,C,x,L,k,M,H,N,V,$,U,S,O=t+t+1,D=r-1,nt=n-1,Y=t+1,at=Y*(Y+1)/2,rt=new Iw,ot=null,At=rt,pt=null,F=null,R=IQ[t],G=_Q[t];for(s=1;s<O;s++)At=At.next=new Iw,s===Y&&(ot=At);for(At.next=rt,d=u=0,a=0;a<n;a++){for(L=k=M=H=f=l=p=w=0,y=Y*(N=e[u]),v=Y*(V=e[u+1]),C=Y*($=e[u+2]),x=Y*(U=e[u+3]),f+=at*N,l+=at*V,p+=at*$,w+=at*U,At=rt,s=0;s<Y;s++)At.r=N,At.g=V,At.b=$,At.a=U,At=At.next;for(s=1;s<Y;s++)o=u+((D<s?D:s)<<2),f+=(At.r=N=e[o])*(S=Y-s),l+=(At.g=V=e[o+1])*S,p+=(At.b=$=e[o+2])*S,w+=(At.a=U=e[o+3])*S,L+=N,k+=V,M+=$,H+=U,At=At.next;for(pt=rt,F=ot,i=0;i<r;i++)e[u+3]=U=w*R>>G,U!==0?(U=255/U,e[u]=(f*R>>G)*U,e[u+1]=(l*R>>G)*U,e[u+2]=(p*R>>G)*U):e[u]=e[u+1]=e[u+2]=0,f-=y,l-=v,p-=C,w-=x,y-=pt.r,v-=pt.g,C-=pt.b,x-=pt.a,o=d+((o=i+t+1)<D?o:D)<<2,L+=pt.r=e[o],k+=pt.g=e[o+1],M+=pt.b=e[o+2],H+=pt.a=e[o+3],f+=L,l+=k,p+=M,w+=H,pt=pt.next,y+=N=F.r,v+=V=F.g,C+=$=F.b,x+=U=F.a,L-=N,k-=V,M-=$,H-=U,F=F.next,u+=4;d+=r}for(i=0;i<r;i++){for(k=M=H=L=l=p=w=f=0,u=i<<2,y=Y*(N=e[u]),v=Y*(V=e[u+1]),C=Y*($=e[u+2]),x=Y*(U=e[u+3]),f+=at*N,l+=at*V,p+=at*$,w+=at*U,At=rt,s=0;s<Y;s++)At.r=N,At.g=V,At.b=$,At.a=U,At=At.next;for(h=r,s=1;s<=t;s++)u=h+i<<2,f+=(At.r=N=e[u])*(S=Y-s),l+=(At.g=V=e[u+1])*S,p+=(At.b=$=e[u+2])*S,w+=(At.a=U=e[u+3])*S,L+=N,k+=V,M+=$,H+=U,At=At.next,s<nt&&(h+=r);for(u=i,pt=rt,F=ot,a=0;a<n;a++)o=u<<2,e[o+3]=U=w*R>>G,U>0?(U=255/U,e[o]=(f*R>>G)*U,e[o+1]=(l*R>>G)*U,e[o+2]=(p*R>>G)*U):e[o]=e[o+1]=e[o+2]=0,f-=y,l-=v,p-=C,w-=x,y-=pt.r,v-=pt.g,C-=pt.b,x-=pt.a,o=i+((o=a+Y)<nt?o:nt)*r<<2,f+=L+=pt.r=e[o],l+=k+=pt.g=e[o+1],p+=M+=pt.b=e[o+2],w+=H+=pt.a=e[o+3],pt=pt.next,y+=N=F.r,v+=V=F.g,C+=$=F.b,x+=U=F.a,L-=N,k-=V,M-=$,H-=U,F=F.next,u+=r}}const PQ=function(A){var t=Math.round(this.blurRadius());t>0&&NQ(A,t)};W.addGetterSetter(Nt,"blurRadius",0,_t(),W.afterSetFilter);const TQ=function(A){var t=this.brightness()*255,e=A.data,r=e.length,n;for(n=0;n<r;n+=4)e[n]+=t,e[n+1]+=t,e[n+2]+=t};W.addGetterSetter(Nt,"brightness",0,_t(),W.afterSetFilter);const MQ=function(A){var t=Math.pow((this.contrast()+100)/100,2),e=A.data,r=e.length,n=150,i=150,a=150,s;for(s=0;s<r;s+=4)n=e[s],i=e[s+1],a=e[s+2],n/=255,n-=.5,n*=t,n+=.5,n*=255,i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,n=n<0?0:n>255?255:n,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,e[s]=n,e[s+1]=i,e[s+2]=a};W.addGetterSetter(Nt,"contrast",0,_t(),W.afterSetFilter);const OQ=function(A){var t=this.embossStrength()*10,e=this.embossWhiteLevel()*255,r=this.embossDirection(),n=this.embossBlend(),i=0,a=0,s=A.data,o=A.width,h=A.height,u=o*4,d=h;switch(r){case"top-left":i=-1,a=-1;break;case"top":i=-1,a=0;break;case"top-right":i=-1,a=1;break;case"right":i=0,a=1;break;case"bottom-right":i=1,a=1;break;case"bottom":i=1,a=0;break;case"bottom-left":i=1,a=-1;break;case"left":i=0,a=-1;break;default:ht.error("Unknown emboss direction: "+r)}do{var f=(d-1)*u,l=i;d+l<1&&(l=0),d+l>h&&(l=0);var p=(d-1+l)*o*4,w=o;do{var y=f+(w-1)*4,v=a;w+v<1&&(v=0),w+v>o&&(v=0);var C=p+(w-1+v)*4,x=s[y]-s[C],L=s[y+1]-s[C+1],k=s[y+2]-s[C+2],M=x,H=M>0?M:-M,N=L>0?L:-L,V=k>0?k:-k;if(N>H&&(M=L),V>H&&(M=k),M*=t,n){var $=s[y]+M,U=s[y+1]+M,S=s[y+2]+M;s[y]=$>255?255:$<0?0:$,s[y+1]=U>255?255:U<0?0:U,s[y+2]=S>255?255:S<0?0:S}else{var O=e-M;O<0?O=0:O>255&&(O=255),s[y]=s[y+1]=s[y+2]=O}}while(--w)}while(--d)};W.addGetterSetter(Nt,"embossStrength",.5,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"embossWhiteLevel",.5,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"embossDirection","top-left",null,W.afterSetFilter),W.addGetterSetter(Nt,"embossBlend",!1,null,W.afterSetFilter);function Kf(A,t,e,r,n){var i=e-t,a=n-r,s;return i===0?r+a/2:a===0?r:(s=(A-t)/i,s=a*s+r,s)}const kQ=function(A){var t=A.data,e=t.length,r=t[0],n=r,i,a=t[1],s=a,o,h=t[2],u=h,d,f,l=this.enhance();if(l!==0){for(f=0;f<e;f+=4)i=t[f+0],i<r?r=i:i>n&&(n=i),o=t[f+1],o<a?a=o:o>s&&(s=o),d=t[f+2],d<h?h=d:d>u&&(u=d);n===r&&(n=255,r=0),s===a&&(s=255,a=0),u===h&&(u=255,h=0);var p,w,y,v,C,x,L,k,M;for(l>0?(w=n+l*(255-n),y=r-l*(r-0),C=s+l*(255-s),x=a-l*(a-0),k=u+l*(255-u),M=h-l*(h-0)):(p=(n+r)*.5,w=n+l*(n-p),y=r+l*(r-p),v=(s+a)*.5,C=s+l*(s-v),x=a+l*(a-v),L=(u+h)*.5,k=u+l*(u-L),M=h+l*(h-L)),f=0;f<e;f+=4)t[f+0]=Kf(t[f+0],r,n,y,w),t[f+1]=Kf(t[f+1],a,s,x,C),t[f+2]=Kf(t[f+2],h,u,M,k)}};W.addGetterSetter(Nt,"enhance",0,_t(),W.afterSetFilter);const HQ=function(A){var t=A.data,e=t.length,r,n;for(r=0;r<e;r+=4)n=.34*t[r]+.5*t[r+1]+.16*t[r+2],t[r]=n,t[r+1]=n,t[r+2]=n};W.addGetterSetter(Nt,"hue",0,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"saturation",0,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"luminance",0,_t(),W.afterSetFilter);const DQ=function(A){var t=A.data,e=t.length,r=1,n=Math.pow(2,this.saturation()),i=Math.abs(this.hue()+360)%360,a=this.luminance()*127,s,o=r*n*Math.cos(i*Math.PI/180),h=r*n*Math.sin(i*Math.PI/180),u=.299*r+.701*o+.167*h,d=.587*r-.587*o+.33*h,f=.114*r-.114*o-.497*h,l=.299*r-.299*o-.328*h,p=.587*r+.413*o+.035*h,w=.114*r-.114*o+.293*h,y=.299*r-.3*o+1.25*h,v=.587*r-.586*o-1.05*h,C=.114*r+.886*o-.2*h,x,L,k,M;for(s=0;s<e;s+=4)x=t[s+0],L=t[s+1],k=t[s+2],M=t[s+3],t[s+0]=u*x+d*L+f*k+a,t[s+1]=l*x+p*L+w*k+a,t[s+2]=y*x+v*L+C*k+a,t[s+3]=M},RQ=function(A){var t=A.data,e=t.length,r=Math.pow(2,this.value()),n=Math.pow(2,this.saturation()),i=Math.abs(this.hue()+360)%360,a,s=r*n*Math.cos(i*Math.PI/180),o=r*n*Math.sin(i*Math.PI/180),h=.299*r+.701*s+.167*o,u=.587*r-.587*s+.33*o,d=.114*r-.114*s-.497*o,f=.299*r-.299*s-.328*o,l=.587*r+.413*s+.035*o,p=.114*r-.114*s+.293*o,w=.299*r-.3*s+1.25*o,y=.587*r-.586*s-1.05*o,v=.114*r+.886*s-.2*o,C,x,L,k;for(a=0;a<e;a+=4)C=t[a+0],x=t[a+1],L=t[a+2],k=t[a+3],t[a+0]=h*C+u*x+d*L,t[a+1]=f*C+l*x+p*L,t[a+2]=w*C+y*x+v*L,t[a+3]=k};W.addGetterSetter(Nt,"hue",0,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"saturation",0,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"value",0,_t(),W.afterSetFilter);const jQ=function(A){var t=A.data,e=t.length,r;for(r=0;r<e;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]};var GQ=function(A,t,e){var r=A.data,n=t.data,i=A.width,a=A.height,s=e.polarCenterX||i/2,o=e.polarCenterY||a/2,h,u,d,f=0,l=0,p=0,w=0,y,v=Math.sqrt(s*s+o*o);u=i-s,d=a-o,y=Math.sqrt(u*u+d*d),v=y>v?y:v;var C=a,x=i,L,k,M=360/x*Math.PI/180,H,N;for(k=0;k<x;k+=1)for(H=Math.sin(k*M),N=Math.cos(k*M),L=0;L<C;L+=1)u=Math.floor(s+v*L/C*N),d=Math.floor(o+v*L/C*H),h=(d*i+u)*4,f=r[h+0],l=r[h+1],p=r[h+2],w=r[h+3],h=(k+L*i)*4,n[h+0]=f,n[h+1]=l,n[h+2]=p,n[h+3]=w},KQ=function(A,t,e){var r=A.data,n=t.data,i=A.width,a=A.height,s=e.polarCenterX||i/2,o=e.polarCenterY||a/2,h,u,d,f,l,p=0,w=0,y=0,v=0,C,x=Math.sqrt(s*s+o*o);u=i-s,d=a-o,C=Math.sqrt(u*u+d*d),x=C>x?C:x;var L=a,k=i,M,H,N=e.polarRotation||0,V,$;for(u=0;u<i;u+=1)for(d=0;d<a;d+=1)f=u-s,l=d-o,M=Math.sqrt(f*f+l*l)*L/x,H=(Math.atan2(l,f)*180/Math.PI+360+N)%360,H=H*k/360,V=Math.floor(H),$=Math.floor(M),h=($*i+V)*4,p=r[h+0],w=r[h+1],y=r[h+2],v=r[h+3],h=(d*i+u)*4,n[h+0]=p,n[h+1]=w,n[h+2]=y,n[h+3]=v};const VQ=function(A){var t=A.width,e=A.height,r,n,i,a,s,o,h,u,d,f,l=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),w=Math.floor(t*(p%360)/360);if(!(l<1)){var y=ht.createCanvasElement();y.width=t,y.height=e;var v=y.getContext("2d").getImageData(0,0,t,e);ht.releaseCanvas(y),GQ(A,v,{polarCenterX:t/2,polarCenterY:e/2});for(var C=t/Math.pow(2,l);C<=8;)C=C*2,l-=1;C=Math.ceil(C);var x=C,L=0,k=x,M=1;for(w+C>t&&(L=x,k=0,M=-1),n=0;n<e;n+=1)for(r=L;r!==k;r+=M)i=Math.round(r+w)%t,d=(t*n+i)*4,s=v.data[d+0],o=v.data[d+1],h=v.data[d+2],u=v.data[d+3],f=(t*n+r)*4,v.data[f+0]=s,v.data[f+1]=o,v.data[f+2]=h,v.data[f+3]=u;for(n=0;n<e;n+=1)for(x=Math.floor(C),a=0;a<l;a+=1){for(r=0;r<x+1;r+=1)d=(t*n+r)*4,s=v.data[d+0],o=v.data[d+1],h=v.data[d+2],u=v.data[d+3],f=(t*n+x*2-r-1)*4,v.data[f+0]=s,v.data[f+1]=o,v.data[f+2]=h,v.data[f+3]=u;x*=2}KQ(v,A,{polarRotation:0})}};W.addGetterSetter(Nt,"kaleidoscopePower",2,_t(),W.afterSetFilter),W.addGetterSetter(Nt,"kaleidoscopeAngle",0,_t(),W.afterSetFilter);function Ju(A,t,e){var r=(e*A.width+t)*4,n=[];return n.push(A.data[r++],A.data[r++],A.data[r++],A.data[r++]),n}function Xo(A,t){return Math.sqrt(Math.pow(A[0]-t[0],2)+Math.pow(A[1]-t[1],2)+Math.pow(A[2]-t[2],2))}function $Q(A){for(var t=[0,0,0],e=0;e<A.length;e++)t[0]+=A[e][0],t[1]+=A[e][1],t[2]+=A[e][2];return t[0]/=A.length,t[1]/=A.length,t[2]/=A.length,t}function zQ(A,t){var e=Ju(A,0,0),r=Ju(A,A.width-1,0),n=Ju(A,0,A.height-1),i=Ju(A,A.width-1,A.height-1),a=t||10;if(Xo(e,r)<a&&Xo(r,i)<a&&Xo(i,n)<a&&Xo(n,e)<a){for(var s=$Q([r,e,i,n]),o=[],h=0;h<A.width*A.height;h++){var u=Xo(s,[A.data[h*4],A.data[h*4+1],A.data[h*4+2]]);o[h]=u<a?0:255}return o}}function WQ(A,t){for(var e=0;e<A.width*A.height;e++)A.data[4*e+3]=t[e]}function qQ(A,t,e){for(var r=[1,1,1,1,0,1,1,1,1],n=Math.round(Math.sqrt(r.length)),i=Math.floor(n/2),a=[],s=0;s<e;s++)for(var o=0;o<t;o++){for(var h=s*t+o,u=0,d=0;d<n;d++)for(var f=0;f<n;f++){var l=s+d-i,p=o+f-i;if(l>=0&&l<e&&p>=0&&p<t){var w=l*t+p,y=r[d*n+f];u+=A[w]*y}}a[h]=u===255*8?255:0}return a}function XQ(A,t,e){for(var r=[1,1,1,1,1,1,1,1,1],n=Math.round(Math.sqrt(r.length)),i=Math.floor(n/2),a=[],s=0;s<e;s++)for(var o=0;o<t;o++){for(var h=s*t+o,u=0,d=0;d<n;d++)for(var f=0;f<n;f++){var l=s+d-i,p=o+f-i;if(l>=0&&l<e&&p>=0&&p<t){var w=l*t+p,y=r[d*n+f];u+=A[w]*y}}a[h]=u>=255*4?255:0}return a}function YQ(A,t,e){for(var r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],n=Math.round(Math.sqrt(r.length)),i=Math.floor(n/2),a=[],s=0;s<e;s++)for(var o=0;o<t;o++){for(var h=s*t+o,u=0,d=0;d<n;d++)for(var f=0;f<n;f++){var l=s+d-i,p=o+f-i;if(l>=0&&l<e&&p>=0&&p<t){var w=l*t+p,y=r[d*n+f];u+=A[w]*y}}a[h]=u}return a}const JQ=function(A){var t=this.threshold(),e=zQ(A,t);return e&&(e=qQ(e,A.width,A.height),e=XQ(e,A.width,A.height),e=YQ(e,A.width,A.height),WQ(A,e)),A};W.addGetterSetter(Nt,"threshold",0,_t(),W.afterSetFilter);const ZQ=function(A){var t=this.noise()*255,e=A.data,r=e.length,n=t/2,i;for(i=0;i<r;i+=4)e[i+0]+=n-2*n*Math.random(),e[i+1]+=n-2*n*Math.random(),e[i+2]+=n-2*n*Math.random()};W.addGetterSetter(Nt,"noise",.2,_t(),W.afterSetFilter);const tE=function(A){var t=Math.ceil(this.pixelSize()),e=A.width,r=A.height,n,i,a,s,o,h,u,d=Math.ceil(e/t),f=Math.ceil(r/t),l,p,w,y,v,C,x,L=A.data;if(t<=0){ht.error("pixelSize value can not be <= 0");return}for(v=0;v<d;v+=1)for(C=0;C<f;C+=1){for(s=0,o=0,h=0,u=0,l=v*t,p=l+t,w=C*t,y=w+t,x=0,n=l;n<p;n+=1)if(!(n>=e))for(i=w;i<y;i+=1)i>=r||(a=(e*i+n)*4,s+=L[a+0],o+=L[a+1],h+=L[a+2],u+=L[a+3],x+=1);for(s=s/x,o=o/x,h=h/x,u=u/x,n=l;n<p;n+=1)if(!(n>=e))for(i=w;i<y;i+=1)i>=r||(a=(e*i+n)*4,L[a+0]=s,L[a+1]=o,L[a+2]=h,L[a+3]=u)}};W.addGetterSetter(Nt,"pixelSize",8,_t(),W.afterSetFilter);const eE=function(A){var t=Math.round(this.levels()*254)+1,e=A.data,r=e.length,n=255/t,i;for(i=0;i<r;i+=1)e[i]=Math.floor(e[i]/n)*n};W.addGetterSetter(Nt,"levels",.5,_t(),W.afterSetFilter);const AE=function(A){var t=A.data,e=t.length,r=this.red(),n=this.green(),i=this.blue(),a,s;for(a=0;a<e;a+=4)s=(.34*t[a]+.5*t[a+1]+.16*t[a+2])/255,t[a]=s*r,t[a+1]=s*n,t[a+2]=s*i,t[a+3]=t[a+3]};W.addGetterSetter(Nt,"red",0,function(A){return this._filterUpToDate=!1,A>255?255:A<0?0:Math.round(A)}),W.addGetterSetter(Nt,"green",0,function(A){return this._filterUpToDate=!1,A>255?255:A<0?0:Math.round(A)}),W.addGetterSetter(Nt,"blue",0,Nm,W.afterSetFilter);const rE=function(A){var t=A.data,e=t.length,r=this.red(),n=this.green(),i=this.blue(),a=this.alpha(),s,o;for(s=0;s<e;s+=4)o=1-a,t[s]=r*a+t[s]*o,t[s+1]=n*a+t[s+1]*o,t[s+2]=i*a+t[s+2]*o};W.addGetterSetter(Nt,"red",0,function(A){return this._filterUpToDate=!1,A>255?255:A<0?0:Math.round(A)}),W.addGetterSetter(Nt,"green",0,function(A){return this._filterUpToDate=!1,A>255?255:A<0?0:Math.round(A)}),W.addGetterSetter(Nt,"blue",0,Nm,W.afterSetFilter),W.addGetterSetter(Nt,"alpha",1,function(A){return this._filterUpToDate=!1,A>1?1:A<0?0:A});const nE=function(A){var t=A.data,e=t.length,r,n,i,a;for(r=0;r<e;r+=4)n=t[r+0],i=t[r+1],a=t[r+2],t[r+0]=Math.min(255,n*.393+i*.769+a*.189),t[r+1]=Math.min(255,n*.349+i*.686+a*.168),t[r+2]=Math.min(255,n*.272+i*.534+a*.131)},iE=function(A){var t=A.data,e=A.width,r=A.height,n=e*4,i=r;do{var a=(i-1)*n,s=e;do{var o=a+(s-1)*4,h=t[o],u=t[o+1],d=t[o+2];h>127&&(h=255-h),u>127&&(u=255-u),d>127&&(d=255-d),t[o]=h,t[o+1]=u,t[o+2]=d}while(--s)}while(--i)},aE=function(A){var t=this.threshold()*255,e=A.data,r=e.length,n;for(n=0;n<r;n+=1)e[n]=e[n]<t?0:255};W.addGetterSetter(Nt,"threshold",.5,_t(),W.afterSetFilter);const le=dw.Util._assign(dw,{Arc:Jn,Arrow:va,Circle:ls,Ellipse:Si,Image:_n,Label:Df,Tag:ya,Line:Zn,Path:KA,Rect:Wo,RegularPolygon:ba,Ring:Ca,Sprite:Nn,Star:Li,Text:AA,TextPath:IA,Transformer:Ne,Wedge:ti,Filters:{Blur:PQ,Brighten:TQ,Contrast:MQ,Emboss:OQ,Enhance:kQ,Grayscale:HQ,HSL:DQ,HSV:RQ,Invert:jQ,Kaleidoscope:VQ,Mask:JQ,Noise:ZQ,Pixelate:tE,Posterize:eE,RGB:AE,RGBA:rE,Sepia:nE,Solarize:iE,Threshold:aE}}),Vf={placeHolderImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA6wAAAJYCAYAAABmT2v/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/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ksMTMuMTEgWiIgZmlsbD0iI0Y0Q0QxRSIgaWQ9IlNoYXBlIi8+PC9nPjwvZz48L3N2Zz4="};function sE(A){var t=new le.Text(A);return t}function oE(A){var t=new le.Rect(A);return t}function hE(A){var t=new le.Circle(A);return t}function Le(A){return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(A)}var or=Uint8Array,hr=Uint16Array,Yo=Uint32Array,Zu=new or([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]),tc=new or([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]),$f=new or([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_w=function(A,t){for(var e=new hr(31),r=0;r<31;++r)e[r]=t+=1<<A[r-1];for(var n=new Yo(e[30]),r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)n[i]=i-e[r]<<5|r;return[e,n]},Nw=_w(Zu,2),Pw=Nw[0],zf=Nw[1];Pw[28]=258,zf[258]=28;for(var Tw=_w(tc,0),uE=Tw[0],Mw=Tw[1],Wf=new hr(32768),Ye=0;Ye<32768;++Ye){var Ii=(Ye&43690)>>>1|(Ye&21845)<<1;Ii=(Ii&52428)>>>2|(Ii&13107)<<2,Ii=(Ii&61680)>>>4|(Ii&3855)<<4,Wf[Ye]=((Ii&65280)>>>8|(Ii&255)<<8)>>>1}for(var Pn=function(A,t,e){for(var r=A.length,n=0,i=new hr(t);n<r;++n)++i[A[n]-1];var a=new hr(t);for(n=0;n<t;++n)a[n]=a[n-1]+i[n-1]<<1;var s;if(e){s=new hr(1<<t);var o=15-t;for(n=0;n<r;++n)if(A[n])for(var h=n<<4|A[n],u=t-A[n],d=a[A[n]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[Wf[d]>>>o]=h}else for(s=new hr(r),n=0;n<r;++n)s[n]=Wf[a[A[n]-1]++]>>>15-A[n];return s},_i=new or(288),Ye=0;Ye<144;++Ye)_i[Ye]=8;for(var Ye=144;Ye<256;++Ye)_i[Ye]=9;for(var Ye=256;Ye<280;++Ye)_i[Ye]=7;for(var Ye=280;Ye<288;++Ye)_i[Ye]=8;for(var Jo=new or(32),Ye=0;Ye<32;++Ye)Jo[Ye]=5;var cE=Pn(_i,9,0),lE=Pn(_i,9,1),dE=Pn(Jo,5,0),fE=Pn(Jo,5,1),qf=function(A){for(var t=A[0],e=1;e<A.length;++e)A[e]>t&&(t=A[e]);return t},on=function(A,t,e){var r=t/8>>0;return(A[r]|A[r+1]<<8)>>>(t&7)&e},Xf=function(A,t){var e=t/8>>0;return(A[e]|A[e+1]<<8|A[e+2]<<16)>>>(t&7)},Yf=function(A){return(A/8>>0)+(A&7&&1)},Ow=function(A,t,e){(t==null||t<0)&&(t=0),(e==null||e>A.length)&&(e=A.length);var r=new(A instanceof hr?hr:A instanceof Yo?Yo:or)(e-t);return r.set(A.subarray(t,e)),r},gE=function(A,t,e){var r=A.length,n=!t||e,i=!e||e.i;e||(e={}),t||(t=new or(r*3));var a=function(Z){var ct=t.length;if(Z>ct){var ft=new or(Math.max(ct*2,Z));ft.set(t),t=ft}},s=e.f||0,o=e.p||0,h=e.b||0,u=e.l,d=e.d,f=e.m,l=e.n,p=r*8;do{if(!u){e.f=s=on(A,o,1);var w=on(A,o+1,3);if(o+=3,w)if(w==1)u=lE,d=fE,f=9,l=5;else if(w==2){var y=on(A,o,31)+257,v=on(A,o+10,15)+4,C=y+on(A,o+5,31)+1;o+=14;for(var x=new or(C),L=new or(19),k=0;k<v;++k)L[$f[k]]=on(A,o+k*3,7);o+=v*3;var M=qf(L),H=(1<<M)-1;if(!i&&o+C*(M+7)>p)break;for(var N=Pn(L,M,1),k=0;k<C;){var V=N[on(A,o,H)];o+=V&15;var $=V>>>4;if($<16)x[k++]=$;else{var U=0,S=0;for($==16?(S=3+on(A,o,3),o+=2,U=x[k-1]):$==17?(S=3+on(A,o,7),o+=3):$==18&&(S=11+on(A,o,127),o+=7);S--;)x[k++]=U}}var O=x.subarray(0,y),D=x.subarray(y);f=qf(O),l=qf(D),u=Pn(O,f,1),d=Pn(D,l,1)}else throw"invalid block type";else{var $=Yf(o)+4,nt=A[$-4]|A[$-3]<<8,Y=$+nt;if(Y>r){if(i)throw"unexpected EOF";break}n&&a(h+nt),t.set(A.subarray($,Y),h),e.b=h+=nt,e.p=o=Y*8;continue}if(o>p)throw"unexpected EOF"}n&&a(h+131072);for(var at=(1<<f)-1,rt=(1<<l)-1,ot=f+l+18;i||o+ot<p;){var U=u[Xf(A,o)&at],At=U>>>4;if(o+=U&15,o>p)throw"unexpected EOF";if(!U)throw"invalid length/literal";if(At<256)t[h++]=At;else if(At==256){u=null;break}else{var pt=At-254;if(At>264){var k=At-257,F=Zu[k];pt=on(A,o,(1<<F)-1)+Pw[k],o+=F}var R=d[Xf(A,o)&rt],G=R>>>4;if(!R)throw"invalid distance";o+=R&15;var D=uE[G];if(G>3){var F=tc[G];D+=Xf(A,o)&(1<<F)-1,o+=F}if(o>p)throw"unexpected EOF";n&&a(h+131072);for(var q=h+pt;h<q;h+=4)t[h]=t[h-D],t[h+1]=t[h+1-D],t[h+2]=t[h+2-D],t[h+3]=t[h+3-D];h=q}}e.l=u,e.p=o,e.b=h,u&&(s=1,e.m=f,e.d=d,e.n=l)}while(!s);return h==t.length?t:Ow(t,0,h)},ei=function(A,t,e){e<<=t&7;var r=t/8>>0;A[r]|=e,A[r+1]|=e>>>8},Zo=function(A,t,e){e<<=t&7;var r=t/8>>0;A[r]|=e,A[r+1]|=e>>>8,A[r+2]|=e>>>16},Jf=function(A,t){for(var e=[],r=0;r<A.length;++r)A[r]&&e.push({s:r,f:A[r]});var n=e.length,i=e.slice();if(!n)return[new or(0),0];if(n==1){var a=new or(e[0].s+1);return a[e[0].s]=1,[a,1]}e.sort(function(k,M){return k.f-M.f}),e.push({s:-1,f:25001});var s=e[0],o=e[1],h=0,u=1,d=2;for(e[0]={s:-1,f:s.f+o.f,l:s,r:o};u!=n-1;)s=e[e[h].f<e[d].f?h++:d++],o=e[h!=u&&e[h].f<e[d].f?h++:d++],e[u++]={s:-1,f:s.f+o.f,l:s,r:o};for(var f=i[0].s,r=1;r<n;++r)i[r].s>f&&(f=i[r].s);var l=new hr(f+1),p=Zf(e[u-1],l,0);if(p>t){var r=0,w=0,y=p-t,v=1<<y;for(i.sort(function(M,H){return l[H.s]-l[M.s]||M.f-H.f});r<n;++r){var C=i[r].s;if(l[C]>t)w+=v-(1<<p-l[C]),l[C]=t;else break}for(w>>>=y;w>0;){var x=i[r].s;l[x]<t?w-=1<<t-l[x]++-1:++r}for(;r>=0&&w;--r){var L=i[r].s;l[L]==t&&(--l[L],++w)}p=t}return[new or(l),p]},Zf=function(A,t,e){return A.s==-1?Math.max(Zf(A.l,t,e+1),Zf(A.r,t,e+1)):t[A.s]=e},kw=function(A){for(var t=A.length;t&&!A[--t];);for(var e=new hr(++t),r=0,n=A[0],i=1,a=function(o){e[r++]=o},s=1;s<=t;++s)if(A[s]==n&&s!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(n),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(n);i=1,n=A[s]}return[e.subarray(0,r),t]},th=function(A,t){for(var e=0,r=0;r<t.length;++r)e+=A[r]*t[r];return e},ec=function(A,t,e){var r=e.length,n=Yf(t+2);A[n]=r&255,A[n+1]=r>>>8,A[n+2]=A[n]^255,A[n+3]=A[n+1]^255;for(var i=0;i<r;++i)A[n+i+4]=e[i];return(n+4+r)*8},Hw=function(A,t,e,r,n,i,a,s,o,h,u){ei(t,u++,e),++n[256];for(var d=Jf(n,15),f=d[0],l=d[1],p=Jf(i,15),w=p[0],y=p[1],v=kw(f),C=v[0],x=v[1],L=kw(w),k=L[0],M=L[1],H=new hr(19),N=0;N<C.length;++N)H[C[N]&31]++;for(var N=0;N<k.length;++N)H[k[N]&31]++;for(var V=Jf(H,7),$=V[0],U=V[1],S=19;S>4&&!$[$f[S-1]];--S);var O=h+5<<3,D=th(n,_i)+th(i,Jo)+a,nt=th(n,f)+th(i,w)+a+14+3*S+th(H,$)+(2*H[16]+3*H[17]+7*H[18]);if(O<=D&&O<=nt)return ec(t,u,A.subarray(o,o+h));var Y,at,rt,ot;if(ei(t,u,1+(nt<D)),u+=2,nt<D){Y=Pn(f,l,0),at=f,rt=Pn(w,y,0),ot=w;var At=Pn($,U,0);ei(t,u,x-257),ei(t,u+5,M-1),ei(t,u+10,S-4),u+=14;for(var N=0;N<S;++N)ei(t,u+3*N,$[$f[N]]);u+=3*S;for(var pt=[C,k],F=0;F<2;++F)for(var R=pt[F],N=0;N<R.length;++N){var G=R[N]&31;ei(t,u,At[G]),u+=$[G],G>15&&(ei(t,u,R[N]>>>5&127),u+=R[N]>>>12)}}else Y=cE,at=_i,rt=dE,ot=Jo;for(var N=0;N<s;++N)if(r[N]>255){var G=r[N]>>>18&31;Zo(t,u,Y[G+257]),u+=at[G+257],G>7&&(ei(t,u,r[N]>>>23&31),u+=Zu[G]);var q=r[N]&31;Zo(t,u,rt[q]),u+=ot[q],q>3&&(Zo(t,u,r[N]>>>5&8191),u+=tc[q])}else Zo(t,u,Y[r[N]]),u+=at[r[N]];return Zo(t,u,Y[256]),u+at[256]},pE=new Yo([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),mE=new or(0),wE=function(A,t,e,r,n,i){var a=A.length,s=new or(r+a+5*(1+Math.floor(a/7e3))+n),o=s.subarray(r,s.length-n),h=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535;d<a?h=ec(o,h,A.subarray(u,d)):(o[u]=i,h=ec(o,h,A.subarray(u,a)))}else{for(var f=pE[t-1],l=f>>>13,p=f&8191,w=(1<<e)-1,y=new hr(32768),v=new hr(w+1),C=Math.ceil(e/3),x=2*C,L=function(qt){return(A[qt]^A[qt+1]<<C^A[qt+2]<<x)&w},k=new Yo(25e3),M=new hr(288),H=new hr(32),N=0,V=0,u=0,$=0,U=0,S=0;u<a;++u){var O=L(u),D=u&32767,nt=v[O];if(y[D]=nt,v[O]=D,U<=u){var Y=a-u;if((N>7e3||$>24576)&&Y>423){h=Hw(A,o,0,k,M,H,V,$,S,u-S,h),$=N=V=0,S=u;for(var at=0;at<286;++at)M[at]=0;for(var at=0;at<30;++at)H[at]=0}var rt=2,ot=0,At=p,pt=D-nt&32767;if(Y>2&&O==L(u-pt))for(var F=Math.min(l,Y)-1,R=Math.min(32767,u),G=Math.min(258,Y);pt<=R&&--At&&D!=nt;){if(A[u+rt]==A[u+rt-pt]){for(var q=0;q<G&&A[u+q]==A[u+q-pt];++q);if(q>rt){if(rt=q,ot=pt,q>F)break;for(var Z=Math.min(pt,q-2),ct=0,at=0;at<Z;++at){var ft=u-pt+at+32768&32767,gt=y[ft],St=ft-gt+32768&32767;St>ct&&(ct=St,nt=ft)}}}D=nt,nt=y[D],pt+=D-nt+32768&32767}if(ot){k[$++]=268435456|zf[rt]<<18|Mw[ot];var Ut=zf[rt]&31,Ht=Mw[ot]&31;V+=Zu[Ut]+tc[Ht],++M[257+Ut],++H[Ht],U=u+rt,++N}else k[$++]=A[u],++M[A[u]]}}h=Hw(A,o,i,k,M,H,V,$,S,u-S,h),i||(h=ec(o,h,mE))}return Ow(s,0,r+Yf(h)+n)},BE=function(){var A=1,t=0;return{p:function(e){for(var r=A,n=t,i=e.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)r+=e[a],n+=r;r%=65521,n%=65521}A=r,t=n},d:function(){return(A>>>8<<16|(t&255)<<8|t>>>8)+((A&255)<<23)*2}}},vE=function(A,t,e,r,n){return wE(A,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(A.length)))*1.5):12+t.mem,e,r,!n)},yE=function(A,t,e){for(;e;++t)A[t]=e,e>>>=8},bE=function(A,t){var e=t.level,r=e==0?0:e<6?1:e==9?3:2;A[0]=120,A[1]=r<<6|(r?32-2*r:1)},CE=function(A){if((A[0]&15)!=8||A[0]>>>4>7||(A[0]<<8|A[1])%31)throw"invalid zlib data";if(A[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function t1(A,t){t===void 0&&(t={});var e=BE();e.p(A);var r=vE(A,t,2,4);return bE(r,t),yE(r,r.length-4,e.d()),r}function xE(A,t){return gE((CE(A),A.subarray(2,-4)),t)}/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <[email protected]>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <[email protected]>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var ie=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function e1(){ie.console&&typeof ie.console.log=="function"&&ie.console.log.apply(ie.console,arguments)}var Ke={log:e1,warn:function(A){ie.console&&(typeof ie.console.warn=="function"?ie.console.warn.apply(ie.console,arguments):e1.call(null,arguments))},error:function(A){ie.console&&(typeof ie.console.error=="function"?ie.console.error.apply(ie.console,arguments):e1(A))}};function A1(A,t,e){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){xa(r.response,t,e)},r.onerror=function(){Ke.error("could not download file")},r.send()}function Dw(A){var t=new XMLHttpRequest;t.open("HEAD",A,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ac(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(t)}}var eh,r1,xa=ie.saveAs||((typeof window>"u"?"undefined":Le(window))!=="object"||window!==ie?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(A,t,e){var r=ie.URL||ie.webkitURL,n=document.createElement("a");t=t||A.name||"download",n.download=t,n.rel="noopener",typeof A=="string"?(n.href=A,n.origin!==location.origin?Dw(n.href)?A1(A,t,e):Ac(n,n.target="_blank"):Ac(n)):(n.href=r.createObjectURL(A),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Ac(n)},0))}:"msSaveOrOpenBlob"in navigator?function(A,t,e){if(t=t||A.name||"download",typeof A=="string")if(Dw(A))A1(A,t,e);else{var r=document.createElement("a");r.href=A,r.target="_blank",setTimeout(function(){Ac(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Le(i)!=="object"&&(Ke.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([String.fromCharCode(65279),n],{type:n.type}):n}(A,e),t)}:function(A,t,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof A=="string")return A1(A,t,e);var n=A.type==="application/octet-stream",i=/constructor/i.test(ie.HTMLElement)||ie.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":Le(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=a?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},s.readAsDataURL(A)}else{var o=ie.URL||ie.webkitURL,h=o.createObjectURL(A);r?r.location=h:location.href=h,r=null,setTimeout(function(){o.revokeObjectURL(h)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <[email protected]>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function Rw(A){var t;A=A||"",this.ok=!1,A.charAt(0)=="#"&&(A=A.substr(1,6)),A={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,a=n.exec(A);a&&(t=i(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),o=this.g.toString(16),h=this.b.toString(16);return s.length==1&&(s="0"+s),o.length==1&&(o="0"+o),h.length==1&&(h="0"+h),"#"+s+o+h}}/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function n1(A,t){var e=A[0],r=A[1],n=A[2],i=A[3];e=YA(e,r,n,i,t[0],7,-680876936),i=YA(i,e,r,n,t[1],12,-389564586),n=YA(n,i,e,r,t[2],17,606105819),r=YA(r,n,i,e,t[3],22,-1044525330),e=YA(e,r,n,i,t[4],7,-176418897),i=YA(i,e,r,n,t[5],12,1200080426),n=YA(n,i,e,r,t[6],17,-1473231341),r=YA(r,n,i,e,t[7],22,-45705983),e=YA(e,r,n,i,t[8],7,1770035416),i=YA(i,e,r,n,t[9],12,-1958414417),n=YA(n,i,e,r,t[10],17,-42063),r=YA(r,n,i,e,t[11],22,-1990404162),e=YA(e,r,n,i,t[12],7,1804603682),i=YA(i,e,r,n,t[13],12,-40341101),n=YA(n,i,e,r,t[14],17,-1502002290),e=JA(e,r=YA(r,n,i,e,t[15],22,1236535329),n,i,t[1],5,-165796510),i=JA(i,e,r,n,t[6],9,-1069501632),n=JA(n,i,e,r,t[11],14,643717713),r=JA(r,n,i,e,t[0],20,-373897302),e=JA(e,r,n,i,t[5],5,-701558691),i=JA(i,e,r,n,t[10],9,38016083),n=JA(n,i,e,r,t[15],14,-660478335),r=JA(r,n,i,e,t[4],20,-405537848),e=JA(e,r,n,i,t[9],5,568446438),i=JA(i,e,r,n,t[14],9,-1019803690),n=JA(n,i,e,r,t[3],14,-187363961),r=JA(r,n,i,e,t[8],20,1163531501),e=JA(e,r,n,i,t[13],5,-1444681467),i=JA(i,e,r,n,t[2],9,-51403784),n=JA(n,i,e,r,t[7],14,1735328473),e=ZA(e,r=JA(r,n,i,e,t[12],20,-1926607734),n,i,t[5],4,-378558),i=ZA(i,e,r,n,t[8],11,-2022574463),n=ZA(n,i,e,r,t[11],16,1839030562),r=ZA(r,n,i,e,t[14],23,-35309556),e=ZA(e,r,n,i,t[1],4,-1530992060),i=ZA(i,e,r,n,t[4],11,1272893353),n=ZA(n,i,e,r,t[7],16,-155497632),r=ZA(r,n,i,e,t[10],23,-1094730640),e=ZA(e,r,n,i,t[13],4,681279174),i=ZA(i,e,r,n,t[0],11,-358537222),n=ZA(n,i,e,r,t[3],16,-722521979),r=ZA(r,n,i,e,t[6],23,76029189),e=ZA(e,r,n,i,t[9],4,-640364487),i=ZA(i,e,r,n,t[12],11,-421815835),n=ZA(n,i,e,r,t[15],16,530742520),e=tr(e,r=ZA(r,n,i,e,t[2],23,-995338651),n,i,t[0],6,-198630844),i=tr(i,e,r,n,t[7],10,1126891415),n=tr(n,i,e,r,t[14],15,-1416354905),r=tr(r,n,i,e,t[5],21,-57434055),e=tr(e,r,n,i,t[12],6,1700485571),i=tr(i,e,r,n,t[3],10,-1894986606),n=tr(n,i,e,r,t[10],15,-1051523),r=tr(r,n,i,e,t[1],21,-2054922799),e=tr(e,r,n,i,t[8],6,1873313359),i=tr(i,e,r,n,t[15],10,-30611744),n=tr(n,i,e,r,t[6],15,-1560198380),r=tr(r,n,i,e,t[13],21,1309151649),e=tr(e,r,n,i,t[4],6,-145523070),i=tr(i,e,r,n,t[11],10,-1120210379),n=tr(n,i,e,r,t[2],15,718787259),r=tr(r,n,i,e,t[9],21,-343485551),A[0]=Ni(e,A[0]),A[1]=Ni(r,A[1]),A[2]=Ni(n,A[2]),A[3]=Ni(i,A[3])}function rc(A,t,e,r,n,i){return t=Ni(Ni(t,A),Ni(r,i)),Ni(t<<n|t>>>32-n,e)}function YA(A,t,e,r,n,i,a){return rc(t&e|~t&r,A,t,n,i,a)}function JA(A,t,e,r,n,i,a){return rc(t&r|e&~r,A,t,n,i,a)}function ZA(A,t,e,r,n,i,a){return rc(t^e^r,A,t,n,i,a)}function tr(A,t,e,r,n,i,a){return rc(e^(t|~r),A,t,n,i,a)}function jw(A){var t,e=A.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A.length;t+=64)n1(r,FE(A.substring(t-64,t)));A=A.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<A.length;t++)n[t>>2]|=A.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(n1(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*e,n1(r,n),r}function FE(A){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=A.charCodeAt(t)+(A.charCodeAt(t+1)<<8)+(A.charCodeAt(t+2)<<16)+(A.charCodeAt(t+3)<<24);return e}eh=ie.atob.bind(ie),r1=ie.btoa.bind(ie);var Gw="0123456789abcdef".split("");function QE(A){for(var t="",e=0;e<4;e++)t+=Gw[A>>8*e+4&15]+Gw[A>>8*e&15];return t}function EE(A){return String.fromCharCode((255&A)>>0,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function i1(A){return jw(A).map(EE).join("")}var UE=function(A){for(var t=0;t<A.length;t++)A[t]=QE(A[t]);return A.join("")}(jw("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ni(A,t){if(UE){var e=(65535&A)+(65535&t);return(A>>16)+(t>>16)+(e>>16)<<16|65535&e}return A+t&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function a1(A,t){var e,r,n,i;if(A!==e){for(var a=(n=A,i=1+(256/A.length>>0),new Array(i+1).join(n)),s=[],o=0;o<256;o++)s[o]=o;var h=0;for(o=0;o<256;o++){var u=s[o];h=(h+u+a.charCodeAt(o))%256,s[o]=s[h],s[h]=u}e=A,r=s}else s=r;var d=t.length,f=0,l=0,p="";for(o=0;o<d;o++)l=(l+(u=s[f=(f+1)%256]))%256,s[f]=s[l],s[l]=u,a=s[(s[f]+s[l])%256],p+=String.fromCharCode(t.charCodeAt(o)^a);return p}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var Kw={print:4,modify:8,copy:16,"annot-forms":32};function fs(A,t,e,r){this.v=1,this.r=2;var n=192;A.forEach(function(s){if(Kw.perm!==void 0)throw new Error("Invalid permission: "+s);n+=Kw[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),a=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=i1(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=a1(this.encryptionKey,this.padding)}function gs(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);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?t+="#"+("0"+n.toString(16)).slice(-2):t+=A[r]}return t}function Vw(A){if(Le(A)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in t[e]){var a=t[e][i];try{a[0].apply(A,r)}catch(s){ie.console&&Ke.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function nc(A){if(!(this instanceof nc))return new nc(A);var t="opacity,stroke-opacity".split(",");for(var e in A)A.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=A[e]);this.id="",this.objectNumber=-1}function $w(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function Fa(A,t,e,r,n){if(!(this instanceof Fa))return new Fa(A,t,e,r,n);this.type=A==="axial"?2:3,this.coords=t,this.colors=e,$w.call(this,r,n)}function ps(A,t,e,r,n){if(!(this instanceof ps))return new ps(A,t,e,r,n);this.boundingBox=A,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,$w.call(this,r,n)}function ae(A){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,o=16,h="S",u=null;Le(A=A||{})==="object"&&(e=A.orientation,r=A.unit||r,n=A.format||n,i=A.compress||A.compressPdf||i,(u=A.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof A.userUnit=="number"?Math.abs(A.userUnit):1,A.precision!==void 0&&(t=A.precision),A.floatPrecision!==void 0&&(o=A.floatPrecision),h=A.defaultPathOperation||"S"),a=A.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",e=(""+(e||"P")).toLowerCase();var d=A.putOnlyUsedFonts||!1,f={},l={internal:{},__private__:{}};l.__private__.PubSub=Vw;var p="1.3",w=l.__private__.getPdfVersion=function(){return p};l.__private__.setPdfVersion=function(m){p=m};var y={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]};l.__private__.getPageFormats=function(){return y};var v=l.__private__.getPageFormat=function(m){return y[m]};n=n||"a4";var C={COMPAT:"compat",ADVANCED:"advanced"},x=C.COMPAT;function L(){this.saveGraphicsState(),z(new te(Ot,0,0,-Ot,0,ia()*Ot).toString()+" cm"),this.setFontSize(this.getFontSize()/Ot),h="n",x=C.ADVANCED}function k(){this.restoreGraphicsState(),h="S",x=C.COMPAT}var M=l.__private__.combineFontStyleAndFontWeight=function(m,E){if(m=="bold"&&E=="normal"||m=="bold"&&E==400||m=="normal"&&E=="italic"||m=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(m=E==400||E==="normal"?m==="italic"?"italic":"normal":E!=700&&E!=="bold"||m!=="normal"?(E==700?"bold":E)+""+m:"bold"),m};l.advancedAPI=function(m){var E=x===C.COMPAT;return E&&L.call(this),typeof m!="function"||(m(this),E&&k.call(this)),this},l.compatAPI=function(m){var E=x===C.ADVANCED;return E&&k.call(this),typeof m!="function"||(m(this),E&&L.call(this)),this},l.isAdvancedAPI=function(){return x===C.ADVANCED};var H,N=function(m){if(x!==C.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},V=l.roundToPrecision=l.__private__.roundToPrecision=function(m,E){var K=t||E;if(isNaN(m)||isNaN(K))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(K).replace(/0+$/,"")};H=l.hpf=l.__private__.hpf=typeof o=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return V(m,o)}:o==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return V(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return V(m,16)};var $=l.f2=l.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return V(m,2)},U=l.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return V(m,3)},S=l.scale=l.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return x===C.COMPAT?m*Ot:x===C.ADVANCED?m:void 0},O=function(m){return x===C.COMPAT?ia()-m:x===C.ADVANCED?m:void 0},D=function(m){return S(O(m))};l.__private__.setPrecision=l.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(t=parseInt(m,10))};var nt,Y="00000000000000000000000000000000",at=l.__private__.getFileId=function(){return Y},rt=l.__private__.setFileId=function(m){return Y=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():Y.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(ar=new fs(u.userPermissions,u.userPassword,u.ownerPassword,Y)),Y};l.setFileId=function(m){return rt(m),this},l.getFileId=function(){return at()};var ot=l.__private__.convertDateToPDFDate=function(m){var E=m.getTimezoneOffset(),K=E<0?"+":"-",J=Math.floor(Math.abs(E/60)),ut=Math.abs(E%60),Bt=[K,G(J),"'",G(ut),"'"].join("");return["D:",m.getFullYear(),G(m.getMonth()+1),G(m.getDate()),G(m.getHours()),G(m.getMinutes()),G(m.getSeconds()),Bt].join("")},At=l.__private__.convertPDFDateToDate=function(m){var E=parseInt(m.substr(2,4),10),K=parseInt(m.substr(6,2),10)-1,J=parseInt(m.substr(8,2),10),ut=parseInt(m.substr(10,2),10),Bt=parseInt(m.substr(12,2),10),Qt=parseInt(m.substr(14,2),10);return new Date(E,K,J,ut,Bt,Qt,0)},pt=l.__private__.setCreationDate=function(m){var E;if(m===void 0&&(m=new Date),m instanceof Date)E=ot(m);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(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=m}return nt=E},F=l.__private__.getCreationDate=function(m){var E=nt;return m==="jsDate"&&(E=At(nt)),E};l.setCreationDate=function(m){return pt(m),this},l.getCreationDate=function(m){return F(m)};var R,G=l.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},q=l.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},Z=0,ct=[],ft=[],gt=0,St=[],Ut=[],Ht=!1,Mt=ft,qt=function(){Z=0,gt=0,ft=[],ct=[],St=[],mr=nA(),BA=nA()};l.__private__.setCustomOutputDestination=function(m){Ht=!0,Mt=m};var mt=function(m){Ht||(Mt=m)};l.__private__.resetCustomOutputDestination=function(){Ht=!1,Mt=ft};var z=l.__private__.out=function(m){return m=m.toString(),gt+=m.length+1,Mt.push(m),Mt},Ae=l.__private__.write=function(m){return z(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},$t=l.__private__.getArrayBuffer=function(m){for(var E=m.length,K=new ArrayBuffer(E),J=new Uint8Array(K);E--;)J[E]=m.charCodeAt(E);return K},Ft=[["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]];l.__private__.getStandardFonts=function(){return Ft};var It=A.fontSize||16;l.__private__.setFontSize=l.setFontSize=function(m){return It=x===C.ADVANCED?m/Ot:m,this};var Tt,Pt=l.__private__.getFontSize=l.getFontSize=function(){return x===C.COMPAT?It:It*Ot},zt=A.R2L||!1;l.__private__.setR2L=l.setR2L=function(m){return zt=m,this},l.__private__.getR2L=l.getR2L=function(){return zt};var Xt,re=l.__private__.setZoomMode=function(m){var E=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Tt=m;else if(isNaN(m)){if(E.indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Tt=m}else Tt=parseInt(m,10)};l.__private__.getZoomMode=function(){return Tt};var se,we=l.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');Xt=m};l.__private__.getPageMode=function(){return Xt};var Fe=l.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');se=m};l.__private__.getLayoutMode=function(){return se},l.__private__.setDisplayMode=l.setDisplayMode=function(m,E,K){return re(m),Fe(E),we(K),this};var Zt={title:"",subject:"",author:"",keywords:"",creator:""};l.__private__.getDocumentProperty=function(m){if(Object.keys(Zt).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Zt[m]},l.__private__.getDocumentProperties=function(){return Zt},l.__private__.setDocumentProperties=l.setProperties=l.setDocumentProperties=function(m){for(var E in Zt)Zt.hasOwnProperty(E)&&m[E]&&(Zt[E]=m[E]);return this},l.__private__.setDocumentProperty=function(m,E){if(Object.keys(Zt).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Zt[m]=E};var oe,Ot,We,Be,tA,ye={},Ie={},HA=[],Ce={},QA={},Me={},WA={},fe=null,Oe=0,he=[],Ee=new Vw(l),yn=A.hotfixes||[],EA={},kr={},Xr=[],te=function m(E,K,J,ut,Bt,Qt){if(!(this instanceof m))return new m(E,K,J,ut,Bt,Qt);isNaN(E)&&(E=1),isNaN(K)&&(K=0),isNaN(J)&&(J=0),isNaN(ut)&&(ut=1),isNaN(Bt)&&(Bt=0),isNaN(Qt)&&(Qt=0),this._matrix=[E,K,J,ut,Bt,Qt]};Object.defineProperty(te.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(te.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(te.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(te.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(te.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(te.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(te.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(te.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(te.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(te.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(te.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(te.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(te.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(te.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(te.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(te.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),te.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(H).join(m)},te.prototype.multiply=function(m){var E=m.sx*this.sx+m.shy*this.shx,K=m.sx*this.shy+m.shy*this.sy,J=m.shx*this.sx+m.sy*this.shx,ut=m.shx*this.shy+m.sy*this.sy,Bt=m.tx*this.sx+m.ty*this.shx+this.tx,Qt=m.tx*this.shy+m.ty*this.sy+this.ty;return new te(E,K,J,ut,Bt,Qt)},te.prototype.decompose=function(){var m=this.sx,E=this.shy,K=this.shx,J=this.sy,ut=this.tx,Bt=this.ty,Qt=Math.sqrt(m*m+E*E),Gt=(m/=Qt)*K+(E/=Qt)*J;K-=m*Gt,J-=E*Gt;var ee=Math.sqrt(K*K+J*J);return Gt/=ee,m*(J/=ee)<E*(K/=ee)&&(m=-m,E=-E,Gt=-Gt,Qt=-Qt),{scale:new te(Qt,0,0,ee,0,0),translate:new te(1,0,0,1,ut,Bt),rotate:new te(m,E,-E,m,0,0),skew:new te(1,0,Gt,1,0,0)}},te.prototype.toString=function(m){return this.join(" ")},te.prototype.inversed=function(){var m=this.sx,E=this.shy,K=this.shx,J=this.sy,ut=this.tx,Bt=this.ty,Qt=1/(m*J-E*K),Gt=J*Qt,ee=-E*Qt,ge=-K*Qt,ve=m*Qt;return new te(Gt,ee,ge,ve,-Gt*ut-ge*Bt,-ee*ut-ve*Bt)},te.prototype.applyToPoint=function(m){var E=m.x*this.sx+m.y*this.shx+this.tx,K=m.x*this.shy+m.y*this.sy+this.ty;return new bo(E,K)},te.prototype.applyToRectangle=function(m){var E=this.applyToPoint(m),K=this.applyToPoint(new bo(m.x+m.w,m.y+m.h));return new gu(E.x,E.y,K.x-E.x,K.y-E.y)},te.prototype.clone=function(){var m=this.sx,E=this.shy,K=this.shx,J=this.sy,ut=this.tx,Bt=this.ty;return new te(m,E,K,J,ut,Bt)},l.Matrix=te;var pr=l.matrixMult=function(m,E){return E.multiply(m)},Yr=new te(1,0,0,1,0,0);l.unitMatrix=l.identityMatrix=Yr;var wA=function(m,E){if(!QA[m]){var K=(E instanceof Fa?"Sh":"P")+(Object.keys(Ce).length+1).toString(10);E.id=K,QA[m]=K,Ce[K]=E,Ee.publish("addPattern",E)}};l.ShadingPattern=Fa,l.TilingPattern=ps,l.addShadingPattern=function(m,E){return N("addShadingPattern()"),wA(m,E),this},l.beginTilingPattern=function(m){N("beginTilingPattern()"),qd(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},l.endTilingPattern=function(m,E){N("endTilingPattern()"),E.stream=Ut[R].join(`
`),wA(m,E),Ee.publish("endTilingPattern",E),Xr.pop().restore()};var rA=l.__private__.newObject=function(){var m=nA();return nr(m,!0),m},nA=l.__private__.newObjectDeferred=function(){return Z++,ct[Z]=function(){return gt},Z},nr=function(m,E){return E=typeof E=="boolean"&&E,ct[m]=gt,E&&z(m+" 0 obj"),m},ea=l.__private__.newAdditionalObject=function(){var m={objId:nA(),content:""};return St.push(m),m},mr=nA(),BA=nA(),Fr=l.__private__.decodeColorString=function(m){var E=m.split(" ");if(E.length!==2||E[1]!=="g"&&E[1]!=="G")E.length===5&&(E[4]==="k"||E[4]==="K")&&(E=[(1-E[0])*(1-E[3]),(1-E[1])*(1-E[3]),(1-E[2])*(1-E[3]),"r"]);else{var K=parseFloat(E[0]);E=[K,K,K,"r"]}for(var J="#",ut=0;ut<3;ut++)J+=("0"+Math.floor(255*parseFloat(E[ut])).toString(16)).slice(-2);return J},Qr=l.__private__.encodeColorString=function(m){var E;typeof m=="string"&&(m={ch1:m});var K=m.ch1,J=m.ch2,ut=m.ch3,Bt=m.ch4,Qt=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof K=="string"&&K.charAt(0)!=="#"){var Gt=new Rw(K);if(Gt.ok)K=Gt.toHex();else if(!/^\d*\.?\d*$/.test(K))throw new Error('Invalid color "'+K+'" passed to jsPDF.encodeColorString.')}if(typeof K=="string"&&/^#[0-9A-Fa-f]{3}$/.test(K)&&(K="#"+K[1]+K[1]+K[2]+K[2]+K[3]+K[3]),typeof K=="string"&&/^#[0-9A-Fa-f]{6}$/.test(K)){var ee=parseInt(K.substr(1),16);K=ee>>16&255,J=ee>>8&255,ut=255&ee}if(J===void 0||Bt===void 0&&K===J&&J===ut)if(typeof K=="string")E=K+" "+Qt[0];else switch(m.precision){case 2:E=$(K/255)+" "+Qt[0];break;case 3:default:E=U(K/255)+" "+Qt[0]}else if(Bt===void 0||Le(Bt)==="object"){if(Bt&&!isNaN(Bt.a)&&Bt.a===0)return E=["1.","1.","1.",Qt[1]].join(" ");if(typeof K=="string")E=[K,J,ut,Qt[1]].join(" ");else switch(m.precision){case 2:E=[$(K/255),$(J/255),$(ut/255),Qt[1]].join(" ");break;default:case 3:E=[U(K/255),U(J/255),U(ut/255),Qt[1]].join(" ")}}else if(typeof K=="string")E=[K,J,ut,Bt,Qt[2]].join(" ");else switch(m.precision){case 2:E=[$(K),$(J),$(ut),$(Bt),Qt[2]].join(" ");break;case 3:default:E=[U(K),U(J),U(ut),U(Bt),Qt[2]].join(" ")}return E},Hr=l.__private__.getFilters=function(){return a},wr=l.__private__.putStream=function(m){var E=(m=m||{}).data||"",K=m.filters||Hr(),J=m.alreadyAppliedFilters||[],ut=m.addLength1||!1,Bt=E.length,Qt=m.objectId,Gt=function(sr){return sr};if(u!==null&&Qt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(Gt=ar.encryptor(Qt,0));var ee={};K===!0&&(K=["FlateEncode"]);var ge=m.additionalKeyValues||[],ve=(ee=ae.API.processDataByFilters!==void 0?ae.API.processDataByFilters(E,K):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(J)?J.join(" "):J.toString());if(ee.data.length!==0&&(ge.push({key:"Length",value:ee.data.length}),ut===!0&&ge.push({key:"Length1",value:Bt})),ve.length!=0)if(ve.split("/").length-1==1)ge.push({key:"Filter",value:ve});else{ge.push({key:"Filter",value:"["+ve+"]"});for(var Qe=0;Qe<ge.length;Qe+=1)if(ge[Qe].key==="DecodeParms"){for(var aA=[],yA=0;yA<ee.reverseChain.split("/").length-1;yA+=1)aA.push("null");aA.push(ge[Qe].value),ge[Qe].value="["+aA.join(" ")+"]"}}z("<<");for(var UA=0;UA<ge.length;UA++)z("/"+ge[UA].key+" "+ge[UA].value);z(">>"),ee.data.length!==0&&(z("stream"),z(Gt(ee.data)),z("endstream"))},Jr=l.__private__.putPage=function(m){var E=m.number,K=m.data,J=m.objId,ut=m.contentsObjId;nr(J,!0),z("<</Type /Page"),z("/Parent "+m.rootDictionaryObjId+" 0 R"),z("/Resources "+m.resourceDictionaryObjId+" 0 R"),z("/MediaBox ["+parseFloat(H(m.mediaBox.bottomLeftX))+" "+parseFloat(H(m.mediaBox.bottomLeftY))+" "+H(m.mediaBox.topRightX)+" "+H(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&z("/CropBox ["+H(m.cropBox.bottomLeftX)+" "+H(m.cropBox.bottomLeftY)+" "+H(m.cropBox.topRightX)+" "+H(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&z("/BleedBox ["+H(m.bleedBox.bottomLeftX)+" "+H(m.bleedBox.bottomLeftY)+" "+H(m.bleedBox.topRightX)+" "+H(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&z("/TrimBox ["+H(m.trimBox.bottomLeftX)+" "+H(m.trimBox.bottomLeftY)+" "+H(m.trimBox.topRightX)+" "+H(m.trimBox.topRightY)+"]"),m.artBox!==null&&z("/ArtBox ["+H(m.artBox.bottomLeftX)+" "+H(m.artBox.bottomLeftY)+" "+H(m.artBox.topRightX)+" "+H(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&z("/UserUnit "+m.userUnit),Ee.publish("putPage",{objId:J,pageContext:he[E],pageNumber:E,page:K}),z("/Contents "+ut+" 0 R"),z(">>"),z("endobj");var Bt=K.join(`
`);return x===C.ADVANCED&&(Bt+=`
Q`),nr(ut,!0),wr({data:Bt,filters:Hr(),objectId:ut}),z("endobj"),J},X=l.__private__.putPages=function(){var m,E,K=[];for(m=1;m<=Oe;m++)he[m].objId=nA(),he[m].contentsObjId=nA();for(m=1;m<=Oe;m++)K.push(Jr({number:m,data:Ut[m],objId:he[m].objId,contentsObjId:he[m].contentsObjId,mediaBox:he[m].mediaBox,cropBox:he[m].cropBox,bleedBox:he[m].bleedBox,trimBox:he[m].trimBox,artBox:he[m].artBox,userUnit:he[m].userUnit,rootDictionaryObjId:mr,resourceDictionaryObjId:BA}));nr(mr,!0),z("<</Type /Pages");var J="/Kids [";for(E=0;E<Oe;E++)J+=K[E]+" 0 R ";z(J+"]"),z("/Count "+Oe),z(">>"),z("endobj"),Ee.publish("postPutPages")},Dt=function(m){Ee.publish("putFont",{font:m,out:z,newObject:rA,putStream:wr}),m.isAlreadyPutted!==!0&&(m.objectNumber=rA(),z("<<"),z("/Type /Font"),z("/BaseFont /"+gs(m.postScriptName)),z("/Subtype /Type1"),typeof m.encoding=="string"&&z("/Encoding /"+m.encoding),z("/FirstChar 32"),z("/LastChar 255"),z(">>"),z("endobj"))},Lt=function(){for(var m in ye)ye.hasOwnProperty(m)&&(d===!1||d===!0&&f.hasOwnProperty(m))&&Dt(ye[m])},be=function(m){m.objectNumber=rA();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[H(m.x),H(m.y),H(m.x+m.width),H(m.y+m.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var K=m.pages[1].join(`
`);wr({data:K,additionalKeyValues:E,objectId:m.objectNumber}),z("endobj")},Re=function(){for(var m in EA)EA.hasOwnProperty(m)&&be(EA[m])},DA=function(m,E){var K,J=[],ut=1/(E-1);for(K=0;K<1;K+=ut)J.push(K);if(J.push(1),m[0].offset!=0){var Bt={offset:0,color:m[0].color};m.unshift(Bt)}if(m[m.length-1].offset!=1){var Qt={offset:1,color:m[m.length-1].color};m.push(Qt)}for(var Gt="",ee=0,ge=0;ge<J.length;ge++){for(K=J[ge];K>m[ee+1].offset;)ee++;var ve=m[ee].offset,Qe=(K-ve)/(m[ee+1].offset-ve),aA=m[ee].color,yA=m[ee+1].color;Gt+=q(Math.round((1-Qe)*aA[0]+Qe*yA[0]).toString(16))+q(Math.round((1-Qe)*aA[1]+Qe*yA[1]).toString(16))+q(Math.round((1-Qe)*aA[2]+Qe*yA[2]).toString(16))}return Gt.trim()},iA=function(m,E){E||(E=21);var K=rA(),J=DA(m.colors,E),ut=[];ut.push({key:"FunctionType",value:"0"}),ut.push({key:"Domain",value:"[0.0 1.0]"}),ut.push({key:"Size",value:"["+E+"]"}),ut.push({key:"BitsPerSample",value:"8"}),ut.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ut.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),wr({data:J,additionalKeyValues:ut,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:K}),z("endobj"),m.objectNumber=rA(),z("<< /ShadingType "+m.type),z("/ColorSpace /DeviceRGB");var Bt="/Coords ["+H(parseFloat(m.coords[0]))+" "+H(parseFloat(m.coords[1]))+" ";m.type===2?Bt+=H(parseFloat(m.coords[2]))+" "+H(parseFloat(m.coords[3])):Bt+=H(parseFloat(m.coords[2]))+" "+H(parseFloat(m.coords[3]))+" "+H(parseFloat(m.coords[4]))+" "+H(parseFloat(m.coords[5])),z(Bt+="]"),m.matrix&&z("/Matrix ["+m.matrix.toString()+"]"),z("/Function "+K+" 0 R"),z("/Extend [true true]"),z(">>"),z("endobj")},gi=function(m,E){var K=nA(),J=rA();E.push({resourcesOid:K,objectOid:J}),m.objectNumber=J;var ut=[];ut.push({key:"Type",value:"/Pattern"}),ut.push({key:"PatternType",value:"1"}),ut.push({key:"PaintType",value:"1"}),ut.push({key:"TilingType",value:"1"}),ut.push({key:"BBox",value:"["+m.boundingBox.map(H).join(" ")+"]"}),ut.push({key:"XStep",value:H(m.xStep)}),ut.push({key:"YStep",value:H(m.yStep)}),ut.push({key:"Resources",value:K+" 0 R"}),m.matrix&&ut.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),wr({data:m.stream,additionalKeyValues:ut,objectId:m.objectNumber}),z("endobj")},ir=function(m){var E;for(E in Ce)Ce.hasOwnProperty(E)&&(Ce[E]instanceof Fa?iA(Ce[E]):Ce[E]instanceof ps&&gi(Ce[E],m))},NA=function(m){for(var E in m.objectNumber=rA(),z("<<"),m)switch(E){case"opacity":z("/ca "+$(m[E]));break;case"stroke-opacity":z("/CA "+$(m[E]))}z(">>"),z("endobj")},fo=function(){var m;for(m in Me)Me.hasOwnProperty(m)&&NA(Me[m])},iu=function(){for(var m in z("/XObject <<"),EA)EA.hasOwnProperty(m)&&EA[m].objectNumber>=0&&z("/"+m+" "+EA[m].objectNumber+" 0 R");Ee.publish("putXobjectDict"),z(">>")},G2=function(){ar.oid=rA(),z("<<"),z("/Filter /Standard"),z("/V "+ar.v),z("/R "+ar.r),z("/U <"+ar.toHexString(ar.U)+">"),z("/O <"+ar.toHexString(ar.O)+">"),z("/P "+ar.P),z(">>"),z("endobj")},Nd=function(){for(var m in z("/Font <<"),ye)ye.hasOwnProperty(m)&&(d===!1||d===!0&&f.hasOwnProperty(m))&&z("/"+m+" "+ye[m].objectNumber+" 0 R");z(">>")},K2=function(){if(Object.keys(Ce).length>0){for(var m in z("/Shading <<"),Ce)Ce.hasOwnProperty(m)&&Ce[m]instanceof Fa&&Ce[m].objectNumber>=0&&z("/"+m+" "+Ce[m].objectNumber+" 0 R");Ee.publish("putShadingPatternDict"),z(">>")}},go=function(m){if(Object.keys(Ce).length>0){for(var E in z("/Pattern <<"),Ce)Ce.hasOwnProperty(E)&&Ce[E]instanceof l.TilingPattern&&Ce[E].objectNumber>=0&&Ce[E].objectNumber<m&&z("/"+E+" "+Ce[E].objectNumber+" 0 R");Ee.publish("putTilingPatternDict"),z(">>")}},V2=function(){if(Object.keys(Me).length>0){var m;for(m in z("/ExtGState <<"),Me)Me.hasOwnProperty(m)&&Me[m].objectNumber>=0&&z("/"+m+" "+Me[m].objectNumber+" 0 R");Ee.publish("putGStateDict"),z(">>")}},vA=function(m){nr(m.resourcesOid,!0),z("<<"),z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Nd(),K2(),go(m.objectOid),V2(),iu(),z(">>"),z("endobj")},Pd=function(){var m=[];Lt(),fo(),Re(),ir(m),Ee.publish("putResources"),m.forEach(vA),vA({resourcesOid:BA,objectOid:Number.MAX_SAFE_INTEGER}),Ee.publish("postPutResources")},Td=function(){Ee.publish("putAdditionalObjects");for(var m=0;m<St.length;m++){var E=St[m];nr(E.objId,!0),z(E.content),z("endobj")}Ee.publish("postPutAdditionalObjects")},Md=function(m){Ie[m.fontName]=Ie[m.fontName]||{},Ie[m.fontName][m.fontStyle]=m.id},au=function(m,E,K,J,ut){var Bt={id:"F"+(Object.keys(ye).length+1).toString(10),postScriptName:m,fontName:E,fontStyle:K,encoding:J,isStandardFont:ut||!1,metadata:{}};return Ee.publish("addFont",{font:Bt,instance:this}),ye[Bt.id]=Bt,Md(Bt),Bt.id},$2=function(m){for(var E=0,K=Ft.length;E<K;E++){var J=au.call(this,m[E][0],m[E][1],m[E][2],Ft[E][3],!0);d===!1&&(f[J]=!0);var ut=m[E][0].split("-");Md({id:J,fontName:ut[0],fontStyle:ut[1]||""})}Ee.publish("addFonts",{fonts:ye,dictionary:Ie})},bn=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(J){var E=J.stack||"";~E.indexOf(" at ")&&(E=E.split(" at ")[1]);var K="Error in function "+E.split(`
`)[0].split("<")[0]+": "+J.message;if(!ie.console)throw new Error(K);ie.console.error(K,J),ie.alert&&alert(K)}},m.foo.bar=m,m.foo},po=function(m,E){var K,J,ut,Bt,Qt,Gt,ee,ge,ve;if(ut=(E=E||{}).sourceEncoding||"Unicode",Qt=E.outputEncoding,(E.autoencode||Qt)&&ye[oe].metadata&&ye[oe].metadata[ut]&&ye[oe].metadata[ut].encoding&&(Bt=ye[oe].metadata[ut].encoding,!Qt&&ye[oe].encoding&&(Qt=ye[oe].encoding),!Qt&&Bt.codePages&&(Qt=Bt.codePages[0]),typeof Qt=="string"&&(Qt=Bt[Qt]),Qt)){for(ee=!1,Gt=[],K=0,J=m.length;K<J;K++)(ge=Qt[m.charCodeAt(K)])?Gt.push(String.fromCharCode(ge)):Gt.push(m[K]),Gt[K].charCodeAt(0)>>8&&(ee=!0);m=Gt.join("")}for(K=m.length;ee===void 0&&K!==0;)m.charCodeAt(K-1)>>8&&(ee=!0),K--;if(!ee)return m;for(Gt=E.noBOM?[]:[254,255],K=0,J=m.length;K<J;K++){if((ve=(ge=m.charCodeAt(K))>>8)>>8)throw new Error("Character at position "+K+" of string '"+m+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Gt.push(ve),Gt.push(ge-(ve<<8))}return String.fromCharCode.apply(void 0,Gt)},Er=l.__private__.pdfEscape=l.pdfEscape=function(m,E){return po(m,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},su=l.__private__.beginPage=function(m){Ut[++Oe]=[],he[Oe]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},kd(Oe),mt(Ut[R])},Od=function(m,E){var K,J,ut;switch(e=E||e,typeof m=="string"&&(K=v(m.toLowerCase()),Array.isArray(K)&&(J=K[0],ut=K[1])),Array.isArray(m)&&(J=m[0]*Ot,ut=m[1]*Ot),isNaN(J)&&(J=n[0],ut=n[1]),(J>14400||ut>14400)&&(Ke.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),J=Math.min(14400,J),ut=Math.min(14400,ut)),n=[J,ut],e.substr(0,1)){case"l":ut>J&&(n=[ut,J]);break;case"p":J>ut&&(n=[ut,J])}su(n),Kd(cu),z(Cn),du!==0&&z(du+" J"),fu!==0&&z(fu+" j"),Ee.publish("addPage",{pageNumber:Oe})},z2=function(m){m>0&&m<=Oe&&(Ut.splice(m,1),he.splice(m,1),Oe--,R>Oe&&(R=Oe),this.setPage(R))},kd=function(m){m>0&&m<=Oe&&(R=m)},W2=l.__private__.getNumberOfPages=l.getNumberOfPages=function(){return Ut.length-1},Hd=function(m,E,K){var J,ut=void 0;return K=K||{},m=m!==void 0?m:ye[oe].fontName,E=E!==void 0?E:ye[oe].fontStyle,J=m.toLowerCase(),Ie[J]!==void 0&&Ie[J][E]!==void 0?ut=Ie[J][E]:Ie[m]!==void 0&&Ie[m][E]!==void 0?ut=Ie[m][E]:K.disableWarning===!1&&Ke.warn("Unable to look up font label for font '"+m+"', '"+E+"'. Refer to getFontList() for available fonts."),ut||K.noFallback||(ut=Ie.times[E])==null&&(ut=Ie.times.normal),ut},q2=l.__private__.putInfo=function(){var m=rA(),E=function(J){return J};for(var K in u!==null&&(E=ar.encryptor(m,0)),z("<<"),z("/Producer ("+Er(E("jsPDF "+ae.version))+")"),Zt)Zt.hasOwnProperty(K)&&Zt[K]&&z("/"+K.substr(0,1).toUpperCase()+K.substr(1)+" ("+Er(E(Zt[K]))+")");z("/CreationDate ("+Er(E(nt))+")"),z(">>"),z("endobj")},ou=l.__private__.putCatalog=function(m){var E=(m=m||{}).rootDictionaryObjId||mr;switch(rA(),z("<<"),z("/Type /Catalog"),z("/Pages "+E+" 0 R"),Tt||(Tt="fullwidth"),Tt){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 K=""+Tt;K.substr(K.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&z("/OpenAction [3 0 R /XYZ null null "+$(Tt)+"]")}switch(se||(se="continuous"),se){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")}Xt&&z("/PageMode /"+Xt),Ee.publish("putCatalog"),z(">>"),z("endobj")},X2=l.__private__.putTrailer=function(){z("trailer"),z("<<"),z("/Size "+(Z+1)),z("/Root "+Z+" 0 R"),z("/Info "+(Z-1)+" 0 R"),u!==null&&z("/Encrypt "+ar.oid+" 0 R"),z("/ID [ <"+Y+"> <"+Y+"> ]"),z(">>")},Y2=l.__private__.putHeader=function(){z("%PDF-"+p),z("%ºß¬à")},J2=l.__private__.putXRef=function(){var m="0000000000";z("xref"),z("0 "+(Z+1)),z("0000000000 65535 f ");for(var E=1;E<=Z;E++)typeof ct[E]=="function"?z((m+ct[E]()).slice(-10)+" 00000 n "):ct[E]!==void 0?z((m+ct[E]).slice(-10)+" 00000 n "):z("0000000000 00000 n ")},pi=l.__private__.buildDocument=function(){qt(),mt(ft),Ee.publish("buildDocument"),Y2(),X(),Td(),Pd(),u!==null&&G2(),q2(),ou();var m=gt;return J2(),X2(),z("startxref"),z(""+m),z("%%EOF"),mt(Ut[R]),ft.join(`
`)},mo=l.__private__.getBlob=function(m){return new Blob([$t(m)],{type:"application/pdf"})},wo=l.output=l.__private__.output=bn(function(m,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",m){case void 0:return pi();case"save":l.save(E.filename);break;case"arraybuffer":return $t(pi());case"blob":return mo(pi());case"bloburi":case"bloburl":if(ie.URL!==void 0&&typeof ie.URL.createObjectURL=="function")return ie.URL&&ie.URL.createObjectURL(mo(pi()))||void 0;Ke.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var K="",J=pi();try{K=r1(J)}catch{K=r1(unescape(encodeURIComponent(J)))}return"data:application/pdf;filename="+E.filename+";base64,"+K;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ie)==="[object Window]"){var ut="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Bt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';E.pdfObjectUrl&&(ut=E.pdfObjectUrl,Bt="");var Qt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ut+'"'+Bt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(E)+");<\/script></body></html>",Gt=ie.open();return Gt!==null&&Gt.document.write(Qt),Gt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ie)==="[object Window]"){var ee='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(E.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+E.filename+'" width="500px" height="400px" /></body></html>',ge=ie.open();if(ge!==null){ge.document.write(ee);var ve=this;ge.document.documentElement.querySelector("#pdfViewer").onload=function(){ge.document.title=E.filename,ge.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ve.output("bloburl"))}}return ge}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ie)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Qe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",E)+'"></iframe></body></html>',aA=ie.open();if(aA!==null&&(aA.document.write(Qe),aA.document.title=E.filename),aA||typeof safari>"u")return aA;break;case"datauri":case"dataurl":return ie.document.location.href=this.output("datauristring",E);default:return null}}),Dd=function(m){return Array.isArray(yn)===!0&&yn.indexOf(m)>-1};switch(r){case"pt":Ot=1;break;case"mm":Ot=72/25.4;break;case"cm":Ot=72/2.54;break;case"in":Ot=72;break;case"px":Ot=Dd("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ot=12;break;case"ex":Ot=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Ot=r}var ar=null;pt(),rt();var Z2=function(m){return u!==null?ar.encryptor(m,0):function(E){return E}},Rd=l.__private__.getPageInfo=l.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:he[m].objId,pageNumber:m,pageContext:he[m]}},ue=l.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var E in he)if(he[E].objId===m)break;return Rd(E)},tm=l.__private__.getCurrentPageInfo=l.getCurrentPageInfo=function(){return{objId:he[R].objId,pageNumber:R,pageContext:he[R]}};l.addPage=function(){return Od.apply(this,arguments),this},l.setPage=function(){return kd.apply(this,arguments),mt.call(this,Ut[R]),this},l.insertPage=function(m){return this.addPage(),this.movePage(R,m),this},l.movePage=function(m,E){var K,J;if(m>E){K=Ut[m],J=he[m];for(var ut=m;ut>E;ut--)Ut[ut]=Ut[ut-1],he[ut]=he[ut-1];Ut[E]=K,he[E]=J,this.setPage(E)}else if(m<E){K=Ut[m],J=he[m];for(var Bt=m;Bt<E;Bt++)Ut[Bt]=Ut[Bt+1],he[Bt]=he[Bt+1];Ut[E]=K,he[E]=J,this.setPage(E)}return this},l.deletePage=function(){return z2.apply(this,arguments),this},l.__private__.text=l.text=function(m,E,K,J,ut){var Bt,Qt,Gt,ee,ge,ve,Qe,aA,yA,UA=(J=J||{}).scope||this;if(typeof m=="number"&&typeof E=="number"&&(typeof K=="string"||Array.isArray(K))){var sr=K;K=E,E=m,m=sr}if(arguments[3]instanceof te?(N("The transform parameter of text() with a Matrix value"),yA=ut):(Gt=arguments[4],ee=arguments[5],Le(Qe=arguments[3])==="object"&&Qe!==null||(typeof Gt=="string"&&(ee=Gt,Gt=null),typeof Qe=="string"&&(ee=Qe,Qe=null),typeof Qe=="number"&&(Gt=Qe,Qe=null),J={flags:Qe,angle:Gt,align:ee})),isNaN(E)||isNaN(K)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return UA;var RA="",xn=!1,Zr=typeof J.lineHeightFactor=="number"?J.lineHeightFactor:Za,wi=UA.internal.scaleFactor;function Xd(qe){return qe=qe.split(" ").join(Array(J.TabLen||9).join(" ")),Er(qe,Qe)}function Bu(qe){for(var Xe,bA=qe.concat(),PA=[],bi=bA.length;bi--;)typeof(Xe=bA.shift())=="string"?PA.push(Xe):Array.isArray(qe)&&(Xe.length===1||Xe[1]===void 0&&Xe[2]===void 0)?PA.push(Xe[0]):PA.push([Xe[0],Xe[1],Xe[2]]);return PA}function vu(qe,Xe){var bA;if(typeof qe=="string")bA=Xe(qe)[0];else if(Array.isArray(qe)){for(var PA,bi,ua=qe.concat(),_o=[],Jd=ua.length;Jd--;)typeof(PA=ua.shift())=="string"?_o.push(Xe(PA)[0]):Array.isArray(PA)&&typeof PA[0]=="string"&&(bi=Xe(PA[0],PA[1],PA[2]),_o.push([bi[0],bi[1],bi[2]]));bA=_o}return bA}var xo=!1,yu=!0;if(typeof m=="string")xo=!0;else if(Array.isArray(m)){var bu=m.concat();Qt=[];for(var Fo,Ur=bu.length;Ur--;)(typeof(Fo=bu.shift())!="string"||Array.isArray(Fo)&&typeof Fo[0]!="string")&&(yu=!1);xo=yu}if(xo===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var Qo=It/UA.internal.scaleFactor,Eo=Qo*(Zr-1);switch(J.baseline){case"bottom":K-=Eo;break;case"top":K+=Qo-Eo;break;case"hanging":K+=Qo-2*Eo;break;case"middle":K+=Qo/2-Eo}if((ve=J.maxWidth||0)>0&&(typeof m=="string"?m=UA.splitTextToSize(m,ve):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(qe,Xe){return qe.concat(UA.splitTextToSize(Xe,ve))},[]))),Bt={text:m,x:E,y:K,options:J,mutex:{pdfEscape:Er,activeFontKey:oe,fonts:ye,activeFontSize:It}},Ee.publish("preProcessText",Bt),m=Bt.text,Gt=(J=Bt.options).angle,!(yA instanceof te)&&Gt&&typeof Gt=="number"){Gt*=Math.PI/180,J.rotationDirection===0&&(Gt=-Gt),x===C.ADVANCED&&(Gt=-Gt);var Uo=Math.cos(Gt),Cu=Math.sin(Gt);yA=new te(Uo,Cu,-Cu,Uo,0,0)}else Gt&&Gt instanceof te&&(yA=Gt);x!==C.ADVANCED||yA||(yA=Yr),(ge=J.charSpace||yo)!==void 0&&(RA+=H(S(ge))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(aA=J.horizontalScale)!==void 0&&(RA+=H(100*aA)+` Tz
`),J.lang;var Sr=-1,um=J.renderingMode!==void 0?J.renderingMode:J.stroke,xu=UA.internal.getCurrentPageInfo().pageContext;switch(um){case 0:case!1:case"fill":Sr=0;break;case 1:case!0:case"stroke":Sr=1;break;case 2:case"fillThenStroke":Sr=2;break;case 3:case"invisible":Sr=3;break;case 4:case"fillAndAddForClipping":Sr=4;break;case 5:case"strokeAndAddPathForClipping":Sr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Sr=6;break;case 7:case"addToPathForClipping":Sr=7}var Yd=xu.usedRenderingMode!==void 0?xu.usedRenderingMode:-1;Sr!==-1?RA+=Sr+` Tr
`:Yd!==-1&&(RA+=`0 Tr
`),Sr!==-1&&(xu.usedRenderingMode=Sr),ee=J.align||"left";var Fn,Fu=It*Zr,cm=UA.internal.pageSize.getWidth(),lm=ye[oe];ge=J.charSpace||yo,ve=J.maxWidth||0,Qe=Object.assign({autoencode:!0,noBOM:!0},J.flags);var aa=[];if(Object.prototype.toString.call(m)==="[object Array]"){var tn;Qt=Bu(m),ee!=="left"&&(Fn=Qt.map(function(qe){return UA.getStringUnitWidth(qe,{font:lm,charSpace:ge,fontSize:It,doKerning:!1})*It/wi}));var Qn,sa=0;if(ee==="right"){E-=Fn[0],m=[],Ur=Qt.length;for(var qn=0;qn<Ur;qn++)qn===0?(Qn=mi(E),tn=ra(K)):(Qn=S(sa-Fn[qn]),tn=-Fu),m.push([Qt[qn],Qn,tn]),sa=Fn[qn]}else if(ee==="center"){E-=Fn[0]/2,m=[],Ur=Qt.length;for(var Bi=0;Bi<Ur;Bi++)Bi===0?(Qn=mi(E),tn=ra(K)):(Qn=S((sa-Fn[Bi])/2),tn=-Fu),m.push([Qt[Bi],Qn,tn]),sa=Fn[Bi]}else if(ee==="left"){m=[],Ur=Qt.length;for(var So=0;So<Ur;So++)m.push(Qt[So])}else{if(ee!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');m=[],Ur=Qt.length,ve=ve!==0?ve:cm;for(var En=0;En<Ur;En++)tn=En===0?ra(K):-Fu,Qn=En===0?mi(E):0,En<Ur-1?aa.push(H(S((ve-Fn[En])/(Qt[En].split(" ").length-1)))):aa.push(0),m.push([Qt[En],Qn,tn])}}var Lo=typeof J.R2L=="boolean"?J.R2L:zt;Lo===!0&&(m=vu(m,function(qe,Xe,bA){return[qe.split("").reverse().join(""),Xe,bA]})),Bt={text:m,x:E,y:K,options:J,mutex:{pdfEscape:Er,activeFontKey:oe,fonts:ye,activeFontSize:It}},Ee.publish("postProcessText",Bt),m=Bt.text,xn=Bt.mutex.isHex||!1;var Qu=ye[oe].encoding;Qu!=="WinAnsiEncoding"&&Qu!=="StandardEncoding"||(m=vu(m,function(qe,Xe,bA){return[Xd(qe),Xe,bA]})),Qt=Bu(m),m=[];for(var oa,Un,vi,As=0,Io=1,rs=Array.isArray(Qt[0])?Io:As,ha="",Eu=function(qe,Xe,bA){var PA="";return bA instanceof te?(bA=typeof J.angle=="number"?pr(bA,new te(1,0,0,1,qe,Xe)):pr(new te(1,0,0,1,qe,Xe),bA),x===C.ADVANCED&&(bA=pr(new te(1,0,0,-1,0,0),bA)),PA=bA.join(" ")+` Tm
`):PA=H(qe)+" "+H(Xe)+` Td
`,PA},en=0;en<Qt.length;en++){switch(ha="",rs){case Io:vi=(xn?"<":"(")+Qt[en][0]+(xn?">":")"),oa=parseFloat(Qt[en][1]),Un=parseFloat(Qt[en][2]);break;case As:vi=(xn?"<":"(")+Qt[en]+(xn?">":")"),oa=mi(E),Un=ra(K)}aa!==void 0&&aa[en]!==void 0&&(ha=aa[en]+` Tw
`),en===0?m.push(ha+Eu(oa,Un,yA)+vi):rs===As?m.push(ha+vi):rs===Io&&m.push(ha+Eu(oa,Un,yA)+vi)}m=rs===As?m.join(` Tj
T* `):m.join(` Tj
`),m+=` Tj
`;var yi=`BT
/`;return yi+=oe+" "+It+` Tf
`,yi+=H(It*Zr)+` TL
`,yi+=ts+`
`,yi+=RA,yi+=m,z(yi+="ET"),f[oe]=!0,UA};var em=l.__private__.clip=l.clip=function(m){return z(m==="evenodd"?"W*":"W"),this};l.clipEvenOdd=function(){return em("evenodd")},l.__private__.discardPath=l.discardPath=function(){return z("n"),this};var Wn=l.__private__.isValidStyle=function(m){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(E=!0),E};l.__private__.setDefaultPathOperation=l.setDefaultPathOperation=function(m){return Wn(m)&&(h=m),this};var jd=l.__private__.getStyle=l.getStyle=function(m){var E=h;switch(m){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=m}return E},Gd=l.close=function(){return z("h"),this};l.stroke=function(){return z("S"),this},l.fill=function(m){return Bo("f",m),this},l.fillEvenOdd=function(m){return Bo("f*",m),this},l.fillStroke=function(m){return Bo("B",m),this},l.fillStrokeEvenOdd=function(m){return Bo("B*",m),this};var Bo=function(m,E){Le(E)==="object"?rm(E,m):z(m)},hu=function(m){m===null||x===C.ADVANCED&&m===void 0||(m=jd(m),z(m))};function Am(m,E,K,J,ut){var Bt=new ps(E||this.boundingBox,K||this.xStep,J||this.yStep,this.gState,ut||this.matrix);Bt.stream=this.stream;var Qt=m+"$$"+this.cloneIndex+++"$$";return wA(Qt,Bt),Bt}var rm=function(m,E){var K=QA[m.key],J=Ce[K];if(J instanceof Fa)z("q"),z(nm(E)),J.gState&&l.setGState(J.gState),z(m.matrix.toString()+" cm"),z("/"+K+" sh"),z("Q");else if(J instanceof ps){var ut=new te(1,0,0,-1,0,ia());m.matrix&&(ut=ut.multiply(m.matrix||Yr),K=Am.call(J,m.key,m.boundingBox,m.xStep,m.yStep,ut).id),z("q"),z("/Pattern cs"),z("/"+K+" scn"),J.gState&&l.setGState(J.gState),z(E),z("Q")}},nm=function(m){switch(m){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"}},uu=l.moveTo=function(m,E){return z(H(S(m))+" "+H(D(E))+" m"),this},Ja=l.lineTo=function(m,E){return z(H(S(m))+" "+H(D(E))+" l"),this},Aa=l.curveTo=function(m,E,K,J,ut,Bt){return z([H(S(m)),H(D(E)),H(S(K)),H(D(J)),H(S(ut)),H(D(Bt)),"c"].join(" ")),this};l.__private__.line=l.line=function(m,E,K,J,ut){if(isNaN(m)||isNaN(E)||isNaN(K)||isNaN(J)||!Wn(ut))throw new Error("Invalid arguments passed to jsPDF.line");return x===C.COMPAT?this.lines([[K-m,J-E]],m,E,[1,1],ut||"S"):this.lines([[K-m,J-E]],m,E,[1,1]).stroke()},l.__private__.lines=l.lines=function(m,E,K,J,ut,Bt){var Qt,Gt,ee,ge,ve,Qe,aA,yA,UA,sr,RA,xn;if(typeof m=="number"&&(xn=K,K=E,E=m,m=xn),J=J||[1,1],Bt=Bt||!1,isNaN(E)||isNaN(K)||!Array.isArray(m)||!Array.isArray(J)||!Wn(ut)||typeof Bt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(uu(E,K),Qt=J[0],Gt=J[1],ge=m.length,sr=E,RA=K,ee=0;ee<ge;ee++)(ve=m[ee]).length===2?(sr=ve[0]*Qt+sr,RA=ve[1]*Gt+RA,Ja(sr,RA)):(Qe=ve[0]*Qt+sr,aA=ve[1]*Gt+RA,yA=ve[2]*Qt+sr,UA=ve[3]*Gt+RA,sr=ve[4]*Qt+sr,RA=ve[5]*Gt+RA,Aa(Qe,aA,yA,UA,sr,RA));return Bt&&Gd(),hu(ut),this},l.path=function(m){for(var E=0;E<m.length;E++){var K=m[E],J=K.c;switch(K.op){case"m":uu(J[0],J[1]);break;case"l":Ja(J[0],J[1]);break;case"c":Aa.apply(this,J);break;case"h":Gd()}}return this},l.__private__.rect=l.rect=function(m,E,K,J,ut){if(isNaN(m)||isNaN(E)||isNaN(K)||isNaN(J)||!Wn(ut))throw new Error("Invalid arguments passed to jsPDF.rect");return x===C.COMPAT&&(J=-J),z([H(S(m)),H(D(E)),H(S(K)),H(S(J)),"re"].join(" ")),hu(ut),this},l.__private__.triangle=l.triangle=function(m,E,K,J,ut,Bt,Qt){if(isNaN(m)||isNaN(E)||isNaN(K)||isNaN(J)||isNaN(ut)||isNaN(Bt)||!Wn(Qt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[K-m,J-E],[ut-K,Bt-J],[m-ut,E-Bt]],m,E,[1,1],Qt,!0),this},l.__private__.roundedRect=l.roundedRect=function(m,E,K,J,ut,Bt,Qt){if(isNaN(m)||isNaN(E)||isNaN(K)||isNaN(J)||isNaN(ut)||isNaN(Bt)||!Wn(Qt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Gt=4/3*(Math.SQRT2-1);return ut=Math.min(ut,.5*K),Bt=Math.min(Bt,.5*J),this.lines([[K-2*ut,0],[ut*Gt,0,ut,Bt-Bt*Gt,ut,Bt],[0,J-2*Bt],[0,Bt*Gt,-ut*Gt,Bt,-ut,Bt],[2*ut-K,0],[-ut*Gt,0,-ut,-Bt*Gt,-ut,-Bt],[0,2*Bt-J],[0,-Bt*Gt,ut*Gt,-Bt,ut,-Bt]],m+ut,E,[1,1],Qt,!0),this},l.__private__.ellipse=l.ellipse=function(m,E,K,J,ut){if(isNaN(m)||isNaN(E)||isNaN(K)||isNaN(J)||!Wn(ut))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Bt=4/3*(Math.SQRT2-1)*K,Qt=4/3*(Math.SQRT2-1)*J;return uu(m+K,E),Aa(m+K,E-Qt,m+Bt,E-J,m,E-J),Aa(m-Bt,E-J,m-K,E-Qt,m-K,E),Aa(m-K,E+Qt,m-Bt,E+J,m,E+J),Aa(m+Bt,E+J,m+K,E+Qt,m+K,E),hu(ut),this},l.__private__.circle=l.circle=function(m,E,K,J){if(isNaN(m)||isNaN(E)||isNaN(K)||!Wn(J))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,E,K,K,J)},l.setFont=function(m,E,K){return K&&(E=M(E,K)),oe=Hd(m,E,{disableWarning:!1}),this};var im=l.__private__.getFont=l.getFont=function(){return ye[Hd.apply(l,arguments)]};l.__private__.getFontList=l.getFontList=function(){var m,E,K={};for(m in Ie)if(Ie.hasOwnProperty(m))for(E in K[m]=[],Ie[m])Ie[m].hasOwnProperty(E)&&K[m].push(E);return K},l.addFont=function(m,E,K,J,ut){var Bt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Bt.indexOf(arguments[3])!==-1?ut=arguments[3]:arguments[3]&&Bt.indexOf(arguments[3])==-1&&(K=M(K,J)),ut=ut||"Identity-H",au.call(this,m,E,K,ut)};var Za,cu=A.lineWidth||.200025,vo=l.__private__.getLineWidth=l.getLineWidth=function(){return cu},Kd=l.__private__.setLineWidth=l.setLineWidth=function(m){return cu=m,z(H(S(m))+" w"),this};l.__private__.setLineDash=ae.API.setLineDash=ae.API.setLineDashPattern=function(m,E){if(m=m||[],E=E||0,isNaN(E)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function(K){return H(S(K))}).join(" "),E=H(S(E)),z("["+m+"] "+E+" d"),this};var Vd=l.__private__.getLineHeight=l.getLineHeight=function(){return It*Za};l.__private__.getLineHeight=l.getLineHeight=function(){return It*Za};var $d=l.__private__.setLineHeightFactor=l.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(Za=m),this},zd=l.__private__.getLineHeightFactor=l.getLineHeightFactor=function(){return Za};$d(A.lineHeight);var mi=l.__private__.getHorizontalCoordinate=function(m){return S(m)},ra=l.__private__.getVerticalCoordinate=function(m){return x===C.ADVANCED?m:he[R].mediaBox.topRightY-he[R].mediaBox.bottomLeftY-S(m)},am=l.__private__.getHorizontalCoordinateString=l.getHorizontalCoordinateString=function(m){return H(mi(m))},na=l.__private__.getVerticalCoordinateString=l.getVerticalCoordinateString=function(m){return H(ra(m))},Cn=A.strokeColor||"0 G";l.__private__.getStrokeColor=l.getDrawColor=function(){return Fr(Cn)},l.__private__.setStrokeColor=l.setDrawColor=function(m,E,K,J){return Cn=Qr({ch1:m,ch2:E,ch3:K,ch4:J,pdfColorType:"draw",precision:2}),z(Cn),this};var lu=A.fillColor||"0 g";l.__private__.getFillColor=l.getFillColor=function(){return Fr(lu)},l.__private__.setFillColor=l.setFillColor=function(m,E,K,J){return lu=Qr({ch1:m,ch2:E,ch3:K,ch4:J,pdfColorType:"fill",precision:2}),z(lu),this};var ts=A.textColor||"0 g",sm=l.__private__.getTextColor=l.getTextColor=function(){return Fr(ts)};l.__private__.setTextColor=l.setTextColor=function(m,E,K,J){return ts=Qr({ch1:m,ch2:E,ch3:K,ch4:J,pdfColorType:"text",precision:3}),this};var yo=A.charSpace,om=l.__private__.getCharSpace=l.getCharSpace=function(){return parseFloat(yo||0)};l.__private__.setCharSpace=l.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return yo=m,this};var du=0;l.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},l.__private__.setLineCap=l.setLineCap=function(m){var E=l.CapJoinStyles[m];if(E===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return du=E,z(E+" J"),this};var fu=0;l.__private__.setLineJoin=l.setLineJoin=function(m){var E=l.CapJoinStyles[m];if(E===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fu=E,z(E+" j"),this},l.__private__.setLineMiterLimit=l.__private__.setMiterLimit=l.setLineMiterLimit=l.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return z(H(S(m))+" M"),this},l.GState=nc,l.setGState=function(m){(m=typeof m=="string"?Me[WA[m]]:Wd(null,m)).equals(fe)||(z("/"+m.id+" gs"),fe=m)};var Wd=function(m,E){if(!m||!WA[m]){var K=!1;for(var J in Me)if(Me.hasOwnProperty(J)&&Me[J].equals(E)){K=!0;break}if(K)E=Me[J];else{var ut="GS"+(Object.keys(Me).length+1).toString(10);Me[ut]=E,E.id=ut}return m&&(WA[m]=E.id),Ee.publish("addGState",E),E}};l.addGState=function(m,E){return Wd(m,E),this},l.saveGraphicsState=function(){return z("q"),HA.push({key:oe,size:It,color:ts}),this},l.restoreGraphicsState=function(){z("Q");var m=HA.pop();return oe=m.key,It=m.size,ts=m.color,fe=null,this},l.setCurrentTransformationMatrix=function(m){return z(m.toString()+" cm"),this},l.comment=function(m){return z("#"+m),this};var bo=function(m,E){var K=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return K},set:function(Bt){isNaN(Bt)||(K=parseFloat(Bt))}});var J=E||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return J},set:function(Bt){isNaN(Bt)||(J=parseFloat(Bt))}});var ut="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ut},set:function(Bt){ut=Bt.toString()}}),this},gu=function(m,E,K,J){bo.call(this,m,E),this.type="rect";var ut=K||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ut},set:function(Qt){isNaN(Qt)||(ut=parseFloat(Qt))}});var Bt=J||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Bt},set:function(Qt){isNaN(Qt)||(Bt=parseFloat(Qt))}}),this},pu=function(){this.page=Oe,this.currentPage=R,this.pages=Ut.slice(0),this.pagesContext=he.slice(0),this.x=We,this.y=Be,this.matrix=tA,this.width=es(R),this.height=ia(R),this.outputDestination=Mt,this.id="",this.objectNumber=-1};pu.prototype.restore=function(){Oe=this.page,R=this.currentPage,he=this.pagesContext,Ut=this.pages,We=this.x,Be=this.y,tA=this.matrix,mu(R,this.width),wu(R,this.height),Mt=this.outputDestination};var qd=function(m,E,K,J,ut){Xr.push(new pu),Oe=R=0,Ut=[],We=m,Be=E,tA=ut,su([K,J])},hm=function(m){if(kr[m])Xr.pop().restore();else{var E=new pu,K="Xo"+(Object.keys(EA).length+1).toString(10);E.id=K,kr[m]=K,EA[K]=E,Ee.publish("addFormObject",E),Xr.pop().restore()}};for(var Co in l.beginFormObject=function(m,E,K,J,ut){return qd(m,E,K,J,ut),this},l.endFormObject=function(m){return hm(m),this},l.doFormObject=function(m,E){var K=EA[kr[m]];return z("q"),z(E.toString()+" cm"),z("/"+K.id+" Do"),z("Q"),this},l.getFormObject=function(m){var E=EA[kr[m]];return{x:E.x,y:E.y,width:E.width,height:E.height,matrix:E.matrix}},l.save=function(m,E){return m=m||"generated.pdf",(E=E||{}).returnPromise=E.returnPromise||!1,E.returnPromise===!1?(xa(mo(pi()),m),typeof xa.unload=="function"&&ie.setTimeout&&setTimeout(xa.unload,911),this):new Promise(function(K,J){try{var ut=xa(mo(pi()),m);typeof xa.unload=="function"&&ie.setTimeout&&setTimeout(xa.unload,911),K(ut)}catch(Bt){J(Bt.message)}})},ae.API)ae.API.hasOwnProperty(Co)&&(Co==="events"&&ae.API.events.length?function(m,E){var K,J,ut;for(ut=E.length-1;ut!==-1;ut--)K=E[ut][0],J=E[ut][1],m.subscribe.apply(m,[K].concat(typeof J=="function"?[J]:J))}(Ee,ae.API.events):l[Co]=ae.API[Co]);var es=l.getPageWidth=function(m){return(he[m=m||R].mediaBox.topRightX-he[m].mediaBox.bottomLeftX)/Ot},mu=l.setPageWidth=function(m,E){he[m].mediaBox.topRightX=E*Ot+he[m].mediaBox.bottomLeftX},ia=l.getPageHeight=function(m){return(he[m=m||R].mediaBox.topRightY-he[m].mediaBox.bottomLeftY)/Ot},wu=l.setPageHeight=function(m,E){he[m].mediaBox.topRightY=E*Ot+he[m].mediaBox.bottomLeftY};return l.internal={pdfEscape:Er,getStyle:jd,getFont:im,getFontSize:Pt,getCharSpace:om,getTextColor:sm,getLineHeight:Vd,getLineHeightFactor:zd,getLineWidth:vo,write:Ae,getHorizontalCoordinate:mi,getVerticalCoordinate:ra,getCoordinateString:am,getVerticalCoordinateString:na,collections:{},newObject:rA,newAdditionalObject:ea,newObjectDeferred:nA,newObjectDeferredBegin:nr,getFilters:Hr,putStream:wr,events:Ee,scaleFactor:Ot,pageSize:{getWidth:function(){return es(R)},setWidth:function(m){mu(R,m)},getHeight:function(){return ia(R)},setHeight:function(m){wu(R,m)}},encryptionOptions:u,encryption:ar,getEncryptor:Z2,output:wo,getNumberOfPages:W2,pages:Ut,out:z,f2:$,f3:U,getPageInfo:Rd,getPageInfoByObjId:ue,getCurrentPageInfo:tm,getPDFVersion:w,Point:bo,Rectangle:gu,Matrix:te,hasHotfix:Dd},Object.defineProperty(l.internal.pageSize,"width",{get:function(){return es(R)},set:function(m){mu(R,m)},enumerable:!0,configurable:!0}),Object.defineProperty(l.internal.pageSize,"height",{get:function(){return ia(R)},set:function(m){wu(R,m)},enumerable:!0,configurable:!0}),$2.call(l,Ft),oe="F1",Od(n,e),Ee.publish("initialized"),l}fs.prototype.lsbFirstWord=function(A){return String.fromCharCode(A>>0&255,A>>8&255,A>>16&255,A>>24&255)},fs.prototype.toHexString=function(A){return A.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},fs.prototype.hexToBytes=function(A){for(var t=[],e=0;e<A.length;e+=2)t.push(String.fromCharCode(parseInt(A.substr(e,2),16)));return t.join("")},fs.prototype.processOwnerPassword=function(A,t){return a1(i1(t).substr(0,5),A)},fs.prototype.encryptor=function(A,t){var e=i1(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return a1(e,r)}},nc.prototype.equals=function(A){var t,e="id,objectNumber,equals";if(!A||Le(A)!==Le(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t)||this[t]!==A[t])return!1;r++}for(t in A)A.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return r===0},ae.API={events:[]},ae.version="2.5.1";var sA=ae.API,s1=1,Qa=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ms=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ce=function(A){return A.toFixed(2)},Pi=function(A){return A.toFixed(5)};sA.__acroform__={};var vr=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},zw=function(A){return A*s1},Tn=function(A){var t=new qw,e=Yt.internal.getHeight(A)||0,r=Yt.internal.getWidth(A)||0;return t.BBox=[0,0,Number(ce(r)),Number(ce(e))],t},SE=sA.__acroform__.setBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|=1<<t},LE=sA.__acroform__.clearBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&=~(1<<t)},IE=sA.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<t?1:0},cA=sA.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return IE(A,t-1)},lA=sA.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return SE(A,t-1)},dA=sA.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return LE(A,t-1)},_E=sA.__acroform__.calculateCoordinates=function(A,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=A[0],i=A[1],a=A[2],s=A[3],o={};return o.lowerLeft_X=e(n)||0,o.lowerLeft_Y=r(i+s)||0,o.upperRight_X=e(n+a)||0,o.upperRight_Y=r(i)||0,[Number(ce(o.lowerLeft_X)),Number(ce(o.lowerLeft_Y)),Number(ce(o.upperRight_X)),Number(ce(o.upperRight_Y))]},NE=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=A._V||A.DV,r=o1(A,e),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+n+" "+ce(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Tn(A);return i.scope=A.scope,i.stream=t.join(`
`),i}},o1=function(A,t){var e=A.fontSize===0?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");n=A.multiline?n.map(function(U){return U.split(`
`)}):n.map(function(U){return[U]});var i=e,a=Yt.internal.getHeight(A)||0;a=a<0?-a:a;var s=Yt.internal.getWidth(A)||0;s=s<0?-s:s;var o=function(U,S,O){if(U+1<n.length){var D=S+" "+n[U+1][0];return ic(D,A,O).width<=s-4}return!1};i++;t:for(;i>0;){t="",i--;var h,u,d=ic("3",A,i).height,f=A.multiline?a-i:(a-d)/2,l=f+=2,p=0,w=0,y=0;if(i<=0){t=`(...) Tj
`,t+="% Width of Text: "+ic(t,A,i=12).width+", FieldWidth:"+s+`
`;break}for(var v="",C=0,x=0;x<n.length;x++)if(n.hasOwnProperty(x)){var L=!1;if(n[x].length!==1&&y!==n[x].length-1){if((d+2)*(C+2)+2>a)continue t;v+=n[x][y],L=!0,w=x,x--}else{v=(v+=n[x][y]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var k=parseInt(x),M=o(k,v,i),H=x>=n.length-1;if(M&&!H){v+=" ",y=0;continue}if(M||H){if(H)w=k;else if(A.multiline&&(d+2)*(C+2)+2>a)continue t}else{if(!A.multiline||(d+2)*(C+2)+2>a)continue t;w=k}}for(var N="",V=p;V<=w;V++){var $=n[V];if(A.multiline){if(V===w){N+=$[y]+" ",y=(y+1)%$.length;continue}if(V===p){N+=$[$.length-1]+" ";continue}}N+=$[0]+" "}switch(N=N.substr(N.length-1)==" "?N.substr(0,N.length-1):N,u=ic(N,A,i).width,A.textAlign){case"right":h=s-u-2;break;case"center":h=(s-u)/2;break;case"left":default:h=2}t+=ce(h)+" "+ce(l)+` Td
`,t+="("+Qa(N)+`) Tj
`,t+=-ce(h)+` 0 Td
`,l=-(i+2),u=0,p=L?w:w+1,C++,v=""}break}return r.text=t,r.fontSize=i,r},ic=function(A,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},PE={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},TE=function(A,t){var e={type:"reference",object:A};t.internal.getPageInfo(A.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&t.internal.getPageInfo(A.page).pageContext.annotations.push(e)},ME=function(A,t){for(var e in A)if(A.hasOwnProperty(e)){var r=e,n=A[e];t.internal.newObjectDeferredBegin(n.objId,!0),Le(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete A[r]}},OE=function(A,t){if(t.scope=A,A.internal!==void 0&&(A.internal.acroformPlugin===void 0||A.internal.acroformPlugin.isInitialized===!1)){if(hn.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(PE)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");s1=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new Xw,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(A)}),A.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&TE(i,e)}})(A)}),A.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(A)}),A.internal.events.subscribe("postPutPages",function(e){(function(r,n){var i=!r;for(var a in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(a)){var s=r[a],o=[],h=s.Rect;if(s.Rect&&(s.Rect=_E(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Yt.createDefaultAppearanceStream(s),Le(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=h,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=NE(s);o.push({key:"AP",value:"<</N "+u+">>"}),n.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var d="";for(var f in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(f)){var l=s.appearanceStreamContent[f];if(d+="/"+f+" ",d+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var a in l)if(l.hasOwnProperty(a)){var p=l[a];typeof p=="function"&&(p=p.call(n,s)),d+="/"+a+" "+p+" ",n.internal.acroformPlugin.xForms.indexOf(p)>=0||n.internal.acroformPlugin.xForms.push(p)}}else typeof(p=l)=="function"&&(p=p.call(n,s)),d+="/"+a+" "+p,n.internal.acroformPlugin.xForms.indexOf(p)>=0||n.internal.acroformPlugin.xForms.push(p);d+=">>"}o.push({key:"AP",value:`<<
`+d+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:s.objId}),n.internal.out("endobj")}i&&ME(n.internal.acroformPlugin.xForms,n)})(e,A)}),A.internal.acroformPlugin.isInitialized=!0}},Ww=sA.__acroform__.arrayToPdfArray=function(A,t,e){var r=function(a){return a};if(Array.isArray(A)){for(var n="[",i=0;i<A.length;i++)switch(i!==0&&(n+=" "),Le(A[i])){case"boolean":case"number":case"object":n+=A[i].toString();break;case"string":A[i].substr(0,1)!=="/"?(t!==void 0&&e&&(r=e.internal.getEncryptor(t)),n+="("+Qa(r(A[i].toString()))+")"):n+=A[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},h1=function(A,t,e){var r=function(n){return n};return t!==void 0&&e&&(r=e.internal.getEncryptor(t)),(A=A||"").toString(),A="("+Qa(r(A))+")"},Mn=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(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Mn.prototype.toString=function(){return this.objId+" 0 R"},Mn.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},Mn.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var r=t[e],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:Ww(n,this.objId,this.scope)}):n instanceof Mn?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&A.push({key:r,value:n}))}return A};var qw=function(){Mn.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){A=e.trim()},get:function(){return A||null}})};vr(qw,Mn);var Xw=function(){Mn.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Qa(e(A))+")"}},set:function(e){A=e}})};vr(Xw,Mn);var hn=function A(){Mn.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');t=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!cA(t,3)},set:function(v){v?this.F=lA(t,3):this.F=dA(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');e=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=v;break;default:throw new Error('Invalid value "'+v+'" 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 oc)return;i="FieldObject"+A.FieldNum++}var v=function(C){return C};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Qa(v(i))+")"},set:function(v){i=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(v){i=v}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/s1:h},set:function(v){h=v}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(v){u=v}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof oc||this instanceof Ea))return h1(d,this.objId,this.scope)},set:function(v){v=v.toString(),d=v}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof TA?f:h1(f,this.objId,this.scope)},set:function(v){v=v.toString(),f=this instanceof TA?v:v.substr(0,1)==="("?ms(v.substr(1,v.length-2)):ms(v)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof TA?ms(f.substr(1,f.length-1)):f},set:function(v){v=v.toString(),f=this instanceof TA?"/"+v:v}});var l=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(l)return l},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(l)return this instanceof TA?l:h1(l,this.objId,this.scope)},set:function(v){v=v.toString(),l=this instanceof TA?v:v.substr(0,1)==="("?ms(v.substr(1,v.length-2)):ms(v)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof TA?ms(l.substr(1,l.length-1)):l},set:function(v){v=v.toString(),l=this instanceof TA?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return w},set:function(v){v=!!v,w=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(v){p=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,1)},set:function(v){v?this.Ff=lA(this.Ff,1):this.Ff=dA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,2)},set:function(v){v?this.Ff=lA(this.Ff,2):this.Ff=dA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,3)},set:function(v){v?this.Ff=lA(this.Ff,3):this.Ff=dA(this.Ff,3)}});var y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');y=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(y){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:y=2;break;case"center":case 1:y=1;break;case"left":case 0:default:y=0}}})};vr(hn,Mn);var ws=function(){hn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){A=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ww(t,this.objId,this.scope)},set:function(e){var r,n;n=[],typeof(r=e)=="string"&&(n=function(i,a,s){s||(s=1);for(var o,h=[];o=a.exec(i);)h.push(o[s]);return h}(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,18)},set:function(e){e?this.Ff=lA(this.Ff,18):this.Ff=dA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=lA(this.Ff,19):this.Ff=dA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,20)},set:function(e){e?(this.Ff=lA(this.Ff,20),t.sort()):this.Ff=dA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,22)},set:function(e){e?this.Ff=lA(this.Ff,22):this.Ff=dA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,23)},set:function(e){e?this.Ff=lA(this.Ff,23):this.Ff=dA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,27)},set:function(e){e?this.Ff=lA(this.Ff,27):this.Ff=dA(this.Ff,27)}}),this.hasAppearanceStream=!1};vr(ws,hn);var Bs=function(){ws.call(this),this.fontName="helvetica",this.combo=!1};vr(Bs,ws);var vs=function(){Bs.call(this),this.combo=!0};vr(vs,Bs);var ac=function(){vs.call(this),this.edit=!0};vr(ac,vs);var TA=function(){hn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,15)},set:function(e){e?this.Ff=lA(this.Ff,15):this.Ff=dA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,16)},set:function(e){e?this.Ff=lA(this.Ff,16):this.Ff=dA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,17)},set:function(e){e?this.Ff=lA(this.Ff,17):this.Ff=dA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,26)},set:function(e){e?this.Ff=lA(this.Ff,26):this.Ff=dA(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+Qa(e(t[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(e){Le(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(e){A="/"+e}})};vr(TA,hn);var sc=function(){TA.call(this),this.pushButton=!0};vr(sc,TA);var ys=function(){TA.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t!==void 0?t:[]}})};vr(ys,TA);var oc=function(){var A,t;hn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(n){A=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+Qa(n(r[i]))+")");return a.push(">>"),a.join(`
`)},set:function(n){Le(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Yt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vr(oc,hn),ys.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e.optionName),e.caption=A.getCA()}},ys.prototype.createOption=function(A){var t=new oc;return t.Parent=this,t.optionName=A,this.Kids.push(t),kE.call(this.scope,t),t};var hc=function(){TA.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Yt.CheckBox.createAppearanceStream()};vr(hc,TA);var Ea=function(){hn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,13)},set:function(t){t?this.Ff=lA(this.Ff,13):this.Ff=dA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,21)},set:function(t){t?this.Ff=lA(this.Ff,21):this.Ff=dA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,23)},set:function(t){t?this.Ff=lA(this.Ff,23):this.Ff=dA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,24)},set:function(t){t?this.Ff=lA(this.Ff,24):this.Ff=dA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,25)},set:function(t){t?this.Ff=lA(this.Ff,25):this.Ff=dA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,26)},set:function(t){t?this.Ff=lA(this.Ff,26):this.Ff=dA(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};vr(Ea,hn);var uc=function(){Ea.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!cA(this.Ff,14)},set:function(A){A?this.Ff=lA(this.Ff,14):this.Ff=dA(this.Ff,14)}}),this.password=!0};vr(uc,Ea);var Yt={CheckBox:{createAppearanceStream:function(){return{N:{On:Yt.CheckBox.YesNormal},D:{On:Yt.CheckBox.YesPushDown,Off:Yt.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=Tn(A);t.scope=A.scope;var e=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=o1(A,A.caption);return e.push("0.749023 g"),e.push("0 0 "+ce(Yt.internal.getWidth(A))+" "+ce(Yt.internal.getHeight(A))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+ce(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
`),t},YesNormal:function(A){var t=Tn(A);t.scope=A.scope;var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=Yt.internal.getHeight(A),a=Yt.internal.getWidth(A),s=o1(A,A.caption);return n.push("1 g"),n.push("0 0 "+ce(a)+" "+ce(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ce(a-1)+" "+ce(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+ce(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(A){var t=Tn(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ce(Yt.internal.getWidth(A))+" "+ce(Yt.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:Yt.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=Yt.RadioButton.Circle.YesNormal,t.D[A]=Yt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=Tn(A);t.scope=A.scope;var e=[],r=Yt.internal.getWidth(A)<=Yt.internal.getHeight(A)?Yt.internal.getWidth(A)/4:Yt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Yt.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Pi(Yt.internal.getWidth(A)/2)+" "+Pi(Yt.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
`),t},YesPushDown:function(A){var t=Tn(A);t.scope=A.scope;var e=[],r=Yt.internal.getWidth(A)<=Yt.internal.getHeight(A)?Yt.internal.getWidth(A)/4:Yt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*Yt.internal.Bezier_C).toFixed(5)),a=Number((r*Yt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Pi(Yt.internal.getWidth(A)/2)+" "+Pi(Yt.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Pi(Yt.internal.getWidth(A)/2)+" "+Pi(Yt.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),e.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),e.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),e.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
`),t},OffPushDown:function(A){var t=Tn(A);t.scope=A.scope;var e=[],r=Yt.internal.getWidth(A)<=Yt.internal.getHeight(A)?Yt.internal.getWidth(A)/4:Yt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*Yt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Pi(Yt.internal.getWidth(A)/2)+" "+Pi(Yt.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
`),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:Yt.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=Yt.RadioButton.Cross.YesNormal,t.D[A]=Yt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=Tn(A);t.scope=A.scope;var e=[],r=Yt.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+ce(Yt.internal.getWidth(A)-2)+" "+ce(Yt.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(ce(r.x1.x)+" "+ce(r.x1.y)+" m"),e.push(ce(r.x2.x)+" "+ce(r.x2.y)+" l"),e.push(ce(r.x4.x)+" "+ce(r.x4.y)+" m"),e.push(ce(r.x3.x)+" "+ce(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
`),t},YesPushDown:function(A){var t=Tn(A);t.scope=A.scope;var e=Yt.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+ce(Yt.internal.getWidth(A))+" "+ce(Yt.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ce(Yt.internal.getWidth(A)-2)+" "+ce(Yt.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(ce(e.x1.x)+" "+ce(e.x1.y)+" m"),r.push(ce(e.x2.x)+" "+ce(e.x2.y)+" l"),r.push(ce(e.x4.x)+" "+ce(e.x4.y)+" m"),r.push(ce(e.x3.x)+" "+ce(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(A){var t=Tn(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+ce(Yt.internal.getWidth(A))+" "+ce(Yt.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join(`
`),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+e}};Yt.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=Yt.internal.getWidth(A),e=Yt.internal.getHeight(A),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},Yt.internal.getWidth=function(A){var t=0;return Le(A)==="object"&&(t=zw(A.Rect[2])),t},Yt.internal.getHeight=function(A){var t=0;return Le(A)==="object"&&(t=zw(A.Rect[3])),t};var kE=sA.addField=function(A){if(OE(this,A),!(A instanceof hn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};sA.AcroFormChoiceField=ws,sA.AcroFormListBox=Bs,sA.AcroFormComboBox=vs,sA.AcroFormEditBox=ac,sA.AcroFormButton=TA,sA.AcroFormPushButton=sc,sA.AcroFormRadioButton=ys,sA.AcroFormCheckBox=hc,sA.AcroFormTextField=Ea,sA.AcroFormPasswordField=uc,sA.AcroFormAppearance=Yt,sA.AcroForm={ChoiceField:ws,ListBox:Bs,ComboBox:vs,EditBox:ac,Button:TA,PushButton:sc,RadioButton:ys,CheckBox:hc,TextField:Ea,PasswordField:uc,Appearance:Yt},ae.AcroForm={ChoiceField:ws,ListBox:Bs,ComboBox:vs,EditBox:ac,Button:TA,PushButton:sc,RadioButton:ys,CheckBox:hc,TextField:Ea,PasswordField:uc,Appearance:Yt};function Yw(A){return A.reduce(function(t,e,r){return t[e]=r,t},{})}(function(A){A.__addimage__={};var t="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=A.__addimage__.getImageFileTypeByImageData=function(U,S){var O,D,nt,Y,at,rt=t;if((S=S||t)==="RGBA"||U.data!==void 0&&U.data instanceof Uint8ClampedArray&&"height"in U&&"width"in U)return"RGBA";if(M(U))for(at in e)for(nt=e[at],O=0;O<nt.length;O+=1){for(Y=!0,D=0;D<nt[O].length;D+=1)if(nt[O][D]!==void 0&&nt[O][D]!==U[D]){Y=!1;break}if(Y===!0){rt=at;break}}else for(at in e)for(nt=e[at],O=0;O<nt.length;O+=1){for(Y=!0,D=0;D<nt[O].length;D+=1)if(nt[O][D]!==void 0&&nt[O][D]!==U.charCodeAt(D)){Y=!1;break}if(Y===!0){rt=at;break}}return rt===t&&S!==t&&(rt=S),rt},n=function U(S){for(var O=this.internal.write,D=this.internal.putStream,nt=(0,this.internal.getFilters)();nt.indexOf("FlateEncode")!==-1;)nt.splice(nt.indexOf("FlateEncode"),1);S.objectId=this.internal.newObject();var Y=[];if(Y.push({key:"Type",value:"/XObject"}),Y.push({key:"Subtype",value:"/Image"}),Y.push({key:"Width",value:S.width}),Y.push({key:"Height",value:S.height}),S.colorSpace===y.INDEXED?Y.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(S.palette.length/3-1)+" "+("sMask"in S&&S.sMask!==void 0?S.objectId+2:S.objectId+1)+" 0 R]"}):(Y.push({key:"ColorSpace",value:"/"+S.colorSpace}),S.colorSpace===y.DEVICE_CMYK&&Y.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Y.push({key:"BitsPerComponent",value:S.bitsPerComponent}),"decodeParameters"in S&&S.decodeParameters!==void 0&&Y.push({key:"DecodeParms",value:"<<"+S.decodeParameters+">>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var at="",rt=0,ot=S.transparency.length;rt<ot;rt++)at+=S.transparency[rt]+" "+S.transparency[rt]+" ";Y.push({key:"Mask",value:"["+at+"]"})}S.sMask!==void 0&&Y.push({key:"SMask",value:S.objectId+1+" 0 R"});var At=S.filter!==void 0?["/"+S.filter]:void 0;if(D({data:S.data,additionalKeyValues:Y,alreadyAppliedFilters:At,objectId:S.objectId}),O("endobj"),"sMask"in S&&S.sMask!==void 0){var pt="/Predictor "+S.predictor+" /Colors 1 /BitsPerComponent "+S.bitsPerComponent+" /Columns "+S.width,F={width:S.width,height:S.height,colorSpace:"DeviceGray",bitsPerComponent:S.bitsPerComponent,decodeParameters:pt,data:S.sMask};"filter"in S&&(F.filter=S.filter),U.call(this,F)}if(S.colorSpace===y.INDEXED){var R=this.internal.newObject();D({data:N(new Uint8Array(S.palette)),objectId:R}),O("endobj")}},i=function(){var U=this.internal.collections.addImage_images;for(var S in U)n.call(this,U[S])},a=function(){var U,S=this.internal.collections.addImage_images,O=this.internal.write;for(var D in S)O("/I"+(U=S[D]).index,U.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},o=function(){var U=this.internal.collections.addImage_images;return s.call(this),U},h=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(U){return typeof A["process"+U.toUpperCase()]=="function"},d=function(U){return Le(U)==="object"&&U.nodeType===1},f=function(U,S){if(U.nodeName==="IMG"&&U.hasAttribute("src")){var O=""+U.getAttribute("src");if(O.indexOf("data:image/")===0)return eh(unescape(O).split("base64,").pop());var D=A.loadFile(O,!0);if(D!==void 0)return D}if(U.nodeName==="CANVAS"){if(U.width===0||U.height===0)throw new Error("Given canvas must have data. Canvas width: "+U.width+", height: "+U.height);var nt;switch(S){case"PNG":nt="image/png";break;case"WEBP":nt="image/webp";break;case"JPEG":case"JPG":default:nt="image/jpeg"}return eh(U.toDataURL(nt,1).split("base64,").pop())}},l=function(U){var S=this.internal.collections.addImage_images;if(S){for(var O in S)if(U===S[O].alias)return S[O]}},p=function(U,S,O){return U||S||(U=-96,S=-96),U<0&&(U=-1*O.width*72/U/this.internal.scaleFactor),S<0&&(S=-1*O.height*72/S/this.internal.scaleFactor),U===0&&(U=S*O.width/O.height),S===0&&(S=U*O.height/O.width),[U,S]},w=function(U,S,O,D,nt,Y){var at=p.call(this,O,D,nt),rt=this.internal.getCoordinateString,ot=this.internal.getVerticalCoordinateString,At=o.call(this);if(O=at[0],D=at[1],At[nt.index]=nt,Y){Y*=Math.PI/180;var pt=Math.cos(Y),F=Math.sin(Y),R=function(q){return q.toFixed(4)},G=[R(pt),R(F),R(-1*F),R(pt),0,0,"cm"]}this.internal.write("q"),Y?(this.internal.write([1,"0","0",1,rt(U),ot(S+D),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([rt(O),"0","0",rt(D),"0","0","cm"].join(" "))):this.internal.write([rt(O),"0","0",rt(D),rt(U),ot(S+D),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+nt.index+" Do"),this.internal.write("Q")},y=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},C=A.__addimage__.sHashCode=function(U){var S,O,D=0;if(typeof U=="string")for(O=U.length,S=0;S<O;S++)D=(D<<5)-D+U.charCodeAt(S),D|=0;else if(M(U))for(O=U.byteLength/2,S=0;S<O;S++)D=(D<<5)-D+U[S],D|=0;return D},x=A.__addimage__.validateStringAsBase64=function(U){(U=U||"").toString().trim();var S=!0;return U.length===0&&(S=!1),U.length%4!=0&&(S=!1),/^[A-Za-z0-9+/]+$/.test(U.substr(0,U.length-2))===!1&&(S=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(U.substr(-2))===!1&&(S=!1),S},L=A.__addimage__.extractImageFromDataUrl=function(U){var S=(U=U||"").split("base64,"),O=null;if(S.length===2){var D=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(S[0]);Array.isArray(D)&&(O={mimeType:D[1],charset:D[2],data:S[1]})}return O},k=A.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};A.__addimage__.isArrayBuffer=function(U){return k()&&U instanceof ArrayBuffer};var M=A.__addimage__.isArrayBufferView=function(U){return k()&&typeof Uint32Array<"u"&&(U instanceof Int8Array||U instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&U instanceof Uint8ClampedArray||U instanceof Int16Array||U instanceof Uint16Array||U instanceof Int32Array||U instanceof Uint32Array||U instanceof Float32Array||U instanceof Float64Array)},H=A.__addimage__.binaryStringToUint8Array=function(U){for(var S=U.length,O=new Uint8Array(S),D=0;D<S;D++)O[D]=U.charCodeAt(D);return O},N=A.__addimage__.arrayBufferToBinaryString=function(U){for(var S="",O=M(U)?U:new Uint8Array(U),D=0;D<O.length;D+=8192)S+=String.fromCharCode.apply(null,O.subarray(D,D+8192));return S};A.addImage=function(){var U,S,O,D,nt,Y,at,rt,ot;if(typeof arguments[1]=="number"?(S=t,O=arguments[1],D=arguments[2],nt=arguments[3],Y=arguments[4],at=arguments[5],rt=arguments[6],ot=arguments[7]):(S=arguments[1],O=arguments[2],D=arguments[3],nt=arguments[4],Y=arguments[5],at=arguments[6],rt=arguments[7],ot=arguments[8]),Le(U=arguments[0])==="object"&&!d(U)&&"imageData"in U){var At=U;U=At.imageData,S=At.format||S||t,O=At.x||O||0,D=At.y||D||0,nt=At.w||At.width||nt,Y=At.h||At.height||Y,at=At.alias||at,rt=At.compression||rt,ot=At.rotation||At.angle||ot}var pt=this.internal.getFilters();if(rt===void 0&&pt.indexOf("FlateEncode")!==-1&&(rt="SLOW"),isNaN(O)||isNaN(D))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var F=V.call(this,U,S,at,rt);return w.call(this,O,D,nt,Y,F,ot),this};var V=function(U,S,O,D){var nt,Y,at;if(typeof U=="string"&&r(U)===t){U=unescape(U);var rt=$(U,!1);(rt!==""||(rt=A.loadFile(U,!0))!==void 0)&&(U=rt)}if(d(U)&&(U=f(U,S)),S=r(U,S),!u(S))throw new Error("addImage does not support files of type '"+S+"', please ensure that a plugin for '"+S+"' support is added.");if(((at=O)==null||at.length===0)&&(O=function(ot){return typeof ot=="string"||M(ot)?C(ot):M(ot.data)?C(ot.data):null}(U)),(nt=l.call(this,O))||(k()&&(U instanceof Uint8Array||S==="RGBA"||(Y=U,U=H(U))),nt=this["process"+S.toUpperCase()](U,h.call(this),O,function(ot){return ot&&typeof ot=="string"&&(ot=ot.toUpperCase()),ot in A.image_compression?ot:v.NONE}(D),Y)),!nt)throw new Error("An unknown error occurred whilst processing the image.");return nt},$=A.__addimage__.convertBase64ToBinaryString=function(U,S){var O;S=typeof S!="boolean"||S;var D,nt="";if(typeof U=="string"){D=(O=L(U))!==null?O.data:U;try{nt=eh(D)}catch(Y){if(S)throw x(D)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Y.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return nt};A.getImageProperties=function(U){var S,O,D="";if(d(U)&&(U=f(U)),typeof U=="string"&&r(U)===t&&((D=$(U,!1))===""&&(D=A.loadFile(U)||""),U=D),O=r(U),!u(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(!k()||U instanceof Uint8Array||(U=H(U)),!(S=this["process"+O.toUpperCase()](U)))throw new Error("An unknown error occurred whilst processing the image");return S.fileType=O,S}})(ae.API),function(A){var t=function(e){if(e!==void 0&&e!="")return!0};ae.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(e){for(var r,n,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(e.objId),h=e.pageContext.annotations,u=!1,d=0;d<h.length&&!u;d++)switch((r=h[d]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var f=0;f<h.length;f++){r=h[f];var l=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var w=this.internal.newAdditionalObject(),y=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(w.objId),C=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+l(v(r.contents))+")",i+=" /Popup "+y.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+l(v(C))+") >>",w.content=i;var x=w.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+x,r.open&&(i+=" /Open true"),i+=" >>",y.content=i,this.internal.write(w.objId,"0 R",y.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var L=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+l(p(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+L+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var k=this.annotations._nameMap[r.options.name];r.options.pageNumber=k.page,r.options.top=k.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+l(p(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var M=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+M+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),A.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},A.link=function(e,r,n,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(e),y:h(r),w:o(e+n),h:h(r+i)},options:a,type:"link"})},A.textWithLink=function(e,r,n,i){var a,s,o=this.getTextWidth(e),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var u=this.splitTextToSize(e,s).length;a=Math.ceil(h*u)}else s=o,a=h;return this.text(e,r,n,i),n+=.2*h,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-h,s,a,i),o},A.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(ae.API),function(A){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];A.__arabicParser__={};var i=A.__arabicParser__.isInArabicSubstitutionA=function(w){return t[w.charCodeAt(0)]!==void 0},a=A.__arabicParser__.isArabicLetter=function(w){return typeof w=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(w)},s=A.__arabicParser__.isArabicEndLetter=function(w){return a(w)&&i(w)&&t[w.charCodeAt(0)].length<=2},o=A.__arabicParser__.isArabicAlfLetter=function(w){return a(w)&&n.indexOf(w.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return a(w)&&i(w)&&t[w.charCodeAt(0)].length>=1};var h=A.__arabicParser__.arabicLetterHasFinalForm=function(w){return a(w)&&i(w)&&t[w.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(w){return a(w)&&i(w)&&t[w.charCodeAt(0)].length>=3};var u=A.__arabicParser__.arabicLetterHasMedialForm=function(w){return a(w)&&i(w)&&t[w.charCodeAt(0)].length==4},d=A.__arabicParser__.resolveLigatures=function(w){var y=0,v=e,C="",x=0;for(y=0;y<w.length;y+=1)v[w.charCodeAt(y)]!==void 0?(x++,typeof(v=v[w.charCodeAt(y)])=="number"&&(C+=String.fromCharCode(v),v=e,x=0),y===w.length-1&&(v=e,C+=w.charAt(y-(x-1)),y-=x-1,x=0)):(v=e,C+=w.charAt(y-x),y-=x,x=0);return C};A.__arabicParser__.isArabicDiacritic=function(w){return w!==void 0&&r[w.charCodeAt(0)]!==void 0};var f=A.__arabicParser__.getCorrectForm=function(w,y,v){return a(w)?i(w)===!1?-1:!h(w)||!a(y)&&!a(v)||!a(v)&&s(y)||s(w)&&!a(y)||s(w)&&o(y)||s(w)&&s(y)?0:u(w)&&a(y)&&!s(y)&&a(v)&&h(v)?3:s(w)||!a(v)?1:2:-1},l=function(w){var y=0,v=0,C=0,x="",L="",k="",M=(w=w||"").split("\\s+"),H=[];for(y=0;y<M.length;y+=1){for(H.push(""),v=0;v<M[y].length;v+=1)x=M[y][v],L=M[y][v-1],k=M[y][v+1],a(x)?(C=f(x,L,k),H[y]+=C!==-1?String.fromCharCode(t[x.charCodeAt(0)][C]):x):H[y]+=x;H[y]=d(H[y])}return H.join(" ")},p=A.__arabicParser__.processArabic=A.processArabic=function(){var w,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(y)){var C=0;for(v=[],C=0;C<y.length;C+=1)Array.isArray(y[C])?v.push([l(y[C][0]),y[C][1],y[C][2]]):v.push([l(y[C])]);w=v}else w=l(y);return typeof arguments[0]=="string"?w:(arguments[0].text=w,arguments[0])};A.events.push(["preProcessText",p])}(ae.API),ae.API.autoPrint=function(A){var t;switch((A=A||{}).variant=A.variant||"non-conform",A.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(A){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(s){e=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,r){var n;if((e=e||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(ae.API),function(A){var t={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(w){o=w}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(w){h=w}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(w){u=w}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var f=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return f},set:function(w){f=w}});var l=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return l},set:function(w){l=w}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(w){p=w}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},A.getTextDimensions=function(o,h){r.call(this);var u=(h=h||{}).fontSize||this.getFontSize(),d=h.font||this.getFont(),f=h.scaleFactor||this.internal.scaleFactor,l=0,p=0,w=0,y=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var v=h.maxWidth;v>0?typeof o=="string"?o=this.splitTextToSize(o,v):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(x,L){return x.concat(y.splitTextToSize(L,v))},[])):o=Array.isArray(o)?o:[o];for(var C=0;C<o.length;C++)l<(w=this.getStringUnitWidth(o[C],{font:d})*u)&&(l=w);return l!==0&&(p=o.length),{w:l/=f,h:Math.max((p*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/f,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=A.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var h=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,d=this.internal.__cell__.margins||t,f=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return h.lineNumber!==void 0&&(h.lineNumber===o.lineNumber?(o.x=(h.x||0)+(h.width||0),o.y=h.y||0):h.y+h.height+o.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=d.top,l&&f&&(this.printHeaderRow(o.lineNumber,!0),o.y+=f[0].height)):o.y=h.y+h.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,e===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-u,o.y+u,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+u,{align:"center",baseline:"top",maxWidth:o.width-u-u}):this.text(o.text,o.x+u,o.y+u,{align:"left",baseline:"top",maxWidth:o.width-u-u})),this.internal.__cell__.lastCell=o,this};A.table=function(o,h,u,d,f){if(r.call(this),!u)throw new Error("No data for PDF table.");var l,p,w,y,v=[],C=[],x=[],L={},k={},M=[],H=[],N=(f=f||{}).autoSize||!1,V=f.printHeaders!==!1,$=f.css&&f.css["font-size"]!==void 0?16*f.css["font-size"]:f.fontSize||12,U=f.margins||Object.assign({width:this.getPageWidth()},t),S=typeof f.padding=="number"?f.padding:3,O=f.headerBackgroundColor||"#c8c8c8",D=f.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=V,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=$,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=O,this.internal.__cell__.headerTextColor=D,this.setFontSize($),d==null)C=v=Object.keys(u[0]),x=v.map(function(){return"left"});else if(Array.isArray(d)&&Le(d[0])==="object")for(v=d.map(function(At){return At.name}),C=d.map(function(At){return At.prompt||At.name||""}),x=d.map(function(At){return At.align||"left"}),l=0;l<d.length;l+=1)k[d[l].name]=d[l].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(C=v=d,x=v.map(function(){return"left"}));if(N||Array.isArray(d)&&typeof d[0]=="string")for(l=0;l<v.length;l+=1){for(L[y=v[l]]=u.map(function(At){return At[y]}),this.setFont(void 0,"bold"),M.push(this.getTextDimensions(C[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=L[y],this.setFont(void 0,"normal"),w=0;w<p.length;w+=1)M.push(this.getTextDimensions(p[w],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);k[y]=Math.max.apply(null,M)+S+S,M=[]}if(V){var nt={};for(l=0;l<v.length;l+=1)nt[v[l]]={},nt[v[l]].text=C[l],nt[v[l]].align=x[l];var Y=s.call(this,nt,k);H=v.map(function(At){return new i(o,h,k[At],Y,nt[At].text,void 0,nt[At].align)}),this.setTableHeaderRow(H),this.printHeaderRow(1,!1)}var at=d.reduce(function(At,pt){return At[pt.name]=pt.align,At},{});for(l=0;l<u.length;l+=1){"rowStart"in f&&f.rowStart instanceof Function&&f.rowStart({row:l,data:u[l]},this);var rt=s.call(this,u[l],k);for(w=0;w<v.length;w+=1){var ot=u[l][v[w]];"cellStart"in f&&f.cellStart instanceof Function&&f.cellStart({row:l,col:w,data:ot},this),a.call(this,new i(o,h,k[v[w]],rt,ot,l+2,at[v[w]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=h,this};var s=function(o,h){var u=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,f=this.internal.scaleFactor;return Object.keys(o).map(function(l){var p=o[l];return this.splitTextToSize(p.hasOwnProperty("text")?p.text:p,h[l]-u-u)},this).map(function(l){return this.getLineHeightFactor()*l.length*d/f+u+u},this).reduce(function(l,p){return Math.max(l,p)},0)};A.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},A.printHeaderRow=function(o,h){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(e=!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 f=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){u=this.internal.__cell__.tableHeaderRow[l].clone(),h&&(u.y=this.internal.__cell__.margins.top||0,f.push(u)),u.lineNumber=o;var p=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,u),this.setTextColor(p)}f.length>0&&this.setTableHeaderRow(f),this.setFont(void 0,"normal"),e=!1}}(ae.API);var Jw={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Zw=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],u1=Yw(Zw),tB=[100,200,300,400,500,600,700,800,900],HE=Yw(tB);function c1(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return Jw[i=i||"normal"]?i:"normal"}(A.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(A.weight),n=function(i){return typeof u1[i=i||"normal"]=="number"?i:"normal"}(A.stretch);return{family:t,style:e,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,e,r].join(" ")}}}function eB(A,t,e,r){var n;for(n=e;n>=0&&n<t.length;n+=r)if(A[t[n]])return A[t[n]];for(n=e;n>=0&&n<t.length;n-=r)if(A[t[n]])return A[t[n]]}var DE={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},AB={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function rB(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function RE(A,t,e){for(var r=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},DE,e.genericFontFamilies||{}),i=null,a=null,s=0;s<t.length;++s)if(n[(i=c1(t[s])).family]&&(i.family=n[i.family]),A.hasOwnProperty(i.family)){a=A[i.family];break}if(!(a=a||A[r]))throw new Error("Could not find a font-family for the rule '"+rB(i)+"' and default family '"+r+"'.");if(a=function(o,h){if(h[o])return h[o];var u=u1[o],d=u<=u1.normal?-1:1,f=eB(h,Zw,u,d);if(!f)throw new Error("Could not find a matching font-stretch value for "+o);return f}(i.stretch,a),a=function(o,h){if(h[o])return h[o];for(var u=Jw[o],d=0;d<u.length;++d)if(h[u[d]])return h[u[d]];throw new Error("Could not find a matching font-style for "+o)}(i.style,a),!(a=function(o,h){if(h[o])return h[o];if(o===400&&h[500])return h[500];if(o===500&&h[400])return h[400];var u=HE[o],d=eB(h,tB,u,o<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+o);return d}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+rB(i)+"'.");return a}function nB(A){return A.trimLeft()}function jE(A,t){for(var e=0;e<A.length;){if(A.charAt(e)===t)return[A.substring(0,e),A.substring(e+1)];e+=1}return null}function GE(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],A.substring(t[0].length)]}var cc,iB,aB,sB=["times"];(function(A){var t,e,r,n,i,a,s,o,h,u=function(F){return F=F||{},this.isStrokeTransparent=F.isStrokeTransparent||!1,this.strokeOpacity=F.strokeOpacity||1,this.strokeStyle=F.strokeStyle||"#000000",this.fillStyle=F.fillStyle||"#000000",this.isFillTransparent=F.isFillTransparent||!1,this.fillOpacity=F.fillOpacity||1,this.font=F.font||"10px sans-serif",this.textBaseline=F.textBaseline||"alphabetic",this.textAlign=F.textAlign||"left",this.lineWidth=F.lineWidth||1,this.lineJoin=F.lineJoin||"miter",this.lineCap=F.lineCap||"butt",this.path=F.path||[],this.transform=F.transform!==void 0?F.transform.clone():new o,this.globalCompositeOperation=F.globalCompositeOperation||"normal",this.globalAlpha=F.globalAlpha||1,this.clip_path=F.clip_path||[],this.currentPoint=F.currentPoint||new a,this.miterLimit=F.miterLimit||10,this.lastPoint=F.lastPoint||new a,this.lineDashOffset=F.lineDashOffset||0,this.lineDash=F.lineDash||[],this.margin=F.margin||[0,0,0,0],this.prevPageLastElemOffset=F.prevPageLastElemOffset||0,this.ignoreClearRect=typeof F.ignoreClearRect!="boolean"||F.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,h=new u}]);var d=function(F){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=F;Object.defineProperty(this,"pdf",{get:function(){return R}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(mt){G=!!mt}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(mt){q=!!mt}});var Z=0;Object.defineProperty(this,"posX",{get:function(){return Z},set:function(mt){isNaN(mt)||(Z=mt)}});var ct=0;Object.defineProperty(this,"posY",{get:function(){return ct},set:function(mt){isNaN(mt)||(ct=mt)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(mt){var z;typeof mt=="number"?z=[mt,mt,mt,mt]:((z=new Array(4))[0]=mt[0],z[1]=mt.length>=2?mt[1]:z[0],z[2]=mt.length>=3?mt[2]:z[0],z[3]=mt.length>=4?mt[3]:z[1]),h.margin=z}});var ft=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ft},set:function(mt){ft=mt}});var gt=0;Object.defineProperty(this,"lastBreak",{get:function(){return gt},set:function(mt){gt=mt}});var St=[];Object.defineProperty(this,"pageBreaks",{get:function(){return St},set:function(mt){St=mt}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(mt){mt instanceof u&&(h=mt)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(mt){h.path=mt}});var Ut=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ut},set:function(mt){Ut=mt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(mt){var z;z=f(mt),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(mt){var z=f(mt);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(mt){["butt","round","square"].indexOf(mt)!==-1&&(this.ctx.lineCap=mt,this.pdf.setLineCap(mt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(mt){isNaN(mt)||(this.ctx.lineWidth=mt,this.pdf.setLineWidth(mt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(mt){["bevel","round","miter"].indexOf(mt)!==-1&&(this.ctx.lineJoin=mt,this.pdf.setLineJoin(mt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(mt){isNaN(mt)||(this.ctx.miterLimit=mt,this.pdf.setMiterLimit(mt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(mt){this.ctx.textBaseline=mt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(mt){["right","end","center","left","start"].indexOf(mt)!==-1&&(this.ctx.textAlign=mt)}});var Ht=null;function Mt(mt,z){if(Ht===null){var Ae=function($t){var Ft=[];return Object.keys($t).forEach(function(It){$t[It].forEach(function(Tt){var Pt=null;switch(Tt){case"bold":Pt={family:It,weight:"bold"};break;case"italic":Pt={family:It,style:"italic"};break;case"bolditalic":Pt={family:It,weight:"bold",style:"italic"};break;case"":case"normal":Pt={family:It}}Pt!==null&&(Pt.ref={name:It,style:Tt},Ft.push(Pt))})}),Ft}(mt.getFontList());Ht=function($t){for(var Ft={},It=0;It<$t.length;++It){var Tt=c1($t[It]),Pt=Tt.family,zt=Tt.stretch,Xt=Tt.style,re=Tt.weight;Ft[Pt]=Ft[Pt]||{},Ft[Pt][zt]=Ft[Pt][zt]||{},Ft[Pt][zt][Xt]=Ft[Pt][zt][Xt]||{},Ft[Pt][zt][Xt][re]=Tt}return Ft}(Ae.concat(z))}return Ht}var qt=null;Object.defineProperty(this,"fontFaces",{get:function(){return qt},set:function(mt){Ht=null,qt=mt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(mt){var z;if(this.ctx.font=mt,(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(mt))!==null){var Ae=z[1],$t=(z[2],z[3]),Ft=z[4],It=(z[5],z[6]),Tt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ft)[2];Ft=Math.floor(Tt==="px"?parseFloat(Ft)*this.pdf.internal.scaleFactor:Tt==="em"?parseFloat(Ft)*this.pdf.getFontSize():parseFloat(Ft)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ft);var Pt=function(Zt){var oe,Ot,We=[],Be=Zt.trim();if(Be==="")return sB;if(Be in AB)return[AB[Be]];for(;Be!=="";){switch(Ot=null,oe=(Be=nB(Be)).charAt(0)){case'"':case"'":Ot=jE(Be.substring(1),oe);break;default:Ot=GE(Be)}if(Ot===null||(We.push(Ot[0]),(Be=nB(Ot[1]))!==""&&Be.charAt(0)!==","))return sB;Be=Be.replace(/^,/,"")}return We}(It);if(this.fontFaces){var zt=RE(Mt(this.pdf,this.fontFaces),Pt.map(function(Zt){return{family:Zt,stretch:"normal",weight:$t,style:Ae}}));this.pdf.setFont(zt.ref.name,zt.ref.style)}else{var Xt="";($t==="bold"||parseInt($t,10)>=700||Ae==="bold")&&(Xt="bold"),Ae==="italic"&&(Xt+="italic"),Xt.length===0&&(Xt="normal");for(var re="",se={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},we=0;we<Pt.length;we++){if(this.pdf.internal.getFont(Pt[we],Xt,{noFallback:!0,disableWarning:!0})!==void 0){re=Pt[we];break}if(Xt==="bolditalic"&&this.pdf.internal.getFont(Pt[we],"bold",{noFallback:!0,disableWarning:!0})!==void 0)re=Pt[we],Xt="bold";else if(this.pdf.internal.getFont(Pt[we],"normal",{noFallback:!0,disableWarning:!0})!==void 0){re=Pt[we],Xt="normal";break}}if(re===""){for(var Fe=0;Fe<Pt.length;Fe++)if(se[Pt[Fe]]){re=se[Pt[Fe]];break}}re=re===""?"Times":re,this.pdf.setFont(re,Xt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(mt){this.ctx.globalCompositeOperation=mt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(mt){this.ctx.globalAlpha=mt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(mt){this.ctx.lineDashOffset=mt,pt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(mt){this.ctx.lineDash=mt,pt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(mt){this.ctx.ignoreClearRect=!!mt}})};d.prototype.setLineDash=function(F){this.lineDash=F},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){L.call(this,"fill",!1)},d.prototype.stroke=function(){L.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(F,R){if(isNaN(F)||isNaN(R))throw Ke.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new a(F,R));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new a(F,R)},d.prototype.closePath=function(){var F=new a(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&Le(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){F=new a(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(F.x,F.y)},d.prototype.lineTo=function(F,R){if(isNaN(F)||isNaN(R))throw Ke.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new a(F,R));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new a(G.x,G.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),L.call(this,null,!0)},d.prototype.quadraticCurveTo=function(F,R,G,q){if(isNaN(G)||isNaN(q)||isNaN(F)||isNaN(R))throw Ke.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Z=this.ctx.transform.applyToPoint(new a(G,q)),ct=this.ctx.transform.applyToPoint(new a(F,R));this.path.push({type:"qct",x1:ct.x,y1:ct.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new a(Z.x,Z.y)},d.prototype.bezierCurveTo=function(F,R,G,q,Z,ct){if(isNaN(Z)||isNaN(ct)||isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q))throw Ke.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ft=this.ctx.transform.applyToPoint(new a(Z,ct)),gt=this.ctx.transform.applyToPoint(new a(F,R)),St=this.ctx.transform.applyToPoint(new a(G,q));this.path.push({type:"bct",x1:gt.x,y1:gt.y,x2:St.x,y2:St.y,x:ft.x,y:ft.y}),this.ctx.lastPoint=new a(ft.x,ft.y)},d.prototype.arc=function(F,R,G,q,Z,ct){if(isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q)||isNaN(Z))throw Ke.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ct=!!ct,!this.ctx.transform.isIdentity){var ft=this.ctx.transform.applyToPoint(new a(F,R));F=ft.x,R=ft.y;var gt=this.ctx.transform.applyToPoint(new a(0,G)),St=this.ctx.transform.applyToPoint(new a(0,0));G=Math.sqrt(Math.pow(gt.x-St.x,2)+Math.pow(gt.y-St.y,2))}Math.abs(Z-q)>=2*Math.PI&&(q=0,Z=2*Math.PI),this.path.push({type:"arc",x:F,y:R,radius:G,startAngle:q,endAngle:Z,counterclockwise:ct})},d.prototype.arcTo=function(F,R,G,q,Z){throw new Error("arcTo not implemented.")},d.prototype.rect=function(F,R,G,q){if(isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q))throw Ke.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(F,R),this.lineTo(F+G,R),this.lineTo(F+G,R+q),this.lineTo(F,R+q),this.lineTo(F,R),this.lineTo(F+G,R),this.lineTo(F,R)},d.prototype.fillRect=function(F,R,G,q){if(isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q))throw Ke.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!l.call(this)){var Z={};this.lineCap!=="butt"&&(Z.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Z.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(F,R,G,q),this.fill(),Z.hasOwnProperty("lineCap")&&(this.lineCap=Z.lineCap),Z.hasOwnProperty("lineJoin")&&(this.lineJoin=Z.lineJoin)}},d.prototype.strokeRect=function(F,R,G,q){if(isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q))throw Ke.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(F,R,G,q),this.stroke())},d.prototype.clearRect=function(F,R,G,q){if(isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q))throw Ke.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(F,R,G,q))},d.prototype.save=function(F){F=typeof F!="boolean"||F;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(R),F){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},d.prototype.restore=function(F){F=typeof F!="boolean"||F;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(R),F&&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 f=function(F){var R,G,q,Z;if(F.isCanvasGradient===!0&&(F=F.getColor()),!F)return{r:0,g:0,b:0,a:0,style:F};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(F))R=0,G=0,q=0,Z=0;else{var ct=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(F);if(ct!==null)R=parseInt(ct[1]),G=parseInt(ct[2]),q=parseInt(ct[3]),Z=1;else if((ct=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(F))!==null)R=parseInt(ct[1]),G=parseInt(ct[2]),q=parseInt(ct[3]),Z=parseFloat(ct[4]);else{if(Z=1,typeof F=="string"&&F.charAt(0)!=="#"){var ft=new Rw(F);F=ft.ok?ft.toHex():"#000000"}F.length===4?(R=F.substring(1,2),R+=R,G=F.substring(2,3),G+=G,q=F.substring(3,4),q+=q):(R=F.substring(1,3),G=F.substring(3,5),q=F.substring(5,7)),R=parseInt(R,16),G=parseInt(G,16),q=parseInt(q,16)}}return{r:R,g:G,b:q,a:Z,style:F}},l=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},p=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(F,R,G,q){if(isNaN(R)||isNaN(G)||typeof F!="string")throw Ke.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!l.call(this)){var Z=rt(this.ctx.transform.rotation),ct=this.ctx.transform.scaleX;S.call(this,{text:F,x:R,y:G,scale:ct,angle:Z,align:this.textAlign,maxWidth:q})}},d.prototype.strokeText=function(F,R,G,q){if(isNaN(R)||isNaN(G)||typeof F!="string")throw Ke.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){q=isNaN(q)?void 0:q;var Z=rt(this.ctx.transform.rotation),ct=this.ctx.transform.scaleX;S.call(this,{text:F,x:R,y:G,scale:ct,renderingMode:"stroke",angle:Z,align:this.textAlign,maxWidth:q})}},d.prototype.measureText=function(F){if(typeof F!="string")throw Ke.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,G=this.pdf.internal.scaleFactor,q=R.internal.getFontSize(),Z=R.getStringUnitWidth(F)*q/R.internal.scaleFactor,ct=function(ft){var gt=(ft=ft||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return gt}}),this};return new ct({width:Z*=Math.round(96*G/72*1e4)/1e4})},d.prototype.scale=function(F,R){if(isNaN(F)||isNaN(R))throw Ke.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new o(F,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.rotate=function(F){if(isNaN(F))throw Ke.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var R=new o(Math.cos(F),Math.sin(F),-Math.sin(F),Math.cos(F),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},d.prototype.translate=function(F,R){if(isNaN(F)||isNaN(R))throw Ke.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new o(1,0,0,1,F,R);this.ctx.transform=this.ctx.transform.multiply(G)},d.prototype.transform=function(F,R,G,q,Z,ct){if(isNaN(F)||isNaN(R)||isNaN(G)||isNaN(q)||isNaN(Z)||isNaN(ct))throw Ke.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ft=new o(F,R,G,q,Z,ct);this.ctx.transform=this.ctx.transform.multiply(ft)},d.prototype.setTransform=function(F,R,G,q,Z,ct){F=isNaN(F)?1:F,R=isNaN(R)?0:R,G=isNaN(G)?0:G,q=isNaN(q)?1:q,Z=isNaN(Z)?0:Z,ct=isNaN(ct)?0:ct,this.ctx.transform=new o(F,R,G,q,Z,ct)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(F,R,G,q,Z,ct,ft,gt,St){var Ut=this.pdf.getImageProperties(F),Ht=1,Mt=1,qt=1,mt=1;q!==void 0&&gt!==void 0&&(qt=gt/q,mt=St/Z,Ht=Ut.width/q*gt/q,Mt=Ut.height/Z*St/Z),ct===void 0&&(ct=R,ft=G,R=0,G=0),q!==void 0&&gt===void 0&&(gt=q,St=Z),q===void 0&&gt===void 0&&(gt=Ut.width,St=Ut.height);for(var z,Ae=this.ctx.transform.decompose(),$t=rt(Ae.rotate.shx),Ft=new o,It=(Ft=(Ft=(Ft=Ft.multiply(Ae.translate)).multiply(Ae.skew)).multiply(Ae.scale)).applyToRectangle(new s(ct-R*qt,ft-G*mt,q*Ht,Z*Mt)),Tt=y.call(this,It),Pt=[],zt=0;zt<Tt.length;zt+=1)Pt.indexOf(Tt[zt])===-1&&Pt.push(Tt[zt]);if(x(Pt),this.autoPaging)for(var Xt=Pt[0],re=Pt[Pt.length-1],se=Xt;se<re+1;se++){this.pdf.setPage(se);var we=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fe=se===1?this.posY+this.margin[0]:this.margin[0],Zt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],oe=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ot=se===1?0:Zt+(se-2)*oe;if(this.ctx.clip_path.length!==0){var We=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(z,this.posX+this.margin[3],-Ot+Fe+this.ctx.prevPageLastElemOffset),k.call(this,"fill",!0),this.path=We}var Be=JSON.parse(JSON.stringify(It));Be=C([Be],this.posX+this.margin[3],-Ot+Fe+this.ctx.prevPageLastElemOffset)[0];var tA=(se>Xt||se<re)&&w.call(this);tA&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],we,oe,null).clip().discardPath()),this.pdf.addImage(F,"JPEG",Be.x,Be.y,Be.w,Be.h,null,null,$t),tA&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(F,"JPEG",It.x,It.y,It.w,It.h,null,null,$t)};var y=function(F,R,G){var q=[];R=R||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Z=this.posY+this.ctx.prevPageLastElemOffset;switch(F.type){default:case"mt":case"lt":q.push(Math.floor((F.y+Z)/G)+1);break;case"arc":q.push(Math.floor((F.y+Z-F.radius)/G)+1),q.push(Math.floor((F.y+Z+F.radius)/G)+1);break;case"qct":var ct=ot(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x,F.y);q.push(Math.floor((ct.y+Z)/G)+1),q.push(Math.floor((ct.y+ct.h+Z)/G)+1);break;case"bct":var ft=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x2,F.y2,F.x,F.y);q.push(Math.floor((ft.y+Z)/G)+1),q.push(Math.floor((ft.y+ft.h+Z)/G)+1);break;case"rect":q.push(Math.floor((F.y+Z)/G)+1),q.push(Math.floor((F.y+F.h+Z)/G)+1)}for(var gt=0;gt<q.length;gt+=1)for(;this.pdf.internal.getNumberOfPages()<q[gt];)v.call(this);return q},v=function(){var F=this.fillStyle,R=this.strokeStyle,G=this.font,q=this.lineCap,Z=this.lineWidth,ct=this.lineJoin;this.pdf.addPage(),this.fillStyle=F,this.strokeStyle=R,this.font=G,this.lineCap=q,this.lineWidth=Z,this.lineJoin=ct},C=function(F,R,G){for(var q=0;q<F.length;q++)switch(F[q].type){case"bct":F[q].x2+=R,F[q].y2+=G;case"qct":F[q].x1+=R,F[q].y1+=G;case"mt":case"lt":case"arc":default:F[q].x+=R,F[q].y+=G}return F},x=function(F){return F.sort(function(R,G){return R-G})},L=function(F,R){for(var G,q,Z=this.fillStyle,ct=this.strokeStyle,ft=this.lineCap,gt=this.lineWidth,St=Math.abs(gt*this.ctx.transform.scaleX),Ut=this.lineJoin,Ht=JSON.parse(JSON.stringify(this.path)),Mt=JSON.parse(JSON.stringify(this.path)),qt=[],mt=0;mt<Mt.length;mt++)if(Mt[mt].x!==void 0)for(var z=y.call(this,Mt[mt]),Ae=0;Ae<z.length;Ae+=1)qt.indexOf(z[Ae])===-1&&qt.push(z[Ae]);for(var $t=0;$t<qt.length;$t++)for(;this.pdf.internal.getNumberOfPages()<qt[$t];)v.call(this);if(x(qt),this.autoPaging)for(var Ft=qt[0],It=qt[qt.length-1],Tt=Ft;Tt<It+1;Tt++){this.pdf.setPage(Tt),this.fillStyle=Z,this.strokeStyle=ct,this.lineCap=ft,this.lineWidth=St,this.lineJoin=Ut;var Pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=Tt===1?this.posY+this.margin[0]:this.margin[0],Xt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],re=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],se=Tt===1?0:Xt+(Tt-2)*re;if(this.ctx.clip_path.length!==0){var we=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(G,this.posX+this.margin[3],-se+zt+this.ctx.prevPageLastElemOffset),k.call(this,F,!0),this.path=we}if(q=JSON.parse(JSON.stringify(Ht)),this.path=C(q,this.posX+this.margin[3],-se+zt+this.ctx.prevPageLastElemOffset),R===!1||Tt===0){var Fe=(Tt>Ft||Tt<It)&&w.call(this);Fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pt,re,null).clip().discardPath()),k.call(this,F,R),Fe&&this.pdf.restoreGraphicsState()}this.lineWidth=gt}else this.lineWidth=St,k.call(this,F,R),this.lineWidth=gt;this.path=Ht},k=function(F,R){if((F!=="stroke"||R||!p.call(this))&&(F==="stroke"||R||!l.call(this))){for(var G,q,Z=[],ct=this.path,ft=0;ft<ct.length;ft++){var gt=ct[ft];switch(gt.type){case"begin":Z.push({begin:!0});break;case"close":Z.push({close:!0});break;case"mt":Z.push({start:gt,deltas:[],abs:[]});break;case"lt":var St=Z.length;if(ct[ft-1]&&!isNaN(ct[ft-1].x)&&(G=[gt.x-ct[ft-1].x,gt.y-ct[ft-1].y],St>0)){for(;St>=0;St--)if(Z[St-1].close!==!0&&Z[St-1].begin!==!0){Z[St-1].deltas.push(G),Z[St-1].abs.push(gt);break}}break;case"bct":G=[gt.x1-ct[ft-1].x,gt.y1-ct[ft-1].y,gt.x2-ct[ft-1].x,gt.y2-ct[ft-1].y,gt.x-ct[ft-1].x,gt.y-ct[ft-1].y],Z[Z.length-1].deltas.push(G);break;case"qct":var Ut=ct[ft-1].x+2/3*(gt.x1-ct[ft-1].x),Ht=ct[ft-1].y+2/3*(gt.y1-ct[ft-1].y),Mt=gt.x+2/3*(gt.x1-gt.x),qt=gt.y+2/3*(gt.y1-gt.y),mt=gt.x,z=gt.y;G=[Ut-ct[ft-1].x,Ht-ct[ft-1].y,Mt-ct[ft-1].x,qt-ct[ft-1].y,mt-ct[ft-1].x,z-ct[ft-1].y],Z[Z.length-1].deltas.push(G);break;case"arc":Z.push({deltas:[],abs:[],arc:!0}),Array.isArray(Z[Z.length-1].abs)&&Z[Z.length-1].abs.push(gt)}}q=R?null:F==="stroke"?"stroke":"fill";for(var Ae=!1,$t=0;$t<Z.length;$t++)if(Z[$t].arc)for(var Ft=Z[$t].abs,It=0;It<Ft.length;It++){var Tt=Ft[It];Tt.type==="arc"?N.call(this,Tt.x,Tt.y,Tt.radius,Tt.startAngle,Tt.endAngle,Tt.counterclockwise,void 0,R,!Ae):O.call(this,Tt.x,Tt.y),Ae=!0}else if(Z[$t].close===!0)this.pdf.internal.out("h"),Ae=!1;else if(Z[$t].begin!==!0){var Pt=Z[$t].start.x,zt=Z[$t].start.y;D.call(this,Z[$t].deltas,Pt,zt),Ae=!0}q&&V.call(this,q),R&&$.call(this)}},M=function(F){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return F-G;case"top":return F+R-G;case"hanging":return F+R-2*G;case"middle":return F+R/2-G;case"ideographic":return F;case"alphabetic":default:return F}},H=function(F){return F+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var F=function(){};return F.colorStops=[],F.addColorStop=function(R,G){this.colorStops.push([R,G])},F.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},F.isCanvasGradient=!0,F},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(F,R,G,q,Z,ct,ft,gt,St){for(var Ut=Y.call(this,G,q,Z,ct),Ht=0;Ht<Ut.length;Ht++){var Mt=Ut[Ht];Ht===0&&(St?U.call(this,Mt.x1+F,Mt.y1+R):O.call(this,Mt.x1+F,Mt.y1+R)),nt.call(this,F,R,Mt.x2,Mt.y2,Mt.x3,Mt.y3,Mt.x4,Mt.y4)}gt?$.call(this):V.call(this,ft)},V=function(F){switch(F){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},$=function(){this.pdf.clip(),this.pdf.discardPath()},U=function(F,R){this.pdf.internal.out(e(F)+" "+r(R)+" m")},S=function(F){var R;switch(F.align){case"right":case"end":R="right";break;case"center":R="center";break;case"left":case"start":default:R="left"}var G=this.pdf.getTextDimensions(F.text),q=M.call(this,F.y),Z=H.call(this,q)-G.h,ct=this.ctx.transform.applyToPoint(new a(F.x,q)),ft=this.ctx.transform.decompose(),gt=new o;gt=(gt=(gt=gt.multiply(ft.translate)).multiply(ft.skew)).multiply(ft.scale);for(var St,Ut,Ht,Mt=this.ctx.transform.applyToRectangle(new s(F.x,q,G.w,G.h)),qt=gt.applyToRectangle(new s(F.x,Z,G.w,G.h)),mt=y.call(this,qt),z=[],Ae=0;Ae<mt.length;Ae+=1)z.indexOf(mt[Ae])===-1&&z.push(mt[Ae]);if(x(z),this.autoPaging)for(var $t=z[0],Ft=z[z.length-1],It=$t;It<Ft+1;It++){this.pdf.setPage(It);var Tt=It===1?this.posY+this.margin[0]:this.margin[0],Pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zt=this.pdf.internal.pageSize.height-this.margin[2],Xt=zt-this.margin[0],re=this.pdf.internal.pageSize.width-this.margin[1],se=re-this.margin[3],we=It===1?0:Pt+(It-2)*Xt;if(this.ctx.clip_path.length!==0){var Fe=this.path;St=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(St,this.posX+this.margin[3],-1*we+Tt),k.call(this,"fill",!0),this.path=Fe}var Zt=C([JSON.parse(JSON.stringify(qt))],this.posX+this.margin[3],-we+Tt+this.ctx.prevPageLastElemOffset)[0];F.scale>=.01&&(Ut=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ut*F.scale),Ht=this.lineWidth,this.lineWidth=Ht*F.scale);var oe=this.autoPaging!=="text";if(oe||Zt.y+Zt.h<=zt){if(oe||Zt.y>=Tt&&Zt.x<=re){var Ot=oe?F.text:this.pdf.splitTextToSize(F.text,F.maxWidth||re-Zt.x)[0],We=C([JSON.parse(JSON.stringify(Mt))],this.posX+this.margin[3],-we+Tt+this.ctx.prevPageLastElemOffset)[0],Be=oe&&(It>$t||It<Ft)&&w.call(this);Be&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],se,Xt,null).clip().discardPath()),this.pdf.text(Ot,We.x,We.y,{angle:F.angle,align:R,renderingMode:F.renderingMode}),Be&&this.pdf.restoreGraphicsState()}}else Zt.y<zt&&(this.ctx.prevPageLastElemOffset+=zt-Zt.y);F.scale>=.01&&(this.pdf.setFontSize(Ut),this.lineWidth=Ht)}else F.scale>=.01&&(Ut=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ut*F.scale),Ht=this.lineWidth,this.lineWidth=Ht*F.scale),this.pdf.text(F.text,ct.x+this.posX,ct.y+this.posY,{angle:F.angle,align:R,renderingMode:F.renderingMode,maxWidth:F.maxWidth}),F.scale>=.01&&(this.pdf.setFontSize(Ut),this.lineWidth=Ht)},O=function(F,R,G,q){G=G||0,q=q||0,this.pdf.internal.out(e(F+G)+" "+r(R+q)+" l")},D=function(F,R,G){return this.pdf.lines(F,R,G,null,null)},nt=function(F,R,G,q,Z,ct,ft,gt){this.pdf.internal.out([t(n(G+F)),t(i(q+R)),t(n(Z+F)),t(i(ct+R)),t(n(ft+F)),t(i(gt+R)),"c"].join(" "))},Y=function(F,R,G,q){for(var Z=2*Math.PI,ct=Math.PI/2;R>G;)R-=Z;var ft=Math.abs(G-R);ft<Z&&q&&(ft=Z-ft);for(var gt=[],St=q?-1:1,Ut=R;ft>1e-5;){var Ht=Ut+St*Math.min(ft,ct);gt.push(at.call(this,F,Ut,Ht)),ft-=Math.abs(Ht-Ut),Ut=Ht}return gt},at=function(F,R,G){var q=(G-R)/2,Z=F*Math.cos(q),ct=F*Math.sin(q),ft=Z,gt=-ct,St=ft*ft+gt*gt,Ut=St+ft*Z+gt*ct,Ht=4/3*(Math.sqrt(2*St*Ut)-Ut)/(ft*ct-gt*Z),Mt=ft-Ht*gt,qt=gt+Ht*ft,mt=Mt,z=-qt,Ae=q+R,$t=Math.cos(Ae),Ft=Math.sin(Ae);return{x1:F*Math.cos(R),y1:F*Math.sin(R),x2:Mt*$t-qt*Ft,y2:Mt*Ft+qt*$t,x3:mt*$t-z*Ft,y3:mt*Ft+z*$t,x4:F*Math.cos(G),y4:F*Math.sin(G)}},rt=function(F){return 180*F/Math.PI},ot=function(F,R,G,q,Z,ct){var ft=F+.5*(G-F),gt=R+.5*(q-R),St=Z+.5*(G-Z),Ut=ct+.5*(q-ct),Ht=Math.min(F,Z,ft,St),Mt=Math.max(F,Z,ft,St),qt=Math.min(R,ct,gt,Ut),mt=Math.max(R,ct,gt,Ut);return new s(Ht,qt,Mt-Ht,mt-qt)},At=function(F,R,G,q,Z,ct,ft,gt){var St,Ut,Ht,Mt,qt,mt,z,Ae,$t,Ft,It,Tt,Pt,zt,Xt=G-F,re=q-R,se=Z-G,we=ct-q,Fe=ft-Z,Zt=gt-ct;for(Ut=0;Ut<41;Ut++)$t=(z=(Ht=F+(St=Ut/40)*Xt)+St*((qt=G+St*se)-Ht))+St*(qt+St*(Z+St*Fe-qt)-z),Ft=(Ae=(Mt=R+St*re)+St*((mt=q+St*we)-Mt))+St*(mt+St*(ct+St*Zt-mt)-Ae),Ut==0?(It=$t,Tt=Ft,Pt=$t,zt=Ft):(It=Math.min(It,$t),Tt=Math.min(Tt,Ft),Pt=Math.max(Pt,$t),zt=Math.max(zt,Ft));return new s(Math.round(It),Math.round(Tt),Math.round(Pt-It),Math.round(zt-Tt))},pt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var F,R,G=(F=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:F,lineDashOffset:R}));this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(ae.API),function(A){var t=function(i){var a,s,o,h,u,d,f,l,p,w;for(s=[],o=0,h=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;h>o;o+=4)(u=(i.charCodeAt(o)<<24)+(i.charCodeAt(o+1)<<16)+(i.charCodeAt(o+2)<<8)+i.charCodeAt(o+3))!==0?(d=(u=((u=((u=((u=(u-(w=u%85))/85)-(p=u%85))/85)-(l=u%85))/85)-(f=u%85))/85)%85,s.push(d+33,f+33,l+33,p+33,w+33)):s.push(122);return function(y,v){for(var C=v;C>0;C--)y.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},e=function(i){var a,s,o,h,u,d=String,f="length",l=255,p="charCodeAt",w="slice",y="replace";for(i[w](-2),i=i[w](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),o=[],h=0,u=(i+=a="uuuuu"[w](i[f]%5||5))[f];u>h;h+=5)s=52200625*(i[p](h)-33)+614125*(i[p](h+1)-33)+7225*(i[p](h+2)-33)+85*(i[p](h+3)-33)+(i[p](h+4)-33),o.push(l&s>>24,l&s>>16,l&s>>8,l&s);return function(v,C){for(var x=C;x>0;x--)v.pop()}(o,a[f]),d.fromCharCode.apply(d,o)},r=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var s="",o=0;o<i.length;o+=2)s+=String.fromCharCode("0x"+(i[o]+i[o+1]));return s},n=function(i){for(var a=new Uint8Array(i.length),s=i.length;s--;)a[s]=i.charCodeAt(s);return i=(a=t1(a)).reduce(function(o,h){return o+String.fromCharCode(h)},"")};A.processDataByFilters=function(i,a){var s=0,o=i||"",h=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":o=e(o),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=t(o),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=r(o),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=n(o),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:h.reverse().join(" ")}}}(ae.API),function(A){A.loadFile=function(t,e,r){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,h,u){var d=new XMLHttpRequest,f=0,l=function(p){var w=p.length,y=[],v=String.fromCharCode;for(f=0;f<w;f+=1)y.push(v(255&p.charCodeAt(f)));return y.join("")};if(d.open("GET",o,!h),d.overrideMimeType("text/plain; charset=x-user-defined"),h===!1&&(d.onload=function(){d.status===200?u(l(this.responseText)):u(void 0)}),d.send(null),h&&d.status===200)return l(d.responseText)}(n,i,a)}catch{}return s}(t,e,r)},A.loadImageFile=A.loadFile}(ae.API),function(A){function t(){return(ie.html2canvas?Promise.resolve(ie.html2canvas):Promise.resolve().then(()=>f7)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function e(){return(ie.DOMPurify?Promise.resolve(ie.DOMPurify):Promise.resolve().then(()=>K7)).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var s=Le(a);return s==="undefined"?"undefined":s==="string"||a instanceof String?"string":s==="number"||a instanceof Number?"number":s==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":s==="object"?"object":"unknown"},n=function(a,s){var o=document.createElement(a);for(var h in s.className&&(o.className=s.className),s.innerHTML&&s.dompurify&&(o.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)o.style[h]=s.style[h];return o},i=function a(s){var o=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),h=a.convert(Promise.resolve(),o);return h=(h=h.setProgress(1,a,1,[a])).set(s)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,s){return a.__proto__=s||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,s){return this.then(function(){switch(s=s||function(o){switch(r(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(e).then(function(o){return this.set({src:n("div",{innerHTML:a,dompurify:o})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},i.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function o(h,u){for(var d=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),f=h.firstChild;f;f=f.nextSibling)u!==!0&&f.nodeType===1&&f.nodeName==="SCRIPT"||d.appendChild(o(f,u));return h.nodeType===1&&(h.nodeName==="CANVAS"?(d.width=h.width,d.height=h.height,d.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(d.value=h.value),d.addEventListener("load",function(){d.scrollTop=h.scrollTop,d.scrollLeft=h.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(s){var o=Object.assign({},this.opt.html2canvas);return delete o.onrendered,s(this.prop.container,o)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(t).then(function(s){var o=this.opt.jsPDF,h=this.opt.fontFaces,u=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:u,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,o.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,o.context2d.posX=this.opt.x,o.context2d.posY=this.opt.y,o.context2d.margin=this.opt.margin,o.context2d.fontFaces=h,h)for(var f=0;f<h.length;++f){var l=h[f],p=l.src.find(function(w){return w.format==="truetype"});p&&o.addFont(p.url,l.ref.name,l.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,o.context2d.save(!0),s(this.prop.container,d)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,s,o){return(o=o||"pdf").toLowerCase()==="img"||o.toLowerCase()==="image"?this.outputImg(a,s):this.outputPdf(a,s)},i.prototype.outputPdf=function(a,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,s)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(r(a)!=="object")return this;var s=Object.keys(a||{}).map(function(o){if(o in i.template.prop)return function(){this.prop[o]=a[o]};switch(o){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[o]=a[o]}}},this);return this.then(function(){return this.thenList(s)})},i.prototype.get=function(a,s){return this.then(function(){var o=a in i.template.prop?this.prop[a]:this.opt[a];return s?s(o):o})},i.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function s(o,h){return Math.floor(o*h/72*96)}return this.then(function(){(a=a||ae.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:s(a.inner.width,a.k),height:s(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,s,o,h){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),o!=null&&(this.progress.n=o),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,s,o,h){return this.setProgress(a?this.progress.val+a:null,s||null,o?this.progress.n+o:null,h?this.progress.stack.concat(h):null)},i.prototype.then=function(a,s){var o=this;return this.thenCore(a,s,function(h,u){return o.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(d){return o.updateProgress(null,h),d}).then(h,u).then(function(d){return o.updateProgress(1),d})})},i.prototype.thenCore=function(a,s,o){o=o||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),u=o.call(h,a,s);return i.convert(u,this.__proto__)},i.prototype.thenExternal=function(a,s){return Promise.prototype.then.call(this,a,s)},i.prototype.thenList=function(a){var s=this;return a.forEach(function(o){s=s.thenCore(o)}),s},i.prototype.catch=function(a){a&&(a=a.bind(this));var s=Promise.prototype.catch.call(this,a);return i.convert(s,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,ae.getPageSize=function(a,s,o){if(Le(a)==="object"){var h=a;a=h.orientation,s=h.unit||s,o=h.format||o}s=s||"mm",o=o||"a4",a=(""+(a||"P")).toLowerCase();var u,d=(""+o).toLowerCase(),f={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(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var l,p=0,w=0;if(f.hasOwnProperty(d))p=f[d][1]/u,w=f[d][0]/u;else try{p=o[1],w=o[0]}catch{throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",w>p&&(l=w,w=p,p=l);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",p>w&&(l=w,w=p,p=l)}return{width:w,height:p,unit:s,k:u,orientation:a}},A.html=function(a,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(c1):null;var o=new i(s);return s.worker?o:o.from(a).doCallback()}}(ae.API),ae.API.addJS=function(A){return aB=A,this.internal.events.subscribe("postPutResources",function(){cc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(cc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),iB=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+aB+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){cc!==void 0&&iB!==void 0&&this.internal.out("/Names <</JavaScript "+cc+" 0 R>>")}),this},function(A){var t;A.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],s=r.exec(a);if(s!=null){var o=s[1];e.internal.newObjectDeferredBegin(o,!1)}e.internal.write(a)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,u=[];for(i=0;i<h;i++){var d=e.internal.newObject();u.push(d);var f=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var l=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<u.length;i++)e.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+l+" 0 R"),e.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),A.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,i){var a={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(a),a},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var a=r.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var o=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var h=0;h<r.children.length;h++)this.renderItems(r.children[h])},e.outline.line=function(r){this.ctx.val+=r+`\r
`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},e.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(ae.API),function(A){var t=[192,193,194,195,196,197,198,199];A.processJPEG=function(e,r,n,i,a,s){var o,h=this.decode.DCT_DECODE,u=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=a||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(o=function(d){for(var f,l=256*d.charCodeAt(4)+d.charCodeAt(5),p=d.length,w={width:0,height:0,numcomponents:1},y=4;y<p;y+=2){if(y+=l,t.indexOf(d.charCodeAt(y+1))!==-1){f=256*d.charCodeAt(y+5)+d.charCodeAt(y+6),w={width:256*d.charCodeAt(y+7)+d.charCodeAt(y+8),height:f,numcomponents:d.charCodeAt(y+9)};break}l=256*d.charCodeAt(y+2)+d.charCodeAt(y+3)}return w}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:e,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:h,index:r,alias:n}}return u}}(ae.API);var bs,lc,oB,hB,uB,KE=function(){var A,t,e;function r(i){var a,s,o,h,u,d,f,l,p,w,y,v,C,x;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},d=null;;){switch(a=this.readUInt32(),p=function(){var L,k;for(k=[],L=0;L<4;++L)k.push(String.fromCharCode(this.data[this.pos++]));return k}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":d&&this.animation.frames.push(d),this.pos+=4,d={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),h=this.readUInt16()||100,d.delay=1e3*u/h,d.disposeOp=this.data[this.pos++],d.blendOp=this.data[this.pos++],d.data=[];break;case"IDAT":case"fdAT":for(p==="fdAT"&&(this.pos+=4,a-=4),i=(d!=null?d.data:void 0)||this.imgData,v=0;0<=a?v<a:v>a;0<=a?++v:--v)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(o=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>o)throw new Error("More transparent colors than palette size");if((w=o-this.transparency.indexed.length)>0)for(C=0;0<=w?C<w:C>w;0<=w?++C:--C)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":f=(y=this.read(a)).indexOf(0),l=String.fromCharCode.apply(String,y.slice(0,f)),this.text[l]=String.fromCharCode.apply(String,y.slice(f+1));break;case"IEND":return d&&this.animation.frames.push(d),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(x=this.colorType)===4||x===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var a,s;for(s=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)s.push(this.data[this.pos++]);return s},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),o=0,h=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function u(d,f,l,p){var w,y,v,C,x,L,k,M,H,N,V,$,U,S,O,D,nt,Y,at,rt,ot,At=Math.ceil((h.width-d)/l),pt=Math.ceil((h.height-f)/p),F=h.width==At&&h.height==pt;for(S=a*At,$=F?s:new Uint8Array(S*pt),L=i.length,U=0,y=0;U<pt&&o<L;){switch(i[o++]){case 0:for(C=nt=0;nt<S;C=nt+=1)$[y++]=i[o++];break;case 1:for(C=Y=0;Y<S;C=Y+=1)w=i[o++],x=C<a?0:$[y-a],$[y++]=(w+x)%256;break;case 2:for(C=at=0;at<S;C=at+=1)w=i[o++],v=(C-C%a)/a,O=U&&$[(U-1)*S+v*a+C%a],$[y++]=(O+w)%256;break;case 3:for(C=rt=0;rt<S;C=rt+=1)w=i[o++],v=(C-C%a)/a,x=C<a?0:$[y-a],O=U&&$[(U-1)*S+v*a+C%a],$[y++]=(w+Math.floor((x+O)/2))%256;break;case 4:for(C=ot=0;ot<S;C=ot+=1)w=i[o++],v=(C-C%a)/a,x=C<a?0:$[y-a],U===0?O=D=0:(O=$[(U-1)*S+v*a+C%a],D=v&&$[(U-1)*S+(v-1)*a+C%a]),k=x+O-D,M=Math.abs(k-x),N=Math.abs(k-O),V=Math.abs(k-D),H=M<=N&&M<=V?x:N<=V?O:D,$[y++]=(w+H)%256;break;default:throw new Error("Invalid filter algorithm: "+i[o-1])}if(!F){var R=((f+U*p)*h.width+d)*a,G=U*S;for(C=0;C<At;C+=1){for(var q=0;q<a;q+=1)s[R++]=$[G++];R+=(l-1)*a}}U++}}return i=xE(i),h.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},r.prototype.decodePalette=function(){var i,a,s,o,h,u,d,f,l;for(s=this.palette,u=this.transparency.indexed||[],h=new Uint8Array((u.length||0)+s.length),o=0,i=0,a=d=0,f=s.length;d<f;a=d+=3)h[o++]=s[a],h[o++]=s[a+1],h[o++]=s[a+2],h[o++]=(l=u[i++])!=null?l:255;return h},r.prototype.copyToImageData=function(i,a){var s,o,h,u,d,f,l,p,w,y,v;if(o=this.colors,w=null,s=this.hasAlphaChannel,this.palette.length&&(w=(v=this._decodedPalette)!=null?v:this._decodedPalette=this.decodePalette(),o=4,s=!0),p=(h=i.data||i).length,d=w||a,u=f=0,o===1)for(;u<p;)l=w?4*a[u/4]:f,y=d[l++],h[u++]=y,h[u++]=y,h[u++]=y,h[u++]=s?d[l++]:255,f=l;else for(;u<p;)l=w?4*a[u/4]:f,h[u++]=d[l++],h[u++]=d[l++],h[u++]=d[l++],h[u++]=s?d[l++]:255,f=l},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(ie)==="[object Window]"){try{t=ie.document.createElement("canvas"),e=t.getContext("2d")}catch{return!1}return!0}return!1};return n(),A=function(i){var a;if(n()===!0)return e.width=i.width,e.height=i.height,e.clearRect(0,0,i.width,i.height),e.putImageData(i,0,0),(a=new Image).src=t.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var a,s,o,h,u,d,f,l;if(this.animation){for(l=[],s=u=0,d=(f=this.animation.frames).length;u<d;s=++u)a=f[s],o=i.createImageData(a.width,a.height),h=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(o,h),a.imageData=o,l.push(a.image=A(o));return l}},r.prototype.renderFrame=function(i,a){var s,o,h;return s=(o=this.animation.frames)[a],h=o[a-1],a===0&&i.clearRect(0,0,this.width,this.height),(h!=null?h.disposeOp:void 0)===1?i.clearRect(h.xOffset,h.yOffset,h.width,h.height):(h!=null?h.disposeOp:void 0)===2&&i.putImageData(h.imageData,h.xOffset,h.yOffset),s.blendOp===0&&i.clearRect(s.xOffset,s.yOffset,s.width,s.height),i.drawImage(s.image,s.xOffset,s.yOffset)},r.prototype.animate=function(i){var a,s,o,h,u,d,f=this;return s=0,d=this.animation,h=d.numFrames,o=d.frames,u=d.numPlays,(a=function(){var l,p;if(l=s++%h,p=o[l],f.renderFrame(i,l),h>1&&s/h<u)return f.animation._timeout=setTimeout(a,p.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var a,s;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(s=a.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),a.putImageData(s,0,0))},r}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <[email protected]>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function VE(A){var t=0;if(A[t++]!==71||A[t++]!==73||A[t++]!==70||A[t++]!==56||(A[t++]+1&253)!=56||A[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=A[t++]|A[t++]<<8,r=A[t++]|A[t++]<<8,n=A[t++],i=n>>7,a=1<<(7&n)+1;A[t++],A[t++];var s=null,o=null;i&&(s=t,o=a,t+=3*a);var h=!0,u=[],d=0,f=null,l=0,p=null;for(this.width=e,this.height=r;h&&t<A.length;)switch(A[t++]){case 33:switch(A[t++]){case 255:if(A[t]!==11||A[t+1]==78&&A[t+2]==69&&A[t+3]==84&&A[t+4]==83&&A[t+5]==67&&A[t+6]==65&&A[t+7]==80&&A[t+8]==69&&A[t+9]==50&&A[t+10]==46&&A[t+11]==48&&A[t+12]==3&&A[t+13]==1&&A[t+16]==0)t+=14,p=A[t++]|A[t++]<<8,t++;else for(t+=12;;){if(!((U=A[t++])>=0))throw Error("Invalid block size");if(U===0)break;t+=U}break;case 249:if(A[t++]!==4||A[t+4]!==0)throw new Error("Invalid graphics extension block.");var w=A[t++];d=A[t++]|A[t++]<<8,f=A[t++],!(1&w)&&(f=null),l=w>>2&7,t++;break;case 254:for(;;){if(!((U=A[t++])>=0))throw Error("Invalid block size");if(U===0)break;t+=U}break;default:throw new Error("Unknown graphic control label: 0x"+A[t-1].toString(16))}break;case 44:var y=A[t++]|A[t++]<<8,v=A[t++]|A[t++]<<8,C=A[t++]|A[t++]<<8,x=A[t++]|A[t++]<<8,L=A[t++],k=L>>6&1,M=1<<(7&L)+1,H=s,N=o,V=!1;L>>7&&(V=!0,H=t,N=M,t+=3*M);var $=t;for(t++;;){var U;if(!((U=A[t++])>=0))throw Error("Invalid block size");if(U===0)break;t+=U}u.push({x:y,y:v,width:C,height:x,has_local_palette:V,palette_offset:H,palette_size:N,data_offset:$,data_length:t-$,transparent_index:f,interlaced:!!k,delay:d,disposal:l});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+A[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(S){if(S<0||S>=u.length)throw new Error("Frame index out of range.");return u[S]},this.decodeAndBlitFrameBGRA=function(S,O){var D=this.frameInfo(S),nt=D.width*D.height,Y=new Uint8Array(nt);cB(A,D.data_offset,Y,nt);var at=D.palette_offset,rt=D.transparent_index;rt===null&&(rt=256);var ot=D.width,At=e-ot,pt=ot,F=4*(D.y*e+D.x),R=4*((D.y+D.height)*e+D.x),G=F,q=4*At;D.interlaced===!0&&(q+=4*e*7);for(var Z=8,ct=0,ft=Y.length;ct<ft;++ct){var gt=Y[ct];if(pt===0&&(pt=ot,(G+=q)>=R&&(q=4*At+4*e*(Z-1),G=F+(ot+At)*(Z<<1),Z>>=1)),gt===rt)G+=4;else{var St=A[at+3*gt],Ut=A[at+3*gt+1],Ht=A[at+3*gt+2];O[G++]=Ht,O[G++]=Ut,O[G++]=St,O[G++]=255}--pt}},this.decodeAndBlitFrameRGBA=function(S,O){var D=this.frameInfo(S),nt=D.width*D.height,Y=new Uint8Array(nt);cB(A,D.data_offset,Y,nt);var at=D.palette_offset,rt=D.transparent_index;rt===null&&(rt=256);var ot=D.width,At=e-ot,pt=ot,F=4*(D.y*e+D.x),R=4*((D.y+D.height)*e+D.x),G=F,q=4*At;D.interlaced===!0&&(q+=4*e*7);for(var Z=8,ct=0,ft=Y.length;ct<ft;++ct){var gt=Y[ct];if(pt===0&&(pt=ot,(G+=q)>=R&&(q=4*At+4*e*(Z-1),G=F+(ot+At)*(Z<<1),Z>>=1)),gt===rt)G+=4;else{var St=A[at+3*gt],Ut=A[at+3*gt+1],Ht=A[at+3*gt+2];O[G++]=St,O[G++]=Ut,O[G++]=Ht,O[G++]=255}--pt}}}function cB(A,t,e,r){for(var n=A[t++],i=1<<n,a=i+1,s=a+1,o=n+1,h=(1<<o)-1,u=0,d=0,f=0,l=A[t++],p=new Int32Array(4096),w=null;;){for(;u<16&&l!==0;)d|=A[t++]<<u,u+=8,l===1?l=A[t++]:--l;if(u<o)break;var y=d&h;if(d>>=o,u-=o,y!==i){if(y===a)break;for(var v=y<s?y:w,C=0,x=v;x>i;)x=p[x]>>8,++C;var L=x;if(f+C+(v!==y?1:0)>r)return void Ke.log("Warning, gif stream longer than expected.");e[f++]=L;var k=f+=C;for(v!==y&&(e[f++]=L),x=v;C--;)x=p[x],e[--k]=255&x,x>>=8;w!==null&&s<4096&&(p[s++]=w<<8|L,s>=h+1&&o<12&&(++o,h=h<<1|1)),w=y}else s=a+1,h=(1<<(o=n+1))-1,w=null}return f!==r&&Ke.log("Warning, gif stream shorter than expected."),e}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function l1(A){var t,e,r,n,i,a=Math.floor,s=new Array(64),o=new Array(64),h=new Array(64),u=new Array(64),d=new Array(65535),f=new Array(65535),l=new Array(64),p=new Array(64),w=[],y=0,v=7,C=new Array(64),x=new Array(64),L=new Array(64),k=new Array(256),M=new Array(2048),H=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],V=[0,1,2,3,4,5,6,7,8,9,10,11],$=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],U=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],S=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],O=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],nt=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Y(F,R){for(var G=0,q=0,Z=new Array,ct=1;ct<=16;ct++){for(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Qr,Ft[Ot+32]=BA-Qr;var wr=.707106781*(Hr+Fr);Ft[Ot+16]=Fr+wr,Ft[Ot+48]=Fr-wr;var Jr=.382683433*((BA=mr+nr)-(Hr=rA+Yr)),X=.5411961*BA+Jr,Dt=1.306562965*Hr+Jr,Lt=.707106781*(Qr=nr+rA),be=Yr+Lt,Re=Yr-Lt;Ft[Ot+40]=Re+X,Ft[Ot+24]=Re-X,Ft[Ot+8]=be+Dt,Ft[Ot+56]=be-Dt,Ot++}for(Zt=0;Zt<64;++Zt)oe=Ft[Zt]*It[Zt],l[Zt]=oe>0?oe+.5|0:oe-.5|0;return l}(F,R),Ut=0;Ut<64;++Ut)p[H[Ut]]=St[Ut];var Ht=p[0]-G;G=p[0],Ht==0?at(q[0]):(at(q[f[ct=32767+Ht]]),at(d[ct]));for(var Mt=63;Mt>0&&p[Mt]==0;)Mt--;if(Mt==0)return at(ft),G;for(var qt,mt=1;mt<=Mt;){for(var z=mt;p[mt]==0&&mt<=Mt;)++mt;var Ae=mt-z;if(Ae>=16){qt=Ae>>4;for(var $t=1;$t<=qt;++$t)at(gt);Ae&=15}ct=32767+p[mt],at(Z[(Ae<<4)+f[ct]]),at(d[ct]),mt++}return Mt!=63&&at(ft),G}function pt(F){F=Math.min(Math.max(F,1),100),i!=F&&(function(R){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],q=0;q<64;q++){var Z=a((G[q]*R+50)/100);Z=Math.min(Math.max(Z,1),255),s[H[q]]=Z}for(var ct=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ft=0;ft<64;ft++){var gt=a((ct[ft]*R+50)/100);gt=Math.min(Math.max(gt,1),255),o[H[ft]]=gt}for(var St=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ut=0,Ht=0;Ht<8;Ht++)for(var Mt=0;Mt<8;Mt++)h[Ut]=1/(s[H[Ut]]*St[Ht]*St[Mt]*8),u[Ut]=1/(o[H[Ut]]*St[Ht]*St[Mt]*8),Ut++}(F<50?Math.floor(5e3/F):Math.floor(200-2*F)),i=F)}this.encode=function(F,R){R&&pt(R),w=new Array,y=0,v=7,ot(65496),ot(65504),ot(16),rt(74),rt(70),rt(73),rt(70),rt(0),rt(1),rt(1),rt(0),ot(1),ot(1),rt(0),rt(0),function(){ot(65499),ot(132),rt(0);for(var Pt=0;Pt<64;Pt++)rt(s[Pt]);rt(1);for(var zt=0;zt<64;zt++)rt(o[zt])}(),function(Pt,zt){ot(65472),ot(17),rt(8),ot(zt),ot(Pt),rt(3),rt(1),rt(17),rt(0),rt(2),rt(17),rt(1),rt(3),rt(17),rt(1)}(F.width,F.height),function(){ot(65476),ot(418),rt(0);for(var Pt=0;Pt<16;Pt++)rt(N[Pt+1]);for(var zt=0;zt<=11;zt++)rt(V[zt]);rt(16);for(var Xt=0;Xt<16;Xt++)rt($[Xt+1]);for(var re=0;re<=161;re++)rt(U[re]);rt(1);for(var se=0;se<16;se++)rt(S[se+1]);for(var we=0;we<=11;we++)rt(O[we]);rt(17);for(var Fe=0;Fe<16;Fe++)rt(D[Fe+1]);for(var Zt=0;Zt<=161;Zt++)rt(nt[Zt])}(),ot(65498),ot(12),rt(3),rt(1),rt(0),rt(2),rt(17),rt(3),rt(17),rt(0),rt(63),rt(0);var G=0,q=0,Z=0;y=0,v=7,this.encode.displayName="_encode_";for(var ct,ft,gt,St,Ut,Ht,Mt,qt,mt,z=F.data,Ae=F.width,$t=F.height,Ft=4*Ae,It=0;It<$t;){for(ct=0;ct<Ft;){for(Ut=Ft*It+ct,Mt=-1,qt=0,mt=0;mt<64;mt++)Ht=Ut+(qt=mt>>3)*Ft+(Mt=4*(7&mt)),It+qt>=$t&&(Ht-=Ft*(It+1+qt-$t)),ct+Mt>=Ft&&(Ht-=ct+Mt-Ft+4),ft=z[Ht++],gt=z[Ht++],St=z[Ht++],C[mt]=(M[ft]+M[gt+256>>0]+M[St+512>>0]>>16)-128,x[mt]=(M[ft+768>>0]+M[gt+1024>>0]+M[St+1280>>0]>>16)-128,L[mt]=(M[ft+1280>>0]+M[gt+1536>>0]+M[St+1792>>0]>>16)-128;G=At(C,h,G,t,r),q=At(x,u,q,e,n),Z=At(L,u,Z,e,n),ct+=32}It+=8}if(v>=0){var Tt=[];Tt[1]=v+1,Tt[0]=(1<<v+1)-1,at(Tt)}return ot(65497),new Uint8Array(w)},A=A||50,function(){for(var F=String.fromCharCode,R=0;R<256;R++)k[R]=F(R)}(),t=Y(N,V),e=Y(S,O),r=Y($,U),n=Y(D,nt),function(){for(var F=1,R=2,G=1;G<=15;G++){for(var q=F;q<R;q++)f[32767+q]=G,d[32767+q]=[],d[32767+q][1]=G,d[32767+q][0]=q;for(var Z=-(R-1);Z<=-F;Z++)f[32767+Z]=G,d[32767+Z]=[],d[32767+Z][1]=G,d[32767+Z][0]=R-1+Z;F<<=1,R<<=1}}(),function(){for(var F=0;F<256;F++)M[F]=19595*F,M[F+256>>0]=38470*F,M[F+512>>0]=7471*F+32768,M[F+768>>0]=-11059*F,M[F+1024>>0]=-21709*F,M[F+1280>>0]=32768*F+8421375,M[F+1536>>0]=-27439*F,M[F+1792>>0]=-5329*F}(),pt(A)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function un(A,t){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function lB(A){function t(N){if(!N)throw Error("assert :P")}function e(N,V,$){for(var U=0;4>U;U++)if(N[V+U]!=$.charCodeAt(U))return!0;return!1}function r(N,V,$,U,S){for(var O=0;O<S;O++)N[V+O]=$[U+O]}function n(N,V,$,U){for(var S=0;S<U;S++)N[V+S]=$}function i(N){return new Int32Array(N)}function a(N,V){for(var $=[],U=0;U<N;U++)$.push(new V);return $}function s(N,V){var $=[];return function U(S,O,D){for(var nt=D[O],Y=0;Y<nt&&(S.push(D.length>O+1?[]:new V),!(D.length<O+1));Y++)U(S[Y],O+1,D)}($,0,N),$}var o=function(){var N=this;function V(c,g){for(var B=1<<g-1>>>0;c&B;)B>>>=1;return B?(c&B-1)+B:c}function $(c,g,B,b,Q){t(!(b%B));do c[g+(b-=B)]=Q;while(0<b)}function U(c,g,B,b,Q){if(t(2328>=Q),512>=Q)var I=i(512);else if((I=i(Q))==null)return 0;return function(_,P,T,j,tt,lt){var dt,st,bt=P,wt=1<<T,et=i(16),it=i(16);for(t(tt!=0),t(j!=null),t(_!=null),t(0<T),st=0;st<tt;++st){if(15<j[st])return 0;++et[j[st]]}if(et[0]==tt)return 0;for(it[1]=0,dt=1;15>dt;++dt){if(et[dt]>1<<dt)return 0;it[dt+1]=it[dt]+et[dt]}for(st=0;st<tt;++st)dt=j[st],0<j[st]&&(lt[it[dt]++]=st);if(it[15]==1)return(j=new S).g=0,j.value=lt[0],$(_,bt,1,wt,j),wt;var vt,Ct=-1,yt=wt-1,Kt=0,kt=1,ne=1,Rt=1<<T;for(st=0,dt=1,tt=2;dt<=T;++dt,tt<<=1){if(kt+=ne<<=1,0>(ne-=et[dt]))return 0;for(;0<et[dt];--et[dt])(j=new S).g=dt,j.value=lt[st++],$(_,bt+Kt,tt,Rt,j),Kt=V(Kt,dt)}for(dt=T+1,tt=2;15>=dt;++dt,tt<<=1){if(kt+=ne<<=1,0>(ne-=et[dt]))return 0;for(;0<et[dt];--et[dt]){if(j=new S,(Kt&yt)!=Ct){for(bt+=Rt,vt=1<<(Ct=dt)-T;15>Ct&&!(0>=(vt-=et[Ct]));)++Ct,vt<<=1;wt+=Rt=1<<(vt=Ct-T),_[P+(Ct=Kt&yt)].g=vt+T,_[P+Ct].value=bt-P-Ct}j.g=dt-T,j.value=lt[st++],$(_,bt+(Kt>>T),tt,Rt,j),Kt=V(Kt,dt)}}return kt!=2*it[15]-1?0:wt}(c,g,B,b,Q,I)}function S(){this.value=this.g=0}function O(){this.value=this.g=0}function D(){this.G=a(5,S),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Ur,O)}function nt(c,g,B,b){t(c!=null),t(g!=null),t(2147483648>b),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=g,c.pa=B,c.Jd=g,c.Yc=B+b,c.Zc=4<=b?B+b-4+1:B,ct(c)}function Y(c,g){for(var B=0;0<g--;)B|=gt(c,128)<<g;return B}function at(c,g){var B=Y(c,g);return ft(c)?-B:B}function rt(c,g,B,b){var Q,I=0;for(t(c!=null),t(g!=null),t(4294967288>b),c.Sb=b,c.Ra=0,c.u=0,c.h=0,4<b&&(b=4),Q=0;Q<b;++Q)I+=g[B+Q]<<8*Q;c.Ra=I,c.bb=b,c.oa=g,c.pa=B}function ot(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<Uo-8>>>0,++c.bb,c.u-=8;G(c)&&(c.h=1,c.u=0)}function At(c,g){if(t(0<=g),!c.h&&g<=Eo){var B=R(c)&Qo[g];return c.u+=g,ot(c),B}return c.h=1,c.u=0}function pt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function F(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function R(c){return c.Ra>>>(c.u&Uo-1)>>>0}function G(c){return t(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>Uo}function q(c,g){c.u=g,c.h=G(c)}function Z(c){c.u>=Cu&&(t(c.u>=Cu),ot(c))}function ct(c){t(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(t(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function ft(c){return Y(c,1)}function gt(c,g){var B=c.Ca;0>c.b&&ct(c);var b=c.b,Q=B*g>>>8,I=(c.I>>>b>Q)+0;for(I?(B-=Q,c.I-=Q+1<<b>>>0):B=Q+1,b=B,Q=0;256<=b;)Q+=8,b>>=8;return b=7^Q+Sr[b],c.b-=b,c.Ca=(B<<b)-1,I}function St(c,g,B){c[g+0]=B>>24&255,c[g+1]=B>>16&255,c[g+2]=B>>8&255,c[g+3]=B>>0&255}function Ut(c,g){return c[g+0]<<0|c[g+1]<<8}function Ht(c,g){return Ut(c,g)|c[g+2]<<16}function Mt(c,g){return Ut(c,g)|Ut(c,g+2)<<16}function qt(c,g){var B=1<<g;return t(c!=null),t(0<g),c.X=i(B),c.X==null?0:(c.Mb=32-g,c.Xa=g,1)}function mt(c,g){t(c!=null),t(g!=null),t(c.Xa==g.Xa),r(g.X,0,c.X,0,1<<g.Xa)}function z(){this.X=[],this.Xa=this.Mb=0}function Ae(c,g,B,b){t(B!=null),t(b!=null);var Q=B[0],I=b[0];return Q==0&&(Q=(c*I+g/2)/g),I==0&&(I=(g*Q+c/2)/c),0>=Q||0>=I?0:(B[0]=Q,b[0]=I,1)}function $t(c,g){return c+(1<<g)-1>>>g}function Ft(c,g){return((4278255360&c)+(4278255360&g)>>>0&4278255360)+((16711935&c)+(16711935&g)>>>0&16711935)>>>0}function It(c,g){N[g]=function(B,b,Q,I,_,P,T){var j;for(j=0;j<_;++j){var tt=N[c](P[T+j-1],Q,I+j);P[T+j]=Ft(B[b+j],tt)}}}function Tt(){this.ud=this.hd=this.jd=0}function Pt(c,g){return((4278124286&(c^g))>>>1)+(c&g)>>>0}function zt(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function Xt(c,g){return zt(c+(c-g+.5>>1))}function re(c,g,B){return Math.abs(g-B)-Math.abs(c-B)}function se(c,g,B,b,Q,I,_){for(b=I[_-1],B=0;B<Q;++B)I[_+B]=b=Ft(c[g+B],b)}function we(c,g,B,b,Q){var I;for(I=0;I<B;++I){var _=c[g+I],P=_>>8&255,T=16711935&(T=(T=16711935&_)+((P<<16)+P));b[Q+I]=(4278255360&_)+T>>>0}}function Fe(c,g){g.jd=c>>0&255,g.hd=c>>8&255,g.ud=c>>16&255}function Zt(c,g,B,b,Q,I){var _;for(_=0;_<b;++_){var P=g[B+_],T=P>>>8,j=P,tt=255&(tt=(tt=P>>>16)+((c.jd<<24>>24)*(T<<24>>24)>>>5));j=255&(j=(j=j+((c.hd<<24>>24)*(T<<24>>24)>>>5))+((c.ud<<24>>24)*(tt<<24>>24)>>>5)),Q[I+_]=(4278255360&P)+(tt<<16)+j}}function oe(c,g,B,b,Q){N[g]=function(I,_,P,T,j,tt,lt,dt,st){for(T=lt;T<dt;++T)for(lt=0;lt<st;++lt)j[tt++]=Q(P[b(I[_++])])},N[c]=function(I,_,P,T,j,tt,lt){var dt=8>>I.b,st=I.Ea,bt=I.K[0],wt=I.w;if(8>dt)for(I=(1<<I.b)-1,wt=(1<<dt)-1;_<P;++_){var et,it=0;for(et=0;et<st;++et)et&I||(it=b(T[j++])),tt[lt++]=Q(bt[it&wt]),it>>=dt}else N["VP8LMapColor"+B](T,j,bt,wt,tt,lt,_,P,st)}}function Ot(c,g,B,b,Q){for(B=g+B;g<B;){var I=c[g++];b[Q++]=I>>16&255,b[Q++]=I>>8&255,b[Q++]=I>>0&255}}function We(c,g,B,b,Q){for(B=g+B;g<B;){var I=c[g++];b[Q++]=I>>16&255,b[Q++]=I>>8&255,b[Q++]=I>>0&255,b[Q++]=I>>24&255}}function Be(c,g,B,b,Q){for(B=g+B;g<B;){var I=(_=c[g++])>>16&240|_>>12&15,_=_>>0&240|_>>28&15;b[Q++]=I,b[Q++]=_}}function tA(c,g,B,b,Q){for(B=g+B;g<B;){var I=(_=c[g++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;b[Q++]=I,b[Q++]=_}}function ye(c,g,B,b,Q){for(B=g+B;g<B;){var I=c[g++];b[Q++]=I>>0&255,b[Q++]=I>>8&255,b[Q++]=I>>16&255}}function Ie(c,g,B,b,Q,I){if(I==0)for(B=g+B;g<B;)St(b,((I=c[g++])[0]>>24|I[1]>>8&65280|I[2]<<8&16711680|I[3]<<24)>>>0),Q+=32;else r(b,Q,c,g,B)}function HA(c,g){N[g][0]=N[c+"0"],N[g][1]=N[c+"1"],N[g][2]=N[c+"2"],N[g][3]=N[c+"3"],N[g][4]=N[c+"4"],N[g][5]=N[c+"5"],N[g][6]=N[c+"6"],N[g][7]=N[c+"7"],N[g][8]=N[c+"8"],N[g][9]=N[c+"9"],N[g][10]=N[c+"10"],N[g][11]=N[c+"11"],N[g][12]=N[c+"12"],N[g][13]=N[c+"13"],N[g][14]=N[c+"0"],N[g][15]=N[c+"0"]}function Ce(c){return c==gm||c==pm||c==nf||c==mm}function QA(){this.eb=[],this.size=this.A=this.fb=0}function Me(){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 WA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new QA,this.f.kb=new Me,this.sd=null}function fe(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Oe(){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 he(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function Ee(c,g){var B=c.T,b=g.ba.f.RGBA,Q=b.eb,I=b.fb+c.ka*b.A,_=rn[g.ba.S],P=c.y,T=c.O,j=c.f,tt=c.N,lt=c.ea,dt=c.W,st=g.cc,bt=g.dc,wt=g.Mc,et=g.Nc,it=c.ka,vt=c.ka+c.T,Ct=c.U,yt=Ct+1>>1;for(it==0?_(P,T,null,null,j,tt,lt,dt,j,tt,lt,dt,Q,I,null,null,Ct):(_(g.ec,g.fc,P,T,st,bt,wt,et,j,tt,lt,dt,Q,I-b.A,Q,I,Ct),++B);it+2<vt;it+=2)st=j,bt=tt,wt=lt,et=dt,tt+=c.Rc,dt+=c.Rc,I+=2*b.A,_(P,(T+=2*c.fa)-c.fa,P,T,st,bt,wt,et,j,tt,lt,dt,Q,I-b.A,Q,I,Ct);return T+=c.fa,c.j+vt<c.o?(r(g.ec,g.fc,P,T,Ct),r(g.cc,g.dc,j,tt,yt),r(g.Mc,g.Nc,lt,dt,yt),B--):1&vt||_(P,T,null,null,j,tt,lt,dt,j,tt,lt,dt,Q,I+b.A,null,null,Ct),B}function yn(c,g,B){var b=c.F,Q=[c.J];if(b!=null){var I=c.U,_=g.ba.S,P=_==rf||_==nf;g=g.ba.f.RGBA;var T=[0],j=c.ka;T[0]=c.T,c.Kb&&(j==0?--T[0]:(--j,Q[0]-=c.width),c.j+c.ka+c.T==c.o&&(T[0]=c.o-c.j-j));var tt=g.eb;j=g.fb+j*g.A,c=Jd(b,Q[0],c.width,I,T,tt,j+(P?0:3),g.A),t(B==T),c&&Ce(_)&&ua(tt,j,P,I,T,g.A)}return 0}function EA(c){var g=c.ma,B=g.ba.S,b=11>B,Q=B==ef||B==Af||B==rf||B==fm||B==12||Ce(B);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!yu(g.Oa,c,Q?11:12))return 0;if(Q&&Ce(B)&&Qt(),c.da)alert("todo:use_scaling");else{if(b){if(g.Ib=he,c.Kb){if(B=c.U+1>>1,g.memory=i(c.U+2*B),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+c.U,g.Mc=g.cc,g.Nc=g.dc+B,g.Ib=Ee,Qt()}}else alert("todo:EmitYUV");Q&&(g.Jb=yn,b&&ut())}if(b&&!Lx){for(c=0;256>c;++c)rq[c]=89858*(c-128)+sf>>af,aq[c]=-22014*(c-128)+sf,iq[c]=-45773*(c-128),nq[c]=113618*(c-128)+sf>>af;for(c=Su;c<vm;++c)g=76283*(c-16)+sf>>af,sq[c-Su]=Zr(g,255),oq[c-Su]=Zr(g+8>>4,15);Lx=1}return 1}function kr(c){var g=c.ma,B=c.U,b=c.T;return t(!(1&c.ka)),0>=B||0>=b?0:(B=g.Ib(c,g),g.Jb!=null&&g.Jb(c,g,B),g.Dc+=B,1)}function Xr(c){c.ma.memory=null}function te(c,g,B,b){return At(c,8)!=47?0:(g[0]=At(c,14)+1,B[0]=At(c,14)+1,b[0]=At(c,1),At(c,3)!=0?0:!c.h)}function pr(c,g){if(4>c)return c+1;var B=c-2>>1;return(2+(1&c)<<B)+At(g,B)+1}function Yr(c,g){return 120<g?g-120:1<=(B=((B=GW[g-1])>>4)*c+(8-(15&B)))?B:1;var B}function wA(c,g,B){var b=R(B),Q=c[g+=255&b].g-8;return 0<Q&&(q(B,B.u+8),b=R(B),g+=c[g].value,g+=b&(1<<Q)-1),q(B,B.u+c[g].g),c[g].value}function rA(c,g,B){return B.g+=c.g,B.value+=c.value<<g>>>0,t(8>=B.g),c.g}function nA(c,g,B){var b=c.xc;return t((g=b==0?0:c.vc[c.md*(B>>b)+(g>>b)])<c.Wb),c.Ya[g]}function nr(c,g,B,b){var Q=c.ab,I=c.c*g,_=c.C;g=_+g;var P=B,T=b;for(b=c.Ta,B=c.Ua;0<Q--;){var j=c.gc[Q],tt=_,lt=g,dt=P,st=T,bt=(T=b,P=B,j.Ea);switch(t(tt<lt),t(lt<=j.nc),j.hc){case 2:Yd(dt,st,(lt-tt)*bt,T,P);break;case 0:var wt=tt,et=lt,it=T,vt=P,Ct=(Rt=j).Ea;wt==0&&(um(dt,st,null,null,1,it,vt),se(dt,st+1,0,0,Ct-1,it,vt+1),st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[0]+=4*I.v,I.ka=B-I.j,I.U=I.va-I.v,I.T=b-B,B=1),B){if(P=P[0],11>(B=c.ca).S){var tt=B.f.RGBA,lt=(b=B.S,Q=I.U,I=I.T,j=tt.eb,tt.A),dt=I;for(tt=tt.fb+c.Ma*tt.A;0<dt--;){var st=_,bt=P,wt=Q,et=j,it=tt;switch(b){case tf:Qn(st,bt,wt,et,it);break;case ef:sa(st,bt,wt,et,it);break;case gm:sa(st,bt,wt,et,it),ua(et,it,0,wt,1,0);break;case vx:So(st,bt,wt,et,it);break;case Af:Ie(st,bt,wt,et,it,1);break;case pm:Ie(st,bt,wt,et,it,1),ua(et,it,0,wt,1,0);break;case rf:Ie(st,bt,wt,et,it,0);break;case nf:Ie(st,bt,wt,et,it,0),ua(et,it,1,wt,1,0);break;case fm:qn(st,bt,wt,et,it);break;case mm:qn(st,bt,wt,et,it),_o(et,it,wt,1,0);break;case yx:Bi(st,bt,wt,et,it);break;default:t(0)}P+=T,tt+=lt}c.Ma+=I}else alert("todo:EmitRescaledRowsYUVA");t(c.Ma<=B.height)}}c.C=g,t(c.C<=c.i)}function mr(c){var g;if(0<c.ua)return 0;for(g=0;g<c.Wb;++g){var B=c.Ya[g].G,b=c.Ya[g].H;if(0<B[1][b[1]+0].g||0<B[2][b[2]+0].g||0<B[3][b[3]+0].g)return 0}return 1}function BA(c,g,B,b,Q,I){if(c.Z!=0){var _=c.qd,P=c.rd;for(t(la[c.Z]!=null);g<B;++g)la[c.Z](_,P,b,Q,b,Q,I),_=b,P=Q,Q+=I;c.qd=_,c.rd=P}}function Fr(c,g){var B=c.l.ma,b=B.Z==0||B.Z==1?c.l.j:c.C;if(b=c.C<b?b:c.C,t(g<=c.l.o),g>b){var Q=c.l.width,I=B.ca,_=B.tb+Q*b,P=c.V,T=c.Ba+c.c*b,j=c.gc;t(c.ab==1),t(j[0].hc==3),cm(j[0],b,g,P,T,I,_),BA(B,b,g,I,_,Q)}c.C=c.Ma=g}function Qr(c,g,B,b,Q,I,_){var P=c.$/b,T=c.$%b,j=c.m,tt=c.s,lt=B+c.$,dt=lt;Q=B+b*Q;var st=B+b*I,bt=280+tt.ua,wt=c.Pb?P:16777216,et=0<tt.ua?tt.Wa:null,it=tt.wc,vt=lt<st?nA(tt,T,P):null;t(c.C<I),t(st<=Q);var Ct=!1;t:for(;;){for(;Ct||lt<st;){var yt=0;if(P>=wt){var Kt=lt-B;t((wt=c).Pb),wt.wd=wt.m,wt.xd=Kt,0<wt.s.ua&&mt(wt.s.Wa,wt.s.vb),wt=P+VW}if(T&it||(vt=nA(tt,T,P)),t(vt!=null),vt.Qb&&(g[lt]=vt.qb,Ct=!0),!Ct)if(Z(j),vt.jc){yt=j,Kt=g;var kt=lt,ne=vt.pd[R(yt)&Ur-1];t(vt.jc),256>ne.g?(q(yt,yt.u+ne.g),Kt[kt]=ne.value,yt=0):(q(yt,yt.u+ne.g-256),t(256<=ne.value),yt=ne.value),yt==0&&(Ct=!0)}else yt=wA(vt.G[0],vt.H[0],j);if(j.h)break;if(Ct||256>yt){if(!Ct)if(vt.nd)g[lt]=(vt.qb|yt<<8)>>>0;else{if(Z(j),Ct=wA(vt.G[1],vt.H[1],j),Z(j),Kt=wA(vt.G[2],vt.H[2],j),kt=wA(vt.G[3],vt.H[3],j),j.h)break;g[lt]=(kt<<24|Ct<<16|yt<<8|Kt)>>>0}if(Ct=!1,++lt,++T>=b&&(T=0,++P,_!=null&&P<=I&&!(P%16)&&_(c,P),et!=null))for(;dt<lt;)yt=g[dt++],et.X[(506832829*yt&4294967295)>>>et.Mb]=yt}else if(280>yt){if(yt=pr(yt-256,j),Kt=wA(vt.G[4],vt.H[4],j),Z(j),Kt=Yr(b,Kt=pr(Kt,j)),j.h)break;if(lt-B<Kt||Q-lt<yt)break t;for(kt=0;kt<yt;++kt)g[lt+kt]=g[lt+kt-Kt];for(lt+=yt,T+=yt;T>=b;)T-=b,++P,_!=null&&P<=I&&!(P%16)&&_(c,P);if(t(lt<=Q),T&it&&(vt=nA(tt,T,P)),et!=null)for(;dt<lt;)yt=g[dt++],et.X[(506832829*yt&4294967295)>>>et.Mb]=yt}else{if(!(yt<bt))break t;for(Ct=yt-280,t(et!=null);dt<lt;)yt=g[dt++],et.X[(506832829*yt&4294967295)>>>et.Mb]=yt;yt=lt,t(!(Ct>>>(Kt=et).Xa)),g[yt]=Kt.X[Ct],Ct=!0}Ct||t(j.h==G(j))}if(c.Pb&&j.h&&lt<Q)t(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&mt(c.s.vb,c.s.Wa);else{if(j.h)break t;_!=null&&_(c,P>I?I:P),c.a=0,c.$=lt-B}return 1}return c.a=3,0}function Hr(c){t(c!=null),c.vc=null,c.yc=null,c.Ya=null;var g=c.Wa;g!=null&&(g.X=null),c.vb=null,t(c!=null)}function wr(){var c=new hm;return c==null?null:(c.a=0,c.xb=xx,HA("Predictor","VP8LPredictors"),HA("Predictor","VP8LPredictors_C"),HA("PredictorAdd","VP8LPredictorsAdd"),HA("PredictorAdd","VP8LPredictorsAdd_C"),Yd=we,tn=Zt,Qn=Ot,sa=We,qn=Be,Bi=tA,So=ye,N.VP8LMapColor32b=Fu,N.VP8LMapColor8b=lm,c)}function Jr(c,g,B,b,Q){var I=1,_=[c],P=[g],T=b.m,j=b.s,tt=null,lt=0;t:for(;;){if(B)for(;I&&At(T,1);){var dt=_,st=P,bt=b,wt=1,et=bt.m,it=bt.gc[bt.ab],vt=At(et,2);if(bt.Oc&1<<vt)I=0;else{switch(bt.Oc|=1<<vt,it.hc=vt,it.Ea=dt[0],it.nc=st[0],it.K=[null],++bt.ab,t(4>=bt.ab),vt){case 0:case 1:it.b=At(et,3)+2,wt=Jr($t(it.Ea,it.b),$t(it.nc,it.b),0,bt,it.K),it.K=it.K[0];break;case 3:var Ct,yt=At(et,8)+1,Kt=16<yt?0:4<yt?1:2<yt?2:3;if(dt[0]=$t(it.Ea,Kt),it.b=Kt,Ct=wt=Jr(yt,1,0,bt,it.K)){var kt,ne=yt,Rt=it,_e=1<<(8>>Rt.b),ke=i(_e);if(ke==null)Ct=0;else{var Ue=Rt.K[0],xe=Rt.w;for(ke[0]=Rt.K[0][0],kt=1;kt<1*ne;++kt)ke[kt]=Ft(Ue[xe+kt],ke[kt-1]);for(;kt<4*_e;++kt)ke[kt]=0;Rt.K[0]=null,Rt.K[0]=ke,Ct=1}}wt=Ct;break;case 2:break;default:t(0)}I=wt}}if(_=_[0],P=P[0],I&&At(T,1)&&!(I=1<=(lt=At(T,4))&&11>=lt)){b.a=3;break t}var Ve;if(Ve=I)e:{var je,pe,SA,Lr=b,LA=_,Ir=P,He=lt,Rr=B,jr=Lr.m,jA=Lr.s,qA=[null],Br=1,nn=0,Xn=KW[He];A:for(;;){if(Rr&&At(jr,1)){var GA=At(jr,3)+2,xi=$t(LA,GA),ns=$t(Ir,GA),No=xi*ns;if(!Jr(xi,ns,0,Lr,qA))break A;for(qA=qA[0],jA.xc=GA,je=0;je<No;++je){var da=qA[je]>>8&65535;qA[je]=da,da>=Br&&(Br=da+1)}}if(jr.h)break A;for(pe=0;5>pe;++pe){var uA=bx[pe];!pe&&0<He&&(uA+=1<<He),nn<uA&&(nn=uA)}var ym=a(Br*Xn,S),Nx=Br,Px=a(Nx,D);if(Px==null)var hf=null;else t(65536>=Nx),hf=Px;var Lu=i(nn);if(hf==null||Lu==null||ym==null){Lr.a=1;break A}var uf=ym;for(je=SA=0;je<Br;++je){var Ln=hf[je],Po=Ln.G,To=Ln.H,Tx=0,cf=1,Mx=0;for(pe=0;5>pe;++pe){uA=bx[pe],Po[pe]=uf,To[pe]=SA,!pe&&0<He&&(uA+=1<<He);n:{var lf,bm=uA,df=Lr,Iu=Lu,cq=uf,lq=SA,Cm=0,fa=df.m,dq=At(fa,1);if(n(Iu,0,0,bm),dq){var fq=At(fa,1)+1,gq=At(fa,1),Ox=At(fa,gq==0?1:8);Iu[Ox]=1,fq==2&&(Iu[Ox=At(fa,8)]=1);var ff=1}else{var kx=i(19),Hx=At(fa,4)+4;if(19<Hx){df.a=3;var gf=0;break n}for(lf=0;lf<Hx;++lf)kx[jW[lf]]=At(fa,3);var xm=void 0,_u=void 0,Dx=df,pq=kx,pf=bm,Rx=Iu,Fm=0,ga=Dx.m,jx=8,Gx=a(128,S);r:for(;U(Gx,0,7,pq,19);){if(At(ga,1)){var mq=2+2*At(ga,3);if((xm=2+At(ga,mq))>pf)break r}else xm=pf;for(_u=0;_u<pf&&xm--;){Z(ga);var Kx=Gx[0+(127&R(ga))];q(ga,ga.u+Kx.g);var Mo=Kx.value;if(16>Mo)Rx[_u++]=Mo,Mo!=0&&(jx=Mo);else{var wq=Mo==16,Vx=Mo-16,Bq=DW[Vx],$x=At(ga,HW[Vx])+Bq;if(_u+$x>pf)break r;for(var vq=wq?jx:0;0<$x--;)Rx[_u++]=vq}}Fm=1;break r}Fm||(Dx.a=3),ff=Fm}(ff=ff&&!fa.h)&&(Cm=U(cq,lq,8,Iu,bm)),ff&&Cm!=0?gf=Cm:(df.a=3,gf=0)}if(gf==0)break A;if(cf&&RW[pe]==1&&(cf=uf[SA].g==0),Tx+=uf[SA].g,SA+=gf,3>=pe){var Nu,Qm=Lu[0];for(Nu=1;Nu<uA;++Nu)Lu[Nu]>Qm&&(Qm=Lu[Nu]);Mx+=Qm}}if(Ln.nd=cf,Ln.Qb=0,cf&&(Ln.qb=(Po[3][To[3]+0].value<<24|Po[1][To[1]+0].value<<16|Po[2][To[2]+0].value)>>>0,Tx==0&&256>Po[0][To[0]+0].value&&(Ln.Qb=1,Ln.qb+=Po[0][To[0]+0].value<<8)),Ln.jc=!Ln.Qb&&6>Mx,Ln.jc){var mf,Fi=Ln;for(mf=0;mf<Ur;++mf){var pa=mf,ma=Fi.pd[pa],wf=Fi.G[0][Fi.H[0]+pa];256<=wf.value?(ma.g=wf.g+256,ma.value=wf.value):(ma.g=0,ma.value=0,pa>>=rA(wf,8,ma),pa>>=rA(Fi.G[1][Fi.H[1]+pa],16,ma),pa>>=rA(Fi.G[2][Fi.H[2]+pa],0,ma),rA(Fi.G[3][Fi.H[3]+pa],24,ma))}}}jA.vc=qA,jA.Wb=Br,jA.Ya=hf,jA.yc=ym,Ve=1;break e}Ve=0}if(!(I=Ve)){b.a=3;break t}if(0<lt){if(j.ua=1<<lt,!qt(j.Wa,lt)){b.a=1,I=0;break t}}else j.ua=0;var Em=b,zx=_,yq=P,Um=Em.s,Sm=Um.xc;if(Em.c=zx,Em.i=yq,Um.md=$t(zx,Sm),Um.wc=Sm==0?-1:(1<<Sm)-1,B){b.xb=JW;break t}if((tt=i(_*P))==null){b.a=1,I=0;break t}I=(I=Qr(b,tt,0,_,P,P,null))&&!T.h;break t}return I?(Q!=null?Q[0]=tt:(t(tt==null),t(B)),b.$=0,B||Hr(j)):Hr(j),I}function X(c,g){var B=c.c*c.i,b=B+g+16*g;return t(c.c<=g),c.V=i(b),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+B+g,1)}function Dt(c,g){var B=c.C,b=g-B,Q=c.V,I=c.Ba+c.c*B;for(t(g<=c.l.o);0<b;){var _=16<b?16:b,P=c.l.ma,T=c.l.width,j=T*_,tt=P.ca,lt=P.tb+T*B,dt=c.Ta,st=c.Ua;nr(c,_,Q,I),fx(dt,st,tt,lt,j),BA(P,B,B+_,tt,lt,T),b-=_,Q+=_*c.c,B+=_}t(B==g),c.C=c.Ma=g}function Lt(){this.ub=this.yd=this.td=this.Rb=0}function be(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Re(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function DA(){this.Yb=function(){var c=[];return function g(B,b,Q){for(var I=Q[b],_=0;_<I&&(B.push(Q.length>b+1?[]:0),!(Q.length<b+1));_++)g(B[_],b+1,Q)}(c,0,[3,11]),c}()}function iA(){this.jb=i(3),this.Wc=s([4,8],DA),this.Xc=s([4,17],DA)}function gi(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function ir(){this.ld=this.La=this.dd=this.tc=0}function NA(){this.Na=this.la=0}function fo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function iu(){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 G2(){this.uc=this.M=this.Nb=0,this.wa=Array(new ir),this.Y=0,this.ya=Array(new iu),this.aa=0,this.l=new go}function Nd(){this.y=i(16),this.f=i(8),this.ea=i(8)}function K2(){this.cb=this.a=0,this.sc="",this.m=new pt,this.Od=new Lt,this.Kc=new be,this.ed=new gi,this.Qa=new Re,this.Ic=this.$c=this.Aa=0,this.D=new G2,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,pt),this.ia=0,this.pb=a(4,fo),this.Pa=new iA,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Nd),this.Hd=0,this.rb=Array(new NA),this.sb=0,this.wa=Array(new ir),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 iu),this.L=this.aa=0,this.gd=s([4,2],ir),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 go(){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 V2(){var c=new K2;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,Uu||(Uu=Md)),c}function vA(c,g,B){return c.a==0&&(c.a=g,c.sc=B,c.cb=0),0}function Pd(c,g,B){return 3<=B&&c[g+0]==157&&c[g+1]==1&&c[g+2]==42}function Td(c,g){if(c==null)return 0;if(c.a=0,c.sc="OK",g==null)return vA(c,2,"null VP8Io passed to VP8GetHeaders()");var B=g.data,b=g.w,Q=g.ha;if(4>Q)return vA(c,7,"Truncated header.");var I=B[b+0]|B[b+1]<<8|B[b+2]<<16,_=c.Od;if(_.Rb=!(1&I),_.td=I>>1&7,_.yd=I>>4&1,_.ub=I>>5,3<_.td)return vA(c,3,"Incorrect keyframe parameters.");if(!_.yd)return vA(c,4,"Frame not displayable.");b+=3,Q-=3;var P=c.Kc;if(_.Rb){if(7>Q)return vA(c,7,"cannot parse picture header");if(!Pd(B,b,Q))return vA(c,3,"Bad code word");P.c=16383&(B[b+4]<<8|B[b+3]),P.Td=B[b+4]>>6,P.i=16383&(B[b+6]<<8|B[b+5]),P.Ud=B[b+6]>>6,b+=7,Q-=7,c.za=P.c+15>>4,c.Ub=P.i+15>>4,g.width=P.c,g.height=P.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,n((I=c.Pa).jb,0,255,I.jb.length),t((I=c.Qa)!=null),I.Cb=0,I.Bb=0,I.Fb=1,n(I.Zb,0,0,I.Zb.length),n(I.Lb,0,0,I.Lb)}if(_.ub>Q)return vA(c,7,"bad partition length");nt(I=c.m,B,b,_.ub),b+=_.ub,Q-=_.ub,_.Rb&&(P.Ld=ft(I),P.Kd=ft(I)),P=c.Qa;var T,j=c.Pa;if(t(I!=null),t(P!=null),P.Cb=ft(I),P.Cb){if(P.Bb=ft(I),ft(I)){for(P.Fb=ft(I),T=0;4>T;++T)P.Zb[T]=ft(I)?at(I,7):0;for(T=0;4>T;++T)P.Lb[T]=ft(I)?at(I,6):0}if(P.Bb)for(T=0;3>T;++T)j.jb[T]=ft(I)?Y(I,8):255}else P.Bb=0;if(I.Ka)return vA(c,3,"cannot parse segment header");if((P=c.ed).zd=ft(I),P.Tb=Y(I,6),P.wb=Y(I,3),P.Pc=ft(I),P.Pc&&ft(I)){for(j=0;4>j;++j)ft(I)&&(P.vd[j]=at(I,6));for(j=0;4>j;++j)ft(I)&&(P.od[j]=at(I,6))}if(c.L=P.Tb==0?0:P.zd?1:2,I.Ka)return vA(c,3,"cannot parse filter header");var tt=Q;if(Q=T=b,b=T+tt,P=tt,c.Xb=(1<<Y(c.m,2))-1,tt<3*(j=c.Xb))B=7;else{for(T+=3*j,P-=3*j,tt=0;tt<j;++tt){var lt=B[Q+0]|B[Q+1]<<8|B[Q+2]<<16;lt>P&&(lt=P),nt(c.Jc[+tt],B,T,lt),T+=lt,P-=lt,Q+=3}nt(c.Jc[+j],B,T,P),B=T<b?0:5}if(B!=0)return vA(c,B,"cannot parse partitions");for(B=Y(T=c.m,7),Q=ft(T)?at(T,4):0,b=ft(T)?at(T,4):0,P=ft(T)?at(T,4):0,j=ft(T)?at(T,4):0,T=ft(T)?at(T,4):0,tt=c.Qa,lt=0;4>lt;++lt){if(tt.Cb){var dt=tt.Zb[lt];tt.Fb||(dt+=B)}else{if(0<lt){c.pb[lt]=c.pb[0];continue}dt=B}var st=c.pb[lt];st.Sc[0]=wm[Zr(dt+Q,127)],st.Sc[1]=Bm[Zr(dt+0,127)],st.Eb[0]=2*wm[Zr(dt+b,127)],st.Eb[1]=101581*Bm[Zr(dt+P,127)]>>16,8>st.Eb[1]&&(st.Eb[1]=8),st.Qc[0]=wm[Zr(dt+j,117)],st.Qc[1]=Bm[Zr(dt+T,127)],st.lc=dt+T}if(!_.Rb)return vA(c,4,"Not a key frame.");for(ft(I),_=c.Pa,B=0;4>B;++B){for(Q=0;8>Q;++Q)for(b=0;3>b;++b)for(P=0;11>P;++P)j=gt(I,XW[B][Q][b][P])?Y(I,8):WW[B][Q][b][P],_.Wc[B][Q].Yb[b][P]=j;for(Q=0;17>Q;++Q)_.Xc[B][Q]=_.Wc[B][YW[Q]]}return c.kc=ft(I),c.kc&&(c.Bd=Y(I,8)),c.cb=1}function Md(c,g,B,b,Q,I,_){var P=g[Q].Yb[B];for(B=0;16>Q;++Q){if(!gt(c,P[B+0]))return Q;for(;!gt(c,P[B+1]);)if(P=g[++Q].Yb[0],B=0,Q==16)return 16;var T=g[Q+1].Yb;if(gt(c,P[B+2])){var j=c,tt=0;if(gt(j,(dt=P)[(lt=B)+3]))if(gt(j,dt[lt+6])){for(P=0,lt=2*(tt=gt(j,dt[lt+8]))+(dt=gt(j,dt[lt+9+tt])),tt=0,dt=$W[lt];dt[P];++P)tt+=tt+gt(j,dt[P]);tt+=3+(8<<lt)}else gt(j,dt[lt+7])?(tt=7+2*gt(j,165),tt+=gt(j,145)):tt=5+gt(j,159);else tt=gt(j,dt[lt+4])?3+gt(j,dt[lt+5]):2;P=T[2]}else tt=1,P=T[1];T=_+zW[Q],0>(j=c).b&&ct(j);var lt,dt=j.b,st=(lt=j.Ca>>1)-(j.I>>dt)>>31;--j.b,j.Ca+=st,j.Ca|=1,j.I-=(lt+1&st)<<dt,I[T]=((tt^st)-st)*b[(0<Q)+0]}return 16}function au(c){var g=c.rb[c.sb-1];g.la=0,g.Na=0,n(c.zc,0,0,c.zc.length),c.ja=0}function $2(c,g){if(c==null)return 0;if(g==null)return vA(c,2,"NULL VP8Io parameter in VP8Decode().");if(!c.cb&&!Td(c,g))return 0;if(t(c.cb),g.ac==null||g.ac(g)){g.ob&&(c.L=0);var B=of[c.L];if(c.L==2?(c.yb=0,c.zb=0):(c.yb=g.v-B>>4,c.zb=g.j-B>>4,0>c.yb&&(c.yb=0),0>c.zb&&(c.zb=0)),c.Va=g.o+15+B>>4,c.Hb=g.va+15+B>>4,c.Hb>c.za&&(c.Hb=c.za),c.Va>c.Ub&&(c.Va=c.Ub),0<c.L){var b=c.ed;for(B=0;4>B;++B){var Q;if(c.Qa.Cb){var I=c.Qa.Lb[B];c.Qa.Fb||(I+=b.Tb)}else I=b.Tb;for(Q=0;1>=Q;++Q){var _=c.gd[B][Q],P=I;if(b.Pc&&(P+=b.vd[0],Q&&(P+=b.od[0])),0<(P=0>P?0:63<P?63:P)){var T=P;0<b.wb&&(T=4<b.wb?T>>2:T>>1)>9-b.wb&&(T=9-b.wb),1>T&&(T=1),_.dd=T,_.tc=2*P+T,_.ld=40<=P?2:15<=P?1:0}else _.tc=0;_.La=Q}}}B=0}else vA(c,6,"Frame setup failed"),B=c.a;if(B=B==0){if(B){c.$c=0,0<c.Aa||(c.Ic=uq);t:{B=c.Ic,b=4*(T=c.za);var j=32*T,tt=T+1,lt=0<c.L?T*(0<c.Aa?2:1):0,dt=(c.Aa==2?2:1)*T;if((_=b+832+(Q=3*(16*B+of[c.L])/2*j)+(I=c.Fa!=null&&0<c.Fa.length?c.Kc.c*c.Kc.i:0))!=_)B=0;else{if(_>c.Vb){if(c.Vb=0,c.Ec=i(_),c.Fc=0,c.Ec==null){B=vA(c,1,"no memory during frame initialization.");break t}c.Vb=_}_=c.Ec,P=c.Fc,c.Ac=_,c.Bc=P,P+=b,c.Gd=a(j,Nd),c.Hd=0,c.rb=a(tt+1,NA),c.sb=1,c.wa=lt?a(lt,ir):null,c.Y=0,c.D.Nb=0,c.D.wa=c.wa,c.D.Y=c.Y,0<c.Aa&&(c.D.Y+=T),t(!0),c.oc=_,c.pc=P,P+=832,c.ya=a(dt,iu),c.aa=0,c.D.ya=c.ya,c.D.aa=c.aa,c.Aa==2&&(c.D.aa+=T),c.R=16*T,c.B=8*T,T=(j=of[c.L])*c.R,j=j/2*c.B,c.sa=_,c.ta=P+T,c.qa=c.sa,c.ra=c.ta+16*B*c.R+j,c.Ha=c.qa,c.Ia=c.ra+8*B*c.B+j,c.$c=0,P+=Q,c.mb=I?_:null,c.nb=I?P:null,t(P+I<=c.Fc+c.Vb),au(c),n(c.Ac,c.Bc,0,b),B=1}}if(B){if(g.ka=0,g.y=c.sa,g.O=c.ta,g.f=c.qa,g.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+4,Xn,jA),ha(ns,No,da,uA,xi,GA+4,Xn,jA)),qA.La&&(en(Br,nn,je,GA,Xn,jA),qe(ns,No,da,uA,xi,GA,Xn,jA)),0<Lr&&(As(Br,nn,je,GA+4,Xn,jA),rs(ns,No,da,uA,xi,GA+4,Xn,jA)),qA.La&&(Eu(Br,nn,je,GA,Xn,jA),yi(ns,No,da,uA,xi,GA,Xn,jA))}}if(et.ia&&alert("todo:DitherRow"),it.put!=null){if(pe=16*He,He=16*(He+1),Rr?(it.y=et.sa,it.O=et.ta+Ve,it.f=et.qa,it.N=et.ra+Ir,it.ea=et.Ha,it.W=et.Ia+Ir):(pe-=xe,it.y=kt,it.O=ne,it.f=Rt,it.N=yt,it.ea=_e,it.W=ke),Ue||(He-=xe),He>it.o&&(He=it.o),it.F=null,it.J=null,et.Fa!=null&&0<et.Fa.length&&pe<He&&(it.J=wu(et,it,pe,He-pe),it.F=et.mb,it.F==null&&it.F.length==0)){vt=vA(et,3,"Could not decode alpha data.");break t}pe<it.j&&(xe=it.j-pe,pe=it.j,t(!(1&xe)),it.O+=et.R*xe,it.N+=et.B*(xe>>1),it.W+=et.B*(xe>>1),it.F!=null&&(it.J+=it.width*xe)),pe<He&&(it.O+=it.v,it.N+=it.v>>1,it.W+=it.v>>1,it.F!=null&&(it.J+=it.v),it.ka=pe-it.j,it.U=it.va-it.v,it.T=He-pe,vt=it.put(it))}wt+1!=et.Ic||Ue||(r(et.sa,et.ta-Ct,kt,ne+16*et.R,Ct),r(et.qa,et.ra-Kt,Rt,yt+8*et.B,Kt),r(et.Ha,et.Ia-Kt,_e,ke+8*et.B,Kt))}if(!vt)return vA(st,6,"Output aborted.")}return 1}(c,g)),g.bc!=null&&g.bc(g),B&=1}return B?(c.cb=0,B):0}function bn(c,g,B,b,Q){Q=c[g+B+32*b]+(Q>>3),c[g+B+32*b]=-256&Q?0>Q?0:255:Q}function po(c,g,B,b,Q,I){bn(c,g,0,B,b+Q),bn(c,g,1,B,b+I),bn(c,g,2,B,b-I),bn(c,g,3,B,b-Q)}function Er(c){return(20091*c>>16)+c}function su(c,g,B,b){var Q,I=0,_=i(16);for(Q=0;4>Q;++Q){var P=c[g+0]+c[g+8],T=c[g+0]-c[g+8],j=(35468*c[g+4]>>16)-Er(c[g+12]),tt=Er(c[g+4])+(35468*c[g+12]>>16);_[I+0]=P+tt,_[I+1]=T+j,_[I+2]=T-j,_[I+3]=P-tt,I+=4,g++}for(Q=I=0;4>Q;++Q)P=(c=_[I+0]+4)+_[I+8],T=c-_[I+8],j=(35468*_[I+4]>>16)-Er(_[I+12]),bn(B,b,0,0,P+(tt=Er(_[I+4])+(35468*_[I+12]>>16))),bn(B,b,1,0,T+j),bn(B,b,2,0,T-j),bn(B,b,3,0,P-tt),I++,b+=32}function Od(c,g,B,b){var Q=c[g+0]+4,I=35468*c[g+4]>>16,_=Er(c[g+4]),P=35468*c[g+1]>>16;po(B,b,0,Q+_,c=Er(c[g+1]),P),po(B,b,1,Q+I,c,P),po(B,b,2,Q-I,c,P),po(B,b,3,Q-_,c,P)}function z2(c,g,B,b,Q){su(c,g,B,b),Q&&su(c,g+16,B,b+4)}function kd(c,g,B,b){Lo(c,g+0,B,b,1),Lo(c,g+32,B,b+128,1)}function W2(c,g,B,b){var Q;for(c=c[g+0]+4,Q=0;4>Q;++Q)for(g=0;4>g;++g)bn(B,b,g,Q,c)}function Hd(c,g,B,b){c[g+0]&&Un(c,g+0,B,b),c[g+16]&&Un(c,g+16,B,b+4),c[g+32]&&Un(c,g+32,B,b+128),c[g+48]&&Un(c,g+48,B,b+128+4)}function q2(c,g,B,b){var Q,I=i(16);for(Q=0;4>Q;++Q){var _=c[g+0+Q]+c[g+12+Q],P=c[g+4+Q]+c[g+8+Q],T=c[g+4+Q]-c[g+8+Q],j=c[g+0+Q]-c[g+12+Q];I[0+Q]=_+P,I[8+Q]=_-P,I[4+Q]=j+T,I[12+Q]=j-T}for(Q=0;4>Q;++Q)_=(c=I[0+4*Q]+3)+I[3+4*Q],P=I[1+4*Q]+I[2+4*Q],T=I[1+4*Q]-I[2+4*Q],j=c-I[3+4*Q],B[b+0]=_+P>>3,B[b+16]=j+T>>3,B[b+32]=_-P>>3,B[b+48]=j-T>>3,b+=64}function ou(c,g,B){var b,Q=g-32,I=Dr,_=255-c[Q-1];for(b=0;b<B;++b){var P,T=I,j=_+c[g-1];for(P=0;P<B;++P)c[g+P]=T[j+c[Q+P]];g+=32}}function X2(c,g){ou(c,g,4)}function Y2(c,g){ou(c,g,8)}function J2(c,g){ou(c,g,16)}function pi(c,g){var B;for(B=0;16>B;++B)r(c,g+32*B,c,g-32,16)}function mo(c,g){var B;for(B=16;0<B;--B)n(c,g,c[g-1],16),g+=32}function wo(c,g,B){var b;for(b=0;16>b;++b)n(g,B+32*b,c,16)}function Dd(c,g){var B,b=16;for(B=0;16>B;++B)b+=c[g-1+32*B]+c[g+B-32];wo(b>>5,c,g)}function ar(c,g){var B,b=8;for(B=0;16>B;++B)b+=c[g-1+32*B];wo(b>>4,c,g)}function Z2(c,g){var B,b=8;for(B=0;16>B;++B)b+=c[g+B-32];wo(b>>4,c,g)}function Rd(c,g){wo(128,c,g)}function ue(c,g,B){return c+2*g+B+2>>2}function tm(c,g){var B,b=g-32;for(b=new Uint8Array([ue(c[b-1],c[b+0],c[b+1]),ue(c[b+0],c[b+1],c[b+2]),ue(c[b+1],c[b+2],c[b+3]),ue(c[b+2],c[b+3],c[b+4])]),B=0;4>B;++B)r(c,g+32*B,b,0,b.length)}function em(c,g){var B=c[g-1],b=c[g-1+32],Q=c[g-1+64],I=c[g-1+96];St(c,g+0,16843009*ue(c[g-1-32],B,b)),St(c,g+32,16843009*ue(B,b,Q)),St(c,g+64,16843009*ue(b,Q,I)),St(c,g+96,16843009*ue(Q,I,I))}function Wn(c,g){var B,b=4;for(B=0;4>B;++B)b+=c[g+B-32]+c[g-1+32*B];for(b>>=3,B=0;4>B;++B)n(c,g+32*B,b,4)}function jd(c,g){var B=c[g-1+0],b=c[g-1+32],Q=c[g-1+64],I=c[g-1-32],_=c[g+0-32],P=c[g+1-32],T=c[g+2-32],j=c[g+3-32];c[g+0+96]=ue(b,Q,c[g-1+96]),c[g+1+96]=c[g+0+64]=ue(B,b,Q),c[g+2+96]=c[g+1+64]=c[g+0+32]=ue(I,B,b),c[g+3+96]=c[g+2+64]=c[g+1+32]=c[g+0+0]=ue(_,I,B),c[g+3+64]=c[g+2+32]=c[g+1+0]=ue(P,_,I),c[g+3+32]=c[g+2+0]=ue(T,P,_),c[g+3+0]=ue(j,T,P)}function Gd(c,g){var B=c[g+1-32],b=c[g+2-32],Q=c[g+3-32],I=c[g+4-32],_=c[g+5-32],P=c[g+6-32],T=c[g+7-32];c[g+0+0]=ue(c[g+0-32],B,b),c[g+1+0]=c[g+0+32]=ue(B,b,Q),c[g+2+0]=c[g+1+32]=c[g+0+64]=ue(b,Q,I),c[g+3+0]=c[g+2+32]=c[g+1+64]=c[g+0+96]=ue(Q,I,_),c[g+3+32]=c[g+2+64]=c[g+1+96]=ue(I,_,P),c[g+3+64]=c[g+2+96]=ue(_,P,T),c[g+3+96]=ue(P,T,T)}function Bo(c,g){var B=c[g-1+0],b=c[g-1+32],Q=c[g-1+64],I=c[g-1-32],_=c[g+0-32],P=c[g+1-32],T=c[g+2-32],j=c[g+3-32];c[g+0+0]=c[g+1+64]=I+_+1>>1,c[g+1+0]=c[g+2+64]=_+P+1>>1,c[g+2+0]=c[g+3+64]=P+T+1>>1,c[g+3+0]=T+j+1>>1,c[g+0+96]=ue(Q,b,B),c[g+0+64]=ue(b,B,I),c[g+0+32]=c[g+1+96]=ue(B,I,_),c[g+1+32]=c[g+2+96]=ue(I,_,P),c[g+2+32]=c[g+3+96]=ue(_,P,T),c[g+3+32]=ue(P,T,j)}function hu(c,g){var B=c[g+0-32],b=c[g+1-32],Q=c[g+2-32],I=c[g+3-32],_=c[g+4-32],P=c[g+5-32],T=c[g+6-32],j=c[g+7-32];c[g+0+0]=B+b+1>>1,c[g+1+0]=c[g+0+64]=b+Q+1>>1,c[g+2+0]=c[g+1+64]=Q+I+1>>1,c[g+3+0]=c[g+2+64]=I+_+1>>1,c[g+0+32]=ue(B,b,Q),c[g+1+32]=c[g+0+96]=ue(b,Q,I),c[g+2+32]=c[g+1+96]=ue(Q,I,_),c[g+3+32]=c[g+2+96]=ue(I,_,P),c[g+3+64]=ue(_,P,T),c[g+3+96]=ue(P,T,j)}function Am(c,g){var B=c[g-1+0],b=c[g-1+32],Q=c[g-1+64],I=c[g-1+96];c[g+0+0]=B+b+1>>1,c[g+2+0]=c[g+0+32]=b+Q+1>>1,c[g+2+32]=c[g+0+64]=Q+I+1>>1,c[g+1+0]=ue(B,b,Q),c[g+3+0]=c[g+1+32]=ue(b,Q,I),c[g+3+32]=c[g+1+64]=ue(Q,I,I),c[g+3+64]=c[g+2+64]=c[g+0+96]=c[g+1+96]=c[g+2+96]=c[g+3+96]=I}function rm(c,g){var B=c[g-1+0],b=c[g-1+32],Q=c[g-1+64],I=c[g-1+96],_=c[g-1-32],P=c[g+0-32],T=c[g+1-32],j=c[g+2-32];c[g+0+0]=c[g+2+32]=B+_+1>>1,c[g+0+32]=c[g+2+64]=b+B+1>>1,c[g+0+64]=c[g+2+96]=Q+b+1>>1,c[g+0+96]=I+Q+1>>1,c[g+3+0]=ue(P,T,j),c[g+2+0]=ue(_,P,T),c[g+1+0]=c[g+3+32]=ue(B,_,P),c[g+1+32]=c[g+3+64]=ue(b,B,_),c[g+1+64]=c[g+3+96]=ue(Q,b,B),c[g+1+96]=ue(I,Q,b)}function nm(c,g){var B;for(B=0;8>B;++B)r(c,g+32*B,c,g-32,8)}function uu(c,g){var B;for(B=0;8>B;++B)n(c,g,c[g-1],8),g+=32}function Ja(c,g,B){var b;for(b=0;8>b;++b)n(g,B+32*b,c,8)}function Aa(c,g){var B,b=8;for(B=0;8>B;++B)b+=c[g+B-32]+c[g-1+32*B];Ja(b>>4,c,g)}function im(c,g){var B,b=4;for(B=0;8>B;++B)b+=c[g+B-32];Ja(b>>3,c,g)}function Za(c,g){var B,b=4;for(B=0;8>B;++B)b+=c[g-1+32*B];Ja(b>>3,c,g)}function cu(c,g){Ja(128,c,g)}function vo(c,g,B){var b=c[g-B],Q=c[g+0],I=3*(Q-b)+dm[1020+c[g-2*B]-c[g+B]],_=Zd[112+(I+4>>3)];c[g-B]=Dr[255+b+Zd[112+(I+3>>3)]],c[g+0]=Dr[255+Q-_]}function Kd(c,g,B,b){var Q=c[g+0],I=c[g+B];return An[255+c[g-2*B]-c[g-B]]>b||An[255+I-Q]>b}function Vd(c,g,B,b){return 4*An[255+c[g-B]-c[g+0]]+An[255+c[g-2*B]-c[g+B]]<=b}function $d(c,g,B,b,Q){var I=c[g-3*B],_=c[g-2*B],P=c[g-B],T=c[g+0],j=c[g+B],tt=c[g+2*B],lt=c[g+3*B];return 4*An[255+P-T]+An[255+_-j]>b?0:An[255+c[g-4*B]-I]<=Q&&An[255+I-_]<=Q&&An[255+_-P]<=Q&&An[255+lt-tt]<=Q&&An[255+tt-j]<=Q&&An[255+j-T]<=Q}function zd(c,g,B,b){var Q=2*b+1;for(b=0;16>b;++b)Vd(c,g+b,B,Q)&&vo(c,g+b,B)}function mi(c,g,B,b){var Q=2*b+1;for(b=0;16>b;++b)Vd(c,g+b*B,1,Q)&&vo(c,g+b*B,1)}function ra(c,g,B,b){var Q;for(Q=3;0<Q;--Q)zd(c,g+=4*B,B,b)}function am(c,g,B,b){var Q;for(Q=3;0<Q;--Q)mi(c,g+=4,B,b)}function na(c,g,B,b,Q,I,_,P){for(I=2*I+1;0<Q--;){if($d(c,g,B,I,_))if(Kd(c,g,B,P))vo(c,g,B);else{var T=c,j=g,tt=B,lt=T[j-2*tt],dt=T[j-tt],st=T[j+0],bt=T[j+tt],wt=T[j+2*tt],et=27*(vt=dm[1020+3*(st-dt)+dm[1020+lt-bt]])+63>>7,it=18*vt+63>>7,vt=9*vt+63>>7;T[j-3*tt]=Dr[255+T[j-3*tt]+vt],T[j-2*tt]=Dr[255+lt+it],T[j-tt]=Dr[255+dt+et],T[j+0]=Dr[255+st-et],T[j+tt]=Dr[255+bt-it],T[j+2*tt]=Dr[255+wt-vt]}g+=b}}function Cn(c,g,B,b,Q,I,_,P){for(I=2*I+1;0<Q--;){if($d(c,g,B,I,_))if(Kd(c,g,B,P))vo(c,g,B);else{var T=c,j=g,tt=B,lt=T[j-tt],dt=T[j+0],st=T[j+tt],bt=Zd[112+((wt=3*(dt-lt))+4>>3)],wt=Zd[112+(wt+3>>3)],et=bt+1>>1;T[j-2*tt]=Dr[255+T[j-2*tt]+et],T[j-tt]=Dr[255+lt+wt],T[j+0]=Dr[255+dt-bt],T[j+tt]=Dr[255+st-et]}g+=b}}function lu(c,g,B,b,Q,I){na(c,g,B,1,16,b,Q,I)}function ts(c,g,B,b,Q,I){na(c,g,1,B,16,b,Q,I)}function sm(c,g,B,b,Q,I){var _;for(_=3;0<_;--_)Cn(c,g+=4*B,B,1,16,b,Q,I)}function yo(c,g,B,b,Q,I){var _;for(_=3;0<_;--_)Cn(c,g+=4,1,B,16,b,Q,I)}function om(c,g,B,b,Q,I,_,P){na(c,g,Q,1,8,I,_,P),na(B,b,Q,1,8,I,_,P)}function du(c,g,B,b,Q,I,_,P){na(c,g,1,Q,8,I,_,P),na(B,b,1,Q,8,I,_,P)}function fu(c,g,B,b,Q,I,_,P){Cn(c,g+4*Q,Q,1,8,I,_,P),Cn(B,b+4*Q,Q,1,8,I,_,P)}function Wd(c,g,B,b,Q,I,_,P){Cn(c,g+4,1,Q,8,I,_,P),Cn(B,b+4,1,Q,8,I,_,P)}function bo(){this.ba=new WA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Oe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function gu(){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 pu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function qd(){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 D,this.yc=new S}function hm(){this.xb=this.a=0,this.l=new go,this.ca=new WA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new F,this.Pb=0,this.wd=new F,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new qd,this.ab=0,this.gc=a(4,pu),this.Oc=0}function Co(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new go,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function es(c,g,B,b,Q,I,_){for(c=c==null?0:c[g+0],g=0;g<_;++g)Q[I+g]=c+B[b+g]&255,c=Q[I+g]}function mu(c,g,B,b,Q,I,_){var P;if(c==null)es(null,null,B,b,Q,I,_);else for(P=0;P<_;++P)Q[I+P]=c[g+P]+B[b+P]&255}function ia(c,g,B,b,Q,I,_){if(c==null)es(null,null,B,b,Q,I,_);else{var P,T=c[g+0],j=T,tt=T;for(P=0;P<_;++P)j=tt+(T=c[g+P])-j,tt=B[b+P]+(-256&j?0>j?0:255:j)&255,j=T,Q[I+P]=tt}}function wu(c,g,B,b){var Q=g.width,I=g.o;if(t(c!=null&&g!=null),0>B||0>=b||B+b>I)return null;if(!c.Cc){if(c.ga==null){var _;if(c.ga=new Co,(_=c.ga==null)||(_=g.width*g.o,t(c.Gb.length==0),c.Gb=i(_),c.Uc=0,c.Gb==null?_=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,_=1),_=!_),!_){_=c.ga;var P=c.Fa,T=c.P,j=c.qc,tt=c.mb,lt=c.nb,dt=T+1,st=j-1,bt=_.l;if(t(P!=null&&tt!=null&&g!=null),la[0]=null,la[1]=es,la[2]=mu,la[3]=ia,_.ca=tt,_.tb=lt,_.c=g.width,_.i=g.height,t(0<_.c&&0<_.i),1>=j)g=0;else if(_.$a=P[T+0]>>0&3,_.Z=P[T+0]>>2&3,_.Lc=P[T+0]>>4&3,T=P[T+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||T)g=0;else if(bt.put=kr,bt.ac=EA,bt.bc=Xr,bt.ma=_,bt.width=g.width,bt.height=g.height,bt.Da=g.Da,bt.v=g.v,bt.va=g.va,bt.j=g.j,bt.o=g.o,_.$a)t:{t(_.$a==1),g=wr();e:for(;;){if(g==null){g=0;break t}if(t(_!=null),_.mc=g,g.c=_.c,g.i=_.i,g.l=_.l,g.l.ma=_,g.l.width=_.c,g.l.height=_.i,g.a=0,rt(g.m,P,dt,st),!Jr(_.c,_.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&mr(g.s)?(_.ic=1,P=g.c*g.i,g.Ta=null,g.Ua=0,g.V=i(P),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(_.ic=0,g=X(g,_.c)),!g))break e;g=1;break t}_.mc=null,g=0}else g=st>=_.c*_.i;_=!g}if(_)return null;c.ga.Lc!=1?c.Ga=0:b=I-B}t(c.ga!=null),t(B+b<=I);t:{if(g=(P=c.ga).c,I=P.l.o,P.$a==0){if(dt=c.rc,st=c.Vc,bt=c.Fa,T=c.P+1+B*g,j=c.mb,tt=c.nb+B*g,t(T<=c.P+c.qc),P.Z!=0)for(t(la[P.Z]!=null),_=0;_<b;++_)la[P.Z](dt,st,bt,T,j,tt,g),dt=j,st=tt,tt+=g,T+=g;else for(_=0;_<b;++_)r(j,tt,bt,T,g),dt=j,st=tt,tt+=g,T+=g;c.rc=dt,c.Vc=st}else{if(t(P.mc!=null),g=B+b,t((_=P.mc)!=null),t(g<=_.i),_.C>=g)g=1;else if(P.ic||ut(),P.ic){P=_.V,dt=_.Ba,st=_.c;var wt=_.i,et=(bt=1,T=_.$/st,j=_.$%st,tt=_.m,lt=_.s,_.$),it=st*wt,vt=st*g,Ct=lt.wc,yt=et<vt?nA(lt,j,T):null;t(et<=it),t(g<=wt),t(mr(lt));e:for(;;){for(;!tt.h&&et<vt;){if(j&Ct||(yt=nA(lt,j,T)),t(yt!=null),Z(tt),256>(wt=wA(yt.G[0],yt.H[0],tt)))P[dt+et]=wt,++et,++j>=st&&(j=0,++T<=g&&!(T%16)&&Fr(_,T));else{if(!(280>wt)){bt=0;break e}wt=pr(wt-256,tt);var Kt,kt=wA(yt.G[4],yt.H[4],tt);if(Z(tt),!(et>=(kt=Yr(st,kt=pr(kt,tt)))&&it-et>=wt)){bt=0;break e}for(Kt=0;Kt<wt;++Kt)P[dt+et+Kt]=P[dt+et+Kt-kt];for(et+=wt,j+=wt;j>=st;)j-=st,++T<=g&&!(T%16)&&Fr(_,T);et<vt&&j&Ct&&(yt=nA(lt,j,T))}t(tt.h==G(tt))}Fr(_,T>g?g:T);break e}!bt||tt.h&&et<it?(bt=0,_.a=tt.h?5:3):_.$=et,g=bt}else g=Qr(_,_.V,_.Ba,_.c,_.i,g,Dt);if(!g){b=0;break t}}B+b>=I&&(c.Cc=1),b=1}if(!b)return null;if(c.Cc&&((b=c.ga)!=null&&(b.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+B*Q}function m(c,g,B,b,Q,I){for(;0<Q--;){var _,P=c,T=g+(B?1:0),j=c,tt=g+(B?0:3);for(_=0;_<b;++_){var lt=j[tt+4*_];lt!=255&&(lt*=32897,P[T+4*_+0]=P[T+4*_+0]*lt>>23,P[T+4*_+1]=P[T+4*_+1]*lt>>23,P[T+4*_+2]=P[T+4*_+2]*lt>>23)}g+=I}}function E(c,g,B,b,Q){for(;0<b--;){var I;for(I=0;I<B;++I){var _=c[g+2*I+0],P=15&(j=c[g+2*I+1]),T=4369*P,j=(240&j|j>>4)*T>>16;c[g+2*I+0]=(240&_|_>>4)*T>>16&240|(15&_|_<<4)*T>>16>>4&15,c[g+2*I+1]=240&j|P}g+=Q}}function K(c,g,B,b,Q,I,_,P){var T,j,tt=255;for(j=0;j<Q;++j){for(T=0;T<b;++T){var lt=c[g+T];I[_+4*T]=lt,tt&=lt}g+=B,_+=P}return tt!=255}function J(c,g,B,b,Q){var I;for(I=0;I<Q;++I)B[b+I]=c[g+I]>>8}function ut(){ua=m,_o=E,Jd=K,fx=J}function Bt(c,g,B){N[c]=function(b,Q,I,_,P,T,j,tt,lt,dt,st,bt,wt,et,it,vt,Ct){var yt,Kt=Ct-1>>1,kt=P[T+0]|j[tt+0]<<16,ne=lt[dt+0]|st[bt+0]<<16;t(b!=null);var Rt=3*kt+ne+131074>>2;for(g(b[Q+0],255&Rt,Rt>>16,wt,et),I!=null&&(Rt=3*ne+kt+131074>>2,g(I[_+0],255&Rt,Rt>>16,it,vt)),yt=1;yt<=Kt;++yt){var _e=P[T+yt]|j[tt+yt]<<16,ke=lt[dt+yt]|st[bt+yt]<<16,Ue=kt+_e+ne+ke+524296,xe=Ue+2*(_e+ne)>>3;Rt=xe+kt>>1,kt=(Ue=Ue+2*(kt+ke)>>3)+_e>>1,g(b[Q+2*yt-1],255&Rt,Rt>>16,wt,et+(2*yt-1)*B),g(b[Q+2*yt-0],255&kt,kt>>16,wt,et+(2*yt-0)*B),I!=null&&(Rt=Ue+ne>>1,kt=xe+ke>>1,g(I[_+2*yt-1],255&Rt,Rt>>16,it,vt+(2*yt-1)*B),g(I[_+2*yt+0],255&kt,kt>>16,it,vt+(2*yt+0)*B)),kt=_e,ne=ke}1&Ct||(Rt=3*kt+ne+131074>>2,g(b[Q+Ct-1],255&Rt,Rt>>16,wt,et+(Ct-1)*B),I!=null&&(Rt=3*ne+kt+131074>>2,g(I[_+Ct-1],255&Rt,Rt>>16,it,vt+(Ct-1)*B)))}}function Qt(){rn[tf]=ZW,rn[ef]=Fx,rn[vx]=tq,rn[Af]=Qx,rn[rf]=Ex,rn[fm]=Ux,rn[yx]=eq,rn[gm]=Fx,rn[pm]=Qx,rn[nf]=Ex,rn[mm]=Ux}function Gt(c){return c&~Aq?0>c?0:255:c>>Sx}function ee(c,g){return Gt((19077*c>>8)+(26149*g>>8)-14234)}function ge(c,g,B){return Gt((19077*c>>8)-(6419*g>>8)-(13320*B>>8)+8708)}function ve(c,g){return Gt((19077*c>>8)+(33050*g>>8)-17685)}function Qe(c,g,B,b,Q){b[Q+0]=ee(c,B),b[Q+1]=ge(c,g,B),b[Q+2]=ve(c,g)}function aA(c,g,B,b,Q){b[Q+0]=ve(c,g),b[Q+1]=ge(c,g,B),b[Q+2]=ee(c,B)}function yA(c,g,B,b,Q){var I=ge(c,g,B);g=I<<3&224|ve(c,g)>>3,b[Q+0]=248&ee(c,B)|I>>5,b[Q+1]=g}function UA(c,g,B,b,Q){var I=240&ve(c,g)|15;b[Q+0]=240&ee(c,B)|ge(c,g,B)>>4,b[Q+1]=I}function sr(c,g,B,b,Q){b[Q+0]=255,Qe(c,g,B,b,Q+1)}function RA(c,g,B,b,Q){aA(c,g,B,b,Q),b[Q+3]=255}function xn(c,g,B,b,Q){Qe(c,g,B,b,Q),b[Q+3]=255}function Zr(c,g){return 0>c?0:c>g?g:c}function wi(c,g,B){N[c]=function(b,Q,I,_,P,T,j,tt,lt){for(var dt=tt+(-2&lt)*B;tt!=dt;)g(b[Q+0],I[_+0],P[T+0],j,tt),g(b[Q+1],I[_+0],P[T+0],j,tt+B),Q+=2,++_,++T,tt+=2*B;1&lt&&g(b[Q+0],I[_+0],P[T+0],j,tt)}}function Xd(c,g,B){return B==0?c==0?g==0?6:5:g==0?4:0:B}function Bu(c,g,B,b,Q){switch(c>>>30){case 3:Lo(g,B,b,Q,0);break;case 2:Qu(g,B,b,Q);break;case 1:Un(g,B,b,Q)}}function vu(c,g){var B,b,Q=g.M,I=g.Nb,_=c.oc,P=c.pc+40,T=c.oc,j=c.pc+584,tt=c.oc,lt=c.pc+600;for(B=0;16>B;++B)_[P+32*B-1]=129;for(B=0;8>B;++B)T[j+32*B-1]=129,tt[lt+32*B-1]=129;for(0<Q?_[P-1-32]=T[j-1-32]=tt[lt-1-32]=129:(n(_,P-32-1,127,21),n(T,j-32-1,127,9),n(tt,lt-32-1,127,9)),b=0;b<c.za;++b){var dt=g.ya[g.aa+b];if(0<b){for(B=-1;16>B;++B)r(_,P+32*B-4,_,P+32*B+12,4);for(B=-1;8>B;++B)r(T,j+32*B-4,T,j+32*B+4,4),r(tt,lt+32*B-4,tt,lt+32*B+4,4)}var st=c.Gd,bt=c.Hd+b,wt=dt.ad,et=dt.Hc;if(0<Q&&(r(_,P-32,st[bt].y,0,16),r(T,j-32,st[bt].f,0,8),r(tt,lt-32,st[bt].ea,0,8)),dt.Za){var it=_,vt=P-32+16;for(0<Q&&(b>=c.za-1?n(it,vt,st[bt].y[15],4):r(it,vt,st[bt+1].y,0,4)),B=0;4>B;B++)it[vt+128+B]=it[vt+256+B]=it[vt+384+B]=it[vt+0+B];for(B=0;16>B;++B,et<<=2)it=_,vt=P+Ix[B],Sn[dt.Ob[B]](it,vt),Bu(et,wt,16*+B,it,vt)}else if(it=Xd(b,Q,dt.Ob[0]),ca[it](_,P),et!=0)for(B=0;16>B;++B,et<<=2)Bu(et,wt,16*+B,_,P+Ix[B]);for(B=dt.Gc,it=Xd(b,Q,dt.Dd),Ci[it](T,j),Ci[it](tt,lt),et=wt,it=T,vt=j,255&(dt=B>>0)&&(170&dt?oa(et,256,it,vt):vi(et,256,it,vt)),dt=tt,et=lt,255&(B>>=8)&&(170&B?oa(wt,320,dt,et):vi(wt,320,dt,et)),Q<c.Ub-1&&(r(st[bt].y,0,_,P+480,16),r(st[bt].f,0,T,j+224,8),r(st[bt].ea,0,tt,lt+224,8)),B=8*I*c.B,st=c.sa,bt=c.ta+16*b+16*I*c.R,wt=c.qa,dt=c.ra+8*b+B,et=c.Ha,it=c.Ia+8*b+B,B=0;16>B;++B)r(st,bt+B*c.R,_,P+32*B,16);for(B=0;8>B;++B)r(wt,dt+B*c.B,T,j+32*B,8),r(et,it+B*c.B,tt,lt+32*B,8)}}function xo(c,g,B,b,Q,I,_,P,T){var j=[0],tt=[0],lt=0,dt=T!=null?T.kd:0,st=T??new gu;if(c==null||12>B)return 7;st.data=c,st.w=g,st.ha=B,g=[g],B=[B],st.gb=[st.gb];t:{var bt=g,wt=B,et=st.gb;if(t(c!=null),t(wt!=null),t(et!=null),et[0]=0,12<=wt[0]&&!e(c,bt[0],"RIFF")){if(e(c,bt[0]+8,"WEBP")){et=3;break t}var it=Mt(c,bt[0]+4);if(12>it||4294967286<it){et=3;break t}if(dt&&it>wt[0]-8){et=7;break t}et[0]=it,bt[0]+=12,wt[0]-=12}et=0}if(et!=0)return et;for(it=0<st.gb[0],B=B[0];;){t:{var vt=c;wt=g,et=B;var Ct=j,yt=tt,Kt=bt=[0];if((Rt=lt=[lt])[0]=0,8>et[0])et=7;else{if(!e(vt,wt[0],"VP8X")){if(Mt(vt,wt[0]+4)!=10){et=3;break t}if(18>et[0]){et=7;break t}var kt=Mt(vt,wt[0]+8),ne=1+Ht(vt,wt[0]+12);if(2147483648<=ne*(vt=1+Ht(vt,wt[0]+15))){et=3;break t}Kt!=null&&(Kt[0]=kt),Ct!=null&&(Ct[0]=ne),yt!=null&&(yt[0]=vt),wt[0]+=18,et[0]-=18,Rt[0]=1}et=0}}if(lt=lt[0],bt=bt[0],et!=0)return et;if(wt=!!(2&bt),!it&&lt)return 3;if(I!=null&&(I[0]=!!(16&bt)),_!=null&&(_[0]=wt),P!=null&&(P[0]=0),_=j[0],bt=tt[0],lt&&wt&&T==null){et=0;break}if(4>B){et=7;break}if(it&&lt||!it&&!lt&&!e(c,g[0],"ALPH")){B=[B],st.na=[st.na],st.P=[st.P],st.Sa=[st.Sa];t:{kt=c,et=g,it=B;var Rt=st.gb;Ct=st.na,yt=st.P,Kt=st.Sa,ne=22,t(kt!=null),t(it!=null),vt=et[0];var _e=it[0];for(t(Ct!=null),t(Kt!=null),Ct[0]=null,yt[0]=null,Kt[0]=0;;){if(et[0]=vt,it[0]=_e,8>_e){et=7;break t}var ke=Mt(kt,vt+4);if(4294967286<ke){et=3;break t}var Ue=8+ke+1&-2;if(ne+=Ue,0<Rt&&ne>Rt){et=3;break t}if(!e(kt,vt,"VP8 ")||!e(kt,vt,"VP8L")){et=0;break t}if(_e[0]<Ue){et=7;break t}e(kt,vt,"ALPH")||(Ct[0]=kt,yt[0]=vt+8,Kt[0]=ke),vt+=Ue,_e-=Ue}}if(B=B[0],st.na=st.na[0],st.P=st.P[0],st.Sa=st.Sa[0],et!=0)break}B=[B],st.Ja=[st.Ja],st.xa=[st.xa];t:if(Rt=c,et=g,it=B,Ct=st.gb[0],yt=st.Ja,Kt=st.xa,kt=et[0],vt=!e(Rt,kt,"VP8 "),ne=!e(Rt,kt,"VP8L"),t(Rt!=null),t(it!=null),t(yt!=null),t(Kt!=null),8>it[0])et=7;else{if(vt||ne){if(Rt=Mt(Rt,kt+4),12<=Ct&&Rt>Ct-12){et=3;break t}if(dt&&Rt>it[0]-8){et=7;break t}yt[0]=Rt,et[0]+=8,it[0]-=8,Kt[0]=ne}else Kt[0]=5<=it[0]&&Rt[kt+0]==47&&!(Rt[kt+4]>>5),yt[0]=it[0];et=0}if(B=B[0],st.Ja=st.Ja[0],st.xa=st.xa[0],g=g[0],et!=0)break;if(4294967286<st.Ja)return 3;if(P==null||wt||(P[0]=st.xa?2:1),_=[_],bt=[bt],st.xa){if(5>B){et=7;break}P=_,dt=bt,wt=I,c==null||5>B?c=0:5<=B&&c[g+0]==47&&!(c[g+4]>>5)?(it=[0],Rt=[0],Ct=[0],rt(yt=new F,c,g,B),te(yt,it,Rt,Ct)?(P!=null&&(P[0]=it[0]),dt!=null&&(dt[0]=Rt[0]),wt!=null&&(wt[0]=Ct[0]),c=1):c=0):c=0}else{if(10>B){et=7;break}P=bt,c==null||10>B||!Pd(c,g+3,B-3)?c=0:(dt=c[g+0]|c[g+1]<<8|c[g+2]<<16,wt=16383&(c[g+7]<<8|c[g+6]),c=16383&(c[g+9]<<8|c[g+8]),1&dt||3<(dt>>1&7)||!(dt>>4&1)||dt>>5>=st.Ja||!wt||!c?c=0:(_&&(_[0]=wt),P&&(P[0]=c),c=1))}if(!c||(_=_[0],bt=bt[0],lt&&(j[0]!=_||tt[0]!=bt)))return 3;T!=null&&(T[0]=st,T.offset=g-T.w,t(4294967286>g-T.w),t(T.offset==T.ha-B));break}return et==0||et==7&&lt&&T==null?(I!=null&&(I[0]|=st.na!=null&&0<st.na.length),b!=null&&(b[0]=_),Q!=null&&(Q[0]=bt),0):et}function yu(c,g,B){var b=g.width,Q=g.height,I=0,_=0,P=b,T=Q;if(g.Da=c!=null&&0<c.Da,g.Da&&(P=c.cd,T=c.bd,I=c.v,_=c.j,11>B||(I&=-2,_&=-2),0>I||0>_||0>=P||0>=T||I+P>b||_+T>Q))return 0;if(g.v=I,g.j=_,g.va=I+P,g.o=_+T,g.U=P,g.T=T,g.da=c!=null&&0<c.da,g.da){if(!Ae(P,T,B=[c.ib],I=[c.hb]))return 0;g.ib=B[0],g.hb=I[0]}return g.ob=c!=null&&c.ob,g.Kb=c==null||!c.Sd,g.da&&(g.ob=g.ib<3*b/4&&g.hb<3*Q/4,g.Kb=0),1}function bu(c){if(c==null)return 2;if(11>c.S){var g=c.f.RGBA;g.fb+=(c.height-1)*g.A,g.A=-g.A}else g=c.f.kb,c=c.height,g.O+=(c-1)*g.fa,g.fa=-g.fa,g.N+=(c-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(c-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(c-1)*g.lb,g.lb=-g.lb);return 0}function Fo(c,g,B,b){if(b==null||0>=c||0>=g)return 2;if(B!=null){if(B.Da){var Q=B.cd,I=B.bd,_=-2&B.v,P=-2&B.j;if(0>_||0>P||0>=Q||0>=I||_+Q>c||P+I>g)return 2;c=Q,g=I}if(B.da){if(!Ae(c,g,Q=[B.ib],I=[B.hb]))return 2;c=Q[0],g=I[0]}}b.width=c,b.height=g;t:{var T=b.width,j=b.height;if(c=b.S,0>=T||0>=j||!(c>=tf&&13>c))c=2;else{if(0>=b.Rd&&b.sd==null){_=I=Q=g=0;var tt=(P=T*_x[c])*j;if(11>c||(I=(j+1)/2*(g=(T+1)/2),c==12&&(_=(Q=T)*j)),(j=i(tt+2*I+_))==null){c=1;break t}b.sd=j,11>c?((T=b.f.RGBA).eb=j,T.fb=0,T.A=P,T.size=tt):((T=b.f.kb).y=j,T.O=0,T.fa=P,T.Fd=tt,T.f=j,T.N=0+tt,T.Ab=g,T.Cd=I,T.ea=j,T.W=0+tt+I,T.Db=g,T.Ed=I,c==12&&(T.F=j,T.J=0+tt+2*I),T.Tc=_,T.lb=Q)}if(g=1,Q=b.S,I=b.width,_=b.height,Q>=tf&&13>Q)if(11>Q)c=b.f.RGBA,g&=(P=Math.abs(c.A))*(_-1)+I<=c.size,g&=P>=I*_x[Q],g&=c.eb!=null;else{c=b.f.kb,P=(I+1)/2,tt=(_+1)/2,T=Math.abs(c.fa),j=Math.abs(c.Ab);var lt=Math.abs(c.Db),dt=Math.abs(c.lb),st=dt*(_-1)+I;g&=T*(_-1)+I<=c.Fd,g&=j*(tt-1)+P<=c.Cd,g=(g&=lt*(tt-1)+P<=c.Ed)&T>=I&j>=P&lt>=P,g&=c.y!=null,g&=c.f!=null,g&=c.ea!=null,Q==12&&(g&=dt>=I,g&=st<=c.Tc,g&=c.F!=null)}else g=0;c=g?0:2}}return c!=0||B!=null&&B.fd&&(c=bu(b)),c}var Ur=64,Qo=[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],Eo=24,Uo=32,Cu=8,Sr=[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];It("Predictor0","PredictorAdd0"),N.Predictor0=function(){return 4278190080},N.Predictor1=function(c){return c},N.Predictor2=function(c,g,B){return g[B+0]},N.Predictor3=function(c,g,B){return g[B+1]},N.Predictor4=function(c,g,B){return g[B-1]},N.Predictor5=function(c,g,B){return Pt(Pt(c,g[B+1]),g[B+0])},N.Predictor6=function(c,g,B){return Pt(c,g[B-1])},N.Predictor7=function(c,g,B){return Pt(c,g[B+0])},N.Predictor8=function(c,g,B){return Pt(g[B-1],g[B+0])},N.Predictor9=function(c,g,B){return Pt(g[B+0],g[B+1])},N.Predictor10=function(c,g,B){return Pt(Pt(c,g[B-1]),Pt(g[B+0],g[B+1]))},N.Predictor11=function(c,g,B){var b=g[B+0];return 0>=re(b>>24&255,c>>24&255,(g=g[B-1])>>24&255)+re(b>>16&255,c>>16&255,g>>16&255)+re(b>>8&255,c>>8&255,g>>8&255)+re(255&b,255&c,255&g)?b:c},N.Predictor12=function(c,g,B){var b=g[B+0];return(zt((c>>24&255)+(b>>24&255)-((g=g[B-1])>>24&255))<<24|zt((c>>16&255)+(b>>16&255)-(g>>16&255))<<16|zt((c>>8&255)+(b>>8&255)-(g>>8&255))<<8|zt((255&c)+(255&b)-(255&g)))>>>0},N.Predictor13=function(c,g,B){var b=g[B-1];return(Xt((c=Pt(c,g[B+0]))>>24&255,b>>24&255)<<24|Xt(c>>16&255,b>>16&255)<<16|Xt(c>>8&255,b>>8&255)<<8|Xt(c>>0&255,b>>0&255))>>>0};var um=N.PredictorAdd0;N.PredictorAdd1=se,It("Predictor2","PredictorAdd2"),It("Predictor3","PredictorAdd3"),It("Predictor4","PredictorAdd4"),It("Predictor5","PredictorAdd5"),It("Predictor6","PredictorAdd6"),It("Predictor7","PredictorAdd7"),It("Predictor8","PredictorAdd8"),It("Predictor9","PredictorAdd9"),It("Predictor10","PredictorAdd10"),It("Predictor11","PredictorAdd11"),It("Predictor12","PredictorAdd12"),It("Predictor13","PredictorAdd13");var xu=N.PredictorAdd2;oe("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),oe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var Yd,Fn=N.ColorIndexInverseTransform,Fu=N.MapARGB,cm=N.VP8LColorIndexInverseTransformAlpha,lm=N.MapAlpha,aa=N.VP8LPredictorsAdd=[];aa.length=16,(N.VP8LPredictors=[]).length=16,(N.VP8LPredictorsAdd_C=[]).length=16,(N.VP8LPredictors_C=[]).length=16;var tn,Qn,sa,qn,Bi,So,En,Lo,Qu,oa,Un,vi,As,Io,rs,ha,Eu,en,yi,qe,Xe,bA,PA,bi,ua,_o,Jd,fx,gx=i(511),px=i(2041),mx=i(225),wx=i(767),Bx=0,dm=px,Zd=mx,Dr=wx,An=gx,tf=0,ef=1,vx=2,Af=3,rf=4,fm=5,yx=6,gm=7,pm=8,nf=9,mm=10,HW=[2,3,7],DW=[3,3,11],bx=[280,256,256,256,40],RW=[0,1,1,1,0],jW=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],GW=[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],KW=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],VW=8,wm=[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],Bm=[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],Uu=null,$W=[[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]],zW=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Cx=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],WW=[[[[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]]]],qW=[[[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]]],XW=[[[[255,255,255,255,255,255,255,255,255,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]]]],YW=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ca=[],Sn=[],Ci=[],JW=1,xx=2,la=[],rn=[];Bt("UpsampleRgbLinePair",Qe,3),Bt("UpsampleBgrLinePair",aA,3),Bt("UpsampleRgbaLinePair",xn,4),Bt("UpsampleBgraLinePair",RA,4),Bt("UpsampleArgbLinePair",sr,4),Bt("UpsampleRgba4444LinePair",UA,2),Bt("UpsampleRgb565LinePair",yA,2);var ZW=N.UpsampleRgbLinePair,tq=N.UpsampleBgrLinePair,Fx=N.UpsampleRgbaLinePair,Qx=N.UpsampleBgraLinePair,Ex=N.UpsampleArgbLinePair,Ux=N.UpsampleRgba4444LinePair,eq=N.UpsampleRgb565LinePair,af=16,sf=1<<af-1,Su=-227,vm=482,Sx=6,Aq=(256<<Sx)-1,Lx=0,rq=i(256),nq=i(256),iq=i(256),aq=i(256),sq=i(vm-Su),oq=i(vm-Su);wi("YuvToRgbRow",Qe,3),wi("YuvToBgrRow",aA,3),wi("YuvToRgbaRow",xn,4),wi("YuvToBgraRow",RA,4),wi("YuvToArgbRow",sr,4),wi("YuvToRgba4444Row",UA,2),wi("YuvToRgb565Row",yA,2);var Ix=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],of=[0,2,8],hq=[8,7,6,4,4,2,2,2,1,1,1,1],uq=1;this.WebPDecodeRGBA=function(c,g,B,b,Q){var I=ef,_=new bo,P=new WA;_.ba=P,P.S=I,P.width=[P.width],P.height=[P.height];var T=P.width,j=P.height,tt=new fe;if(tt==null||c==null)var lt=2;else t(tt!=null),lt=xo(c,g,B,tt.width,tt.height,tt.Pd,tt.Qd,tt.format,null);if(lt!=0?T=0:(T!=null&&(T[0]=tt.width[0]),j!=null&&(j[0]=tt.height[0]),T=1),T){P.width=P.width[0],P.height=P.height[0],b!=null&&(b[0]=P.width),Q!=null&&(Q[0]=P.height);t:{if(b=new go,(Q=new gu).data=c,Q.w=g,Q.ha=B,Q.kd=1,g=[0],t(Q!=null),((c=xo(Q.data,Q.w,Q.ha,null,null,null,g,null,Q))==0||c==7)&&g[0]&&(c=4),(g=c)==0){if(t(_!=null),b.data=Q.data,b.w=Q.w+Q.offset,b.ha=Q.ha-Q.offset,b.put=kr,b.ac=EA,b.bc=Xr,b.ma=_,Q.xa){if((c=wr())==null){_=1;break t}if(function(dt,st){var bt=[0],wt=[0],et=[0];e:for(;;){if(dt==null)return 0;if(st==null)return dt.a=2,0;if(dt.l=st,dt.a=0,rt(dt.m,st.data,st.w,st.ha),!te(dt.m,bt,wt,et)){dt.a=3;break e}if(dt.xb=xx,st.width=bt[0],st.height=wt[0],!Jr(bt[0],wt[0],1,dt,null))break e;return 1}return t(dt.a!=0),0}(c,b)){if(b=(g=Fo(b.width,b.height,_.Oa,_.ba))==0){e:{b=c;A:for(;;){if(b==null){b=0;break e}if(t(b.s.yc!=null),t(b.s.Ya!=null),t(0<b.s.Wb),t((B=b.l)!=null),t((Q=B.ma)!=null),b.xb!=0){if(b.ca=Q.ba,b.tb=Q.tb,t(b.ca!=null),!yu(Q.Oa,B,Af)){b.a=2;break A}if(!X(b,B.width)||B.da)break A;if((B.da||Ce(b.ca.S))&&ut(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&ut()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!qt(b.s.vb,b.s.Wa.Xa)){b.a=1;break A}b.xb=0}if(!Qr(b,b.V,b.Ba,b.c,b.i,B.o,ea))break A;Q.Dc=b.Ma,b=1;break e}t(b.a!=0),b=0}b=!b}b&&(g=c.a)}else g=c.a}else{if((c=new V2)==null){_=1;break t}if(c.Fa=Q.na,c.P=Q.P,c.qc=Q.Sa,Td(c,b)){if((g=Fo(b.width,b.height,_.Oa,_.ba))==0){if(c.Aa=0,B=_.Oa,t((Q=c)!=null),B!=null){if(0<(T=0>(T=B.Md)?0:100<T?255:255*T/100)){for(j=tt=0;4>j;++j)12>(lt=Q.pb[j]).lc&&(lt.ia=T*hq[0>lt.lc?0:lt.lc]>>3),tt|=lt.ia;tt&&(alert("todo:VP8InitRandom"),Q.ia=1)}Q.Ga=B.Id,100<Q.Ga?Q.Ga=100:0>Q.Ga&&(Q.Ga=0)}$2(c,b)||(g=c.a)}}else g=c.a}g==0&&_.Oa!=null&&_.Oa.fd&&(g=bu(_.ba))}_=g}I=_!=0?null:11>I?P.f.RGBA.eb:P.f.kb.y}else I=null;return I};var _x=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(N,V){for(var $="",U=0;U<4;U++)$+=String.fromCharCode(N[V++]);return $}function u(N,V){return(N[V+0]<<0|N[V+1]<<8|N[V+2]<<16)>>>0}function d(N,V){return(N[V+0]<<0|N[V+1]<<8|N[V+2]<<16|N[V+3]<<24)>>>0}new o;var f=[0],l=[0],p=[],w=new o,y=A,v=function(N,V){var $={},U=0,S=!1,O=0,D=0;if($.frames=[],!function(R,G,q,Z){for(var ct=0;ct<Z;ct++)if(R[G+ct]!=q.charCodeAt(ct))return!0;return!1}(N,V,"RIFF",4)){var nt,Y;for(d(N,V+=4),V+=8;V<N.length;){var at=h(N,V),rt=d(N,V+=4);V+=4;var ot=rt+(1&rt);switch(at){case"VP8 ":case"VP8L":$.frames[U]===void 0&&($.frames[U]={}),(F=$.frames[U]).src_off=S?D:V-8,F.src_size=O+rt+8,U++,S&&(S=!1,O=0,D=0);break;case"VP8X":(F=$.header={}).feature_flags=N[V];var At=V+4;F.canvas_width=1+u(N,At),At+=3,F.canvas_height=1+u(N,At),At+=3;break;case"ALPH":S=!0,O=ot+8,D=V-8;break;case"ANIM":(F=$.header).bgcolor=d(N,V),At=V+4,F.loop_count=(nt=N)[(Y=At)+0]<<0|nt[Y+1]<<8,At+=2;break;case"ANMF":var pt,F;(F=$.frames[U]={}).offset_x=2*u(N,V),V+=3,F.offset_y=2*u(N,V),V+=3,F.width=1+u(N,V),V+=3,F.height=1+u(N,V),V+=3,F.duration=u(N,V),V+=3,pt=N[V++],F.dispose=1&pt,F.blend=pt>>1&1}at!="ANMF"&&(V+=ot)}return $}}(y,0);v.response=y,v.rgbaoutput=!0,v.dataurl=!1;var C=v.header?v.header:null,x=v.frames?v.frames:null;if(C){C.loop_counter=C.loop_count,f=[C.canvas_height],l=[C.canvas_width];for(var L=0;L<x.length&&x[L].blend!=0;L++);}var k=x[0],M=w.WebPDecodeRGBA(y,k.src_off,k.src_size,l,f);k.rgba=M,k.imgwidth=l[0],k.imgheight=f[0];for(var H=0;H<l[0]*f[0]*4;H++)p[H]=M[H];return this.width=l,this.height=f,this.data=p,this}(function(A){var t=function(){return typeof t1=="function"},e=function(f,l,p,w){var y=4,v=a;switch(w){case A.image_compression.FAST:y=1,v=i;break;case A.image_compression.MEDIUM:y=6,v=s;break;case A.image_compression.SLOW:y=9,v=o}f=r(f,l,p,v);var C=t1(f,{level:y});return A.__addimage__.arrayBufferToBinaryString(C)},r=function(f,l,p,w){for(var y,v,C,x=f.length/l,L=new Uint8Array(f.length+x),k=u(),M=0;M<x;M+=1){if(C=M*l,y=f.subarray(C,C+l),w)L.set(w(y,p,v),C+M);else{for(var H,N=k.length,V=[];H<N;H+=1)V[H]=k[H](y,p,v);var $=d(V.concat());L.set(V[$],C+M)}v=y}return L},n=function(f){var l=Array.apply([],f);return l.unshift(0),l},i=function(f,l){var p,w=[],y=f.length;w[0]=1;for(var v=0;v<y;v+=1)p=f[v-l]||0,w[v+1]=f[v]-p+256&255;return w},a=function(f,l,p){var w,y=[],v=f.length;y[0]=2;for(var C=0;C<v;C+=1)w=p&&p[C]||0,y[C+1]=f[C]-w+256&255;return y},s=function(f,l,p){var w,y,v=[],C=f.length;v[0]=3;for(var x=0;x<C;x+=1)w=f[x-l]||0,y=p&&p[x]||0,v[x+1]=f[x]+256-(w+y>>>1)&255;return v},o=function(f,l,p){var w,y,v,C,x=[],L=f.length;x[0]=4;for(var k=0;k<L;k+=1)w=f[k-l]||0,y=p&&p[k]||0,v=p&&p[k-l]||0,C=h(w,y,v),x[k+1]=f[k]-C+256&255;return x},h=function(f,l,p){if(f===l&&l===p)return f;var w=Math.abs(l-p),y=Math.abs(f-p),v=Math.abs(f+l-p-p);return w<=y&&w<=v?f:y<=v?l:p},u=function(){return[n,i,a,s,o]},d=function(f){var l=f.map(function(p){return p.reduce(function(w,y){return w+Math.abs(y)},0)});return l.indexOf(Math.min.apply(null,l))};A.processPNG=function(f,l,p,w){var y,v,C,x,L,k,M,H,N,V,$,U,S,O,D,nt=this.decode.FLATE_DECODE,Y="";if(this.__addimage__.isArrayBuffer(f)&&(f=new Uint8Array(f)),this.__addimage__.isArrayBufferView(f)){if(f=(C=new KE(f)).imgData,v=C.bits,y=C.colorSpace,L=C.colors,[4,6].indexOf(C.colorType)!==-1){if(C.bits===8){N=(H=C.pixelBitlength==32?new Uint32Array(C.decodePixels().buffer):C.pixelBitlength==16?new Uint16Array(C.decodePixels().buffer):new Uint8Array(C.decodePixels().buffer)).length,$=new Uint8Array(N*C.colors),V=new Uint8Array(N);var at,rt=C.pixelBitlength-C.bits;for(O=0,D=0;O<N;O++){for(S=H[O],at=0;at<rt;)$[D++]=S>>>at&255,at+=C.bits;V[O]=S>>>at&255}}if(C.bits===16){N=(H=new Uint32Array(C.decodePixels().buffer)).length,$=new Uint8Array(N*(32/C.pixelBitlength)*C.colors),V=new Uint8Array(N*(32/C.pixelBitlength)),U=C.colors>1,O=0,D=0;for(var ot=0;O<N;)S=H[O++],$[D++]=S>>>0&255,U&&($[D++]=S>>>16&255,S=H[O++],$[D++]=S>>>0&255),V[ot++]=S>>>16&255;v=8}w!==A.image_compression.NONE&&t()?(f=e($,C.width*C.colors,C.colors,w),M=e(V,C.width,1,w)):(f=$,M=V,nt=void 0)}if(C.colorType===3&&(y=this.color_spaces.INDEXED,k=C.palette,C.transparency.indexed)){var At=C.transparency.indexed,pt=0;for(O=0,N=At.length;O<N;++O)pt+=At[O];if((pt/=255)===N-1&&At.indexOf(0)!==-1)x=[At.indexOf(0)];else if(pt!==N){for(H=C.decodePixels(),V=new Uint8Array(H.length),O=0,N=H.length;O<N;O++)V[O]=At[H[O]];M=e(V,C.width,1)}}var F=function(R){var G;switch(R){case A.image_compression.FAST:G=11;break;case A.image_compression.MEDIUM:G=13;break;case A.image_compression.SLOW:G=14;break;default:G=12}return G}(w);return nt===this.decode.FLATE_DECODE&&(Y="/Predictor "+F+" "),Y+="/Colors "+L+" /BitsPerComponent "+v+" /Columns "+C.width,(this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),(M&&this.__addimage__.isArrayBuffer(M)||this.__addimage__.isArrayBufferView(M))&&(M=this.__addimage__.arrayBufferToBinaryString(M)),{alias:p,data:f,index:l,filter:nt,decodeParameters:Y,transparency:x,palette:k,sMask:M,predictor:F,width:C.width,height:C.height,bitsPerComponent:v,colorSpace:y}}}})(ae.API),function(A){A.processGIF89A=function(t,e,r,n){var i=new VE(t),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var h={data:o,width:a,height:s},u=new l1(100).encode(h,100);return A.processJPEG.call(this,u,e,r,n)},A.processGIF87A=A.processGIF89A}(ae.API),un.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 A=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},un.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[A]()}catch(e){Ke.log("bit decode error:"+e)}},un.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),e=t%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var o=this.palette[i>>7-s&1];this.data[a+4*s]=o.blue,this.data[a+4*s+1]=o.green,this.data[a+4*s+2]=o.red,this.data[a+4*s+3]=255}e!==0&&(this.pos+=4-e)}},un.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*n*4,s=i>>4,o=15&i,h=this.palette[s];if(this.data[a]=h.blue,this.data[a+1]=h.green,this.data[a+2]=h.red,this.data[a+3]=255,2*n+1>=this.width)break;h=this.palette[o],this.data[a+4]=h.blue,this.data[a+4+1]=h.green,this.data[a+4+2]=h.red,this.data[a+4+3]=255}t!==0&&(this.pos+=4-t)}},un.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var a=this.palette[n];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}A!==0&&(this.pos+=4-A)}},un.prototype.bit15=function(){for(var A=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,o=(i>>10&t)/t*255|0,h=i>>15?255:0,u=r*this.width*4+4*n;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=h}this.pos+=A}},un.prototype.bit16=function(){for(var A=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,o=(a>>5&e)/e*255|0,h=(a>>11)/t*255|0,u=n*this.width*4+4*i;this.data[u]=h,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=255}this.pos+=A}},un.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*e;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},un.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=a}},un.prototype.getData=function(){return this.data},function(A){A.processBMP=function(t,e,r,n){var i=new un(t,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},h=new l1(100).encode(o,100);return A.processJPEG.call(this,h,e,r,n)}}(ae.API),lB.prototype.getData=function(){return this.data},function(A){A.processWEBP=function(t,e,r,n){var i=new lB(t),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},h=new l1(100).encode(o,100);return A.processJPEG.call(this,h,e,r,n)}}(ae.API),ae.API.processRGBA=function(A,t,e){for(var r=A.data,n=r.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),s=0,o=0,h=0;h<n;h+=4){var u=r[h],d=r[h+1],f=r[h+2],l=r[h+3];i[s++]=u,i[s++]=d,i[s++]=f,a[o++]=l}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:p,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},ae.API.setLanguage=function(A){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"}[A]!==void 0&&(this.internal.languageSettings.languageCode=A,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},bs=ae.API,lc=bs.getCharWidthsArray=function(A,t){var e,r,n=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:n.metadata.Unicode.widths,o=s.fof?s.fof:1,h=t.kerning?t.kerning:n.metadata.Unicode.kerning,u=h.fof?h.fof:1,d=t.doKerning!==!1,f=0,l=A.length,p=0,w=s[0]||o,y=[];for(e=0;e<l;e++)r=A.charCodeAt(e),typeof n.metadata.widthOfString=="function"?y.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+a*(1e3/i)||0)/1e3):(f=d&&Le(h[r])==="object"&&!isNaN(parseInt(h[r][p],10))?h[r][p]/u:0,y.push((s[r]||w)/o+f)),p=r;return y},oB=bs.getStringUnitWidth=function(A,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return bs.processArabic&&(A=bs.processArabic(A)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(A,e,n)/e:lc.apply(this,arguments).reduce(function(i,a){return i+a},0)},hB=function(A,t,e,r){for(var n=[],i=0,a=A.length,s=0;i!==a&&s+t[i]<e;)s+=t[i],i++;n.push(A.slice(0,i));var o=i;for(s=0;i!==a;)s+t[i]>r&&(n.push(A.slice(o,i)),s=0,o=i),s+=t[i],i++;return o!==i&&n.push(A.slice(o,i)),n},uB=function(A,t,e){e||(e={});var r,n,i,a,s,o,h,u=[],d=[u],f=e.textIndent||0,l=0,p=0,w=A.split(" "),y=lc.apply(this,[" ",e])[0];if(o=e.lineIndent===-1?w[0].length+2:e.lineIndent||0){var v=Array(o).join(" "),C=[];w.map(function(L){(L=L.split(/\s*\n/)).length>1?C=C.concat(L.map(function(k,M){return(M&&k.length?`
`:"")+k})):C.push(L[0])}),w=C,o=oB.apply(this,[v,e])}for(i=0,a=w.length;i<a;i++){var x=0;if(r=w[i],o&&r[0]==`
`&&(r=r.substr(1),x=1),f+l+(p=(n=lc.apply(this,[r,e])).reduce(function(L,k){return L+k},0))>t||x){if(p>t){for(s=hB.apply(this,[r,n,t-(f+l),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);p=n.slice(r.length-(u[0]?u[0].length:0)).reduce(function(L,k){return L+k},0)}else u=[r];d.push(u),f=p+o,l=y}else u.push(r),f+=l+p,l=y}return h=o?function(L,k){return(k?v:"")+L.join(" ")}:function(L){return L.join(" ")},d.map(h)},bs.splitTextToSize=function(A,t,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var d=this.internal.getFont(u.fontName,u.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,e);r=Array.isArray(A)?A:String(A).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var s,o,h=[];for(s=0,o=r.length;s<o;s++)h=h.concat(uB.apply(this,[r[s],a,i]));return h},function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",e={},r={},n=0;n<t.length;n++)e[t[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=t[n];var i=function(d){return"0x"+parseInt(d,10).toString(16)},a=A.__fontmetrics__.compress=function(d){var f,l,p,w,y=["{"];for(var v in d){if(f=d[v],isNaN(parseInt(v,10))?l="'"+v+"'":(v=parseInt(v,10),l=(l=i(v).slice(2)).slice(0,-1)+r[l.slice(-1)]),typeof f=="number")f<0?(p=i(f).slice(3),w="-"):(p=i(f).slice(2),w=""),p=w+p.slice(0,-1)+r[p.slice(-1)];else{if(Le(f)!=="object")throw new Error("Don't know what to do with value type "+Le(f)+".");p=a(f)}y.push(l+p)}return y.push("}"),y.join("")},s=A.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,l,p,w,y={},v=1,C=y,x=[],L="",k="",M=d.length-1,H=1;H<M;H+=1)(w=d[H])=="'"?f?(p=f.join(""),f=void 0):f=[]:f?f.push(w):w=="{"?(x.push([C,p]),C={},p=void 0):w=="}"?((l=x.pop())[0][l[1]]=C,p=void 0,C=l[0]):w=="-"?v=-1:p===void 0?e.hasOwnProperty(w)?(L+=e[w],p=parseInt(L,16)*v,v=1,L=""):L+=w:e.hasOwnProperty(w)?(k+=e[w],C[p]=parseInt(k,16)*v,v=1,p=void 0,k=""):k+=w;return y},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'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":s("{'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:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'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:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'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":s("{'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:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'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":s("{'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":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w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{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};A.events.push(["addFont",function(d){var f=d.font,l=u.Unicode[f.postScriptName];l&&(f.metadata.Unicode={},f.metadata.Unicode.widths=l.widths,f.metadata.Unicode.kerning=l.kerning);var p=h.Unicode[f.postScriptName];p&&(f.metadata.Unicode.encoding=p,f.encoding=p.codePages[0])}])}(ae.API),function(A){var t=function(e){for(var r=e.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=e.charCodeAt(i);return n};A.API.events.push(["addFont",function(e){var r=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(eh(s)),a.metadata=A.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,r)}}])}(ae),function(A){function t(){return(ie.canvg?Promise.resolve(ie.canvg):Promise.resolve().then(()=>kW)).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}ae.API.addSvgAsImage=function(e,r,n,i,a,s,o,h){if(isNaN(r)||isNaN(n))throw Ke.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Ke.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=a;var d=u.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,u.width,u.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return t().then(function(p){return p.fromString(d,e,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(f)}).then(function(){l.addImage(u.toDataURL("image/jpeg",1),r,n,i,a,o,h)})}}(),ae.API.putTotalPages=function(A){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(t,e);return this},ae.API.viewerPreferences=function(A,t){var e;A=A||{},t=t||!1;var r,n,i,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),o=[],h=0,u=0,d=0;function f(p,w){var y,v=!1;for(y=0;y<p.length;y+=1)p[y]===w&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,A==="reset"||t===!0){var l=s.length;for(d=0;d<l;d+=1)e[s[d]].value=e[s[d]].defaultValue,e[s[d]].explicitSet=!1}if(Le(A)==="object"){for(n in A)if(i=A[n],f(s,n)&&i!==void 0){if(e[n].type==="boolean"&&typeof i=="boolean")e[n].value=i;else if(e[n].type==="name"&&f(e[n].valueSet,i))e[n].value=i;else if(e[n].type==="integer"&&Number.isInteger(i))e[n].value=i;else if(e[n].type==="array"){for(h=0;h<i.length;h+=1)if(r=!0,i[h].length===1&&typeof i[h][0]=="number")o.push(String(i[h]-1));else if(i[h].length>1){for(u=0;u<i[h].length;u+=1)typeof i[h][u]!="number"&&(r=!1);r===!0&&o.push([i[h][0]-1,i[h][1]-1].join(" "))}e[n].value="["+o.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,w=[];for(p in e)e[p].explicitSet===!0&&(e[p].type==="name"?w.push("/"+p+" /"+e[p].value):w.push("/"+p+" "+e[p].value));w.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+w.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(A){var t=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),h=i.length+a.length+s.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+h+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+s+o),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};A.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",t)),this}}(ae.API),function(A){var t=A.API,e=t.pdfEscape16=function(i,a){for(var s,o=a.metadata.Unicode.widths,h=["","0","00","000","0000"],u=[""],d=0,f=i.length;d<f;++d){if(s=a.metadata.characterToGlyph(i.charCodeAt(d)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=i.charCodeAt(d),o.indexOf(s)==-1&&(o.push(s),o.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(h[4-s.length],s)}return u.join("")},r=function(i){var a,s,o,h,u,d,f;for(u=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,o=[],d=0,f=(s=Object.keys(i).sort(function(l,p){return l-p})).length;d<f;d++)a=s[d],o.length>=100&&(u+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar`,o=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(h=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+h+">"));return o.length&&(u+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar
`),u+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,h=a.newObject,u=a.putStream;if(s.metadata instanceof A.API.TTFFont&&s.encoding==="Identity-H"){for(var d=s.metadata.Unicode.widths,f=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),l="",p=0;p<f.length;p++)l+=String.fromCharCode(f[p]);var w=h();u({data:l,addLength1:!0,objectId:w}),o("endobj");var y=h();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:y}),o("endobj");var v=h();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+gs(s.fontName)),o("/FontFile2 "+w+" 0 R"),o("/FontBBox "+A.API.PDFObject.convert(s.metadata.bbox)),o("/Flags "+s.metadata.flags),o("/StemV "+s.metadata.stemV),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o(">>"),o("endobj");var C=h();o("<<"),o("/Type /Font"),o("/BaseFont /"+gs(s.fontName)),o("/FontDescriptor "+v+" 0 R"),o("/W "+A.API.PDFObject.convert(d)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+s.encoding+")"),o(">>"),o(">>"),o("endobj"),s.objectNumber=h(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+y+" 0 R"),o("/BaseFont /"+gs(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+C+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,h=a.newObject,u=a.putStream;if(s.metadata instanceof A.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var d=s.metadata.rawData,f="",l=0;l<d.length;l++)f+=String.fromCharCode(d[l]);var p=h();u({data:f,addLength1:!0,objectId:p}),o("endobj");var w=h();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:w}),o("endobj");var y=h();o("<<"),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o("/StemV "+s.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+p+" 0 R"),o("/Flags 96"),o("/FontBBox "+A.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+gs(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=h();for(var v=0;v<s.metadata.hmtx.widths.length;v++)s.metadata.hmtx.widths[v]=parseInt(s.metadata.hmtx.widths[v]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+gs(s.fontName)+"/FontDescriptor "+y+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,s=i.text||"",o=i.x,h=i.y,u=i.options||{},d=i.mutex||{},f=d.pdfEscape,l=d.activeFontKey,p=d.fonts,w=l,y="",v=0,C="",x=p[w].encoding;if(p[w].encoding!=="Identity-H")return{text:s,x:o,y:h,options:u,mutex:d};for(C=s,w=l,Array.isArray(s)&&(C=s[0]),v=0;v<C.length;v+=1)p[w].metadata.hasOwnProperty("cmap")&&(a=p[w].metadata.cmap.unicode.codeMap[C[v].charCodeAt(0)]),a||C[v].charCodeAt(0)<256&&p[w].metadata.hasOwnProperty("Unicode")?y+=C[v]:y+="";var L="";return parseInt(w.slice(1))<14||x==="WinAnsiEncoding"?L=f(y,w).split("").map(function(k){return k.charCodeAt(0).toString(16)}).join(""):x==="Identity-H"&&(L=e(y,p[w])),d.isHex=!0,{text:L,x:o,y:h,options:u,mutex:d}};t.events.push(["postProcessText",function(i){var a=i.text||"",s=[],o={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var h=0;for(h=0;h<a.length;h+=1)Array.isArray(a[h])&&a[h].length===3?s.push([n(Object.assign({},o,{text:a[h][0]})).text,a[h][1],a[h][2]]):s.push(n(Object.assign({},o,{text:a[h]})).text);i.text=s}else i.text=n(Object.assign({},o,{text:a})).text}])}(ae),function(A){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},A.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},A.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(ae.API),function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(r){var n,i,a,s,o,h,u,d=t,f=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},y=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),C=!1,x=0;this.__bidiEngine__={};var L=function(U){var S=U.charCodeAt(),O=S>>8,D=w[O];return D!==void 0?d[256*D+(255&S)]:O===252||O===253?"AL":v.test(O)?"L":O===8?"R":"N"},k=function(U){for(var S,O=0;O<U.length;O++){if((S=L(U.charAt(O)))==="L")return!1;if(S==="R")return!0}return!1},M=function(U,S,O,D){var nt,Y,at,rt,ot=S[D];switch(ot){case"L":case"R":C=!1;break;case"N":case"AN":break;case"EN":C&&(ot="AN");break;case"AL":C=!0,ot="R";break;case"WS":ot="N";break;case"CS":D<1||D+1>=S.length||(nt=O[D-1])!=="EN"&&nt!=="AN"||(Y=S[D+1])!=="EN"&&Y!=="AN"?ot="N":C&&(Y="AN"),ot=Y===nt?Y:"N";break;case"ES":ot=(nt=D>0?O[D-1]:"B")==="EN"&&D+1<S.length&&S[D+1]==="EN"?"EN":"N";break;case"ET":if(D>0&&O[D-1]==="EN"){ot="EN";break}if(C){ot="N";break}for(at=D+1,rt=S.length;at<rt&&S[at]==="ET";)at++;ot=at<rt&&S[at]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(rt=S.length,at=D+1;at<rt&&S[at]==="NSM";)at++;if(at<rt){var At=U[D],pt=At>=1425&&At<=2303||At===64286;if(nt=S[at],pt&&(nt==="R"||nt==="AL")){ot="R";break}}}ot=D<1||(nt=S[D-1])==="B"?"N":O[D-1];break;case"B":C=!1,n=!0,ot=x;break;case"S":i=!0,ot="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":C=!1;break;case"BN":ot="N"}return ot},H=function(U,S,O){var D=U.split("");return O&&N(D,O,{hiLevel:x}),D.reverse(),S&&S.reverse(),D.join("")},N=function(U,S,O){var D,nt,Y,at,rt,ot=-1,At=U.length,pt=0,F=[],R=x?l:f,G=[];for(C=!1,n=!1,i=!1,nt=0;nt<At;nt++)G[nt]=L(U[nt]);for(Y=0;Y<At;Y++){if(rt=pt,F[Y]=M(U,G,F,Y),D=240&(pt=R[rt][p[F[Y]]]),pt&=15,S[Y]=at=R[pt][5],D>0)if(D===16){for(nt=ot;nt<Y;nt++)S[nt]=1;ot=-1}else ot=-1;if(R[pt][6])ot===-1&&(ot=Y);else if(ot>-1){for(nt=ot;nt<Y;nt++)S[nt]=at;ot=-1}G[Y]==="B"&&(S[Y]=0),O.hiLevel|=at}i&&function(q,Z,ct){for(var ft=0;ft<ct;ft++)if(q[ft]==="S"){Z[ft]=x;for(var gt=ft-1;gt>=0&&q[gt]==="WS";gt--)Z[gt]=x}}(G,S,At)},V=function(U,S,O,D,nt){if(!(nt.hiLevel<U)){if(U===1&&x===1&&!n)return S.reverse(),void(O&&O.reverse());for(var Y,at,rt,ot,At=S.length,pt=0;pt<At;){if(D[pt]>=U){for(rt=pt+1;rt<At&&D[rt]>=U;)rt++;for(ot=pt,at=rt-1;ot<at;ot++,at--)Y=S[ot],S[ot]=S[at],S[at]=Y,O&&(Y=O[ot],O[ot]=O[at],O[at]=Y);pt=rt}pt++}}},$=function(U,S,O){var D=U.split(""),nt={hiLevel:x};return O||(O=[]),N(D,O,nt),function(Y,at,rt){if(rt.hiLevel!==0&&u)for(var ot,At=0;At<Y.length;At++)at[At]===1&&(ot=y.indexOf(Y[At]))>=0&&(Y[At]=y[ot+1])}(D,O,nt),V(2,D,S,O,nt),V(1,D,S,O,nt),D.join("")};return this.__bidiEngine__.doBidiReorder=function(U,S,O){if(function(nt,Y){if(Y)for(var at=0;at<nt.length;at++)Y[at]=at;s===void 0&&(s=k(nt)),h===void 0&&(h=k(nt))}(U,S),a||!o||h)if(a&&o&&s^h)x=s?1:0,U=H(U,S,O);else if(!a&&o&&h)x=s?1:0,U=$(U,S,O),U=H(U,S);else if(!a||s||o||h){if(a&&!o&&s^h)U=H(U,S),s?(x=0,U=$(U,S,O)):(x=1,U=$(U,S,O),U=H(U,S));else if(a&&s&&!o&&h)x=1,U=$(U,S,O),U=H(U,S);else if(!a&&!o&&s^h){var D=u;s?(x=1,U=$(U,S,O),x=0,u=!1,U=$(U,S,O),u=D):(x=0,U=$(U,S,O),U=H(U,S),x=1,u=!1,U=$(U,S,O),u=D,U=H(U,S))}}else x=0,U=$(U,S,O);else x=s?1:0,U=$(U,S,O);return U},this.__bidiEngine__.setOptions=function(U){U&&(a=U.isInputVisual,o=U.isOutputVisual,s=U.isInputRtl,h=U.isOutputRtl,u=U.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(r){var n=r.text,i=(r.x,r.y,r.options||{}),a=(r.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var s=0;for(a=[],s=0;s<n.length;s+=1)Object.prototype.toString.call(n[s])==="[object Array]"?a.push([e.doBidiReorder(n[s][0]),n[s][1],n[s][2]]):a.push([e.doBidiReorder(n[s])]);r.text=a}else r.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])}(ae),ae.API.TTFFont=function(){function A(t){var e;if(this.rawData=t,e=this.contents=new Ti(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new aU(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new $E(this.contents),this.head=new WE(this),this.name=new ZE(this),this.cmap=new fB(this),this.toUnicode={},this.hhea=new qE(this),this.maxp=new tU(this),this.hmtx=new eU(this),this.post=new YE(this),this.os2=new XE(this),this.loca=new iU(this),this.glyf=new AU(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var a,s,o,h;for(h=[],a=0,s=(o=this.bbox).length;a<s;a++)t=o[a],h.push(Math.round(t*this.scaleFactor));return h}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},A.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},A.prototype.widthOfString=function(t,e,r){var n,i,a,s;for(a=0,i=0,s=(t=""+t).length;0<=s?i<s:i>s;i=0<=s?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return a*(e/1e3)},A.prototype.lineHeight=function(t,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},A}();var cn,Ti=function(){function A(t){this.data=t??[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(t){return this.data[this.pos++]=t},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},A.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},A.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},A.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},A.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},A.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},A.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(t){return this.writeInt16(t)},A.prototype.readLongLong=function(){var t,e,r,n,i,a,s,o;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^s)+(255^o)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*a+256*s+o},A.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(t){return this.writeInt32(t)},A.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},A.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},A}(),$E=function(){var A;function t(e){var r,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(e){var r,n,i,a,s,o,h,u,d,f,l,p,w;for(w in l=Object.keys(e).length,o=Math.log(2),d=16*Math.floor(Math.log(l)/o),a=Math.floor(d/o),u=16*l-d,(n=new Ti).writeInt(this.scalarType),n.writeShort(l),n.writeShort(d),n.writeShort(a),n.writeShort(u),i=16*l,h=n.pos+i,s=null,p=[],e)for(f=e[w],n.writeString(w),n.writeInt(A(f)),n.writeInt(h),n.writeInt(f.length),p=p.concat(f),w==="head"&&(s=h),h+=f.length;h%4;)p.push(0),h++;return n.write(p),r=2981146554-A(n.data),n.pos=s+8,n.writeUInt32(r),n.data},A=function(e){var r,n,i,a;for(e=gB.call(e);e.length%4;)e.push(0);for(i=new Ti(e),n=0,r=0,a=e.length;r<a;r=r+=4)n+=i.readUInt32();return 4294967295&n},t}(),zE={}.hasOwnProperty,On=function(A,t){for(var e in t)zE.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};cn=function(){function A(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var WE=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var r;return(r=new Ti).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(e),r.writeShort(this.glyphDataFormat),r.data},t}(),dB=function(){function A(t,e){var r,n,i,a,s,o,h,u,d,f,l,p,w,y,v,C,x;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),d=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=t.readByte();break;case 4:for(l=t.readUInt16(),f=l/2,t.pos+=6,i=function(){var L,k;for(k=[],o=L=0;0<=f?L<f:L>f;o=0<=f?++L:--L)k.push(t.readUInt16());return k}(),t.pos+=2,w=function(){var L,k;for(k=[],o=L=0;0<=f?L<f:L>f;o=0<=f?++L:--L)k.push(t.readUInt16());return k}(),h=function(){var L,k;for(k=[],o=L=0;0<=f?L<f:L>f;o=0<=f?++L:--L)k.push(t.readUInt16());return k}(),u=function(){var L,k;for(k=[],o=L=0;0<=f?L<f:L>f;o=0<=f?++L:--L)k.push(t.readUInt16());return k}(),n=(this.length-t.pos+this.offset)/2,s=function(){var L,k;for(k=[],o=L=0;0<=n?L<n:L>n;o=0<=n?++L:--L)k.push(t.readUInt16());return k}(),o=v=0,x=i.length;v<x;o=++v)for(y=i[o],r=C=p=w[o];p<=y?C<=y:C>=y;r=p<=y?++C:--C)u[o]===0?a=r+h[o]:(a=s[u[o]/2+(r-p)-(f-o)]||0)!==0&&(a+=h[o]),this.codeMap[r]=65535&a}t.pos=d}return A.encode=function(t,e){var r,n,i,a,s,o,h,u,d,f,l,p,w,y,v,C,x,L,k,M,H,N,V,$,U,S,O,D,nt,Y,at,rt,ot,At,pt,F,R,G,q,Z,ct,ft,gt,St,Ut,Ht;switch(D=new Ti,a=Object.keys(t).sort(function(Mt,qt){return Mt-qt}),e){case"macroman":for(w=0,y=function(){var Mt=[];for(p=0;p<256;++p)Mt.push(0);return Mt}(),C={0:0},i={},nt=0,ot=a.length;nt<ot;nt++)C[gt=t[n=a[nt]]]==null&&(C[gt]=++w),i[n]={old:t[n],new:C[t[n]]},y[n]=C[t[n]];return D.writeUInt16(1),D.writeUInt16(0),D.writeUInt32(12),D.writeUInt16(0),D.writeUInt16(262),D.writeUInt16(0),D.write(y),{charMap:i,subtable:D.data,maxGlyphID:w+1};case"unicode":for(S=[],d=[],x=0,C={},r={},v=h=null,Y=0,At=a.length;Y<At;Y++)C[k=t[n=a[Y]]]==null&&(C[k]=++x),r[n]={old:k,new:C[k]},s=C[k]-n,v!=null&&s===h||(v&&d.push(v),S.push(n),h=s),v=n;for(v&&d.push(v),d.push(65535),S.push(65535),$=2*(V=S.length),N=2*Math.pow(Math.log(V)/Math.LN2,2),f=Math.log(N/2)/Math.LN2,H=2*V-N,o=[],M=[],l=[],p=at=0,pt=S.length;at<pt;p=++at){if(U=S[p],u=d[p],U===65535){o.push(0),M.push(0);break}if(U-(O=r[U].new)>=32768)for(o.push(0),M.push(2*(l.length+V-p)),n=rt=U;U<=u?rt<=u:rt>=u;n=U<=u?++rt:--rt)l.push(r[n].new);else o.push(O-U),M.push(0)}for(D.writeUInt16(3),D.writeUInt16(1),D.writeUInt32(12),D.writeUInt16(4),D.writeUInt16(16+8*V+2*l.length),D.writeUInt16(0),D.writeUInt16($),D.writeUInt16(N),D.writeUInt16(f),D.writeUInt16(H),ct=0,F=d.length;ct<F;ct++)n=d[ct],D.writeUInt16(n);for(D.writeUInt16(0),ft=0,R=S.length;ft<R;ft++)n=S[ft],D.writeUInt16(n);for(St=0,G=o.length;St<G;St++)s=o[St],D.writeUInt16(s);for(Ut=0,q=M.length;Ut<q;Ut++)L=M[Ut],D.writeUInt16(L);for(Ht=0,Z=l.length;Ht<Z;Ht++)w=l[Ht],D.writeUInt16(w);return{charMap:r,subtable:D.data,maxGlyphID:x+1}}},A}(),fB=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="cmap",t.prototype.parse=function(e){var r,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new dB(e,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},t.encode=function(e,r){var n,i;return r==null&&(r="macroman"),n=dB.encode(e,r),(i=new Ti).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},t}(),qE=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),XE=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(e.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),YE=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="post",t.prototype.parse=function(e){var r,n,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var a;for(n=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)r=e.readByte(),i.push(this.names.push(e.readString(r)));return i;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 196608:break;case 262144:return this.map=function(){var s,o,h;for(h=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)h.push(e.readUInt32());return h}.call(this)}},t}(),JE=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ZE=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="name",t.prototype.parse=function(e){var r,n,i,a,s,o,h,u,d,f,l;for(e.pos=this.offset,e.readShort(),r=e.readShort(),o=e.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(h={},a=d=0,f=n.length;d<f;a=++d)i=n[a],e.pos=i.offset,u=e.readString(i.length),s=new JE(u,i),h[l=i.nameID]==null&&(h[l]=[]),h[i.nameID].push(s);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},t}(),tU=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),eU=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="hmtx",t.prototype.parse=function(e){var r,n,i,a,s,o,h;for(e.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:r>o;r=0<=o?++r:--r)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],r=u=0;0<=i?u<i:u>i;r=0<=i?++u:--u)d.push(e.readInt16());return d}(),this.widths=function(){var u,d,f,l;for(l=[],u=0,d=(f=this.metrics).length;u<d;u++)a=f[u],l.push(a.advance);return l}.call(this),n=this.widths[this.widths.length-1],h=[],r=s=0;0<=i?s<i:s>i;r=0<=i?++s:--s)h.push(this.widths.push(n));return h},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),gB=[].slice,AU=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var r,n,i,a,s,o,h,u,d,f;return e in this.cache?this.cache[e]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(e),(i=a.lengthOf(e))===0?this.cache[e]=null:(r.pos=this.offset+n,s=(o=new Ti(r.read(i))).readShort(),u=o.readShort(),f=o.readShort(),h=o.readShort(),d=o.readShort(),this.cache[e]=s===-1?new nU(o,u,f,h,d):new rU(o,s,u,f,h,d),this.cache[e]))},t.prototype.encode=function(e,r,n){var i,a,s,o,h;for(s=[],a=[],o=0,h=r.length;o<h;o++)i=e[r[o]],a.push(s.length),i&&(s=s.concat(i.encode(n)));return a.push(s.length),{table:s,offsets:a}},t}(),rU=function(){function A(t,e,r,n,i,a){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),nU=function(){function A(t,e,r,n,i){var a,s;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return A.prototype.encode=function(){var t,e,r;for(e=new Ti(gB.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},A}(),iU=function(A){function t(){return t.__super__.constructor.apply(this,arguments)}return On(t,cn),t.prototype.tag="loca",t.prototype.parse=function(e){var r,n;return e.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*e.readUInt16());return a}.call(this):function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(e.readUInt32());return a}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<n.length;++s)if(n[s]=i,a<r.length&&r[a]==s){++a,n[s]=i;var o=this.offsets[s],h=this.offsets[s+1]-o;h>0&&(i+=h)}for(var u=new Array(4*n.length),d=0;d<n.length;++d)u[4*d+3]=255&n[d],u[4*d+2]=(65280&n[d])>>8,u[4*d+1]=(16711680&n[d])>>16,u[4*d]=(4278190080&n[d])>>24;return u},t}(),aU=function(){function A(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},A.prototype.glyphsFor=function(t){var e,r,n,i,a,s,o;for(n={},a=0,s=t.length;a<s;a++)n[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(r=n[i])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in o=this.glyphsFor(e))r=o[i],n[i]=r;return n},A.prototype.encode=function(t,e){var r,n,i,a,s,o,h,u,d,f,l,p,w,y,v;for(n in r=fB.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),l={0:0},v=r.charMap)l[(o=v[n]).old]=o.new;for(p in f=r.maxGlyphID,a)p in l||(l[p]=f++);return u=function(C){var x,L;for(x in L={},C)L[C[x]]=x;return L}(l),d=Object.keys(u).sort(function(C,x){return C-x}),w=function(){var C,x,L;for(L=[],C=0,x=d.length;C<x;C++)s=d[C],L.push(u[s]);return L}(),i=this.font.glyf.encode(a,w,l),h=this.font.loca.encode(i.offsets,w),y={cmap:this.font.cmap.raw(),glyf:i.table,loca:h,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(y["OS/2"]=this.font.os2.raw()),this.font.directory.encode(y)},A}();ae.API.PDFObject=function(){var A;function t(){}return A=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},t.convert=function(e){var r,n,i,a;if(Array.isArray(e))return"["+function(){var s,o,h;for(h=[],s=0,o=e.length;s<o;s++)r=e[s],h.push(t.convert(r));return h}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in i=["<<"],e)a=e[n],i.push("/"+n+" "+t.convert(a));return i.push(">>"),i.join(`
`)}return""+e},t}();var dc,d1;let pB=class{constructor(t){Im(this,dc),this.doc=new ae(t.docSize),this.config=t,this.pageWidth=t.pageWidth,this.pageHeight=t.pageHeight,this.pageMargin=t.pageMargin,this.pageWidth-=this.pageMargin*2,this.pageHeight-=this.pageMargin*2,this.pageMarginLeft=t.pageMarginLeft,this.pageMarginTop=t.pageMarginTop,this.cellPaddingLeft=t.cellPaddingLeft,this.cellPaddingTop=t.cellPaddingTop,this.cellPadding=t.cellPadding,this.cellWidth=t.cellWidth,this.cellHeight=t.cellHeight,this.startX=this.pageMarginLeft,this.startY=this.pageMarginTop}createLabel(t){var e=this.startX+this.cellWidth+this.cellPadding*2,r=this.startY+this.cellHeight+this.cellPadding*2;e<=this.pageWidth?(Tu(this,dc,d1).call(this,t,this.startX+this.cellPadding,this.startY+this.cellPadding),this.startX=e+this.cellPaddingLeft):(r+this.cellHeight>this.pageHeight?(this.doc.addPage(),this.startY=this.pageMargin):this.startY=r+this.cellPaddingTop,this.startX=this.pageMarginLeft,Tu(this,dc,d1).call(this,t,this.startX+this.cellPadding,this.startY+this.cellPadding),this.startX=this.startX+this.cellWidth+this.cellPadding*2+this.cellPaddingLeft)}};dc=new WeakSet,d1=function(A,t,e){this.doc.addImage(A,"JPEG",t,e,this.cellWidth,this.cellHeight)};let sU=class{constructor(t){var e=document.getElementById(t);e.addEventListener("change",this.handleFileAsync,!1)}async handleFileAsync(t){const e=await t.target.files[0].arrayBuffer(),r=XLSX.read(e),n=r.Sheets[r.SheetNames[0]];var i=XLSX.utils.sheet_to_json(n,{header:1});localStorage.setItem("sheetData",JSON.stringify(i))}};var Mi={},oU=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},mB={},Nr={};let f1;const hU=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Nr.getSymbolSize=function(A){if(!A)throw new Error('"version" cannot be null or undefined');if(A<1||A>40)throw new Error('"version" should be in range from 1 to 40');return A*4+17},Nr.getSymbolTotalCodewords=function(A){return hU[A]},Nr.getBCHDigit=function(A){let t=0;for(;A!==0;)t++,A>>>=1;return t},Nr.setToSJISFunction=function(A){if(typeof A!="function")throw new Error('"toSJISFunc" is not a valid function.');f1=A},Nr.isKanjiModeEnabled=function(){return typeof f1<"u"},Nr.toSJIS=function(A){return f1(A)};var fc={};(function(A){A.L={bit:1},A.M={bit:0},A.Q={bit:3},A.H={bit:2};function t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return A.L;case"m":case"medium":return A.M;case"q":case"quartile":return A.Q;case"h":case"high":return A.H;default:throw new Error("Unknown EC Level: "+e)}}A.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},A.from=function(e,r){if(A.isValid(e))return e;try{return t(e)}catch{return r}}})(fc);function wB(){this.buffer=[],this.length=0}wB.prototype={get:function(A){const t=Math.floor(A/8);return(this.buffer[t]>>>7-A%8&1)===1},put:function(A,t){for(let e=0;e<t;e++)this.putBit((A>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(A){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),A&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var uU=wB;function Ah(A){if(!A||A<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=A,this.data=new Uint8Array(A*A),this.reservedBit=new Uint8Array(A*A)}Ah.prototype.set=function(A,t,e,r){const n=A*this.size+t;this.data[n]=e,r&&(this.reservedBit[n]=!0)},Ah.prototype.get=function(A,t){return this.data[A*this.size+t]},Ah.prototype.xor=function(A,t,e){this.data[A*this.size+t]^=e},Ah.prototype.isReserved=function(A,t){return this.reservedBit[A*this.size+t]};var cU=Ah,BB={};(function(A){const t=Nr.getSymbolSize;A.getRowColCoords=function(e){if(e===1)return[];const r=Math.floor(e/7)+2,n=t(e),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,a=[n-7];for(let s=1;s<r-1;s++)a[s]=a[s-1]-i;return a.push(6),a.reverse()},A.getPositions=function(e){const r=[],n=A.getRowColCoords(e),i=n.length;for(let a=0;a<i;a++)for(let s=0;s<i;s++)a===0&&s===0||a===0&&s===i-1||a===i-1&&s===0||r.push([n[a],n[s]]);return r}})(BB);var vB={};const lU=Nr.getSymbolSize,yB=7;vB.getPositions=function(A){const t=lU(A);return[[0,0],[t-yB,0],[0,t-yB]]};var bB={};(function(A){A.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};A.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},A.from=function(r){return A.isValid(r)?parseInt(r,10):void 0},A.getPenaltyN1=function(r){const n=r.size;let i=0,a=0,s=0,o=null,h=null;for(let u=0;u<n;u++){a=s=0,o=h=null;for(let d=0;d<n;d++){let f=r.get(u,d);f===o?a++:(a>=5&&(i+=t.N1+(a-5)),o=f,a=1),f=r.get(d,u),f===h?s++:(s>=5&&(i+=t.N1+(s-5)),h=f,s=1)}a>=5&&(i+=t.N1+(a-5)),s>=5&&(i+=t.N1+(s-5))}return i},A.getPenaltyN2=function(r){const n=r.size;let i=0;for(let a=0;a<n-1;a++)for(let s=0;s<n-1;s++){const o=r.get(a,s)+r.get(a,s+1)+r.get(a+1,s)+r.get(a+1,s+1);(o===4||o===0)&&i++}return i*t.N2},A.getPenaltyN3=function(r){const n=r.size;let i=0,a=0,s=0;for(let o=0;o<n;o++){a=s=0;for(let h=0;h<n;h++)a=a<<1&2047|r.get(o,h),h>=10&&(a===1488||a===93)&&i++,s=s<<1&2047|r.get(h,o),h>=10&&(s===1488||s===93)&&i++}return i*t.N3},A.getPenaltyN4=function(r){let n=0;const i=r.data.length;for(let a=0;a<i;a++)n+=r.data[a];return Math.abs(Math.ceil(n*100/i/5)-10)*t.N4};function e(r,n,i){switch(r){case A.Patterns.PATTERN000:return(n+i)%2===0;case A.Patterns.PATTERN001:return n%2===0;case A.Patterns.PATTERN010:return i%3===0;case A.Patterns.PATTERN011:return(n+i)%3===0;case A.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case A.Patterns.PATTERN101:return n*i%2+n*i%3===0;case A.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case A.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}A.applyMask=function(r,n){const i=n.size;for(let a=0;a<i;a++)for(let s=0;s<i;s++)n.isReserved(s,a)||n.xor(s,a,e(r,s,a))},A.getBestMask=function(r,n){const i=Object.keys(A.Patterns).length;let a=0,s=1/0;for(let o=0;o<i;o++){n(o),A.applyMask(o,r);const h=A.getPenaltyN1(r)+A.getPenaltyN2(r)+A.getPenaltyN3(r)+A.getPenaltyN4(r);A.applyMask(o,r),h<s&&(s=h,a=o)}return a}})(bB);var gc={};const Oi=fc,pc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],mc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];gc.getBlocksCount=function(A,t){switch(t){case Oi.L:return pc[(A-1)*4+0];case Oi.M:return pc[(A-1)*4+1];case Oi.Q:return pc[(A-1)*4+2];case Oi.H:return pc[(A-1)*4+3];default:return}},gc.getTotalCodewordsCount=function(A,t){switch(t){case Oi.L:return mc[(A-1)*4+0];case Oi.M:return mc[(A-1)*4+1];case Oi.Q:return mc[(A-1)*4+2];case Oi.H:return mc[(A-1)*4+3];default:return}};var CB={},wc={};const rh=new Uint8Array(512),Bc=new Uint8Array(256);(function(){let A=1;for(let t=0;t<255;t++)rh[t]=A,Bc[A]=t,A<<=1,A&256&&(A^=285);for(let t=255;t<512;t++)rh[t]=rh[t-255]})(),wc.log=function(A){if(A<1)throw new Error("log("+A+")");return Bc[A]},wc.exp=function(A){return rh[A]},wc.mul=function(A,t){return A===0||t===0?0:rh[Bc[A]+Bc[t]]},function(A){const t=wc;A.mul=function(e,r){const n=new Uint8Array(e.length+r.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<r.length;a++)n[i+a]^=t.mul(e[i],r[a]);return n},A.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){const i=n[0];for(let s=0;s<r.length;s++)n[s]^=t.mul(r[s],i);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n},A.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=A.mul(r,new Uint8Array([1,t.exp(n)]));return r}}(CB);const xB=CB;function g1(A){this.genPoly=void 0,this.degree=A,this.degree&&this.initialize(this.degree)}g1.prototype.initialize=function(A){this.degree=A,this.genPoly=xB.generateECPolynomial(this.degree)},g1.prototype.encode=function(A){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(A.length+this.degree);t.set(A);const e=xB.mod(t,this.genPoly),r=this.degree-e.length;if(r>0){const n=new Uint8Array(this.degree);return n.set(e,r),n}return e};var dU=g1,FB={},ki={},p1={};p1.isValid=function(A){return!isNaN(A)&&A>=1&&A<=40};var kn={};const QB="[0-9]+",fU="[A-Z $%*+\\-./:]+";let nh="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";nh=nh.replace(/u/g,"\\u");const gU="(?:(?![A-Z0-9 $%*+\\-./:]|"+nh+`)(?:.|[\r
]))+`;kn.KANJI=new RegExp(nh,"g"),kn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),kn.BYTE=new RegExp(gU,"g"),kn.NUMERIC=new RegExp(QB,"g"),kn.ALPHANUMERIC=new RegExp(fU,"g");const pU=new RegExp("^"+nh+"$"),mU=new RegExp("^"+QB+"$"),wU=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");kn.testKanji=function(A){return pU.test(A)},kn.testNumeric=function(A){return mU.test(A)},kn.testAlphanumeric=function(A){return wU.test(A)},function(A){const t=p1,e=kn;A.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},A.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},A.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},A.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},A.MIXED={bit:-1},A.getCharCountIndicator=function(n,i){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?n.ccBits[0]:i<27?n.ccBits[1]:n.ccBits[2]},A.getBestModeForData=function(n){return e.testNumeric(n)?A.NUMERIC:e.testAlphanumeric(n)?A.ALPHANUMERIC:e.testKanji(n)?A.KANJI:A.BYTE},A.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},A.isValid=function(n){return n&&n.bit&&n.ccBits};function r(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return A.NUMERIC;case"alphanumeric":return A.ALPHANUMERIC;case"kanji":return A.KANJI;case"byte":return A.BYTE;default:throw new Error("Unknown mode: "+n)}}A.from=function(n,i){if(A.isValid(n))return n;try{return r(n)}catch{return i}}}(ki),function(A){const t=Nr,e=gc,r=fc,n=ki,i=p1,a=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,s=t.getBCHDigit(a);function o(f,l,p){for(let w=1;w<=40;w++)if(l<=A.getCapacity(w,p,f))return w}function h(f,l){return n.getCharCountIndicator(f,l)+4}function u(f,l){let p=0;return f.forEach(function(w){const y=h(w.mode,l);p+=y+w.getBitsLength()}),p}function d(f,l){for(let p=1;p<=40;p++)if(u(f,p)<=A.getCapacity(p,l,n.MIXED))return p}A.from=function(f,l){return i.isValid(f)?parseInt(f,10):l},A.getCapacity=function(f,l,p){if(!i.isValid(f))throw new Error("Invalid QR Code version");typeof p>"u"&&(p=n.BYTE);const w=t.getSymbolTotalCodewords(f),y=e.getTotalCodewordsCount(f,l),v=(w-y)*8;if(p===n.MIXED)return v;const C=v-h(p,f);switch(p){case n.NUMERIC:return Math.floor(C/10*3);case n.ALPHANUMERIC:return Math.floor(C/11*2);case n.KANJI:return Math.floor(C/13);case n.BYTE:default:return Math.floor(C/8)}},A.getBestVersionForData=function(f,l){let p;const w=r.from(l,r.M);if(Array.isArray(f)){if(f.length>1)return d(f,w);if(f.length===0)return 1;p=f[0]}else p=f;return o(p.mode,p.getLength(),w)},A.getEncodedBits=function(f){if(!i.isValid(f)||f<7)throw new Error("Invalid QR Code version");let l=f<<12;for(;t.getBCHDigit(l)-s>=0;)l^=a<<t.getBCHDigit(l)-s;return f<<12|l}}(FB);var EB={};const m1=Nr,UB=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,BU=1<<14|1<<12|1<<10|1<<4|1<<1,SB=m1.getBCHDigit(UB);EB.getEncodedBits=function(A,t){const e=A.bit<<3|t;let r=e<<10;for(;m1.getBCHDigit(r)-SB>=0;)r^=UB<<m1.getBCHDigit(r)-SB;return(e<<10|r)^BU};var LB={};const vU=ki;function Cs(A){this.mode=vU.NUMERIC,this.data=A.toString()}Cs.getBitsLength=function(A){return 10*Math.floor(A/3)+(A%3?A%3*3+1:0)},Cs.prototype.getLength=function(){return this.data.length},Cs.prototype.getBitsLength=function(){return Cs.getBitsLength(this.data.length)},Cs.prototype.write=function(A){let t,e,r;for(t=0;t+3<=this.data.length;t+=3)e=this.data.substr(t,3),r=parseInt(e,10),A.put(r,10);const n=this.data.length-t;n>0&&(e=this.data.substr(t),r=parseInt(e,10),A.put(r,n*3+1))};var yU=Cs;const bU=ki,w1=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function xs(A){this.mode=bU.ALPHANUMERIC,this.data=A}xs.getBitsLength=function(A){return 11*Math.floor(A/2)+6*(A%2)},xs.prototype.getLength=function(){return this.data.length},xs.prototype.getBitsLength=function(){return xs.getBitsLength(this.data.length)},xs.prototype.write=function(A){let t;for(t=0;t+2<=this.data.length;t+=2){let e=w1.indexOf(this.data[t])*45;e+=w1.indexOf(this.data[t+1]),A.put(e,11)}this.data.length%2&&A.put(w1.indexOf(this.data[t]),6)};var CU=xs,xU=function(A){for(var t=[],e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);if(n>=55296&&n<=56319&&e>r+1){var i=A.charCodeAt(r+1);i>=56320&&i<=57343&&(n=(n-55296)*1024+i-56320+65536,r+=1)}if(n<128){t.push(n);continue}if(n<2048){t.push(n>>6|192),t.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){t.push(n>>12|224),t.push(n>>6&63|128),t.push(n&63|128);continue}if(n>=65536&&n<=1114111){t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(n&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const FU=xU,QU=ki;function Fs(A){this.mode=QU.BYTE,typeof A=="string"&&(A=FU(A)),this.data=new Uint8Array(A)}Fs.getBitsLength=function(A){return A*8},Fs.prototype.getLength=function(){return this.data.length},Fs.prototype.getBitsLength=function(){return Fs.getBitsLength(this.data.length)},Fs.prototype.write=function(A){for(let t=0,e=this.data.length;t<e;t++)A.put(this.data[t],8)};var EU=Fs;const UU=ki,SU=Nr;function Qs(A){this.mode=UU.KANJI,this.data=A}Qs.getBitsLength=function(A){return A*13},Qs.prototype.getLength=function(){return this.data.length},Qs.prototype.getBitsLength=function(){return Qs.getBitsLength(this.data.length)},Qs.prototype.write=function(A){let t;for(t=0;t<this.data.length;t++){let e=SU.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),A.put(e,13)}};var LU=Qs,IB={exports:{}};(function(A){var t={single_source_shortest_paths:function(e,r,n){var i={},a={};a[r]=0;var s=t.PriorityQueue.make();s.push(r,0);for(var o,h,u,d,f,l,p,w,y;!s.empty();){o=s.pop(),h=o.value,d=o.cost,f=e[h]||{};for(u in f)f.hasOwnProperty(u)&&(l=f[u],p=d+l,w=a[u],y=typeof a[u]>"u",(y||w>p)&&(a[u]=p,s.push(u,p),i[u]=h))}if(typeof n<"u"&&typeof a[n]>"u"){var v=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(v)}return i},extract_shortest_path_from_predecessor_list:function(e,r){for(var n=[],i=r;i;)n.push(i),e[i],i=e[i];return n.reverse(),n},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r=t.PriorityQueue,n={},i;e=e||{};for(i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n.queue=[],n.sorter=e.sorter||r.default_sorter,n},default_sorter:function(e,r){return e.cost-r.cost},push:function(e,r){var n={value:e,cost:r};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};A.exports=t})(IB),function(A){const t=ki,e=yU,r=CU,n=EU,i=LU,a=kn,s=Nr,o=IB.exports;function h(v){return unescape(encodeURIComponent(v)).length}function u(v,C,x){const L=[];let k;for(;(k=v.exec(x))!==null;)L.push({data:k[0],index:k.index,mode:C,length:k[0].length});return L}function d(v){const C=u(a.NUMERIC,t.NUMERIC,v),x=u(a.ALPHANUMERIC,t.ALPHANUMERIC,v);let L,k;return s.isKanjiModeEnabled()?(L=u(a.BYTE,t.BYTE,v),k=u(a.KANJI,t.KANJI,v)):(L=u(a.BYTE_KANJI,t.BYTE,v),k=[]),C.concat(x,L,k).sort(function(M,H){return M.index-H.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function f(v,C){switch(C){case t.NUMERIC:return e.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return i.getBitsLength(v);case t.BYTE:return n.getBitsLength(v)}}function l(v){return v.reduce(function(C,x){const L=C.length-1>=0?C[C.length-1]:null;return L&&L.mode===x.mode?(C[C.length-1].data+=x.data,C):(C.push(x),C)},[])}function p(v){const C=[];for(let x=0;x<v.length;x++){const L=v[x];switch(L.mode){case t.NUMERIC:C.push([L,{data:L.data,mode:t.ALPHANUMERIC,length:L.length},{data:L.data,mode:t.BYTE,length:L.length}]);break;case t.ALPHANUMERIC:C.push([L,{data:L.data,mode:t.BYTE,length:L.length}]);break;case t.KANJI:C.push([L,{data:L.data,mode:t.BYTE,length:h(L.data)}]);break;case t.BYTE:C.push([{data:L.data,mode:t.BYTE,length:h(L.data)}])}}return C}function w(v,C){const x={},L={start:{}};let k=["start"];for(let M=0;M<v.length;M++){const H=v[M],N=[];for(let V=0;V<H.length;V++){const $=H[V],U=""+M+V;N.push(U),x[U]={node:$,lastCount:0},L[U]={};for(let S=0;S<k.length;S++){const O=k[S];x[O]&&x[O].node.mode===$.mode?(L[O][U]=f(x[O].lastCount+$.length,$.mode)-f(x[O].lastCount,$.mode),x[O].lastCount+=$.length):(x[O]&&(x[O].lastCount=$.length),L[O][U]=f($.length,$.mode)+4+t.getCharCountIndicator($.mode,C))}}k=N}for(let M=0;M<k.length;M++)L[k[M]].end=0;return{map:L,table:x}}function y(v,C){let x;const L=t.getBestModeForData(v);if(x=t.from(C,L),x!==t.BYTE&&x.bit<L.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString(x)+`.
Suggested mode is: `+t.toString(L));switch(x===t.KANJI&&!s.isKanjiModeEnabled()&&(x=t.BYTE),x){case t.NUMERIC:return new e(v);case t.ALPHANUMERIC:return new r(v);case t.KANJI:return new i(v);case t.BYTE:return new n(v)}}A.fromArray=function(v){return v.reduce(function(C,x){return typeof x=="string"?C.push(y(x,null)):x.data&&C.push(y(x.data,x.mode)),C},[])},A.fromString=function(v,C){const x=d(v,s.isKanjiModeEnabled()),L=p(x),k=w(L,C),M=o.find_path(k.map,"start","end"),H=[];for(let N=1;N<M.length-1;N++)H.push(k.table[M[N]].node);return A.fromArray(l(H))},A.rawSplit=function(v){return A.fromArray(d(v,s.isKanjiModeEnabled()))}}(LB);const vc=Nr,B1=fc,IU=uU,_U=cU,NU=BB,PU=vB,v1=bB,y1=gc,TU=dU,yc=FB,MU=EB,OU=ki,b1=LB;function kU(A,t){const e=A.size,r=PU.getPositions(t);for(let n=0;n<r.length;n++){const i=r[n][0],a=r[n][1];for(let s=-1;s<=7;s++)if(!(i+s<=-1||e<=i+s))for(let o=-1;o<=7;o++)a+o<=-1||e<=a+o||(s>=0&&s<=6&&(o===0||o===6)||o>=0&&o<=6&&(s===0||s===6)||s>=2&&s<=4&&o>=2&&o<=4?A.set(i+s,a+o,!0,!0):A.set(i+s,a+o,!1,!0))}}function HU(A){const t=A.size;for(let e=8;e<t-8;e++){const r=e%2===0;A.set(e,6,r,!0),A.set(6,e,r,!0)}}function DU(A,t){const e=NU.getPositions(t);for(let r=0;r<e.length;r++){const n=e[r][0],i=e[r][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?A.set(n+a,i+s,!0,!0):A.set(n+a,i+s,!1,!0)}}function RU(A,t){const e=A.size,r=yc.getEncodedBits(t);let n,i,a;for(let s=0;s<18;s++)n=Math.floor(s/3),i=s%3+e-8-3,a=(r>>s&1)===1,A.set(n,i,a,!0),A.set(i,n,a,!0)}function C1(A,t,e){const r=A.size,n=MU.getEncodedBits(t,e);let i,a;for(i=0;i<15;i++)a=(n>>i&1)===1,i<6?A.set(i,8,a,!0):i<8?A.set(i+1,8,a,!0):A.set(r-15+i,8,a,!0),i<8?A.set(8,r-i-1,a,!0):i<9?A.set(8,15-i-1+1,a,!0):A.set(8,15-i-1,a,!0);A.set(r-8,8,1,!0)}function jU(A,t){const e=A.size;let r=-1,n=e-1,i=7,a=0;for(let s=e-1;s>0;s-=2)for(s===6&&s--;;){for(let o=0;o<2;o++)if(!A.isReserved(n,s-o)){let h=!1;a<t.length&&(h=(t[a]>>>i&1)===1),A.set(n,s-o,h),i--,i===-1&&(a++,i=7)}if(n+=r,n<0||e<=n){n-=r,r=-r;break}}}function GU(A,t,e){const r=new IU;e.forEach(function(o){r.put(o.mode.bit,4),r.put(o.getLength(),OU.getCharCountIndicator(o.mode,A)),o.write(r)});const n=vc.getSymbolTotalCodewords(A),i=y1.getTotalCodewordsCount(A,t),a=(n-i)*8;for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(a-r.getLengthInBits())/8;for(let o=0;o<s;o++)r.put(o%2?17:236,8);return KU(r,A,t)}function KU(A,t,e){const r=vc.getSymbolTotalCodewords(t),n=y1.getTotalCodewordsCount(t,e),i=r-n,a=y1.getBlocksCount(t,e),s=r%a,o=a-s,h=Math.floor(r/a),u=Math.floor(i/a),d=u+1,f=h-u,l=new TU(f);let p=0;const w=new Array(a),y=new Array(a);let v=0;const C=new Uint8Array(A.buffer);for(let H=0;H<a;H++){const N=H<o?u:d;w[H]=C.slice(p,p+N),y[H]=l.encode(w[H]),p+=N,v=Math.max(v,N)}const x=new Uint8Array(r);let L=0,k,M;for(k=0;k<v;k++)for(M=0;M<a;M++)k<w[M].length&&(x[L++]=w[M][k]);for(k=0;k<f;k++)for(M=0;M<a;M++)x[L++]=y[M][k];return x}function VU(A,t,e,r){let n;if(Array.isArray(A))n=b1.fromArray(A);else if(typeof A=="string"){let h=t;if(!h){const u=b1.rawSplit(A);h=yc.getBestVersionForData(u,e)}n=b1.fromString(A,h||40)}else throw new Error("Invalid data");const i=yc.getBestVersionForData(n,e);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+i+`.
`);const a=GU(t,e,n),s=vc.getSymbolSize(t),o=new _U(s);return kU(o,t),HU(o),DU(o,t),C1(o,e,0),t>=7&&RU(o,t),jU(o,a),isNaN(r)&&(r=v1.getBestMask(o,C1.bind(null,o,e))),v1.applyMask(r,o),C1(o,e,r),{modules:o,version:t,errorCorrectionLevel:e,maskPattern:r,segments:n}}mB.create=function(A,t){if(typeof A>"u"||A==="")throw new Error("No input text");let e=B1.M,r,n;return typeof t<"u"&&(e=B1.from(t.errorCorrectionLevel,B1.M),r=yc.from(t.version),n=v1.from(t.maskPattern),t.toSJISFunc&&vc.setToSJISFunction(t.toSJISFunc)),VU(A,r,e,n)};var _B={},x1={};(function(A){function t(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let r=e.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+e);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(i){return[i,i]}))),r.length===6&&r.push("F","F");const n=parseInt(r.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+r.slice(0,6).join("")}}A.getOptions=function(e){e||(e={}),e.color||(e.color={});const r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},A.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale},A.getImageWidth=function(e,r){const n=A.getScale(e,r);return Math.floor((e+r.margin*2)*n)},A.qrToImageData=function(e,r,n){const i=r.modules.size,a=r.modules.data,s=A.getScale(i,n),o=Math.floor((i+n.margin*2)*s),h=n.margin*s,u=[n.color.light,n.color.dark];for(let d=0;d<o;d++)for(let f=0;f<o;f++){let l=(d*o+f)*4,p=n.color.light;if(d>=h&&f>=h&&d<o-h&&f<o-h){const w=Math.floor((d-h)/s),y=Math.floor((f-h)/s);p=u[a[w*i+y]?1:0]}e[l++]=p.r,e[l++]=p.g,e[l++]=p.b,e[l]=p.a}}})(x1),function(A){const t=x1;function e(n,i,a){n.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+"px",i.style.width=a+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}A.render=function(n,i,a){let s=a,o=i;typeof s>"u"&&(!i||!i.getContext)&&(s=i,i=void 0),i||(o=r()),s=t.getOptions(s);const h=t.getImageWidth(n.modules.size,s),u=o.getContext("2d"),d=u.createImageData(h,h);return t.qrToImageData(d.data,n,s),e(u,o,h),u.putImageData(d,0,0),o},A.renderToDataURL=function(n,i,a){let s=a;typeof s>"u"&&(!i||!i.getContext)&&(s=i,i=void 0),s||(s={});const o=A.render(n,i,s),h=s.type||"image/png",u=s.rendererOpts||{};return o.toDataURL(h,u.quality)}}(_B);var NB={};const $U=x1;function PB(A,t){const e=A.a/255,r=t+'="'+A.hex+'"';return e<1?r+" "+t+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function F1(A,t,e){let r=A+t;return typeof e<"u"&&(r+=" "+e),r}function zU(A,t,e){let r="",n=0,i=!1,a=0;for(let s=0;s<A.length;s++){const o=Math.floor(s%t),h=Math.floor(s/t);!o&&!i&&(i=!0),A[s]?(a++,s>0&&o>0&&A[s-1]||(r+=i?F1("M",o+e,.5+h+e):F1("m",n,0),n=0,i=!1),o+1<t&&A[s+1]||(r+=F1("h",a),a=0)):n++}return r}NB.render=function(A,t,e){const r=$U.getOptions(t),n=A.modules.size,i=A.modules.data,a=n+r.margin*2,s=r.color.light.a?"<path "+PB(r.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",o="<path "+PB(r.color.dark,"stroke")+' d="'+zU(i,n,r.margin)+'"/>',h='viewBox="0 0 '+a+" "+a+'"',u='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+s+o+`</svg>
`;return typeof e=="function"&&e(null,u),u};const WU=oU,Q1=mB,TB=_B,qU=NB;function E1(A,t,e,r,n){const i=[].slice.call(arguments,1),a=i.length,s=typeof i[a-1]=="function";if(!s&&!WU())throw new Error("Callback required as last argument");if(s){if(a<2)throw new Error("Too few arguments provided");a===2?(n=e,e=t,t=r=void 0):a===3&&(t.getContext&&typeof n>"u"?(n=r,r=void 0):(n=r,r=e,e=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(e=t,t=r=void 0):a===2&&!t.getContext&&(r=e,e=t,t=void 0),new Promise(function(o,h){try{const u=Q1.create(e,r);o(A(u,t,r))}catch(u){h(u)}})}try{const o=Q1.create(e,r);n(null,A(o,t,r))}catch(o){n(o)}}Mi.create=Q1.create,Mi.toCanvas=E1.bind(null,TB.render),Mi.toDataURL=E1.bind(null,TB.renderToDataURL),Mi.toString=E1.bind(null,function(A,t,e){return qU.render(A,e)});var U1={},bc={},yr={};Object.defineProperty(yr,"__esModule",{value:!0});function XU(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}var YU=function A(t,e){XU(this,A),this.data=t,this.text=e.text||t,this.options=e};yr.default=YU,Object.defineProperty(bc,"__esModule",{value:!0}),bc.CODE39=void 0;var JU=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),ZU=yr,tS=eS(ZU);function eS(A){return A&&A.__esModule?A:{default:A}}function AS(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function rS(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function nS(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var iS=function(A){nS(t,A);function t(e,r){return AS(this,t),e=e.toUpperCase(),r.mod43&&(e+=oS(hS(e))),rS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return JU(t,[{key:"encode",value:function(){for(var e=S1("*"),r=0;r<this.data.length;r++)e+=S1(this.data[r])+"0";return e+=S1("*"),{data:e,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),t}(tS.default),MB=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],aS=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function S1(A){return sS(OB(A))}function sS(A){return aS[A].toString(2)}function oS(A){return MB[A]}function OB(A){return MB.indexOf(A)}function hS(A){for(var t=0,e=0;e<A.length;e++)t+=OB(A[e]);return t=t%43,t}bc.CODE39=iS;var Hn={},L1={},Es={},Je={};Object.defineProperty(Je,"__esModule",{value:!0});var ih;function I1(A,t,e){return t in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}var kB=Je.SET_A=0,HB=Je.SET_B=1,DB=Je.SET_C=2;Je.SHIFT=98;var uS=Je.START_A=103,cS=Je.START_B=104,lS=Je.START_C=105;Je.MODULO=103,Je.STOP=106,Je.FNC1=207,Je.SET_BY_CODE=(ih={},I1(ih,uS,kB),I1(ih,cS,HB),I1(ih,lS,DB),ih),Je.SWAP={101:kB,100:HB,99:DB},Je.A_START_CHAR=String.fromCharCode(208),Je.B_START_CHAR=String.fromCharCode(209),Je.C_START_CHAR=String.fromCharCode(210),Je.A_CHARS="[\0-_È-Ï]",Je.B_CHARS="[ -È-Ï]",Je.C_CHARS="(Ï*[0-9]{2}Ï*)",Je.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(Es,"__esModule",{value:!0});var dS=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),fS=yr,gS=pS(fS),Pr=Je;function pS(A){return A&&A.__esModule?A:{default:A}}function mS(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function wS(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function BS(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var vS=function(A){BS(t,A);function t(e,r){mS(this,t);var n=wS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.substring(1),r));return n.bytes=e.split("").map(function(i){return i.charCodeAt(0)}),n}return dS(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var e=this.bytes,r=e.shift()-105,n=Pr.SET_BY_CODE[r];if(n===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&e.unshift(Pr.FNC1);var i=t.next(e,1,n);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(r)+i.result+t.getBar((i.checksum+r)%Pr.MODULO)+t.getBar(Pr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var e=this.options.ean128||!1;return typeof e=="string"&&(e=e.toLowerCase()==="true"),e}}],[{key:"getBar",value:function(e){return Pr.BARS[e]?Pr.BARS[e].toString():""}},{key:"correctIndex",value:function(e,r){if(r===Pr.SET_A){var n=e.shift();return n<32?n+64:n-32}else return r===Pr.SET_B?e.shift()-32:(e.shift()-48)*10+e.shift()-48}},{key:"next",value:function(e,r,n){if(!e.length)return{result:"",checksum:0};var i=void 0,a=void 0;if(e[0]>=200){a=e.shift()-105;var s=Pr.SWAP[a];s!==void 0?i=t.next(e,r+1,s):((n===Pr.SET_A||n===Pr.SET_B)&&a===Pr.SHIFT&&(e[0]=n===Pr.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),i=t.next(e,r+1,n))}else a=t.correctIndex(e,n),i=t.next(e,r+1,n);var o=t.getBar(a),h=a*r;return{result:o+i.result,checksum:h+i.checksum}}}]),t}(gS.default);Es.default=vS;var _1={};Object.defineProperty(_1,"__esModule",{value:!0});var Hi=Je,RB=function(A){return A.match(new RegExp("^"+Hi.A_CHARS+"*"))[0].length},jB=function(A){return A.match(new RegExp("^"+Hi.B_CHARS+"*"))[0].length},GB=function(A){return A.match(new RegExp("^"+Hi.C_CHARS+"*"))[0]};function N1(A,t){var e=t?Hi.A_CHARS:Hi.B_CHARS,r=A.match(new RegExp("^("+e+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+KB(A.substring(r[1].length));var n=A.match(new RegExp("^"+e+"+"))[0];return n.length===A.length?A:n+String.fromCharCode(t?205:206)+N1(A.substring(n.length),!t)}function KB(A){var t=GB(A),e=t.length;if(e===A.length)return A;A=A.substring(e);var r=RB(A)>=jB(A);return t+String.fromCharCode(r?206:205)+N1(A,r)}_1.default=function(A){var t=void 0,e=GB(A).length;if(e>=2)t=Hi.C_START_CHAR+KB(A);else{var r=RB(A)>jB(A);t=(r?Hi.A_START_CHAR:Hi.B_START_CHAR)+N1(A,r)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,i){return String.fromCharCode(203)+i})},Object.defineProperty(L1,"__esModule",{value:!0});var yS=Es,bS=VB(yS),CS=_1,xS=VB(CS);function VB(A){return A&&A.__esModule?A:{default:A}}function FS(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function P1(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function QS(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var ES=function(A){QS(t,A);function t(e,r){if(FS(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var n=P1(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,xS.default)(e),r));else var n=P1(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return P1(n)}return t}(bS.default);L1.default=ES;var T1={};Object.defineProperty(T1,"__esModule",{value:!0});var US=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),SS=Es,LS=IS(SS),$B=Je;function IS(A){return A&&A.__esModule?A:{default:A}}function _S(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function NS(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function PS(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var TS=function(A){PS(t,A);function t(e,r){return _S(this,t),NS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,$B.A_START_CHAR+e,r))}return US(t,[{key:"valid",value:function(){return new RegExp("^"+$B.A_CHARS+"+$").test(this.data)}}]),t}(LS.default);T1.default=TS;var M1={};Object.defineProperty(M1,"__esModule",{value:!0});var MS=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),OS=Es,kS=HS(OS),zB=Je;function HS(A){return A&&A.__esModule?A:{default:A}}function DS(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function RS(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function jS(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var GS=function(A){jS(t,A);function t(e,r){return DS(this,t),RS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,zB.B_START_CHAR+e,r))}return MS(t,[{key:"valid",value:function(){return new RegExp("^"+zB.B_CHARS+"+$").test(this.data)}}]),t}(kS.default);M1.default=GS;var O1={};Object.defineProperty(O1,"__esModule",{value:!0});var KS=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),VS=Es,$S=zS(VS),WB=Je;function zS(A){return A&&A.__esModule?A:{default:A}}function WS(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function qS(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function XS(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var YS=function(A){XS(t,A);function t(e,r){return WS(this,t),qS(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,WB.C_START_CHAR+e,r))}return KS(t,[{key:"valid",value:function(){return new RegExp("^"+WB.C_CHARS+"+$").test(this.data)}}]),t}($S.default);O1.default=YS,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.CODE128C=Hn.CODE128B=Hn.CODE128A=Hn.CODE128=void 0;var JS=L1,ZS=Cc(JS),tL=T1,eL=Cc(tL),AL=M1,rL=Cc(AL),nL=O1,iL=Cc(nL);function Cc(A){return A&&A.__esModule?A:{default:A}}Hn.CODE128=ZS.default,Hn.CODE128A=eL.default,Hn.CODE128B=rL.default,Hn.CODE128C=iL.default;var br={},k1={},Gr={};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.SIDE_BIN="101",Gr.MIDDLE_BIN="01010",Gr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},Gr.EAN2_STRUCTURE=["LL","LG","GL","GG"],Gr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],Gr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var xc={},Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});var aL=Gr,sL=function(A,t,e){var r=A.split("").map(function(i,a){return aL.BINARIES[t[a]]}).map(function(i,a){return i?i[A[a]]:""});if(e){var n=A.length-1;r=r.map(function(i,a){return a<n?i+e:i})}return r.join("")};Ua.default=sL,Object.defineProperty(xc,"__esModule",{value:!0});var oL=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),Us=Gr,hL=Ua,qB=XB(hL),uL=yr,cL=XB(uL);function XB(A){return A&&A.__esModule?A:{default:A}}function lL(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function dL(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function fL(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var gL=function(A){fL(t,A);function t(e,r){lL(this,t);var n=dL(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return oL(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,r){return this.text.substr(e,r)}},{key:"leftEncode",value:function(e,r){return(0,qB.default)(e,r)}},{key:"rightText",value:function(e,r){return this.text.substr(e,r)}},{key:"rightEncode",value:function(e,r){return(0,qB.default)(e,r)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},r={height:this.guardHeight};return[{data:Us.SIDE_BIN,options:r},{data:this.leftEncode(),text:this.leftText(),options:e},{data:Us.MIDDLE_BIN,options:r},{data:this.rightEncode(),text:this.rightText(),options:e},{data:Us.SIDE_BIN,options:r}]}},{key:"encodeFlat",value:function(){var e=[Us.SIDE_BIN,this.leftEncode(),Us.MIDDLE_BIN,this.rightEncode(),Us.SIDE_BIN];return{data:e.join(""),text:this.text}}}]),t}(cL.default);xc.default=gL,Object.defineProperty(k1,"__esModule",{value:!0});var pL=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),ah=function A(t,e,r){t===null&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);if(n===void 0){var i=Object.getPrototypeOf(t);return i===null?void 0:A(i,e,r)}else{if("value"in n)return n.value;var a=n.get;return a===void 0?void 0:a.call(r)}},mL=Gr,wL=xc,BL=vL(wL);function vL(A){return A&&A.__esModule?A:{default:A}}function yL(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function bL(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function CL(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var YB=function(A){var t=A.substr(0,12).split("").map(function(e){return+e}).reduce(function(e,r,n){return n%2?e+r*3:e+r},0);return(10-t%10)%10},xL=function(A){CL(t,A);function t(e,r){yL(this,t),e.search(/^[0-9]{12}$/)!==-1&&(e+=YB(e));var n=bL(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.lastChar=r.lastChar,n}return pL(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===YB(this.data)}},{key:"leftText",value:function(){return ah(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var e=this.data.substr(1,6),r=mL.EAN13_STRUCTURE[this.data[0]];return ah(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,r)}},{key:"rightText",value:function(){return ah(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var e=this.data.substr(7,6);return ah(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRRRR")}},{key:"encodeGuarded",value:function(){var e=ah(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(e.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:"00"}),e.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),t}(BL.default);k1.default=xL;var H1={};Object.defineProperty(H1,"__esModule",{value:!0});var FL=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),Fc=function A(t,e,r){t===null&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);if(n===void 0){var i=Object.getPrototypeOf(t);return i===null?void 0:A(i,e,r)}else{if("value"in n)return n.value;var a=n.get;return a===void 0?void 0:a.call(r)}},QL=xc,EL=UL(QL);function UL(A){return A&&A.__esModule?A:{default:A}}function SL(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function LL(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function IL(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var JB=function(A){var t=A.substr(0,7).split("").map(function(e){return+e}).reduce(function(e,r,n){return n%2?e+r:e+r*3},0);return(10-t%10)%10},_L=function(A){IL(t,A);function t(e,r){return SL(this,t),e.search(/^[0-9]{7}$/)!==-1&&(e+=JB(e)),LL(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return FL(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===JB(this.data)}},{key:"leftText",value:function(){return Fc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var e=this.data.substr(0,4);return Fc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,e,"LLLL")}},{key:"rightText",value:function(){return Fc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var e=this.data.substr(4,4);return Fc(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,e,"RRRR")}}]),t}(EL.default);H1.default=_L;var D1={};Object.defineProperty(D1,"__esModule",{value:!0});var NL=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),PL=Gr,TL=Ua,ML=ZB(TL),OL=yr,kL=ZB(OL);function ZB(A){return A&&A.__esModule?A:{default:A}}function HL(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function DL(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function RL(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var jL=function(A){var t=A.split("").map(function(e){return+e}).reduce(function(e,r,n){return n%2?e+r*9:e+r*3},0);return t%10},GL=function(A){RL(t,A);function t(e,r){return HL(this,t),DL(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return NL(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var e=PL.EAN5_STRUCTURE[jL(this.data)];return{data:"1011"+(0,ML.default)(this.data,e,"01"),text:this.text}}}]),t}(kL.default);D1.default=GL;var R1={};Object.defineProperty(R1,"__esModule",{value:!0});var KL=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),VL=Gr,$L=Ua,zL=tv($L),WL=yr,qL=tv(WL);function tv(A){return A&&A.__esModule?A:{default:A}}function XL(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function YL(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function JL(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var ZL=function(A){JL(t,A);function t(e,r){return XL(this,t),YL(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return KL(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var e=VL.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,zL.default)(this.data,e,"01"),text:this.text}}}]),t}(qL.default);R1.default=ZL;var sh={};Object.defineProperty(sh,"__esModule",{value:!0});var t6=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}();sh.checksum=j1;var e6=Ua,Ss=ev(e6),A6=yr,r6=ev(A6);function ev(A){return A&&A.__esModule?A:{default:A}}function n6(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function i6(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function a6(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var s6=function(A){a6(t,A);function t(e,r){n6(this,t),e.search(/^[0-9]{11}$/)!==-1&&(e+=j1(e));var n=i6(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return t6(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==j1(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,Ss.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,Ss.default)(this.data.substr(6,6),"RRRRRR"),e+="101",{data:e,text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,Ss.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,Ss.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,Ss.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,Ss.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),t}(r6.default);function j1(A){var t=0,e;for(e=1;e<11;e+=2)t+=parseInt(A[e]);for(e=0;e<11;e+=2)t+=parseInt(A[e])*3;return(10-t%10)%10}sh.default=s6;var G1={};Object.defineProperty(G1,"__esModule",{value:!0});var o6=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),h6=Ua,u6=Av(h6),c6=yr,l6=Av(c6),d6=sh;function Av(A){return A&&A.__esModule?A:{default:A}}function f6(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function K1(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function g6(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var p6=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],m6=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],w6=function(A){g6(t,A);function t(e,r){f6(this,t);var n=K1(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=rv(e,"0"),n.text=r.text||""+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else if(e.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=e.substring(1,e.length-1),n.upcA=rv(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]===e[e.length-1])n.isValid=!0;else return K1(n);else return K1(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return o6(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),e+="010101",{data:e,text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],r=this.upcA[this.upcA.length-1],n=m6[parseInt(r)][parseInt(e)];return(0,u6.default)(this.middleDigits,n)}}]),t}(l6.default);function rv(A,t){for(var e=parseInt(A[A.length-1]),r=p6[e],n="",i=0,a=0;a<r.length;a++){var s=r[a];s==="X"?n+=A[i++]:n+=s}return n=""+t+n,""+n+(0,d6.checksum)(n)}G1.default=w6,Object.defineProperty(br,"__esModule",{value:!0}),br.UPCE=br.UPC=br.EAN2=br.EAN5=br.EAN8=br.EAN13=void 0;var B6=k1,v6=Ls(B6),y6=H1,b6=Ls(y6),C6=D1,x6=Ls(C6),F6=R1,Q6=Ls(F6),E6=sh,U6=Ls(E6),S6=G1,L6=Ls(S6);function Ls(A){return A&&A.__esModule?A:{default:A}}br.EAN13=v6.default,br.EAN8=b6.default,br.EAN5=x6.default,br.EAN2=Q6.default,br.UPC=U6.default,br.UPCE=L6.default;var Is={},Qc={},oh={};Object.defineProperty(oh,"__esModule",{value:!0}),oh.START_BIN="1010",oh.END_BIN="11101",oh.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Qc,"__esModule",{value:!0});var I6=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),Ec=oh,_6=yr,N6=P6(_6);function P6(A){return A&&A.__esModule?A:{default:A}}function T6(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function M6(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function O6(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var k6=function(A){O6(t,A);function t(){return T6(this,t),M6(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return I6(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var e=this,r=this.data.match(/.{2}/g).map(function(n){return e.encodePair(n)}).join("");return{data:Ec.START_BIN+r+Ec.END_BIN,text:this.text}}},{key:"encodePair",value:function(e){var r=Ec.BINARIES[e[1]];return Ec.BINARIES[e[0]].split("").map(function(n,i){return(n==="1"?"111":"1")+(r[i]==="1"?"000":"0")}).join("")}}]),t}(N6.default);Qc.default=k6;var V1={};Object.defineProperty(V1,"__esModule",{value:!0});var H6=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),D6=Qc,R6=j6(D6);function j6(A){return A&&A.__esModule?A:{default:A}}function G6(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function K6(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function V6(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var nv=function(A){var t=A.substr(0,13).split("").map(function(e){return parseInt(e,10)}).reduce(function(e,r,n){return e+r*(3-n%2*2)},0);return Math.ceil(t/10)*10-t},$6=function(A){V6(t,A);function t(e,r){return G6(this,t),e.search(/^[0-9]{13}$/)!==-1&&(e+=nv(e)),K6(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return H6(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===nv(this.data)}}]),t}(R6.default);V1.default=$6,Object.defineProperty(Is,"__esModule",{value:!0}),Is.ITF14=Is.ITF=void 0;var z6=Qc,W6=iv(z6),q6=V1,X6=iv(q6);function iv(A){return A&&A.__esModule?A:{default:A}}Is.ITF=W6.default,Is.ITF14=X6.default;var Kr={},Sa={};Object.defineProperty(Sa,"__esModule",{value:!0});var Y6=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),J6=yr,Z6=tI(J6);function tI(A){return A&&A.__esModule?A:{default:A}}function eI(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function AI(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function rI(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var nI=function(A){rI(t,A);function t(e,r){return eI(this,t),AI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return Y6(t,[{key:"encode",value:function(){for(var e="110",r=0;r<this.data.length;r++){var n=parseInt(this.data[r]),i=n.toString(2);i=iI(i,4-i.length);for(var a=0;a<i.length;a++)e+=i[a]=="0"?"100":"110"}return e+="1001",{data:e,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(Z6.default);function iI(A,t){for(var e=0;e<t;e++)A="0"+A;return A}Sa.default=nI;var $1={},La={};Object.defineProperty(La,"__esModule",{value:!0}),La.mod10=aI,La.mod11=sI;function aI(A){for(var t=0,e=0;e<A.length;e++){var r=parseInt(A[e]);(e+A.length)%2===0?t+=r:t+=r*2%10+Math.floor(r*2/10)}return(10-t%10)%10}function sI(A){for(var t=0,e=[2,3,4,5,6,7],r=0;r<A.length;r++){var n=parseInt(A[A.length-1-r]);t+=e[r%e.length]*n}return(11-t%11)%11}Object.defineProperty($1,"__esModule",{value:!0});var oI=Sa,hI=cI(oI),uI=La;function cI(A){return A&&A.__esModule?A:{default:A}}function lI(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function dI(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function fI(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var gI=function(A){fI(t,A);function t(e,r){return lI(this,t),dI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,uI.mod10)(e),r))}return t}(hI.default);$1.default=gI;var z1={};Object.defineProperty(z1,"__esModule",{value:!0});var pI=Sa,mI=BI(pI),wI=La;function BI(A){return A&&A.__esModule?A:{default:A}}function vI(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function yI(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function bI(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var CI=function(A){bI(t,A);function t(e,r){return vI(this,t),yI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,wI.mod11)(e),r))}return t}(mI.default);z1.default=CI;var W1={};Object.defineProperty(W1,"__esModule",{value:!0});var xI=Sa,FI=QI(xI),av=La;function QI(A){return A&&A.__esModule?A:{default:A}}function EI(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function UI(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function SI(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var LI=function(A){SI(t,A);function t(e,r){return EI(this,t),e+=(0,av.mod10)(e),e+=(0,av.mod10)(e),UI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return t}(FI.default);W1.default=LI;var q1={};Object.defineProperty(q1,"__esModule",{value:!0});var II=Sa,_I=NI(II),sv=La;function NI(A){return A&&A.__esModule?A:{default:A}}function PI(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function TI(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function MI(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var OI=function(A){MI(t,A);function t(e,r){return PI(this,t),e+=(0,sv.mod11)(e),e+=(0,sv.mod10)(e),TI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return t}(_I.default);q1.default=OI,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.MSI1110=Kr.MSI1010=Kr.MSI11=Kr.MSI10=Kr.MSI=void 0;var kI=Sa,HI=hh(kI),DI=$1,RI=hh(DI),jI=z1,GI=hh(jI),KI=W1,VI=hh(KI),$I=q1,zI=hh($I);function hh(A){return A&&A.__esModule?A:{default:A}}Kr.MSI=HI.default,Kr.MSI10=RI.default,Kr.MSI11=GI.default,Kr.MSI1010=VI.default,Kr.MSI1110=zI.default;var Uc={};Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.pharmacode=void 0;var WI=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),qI=yr,XI=YI(qI);function YI(A){return A&&A.__esModule?A:{default:A}}function JI(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function ZI(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function t_(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var e_=function(A){t_(t,A);function t(e,r){JI(this,t);var n=ZI(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.number=parseInt(e,10),n}return WI(t,[{key:"encode",value:function(){for(var e=this.number,r="";!isNaN(e)&&e!=0;)e%2===0?(r="11100"+r,e=(e-2)/2):(r="100"+r,e=(e-1)/2);return r=r.slice(0,-2),{data:r,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(XI.default);Uc.pharmacode=e_;var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.codabar=void 0;var A_=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),r_=yr,n_=i_(r_);function i_(A){return A&&A.__esModule?A:{default:A}}function a_(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function s_(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function o_(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var h_=function(A){o_(t,A);function t(e,r){a_(this,t),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e="A"+e+"A");var n=s_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return A_(t,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var e=[],r=this.getEncodings(),n=0;n<this.data.length;n++)e.push(r[this.data.charAt(n)]),n!==this.data.length-1&&e.push("0");return{text:this.text,data:e.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(n_.default);Sc.codabar=h_;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var u_=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),c_=yr,l_=d_(c_);function d_(A){return A&&A.__esModule?A:{default:A}}function f_(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function g_(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function p_(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var m_=function(A){p_(t,A);function t(e,r){return f_(this,t),g_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return u_(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(l_.default);Lc.GenericBarcode=m_,Object.defineProperty(U1,"__esModule",{value:!0});var w_=bc,Ic=Hn,_s=br,ov=Is,uh=Kr,B_=Uc,v_=Sc,y_=Lc;U1.default={CODE39:w_.CODE39,CODE128:Ic.CODE128,CODE128A:Ic.CODE128A,CODE128B:Ic.CODE128B,CODE128C:Ic.CODE128C,EAN13:_s.EAN13,EAN8:_s.EAN8,EAN5:_s.EAN5,EAN2:_s.EAN2,UPC:_s.UPC,UPCE:_s.UPCE,ITF14:ov.ITF14,ITF:ov.ITF,MSI:uh.MSI,MSI10:uh.MSI10,MSI11:uh.MSI11,MSI1010:uh.MSI1010,MSI1110:uh.MSI1110,pharmacode:B_.pharmacode,codabar:v_.codabar,GenericBarcode:y_.GenericBarcode};var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});var b_=Object.assign||function(A){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r])}return A};Ns.default=function(A,t){return b_({},A,t)};var X1={};Object.defineProperty(X1,"__esModule",{value:!0}),X1.default=C_;function C_(A){var t=[];function e(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)e(r[n]);else r.text=r.text||"",r.data=r.data||"",t.push(r)}return e(A),t}var Y1={};Object.defineProperty(Y1,"__esModule",{value:!0}),Y1.default=x_;function x_(A){return A.marginTop=A.marginTop||A.margin,A.marginBottom=A.marginBottom||A.margin,A.marginRight=A.marginRight||A.margin,A.marginLeft=A.marginLeft||A.margin,A}var J1={},Z1={},_c={};Object.defineProperty(_c,"__esModule",{value:!0}),_c.default=F_;function F_(A){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var e in t)t.hasOwnProperty(e)&&(e=t[e],typeof A[e]=="string"&&(A[e]=parseInt(A[e],10)));return typeof A.displayValue=="string"&&(A.displayValue=A.displayValue!="false"),A}var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});var Q_={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Nc.default=Q_,Object.defineProperty(Z1,"__esModule",{value:!0});var E_=_c,U_=uv(E_),S_=Nc,hv=uv(S_);function uv(A){return A&&A.__esModule?A:{default:A}}function L_(A){var t={};for(var e in hv.default)hv.default.hasOwnProperty(e)&&(A.hasAttribute("jsbarcode-"+e.toLowerCase())&&(t[e]=A.getAttribute("jsbarcode-"+e.toLowerCase())),A.hasAttribute("data-"+e.toLowerCase())&&(t[e]=A.getAttribute("data-"+e.toLowerCase())));return t.value=A.getAttribute("jsbarcode-value")||A.getAttribute("data-value"),t=(0,U_.default)(t),t}Z1.default=L_;var tg={},eg={},Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.getTotalWidthOfEncodings=Tr.calculateEncodingAttributes=Tr.getBarcodePadding=Tr.getEncodingHeight=Tr.getMaximumHeightOfEncodings=void 0;var I_=Ns,__=N_(I_);function N_(A){return A&&A.__esModule?A:{default:A}}function cv(A,t){return t.height+(t.displayValue&&A.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function lv(A,t,e){if(e.displayValue&&t<A){if(e.textAlign=="center")return Math.floor((A-t)/2);if(e.textAlign=="left")return 0;if(e.textAlign=="right")return Math.floor(A-t)}return 0}function P_(A,t,e){for(var r=0;r<A.length;r++){var n=A[r],i=(0,__.default)(t,n.options),a;i.displayValue?a=O_(n.text,i,e):a=0;var s=n.data.length*i.width;n.width=Math.ceil(Math.max(a,s)),n.height=cv(n,i),n.barcodePadding=lv(a,s,i)}}function T_(A){for(var t=0,e=0;e<A.length;e++)t+=A[e].width;return t}function M_(A){for(var t=0,e=0;e<A.length;e++)A[e].height>t&&(t=A[e].height);return t}function O_(A,t,e){var r;if(e)r=e;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var n=r.measureText(A);if(!n)return 0;var i=n.width;return i}Tr.getMaximumHeightOfEncodings=M_,Tr.getEncodingHeight=cv,Tr.getBarcodePadding=lv,Tr.calculateEncodingAttributes=P_,Tr.getTotalWidthOfEncodings=T_,Object.defineProperty(eg,"__esModule",{value:!0});var k_=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),H_=Ns,D_=R_(H_),Ag=Tr;function R_(A){return A&&A.__esModule?A:{default:A}}function j_(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}var G_=function(){function A(t,e,r){j_(this,A),this.canvas=t,this.encodings=e,this.options=r}return k_(A,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,D_.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,Ag.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,Ag.getTotalWidthOfEncodings)(this.encodings),r=(0,Ag.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=r,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var r=this.canvas.getContext("2d"),n=e.data,i;t.textPosition=="top"?i=t.marginTop+t.fontSize+t.textMargin:i=t.marginTop,r.fillStyle=t.lineColor;for(var a=0;a<n.length;a++){var s=a*t.width+e.barcodePadding;n[a]==="1"?r.fillRect(s,i,t.width,t.height):n[a]&&r.fillRect(s,i,t.width,t.height*n[a])}}},{key:"drawCanvasText",value:function(t,e){var r=this.canvas.getContext("2d"),n=t.fontOptions+" "+t.fontSize+"px "+t.font;if(t.displayValue){var i,a;t.textPosition=="top"?a=t.marginTop+t.fontSize-t.textMargin:a=t.height+t.textMargin+t.marginTop+t.fontSize,r.font=n,t.textAlign=="left"||e.barcodePadding>0?(i=0,r.textAlign="left"):t.textAlign=="right"?(i=e.width-1,r.textAlign="right"):(i=e.width/2,r.textAlign="center"),r.fillText(e.text,i,a)}}},{key:"moveCanvasDrawing",value:function(t){var e=this.canvas.getContext("2d");e.translate(t.width,0)}},{key:"restoreCanvas",value:function(){var t=this.canvas.getContext("2d");t.restore()}}]),A}();eg.default=G_;var rg={};Object.defineProperty(rg,"__esModule",{value:!0});var K_=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}(),V_=Ns,$_=z_(V_),ng=Tr;function z_(A){return A&&A.__esModule?A:{default:A}}function W_(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}var Pc="http://www.w3.org/2000/svg",q_=function(){function A(t,e,r){W_(this,A),this.svg=t,this.encodings=e,this.options=r,this.document=r.xmlDocument||document}return K_(A,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var r=this.encodings[e],n=(0,$_.default)(this.options,r.options),i=this.createGroup(t,n.marginTop,this.svg);this.setGroupOptions(i,n),this.drawSvgBarcode(i,n,r),this.drawSVGText(i,n,r),t+=r.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,ng.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,ng.getTotalWidthOfEncodings)(this.encodings),e=(0,ng.getMaximumHeightOfEncodings)(this.encodings),r=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(r,e),this.options.background&&this.drawRect(0,0,r,e,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,e,r){var n=r.data,i;e.textPosition=="top"?i=e.fontSize+e.textMargin:i=0;for(var a=0,s=0,o=0;o<n.length;o++)s=o*e.width+r.barcodePadding,n[o]==="1"?a++:a>0&&(this.drawRect(s-e.width*a,i,e.width*a,e.height,t),a=0);a>0&&this.drawRect(s-e.width*(a-1),i,e.width*a,e.height,t)}},{key:"drawSVGText",value:function(t,e,r){var n=this.document.createElementNS(Pc,"text");if(e.displayValue){var i,a;n.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),e.textPosition=="top"?a=e.fontSize-e.textMargin:a=e.height+e.textMargin+e.fontSize,e.textAlign=="left"||r.barcodePadding>0?(i=0,n.setAttribute("text-anchor","start")):e.textAlign=="right"?(i=r.width-1,n.setAttribute("text-anchor","end")):(i=r.width/2,n.setAttribute("text-anchor","middle")),n.setAttribute("x",i),n.setAttribute("y",a),n.appendChild(this.document.createTextNode(r.text)),t.appendChild(n)}}},{key:"setSvgAttributes",value:function(t,e){var r=this.svg;r.setAttribute("width",t+"px"),r.setAttribute("height",e+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+t+" "+e),r.setAttribute("xmlns",Pc),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,r){var n=this.document.createElementNS(Pc,"g");return n.setAttribute("transform","translate("+t+", "+e+")"),r.appendChild(n),n}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,r,n,i){var a=this.document.createElementNS(Pc,"rect");return a.setAttribute("x",t),a.setAttribute("y",e),a.setAttribute("width",r),a.setAttribute("height",n),i.appendChild(a),a}}]),A}();rg.default=q_;var ig={};Object.defineProperty(ig,"__esModule",{value:!0});var X_=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}();function Y_(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}var J_=function(){function A(t,e,r){Y_(this,A),this.object=t,this.encodings=e,this.options=r}return X_(A,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),A}();ig.default=J_,Object.defineProperty(tg,"__esModule",{value:!0});var Z_=eg,tN=ag(Z_),eN=rg,AN=ag(eN),rN=ig,nN=ag(rN);function ag(A){return A&&A.__esModule?A:{default:A}}tg.default={CanvasRenderer:tN.default,SVGRenderer:AN.default,ObjectRenderer:nN.default};var Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});function sg(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function og(A,t){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:A}function hg(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(A,t):A.__proto__=t)}var iN=function(A){hg(t,A);function t(e,r){sg(this,t);var n=og(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.name="InvalidInputException",n.symbology=e,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return t}(Error),aN=function(A){hg(t,A);function t(){sg(this,t);var e=og(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="InvalidElementException",e.message="Not supported type to render on",e}return t}(Error),sN=function(A){hg(t,A);function t(){sg(this,t);var e=og(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="NoElementException",e.message="No element to render on.",e}return t}(Error);Ps.InvalidInputException=iN,Ps.InvalidElementException=aN,Ps.NoElementException=sN,Object.defineProperty(J1,"__esModule",{value:!0});var oN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},hN=Z1,ug=dv(hN),uN=tg,ch=dv(uN),cN=Ps;function dv(A){return A&&A.__esModule?A:{default:A}}function cg(A){if(typeof A=="string")return lN(A);if(Array.isArray(A)){for(var t=[],e=0;e<A.length;e++)t.push(cg(A[e]));return t}else{if(typeof HTMLCanvasElement<"u"&&A instanceof HTMLImageElement)return dN(A);if(A&&A.nodeName&&A.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&A instanceof SVGElement)return{element:A,options:(0,ug.default)(A),renderer:ch.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&A instanceof HTMLCanvasElement)return{element:A,options:(0,ug.default)(A),renderer:ch.default.CanvasRenderer};if(A&&A.getContext)return{element:A,renderer:ch.default.CanvasRenderer};if(A&&(typeof A>"u"?"undefined":oN(A))==="object"&&!A.nodeName)return{element:A,renderer:ch.default.ObjectRenderer};throw new cN.InvalidElementException}}function lN(A){var t=document.querySelectorAll(A);if(t.length!==0){for(var e=[],r=0;r<t.length;r++)e.push(cg(t[r]));return e}}function dN(A){var t=document.createElement("canvas");return{element:t,options:(0,ug.default)(A),renderer:ch.default.CanvasRenderer,afterRender:function(){A.setAttribute("src",t.toDataURL())}}}J1.default=cg;var lg={};Object.defineProperty(lg,"__esModule",{value:!0});var fN=function(){function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,r){return e&&A(t.prototype,e),r&&A(t,r),t}}();function gN(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}var pN=function(){function A(t){gN(this,A),this.api=t}return fN(A,[{key:"handleCatch",value:function(t){if(t.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw t.message;else throw t;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(r){return this.handleCatch(r),this.api}}}]),A}();lg.default=pN;var mN=U1,Ia=Di(mN),wN=Ns,lh=Di(wN),BN=X1,fv=Di(BN),vN=Y1,gv=Di(vN),yN=J1,bN=Di(yN),CN=_c,xN=Di(CN),FN=lg,QN=Di(FN),pv=Ps,EN=Nc,mv=Di(EN);function Di(A){return A&&A.__esModule?A:{default:A}}var Ai=function(){},Tc=function(A,t,e){var r=new Ai;if(typeof A>"u")throw Error("No element to render on was provided.");return r._renderProperties=(0,bN.default)(A),r._encodings=[],r._options=mv.default,r._errorHandler=new QN.default(r),typeof t<"u"&&(e=e||{},e.format||(e.format=vv()),r.options(e)[e.format](t,e).render()),r};Tc.getModule=function(A){return Ia.default[A]};for(var wv in Ia.default)Ia.default.hasOwnProperty(wv)&&UN(Ia.default,wv);function UN(A,t){Ai.prototype[t]=Ai.prototype[t.toUpperCase()]=Ai.prototype[t.toLowerCase()]=function(e,r){var n=this;return n._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var i=(0,lh.default)(n._options,r);i=(0,xN.default)(i);var a=A[t],s=Bv(e,a,i);return n._encodings.push(s),n})}}function Bv(A,t,e){A=""+A;var r=new t(A,e);if(!r.valid())throw new pv.InvalidInputException(r.constructor.name,A);var n=r.encode();n=(0,fv.default)(n);for(var i=0;i<n.length;i++)n[i].options=(0,lh.default)(e,n[i].options);return n}function vv(){return Ia.default.CODE128?"CODE128":Object.keys(Ia.default)[0]}Ai.prototype.options=function(A){return this._options=(0,lh.default)(this._options,A),this},Ai.prototype.blank=function(A){var t=new Array(A+1).join("0");return this._encodings.push({data:t}),this},Ai.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var A;for(var t in this._renderProperties){A=this._renderProperties[t];var e=(0,lh.default)(this._options,A.options);e.format=="auto"&&(e.format=vv()),this._errorHandler.wrapBarcodeCall(function(){var r=e.value,n=Ia.default[e.format.toUpperCase()],i=Bv(r,n,e);dg(A,i,e)})}}},Ai.prototype.render=function(){if(!this._renderProperties)throw new pv.NoElementException;if(Array.isArray(this._renderProperties))for(var A=0;A<this._renderProperties.length;A++)dg(this._renderProperties[A],this._encodings,this._options);else dg(this._renderProperties,this._encodings,this._options);return this},Ai.prototype._defaults=mv.default;function dg(A,t,e){t=(0,fv.default)(t);for(var r=0;r<t.length;r++)t[r].options=(0,lh.default)(e,t[r].options),(0,gv.default)(t[r].options);(0,gv.default)(e);var n=A.renderer,i=new n(A.element,t,e);i.render(),A.afterRender&&A.afterRender()}typeof window<"u"&&(window.JsBarcode=Tc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(A,t){var e=[];return jQuery(this).each(function(){e.push(this)}),Tc(e,A,t)});var fg=Tc;function SN(A,t,e){var r=5;function n(o){var h=[0,A.width()/2,A.width()],u=[0,A.height()/2,A.height()];return A.find("Text,Rect,Circle,Image,Polygon,Star,RegularPolygon,Arc,Ellipse,Line").forEach(d=>{if(!(d===o||["selectionRectangle","stageBackground","top-left _anchor","top-center _anchor","top-right _anchor","middle-right _anchor","middle-left _anchor","bottom-left _anchor","bottom-center _anchor","bottom-right _anchor","rotater _anchor","transform"].includes(d.name()))){var f=d.getClientRect();h.push([f.x,f.x+f.width,f.x+f.width/2]),u.push([f.y,f.y+f.height,f.y+f.height/2])}}),{vertical:h.flat(),horizontal:u.flat()}}function i(o){var h=o.getClientRect(),u=o.absolutePosition();return{vertical:[{guide:Math.round(h.x),offset:Math.round(u.x-h.x),snap:"start"},{guide:Math.round(h.x+h.width/2),offset:Math.round(u.x-h.x-h.width/2),snap:"center"},{guide:Math.round(h.x+h.width),offset:Math.round(u.x-h.x-h.width),snap:"end"}],horizontal:[{guide:Math.round(h.y),offset:Math.round(u.y-h.y),snap:"start"},{guide:Math.round(h.y+h.height/2),offset:Math.round(u.y-h.y-h.height/2),snap:"center"},{guide:Math.round(h.y+h.height),offset:Math.round(u.y-h.y-h.height),snap:"end"}]}}function a(o,h){var u=[],d=[];o.vertical.forEach(w=>{h.vertical.forEach(y=>{var v=Math.abs(w-y.guide);v<r&&u.push({lineGuide:w,diff:v,snap:y.snap,offset:y.offset})})}),o.horizontal.forEach(w=>{h.horizontal.forEach(y=>{var v=Math.abs(w-y.guide);v<r&&d.push({lineGuide:w,diff:v,snap:y.snap,offset:y.offset})})});var f=[],l=u.sort((w,y)=>w.diff-y.diff)[0],p=d.sort((w,y)=>w.diff-y.diff)[0];return l&&f.push({lineGuide:l.lineGuide,offset:l.offset,orientation:"V",snap:l.snap}),p&&f.push({lineGuide:p.lineGuide,offset:p.offset,orientation:"H",snap:p.snap}),f}function s(o){o.forEach(h=>{if(h.orientation==="H"){var u=new Konva.Line({points:[-6e3,0,6e3,0],stroke:"rgb(0, 161, 255)",strokeWidth:.5,name:"guid-line",dash:[2,2]});t.add(u),u.absolutePosition({x:0,y:h.lineGuide})}else if(h.orientation==="V"){var u=new Konva.Line({points:[0,-6e3,0,6e3],stroke:"rgb(0, 161, 255)",strokeWidth:.5,name:"guid-line",dash:[2,2]});t.add(u),u.absolutePosition({x:h.lineGuide,y:0})}})}t.on("dragmove",function(o){try{t.find(".guid-line").forEach(l=>l.destroy());var h=n(o.target),u=i(o.target),d=a(h,u);if(!d.length)return;s(d);var f=o.target.absolutePosition();d.forEach(l=>{switch(l.snap){case"start":{switch(l.orientation){case"V":{f.x=l.lineGuide+l.offset;break}case"H":{f.y=l.lineGuide+l.offset;break}}break}case"center":{switch(l.orientation){case"V":{f.x=l.lineGuide+l.offset;break}case"H":{f.y=l.lineGuide+l.offset;break}}break}case"end":{switch(l.orientation){case"V":{f.x=l.lineGuide+l.offset;break}case"H":{f.y=l.lineGuide+l.offset;break}}break}}}),o.target.absolutePosition(f)}catch{}}),t.on("dragend",function(o){try{t.find(".guid-line").forEach(h=>h.destroy())}catch{}})}class LN{constructor(t){this.editor=t,this.counter=0}saveEditor(){let t={type:"editor",data:JSON.parse(this.editor.editor.toJSON())};localStorage.setItem("editorData",JSON.stringify(t)),alert("Saved !")}addFont(t){var e=document.getElementsByTagName("head")[0],r=document.createElement("link"),n=t.replace(" ","+");r.id=n,r.rel="stylesheet",r.type="text/css",r.href="https://fonts.googleapis.com/css?family="+n,r.media="all",e.appendChild(r)}makeFunctionName(t){return"add"+t.attrs.type.charAt(0).toUpperCase()+t.attrs.type.slice(1)}addElement(t,e,r){typeof t[r]=="function"&&t[r](e.attrs)}addLine(t){var e=this.editor.layer,r=this;this.counter++;var n=this.counter;Object.keys(t).length===0&&(t={strokeWidth:1,stroke:"black",type:"line",lineCap:"round",id:"quadLinePath"+n,name:"line",points:[0,0],start1:20,start2:10,end1:this.editor.editorWidth/2,end2:10});var i={start:a(t.start1,t.start2),end:a(t.end1,t.end2)};function a(h,u){var d=new le.Circle({x:h,y:u,radius:2,stroke:"#666",fill:" rgba(0, 0, 0, 0.5)",strokeWidth:1,draggable:!0,type:"anchor",name:"anchor"});return e.add(d),d.on("mouseover",function(){document.body.style.cursor="pointer",this.strokeWidth(2)}),d.on("mouseout",function(){document.body.style.cursor="default",this.strokeWidth(1)}),d.on("dragmove",function(){s()}),d}function s(){var h=i,u=e.findOne("#quadLinePath"+n);u.points([h.start.x(),h.start.y(),h.end.x(),h.end.y()])}var o=new le.Line(t);e.add(o),r.editor.selectItem(o),o.on("click",function(){r.editor.editor.find(".anchor").forEach(h=>{h.hide()}),r.editor.selectItem(this),i.start.show(),i.end.show()}),s()}}class IN{constructor(t){this.editor=t,this.history=[],this.step=0}addHistory(t,e,r,n=null){let i={};i.item=t,i.attr=e,i.status=r,i.type=typeof e,i.value=this.formatValue(t,e),i.previous=n,this.history.length>50&&this.delete(0),this.history.push(i),this.step=0}formatValue(t,e){return typeof e=="object"&&(e.includes("x")||e.includes("scaleX"))?[t[e[0]](),t[e[1]]()]:t[e]()}delHistory(){this.history.pop()}delete(t){this.history.splice(t,1)}undo(){if(this.history.length===0){console.log("no history found");return}this.step===0&&(this.step=this.history.length-2),this.step===-1&&(this.step=this.history.length),this.applyChange(this.step),this.step--}redo(){}clearHistory(){this.history.length=0}applyChange(t,e="change"){let r=this.history[t];if(typeof r.value=="object"){let n=e==="change"?r.value[0]:r.previous[0],i=e==="change"?r.value[1]:r.previous[1];r.attr.includes("x")&&(r.item.x(n),r.item.y(i)),r.attr.includes("scaleX")&&(r.item.scaleX(n),r.item.scaleY(i))}else{let n=e=="change"?r.value:r.previous;r.item[r.attr](n)}}revert(t){let e=this.history[t];e.item[e.attr](e.previous)}applyChanges(){let t=this.history[this.step];try{typeof t.item[t.attr]=="function"&&(t.item[t.attr](t.value),this.delHistory())}catch(e){console.log(e)}}}class _N{constructor(t){this.editor=t,this.types={text:0,barcodeBasic:0,image:0,qrcode:0,rect:0,triangle:0,polygon:0,circle:0,line:0,star:0,arc:0,oval:0,path:0,svg:0,shape:0}}generateName(t){let e=this.types[t];return e++,this.types[t]=e,this.cleanString(t)+"_"+e}cleanString(t){return t==="barcodeBasic"?"Barcode":t==="qrcode"?"QRcode":t.charAt(0).toUpperCase()+t.slice(1)}}var yv={exports:{}};(function(A){(function(){function t(w,y){document.addEventListener?w.addEventListener("scroll",y,!1):w.attachEvent("scroll",y)}function e(w){document.body?w():document.addEventListener?document.addEventListener("DOMContentLoaded",function y(){document.removeEventListener("DOMContentLoaded",y),w()}):document.attachEvent("onreadystatechange",function y(){(document.readyState=="interactive"||document.readyState=="complete")&&(document.detachEvent("onreadystatechange",y),w())})}function r(w){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(w)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function n(w,y){w.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+y+";"}function i(w){var y=w.g.offsetWidth,v=y+100;return w.j.style.width=v+"px",w.i.scrollLeft=v,w.h.scrollLeft=w.h.scrollWidth+100,w.l!==y?(w.l=y,!0):!1}function a(w,y){function v(){var x=C;i(x)&&x.g.parentNode!==null&&y(x.l)}var C=w;t(w.h,v),t(w.i,v),i(w)}function s(w,y,v){y=y||{},v=v||window,this.family=w,this.style=y.style||"normal",this.weight=y.weight||"normal",this.stretch=y.stretch||"normal",this.context=v}var o=null,h=null,u=null,d=null;function f(w){return h===null&&(l(w)&&/Apple/.test(window.navigator.vendor)?(w=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),h=!!w&&603>parseInt(w[1],10)):h=!1),h}function l(w){return d===null&&(d=!!w.document.fonts),d}function p(w,y){var v=w.style,C=w.weight;if(u===null){var x=document.createElement("div");try{x.style.font="condensed 100px sans-serif"}catch{}u=x.style.font!==""}return[v,C,u?w.stretch:"","100px",y].join(" ")}s.prototype.load=function(w,y){var v=this,C=w||"BESbswy",x=0,L=y||3e3,k=new Date().getTime();return new Promise(function(M,H){if(l(v.context)&&!f(v.context)){var N=new Promise(function($,U){function S(){new Date().getTime()-k>=L?U(Error(""+L+"ms timeout exceeded")):v.context.document.fonts.load(p(v,'"'+v.family+'"'),C).then(function(O){1<=O.length?$():setTimeout(S,25)},U)}S()}),V=new Promise(function($,U){x=setTimeout(function(){U(Error(""+L+"ms timeout exceeded"))},L)});Promise.race([V,N]).then(function(){clearTimeout(x),M(v)},H)}else e(function(){function $(){var F;(F=nt!=-1&&Y!=-1||nt!=-1&&at!=-1||Y!=-1&&at!=-1)&&((F=nt!=Y&&nt!=at&&Y!=at)||(o===null&&(F=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),o=!!F&&(536>parseInt(F[1],10)||parseInt(F[1],10)===536&&11>=parseInt(F[2],10))),F=o&&(nt==rt&&Y==rt&&at==rt||nt==ot&&Y==ot&&at==ot||nt==At&&Y==At&&at==At)),F=!F),F&&(pt.parentNode!==null&&pt.parentNode.removeChild(pt),clearTimeout(x),M(v))}function U(){if(new Date().getTime()-k>=L)pt.parentNode!==null&&pt.parentNode.removeChild(pt),H(Error(""+L+"ms timeout exceeded"));else{var F=v.context.document.hidden;(F===!0||F===void 0)&&(nt=S.g.offsetWidth,Y=O.g.offsetWidth,at=D.g.offsetWidth,$()),x=setTimeout(U,50)}}var S=new r(C),O=new r(C),D=new r(C),nt=-1,Y=-1,at=-1,rt=-1,ot=-1,At=-1,pt=document.createElement("div");pt.dir="ltr",n(S,p(v,"sans-serif")),n(O,p(v,"serif")),n(D,p(v,"monospace")),pt.appendChild(S.g),pt.appendChild(O.g),pt.appendChild(D.g),v.context.document.body.appendChild(pt),rt=S.g.offsetWidth,ot=O.g.offsetWidth,At=D.g.offsetWidth,U(),a(S,function(F){nt=F,$()}),n(S,p(v,'"'+v.family+'",sans-serif')),a(O,function(F){Y=F,$()}),n(O,p(v,'"'+v.family+'",serif')),a(D,function(F){at=F,$()}),n(D,p(v,'"'+v.family+'",monospace'))})})},A.exports=s})()})(yv);const NN=yv.exports;class PN{constructor(t){this.editor=t,this.indexs=[]}isEmpty(t){return Object.keys(t).length===0}source(t){let e=t,r=this.editor,n={},i={};for(let s in e.children)e.children[s].attrs.name==="mainLayer"&&(n=e.children[s].children),e.children[s].attrs.name==="backgroundLayer"&&(i=e.children[s].children);if(this.isEmpty(n))return;this.isEmpty(i)||r.background.setAttrs(i[0].attrs);let a=0;return n.forEach(s=>{if(s.className!=="Transformer"){if(s.className==="Text"){let o=s.attrs.fontFamily;this.addFont(o),new NN(o).load().then(function(){s.fontFamily(o)}).catch(function(){})}this.addElement(r,s,this.makeFunctionName(s),a),a++}}),Promise.all(this.indexs).then(s=>{s.forEach(o=>{o&&o.zIndex(o.attrs.index)})})}addElement(t,e,r,n){typeof t[r]=="function"&&(e.className==="Image"?(e.attrs.index=n,this.indexs.push(t[r](e.attrs))):t[r](e.attrs))}makeFunctionName(t){return"add"+t.attrs.type.charAt(0).toUpperCase()+t.attrs.type.slice(1)}addFont(t){var e=document.getElementsByTagName("head")[0],r=document.createElement("link"),n=t.replace(" ","+");r.id=n,r.rel="stylesheet",r.type="text/css",r.href="https://fonts.googleapis.com/css?family="+n,r.media="all",e.appendChild(r)}}class TN{constructor(t){this.editor=t,this.shadowRectangle=t.shadowRectangle}addGrid(){var t=this.editor.gridLayer;if(!this.editor.enableGrid){t.destroyChildren();return}var e=this.editor.editorWidth,r=this.editor.editorHeight,n=this.editor.blockSnapSize;t.destroyChildren();for(var i=n,a=0;a<e/i;a++)t.add(new le.Line({points:[Math.round(a*i),0,Math.round(a*i),r],stroke:"#ddd",strokeWidth:.5,draggable:!1,name:"gridLine"}));t.add(new le.Line({points:[0,0,10,10]}));for(var s=0;s<r/i;s++)t.add(new le.Line({points:[0,Math.round(s*i),e,Math.round(s*i)],stroke:"#ddd",strokeWidth:.5,draggable:!1,name:"gridLine"}));return this.shadowRectangle=this.editor.shadowRectangle,this.shadowRectangle.hide(),t.add(this.shadowRectangle),t.draw(),this.shadowRectangle}}class MN{constructor(t){this.editor=t}addRuler(){const t=this.editor.rulerLayer;if(!this.editor.enableRuler){t.destroyChildren();return}t.destroyChildren();const e=this.editor.rulerTickSize,r=this.editor.rulerTickSpacing,n=this.editor.rulerFontSize,i="sans-serif",a=this.editor.rulerFontColor;for(let s=0;s<=this.editor.editorWidth;s+=r){const o=new le.Line({points:[s,0,s,e],stroke:"#000",strokeWidth:.5,draggable:!1});t.add(o);const h=new le.Text({x:s,y:e+n,text:s,fontSize:n,fontFamily:i,fill:a,draggable:!1});t.add(h)}for(let s=0;s<=this.editor.editorHeight;s+=r){const o=new le.Line({points:[0,s,e,s],stroke:"#000",strokeWidth:.5,draggable:!1});t.add(o);const h=new le.Text({x:e+n,y:s,text:s,fontSize:n,fontFamily:i,fill:a,draggable:!1});t.add(h)}t.draw()}}class ON{constructor(t){this.editor=t,this.stage=t.editor,this.tr=t.transform,this.layer=t.layer}addSelection(){let t=this.editor.editor,e=this.editor.transform,r=this.editor.layer,n=this;r.add(e);var i=new le.Rect({fill:"rgb(60 129 246 / 0.29)",visible:!1,name:"selectionRectangle"});this.editor.hiddenLayer.add(i);var a,s,o,h;t.on("mousedown touchstart",u=>{try{if((u.target.name()==="stageBackground"||u.target.attrs.type==="template")&&e.nodes([]),u.target.name()!=="stageBackground")return;u.evt.preventDefault(),a=t.getPointerPosition().x,s=t.getPointerPosition().y,o=t.getPointerPosition().x,h=t.getPointerPosition().y,i.visible(!0),i.width(0),i.height(0)}catch{}}),t.on("mousemove touchmove",u=>{try{if(!i.visible())return;u.evt.preventDefault(),o=parseInt(t.getPointerPosition().x),h=parseInt(t.getPointerPosition().y),i.setAttrs({x:Math.min(a,o)/t.scaleX(),y:Math.min(s,h)/t.scaleY(),width:Math.abs(o-a)/t.scaleX(),height:Math.abs(h-s)/t.scaleY()})}catch{}}),t.on("mouseup touchend",u=>{if(i.visible()){u.evt.preventDefault(),setTimeout(()=>{i.visible(!1)});try{var d=n.layer.find("Text,Rect,Circle,Image,Polygon,Star,RegularPolygon,Arc,Ellipse,Line"),f=i.getClientRect(),l=d.filter(p=>le.Util.haveIntersection(f,p.getClientRect())&&!this.editor.lockedItems.includes(p));setTimeout(()=>{e.nodes(l),l.length===1?n.editor.selectItem(l[0]):n.editor.selectItem(null)},100)}catch{}}})}}const Mc={changeText(A,t){A.text(t)},changeBarcodeBasic(A,t){return new Promise((e,r)=>{A.text("*"+t+"*"),e(t)})},changeBarcode(A,t){return console.log(t),new Promise((e,r)=>{var n="CODE39",i=t,a=!1;typeof t=="object"?(n=t.format,i=t.value,a=t.showValue):(n=A.attrs.format,a=A.attrs.displayValue);try{var s=document.createElement("canvas");fg(s,i,{format:n,displayValue:a});var o=s.toDataURL("image/png");let h=new Image;return h.crossOrigin="Anonymous",h.onload=()=>{A.image(h),e(h)},h.src=o,A.image(h),A.attrs.format=n,A.attrs.barcode=i,A.attrs.displayValue=a,{status:"success"}}catch(h){return r(h),{status:"error",message:h}}})},changeQrCode(A,t){return new Promise((e,r)=>{Mi.toDataURL(t).then(n=>{let i=new Image;i.crossOrigin="Anonymous",i.onload=()=>{A.image(i),e(n)},i.src=n,A.image(i),A.attrs.qrvalue=t})})},changeText(A,t){return new Promise((e,r)=>{A.text(t),e(t)})},changeImage(A,t){return new Promise((e,r)=>{try{let n=new Image;n.crossOrigin="Anonymous",n.onload=()=>{A.image(n),e(t)},n.src=t+"?"+Date.now(),A.image(n)}catch(n){r(n)}})}};class kN{constructor(t){this.editor=t}getEditor(t){let e=this.editor.editor.clone(this.editor);return e.find(".gridLayer")[0].destroyChildren(),e.find(".rulerLayer")[0].destroyChildren(),e.find(".hiddenLayer")[0].destroyChildren(),this.changeQuality(e,t),e}print(t,e){const r=this,n=new r.editor.Print(t),i=e.sheetData,a=e.mappedData;let s=[],o=e.range.from,h=e.range.to;return i.forEach((u,d)=>{if(e.ignoreFirstRow&&d===0||e.dataSelection==="printSelectedData"&&e.selectedData.indexOf(d)===-1||e.dataSelection==="ignoreSelectedData"&&e.selectedData.indexOf(d)!==-1||e.dataSelection==="range"&&!(d+2>o&&d<h))return;let f=u,l=this.createLabel(this.getEditor(e),f,a,e);s.push(l.then(p=>{n.createLabel(p)}))}),Promise.all(s).then(u=>{n.doc.save("labels.pdf")})}async createLabel(t,e,r,n){let i=[];return r.forEach((a,s)=>{let o=a.elName,h=a.dataID;t.find("."+o).forEach(u=>{let d=e[h];d!=="none"&&i.push(this.changeElement(u,d))})}),Promise.all(i).then(a=>t.toDataURL({pixelRatio:n.printQuality}))}changeText(t,e){return new Promise((r,n)=>{t.text(e),r(e)})}changeElement(t,e){if(t.attrs.type==="text")return new Promise((r,n)=>{Mc.changeText(t,e).then(i=>{r(i)})});if(t.attrs.type==="qrcode")return new Promise((r,n)=>{this.changeQrCode(t,e).then(i=>{r(i)})});if(t.attrs.type==="image")return new Promise((r,n)=>{Mc.changeImage(t,e).then(i=>{r(i)})});if(t.attrs.type==="barcode")return new Promise((r,n)=>{Mc.changeBarcode(t,e).then(i=>{r(i)})});if(t.attrs.type==="barcodeBasic")return new Promise((r,n)=>{Mc.changeBarcodeBasic(t,e).then(i=>{r(i)})})}changeQrCode(t,e){return new Promise((r,n)=>{Mi.toDataURL(e).then(i=>{let a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{t.image(a),r(i)},a.src=i,t.image(a),t.attrs.qrvalue=e})})}changeQuality(t,e){var r=t.width(),n=e.cellWidth,i=e.cellHeight,a=r/n,s=n/r*a;t.width(n*s),t.height(i*s),t.scale({x:s,y:s})}}var Oc,gg;class HN{constructor(t){Im(this,Oc),this.stage=new le.Stage({container:t.container,width:t.pageWidth,height:t.pageHeight}),this.stage.getContent().style.background="white",this.doc=new le.Layer,this.config=t,this.pageWidth=t.pageWidth,this.pageHeight=t.pageHeight,this.pageMargin=t.pageMargin,this.pageMarginLeft=t.pageMarginLeft,this.pageMarginTop=t.pageMarginTop,this.cellPaddingLeft=t.cellPaddingLeft,this.cellPaddingTop=t.cellPaddingTop,this.pageWidth-=this.pageMargin*2,this.pageHeight-=this.pageMargin*2,this.cellPadding=t.cellPadding,this.cellWidth=t.cellWidth,this.cellHeight=t.cellHeight,this.startX=this.pageMarginLeft,this.startY=this.pageMarginTop,this.stage.add(this.doc),this.count=0}createLabel(t){var e=this.startX+this.cellWidth+this.cellPadding*2,r=this.startY+this.cellHeight+this.cellPadding*2;e<=this.pageWidth?(Tu(this,Oc,gg).call(this,t,this.startX+this.cellPadding,this.startY+this.cellPadding),this.startX=e+this.cellPaddingLeft):(r+this.cellHeight>this.pageHeight?console.log("new page need to add"):this.startY=r+this.cellPaddingTop,this.startX=this.pageMarginLeft,Tu(this,Oc,gg).call(this,t,this.startX+this.cellPadding,this.startY+this.cellPadding),this.startX=this.startX+this.cellWidth+this.cellPadding*2+this.cellPaddingLeft)}fitIntoContainer(){var t=document.querySelector("#"+this.config.container);this.containerWrapper&&(t=document.querySelector("#"+this.config.containerWrapper));var e=t.offsetWidth,r=this.pageWidth,n=this.pageHeight,i=e/r;this.stage.width(r*i),this.stage.height(n*i),this.stage.scale({x:i,y:i})}}Oc=new WeakSet,gg=function(A,t,e){this.count++;var r=new le.Rect({x:t,y:e,width:this.cellWidth,height:this.cellHeight,fill:"#3B82F6",stroke:"black",strokeWidth:4}),n=new le.Text({x:t,y:e,text:this.count,align:"center",verticalAlign:"middle",width:this.cellWidth,height:this.cellHeight,fill:"white",fontSize:20});this.doc.add(r),this.doc.add(n)};let bv=class{static showPointerCursor(t,e){e.attrs.url&&e.attrs.url.length>0&&(t.container().style.cursor="pointer")}static goToURL(t){t.attrs.url&&t.attrs.url.length>0&&window.open(t.attrs.url,"_blank")}};class DN{constructor(t){this.editorHeight=t.height,this.editorWidth=t.width,this.pageWidth=t.pageWidth,this.pageHeight=t.pageHeight,this.container=t.container,this.containerWrapper=t.containerWrapper,this.readOnly=t.readOnly,this.core=le,this.elements=[],this.selected=null,this.eventName="editor_element_change",this.eventSelected="editor_selected_element",this.changeEvent=new CustomEvent(this.eventName),this.selectEvent=new CustomEvent(this.eventSelected),this.blockSnapSize=10,this.lockedItems=[],this.act="browser",this.defaultConfiguration=Vf,this.act==="browser"?this.editor=new le.Stage({height:this.editorHeight,width:this.editorWidth,container:this.container}):this.editor=new le.Stage({height:this.editorHeight,width:this.editorWidth}),this.enableGrid=!1,this.enableRuler=!1,this.backgroundLayer=new le.Layer,this.backgroundLayer.name("backgroundLayer"),this.editor.add(this.backgroundLayer),this.background=new le.Rect({x:0,y:0,width:this.editorWidth,height:this.editorHeight,fill:"#ffffffff",name:"stageBackground",type:"background"}),this.background.on("click tap",()=>{this.deselect()}),this.backgroundLayer.add(this.background),this.gridLayer=new le.Layer,this.gridLayer.name("gridLayer"),this.editor.add(this.gridLayer),this.rulerLayer=new le.Layer,this.rulerLayer.name("rulerLayer"),this.editor.add(this.rulerLayer),this.layer=new le.Layer,this.layer.name("mainLayer"),this.editor.add(this.layer),this.hiddenLayer=new le.Layer,this.hiddenLayer.name("hiddenLayer"),this.editor.add(this.hiddenLayer),this.grid=new TN(this),this.shadowRectangle=new le.Rect({x:0,y:0,width:this.blockSnapSize*6,height:this.blockSnapSize*3,fill:"#FF7B17",opacity:.6,stroke:"#CF6412",strokeWidth:1,dash:[5,2],name:"shadowBox"}),this.marker=new le.Rect({x:0,y:0,width:0,height:0,fill:"#FF7B17",opacity:.6,name:"marker"}),this.hiddenLayer.add(this.marker),this.grid.addGrid(),this.rulerTickSize=4,this.rulerTickSpacing=10,this.rulerFontSize=2,this.rulerFontColor="#333",this.ruler=new MN(this),this.ruler.addRuler(),this.transform=new le.Transformer({shouldOverdrawWholeArea:!0,ignoreStroke:!0,padding:0}),this.transform.name("transform"),SN(this.editor,this.layer,this.transform),this.layer.add(this.transform),this.QRCode=Mi,this.Barcode=fg,this.Print=pB,this.Sheet=sU,this.readOnly||(this.Features=new LN(this),this.Selection=new ON(this),this.Selection.addSelection(),this.History=new IN(this)),this.Naming=new _N(this),this.ImportData=new PN(this),this.Printing=new kN(this),this.LayoutMaker=HN}mark(t){this.marker.x(t.x()),this.marker.y(t.y()),this.marker.height(t.height()),this.marker.width(t.width())}resetMark(){this.marker.x(0),this.marker.y(0),this.marker.height(0),this.marker.width(0)}undo(){this.History.undo()}selectAll(){let t=[];this.layer.children.forEach(e=>{e.getClassName()!=="Transformer"&&t.push(e)}),this.transform.nodes(t)}hideAnchor(){this.editor.find(".anchor").forEach(t=>{t.hide()})}backToOrginalSize(){this.editor.width(this.editorWidth/this.editor.scaleX()),this.editor.height(this.editorHeight/this.editor.scaleY()),this.editor.scale({x:1,y:1})}fitIntoContainer(t="fit"){var e=document.querySelector("#preview-canvas-holder");this.containerWrapper&&(e=document.querySelector("#"+this.containerWrapper));var r=e.offsetWidth,n=e.offsetHeight,i=this.editorWidth,a=this.editorHeight;if(t==="fit")if(i>a)var s=r/i;else var s=n/a;else var s=r/i;this.editor.width(i*s),this.editor.height(a*s),this.editor.scale({x:s,y:s})}zoom(t){var e=document.querySelector("#preview-canvas-holder");this.containerWrapper&&(e=document.querySelector("#"+this.containerWrapper));var r=e.offsetWidth,n=this.editorWidth,i=this.editorHeight,a=r/n+t;this.editor.width(n*a),this.editor.height(i*a),this.editor.scale({x:a,y:a})}addText(t){const e=sE(t);return this.add(e),e}addRect(t){const e=oE(t);return this.add(e),e}getShape(t){return{clipFunc:e=>{e.arc(0,0,30,0,Math.PI*2,!1)},type:"shape",x:0,y:0,width:100,height:100,draggable:!0}}addShape(t){this.isEmpty(t)&&(t={});var e=new le.Group(this.getShape(t));let r=this.addTriangle({});e.add(r),this.add(e)}addTriangle(t){this.isEmpty(t)&&(t={x:this.getXCenter(this.getSize(),this.getSize()),y:this.getYCenter(this.getSize(),this.getSize()),sides:3,radius:this.getSize(),fill:"#3C81F6",stroke:"#3C81F6",strokeWidth:0,draggable:!0,strokeScaleEnabled:!1,type:"triangle"});var e=new le.RegularPolygon(t);return this.add(e),e}addPolygon(t){this.isEmpty(t)&&(t={x:this.getXCenter(this.getSize(),this.getSize()),y:this.getXCenter(this.getSize(),this.getSize()),sides:6,radius:this.getSize(),fill:"#3C81F6",stroke:"#3C81F6",strokeWidth:0,draggable:!0,strokeScaleEnabled:!1,type:"polygon"});var e=new le.RegularPolygon(t);return this.add(e),e}addOval(t){this.isEmpty(t)&&(t={x:this.getXCenter(this.getSize(),this.getSize()),y:this.getXCenter(this.getSize(),this.getSize()),radiusX:this.getSize()/2,radiusY:this.getSize(),fill:"#3C81F6",stroke:"#3C81F6",strokeWidth:0,strokeScaleEnabled:!1,draggable:!0,type:"oval"});var e=new le.Ellipse(t);return this.add(e),e}addArc(t){this.isEmpty(t)&&(t={x:this.getXCenter(this.getSize()),y:this.getXCenter(this.getSize()),innerRadius:this.getSize()/2,outerRadius:this.getSize(),strokeScaleEnabled:!1,angle:300,fill:"#3C81F6",stroke:"#3C81F6",strokeWidth:0,draggable:!0,type:"arc"});var e=new le.Arc(t);return this.add(e),e}addStar(t){this.isEmpty(t)&&(t={x:this.getXCenter(this.getSize()),y:this.getXCenter(this.getSize()),numPoints:6,innerRadius:this.getSize()/1.7,outerRadius:this.getSize(),fill:"#3C81F6",stroke:"#000000",strokeScaleEnabled:!1,strokeWidth:4,draggable:!0,type:"star"});var e=new le.Star(t);return this.add(e),e}addCircle(t){const e=hE(t);return this.add(e),e}addLine(t){this.isEmpty(t)&&(t={points:[10,10,this.getSize(),this.getSize()/2],stroke:"black",strokeWidth:this.getSize()/50,type:"line",draggable:!0});let e=new le.Line(t);this.add(e)}isEmpty(t){return Object.keys(t).length===0}getSize(){let t=this.editorHeight/3;return this.editorHeight>this.editorWidth&&(t=this.editorWidth/3),t}getYCenter(t,e=0){return e>0&&(e=t/2),this.editorHeight/2-t/2+e}getXCenter(t,e=0){return e>0&&(e=t/2),this.editorWidth/2-t/2+e}addImage(t){return new Promise((e,r)=>{if(this.isEmpty(t)){let s=Vf.placeHolderImage;var n=new Image;n.crossOrigin="Anonymous",n.onload=()=>{var o=new le.Image({x:this.getXCenter(this.getSize()),y:this.getYCenter(this.getSize()),image:n,width:this.getSize(),height:this.getSize(),draggable:!0,strokeWidth:0,strokeScaleEnabled:!1,type:"image"});this.add(o),e(o)},n.src=s}else{let s=t.src;t.hasOwnProperty("imageSrc")&&(s=t.imageSrc),t.hasOwnProperty("src")&&(s=t.src);var n=new Image;n.crossOrigin="Anonymous";var i={x:t.x,y:t.y,image:n,width:t.width,height:t.height,draggable:!0,strokeWidth:0,type:"image"},a={...i,...t};n.onload=()=>{var h=new le.Image(a);this.add(h),e(h)},n.src=s}})}addSvg(t){return this.isEmpty(t)&&(t={type:"svg",imageSrc:Vf.svgPlaceholder}),le.Image.fromURL(t.imageSrc,e=>{e.setAttrs(t),e.draggable(!0),this.add(e),this.layer.draw()})}addPath(t){this.isEmpty(t)&&(t={x:10,y:10,data:"M213.1,6.7c-32.4-14.4-73.7,0-88.1,30.6C110.6,4.9,67.5-9.5,36.9,6.7C2.8,22.9-13.4,62.4,13.5,110.9C33.3,145.1,67.5,170.3,125,217c59.3-46.7,93.5-71.9,111.5-106.1C263.4,64.2,247.2,22.9,213.1,6.7z",fill:"green",scaleX:.1,scaleY:.1,type:"path",draggable:!0});let e=new le.Path(t);this.add(e)}updateImage(t,e,r={}){let n=new Image;n.crossOrigin="Anonymous",n.onload=()=>{t.image(n),this.isEmpty(r)||t.setAttrs(r)},n.src=e}addQrcode(t){return new Promise((e,r)=>{this.isEmpty(t)&&(t={x:this.getXCenter(this.getSize()),y:this.getYCenter(this.getSize()),width:this.getSize(),height:this.getSize(),type:"qrcode",qrvalue:"hello"}),Mi.toDataURL(t.qrvalue,{errorCorrectionLevel:"H"}).then(n=>{let i=n;le.Image.fromURL(i,a=>{a.setAttrs(t),this.add(a),e(a)})}).catch(n=>{r(n)})})}addBarcodeBasic(t){return this.isEmpty(t)&&(t={type:"barcodeBasic",x:1,y:1,text:"*1234*",fontSize:this.editorWidth/10,fontFamily:"Libre Barcode 39",fill:"#000000",stroke:"#000000",strokeWidth:0,draggable:!0,strokeScaleEnabled:!1}),this.addText(t)}addBarcode(t){var e="1234",r="CODE39",n=!1;this.isEmpty(t)?t={x:this.getXCenter(this.getSize()),y:this.getYCenter(this.getSize()),width:this.getSize(),height:this.getSize()/2,draggable:!0,type:"barcode",barcode:e,displayValue:!1,format:"CODE39"}:e=t.barcode,r=t.format,n=t.displayValue;var i=document.createElement("canvas");fg(i,e,{format:r,displayValue:n});var a=i.toDataURL("image/png");let s=a;var o=new Image;o.crossOrigin="Anonymous",o.onload=()=>{t.image=o;var h=new le.Image(t);this.add(h)},o.src=s}lockUnlock(){if(this.lockedItems.includes(this.selected)){let t=this.lockedItems.indexOf(this.selected);t>-1&&this.lockedItems.splice(t,1),this.transform.nodes([this.selected]),this.selected.draggable(!0)}else this.lockedItems.push(this.selected),this.transform.nodes([]),this.selected.draggable(!1)}isLocked(){return this.lockedItems.includes(this.selected)}selectItem(t){this.selected=t,this.selectEvent.data=t,document.dispatchEvent(this.selectEvent)}add(t){let e=this.blockSnapSize,r=this.shadowRectangle;t.getAttr("name")?t.name(t.getAttr("name")):t.name(this.Naming.generateName(t.attrs.type)),t.draggable(!this.readOnly),this.elements.push(t),this.layer.add(t),this.readOnly||this.transform.nodes([t]),console.warn=()=>{},this.transform.zIndex(99999),this.selected=t;const n=this;if(n.selectEvent.data=t,document.dispatchEvent(n.selectEvent),t.on("click tap",function(){n.selected=this,n.selectEvent.data=this,n.selectItem(this),document.dispatchEvent(n.selectEvent),n.readOnly&&bv.goToURL(t),n.lockedItems.includes(this)?n.transform.nodes([]):n.readOnly||n.transform.nodes([this])}),!this.readOnly){t.on("transform",function(){if(this.attrs.type==="line"){const d=this.points(),f=[];for(var u=0;u<d.length/2;u++){const l={x:d[u*2]*this.scaleX(),y:d[u*2+1]*this.scaleY()};f.push(l.x,l.y)}this.points(f)}this.width(Math.max(5,this.width()*this.scaleX())),this.height(Math.max(5,this.height()*this.scaleY())),this.scaleX(1),this.scaleY(1)});const i=["x","y"];for(let u in t.attrs)if(!i.includes(u)){let d=u+"Change";t.on(d,function(f){let l=d.replace("Change","");typeof t[l]=="function"&&n.History.addHistory(this,l,"changed",f.oldVal)})}let a=0,s=0;t.on("dragstart",function(u){a=u.target.x(),s=u.target.y(),n.enableGrid&&(r.width(this.width()),r.height(this.height()),r.show(),r.moveToTop(),this.moveToTop())}),t.on("dragmove",function(){if(n.enableGrid){let u=Math.round(this.x()/e)*e,d=Math.round(this.y()/e)*e,f=t.attrs.type;try{f==="arc"||f==="star"?(u=u-t.outerRadius(),d=d-t.outerRadius()):f==="triangle"||f==="circle"||f==="polygon"?(u=u-t.radius(),d=d-t.radius()):f==="line"?(u=u+t.attrs.points[0],d=d+t.attrs.points[1]):f==="oval"&&(u=u-t.radiusX(),d=d-t.radiusY()),r.position({x:u,y:d})}catch{}}}),t.on("dragend",function(u){let d=["x","y"],f=[a,s];n.History.addHistory(this,d,"changed",f),n.enableGrid&&(this.position({x:Math.round(this.x()/e)*e,y:Math.round(this.y()/e)*e}),n.editor.batchDraw(),r.hide())});let o=0,h=0;t.on("transformstart",function(u){o=u.target.scaleX(),h=u.target.scaleY()}),t.on("transformend",function(u){let d=["scaleX","scaleY"],f=[o,h];n.History.addHistory(this,d,"changed",f)})}t.on("mouseenter",()=>{this.readOnly&&bv.showPointerCursor(this.editor,t)}),t.on("mouseleave",()=>{this.editor.container().style.cursor="default"})}getElements(){return this.elements}getElement(t){return this.layer.children.filter(e=>e._id===t)}sheetToJson(t){var e=XLSX.utils.sheet_to_json(t,{header:1});return e}getSelected(){return this.selected}setEelement(t,e){let r=this.elements.filter(n=>n._id===parseInt(t));return r.length!==0&&r[0].text(e.text),this}moveUp(){const t=this.layer.find("Transformer");try{t[0]._nodes[0].moveUp()}catch{}}moveDown(){const t=this.layer.find("Transformer");try{t[0]._nodes[0].moveDown()}catch{}}clearAll(){this.clearEditor(),document.dispatchEvent(this.selectEvent),this.History.clearHistory()}clearEditor(){this.layer.children.forEach(t=>{setTimeout(()=>{t.getClassName()!=="Transformer"&&t.destroy()},100)}),this.backgroundLayer.children.forEach(t=>{setTimeout(()=>{t.name()!=="stageBackground"&&t.destroy()},100)}),this.transform.nodes([]),this.selectEvent.data=null}deleteSelected(){this.layer.find("Transformer");try{this.transform.nodes().forEach(t=>t.destroy()),this.transform.nodes([]),this.selectEvent.data=null,document.dispatchEvent(this.selectEvent)}catch{}}duplicateSelected(){this.layer.find("Transformer");try{let t=[];this.transform.nodes().forEach(e=>{let r=e.clone({x:e.x()+10,y:e.y()+10});this.layer.add(r),t.push(r)}),this.selectItem(t),this.transform.nodes(t)}catch{}}deselect(){this.resetMark(),this.transform.nodes([]),this.selectEvent.data=null,document.dispatchEvent(this.selectEvent)}getOriginalImage(t=1){let e=this.editor.clone(this);return e.width(this.editorWidth/e.scaleX()),e.height(this.editorHeight/e.scaleY()),e.toDataURL({pixelRatio:t})}save(t=3,e={},r=!1){this.deselect();let n=this.editor.clone(this);return n.find(".gridLayer")[0].destroyChildren(),n.find(".rulerLayer")[0].destroyChildren(),r&&n.find(".backgroundLayer")[0].destroyChildren(),n.toDataURL({pixelRatio:t})}downloadAsImage(){this.deselect();let t=this.save();this.downloadURI(t,"template.jpeg")}exportToURL(t){return new Promise((e,r)=>{this.deselect();let n=this.save();const i=new FormData;i.append("image_data",n),fetch(t,{method:"POST",body:i}).then(a=>a.json()).then(a=>{e(a)}).catch(a=>{r(a)})})}downloadAsTransparentImage(){this.deselect();let t=this.save(3,{},!0);this.downloadURI(t,"template.png")}getOrientation(){return this.editorWidth>this.editorHeight?"l":"p"}getFormat(){return[this.editorWidth,this.editorHeight]}downloadAsPDF(t=null){const e={pageWidth:this.editorWidth,pageHeight:this.editorHeight,cellWidth:this.editorWidth,cellHeight:this.editorHeight,cellPadding:0,pageMargin:0,pageMarginLeft:0,pageMarginTop:0,cellPaddingLeft:0,cellPaddingTop:0,docSize:{orientation:this.getOrientation(),unit:"pt",format:this.getFormat()}},r={canvasContainer:{cellWidth:this.editorWidth,cellHeight:this.editorHeight,numberOfCellPrint:1,printQuality:3}};if(t)return this.staticPrint(e,r,!0);this.staticPrint(e,r)}downloadURI(t,e){var r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}saveImage(){let t=this.editor.clone(this);return t.find(".gridLayer")[0].destroyChildren(),t.find(".rulerLayer")[0].destroyChildren(),t.toDataURL({pixelRatio:3})}dynamicPrint(t,e){return this.Printing.print(t,e)}staticPrint(t,e,r=null){this.deselect();const n=new pB(t);var i=this.editor.clone(this);i.find(".gridLayer")[0].destroyChildren(),i.find(".rulerLayer")[0].destroyChildren();var a=i.width(),s=e.canvasContainer.cellWidth,o=e.canvasContainer.cellHeight,h=a/s,u=s/a*h;i.width(s*u),i.height(o*u),i.scale({x:u,y:u});for(var d=0;d<parseInt(e.canvasContainer.numberOfCellPrint);d++)n.createLabel(i.toDataURL({pixelRatio:e.canvasContainer.printQuality}));const f=n.doc;if(r)return f.output();f.save("labels.pdf")}}function Cv(A,t,e){return new Promise((r,n)=>{setTimeout(()=>{const i={width:parseInt(e.props.cellWidth),height:parseInt(e.props.cellHeight),container:A,containerWrapper:t,pageHeight:parseInt(e.props.pageHeight),pageWidth:parseInt(e.props.pageWidth),dragging:!1,readOnly:!0},a=new DN(i);a.readOnly=!0,window.widget=a,a.fitIntoContainer(),a.fitIntoContainer(),window.addEventListener("resize",function(){a.fitIntoContainer()});let s=e,o=e.props;a.editorWidth=parseInt(o.cellWidth),a.editorHeight=parseInt(o.cellHeight);try{a.ImportData.source(s.data),setTimeout(()=>{a.transform.nodes([]),a.fitIntoContainer(),a.selectEvent.data=null,document.dispatchEvent(a.selectEvent),r()},100),a.fitIntoContainer()}catch(h){n(h)}},100)})}function RN(A){const t=a=>{let s="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",h=o.length;let u=0;for(;u<a;)s+=o.charAt(Math.floor(Math.random()*h)),u+=1;return s},e=t(4),r=t(4),n=`
<div id="${e}">
<div id="${r}">
</div>
</div>
`;document.querySelector("#"+A.container).insertAdjacentHTML("beforeend",n),document.getElementById(A.container).style.maxWidth=A.width;let i=A.url;fetch(i).then(a=>a.json()).then(a=>{Cv(r,e,a).then(s=>{console.log("loaded")})}).catch(a=>console.log(a))}function jN(A){const t=`
<div>
<div class="labelbaker-popup-container">
<div id="labelbaker-popup" class="labelbaker-popup-content">
<button class="labelbaker-close-button">&times;</button>
<div id="stageID">
<div id="canvasID">
</div>
</div>
</div>
</div>
</div>`;document.querySelector("body").insertAdjacentHTML("beforeend",t);const e=document.querySelector(".labelbaker-close-button"),r=document.querySelector(".labelbaker-popup-container");if(sessionStorage.getItem("labelbaker-popup")){r.style.display="none";return}else sessionStorage.setItem("labelbaker-popup",!0);document.getElementById("labelbaker-popup").style.maxWidth=A.width;let i=A.url;fetch(i).then(a=>a.json()).then(a=>{Cv("canvasID","stageID",a).then(s=>{r.style.display="flex",r.style.visibility="visible",e.style.display="block",console.log("loaded")})}).catch(a=>console.log(a)),e.addEventListener("click",()=>{r.style.display="none"}),r.addEventListener("click",a=>{a.target.className==="labelbaker-popup-container"&&(r.style.display="none")}),document.getElementById("show").addEventListener("click",function(){r.style.display="flex"})}/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var pg=function(A,t){return pg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},pg(A,t)};function ln(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pg(A,t);function e(){this.constructor=A}A.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var mg=function(){return mg=Object.assign||function(A){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A},mg.apply(this,arguments)};function ur(A,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function s(u){try{h(r.next(u))}catch(d){a(d)}}function o(u){try{h(r.throw(u))}catch(d){a(d)}}function h(u){u.done?i(u.value):n(u.value).then(s,o)}h((r=r.apply(A,t||[])).next())})}function er(A,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(h){return function(u){return o([h,u])}}function o(h){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,n&&(i=h[0]&2?n.return:h[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,h[1])).done)return i;switch(n=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,n=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){e=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){e.label=h[1];break}if(h[0]===6&&e.label<i[1]){e.label=i[1],i=h;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(h);break}i[2]&&e.ops.pop(),e.trys.pop();continue}h=t.call(A,e)}catch(u){h=[6,u],n=0}finally{r=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function kc(A,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return A.concat(i||t)}for(var ri=function(){function A(t,e,r,n){this.left=t,this.top=e,this.width=r,this.height=n}return A.prototype.add=function(t,e,r,n){return new A(this.left+t,this.top+e,this.width+r,this.height+n)},A.fromClientRect=function(t,e){return new A(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)},A.fromDOMRectList=function(t,e){var r=Array.from(e).find(function(n){return n.width!==0});return r?new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),Hc=function(A,t){return ri.fromClientRect(A,t.getBoundingClientRect())},GN=function(A){var t=A.body,e=A.documentElement;if(!t||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,e.scrollWidth),Math.max(t.offsetWidth,e.offsetWidth),Math.max(t.clientWidth,e.clientWidth)),n=Math.max(Math.max(t.scrollHeight,e.scrollHeight),Math.max(t.offsetHeight,e.offsetHeight),Math.max(t.clientHeight,e.clientHeight));return new ri(0,0,r,n)},Dc=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);(i&64512)===56320?t.push(((n&1023)<<10)+(i&1023)+65536):(t.push(n),e--)}else t.push(n)}return t},fA=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var a=A[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",KN=typeof Uint8Array>"u"?[]:new Uint8Array(256),Rc=0;Rc<xv.length;Rc++)KN[xv.charCodeAt(Rc)]=Rc;for(var Fv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dh=typeof Uint8Array>"u"?[]:new Uint8Array(256),jc=0;jc<Fv.length;jc++)dh[Fv.charCodeAt(jc)]=jc;for(var VN=function(A){var t=A.length*.75,e=A.length,r,n=0,i,a,s,o;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<e;r+=4)i=dh[A.charCodeAt(r)],a=dh[A.charCodeAt(r+1)],s=dh[A.charCodeAt(r+2)],o=dh[A.charCodeAt(r+3)],u[n++]=i<<2|a>>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|o&63;return h},$N=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},zN=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},_a=5,wg=6+5,Bg=2,WN=wg-_a,Qv=65536>>_a,qN=1<<_a,vg=qN-1,XN=1024>>_a,YN=Qv+XN,JN=YN,ZN=32,t8=JN+ZN,e8=65536>>wg,A8=1<<WN,r8=A8-1,Ev=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},n8=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},i8=function(A,t){var e=VN(A),r=Array.isArray(e)?zN(e):new Uint32Array(e),n=Array.isArray(e)?$N(e):new Uint16Array(e),i=24,a=Ev(n,i/2,r[4]/2),s=r[5]===2?Ev(n,(i+r[4])/2):n8(r,Math.ceil((i+r[4])/4));return new a8(r[0],r[1],r[2],r[3],a,s)},a8=function(){function A(t,e,r,n,i,a){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return A.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>_a],e=(e<<Bg)+(t&vg),this.data[e];if(t<=65535)return e=this.index[Qv+(t-55296>>_a)],e=(e<<Bg)+(t&vg),this.data[e];if(t<this.highStart)return e=t8-e8+(t>>wg),e=this.index[e],e+=t>>_a&r8,e=this.index[e],e=(e<<Bg)+(t&vg),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Uv="ABCDEFGHIJKLMNOPQRS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AYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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QB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABw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FAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAG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AEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHg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ABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFA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cAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwB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gAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAE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ACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB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AA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAA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QAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Sv=50,h8=1,Lv=2,Iv=3,u8=4,c8=5,_v=7,Nv=8,Pv=9,Ri=10,yg=11,Tv=12,bg=13,l8=14,fh=15,Cg=16,Kc=17,gh=18,d8=19,Mv=20,xg=21,ph=22,Fg=23,Ts=24,Mr=25,mh=26,wh=27,Ms=28,f8=29,Os=30,g8=31,Vc=32,$c=33,Qg=34,Eg=35,Ug=36,Bh=37,Sg=38,zc=39,Wc=40,Lg=41,Ov=42,p8=43,m8=[9001,65288],kv="!",cr="×",qc="÷",Ig=i8(o8),ni=[Os,Ug],_g=[h8,Lv,Iv,c8],Hv=[Ri,Nv],Dv=[wh,mh],w8=_g.concat(Hv),Rv=[Sg,zc,Wc,Qg,Eg],B8=[fh,bg],v8=function(A,t){t===void 0&&(t="strict");var e=[],r=[],n=[];return A.forEach(function(i,a){var s=Ig.get(i);if(s>Sv?(n.push(!0),s-=Sv):n.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),e.push(Cg);if(s===u8||s===yg){if(a===0)return r.push(a),e.push(Os);var o=e[a-1];return w8.indexOf(o)===-1?(r.push(r[a-1]),e.push(o)):(r.push(a),e.push(Os))}if(r.push(a),s===g8)return e.push(t==="strict"?xg:Bh);if(s===Ov||s===f8)return e.push(Os);if(s===p8)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Bh):e.push(Os);e.push(s)}),[r,e,n]},Ng=function(A,t,e,r){var n=r[e];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var i=e;i<=r.length;){i++;var a=r[i];if(a===t)return!0;if(a!==Ri)break}if(n===Ri)for(var i=e;i>0;){i--;var s=r[i];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var o=e;o<=r.length;){o++;var a=r[o];if(a===t)return!0;if(a!==Ri)break}if(s!==Ri)break}return!1},jv=function(A,t){for(var e=A;e>=0;){var r=t[e];if(r===Ri)e--;else return r}return 0},y8=function(A,t,e,r,n){if(e[r]===0)return cr;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return cr;var a=i-1,s=i+1,o=t[i],h=a>=0?t[a]:0,u=t[s];if(o===Lv&&u===Iv)return cr;if(_g.indexOf(o)!==-1)return kv;if(_g.indexOf(u)!==-1||Hv.indexOf(u)!==-1)return cr;if(jv(i,t)===Nv)return qc;if(Ig.get(A[i])===yg||(o===Vc||o===$c)&&Ig.get(A[s])===yg||o===_v||u===_v||o===Pv||[Ri,bg,fh].indexOf(o)===-1&&u===Pv||[Kc,gh,d8,Ts,Ms].indexOf(u)!==-1||jv(i,t)===ph||Ng(Fg,ph,i,t)||Ng([Kc,gh],xg,i,t)||Ng(Tv,Tv,i,t))return cr;if(o===Ri)return qc;if(o===Fg||u===Fg)return cr;if(u===Cg||o===Cg)return qc;if([bg,fh,xg].indexOf(u)!==-1||o===l8||h===Ug&&B8.indexOf(o)!==-1||o===Ms&&u===Ug||u===Mv||ni.indexOf(u)!==-1&&o===Mr||ni.indexOf(o)!==-1&&u===Mr||o===wh&&[Bh,Vc,$c].indexOf(u)!==-1||[Bh,Vc,$c].indexOf(o)!==-1&&u===mh||ni.indexOf(o)!==-1&&Dv.indexOf(u)!==-1||Dv.indexOf(o)!==-1&&ni.indexOf(u)!==-1||[wh,mh].indexOf(o)!==-1&&(u===Mr||[ph,fh].indexOf(u)!==-1&&t[s+1]===Mr)||[ph,fh].indexOf(o)!==-1&&u===Mr||o===Mr&&[Mr,Ms,Ts].indexOf(u)!==-1)return cr;if([Mr,Ms,Ts,Kc,gh].indexOf(u)!==-1)for(var d=i;d>=0;){var f=t[d];if(f===Mr)return cr;if([Ms,Ts].indexOf(f)!==-1)d--;else break}if([wh,mh].indexOf(u)!==-1)for(var d=[Kc,gh].indexOf(o)!==-1?a:i;d>=0;){var f=t[d];if(f===Mr)return cr;if([Ms,Ts].indexOf(f)!==-1)d--;else break}if(Sg===o&&[Sg,zc,Qg,Eg].indexOf(u)!==-1||[zc,Qg].indexOf(o)!==-1&&[zc,Wc].indexOf(u)!==-1||[Wc,Eg].indexOf(o)!==-1&&u===Wc||Rv.indexOf(o)!==-1&&[Mv,mh].indexOf(u)!==-1||Rv.indexOf(u)!==-1&&o===wh||ni.indexOf(o)!==-1&&ni.indexOf(u)!==-1||o===Ts&&ni.indexOf(u)!==-1||ni.concat(Mr).indexOf(o)!==-1&&u===ph&&m8.indexOf(A[s])===-1||ni.concat(Mr).indexOf(u)!==-1&&o===gh)return cr;if(o===Lg&&u===Lg){for(var l=e[i],p=1;l>0&&(l--,t[l]===Lg);)p++;if(p%2!==0)return cr}return o===Vc&&u===$c?cr:qc},b8=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=v8(A,t.lineBreak),r=e[0],n=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(n=n.map(function(s){return[Mr,Os,Ov].indexOf(s)!==-1?Bh:s}));var a=t.wordBreak==="keep-all"?i.map(function(s,o){return s&&A[o]>=19968&&A[o]<=40959}):void 0;return[r,n,a]},C8=function(){function A(t,e,r,n){this.codePoints=t,this.required=e===kv,this.start=r,this.end=n}return A.prototype.slice=function(){return fA.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),x8=function(A,t){var e=Dc(A),r=b8(e,t),n=r[0],i=r[1],a=r[2],s=e.length,o=0,h=0;return{next:function(){if(h>=s)return{done:!0,value:null};for(var u=cr;h<s&&(u=y8(e,i,n,++h,a))===cr;);if(u!==cr||h===s){var d=new C8(e,u,o,h);return o=h,{value:d,done:!1}}return{done:!0,value:null}}}},F8=1<<0,Q8=1<<1,vh=1<<2,Gv=1<<3,Xc=10,Kv=47,yh=92,E8=9,U8=32,Yc=34,bh=61,S8=35,L8=36,I8=37,Jc=39,Zc=40,Ch=41,_8=95,Cr=45,N8=33,P8=60,T8=62,M8=64,O8=91,k8=93,H8=61,D8=123,tl=63,R8=125,Vv=124,j8=126,G8=128,$v=65533,Pg=42,Na=43,K8=44,V8=58,$8=59,xh=46,z8=0,W8=8,q8=11,X8=14,Y8=31,J8=127,Dn=-1,zv=48,Wv=97,qv=101,Z8=102,tP=117,eP=122,Xv=65,Yv=69,Jv=70,AP=85,rP=90,lr=function(A){return A>=zv&&A<=57},nP=function(A){return A>=55296&&A<=57343},ks=function(A){return lr(A)||A>=Xv&&A<=Jv||A>=Wv&&A<=Z8},iP=function(A){return A>=Wv&&A<=eP},aP=function(A){return A>=Xv&&A<=rP},sP=function(A){return iP(A)||aP(A)},oP=function(A){return A>=G8},el=function(A){return A===Xc||A===E8||A===U8},Al=function(A){return sP(A)||oP(A)||A===_8},Zv=function(A){return Al(A)||lr(A)||A===Cr},hP=function(A){return A>=z8&&A<=W8||A===q8||A>=X8&&A<=Y8||A===J8},ji=function(A,t){return A!==yh?!1:t!==Xc},rl=function(A,t,e){return A===Cr?Al(t)||ji(t,e):Al(A)?!0:!!(A===yh&&ji(A,t))},Tg=function(A,t,e){return A===Na||A===Cr?lr(t)?!0:t===xh&&lr(e):lr(A===xh?t:A)},uP=function(A){var t=0,e=1;(A[t]===Na||A[t]===Cr)&&(A[t]===Cr&&(e=-1),t++);for(var r=[];lr(A[t]);)r.push(A[t++]);var n=r.length?parseInt(fA.apply(void 0,r),10):0;A[t]===xh&&t++;for(var i=[];lr(A[t]);)i.push(A[t++]);var a=i.length,s=a?parseInt(fA.apply(void 0,i),10):0;(A[t]===Yv||A[t]===qv)&&t++;var o=1;(A[t]===Na||A[t]===Cr)&&(A[t]===Cr&&(o=-1),t++);for(var h=[];lr(A[t]);)h.push(A[t++]);var u=h.length?parseInt(fA.apply(void 0,h),10):0;return e*(n+s*Math.pow(10,-a))*Math.pow(10,o*u)},cP={type:2},lP={type:3},dP={type:4},fP={type:13},gP={type:8},pP={type:21},mP={type:9},wP={type:10},BP={type:11},vP={type:12},yP={type:14},nl={type:23},bP={type:1},CP={type:25},xP={type:24},FP={type:26},QP={type:27},EP={type:28},UP={type:29},SP={type:31},Mg={type:32},t5=function(){function A(){this._value=[]}return A.prototype.write=function(t){this._value=this._value.concat(Dc(t))},A.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Mg;)t.push(e),e=this.consumeToken();return t},A.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Yc:return this.consumeStringToken(Yc);case S8:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Zv(e)||ji(r,n)){var i=rl(e,r,n)?Q8:F8,a=this.consumeName();return{type:5,value:a,flags:i}}break;case L8:if(this.peekCodePoint(0)===bh)return this.consumeCodePoint(),fP;break;case Jc:return this.consumeStringToken(Jc);case Zc:return cP;case Ch:return lP;case Pg:if(this.peekCodePoint(0)===bh)return this.consumeCodePoint(),yP;break;case Na:if(Tg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case K8:return dP;case Cr:var s=t,o=this.peekCodePoint(0),h=this.peekCodePoint(1);if(Tg(s,o,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(rl(s,o,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===Cr&&h===T8)return this.consumeCodePoint(),this.consumeCodePoint(),xP;break;case xh:if(Tg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Kv:if(this.peekCodePoint(0)===Pg)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Pg&&(u=this.consumeCodePoint(),u===Kv))return this.consumeToken();if(u===Dn)return this.consumeToken()}break;case V8:return FP;case $8:return QP;case P8:if(this.peekCodePoint(0)===N8&&this.peekCodePoint(1)===Cr&&this.peekCodePoint(2)===Cr)return this.consumeCodePoint(),this.consumeCodePoint(),CP;break;case M8:var d=this.peekCodePoint(0),f=this.peekCodePoint(1),l=this.peekCodePoint(2);if(rl(d,f,l)){var a=this.consumeName();return{type:7,value:a}}break;case O8:return EP;case yh:if(ji(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case k8:return UP;case H8:if(this.peekCodePoint(0)===bh)return this.consumeCodePoint(),gP;break;case D8:return BP;case R8:return vP;case tP:case AP:var p=this.peekCodePoint(0),w=this.peekCodePoint(1);return p===Na&&(ks(w)||w===tl)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Vv:if(this.peekCodePoint(0)===bh)return this.consumeCodePoint(),mP;if(this.peekCodePoint(0)===Vv)return this.consumeCodePoint(),pP;break;case j8:if(this.peekCodePoint(0)===bh)return this.consumeCodePoint(),wP;break;case Dn:return Mg}return el(t)?(this.consumeWhiteSpace(),SP):lr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Al(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:fA(t)}},A.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},A.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},A.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},A.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ks(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var r=!1;e===tl&&t.length<6;)t.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(fA.apply(void 0,t.map(function(o){return o===tl?zv:o})),16),i=parseInt(fA.apply(void 0,t.map(function(o){return o===tl?Jv:o})),16);return{type:30,start:n,end:i}}var a=parseInt(fA.apply(void 0,t),16);if(this.peekCodePoint(0)===Cr&&ks(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var s=[];ks(e)&&s.length<6;)s.push(e),e=this.consumeCodePoint();var i=parseInt(fA.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},A.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Zc?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Zc?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},A.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Dn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Jc||e===Yc){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Dn||this.peekCodePoint(0)===Ch)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),nl)}for(;;){var n=this.consumeCodePoint();if(n===Dn||n===Ch)return{type:22,value:fA.apply(void 0,t)};if(el(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Dn||this.peekCodePoint(0)===Ch?(this.consumeCodePoint(),{type:22,value:fA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),nl);if(n===Yc||n===Jc||n===Zc||hP(n))return this.consumeBadUrlRemnants(),nl;if(n===yh)if(ji(n,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),nl;else t.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;el(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ch||t===Dn)return;ji(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(t){for(var e=5e4,r="";t>0;){var n=Math.min(e,t);r+=fA.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(t){var e="",r=0;do{var n=this._value[r];if(n===Dn||n===void 0||n===t)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===Xc)return this._value.splice(0,r),bP;if(n===yh){var i=this._value[r+1];i!==Dn&&i!==void 0&&(i===Xc?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):ji(n,i)&&(e+=this.consumeStringSlice(r),e+=fA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var t=[],e=vh,r=this.peekCodePoint(0);for((r===Na||r===Cr)&&t.push(this.consumeCodePoint());lr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===xh&&lr(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gv;lr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Yv||r===qv)&&((n===Na||n===Cr)&&lr(i)||lr(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gv;lr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[uP(t),e]},A.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],r=t[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(rl(n,i,a)){var s=this.consumeName();return{type:15,number:e,flags:r,unit:s}}return n===I8?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ks(t)){for(var e=fA(t);ks(this.peekCodePoint(0))&&e.length<6;)e+=fA(this.consumeCodePoint());el(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||nP(r)||r>1114111?$v:r}return t===Dn?$v:t},A.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(Zv(e))t+=fA(e);else if(ji(e,this.peekCodePoint(0)))t+=fA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},A}(),e5=function(){function A(t){this._tokens=t}return A.create=function(t){var e=new t5;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},A.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},A.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},r=this.consumeToken();;){if(r.type===32||IP(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?Mg:t},A.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},A}(),Fh=function(A){return A.type===15},Hs=function(A){return A.type===17},De=function(A){return A.type===20},LP=function(A){return A.type===0},Og=function(A,t){return De(A)&&A.value===t},A5=function(A){return A.type!==31},Ds=function(A){return A.type!==31&&A.type!==4},Rn=function(A){var t=[],e=[];return A.forEach(function(r){if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&t.push(e),t},IP=function(A,t){return t===11&&A.type===12||t===28&&A.type===29?!0:t===2&&A.type===3},Gi=function(A){return A.type===17||A.type===15},CA=function(A){return A.type===16||Gi(A)},r5=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},VA={type:17,number:0,flags:vh},kg={type:16,number:50,flags:vh},Ki={type:16,number:100,flags:vh},Qh=function(A,t,e){var r=A[0],n=A[1];return[$e(r,t),$e(typeof n<"u"?n:r,e)]},$e=function(A,t){if(A.type===16)return A.number/100*t;if(Fh(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},n5="deg",i5="grad",a5="rad",s5="turn",il={name:"angle",parse:function(A,t){if(t.type===15)switch(t.unit){case n5:return Math.PI*t.number/180;case i5:return Math.PI/200*t.number;case a5:return t.number;case s5:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},o5=function(A){return A.type===15&&(A.unit===n5||A.unit===i5||A.unit===a5||A.unit===s5)},h5=function(A){var t=A.filter(De).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[VA,VA];case"to top":case"bottom":return Vr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[VA,Ki];case"to right":case"left":return Vr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ki,Ki];case"to bottom":case"top":return Vr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ki,VA];case"to left":case"right":return Vr(270)}return 0},Vr=function(A){return Math.PI*A/180},Vi={name:"color",parse:function(A,t){if(t.type===18){var e=_P[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(A,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);return zi(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3),a=t.value.substring(3,4);return zi(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6);return zi(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),a=t.value.substring(6,8);return zi(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(t.type===20){var s=ii[t.value.toUpperCase()];if(typeof s<"u")return s}return ii.TRANSPARENT}},$i=function(A){return(255&A)===0},MA=function(A){var t=255&A,e=255&A>>8,r=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+r+","+e+","+t/255+")":"rgb("+n+","+r+","+e+")"},zi=function(A,t,e,r){return(A<<24|t<<16|e<<8|Math.round(r*255)<<0)>>>0},u5=function(A,t){if(A.type===17)return A.number;if(A.type===16){var e=t===3?1:255;return t===3?A.number/100*e:Math.round(A.number/100*e)}return 0},c5=function(A,t){var e=t.filter(Ds);if(e.length===3){var r=e.map(u5),n=r[0],i=r[1],a=r[2];return zi(n,i,a,1)}if(e.length===4){var s=e.map(u5),n=s[0],i=s[1],a=s[2],o=s[3];return zi(n,i,a,o)}return 0};function Hg(A,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-A)*e*6+A:e<1/2?t:e<2/3?(t-A)*6*(2/3-e)+A:A}var l5=function(A,t){var e=t.filter(Ds),r=e[0],n=e[1],i=e[2],a=e[3],s=(r.type===17?Vr(r.number):il.parse(A,r))/(Math.PI*2),o=CA(n)?n.number/100:0,h=CA(i)?i.number/100:0,u=typeof a<"u"&&CA(a)?$e(a,1):1;if(o===0)return zi(h*255,h*255,h*255,1);var d=h<=.5?h*(o+1):h+o-h*o,f=h*2-d,l=Hg(f,d,s+1/3),p=Hg(f,d,s),w=Hg(f,d,s-1/3);return zi(l*255,p*255,w*255,u)},_P={hsl:l5,hsla:l5,rgb:c5,rgba:c5},Eh=function(A,t){return Vi.parse(A,e5.create(t).parseComponentValue())},ii={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},NP={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(e){if(De(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},PP={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},al=function(A,t){var e=Vi.parse(A,t[0]),r=t[1];return r&&CA(r)?{color:e,stop:r}:{color:e,stop:null}},d5=function(A,t){var e=A[0],r=A[A.length-1];e.stop===null&&(e.stop=VA),r.stop===null&&(r.stop=Ki);for(var n=[],i=0,a=0;a<A.length;a++){var s=A[a].stop;if(s!==null){var o=$e(s,t);o>i?n.push(o):n.push(i),i=o}else n.push(null)}for(var h=null,a=0;a<n.length;a++){var u=n[a];if(u===null)h===null&&(h=a);else if(h!==null){for(var d=a-h,f=n[h-1],l=(u-f)/(d+1),p=1;p<=d;p++)n[h+p-1]=l*p;h=null}}return A.map(function(w,y){var v=w.color;return{color:v,stop:Math.max(Math.min(1,n[y]/t),0)}})},TP=function(A,t,e){var r=t/2,n=e/2,i=$e(A[0],t)-r,a=n-$e(A[1],e);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},MP=function(A,t,e){var r=typeof A=="number"?A:TP(A,t,e),n=Math.abs(t*Math.sin(r))+Math.abs(e*Math.cos(r)),i=t/2,a=e/2,s=n/2,o=Math.sin(r-Math.PI/2)*s,h=Math.cos(r-Math.PI/2)*s;return[n,i-h,i+h,a-o,a+o]},dn=function(A,t){return Math.sqrt(A*A+t*t)},f5=function(A,t,e,r,n){var i=[[0,0],[0,t],[A,0],[A,t]];return i.reduce(function(a,s){var o=s[0],h=s[1],u=dn(e-o,r-h);return(n?u<a.optimumDistance:u>a.optimumDistance)?{optimumCorner:s,optimumDistance:u}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},OP=function(A,t,e,r,n){var i=0,a=0;switch(A.size){case 0:A.shape===0?i=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):A.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(A.shape===0)i=a=Math.min(dn(t,e),dn(t,e-n),dn(t-r,e),dn(t-r,e-n));else if(A.shape===1){var s=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(t),Math.abs(t-r)),o=f5(r,n,t,e,!0),h=o[0],u=o[1];i=dn(h-t,(u-e)/s),a=s*i}break;case 1:A.shape===0?i=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):A.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(A.shape===0)i=a=Math.max(dn(t,e),dn(t,e-n),dn(t-r,e),dn(t-r,e-n));else if(A.shape===1){var s=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(t),Math.abs(t-r)),d=f5(r,n,t,e,!1),h=d[0],u=d[1];i=dn(h-t,(u-e)/s),a=s*i}break}return Array.isArray(A.size)&&(i=$e(A.size[0],r),a=A.size.length===2?$e(A.size[1],n):i),[i,a]},kP=function(A,t){var e=Vr(180),r=[];return Rn(t).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){e=h5(n);return}else if(o5(a)){e=il.parse(A,a);return}}var s=al(A,n);r.push(s)}),{angle:e,stops:r,type:1}},sl=function(A,t){var e=Vr(180),r=[];return Rn(t).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=h5(n);return}else if(o5(a)){e=(il.parse(A,a)+Vr(270))%Vr(360);return}}var s=al(A,n);r.push(s)}),{angle:e,stops:r,type:1}},HP=function(A,t){var e=Vr(180),r=[],n=1,i=0,a=3,s=[];return Rn(t).forEach(function(o,h){var u=o[0];if(h===0){if(De(u)&&u.value==="linear"){n=1;return}else if(De(u)&&u.value==="radial"){n=2;return}}if(u.type===18){if(u.name==="from"){var d=Vi.parse(A,u.values[0]);r.push({stop:VA,color:d})}else if(u.name==="to"){var d=Vi.parse(A,u.values[0]);r.push({stop:Ki,color:d})}else if(u.name==="color-stop"){var f=u.values.filter(Ds);if(f.length===2){var d=Vi.parse(A,f[1]),l=f[0];Hs(l)&&r.push({stop:{type:16,number:l.number*100,flags:l.flags},color:d})}}}}),n===1?{angle:(e+Vr(180))%Vr(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:s,type:n}},g5="closest-side",p5="farthest-side",m5="closest-corner",w5="farthest-corner",B5="circle",v5="ellipse",y5="cover",b5="contain",DP=function(A,t){var e=0,r=3,n=[],i=[];return Rn(t).forEach(function(a,s){var o=!0;if(s===0){var h=!1;o=a.reduce(function(d,f){if(h)if(De(f))switch(f.value){case"center":return i.push(kg),d;case"top":case"left":return i.push(VA),d;case"right":case"bottom":return i.push(Ki),d}else(CA(f)||Gi(f))&&i.push(f);else if(De(f))switch(f.value){case B5:return e=0,!1;case v5:return e=1,!1;case"at":return h=!0,!1;case g5:return r=0,!1;case y5:case p5:return r=1,!1;case b5:case m5:return r=2,!1;case w5:return r=3,!1}else if(Gi(f)||CA(f))return Array.isArray(r)||(r=[]),r.push(f),!1;return d},o)}if(o){var u=al(A,a);n.push(u)}}),{size:r,shape:e,stops:n,position:i,type:2}},ol=function(A,t){var e=0,r=3,n=[],i=[];return Rn(t).forEach(function(a,s){var o=!0;if(s===0?o=a.reduce(function(u,d){if(De(d))switch(d.value){case"center":return i.push(kg),!1;case"top":case"left":return i.push(VA),!1;case"right":case"bottom":return i.push(Ki),!1}else if(CA(d)||Gi(d))return i.push(d),!1;return u},o):s===1&&(o=a.reduce(function(u,d){if(De(d))switch(d.value){case B5:return e=0,!1;case v5:return e=1,!1;case b5:case g5:return r=0,!1;case p5:return r=1,!1;case m5:return r=2,!1;case y5:case w5:return r=3,!1}else if(Gi(d)||CA(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return u},o)),o){var h=al(A,a);n.push(h)}}),{size:r,shape:e,stops:n,position:i,type:2}},RP=function(A){return A.type===1},jP=function(A){return A.type===2},Dg={name:"image",parse:function(A,t){if(t.type===22){var e={url:t.value,type:0};return A.cache.addImage(t.value),e}if(t.type===18){var r=C5[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function GP(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!C5[A.name])}var C5={"linear-gradient":kP,"-moz-linear-gradient":sl,"-ms-linear-gradient":sl,"-o-linear-gradient":sl,"-webkit-linear-gradient":sl,"radial-gradient":DP,"-moz-radial-gradient":ol,"-ms-radial-gradient":ol,"-o-radial-gradient":ol,"-webkit-radial-gradient":ol,"-webkit-gradient":HP},KP={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(r){return Ds(r)&&GP(r)}).map(function(r){return Dg.parse(A,r)})}},VP={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(e){if(De(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$P={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return Rn(t).map(function(e){return e.filter(CA)}).map(r5)}},zP={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return Rn(t).map(function(e){return e.filter(De).map(function(r){return r.value}).join(" ")}).map(WP)}},WP=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Rs;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(Rs||(Rs={}));var qP={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return Rn(t).map(function(e){return e.filter(XP)})}},XP=function(A){return De(A)||CA(A)},hl=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},YP=hl("top"),JP=hl("right"),ZP=hl("bottom"),tT=hl("left"),ul=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return r5(e.filter(CA))}}},eT=ul("top-left"),AT=ul("top-right"),rT=ul("bottom-right"),nT=ul("bottom-left"),cl=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},iT=cl("top"),aT=cl("right"),sT=cl("bottom"),oT=cl("left"),ll=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Fh(e)?e.number:0}}},hT=ll("top"),uT=ll("right"),cT=ll("bottom"),lT=ll("left"),dT={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fT={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},gT={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(De).reduce(function(e,r){return e|pT(r.value)},0)}},pT=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},mT={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wT={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},dl;(function(A){A.NORMAL="normal",A.STRICT="strict"})(dl||(dl={}));var BT={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return dl.STRICT;case"normal":default:return dl.NORMAL}}},vT={name:"line-height",initialValue:"normal",prefix:!1,type:4},x5=function(A,t){return De(A)&&A.value==="normal"?1.2*t:A.type===17?t*A.number:CA(A)?$e(A,t):t},yT={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return t.type===20&&t.value==="none"?null:Dg.parse(A,t)}},bT={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Rg={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},fl=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},CT=fl("top"),xT=fl("right"),FT=fl("bottom"),QT=fl("left"),ET={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(De).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},UT={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},gl=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ST=gl("top"),LT=gl("right"),IT=gl("bottom"),_T=gl("left"),NT={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},PT={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},TT={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&Og(t[0],"none")?[]:Rn(t).map(function(e){for(var r={color:ii.TRANSPARENT,offsetX:VA,offsetY:VA,blur:VA},n=0,i=0;i<e.length;i++){var a=e[i];Gi(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=Vi.parse(A,a)}return r})}},MT={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},OT={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var e=DT[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},kT=function(A){var t=A.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},HT=function(A){var t=A.filter(function(o){return o.type===17}).map(function(o){return o.number}),e=t[0],r=t[1];t[2],t[3];var n=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],t.length===16?[e,r,n,i,a,s]:null},DT={matrix:kT,matrix3d:HT},F5={type:16,number:50,flags:vh},RT=[F5,F5],jT={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var e=t.filter(CA);return e.length!==2?RT:[e[0],e[1]]}},GT={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Uh;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(Uh||(Uh={}));for(var KT={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return Uh.BREAK_ALL;case"keep-all":return Uh.KEEP_ALL;case"normal":default:return Uh.NORMAL}}},VT={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(t.type===20)return{auto:!0,order:0};if(Hs(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Q5={name:"time",parse:function(A,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},$T={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return Hs(t)?t.number:1}},zT={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},WT={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(De).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},qT={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var e=[],r=[];return t.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},XT={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},YT={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(Hs(t))return t.number;if(De(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},JT={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(De).map(function(e){return e.value})}},ZT={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},_A=function(A,t){return(A&t)!==0},tM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},eM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var r=[],n=t.filter(A5),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(a.type===20){var o=s&&Hs(s)?s.number:1;r.push({counter:a.value,increment:o})}}return r}},AM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return[];for(var e=[],r=t.filter(A5),n=0;n<r.length;n++){var i=r[n],a=r[n+1];if(De(i)&&i.value!=="none"){var s=a&&Hs(a)?a.number:0;e.push({counter:i.value,reset:s})}}return e}},rM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(Fh).map(function(e){return Q5.parse(A,e)})}},nM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;var r=[],n=t.filter(LP);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,s=n[i+1].value;r.push({open:a,close:s})}return r}},E5=function(A,t,e){if(!A)return"";var r=A[Math.min(t,A.length-1)];return r?e?r.open:r.close:""},iM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&Og(t[0],"none")?[]:Rn(t).map(function(e){for(var r={color:255,offsetX:VA,offsetY:VA,blur:VA,spread:VA,inset:!1},n=0,i=0;i<e.length;i++){var a=e[i];Og(a,"inset")?r.inset=!0:Gi(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=Vi.parse(A,a)}return r})}},aM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var e=[0,1,2],r=[];return t.filter(De).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},sM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},oM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Fh(t)?t.number:0}},hM=function(){function A(t,e){var r,n;this.animationDuration=Vt(t,rM,e.animationDuration),this.backgroundClip=Vt(t,NP,e.backgroundClip),this.backgroundColor=Vt(t,PP,e.backgroundColor),this.backgroundImage=Vt(t,KP,e.backgroundImage),this.backgroundOrigin=Vt(t,VP,e.backgroundOrigin),this.backgroundPosition=Vt(t,$P,e.backgroundPosition),this.backgroundRepeat=Vt(t,zP,e.backgroundRepeat),this.backgroundSize=Vt(t,qP,e.backgroundSize),this.borderTopColor=Vt(t,YP,e.borderTopColor),this.borderRightColor=Vt(t,JP,e.borderRightColor),this.borderBottomColor=Vt(t,ZP,e.borderBottomColor),this.borderLeftColor=Vt(t,tT,e.borderLeftColor),this.borderTopLeftRadius=Vt(t,eT,e.borderTopLeftRadius),this.borderTopRightRadius=Vt(t,AT,e.borderTopRightRadius),this.borderBottomRightRadius=Vt(t,rT,e.borderBottomRightRadius),this.borderBottomLeftRadius=Vt(t,nT,e.borderBottomLeftRadius),this.borderTopStyle=Vt(t,iT,e.borderTopStyle),this.borderRightStyle=Vt(t,aT,e.borderRightStyle),this.borderBottomStyle=Vt(t,sT,e.borderBottomStyle),this.borderLeftStyle=Vt(t,oT,e.borderLeftStyle),this.borderTopWidth=Vt(t,hT,e.borderTopWidth),this.borderRightWidth=Vt(t,uT,e.borderRightWidth),this.borderBottomWidth=Vt(t,cT,e.borderBottomWidth),this.borderLeftWidth=Vt(t,lT,e.borderLeftWidth),this.boxShadow=Vt(t,iM,e.boxShadow),this.color=Vt(t,dT,e.color),this.direction=Vt(t,fT,e.direction),this.display=Vt(t,gT,e.display),this.float=Vt(t,mT,e.cssFloat),this.fontFamily=Vt(t,qT,e.fontFamily),this.fontSize=Vt(t,XT,e.fontSize),this.fontStyle=Vt(t,ZT,e.fontStyle),this.fontVariant=Vt(t,JT,e.fontVariant),this.fontWeight=Vt(t,YT,e.fontWeight),this.letterSpacing=Vt(t,wT,e.letterSpacing),this.lineBreak=Vt(t,BT,e.lineBreak),this.lineHeight=Vt(t,vT,e.lineHeight),this.listStyleImage=Vt(t,yT,e.listStyleImage),this.listStylePosition=Vt(t,bT,e.listStylePosition),this.listStyleType=Vt(t,Rg,e.listStyleType),this.marginTop=Vt(t,CT,e.marginTop),this.marginRight=Vt(t,xT,e.marginRight),this.marginBottom=Vt(t,FT,e.marginBottom),this.marginLeft=Vt(t,QT,e.marginLeft),this.opacity=Vt(t,$T,e.opacity);var i=Vt(t,ET,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Vt(t,UT,e.overflowWrap),this.paddingTop=Vt(t,ST,e.paddingTop),this.paddingRight=Vt(t,LT,e.paddingRight),this.paddingBottom=Vt(t,IT,e.paddingBottom),this.paddingLeft=Vt(t,_T,e.paddingLeft),this.paintOrder=Vt(t,aM,e.paintOrder),this.position=Vt(t,PT,e.position),this.textAlign=Vt(t,NT,e.textAlign),this.textDecorationColor=Vt(t,zT,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=Vt(t,WT,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=Vt(t,TT,e.textShadow),this.textTransform=Vt(t,MT,e.textTransform),this.transform=Vt(t,OT,e.transform),this.transformOrigin=Vt(t,jT,e.transformOrigin),this.visibility=Vt(t,GT,e.visibility),this.webkitTextStrokeColor=Vt(t,sM,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Vt(t,oM,e.webkitTextStrokeWidth),this.wordBreak=Vt(t,KT,e.wordBreak),this.zIndex=Vt(t,VT,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return $i(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return _A(this.display,4)||_A(this.display,33554432)||_A(this.display,268435456)||_A(this.display,536870912)||_A(this.display,67108864)||_A(this.display,134217728)},A}(),uM=function(){function A(t,e){this.content=Vt(t,tM,e.content),this.quotes=Vt(t,nM,e.quotes)}return A}(),U5=function(){function A(t,e){this.counterIncrement=Vt(t,eM,e.counterIncrement),this.counterReset=Vt(t,AM,e.counterReset)}return A}(),Vt=function(A,t,e){var r=new t5,n=e!==null&&typeof e<"u"?e.toString():t.initialValue;r.write(n);var i=new e5(r.read());switch(t.type){case 2:var a=i.parseComponentValue();return t.parse(A,De(a)?a.value:t.initialValue);case 0:return t.parse(A,i.parseComponentValue());case 1:return t.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return il.parse(A,i.parseComponentValue());case"color":return Vi.parse(A,i.parseComponentValue());case"image":return Dg.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return Gi(s)?s:VA;case"length-percentage":var o=i.parseComponentValue();return CA(o)?o:VA;case"time":return Q5.parse(A,i.parseComponentValue())}break}},cM="data-html2canvas-debug",lM=function(A){var t=A.getAttribute(cM);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},jg=function(A,t){var e=lM(A);return e===1||t===e},jn=function(){function A(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,jg(e,3))debugger;this.styles=new hM(t,window.getComputedStyle(e,null)),e0(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Hc(this.context,e),jg(e,4)&&(this.flags|=16)}return A}(),dM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIA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AU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAg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MAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBR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AAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",S5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sh=typeof Uint8Array>"u"?[]:new Uint8Array(256),pl=0;pl<S5.length;pl++)Sh[S5.charCodeAt(pl)]=pl;for(var fM=function(A){var t=A.length*.75,e=A.length,r,n=0,i,a,s,o;A[A.length-1]==="="&&(t--,A[A.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),u=Array.isArray(h)?h:new Uint8Array(h);for(r=0;r<e;r+=4)i=Sh[A.charCodeAt(r)],a=Sh[A.charCodeAt(r+1)],s=Sh[A.charCodeAt(r+2)],o=Sh[A.charCodeAt(r+3)],u[n++]=i<<2|a>>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|o&63;return h},gM=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},pM=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},Pa=5,Gg=6+5,Kg=2,mM=Gg-Pa,L5=65536>>Pa,wM=1<<Pa,Vg=wM-1,BM=1024>>Pa,vM=L5+BM,yM=vM,bM=32,CM=yM+bM,xM=65536>>Gg,FM=1<<mM,QM=FM-1,I5=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},EM=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},UM=function(A,t){var e=fM(A),r=Array.isArray(e)?pM(e):new Uint32Array(e),n=Array.isArray(e)?gM(e):new Uint16Array(e),i=24,a=I5(n,i/2,r[4]/2),s=r[5]===2?I5(n,(i+r[4])/2):EM(r,Math.ceil((i+r[4])/4));return new SM(r[0],r[1],r[2],r[3],a,s)},SM=function(){function A(t,e,r,n,i,a){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return A.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>Pa],e=(e<<Kg)+(t&Vg),this.data[e];if(t<=65535)return e=this.index[L5+(t-55296>>Pa)],e=(e<<Kg)+(t&Vg),this.data[e];if(t<this.highStart)return e=CM-xM+(t>>Gg),e=this.index[e],e+=t>>Pa&QM,e=this.index[e],e=(e<<Kg)+(t&Vg),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),_5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LM=typeof Uint8Array>"u"?[]:new Uint8Array(256),ml=0;ml<_5.length;ml++)LM[_5.charCodeAt(ml)]=ml;var IM=1,$g=2,zg=3,N5=4,P5=5,_M=7,T5=8,Wg=9,qg=10,M5=11,O5=12,k5=13,H5=14,Xg=15,NM=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);(i&64512)===56320?t.push(((n&1023)<<10)+(i&1023)+65536):(t.push(n),e--)}else t.push(n)}return t},PM=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var a=A[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},TM=UM(dM),Ta="×",D5="÷",MM=function(A){return TM.get(A)},OM=function(A,t,e){var r=e-2,n=t[r],i=t[e-1],a=t[e];if(i===$g&&a===zg)return Ta;if(i===$g||i===zg||i===N5||a===$g||a===zg||a===N5)return D5;if(i===T5&&[T5,Wg,M5,O5].indexOf(a)!==-1||(i===M5||i===Wg)&&(a===Wg||a===qg)||(i===O5||i===qg)&&a===qg||a===k5||a===P5||a===_M||i===IM)return Ta;if(i===k5&&a===H5){for(;n===P5;)n=t[--r];if(n===H5)return Ta}if(i===Xg&&a===Xg){for(var s=0;n===Xg;)s++,n=t[--r];if(s%2===0)return Ta}return D5},kM=function(A){var t=NM(A),e=t.length,r=0,n=0,i=t.map(MM);return{next:function(){if(r>=e)return{done:!0,value:null};for(var a=Ta;r<e&&(a=OM(t,i,++r))===Ta;);if(a!==Ta||r===e){var s=PM.apply(null,t.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},HM=function(A){for(var t=kM(A),e=[],r;!(r=t.next()).done;)r.value&&e.push(r.value.slice());return e},DM=function(A){var t=123;if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=t+"px",r.style.display="block",A.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===t)return!0}}return!1},RM=function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var e=A.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=t.firstChild,n=Dc(r.data).map(function(o){return fA(o)}),i=0,a={},s=n.every(function(o,h){e.setStart(r,i),e.setEnd(r,i+o.length);var u=e.getBoundingClientRect();i+=o.length;var d=u.x>a.x||u.y>a.y;return a=u,h===0?!0:d});return A.body.removeChild(t),s},jM=function(){return typeof new Image().crossOrigin<"u"},GM=function(){return typeof new XMLHttpRequest().responseType=="string"},KM=function(A){var t=new Image,e=A.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},R5=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},VM=function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=t.toDataURL();n.src=i;var a=Yg(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),j5(a).then(function(s){r.drawImage(s,0,0);var o=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var h=A.createElement("div");return h.style.backgroundImage="url("+i+")",h.style.height=e+"px",R5(o)?j5(Yg(e,e,0,0,h)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),R5(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Yg=function(A,t,e,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",A.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",e.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(n),a},j5=function(A){return new Promise(function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},$A={get SUPPORT_RANGE_BOUNDS(){var A=DM(document);return Object.defineProperty($A,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=$A.SUPPORT_RANGE_BOUNDS&&RM(document);return Object.defineProperty($A,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=KM(document);return Object.defineProperty($A,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?VM(document):Promise.resolve(!1);return Object.defineProperty($A,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=jM();return Object.defineProperty($A,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=GM();return Object.defineProperty($A,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty($A,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty($A,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Lh=function(){function A(t,e){this.text=t,this.bounds=e}return A}(),$M=function(A,t,e,r){var n=qM(t,e),i=[],a=0;return n.forEach(function(s){if(e.textDecorationLine.length||s.trim().length>0)if($A.SUPPORT_RANGE_BOUNDS){var o=G5(r,a,s.length).getClientRects();if(o.length>1){var h=Jg(s),u=0;h.forEach(function(f){i.push(new Lh(f,ri.fromDOMRectList(A,G5(r,u+a,f.length).getClientRects()))),u+=f.length})}else i.push(new Lh(s,ri.fromDOMRectList(A,o)))}else{var d=r.splitText(s.length);i.push(new Lh(s,zM(A,r))),r=d}else $A.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));a+=s.length}),i},zM=function(A,t){var e=t.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=Hc(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return ri.EMPTY},G5=function(A,t,e){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,t),n.setEnd(A,t+e),n},Jg=function(A){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map(function(e){return e.segment})}return HM(A)},WM=function(A,t){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return YM(A,t)},qM=function(A,t){return t.letterSpacing!==0?Jg(A):WM(A,t)},XM=[32,160,4961,65792,65793,4153,4241],YM=function(A,t){for(var e=x8(A,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),s=Dc(a),o="";s.forEach(function(h){XM.indexOf(h)===-1?o+=fA(h):(o.length&&r.push(o),r.push(fA(h)),o="")}),o.length&&r.push(o)}};!(n=e.next()).done;)i();return r},JM=function(){function A(t,e,r){this.text=ZM(e.data,r.textTransform),this.textBounds=$M(t,this.text,r,e)}return A}(),ZM=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(tO,eO);case 2:return A.toUpperCase();default:return A}},tO=/(^|\s|:|-|\(|\))([a-z])/g,eO=function(A,t,e){return A.length>0?t+e.toUpperCase():A},K5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return t}(jn),V5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return t}(jn),$5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this,i=new XMLSerializer,a=Hc(e,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t}(jn),z5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.value=r.value,n}return t}(jn),Zg=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return t}(jn),AO=[{type:15,flags:0,unit:"px",number:3}],rO=[{type:16,flags:0,number:50}],nO=function(A){return A.width>A.height?new ri(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new ri(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},iO=function(A){var t=A.type===aO?new Array(A.value.length+1).join("•"):A.value;return t.length===0?A.placeholder||"":t},wl="checkbox",Bl="radio",aO="password",W5=707406591,t0=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=iO(r),(n.type===wl||n.type===Bl)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=nO(n.bounds)),n.type){case wl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=AO;break;case Bl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=rO;break}return n}return t}(jn),q5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return t}(jn),X5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.value=r.value,n}return t}(jn),Y5=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=Z5(e,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Eh(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):ii.TRANSPARENT,a=r.contentWindow.document.body?Eh(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):ii.TRANSPARENT;n.backgroundColor=$i(i)?$i(a)?n.styles.backgroundColor:a:i}}catch{}return n}return t}(jn),sO=["OL","UL","MENU"],vl=function(A,t,e,r){for(var n=t.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,ty(n)&&n.data.trim().length>0)e.textNodes.push(new JM(A,n,e.styles));else if(js(n))if(ay(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return vl(A,s,e,r)});else{var a=J5(A,n);a.styles.isVisible()&&(oO(n,a,r)?a.flags|=4:hO(a.styles)&&(a.flags|=2),sO.indexOf(n.tagName)!==-1&&(a.flags|=8),e.elements.push(a),n.slot,n.shadowRoot?vl(A,n.shadowRoot,a,r):!bl(n)&&!ey(n)&&!Cl(n)&&vl(A,n,a,r))}},J5=function(A,t){return r0(t)?new K5(A,t):Ay(t)?new V5(A,t):ey(t)?new $5(A,t):uO(t)?new z5(A,t):cO(t)?new Zg(A,t):lO(t)?new t0(A,t):Cl(t)?new q5(A,t):bl(t)?new X5(A,t):ny(t)?new Y5(A,t):new jn(A,t)},Z5=function(A,t){var e=J5(A,t);return e.flags|=4,vl(A,t,e,e),e},oO=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||A0(A)&&e.styles.isTransparent()},hO=function(A){return A.isPositioned()||A.isFloating()},ty=function(A){return A.nodeType===Node.TEXT_NODE},js=function(A){return A.nodeType===Node.ELEMENT_NODE},e0=function(A){return js(A)&&typeof A.style<"u"&&!yl(A)},yl=function(A){return typeof A.className=="object"},uO=function(A){return A.tagName==="LI"},cO=function(A){return A.tagName==="OL"},lO=function(A){return A.tagName==="INPUT"},dO=function(A){return A.tagName==="HTML"},ey=function(A){return A.tagName==="svg"},A0=function(A){return A.tagName==="BODY"},Ay=function(A){return A.tagName==="CANVAS"},ry=function(A){return A.tagName==="VIDEO"},r0=function(A){return A.tagName==="IMG"},ny=function(A){return A.tagName==="IFRAME"},iy=function(A){return A.tagName==="STYLE"},fO=function(A){return A.tagName==="SCRIPT"},bl=function(A){return A.tagName==="TEXTAREA"},Cl=function(A){return A.tagName==="SELECT"},ay=function(A){return A.tagName==="SLOT"},sy=function(A){return A.tagName.indexOf("-")>0},gO=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},A.prototype.pop=function(t){var e=this;t.forEach(function(r){return e.counters[r].pop()})},A.prototype.parse=function(t){var e=this,r=t.counterIncrement,n=t.counterReset,i=!0;r!==null&&r.forEach(function(s){var o=e.counters[s.counter];o&&s.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});var a=[];return i&&n.forEach(function(s){var o=e.counters[s.counter];a.push(s.counter),o||(o=e.counters[s.counter]=[]),o.push(s.reset)}),a},A}(),oy={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},hy={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},pO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},mO={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Gs=function(A,t,e,r,n,i){return A<t||A>e?_h(A,n,i.length>0):r.integers.reduce(function(a,s,o){for(;A>=s;)A-=s,a+=r.values[o];return a},"")+i},uy=function(A,t,e,r){var n="";do e||A--,n=r(A)+n,A/=t;while(A*t>=t);return n},gA=function(A,t,e,r,n){var i=e-t+1;return(A<0?"-":"")+(uy(Math.abs(A),i,r,function(a){return fA(Math.floor(a%i)+t)})+n)},Ma=function(A,t,e){e===void 0&&(e=". ");var r=t.length;return uy(Math.abs(A),r,!1,function(n){return t[Math.floor(n%r)]})+e},Ks=1<<0,Wi=1<<1,qi=1<<2,Ih=1<<3,ai=function(A,t,e,r,n,i){if(A<-9999||A>9999)return _h(A,4,n.length>0);var a=Math.abs(A),s=n;if(a===0)return t[0]+s;for(var o=0;a>0&&o<=4;o++){var h=a%10;h===0&&_A(i,Ks)&&s!==""?s=t[h]+s:h>1||h===1&&o===0||h===1&&o===1&&_A(i,Wi)||h===1&&o===1&&_A(i,qi)&&A>100||h===1&&o>1&&_A(i,Ih)?s=t[h]+(o>0?e[o-1]:"")+s:h===1&&o>0&&(s=e[o-1]+s),a=Math.floor(a/10)}return(A<0?r:"")+s},cy="十百千萬",ly="拾佰仟萬",dy="マイナス",n0="마이너스",_h=function(A,t,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",a=e?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=gA(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Ma(A,"〇一二三四五六七八九",n);case 6:return Gs(A,1,3999,oy,3,r).toLowerCase();case 7:return Gs(A,1,3999,oy,3,r);case 8:return gA(A,945,969,!1,r);case 9:return gA(A,97,122,!1,r);case 10:return gA(A,65,90,!1,r);case 11:return gA(A,1632,1641,!0,r);case 12:case 49:return Gs(A,1,9999,hy,3,r);case 35:return Gs(A,1,9999,hy,3,r).toLowerCase();case 13:return gA(A,2534,2543,!0,r);case 14:case 30:return gA(A,6112,6121,!0,r);case 15:return Ma(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ma(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ai(A,"零一二三四五六七八九",cy,"負",n,Wi|qi|Ih);case 47:return ai(A,"零壹貳參肆伍陸柒捌玖",ly,"負",n,Ks|Wi|qi|Ih);case 42:return ai(A,"零一二三四五六七八九",cy,"负",n,Wi|qi|Ih);case 41:return ai(A,"零壹贰叁肆伍陆柒捌玖",ly,"负",n,Ks|Wi|qi|Ih);case 26:return ai(A,"〇一二三四五六七八九","十百千万",dy,n,0);case 25:return ai(A,"零壱弐参四伍六七八九","拾百千万",dy,n,Ks|Wi|qi);case 31:return ai(A,"영일이삼사오육칠팔구","십백천만",n0,i,Ks|Wi|qi);case 33:return ai(A,"零一二三四五六七八九","十百千萬",n0,i,0);case 32:return ai(A,"零壹貳參四五六七八九","拾百千",n0,i,Ks|Wi|qi);case 18:return gA(A,2406,2415,!0,r);case 20:return Gs(A,1,19999,mO,3,r);case 21:return gA(A,2790,2799,!0,r);case 22:return gA(A,2662,2671,!0,r);case 22:return Gs(A,1,10999,pO,3,r);case 23:return Ma(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ma(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return gA(A,3302,3311,!0,r);case 28:return Ma(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ma(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return gA(A,3792,3801,!0,r);case 37:return gA(A,6160,6169,!0,r);case 38:return gA(A,4160,4169,!0,r);case 39:return gA(A,2918,2927,!0,r);case 40:return gA(A,1776,1785,!0,r);case 43:return gA(A,3046,3055,!0,r);case 44:return gA(A,3174,3183,!0,r);case 45:return gA(A,3664,3673,!0,r);case 46:return gA(A,3872,3881,!0,r);case 3:default:return gA(A,48,57,!0,r)}},fy="data-html2canvas-ignore",gy=function(){function A(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new gO,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(t,e){var r=this,n=wO(t,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=n.contentWindow,o=s.document,h=yO(n).then(function(){return ur(r,void 0,void 0,function(){var u,d;return er(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(FO),s&&(s.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),u=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,vO(o)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(o,d)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(CO(document.doctype)+"<html></html>"),xO(this.referenceElement.ownerDocument,i,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),h},A.prototype.createElementClone=function(t){if(jg(t,2))debugger;if(Ay(t))return this.createCanvasClone(t);if(ry(t))return this.createVideoClone(t);if(iy(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return r0(e)&&(r0(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),sy(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return i0(t.style,e),e},A.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=t.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},A.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var i=t.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var s=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(s){var o=s.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},A.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},A.prototype.appendChildNode=function(t,e,r){(!js(e)||!fO(e)&&!e.hasAttribute(fy)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!js(e)||!iy(e))&&t.appendChild(this.cloneNode(e,r))},A.prototype.cloneChildNodes=function(t,e,r){for(var n=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(js(i)&&ay(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return n.appendChildNode(e,s,r)})}else this.appendChildNode(e,i,r)},A.prototype.cloneNode=function(t,e){if(ty(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&js(t)&&(e0(t)||yl(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var i=r.getComputedStyle(t),a=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&e0(n)&&(this.clonedReferenceElement=n),A0(n)&&UO(n);var o=this.counters.parse(new U5(this.context,i)),h=this.resolvePseudoContent(t,n,a,Nh.BEFORE);sy(t)&&(e=!0),ry(t)||this.cloneChildNodes(t,n,e),h&&n.insertBefore(h,n.firstChild);var u=this.resolvePseudoContent(t,n,s,Nh.AFTER);return u&&n.appendChild(u),this.counters.pop(o),(i&&(this.options.copyStyles||yl(t))&&!ny(t)||e)&&i0(i,n),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(bl(t)||Cl(t))&&(bl(n)||Cl(n))&&(n.value=t.value),n}return t.cloneNode(!1)},A.prototype.resolvePseudoContent=function(t,e,r,n){var i=this;if(r){var a=r.content,s=e.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new U5(this.context,r));var o=new uM(this.context,r),h=s.createElement("html2canvaspseudoelement");i0(r,h),o.content.forEach(function(d){if(d.type===0)h.appendChild(s.createTextNode(d.value));else if(d.type===22){var f=s.createElement("img");f.src=d.value,f.style.opacity="1",h.appendChild(f)}else if(d.type===18){if(d.name==="attr"){var l=d.values.filter(De);l.length&&h.appendChild(s.createTextNode(t.getAttribute(l[0].value)||""))}else if(d.name==="counter"){var p=d.values.filter(Ds),w=p[0],y=p[1];if(w&&De(w)){var v=i.counters.getCounterValue(w.value),C=y&&De(y)?Rg.parse(i.context,y.value):3;h.appendChild(s.createTextNode(_h(v,C,!1)))}}else if(d.name==="counters"){var x=d.values.filter(Ds),w=x[0],L=x[1],y=x[2];if(w&&De(w)){var k=i.counters.getCounterValues(w.value),M=y&&De(y)?Rg.parse(i.context,y.value):3,H=L&&L.type===0?L.value:"",N=k.map(function(U){return _h(U,M,!1)}).join(H);h.appendChild(s.createTextNode(N))}}}else if(d.type===20)switch(d.value){case"open-quote":h.appendChild(s.createTextNode(E5(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":h.appendChild(s.createTextNode(E5(o.quotes,--i.quoteDepth,!1)));break;default:h.appendChild(s.createTextNode(d.value))}}),h.className=a0+" "+s0;var u=n===Nh.BEFORE?" "+a0:" "+s0;return yl(e)?e.className.baseValue+=u:e.className+=u,h}}},A.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},A}(),Nh;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(Nh||(Nh={}));var wO=function(A,t){var e=A.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(fy,"true"),A.body.appendChild(e),e},BO=function(A){return new Promise(function(t){if(A.complete){t();return}if(!A.src){t();return}A.onload=t,A.onerror=t})},vO=function(A){return Promise.all([].slice.call(A.images,0).map(BO))},yO=function(A){return new Promise(function(t,e){var r=A.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),t(A))},50)}})},bO=["all","d","content"],i0=function(A,t){for(var e=A.length-1;e>=0;e--){var r=A.item(e);bO.indexOf(r)===-1&&t.style.setProperty(r,A.getPropertyValue(r))}return t},CO=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},xO=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},FO=function(A){var t=A[0],e=A[1],r=A[2];t.scrollLeft=e,t.scrollTop=r},QO=":before",EO=":after",a0="___html2canvas___pseudoelement_before",s0="___html2canvas___pseudoelement_after",py=`{
content: "" !important;
display: none !important;
}`,UO=function(A){SO(A,"."+a0+QO+py+`
.`+s0+EO+py)},SO=function(A,t){var e=A.ownerDocument;if(e){var r=e.createElement("style");r.textContent=t,A.appendChild(r)}},my=function(){function A(){}return A.getOrigin=function(t){var e=A._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A}(),LO=function(){function A(t,e){this.context=t,this._options=e,this._cache={}}return A.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(h0(t)||PO(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},A.prototype.match=function(t){return this._cache[t]},A.prototype.loadImage=function(t){return ur(this,void 0,void 0,function(){var e,r,n,i,a=this;return er(this,function(s){switch(s.label){case 0:return e=my.isSameOrigin(t),r=!o0(t)&&this._options.useCORS===!0&&$A.SUPPORT_CORS_IMAGES&&!e,n=!o0(t)&&!e&&!h0(t)&&typeof this._options.proxy=="string"&&$A.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!o0(t)&&!h0(t)&&!n&&!r?[2]:(i=t,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(o,h){var u=new Image;u.onload=function(){return o(u)},u.onerror=h,(TO(i)||r)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return o(u)},500),a._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(t){return typeof this._cache[t]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(t){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise(function(i,a){var s=$A.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")i(o.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(f){return a(f)},!1),d.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var h=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+h+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var u=e._options.imageTimeout;o.timeout=u,o.ontimeout=function(){return a("Timed out ("+u+"ms) proxying "+n)}}o.send()})},A}(),IO=/^data:image\/svg\+xml/i,_O=/^data:image\/.*;base64,/i,NO=/^data:image\/.*/i,PO=function(A){return $A.SUPPORT_SVG_DRAWING||!MO(A)},o0=function(A){return NO.test(A)},TO=function(A){return _O.test(A)},h0=function(A){return A.substr(0,4)==="blob"},MO=function(A){return A.substr(-3).toLowerCase()==="svg"||IO.test(A)},jt=function(){function A(t,e){this.type=0,this.x=t,this.y=e}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A}(),Vs=function(A,t,e){return new jt(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},xl=function(){function A(t,e,r,n){this.type=1,this.start=t,this.startControl=e,this.endControl=r,this.end=n}return A.prototype.subdivide=function(t,e){var r=Vs(this.start,this.startControl,t),n=Vs(this.startControl,this.endControl,t),i=Vs(this.endControl,this.end,t),a=Vs(r,n,t),s=Vs(n,i,t),o=Vs(a,s,t);return e?new A(this.start,r,a,o):new A(o,s,i,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),$r=function(A){return A.type===1},OO=function(){function A(t){var e=t.styles,r=t.bounds,n=Qh(e.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],s=Qh(e.borderTopRightRadius,r.width,r.height),o=s[0],h=s[1],u=Qh(e.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],l=Qh(e.borderBottomLeftRadius,r.width,r.height),p=l[0],w=l[1],y=[];y.push((i+o)/r.width),y.push((p+d)/r.width),y.push((a+w)/r.height),y.push((h+f)/r.height);var v=Math.max.apply(Math,y);v>1&&(i/=v,a/=v,o/=v,h/=v,d/=v,f/=v,p/=v,w/=v);var C=r.width-o,x=r.height-f,L=r.width-d,k=r.height-w,M=e.borderTopWidth,H=e.borderRightWidth,N=e.borderBottomWidth,V=e.borderLeftWidth,$=$e(e.paddingTop,t.bounds.width),U=$e(e.paddingRight,t.bounds.width),S=$e(e.paddingBottom,t.bounds.width),O=$e(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Ze(r.left+V/3,r.top+M/3,i-V/3,a-M/3,Pe.TOP_LEFT):new jt(r.left+V/3,r.top+M/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Ze(r.left+C,r.top+M/3,o-H/3,h-M/3,Pe.TOP_RIGHT):new jt(r.left+r.width-H/3,r.top+M/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?Ze(r.left+L,r.top+x,d-H/3,f-N/3,Pe.BOTTOM_RIGHT):new jt(r.left+r.width-H/3,r.top+r.height-N/3),this.bottomLeftBorderDoubleOuterBox=p>0||w>0?Ze(r.left+V/3,r.top+k,p-V/3,w-N/3,Pe.BOTTOM_LEFT):new jt(r.left+V/3,r.top+r.height-N/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Ze(r.left+V*2/3,r.top+M*2/3,i-V*2/3,a-M*2/3,Pe.TOP_LEFT):new jt(r.left+V*2/3,r.top+M*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Ze(r.left+C,r.top+M*2/3,o-H*2/3,h-M*2/3,Pe.TOP_RIGHT):new jt(r.left+r.width-H*2/3,r.top+M*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?Ze(r.left+L,r.top+x,d-H*2/3,f-N*2/3,Pe.BOTTOM_RIGHT):new jt(r.left+r.width-H*2/3,r.top+r.height-N*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||w>0?Ze(r.left+V*2/3,r.top+k,p-V*2/3,w-N*2/3,Pe.BOTTOM_LEFT):new jt(r.left+V*2/3,r.top+r.height-N*2/3),this.topLeftBorderStroke=i>0||a>0?Ze(r.left+V/2,r.top+M/2,i-V/2,a-M/2,Pe.TOP_LEFT):new jt(r.left+V/2,r.top+M/2),this.topRightBorderStroke=i>0||a>0?Ze(r.left+C,r.top+M/2,o-H/2,h-M/2,Pe.TOP_RIGHT):new jt(r.left+r.width-H/2,r.top+M/2),this.bottomRightBorderStroke=d>0||f>0?Ze(r.left+L,r.top+x,d-H/2,f-N/2,Pe.BOTTOM_RIGHT):new jt(r.left+r.width-H/2,r.top+r.height-N/2),this.bottomLeftBorderStroke=p>0||w>0?Ze(r.left+V/2,r.top+k,p-V/2,w-N/2,Pe.BOTTOM_LEFT):new jt(r.left+V/2,r.top+r.height-N/2),this.topLeftBorderBox=i>0||a>0?Ze(r.left,r.top,i,a,Pe.TOP_LEFT):new jt(r.left,r.top),this.topRightBorderBox=o>0||h>0?Ze(r.left+C,r.top,o,h,Pe.TOP_RIGHT):new jt(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||f>0?Ze(r.left+L,r.top+x,d,f,Pe.BOTTOM_RIGHT):new jt(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=p>0||w>0?Ze(r.left,r.top+k,p,w,Pe.BOTTOM_LEFT):new jt(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?Ze(r.left+V,r.top+M,Math.max(0,i-V),Math.max(0,a-M),Pe.TOP_LEFT):new jt(r.left+V,r.top+M),this.topRightPaddingBox=o>0||h>0?Ze(r.left+Math.min(C,r.width-H),r.top+M,C>r.width+H?0:Math.max(0,o-H),Math.max(0,h-M),Pe.TOP_RIGHT):new jt(r.left+r.width-H,r.top+M),this.bottomRightPaddingBox=d>0||f>0?Ze(r.left+Math.min(L,r.width-V),r.top+Math.min(x,r.height-N),Math.max(0,d-H),Math.max(0,f-N),Pe.BOTTOM_RIGHT):new jt(r.left+r.width-H,r.top+r.height-N),this.bottomLeftPaddingBox=p>0||w>0?Ze(r.left+V,r.top+Math.min(k,r.height-N),Math.max(0,p-V),Math.max(0,w-N),Pe.BOTTOM_LEFT):new jt(r.left+V,r.top+r.height-N),this.topLeftContentBox=i>0||a>0?Ze(r.left+V+O,r.top+M+$,Math.max(0,i-(V+O)),Math.max(0,a-(M+$)),Pe.TOP_LEFT):new jt(r.left+V+O,r.top+M+$),this.topRightContentBox=o>0||h>0?Ze(r.left+Math.min(C,r.width+V+O),r.top+M+$,C>r.width+V+O?0:o-V+O,h-(M+$),Pe.TOP_RIGHT):new jt(r.left+r.width-(H+U),r.top+M+$),this.bottomRightContentBox=d>0||f>0?Ze(r.left+Math.min(L,r.width-(V+O)),r.top+Math.min(x,r.height+M+$),Math.max(0,d-(H+U)),f-(N+S),Pe.BOTTOM_RIGHT):new jt(r.left+r.width-(H+U),r.top+r.height-(N+S)),this.bottomLeftContentBox=p>0||w>0?Ze(r.left+V+O,r.top+k,Math.max(0,p-(V+O)),w-(N+S),Pe.BOTTOM_LEFT):new jt(r.left+V+O,r.top+r.height-(N+S))}return A}(),Pe;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Pe||(Pe={}));var Ze=function(A,t,e,r,n){var i=4*((Math.sqrt(2)-1)/3),a=e*i,s=r*i,o=A+e,h=t+r;switch(n){case Pe.TOP_LEFT:return new xl(new jt(A,h),new jt(A,h-s),new jt(o-a,t),new jt(o,t));case Pe.TOP_RIGHT:return new xl(new jt(A,t),new jt(A+a,t),new jt(o,h-s),new jt(o,h));case Pe.BOTTOM_RIGHT:return new xl(new jt(o,t),new jt(o,t+s),new jt(A+a,h),new jt(A,h));case Pe.BOTTOM_LEFT:default:return new xl(new jt(o,h),new jt(o-a,h),new jt(A,t+s),new jt(A,t))}},Fl=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},kO=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ql=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},HO=function(){function A(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return A}(),El=function(){function A(t,e){this.path=t,this.target=e,this.type=1}return A}(),DO=function(){function A(t){this.opacity=t,this.type=2,this.target=6}return A}(),RO=function(A){return A.type===0},wy=function(A){return A.type===1},jO=function(A){return A.type===2},By=function(A,t){return A.length===t.length?A.some(function(e,r){return e===t[r]}):!1},GO=function(A,t,e,r,n){return A.map(function(i,a){switch(a){case 0:return i.add(t,e);case 1:return i.add(t+r,e);case 2:return i.add(t+r,e+n);case 3:return i.add(t,e+n)}return i})},vy=function(){function A(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),yy=function(){function A(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new OO(this.container),this.container.styles.opacity<1&&this.effects.push(new DO(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new HO(r,n,i))}if(this.container.styles.overflowX!==0){var a=Fl(this.curves),s=Ql(this.curves);By(a,s)?this.effects.push(new El(a,6)):(this.effects.push(new El(a,2)),this.effects.push(new El(s,4)))}}return A.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(o){return!wy(o)});if(e||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=Fl(r.curves),s=Ql(r.curves);By(a,s)||n.unshift(new El(s,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(o){return _A(o.target,t)})},A}(),u0=function(A,t,e,r){A.container.elements.forEach(function(n){var i=_A(n.flags,4),a=_A(n.flags,2),s=new yy(n,A);_A(n.styles.display,2048)&&r.push(s);var o=_A(n.flags,8)?[]:r;if(i||a){var h=i||n.styles.isPositioned()?e:t,u=new vy(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var f=0;h.negativeZIndex.some(function(p,w){return d>p.element.container.styles.zIndex.order?(f=w,!1):f>0}),h.negativeZIndex.splice(f,0,u)}else if(d>0){var l=0;h.positiveZIndex.some(function(p,w){return d>=p.element.container.styles.zIndex.order?(l=w+1,!1):l>0}),h.positiveZIndex.splice(l,0,u)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?h.nonPositionedFloats.push(u):h.nonPositionedInlineLevel.push(u);u0(s,u,i?u:e,o)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),u0(s,t,e,o);_A(n.flags,8)&&by(n,o)})},by=function(A,t){for(var e=A instanceof Zg?A.start:1,r=A instanceof Zg?A.reversed:!1,n=0;n<t.length;n++){var i=t[n];i.container instanceof z5&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=_h(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},KO=function(A){var t=new yy(A,null),e=new vy(t),r=[];return u0(t,e,e,r),by(t.container,r),e},Cy=function(A,t){switch(t){case 0:return zr(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return zr(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return zr(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return zr(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},VO=function(A,t){switch(t){case 0:return zr(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return zr(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return zr(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return zr(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},$O=function(A,t){switch(t){case 0:return zr(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return zr(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return zr(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return zr(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},zO=function(A,t){switch(t){case 0:return Ul(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ul(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ul(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return Ul(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Ul=function(A,t){var e=[];return $r(A)?e.push(A.subdivide(.5,!1)):e.push(A),$r(t)?e.push(t.subdivide(.5,!0)):e.push(t),e},zr=function(A,t,e,r){var n=[];return $r(A)?n.push(A.subdivide(.5,!1)):n.push(A),$r(e)?n.push(e.subdivide(.5,!0)):n.push(e),$r(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),$r(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},xy=function(A){var t=A.bounds,e=A.styles;return t.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},Sl=function(A){var t=A.styles,e=A.bounds,r=$e(t.paddingLeft,e.width),n=$e(t.paddingRight,e.width),i=$e(t.paddingTop,e.width),a=$e(t.paddingBottom,e.width);return e.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+i+a))},WO=function(A,t){return A===0?t.bounds:A===2?Sl(t):xy(t)},qO=function(A,t){return A===0?t.bounds:A===2?Sl(t):xy(t)},c0=function(A,t,e){var r=WO(zs(A.styles.backgroundOrigin,t),A),n=qO(zs(A.styles.backgroundClip,t),A),i=XO(zs(A.styles.backgroundSize,t),e,r),a=i[0],s=i[1],o=Qh(zs(A.styles.backgroundPosition,t),r.width-a,r.height-s),h=YO(zs(A.styles.backgroundRepeat,t),o,i,r,n),u=Math.round(r.left+o[0]),d=Math.round(r.top+o[1]);return[h,u,d,a,s]},$s=function(A){return De(A)&&A.value===Rs.AUTO},Ll=function(A){return typeof A=="number"},XO=function(A,t,e){var r=t[0],n=t[1],i=t[2],a=A[0],s=A[1];if(!a)return[0,0];if(CA(a)&&s&&CA(s))return[$e(a,e.width),$e(s,e.height)];var o=Ll(i);if(De(a)&&(a.value===Rs.CONTAIN||a.value===Rs.COVER)){if(Ll(i)){var h=e.width/e.height;return h<i!=(a.value===Rs.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var u=Ll(r),d=Ll(n),f=u||d;if($s(a)&&(!s||$s(s))){if(u&&d)return[r,n];if(!o&&!f)return[e.width,e.height];if(f&&o){var l=u?r:n*i,p=d?n:r/i;return[l,p]}var w=u?r:e.width,y=d?n:e.height;return[w,y]}if(o){var v=0,C=0;return CA(a)?v=$e(a,e.width):CA(s)&&(C=$e(s,e.height)),$s(a)?v=C*i:(!s||$s(s))&&(C=v/i),[v,C]}var x=null,L=null;if(CA(a)?x=$e(a,e.width):s&&CA(s)&&(L=$e(s,e.height)),x!==null&&(!s||$s(s))&&(L=u&&d?x/r*n:e.height),L!==null&&$s(a)&&(x=u&&d?L/n*r:e.width),x!==null&&L!==null)return[x,L];throw new Error("Unable to calculate background-size for element")},zs=function(A,t){var e=A[t];return typeof e>"u"?A[0]:e},YO=function(A,t,e,r,n){var i=t[0],a=t[1],s=e[0],o=e[1];switch(A){case 2:return[new jt(Math.round(r.left),Math.round(r.top+a)),new jt(Math.round(r.left+r.width),Math.round(r.top+a)),new jt(Math.round(r.left+r.width),Math.round(o+r.top+a)),new jt(Math.round(r.left),Math.round(o+r.top+a))];case 3:return[new jt(Math.round(r.left+i),Math.round(r.top)),new jt(Math.round(r.left+i+s),Math.round(r.top)),new jt(Math.round(r.left+i+s),Math.round(r.height+r.top)),new jt(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new jt(Math.round(r.left+i),Math.round(r.top+a)),new jt(Math.round(r.left+i+s),Math.round(r.top+a)),new jt(Math.round(r.left+i+s),Math.round(r.top+a+o)),new jt(Math.round(r.left+i),Math.round(r.top+a+o))];default:return[new jt(Math.round(n.left),Math.round(n.top)),new jt(Math.round(n.left+n.width),Math.round(n.top)),new jt(Math.round(n.left+n.width),Math.round(n.height+n.top)),new jt(Math.round(n.left),Math.round(n.height+n.top))]}},JO="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Fy="Hidden Text",ZO=function(){function A(t){this._data={},this._document=t}return A.prototype.parseMetrics=function(t,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=JO,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Fy)),r.appendChild(i),r.appendChild(n);var s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Fy)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:s,middle:o}},A.prototype.getMetrics=function(t,e){var r=t+" "+e;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]},A}(),Qy=function(){function A(t,e){this.context=t,this.options=e}return A}(),t7=1e4,e7=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new ZO(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return t.prototype.applyEffects=function(e){for(var r=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return r.applyEffect(n)})},t.prototype.applyEffect=function(e){this.ctx.save(),jO(e)&&(this.ctx.globalAlpha=e.opacity),RO(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),wy(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return ur(this,void 0,void 0,function(){var r;return er(this,function(n){switch(n.label){case 0:return r=e.element.container.styles,r.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return ur(this,void 0,void 0,function(){return er(this,function(r){switch(r.label){case 0:if(_A(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,r,n){var i=this;if(r===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var a=Jg(e.text);a.reduce(function(s,o){return i.ctx.fillText(o,s,e.bounds.top+n),s+i.ctx.measureText(o).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var r=e.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=a7(e.fontFamily).join(", "),i=Fh(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,r,e.fontWeight,i,n].join(" "),n,i]},t.prototype.renderTextNode=function(e,r){return ur(this,void 0,void 0,function(){var n,i,a,s,o,h,u,d,f=this;return er(this,function(l){return n=this.createFontStyle(r),i=n[0],a=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,s),h=o.baseline,u=o.middle,d=r.paintOrder,e.textBounds.forEach(function(p){d.forEach(function(w){switch(w){case 0:f.ctx.fillStyle=MA(r.color),f.renderTextWithLetterSpacing(p,r.letterSpacing,h);var y=r.textShadow;y.length&&p.text.trim().length&&(y.slice(0).reverse().forEach(function(v){f.ctx.shadowColor=MA(v.color),f.ctx.shadowOffsetX=v.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=v.offsetY.number*f.options.scale,f.ctx.shadowBlur=v.blur.number,f.renderTextWithLetterSpacing(p,r.letterSpacing,h)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=MA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:f.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+h),p.bounds.width,1);break;case 2:f.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:f.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+u),p.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&p.text.trim().length&&(f.ctx.strokeStyle=MA(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+h)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,r,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Sl(e),a=Ql(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return ur(this,void 0,void 0,function(){var r,n,i,a,s,o,C,C,h,u,d,f,L,l,p,k,w,y,v,C,x,L,k;return er(this,function(M){switch(M.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,i=r.styles,a=0,s=r.textNodes,M.label=1;case 1:return a<s.length?(o=s[a],[4,this.renderTextNode(o,i)]):[3,4];case 2:M.sent(),M.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof K5))return[3,8];M.label=5;case 5:return M.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return C=M.sent(),this.renderReplacedElement(r,n,C),[3,8];case 7:return M.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof V5&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof $5))return[3,12];M.label=9;case 9:return M.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return C=M.sent(),this.renderReplacedElement(r,n,C),[3,12];case 11:return M.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Y5&&r.tree?(h=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,h.render(r.tree)]):[3,14];case 13:u=M.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),M.label=14;case 14:if(r instanceof t0&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===wl?r.checked&&(this.ctx.save(),this.path([new jt(r.bounds.left+d*.39363,r.bounds.top+d*.79),new jt(r.bounds.left+d*.16,r.bounds.top+d*.5549),new jt(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new jt(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new jt(r.bounds.left+d*.72983,r.bounds.top+d*.23),new jt(r.bounds.left+d*.84,r.bounds.top+d*.34085),new jt(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=MA(W5),this.ctx.fill(),this.ctx.restore()):r.type===Bl&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=MA(W5),this.ctx.fill(),this.ctx.restore())),A7(r)&&r.value.length){switch(f=this.createFontStyle(i),L=f[0],l=f[1],p=this.fontMetrics.getMetrics(L,l).baseline,this.ctx.font=L,this.ctx.fillStyle=MA(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=n7(r.styles.textAlign),k=Sl(r),w=0,r.styles.textAlign){case 1:w+=k.width/2;break;case 2:w+=k.width;break}y=k.add(w,0,0,-k.height/2+1),this.ctx.save(),this.path([new jt(k.left,k.top),new jt(k.left+k.width,k.top),new jt(k.left+k.width,k.top+k.height),new jt(k.left,k.top+k.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Lh(r.value,y),i.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!_A(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];C=void 0,x=v.url,M.label=15;case 15:return M.trys.push([15,17,,18]),[4,this.context.cache.match(x)];case 16:return C=M.sent(),this.ctx.drawImage(C,r.bounds.left-(C.width+10),r.bounds.top),[3,18];case 17:return M.sent(),this.context.logger.error("Error loading list-style-image "+x),[3,18];case 18:return[3,20];case 19:e.listValue&&r.styles.listStyleType!==-1&&(L=this.createFontStyle(i)[0],this.ctx.font=L,this.ctx.fillStyle=MA(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",k=new ri(r.bounds.left,r.bounds.top+$e(r.styles.paddingTop,r.bounds.width),r.bounds.width,x5(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Lh(e.listValue,k),i.letterSpacing,x5(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),M.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(e){return ur(this,void 0,void 0,function(){var r,n,v,i,a,v,s,o,v,h,u,v,d,f,v,l,p,v,w,y,v;return er(this,function(C){switch(C.label){case 0:if(_A(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:C.sent(),r=0,n=e.negativeZIndex,C.label=2;case 2:return r<n.length?(v=n[r],[4,this.renderStack(v)]):[3,5];case 3:C.sent(),C.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:C.sent(),i=0,a=e.nonInlineLevel,C.label=7;case 7:return i<a.length?(v=a[i],[4,this.renderNode(v)]):[3,10];case 8:C.sent(),C.label=9;case 9:return i++,[3,7];case 10:s=0,o=e.nonPositionedFloats,C.label=11;case 11:return s<o.length?(v=o[s],[4,this.renderStack(v)]):[3,14];case 12:C.sent(),C.label=13;case 13:return s++,[3,11];case 14:h=0,u=e.nonPositionedInlineLevel,C.label=15;case 15:return h<u.length?(v=u[h],[4,this.renderStack(v)]):[3,18];case 16:C.sent(),C.label=17;case 17:return h++,[3,15];case 18:d=0,f=e.inlineLevel,C.label=19;case 19:return d<f.length?(v=f[d],[4,this.renderNode(v)]):[3,22];case 20:C.sent(),C.label=21;case 21:return d++,[3,19];case 22:l=0,p=e.zeroOrAutoZIndexOrTransformedOrOpacity,C.label=23;case 23:return l<p.length?(v=p[l],[4,this.renderStack(v)]):[3,26];case 24:C.sent(),C.label=25;case 25:return l++,[3,23];case 26:w=0,y=e.positiveZIndex,C.label=27;case 27:return w<y.length?(v=y[w],[4,this.renderStack(v)]):[3,30];case 28:C.sent(),C.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},t.prototype.formatPath=function(e){var r=this;e.forEach(function(n,i){var a=$r(n)?n.start:n;i===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),$r(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},t.prototype.renderRepeat=function(e,r,n,i){this.path(e),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},t.prototype.resizeImage=function(e,r,n){var i;if(e.width===r&&e.height===n)return e;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=a.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,n);var o=s.getContext("2d");return o.drawImage(e,0,0,e.width,e.height,0,0,r,n),s},t.prototype.renderBackgroundImage=function(e){return ur(this,void 0,void 0,function(){var r,n,i,a,s,o;return er(this,function(h){switch(h.label){case 0:r=e.styles.backgroundImage.length-1,n=function(u){var d,f,l,$,Y,at,O,D,N,p,$,Y,at,O,D,w,y,v,C,x,L,k,M,H,N,V,$,U,S,O,D,nt,Y,at,rt,ot,At,pt,F,R,G,q;return er(this,function(Z){switch(Z.label){case 0:if(u.type!==0)return[3,5];d=void 0,f=u.url,Z.label=1;case 1:return Z.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return d=Z.sent(),[3,4];case 3:return Z.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(l=c0(e,r,[d.width,d.height,d.width/d.height]),$=l[0],Y=l[1],at=l[2],O=l[3],D=l[4],N=i.ctx.createPattern(i.resizeImage(d,O,D),"repeat"),i.renderRepeat($,N,Y,at)),[3,6];case 5:RP(u)?(p=c0(e,r,[null,null,null]),$=p[0],Y=p[1],at=p[2],O=p[3],D=p[4],w=MP(u.angle,O,D),y=w[0],v=w[1],C=w[2],x=w[3],L=w[4],k=document.createElement("canvas"),k.width=O,k.height=D,M=k.getContext("2d"),H=M.createLinearGradient(v,x,C,L),d5(u.stops,y).forEach(function(ct){return H.addColorStop(ct.stop,MA(ct.color))}),M.fillStyle=H,M.fillRect(0,0,O,D),O>0&&D>0&&(N=i.ctx.createPattern(k,"repeat"),i.renderRepeat($,N,Y,at))):jP(u)&&(V=c0(e,r,[null,null,null]),$=V[0],U=V[1],S=V[2],O=V[3],D=V[4],nt=u.position.length===0?[kg]:u.position,Y=$e(nt[0],O),at=$e(nt[nt.length-1],D),rt=OP(u,Y,at,O,D),ot=rt[0],At=rt[1],ot>0&&At>0&&(pt=i.ctx.createRadialGradient(U+Y,S+at,0,U+Y,S+at,ot),d5(u.stops,ot*2).forEach(function(ct){return pt.addColorStop(ct.stop,MA(ct.color))}),i.path($),i.ctx.fillStyle=pt,ot!==At?(F=e.bounds.left+.5*e.bounds.width,R=e.bounds.top+.5*e.bounds.height,G=At/ot,q=1/G,i.ctx.save(),i.ctx.translate(F,R),i.ctx.transform(1,0,0,G,0,0),i.ctx.translate(-F,-R),i.ctx.fillRect(U,q*(S-R)+R,O,D*q),i.ctx.restore()):i.ctx.fill())),Z.label=6;case 6:return r--,[2]}})},i=this,a=0,s=e.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return a<s.length?(o=s[a],[5,n(o)]):[3,4];case 2:h.sent(),h.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(e,r,n){return ur(this,void 0,void 0,function(){return er(this,function(i){return this.path(Cy(n,r)),this.ctx.fillStyle=MA(e),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(e,r,n,i){return ur(this,void 0,void 0,function(){var a,s;return er(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return a=VO(i,n),this.path(a),this.ctx.fillStyle=MA(e),this.ctx.fill(),s=$O(i,n),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(e){return ur(this,void 0,void 0,function(){var r,n,i,a,s,o,h,u,d=this;return er(this,function(f){switch(f.label){case 0:return this.applyEffects(e.getEffects(2)),r=e.container.styles,n=!$i(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],a=r7(zs(r.backgroundClip,0),e.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),$i(r.backgroundColor)||(this.ctx.fillStyle=MA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(l){d.ctx.save();var p=Fl(e.curves),w=l.inset?0:t7,y=GO(p,-w+(l.inset?1:-1)*l.spread.number,(l.inset?1:-1)*l.spread.number,l.spread.number*(l.inset?-2:2),l.spread.number*(l.inset?-2:2));l.inset?(d.path(p),d.ctx.clip(),d.mask(y)):(d.mask(p),d.ctx.clip(),d.path(y)),d.ctx.shadowOffsetX=l.offsetX.number+w,d.ctx.shadowOffsetY=l.offsetY.number,d.ctx.shadowColor=MA(l.color),d.ctx.shadowBlur=l.blur.number,d.ctx.fillStyle=l.inset?MA(l.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:s=0,o=0,h=i,f.label=3;case 3:return o<h.length?(u=h[o],u.style!==0&&!$i(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,e.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,e.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,e.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,r,n,i,a){return ur(this,void 0,void 0,function(){var s,o,h,u,d,f,l,p,w,y,v,C,x,L,k,M,k,M;return er(this,function(H){return this.ctx.save(),s=zO(i,n),o=Cy(i,n),a===2&&(this.path(o),this.ctx.clip()),$r(o[0])?(h=o[0].start.x,u=o[0].start.y):(h=o[0].x,u=o[0].y),$r(o[1])?(d=o[1].end.x,f=o[1].end.y):(d=o[1].x,f=o[1].y),n===0||n===2?l=Math.abs(h-d):l=Math.abs(u-f),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(o.slice(0,2)),p=r<3?r*3:r*2,w=r<3?r*2:r,a===3&&(p=r,w=r),y=!0,l<=p*2?y=!1:l<=p*2+w?(v=l/(2*p+w),p*=v,w*=v):(C=Math.floor((l+w)/(p+w)),x=(l-C*p)/(C-1),L=(l-(C+1)*p)/C,w=L<=0||Math.abs(w-x)<Math.abs(w-L)?x:L),y&&(a===3?this.ctx.setLineDash([0,p+w]):this.ctx.setLineDash([p,w])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=MA(e),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&($r(o[0])&&(k=o[3],M=o[0],this.ctx.beginPath(),this.formatPath([new jt(k.end.x,k.end.y),new jt(M.start.x,M.start.y)]),this.ctx.stroke()),$r(o[1])&&(k=o[1],M=o[2],this.ctx.beginPath(),this.formatPath([new jt(k.end.x,k.end.y),new jt(M.start.x,M.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(e){return ur(this,void 0,void 0,function(){var r;return er(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=MA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=KO(e),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(Qy),A7=function(A){return A instanceof X5||A instanceof q5?!0:A instanceof t0&&A.type!==Bl&&A.type!==wl},r7=function(A,t){switch(A){case 0:return Fl(t);case 2:return kO(t);case 1:default:return Ql(t)}},n7=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},i7=["-apple-system","system-ui"],a7=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(t){return i7.indexOf(t)===-1}):A},s7=function(A){ln(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return t.prototype.render=function(e){return ur(this,void 0,void 0,function(){var r,n;return er(this,function(i){switch(i.label){case 0:return r=Yg(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,o7(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=MA(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]}})})},t}(Qy),o7=function(A){return new Promise(function(t,e){var r=new Image;r.onload=function(){t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},h7=function(){function A(t){var e=t.id,r=t.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return A.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,kc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,kc([this.id,this.getTime()+"ms"],t))},A.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,kc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},A.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,kc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},A.instances={},A}(),u7=function(){function A(t,e){var r;this.windowBounds=e,this.instanceName="#"+A.instanceCount++,this.logger=new h7({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new LO(this,t)}return A.instanceCount=1,A}(),c7=function(A,t){return t===void 0&&(t={}),l7(A,t)};typeof window<"u"&&my.setContext(window);var l7=function(A,t){return ur(void 0,void 0,void 0,function(){var e,r,n,i,a,s,o,h,u,d,f,l,p,w,y,v,C,x,L,k,H,M,H,N,V,$,U,S,O,D,nt,Y,at,rt,ot,At,pt,F,R,G;return er(this,function(q){switch(q.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=A.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(r=e.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(N=t.allowTaint)!==null&&N!==void 0?N:!1,imageTimeout:(V=t.imageTimeout)!==null&&V!==void 0?V:15e3,proxy:t.proxy,useCORS:($=t.useCORS)!==null&&$!==void 0?$:!1},i=mg({logging:(U=t.logging)!==null&&U!==void 0?U:!0,cache:t.cache},n),a={windowWidth:(S=t.windowWidth)!==null&&S!==void 0?S:r.innerWidth,windowHeight:(O=t.windowHeight)!==null&&O!==void 0?O:r.innerHeight,scrollX:(D=t.scrollX)!==null&&D!==void 0?D:r.pageXOffset,scrollY:(nt=t.scrollY)!==null&&nt!==void 0?nt:r.pageYOffset},s=new ri(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new u7(i,s),h=(Y=t.foreignObjectRendering)!==null&&Y!==void 0?Y:!1,u={allowTaint:(at=t.allowTaint)!==null&&at!==void 0?at:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},o.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new gy(o,A,u),f=d.clonedReferenceElement,f?[4,d.toIFrame(e,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return l=q.sent(),p=A0(f)||dO(f)?GN(f.ownerDocument):Hc(o,f),w=p.width,y=p.height,v=p.left,C=p.top,x=d7(o,f,t.backgroundColor),L={canvas:t.canvas,backgroundColor:x,scale:(ot=(rt=t.scale)!==null&&rt!==void 0?rt:r.devicePixelRatio)!==null&&ot!==void 0?ot:1,x:((At=t.x)!==null&&At!==void 0?At:0)+v,y:((pt=t.y)!==null&&pt!==void 0?pt:0)+C,width:(F=t.width)!==null&&F!==void 0?F:Math.ceil(w),height:(R=t.height)!==null&&R!==void 0?R:Math.ceil(y)},h?(o.logger.debug("Document cloned, using foreign object rendering"),H=new s7(o,L),[4,H.render(f)]):[3,3];case 2:return k=q.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+v+","+C+" with size "+w+"x"+y+" using computed rendering"),o.logger.debug("Starting DOM parsing"),M=Z5(o,f),x===M.styles.backgroundColor&&(M.styles.backgroundColor=ii.TRANSPARENT),o.logger.debug("Starting renderer for element at "+L.x+","+L.y+" with size "+L.width+"x"+L.height),H=new e7(o,L),[4,H.render(M)];case 4:k=q.sent(),q.label=5;case 5:return(!((G=t.removeContainer)!==null&&G!==void 0)||G)&&(gy.destroy(l)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,k]}})})},d7=function(A,t,e){var r=t.ownerDocument,n=r.documentElement?Eh(A,getComputedStyle(r.documentElement).backgroundColor):ii.TRANSPARENT,i=r.body?Eh(A,getComputedStyle(r.body).backgroundColor):ii.TRANSPARENT,a=typeof e=="string"?Eh(A,e):e===null?ii.TRANSPARENT:4294967295;return t===r.documentElement?$i(n)?$i(i)?a:i:n:a};const f7=Object.freeze(Object.defineProperty({__proto__:null,default:c7},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.4.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.4/LICENSE */function Xi(A){return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(A)}function l0(A,t){return l0=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},l0(A,t)}function g7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Il(A,t,e){return g7()?Il=Reflect.construct:Il=function(r,n,i){var a=[null];a.push.apply(a,n);var s=Function.bind.apply(r,a),o=new s;return i&&l0(o,i.prototype),o},Il.apply(null,arguments)}function fn(A){return p7(A)||m7(A)||w7(A)||B7()}function p7(A){if(Array.isArray(A))return d0(A)}function m7(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}function w7(A,t){if(A){if(typeof A=="string")return d0(A,t);var e=Object.prototype.toString.call(A).slice(8,-1);if(e==="Object"&&A.constructor&&(e=A.constructor.name),e==="Map"||e==="Set")return Array.from(A);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return d0(A,t)}}function d0(A,t){(t==null||t>A.length)&&(t=A.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=A[e];return r}function B7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v7=Object.hasOwnProperty,Ey=Object.setPrototypeOf,y7=Object.isFrozen,b7=Object.getPrototypeOf,C7=Object.getOwnPropertyDescriptor,dr=Object.freeze,gn=Object.seal,x7=Object.create,Uy=typeof Reflect<"u"&&Reflect,_l=Uy.apply,f0=Uy.construct;_l||(_l=function(A,t,e){return A.apply(t,e)}),dr||(dr=function(A){return A}),gn||(gn=function(A){return A}),f0||(f0=function(A,t){return Il(A,fn(t))});var F7=Wr(Array.prototype.forEach),Sy=Wr(Array.prototype.pop),Ph=Wr(Array.prototype.push),Nl=Wr(String.prototype.toLowerCase),g0=Wr(String.prototype.toString),Q7=Wr(String.prototype.match),pn=Wr(String.prototype.replace),E7=Wr(String.prototype.indexOf),U7=Wr(String.prototype.trim),fr=Wr(RegExp.prototype.test),p0=S7(TypeError);function Wr(A){return function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return _l(A,t,r)}}function S7(A){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return f0(A,e)}}function me(A,t,e){e=e||Nl,Ey&&Ey(A,null);for(var r=t.length;r--;){var n=t[r];if(typeof n=="string"){var i=e(n);i!==n&&(y7(t)||(t[r]=i),n=i)}A[n]=!0}return A}function Oa(A){var t=x7(null),e;for(e in A)_l(v7,A,[e])===!0&&(t[e]=A[e]);return t}function Pl(A,t){for(;A!==null;){var e=C7(A,t);if(e){if(e.get)return Wr(e.get);if(typeof e.value=="function")return Wr(e.value)}A=b7(A)}function r(n){return console.warn("fallback value for",n),null}return r}var Ly=dr(["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"]),m0=dr(["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"]),w0=dr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L7=dr(["animate","color-profile","cursor","discard","fedropshadow","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"]),B0=dr(["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"]),I7=dr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Iy=dr(["#text"]),_y=dr(["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","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","xmlns","slot"]),v0=dr(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),Ny=dr(["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"]),Tl=dr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_7=gn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),N7=gn(/<%[\w\W]*|[\w\W]*%>/gm),P7=gn(/\${[\w\W]*}/gm),T7=gn(/^data-[\-\w.\u00B7-\uFFFF]/),M7=gn(/^aria-[\-\w]+$/),O7=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),k7=gn(/^(?:\w+script|data):/i),H7=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),D7=gn(/^html$/i),R7=function(){return typeof window>"u"?null:window},j7=function(A,t){if(Xi(A)!=="object"||typeof A.createPolicy!="function")return null;var e=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(e=t.currentScript.getAttribute(r));var n="dompurify"+(e?"#"+e:"");try{return A.createPolicy(n,{createHTML:function(i){return i},createScriptURL:function(i){return i}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}};function Py(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R7(),t=function(X){return Py(X)};if(t.version="2.4.4",t.removed=[],!A||!A.document||A.document.nodeType!==9)return t.isSupported=!1,t;var e=A.document,r=A.document,n=A.DocumentFragment,i=A.HTMLTemplateElement,a=A.Node,s=A.Element,o=A.NodeFilter,h=A.NamedNodeMap,u=h===void 0?A.NamedNodeMap||A.MozNamedAttrMap:h,d=A.HTMLFormElement,f=A.DOMParser,l=A.trustedTypes,p=s.prototype,w=Pl(p,"cloneNode"),y=Pl(p,"nextSibling"),v=Pl(p,"childNodes"),C=Pl(p,"parentNode");if(typeof i=="function"){var x=r.createElement("template");x.content&&x.content.ownerDocument&&(r=x.content.ownerDocument)}var L=j7(l,e),k=L?L.createHTML(""):"",M=r,H=M.implementation,N=M.createNodeIterator,V=M.createDocumentFragment,$=M.getElementsByTagName,U=e.importNode,S={};try{S=Oa(r).documentMode?r.documentMode:{}}catch{}var O={};t.isSupported=typeof C=="function"&&H&&typeof H.createHTMLDocument<"u"&&S!==9;var D=_7,nt=N7,Y=P7,at=T7,rt=M7,ot=k7,At=H7,pt=O7,F=null,R=me({},[].concat(fn(Ly),fn(m0),fn(w0),fn(B0),fn(Iy))),G=null,q=me({},[].concat(fn(_y),fn(v0),fn(Ny),fn(Tl))),Z=Object.seal(Object.create(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}})),ct=null,ft=null,gt=!0,St=!0,Ut=!1,Ht=!0,Mt=!1,qt=!1,mt=!1,z=!1,Ae=!1,$t=!1,Ft=!1,It=!0,Tt=!1,Pt="user-content-",zt=!0,Xt=!1,re={},se=null,we=me({},["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"]),Fe=null,Zt=me({},["audio","video","img","source","image","track"]),oe=null,Ot=me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",tA="http://www.w3.org/1999/xhtml",ye=tA,Ie=!1,HA=null,Ce=me({},[We,Be,tA],g0),QA,Me=["application/xhtml+xml","text/html"],WA="text/html",fe,Oe=null,he=r.createElement("form"),Ee=function(X){return X instanceof RegExp||X instanceof Function},yn=function(X){Oe&&Oe===X||((!X||Xi(X)!=="object")&&(X={}),X=Oa(X),QA=Me.indexOf(X.PARSER_MEDIA_TYPE)===-1?QA=WA:QA=X.PARSER_MEDIA_TYPE,fe=QA==="application/xhtml+xml"?g0:Nl,F="ALLOWED_TAGS"in X?me({},X.ALLOWED_TAGS,fe):R,G="ALLOWED_ATTR"in X?me({},X.ALLOWED_ATTR,fe):q,HA="ALLOWED_NAMESPACES"in X?me({},X.ALLOWED_NAMESPACES,g0):Ce,oe="ADD_URI_SAFE_ATTR"in X?me(Oa(Ot),X.ADD_URI_SAFE_ATTR,fe):Ot,Fe="ADD_DATA_URI_TAGS"in X?me(Oa(Zt),X.ADD_DATA_URI_TAGS,fe):Zt,se="FORBID_CONTENTS"in X?me({},X.FORBID_CONTENTS,fe):we,ct="FORBID_TAGS"in X?me({},X.FORBID_TAGS,fe):{},ft="FORBID_ATTR"in X?me({},X.FORBID_ATTR,fe):{},re="USE_PROFILES"in X?X.USE_PROFILES:!1,gt=X.ALLOW_ARIA_ATTR!==!1,St=X.ALLOW_DATA_ATTR!==!1,Ut=X.ALLOW_UNKNOWN_PROTOCOLS||!1,Ht=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Mt=X.SAFE_FOR_TEMPLATES||!1,qt=X.WHOLE_DOCUMENT||!1,Ae=X.RETURN_DOM||!1,$t=X.RETURN_DOM_FRAGMENT||!1,Ft=X.RETURN_TRUSTED_TYPE||!1,z=X.FORCE_BODY||!1,It=X.SANITIZE_DOM!==!1,Tt=X.SANITIZE_NAMED_PROPS||!1,zt=X.KEEP_CONTENT!==!1,Xt=X.IN_PLACE||!1,pt=X.ALLOWED_URI_REGEXP||pt,ye=X.NAMESPACE||tA,X.CUSTOM_ELEMENT_HANDLING&&Ee(X.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=X.CUSTOM_ELEMENT_HANDLING.tagNameCheck),X.CUSTOM_ELEMENT_HANDLING&&Ee(X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mt&&(St=!1),$t&&(Ae=!0),re&&(F=me({},fn(Iy)),G=[],re.html===!0&&(me(F,Ly),me(G,_y)),re.svg===!0&&(me(F,m0),me(G,v0),me(G,Tl)),re.svgFilters===!0&&(me(F,w0),me(G,v0),me(G,Tl)),re.mathMl===!0&&(me(F,B0),me(G,Ny),me(G,Tl))),X.ADD_TAGS&&(F===R&&(F=Oa(F)),me(F,X.ADD_TAGS,fe)),X.ADD_ATTR&&(G===q&&(G=Oa(G)),me(G,X.ADD_ATTR,fe)),X.ADD_URI_SAFE_ATTR&&me(oe,X.ADD_URI_SAFE_ATTR,fe),X.FORBID_CONTENTS&&(se===we&&(se=Oa(se)),me(se,X.FORBID_CONTENTS,fe)),zt&&(F["#text"]=!0),qt&&me(F,["html","head","body"]),F.table&&(me(F,["tbody"]),delete ct.tbody),dr&&dr(X),Oe=X)},EA=me({},["mi","mo","mn","ms","mtext"]),kr=me({},["foreignobject","desc","title","annotation-xml"]),Xr=me({},["title","style","font","a","script"]),te=me({},m0);me(te,w0),me(te,L7);var pr=me({},B0);me(pr,I7);var Yr=function(X){var Dt=C(X);(!Dt||!Dt.tagName)&&(Dt={namespaceURI:ye,tagName:"template"});var Lt=Nl(X.tagName),be=Nl(Dt.tagName);return HA[X.namespaceURI]?X.namespaceURI===Be?Dt.namespaceURI===tA?Lt==="svg":Dt.namespaceURI===We?Lt==="svg"&&(be==="annotation-xml"||EA[be]):!!te[Lt]:X.namespaceURI===We?Dt.namespaceURI===tA?Lt==="math":Dt.namespaceURI===Be?Lt==="math"&&kr[be]:!!pr[Lt]:X.namespaceURI===tA?Dt.namespaceURI===Be&&!kr[be]||Dt.namespaceURI===We&&!EA[be]?!1:!pr[Lt]&&(Xr[Lt]||!te[Lt]):!!(QA==="application/xhtml+xml"&&HA[X.namespaceURI]):!1},wA=function(X){Ph(t.removed,{element:X});try{X.parentNode.removeChild(X)}catch{try{X.outerHTML=k}catch{X.remove()}}},rA=function(X,Dt){try{Ph(t.removed,{attribute:Dt.getAttributeNode(X),from:Dt})}catch{Ph(t.removed,{attribute:null,from:Dt})}if(Dt.removeAttribute(X),X==="is"&&!G[X])if(Ae||$t)try{wA(Dt)}catch{}else try{Dt.setAttribute(X,"")}catch{}},nA=function(X){var Dt,Lt;if(z)X="<remove></remove>"+X;else{var be=Q7(X,/^[\r\n\t ]+/);Lt=be&&be[0]}QA==="application/xhtml+xml"&&ye===tA&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");var Re=L?L.createHTML(X):X;if(ye===tA)try{Dt=new f().parseFromString(Re,QA)}catch{}if(!Dt||!Dt.documentElement){Dt=H.createDocument(ye,"template",null);try{Dt.documentElement.innerHTML=Ie?k:Re}catch{}}var DA=Dt.body||Dt.documentElement;return X&&Lt&&DA.insertBefore(r.createTextNode(Lt),DA.childNodes[0]||null),ye===tA?$.call(Dt,qt?"html":"body")[0]:qt?Dt.documentElement:DA},nr=function(X){return N.call(X.ownerDocument||X,X,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT,null,!1)},ea=function(X){return X instanceof d&&(typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||!(X.attributes instanceof u)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function")},mr=function(X){return Xi(a)==="object"?X instanceof a:X&&Xi(X)==="object"&&typeof X.nodeType=="number"&&typeof X.nodeName=="string"},BA=function(X,Dt,Lt){!O[X]||F7(O[X],function(be){be.call(t,Dt,Lt,Oe)})},Fr=function(X){var Dt;if(BA("beforeSanitizeElements",X,null),ea(X)||fr(/[\u0080-\uFFFF]/,X.nodeName))return wA(X),!0;var Lt=fe(X.nodeName);if(BA("uponSanitizeElement",X,{tagName:Lt,allowedTags:F}),X.hasChildNodes()&&!mr(X.firstElementChild)&&(!mr(X.content)||!mr(X.content.firstElementChild))&&fr(/<[/\w]/g,X.innerHTML)&&fr(/<[/\w]/g,X.textContent)||Lt==="select"&&fr(/<template/i,X.innerHTML))return wA(X),!0;if(!F[Lt]||ct[Lt]){if(!ct[Lt]&&Hr(Lt)&&(Z.tagNameCheck instanceof RegExp&&fr(Z.tagNameCheck,Lt)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(Lt)))return!1;if(zt&&!se[Lt]){var be=C(X)||X.parentNode,Re=v(X)||X.childNodes;if(Re&&be)for(var DA=Re.length,iA=DA-1;iA>=0;--iA)be.insertBefore(w(Re[iA],!0),y(X))}return wA(X),!0}return X instanceof s&&!Yr(X)||(Lt==="noscript"||Lt==="noembed")&&fr(/<\/no(script|embed)/i,X.innerHTML)?(wA(X),!0):(Mt&&X.nodeType===3&&(Dt=X.textContent,Dt=pn(Dt,D," "),Dt=pn(Dt,nt," "),Dt=pn(Dt,Y," "),X.textContent!==Dt&&(Ph(t.removed,{element:X.cloneNode()}),X.textContent=Dt)),BA("afterSanitizeElements",X,null),!1)},Qr=function(X,Dt,Lt){if(It&&(Dt==="id"||Dt==="name")&&(Lt in r||Lt in he))return!1;if(!(St&&!ft[Dt]&&fr(at,Dt))&&!(gt&&fr(rt,Dt))){if(!G[Dt]||ft[Dt]){if(!(Hr(X)&&(Z.tagNameCheck instanceof RegExp&&fr(Z.tagNameCheck,X)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(X))&&(Z.attributeNameCheck instanceof RegExp&&fr(Z.attributeNameCheck,Dt)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(Dt))||Dt==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&fr(Z.tagNameCheck,Lt)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(Lt))))return!1}else if(!oe[Dt]&&!fr(pt,pn(Lt,At,""))&&!((Dt==="src"||Dt==="xlink:href"||Dt==="href")&&X!=="script"&&E7(Lt,"data:")===0&&Fe[X])&&!(Ut&&!fr(ot,pn(Lt,At,"")))&&Lt)return!1}return!0},Hr=function(X){return X.indexOf("-")>0},wr=function(X){var Dt,Lt,be,Re;BA("beforeSanitizeAttributes",X,null);var DA=X.attributes;if(DA){var iA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G};for(Re=DA.length;Re--;){Dt=DA[Re];var gi=Dt,ir=gi.name,NA=gi.namespaceURI;if(Lt=ir==="value"?Dt.value:U7(Dt.value),be=fe(ir),iA.attrName=be,iA.attrValue=Lt,iA.keepAttr=!0,iA.forceKeepAttr=void 0,BA("uponSanitizeAttribute",X,iA),Lt=iA.attrValue,!iA.forceKeepAttr&&(rA(ir,X),!!iA.keepAttr)){if(!Ht&&fr(/\/>/i,Lt)){rA(ir,X);continue}Mt&&(Lt=pn(Lt,D," "),Lt=pn(Lt,nt," "),Lt=pn(Lt,Y," "));var fo=fe(X.nodeName);if(Qr(fo,be,Lt)){if(Tt&&(be==="id"||be==="name")&&(rA(ir,X),Lt=Pt+Lt),L&&Xi(l)==="object"&&typeof l.getAttributeType=="function"&&!NA)switch(l.getAttributeType(fo,be)){case"TrustedHTML":Lt=L.createHTML(Lt);break;case"TrustedScriptURL":Lt=L.createScriptURL(Lt);break}try{NA?X.setAttributeNS(NA,ir,Lt):X.setAttribute(ir,Lt),Sy(t.removed)}catch{}}}}BA("afterSanitizeAttributes",X,null)}},Jr=function X(Dt){var Lt,be=nr(Dt);for(BA("beforeSanitizeShadowDOM",Dt,null);Lt=be.nextNode();)BA("uponSanitizeShadowNode",Lt,null),!Fr(Lt)&&(Lt.content instanceof n&&X(Lt.content),wr(Lt));BA("afterSanitizeShadowDOM",Dt,null)};return t.sanitize=function(X){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Lt,be,Re,DA,iA;if(Ie=!X,Ie&&(X="<!-->"),typeof X!="string"&&!mr(X)){if(typeof X.toString!="function")throw p0("toString is not a function");if(X=X.toString(),typeof X!="string")throw p0("dirty is not a string, aborting")}if(!t.isSupported){if(Xi(A.toStaticHTML)==="object"||typeof A.toStaticHTML=="function"){if(typeof X=="string")return A.toStaticHTML(X);if(mr(X))return A.toStaticHTML(X.outerHTML)}return X}if(mt||yn(Dt),t.removed=[],typeof X=="string"&&(Xt=!1),Xt){if(X.nodeName){var gi=fe(X.nodeName);if(!F[gi]||ct[gi])throw p0("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof a)Lt=nA("<!---->"),be=Lt.ownerDocument.importNode(X,!0),be.nodeType===1&&be.nodeName==="BODY"||be.nodeName==="HTML"?Lt=be:Lt.appendChild(be);else{if(!Ae&&!Mt&&!qt&&X.indexOf("<")===-1)return L&&Ft?L.createHTML(X):X;if(Lt=nA(X),!Lt)return Ae?null:Ft?k:""}Lt&&z&&wA(Lt.firstChild);for(var ir=nr(Xt?X:Lt);Re=ir.nextNode();)Re.nodeType===3&&Re===DA||Fr(Re)||(Re.content instanceof n&&Jr(Re.content),wr(Re),DA=Re);if(DA=null,Xt)return X;if(Ae){if($t)for(iA=V.call(Lt.ownerDocument);Lt.firstChild;)iA.appendChild(Lt.firstChild);else iA=Lt;return(G.shadowroot||G.shadowrootmod)&&(iA=U.call(e,iA,!0)),iA}var NA=qt?Lt.outerHTML:Lt.innerHTML;return qt&&F["!doctype"]&&Lt.ownerDocument&&Lt.ownerDocument.doctype&&Lt.ownerDocument.doctype.name&&fr(D7,Lt.ownerDocument.doctype.name)&&(NA="<!DOCTYPE "+Lt.ownerDocument.doctype.name+`>
`+NA),Mt&&(NA=pn(NA,D," "),NA=pn(NA,nt," "),NA=pn(NA,Y," ")),L&&Ft?L.createHTML(NA):NA},t.setConfig=function(X){yn(X),mt=!0},t.clearConfig=function(){Oe=null,mt=!1},t.isValidAttribute=function(X,Dt,Lt){Oe||yn({});var be=fe(X),Re=fe(Dt);return Qr(be,Re,Lt)},t.addHook=function(X,Dt){typeof Dt=="function"&&(O[X]=O[X]||[],Ph(O[X],Dt))},t.removeHook=function(X){if(O[X])return Sy(O[X])},t.removeHooks=function(X){O[X]&&(O[X]=[])},t.removeAllHooks=function(){O={}},t}var G7=Py();const K7=Object.freeze(Object.defineProperty({__proto__:null,default:G7},Symbol.toStringTag,{value:"Module"}));var Ml=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ol=function(A){return A&&A.Math==Math&&A},OA=Ol(typeof globalThis=="object"&&globalThis)||Ol(typeof window=="object"&&window)||Ol(typeof self=="object"&&self)||Ol(typeof Ml=="object"&&Ml)||function(){return this}()||Function("return this")(),Ws={},pA=function(A){try{return!!A()}catch{return!0}},V7=pA,Gn=!V7(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),$7=pA,kl=!$7(function(){var A=function(){}.bind();return typeof A!="function"||A.hasOwnProperty("prototype")}),z7=kl,Hl=Function.prototype.call,zA=z7?Hl.bind(Hl):function(){return Hl.apply(Hl,arguments)},Ty={},My={}.propertyIsEnumerable,Oy=Object.getOwnPropertyDescriptor,W7=Oy&&!My.call({1:2},1);Ty.f=W7?function(A){var t=Oy(this,A);return!!t&&t.enumerable}:My;var Dl=function(A,t){return{enumerable:!(A&1),configurable:!(A&2),writable:!(A&4),value:t}},ky=kl,Hy=Function.prototype,y0=Hy.call,q7=ky&&Hy.bind.bind(y0,y0),mA=ky?q7:function(A){return function(){return y0.apply(A,arguments)}},Dy=mA,X7=Dy({}.toString),Y7=Dy("".slice),ka=function(A){return Y7(X7(A),8,-1)},J7=mA,Z7=pA,tk=ka,b0=Object,ek=J7("".split),Ry=Z7(function(){return!b0("z").propertyIsEnumerable(0)})?function(A){return tk(A)=="String"?ek(A,""):b0(A)}:b0,Ha=function(A){return A==null},Ak=Ha,rk=TypeError,Kn=function(A){if(Ak(A))throw rk("Can't call method on "+A);return A},nk=Ry,ik=Kn,Th=function(A){return nk(ik(A))},C0=typeof document=="object"&&document.all,ak=typeof C0>"u"&&C0!==void 0,jy={all:C0,IS_HTMLDDA:ak},Gy=jy,sk=Gy.all,oA=Gy.IS_HTMLDDA?function(A){return typeof A=="function"||A===sk}:function(A){return typeof A=="function"},Ky=oA,Vy=jy,ok=Vy.all,si=Vy.IS_HTMLDDA?function(A){return typeof A=="object"?A!==null:Ky(A)||A===ok}:function(A){return typeof A=="object"?A!==null:Ky(A)},x0=OA,hk=oA,uk=function(A){return hk(A)?A:void 0},Da=function(A,t){return arguments.length<2?uk(x0[A]):x0[A]&&x0[A][t]},ck=mA,Rl=ck({}.isPrototypeOf),jl=typeof navigator<"u"&&String(navigator.userAgent)||"",$y=OA,F0=jl,zy=$y.process,Wy=$y.Deno,qy=zy&&zy.versions||Wy&&Wy.version,Xy=qy&&qy.v8,mn,Gl;Xy&&(mn=Xy.split("."),Gl=mn[0]>0&&mn[0]<4?1:+(mn[0]+mn[1])),!Gl&&F0&&(mn=F0.match(/Edge\/(\d+)/),(!mn||mn[1]>=74)&&(mn=F0.match(/Chrome\/(\d+)/),mn&&(Gl=+mn[1])));var Q0=Gl,Yy=Q0,lk=pA,Jy=!!Object.getOwnPropertySymbols&&!lk(function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&Yy&&Yy<41}),dk=Jy,Zy=dk&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fk=Da,gk=oA,pk=Rl,mk=Zy,wk=Object,tb=mk?function(A){return typeof A=="symbol"}:function(A){var t=fk("Symbol");return gk(t)&&pk(t.prototype,wk(A))},Bk=String,Kl=function(A){try{return Bk(A)}catch{return"Object"}},vk=oA,yk=Kl,bk=TypeError,oi=function(A){if(vk(A))return A;throw bk(yk(A)+" is not a function")},Ck=oi,xk=Ha,qs=function(A,t){var e=A[t];return xk(e)?void 0:Ck(e)},E0=zA,U0=oA,S0=si,Fk=TypeError,Qk=function(A,t){var e,r;if(t==="string"&&U0(e=A.toString)&&!S0(r=E0(e,A))||U0(e=A.valueOf)&&!S0(r=E0(e,A))||t!=="string"&&U0(e=A.toString)&&!S0(r=E0(e,A)))return r;throw Fk("Can't convert object to primitive value")},Vl={exports:{}},eb=OA,Ek=Object.defineProperty,L0=function(A,t){try{Ek(eb,A,{value:t,configurable:!0,writable:!0})}catch{eb[A]=t}return t},Uk=OA,Sk=L0,Ab="__core-js_shared__",Lk=Uk[Ab]||Sk(Ab,{}),I0=Lk,rb=I0;(Vl.exports=function(A,t){return rb[A]||(rb[A]=t!==void 0?t:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ik=Kn,_k=Object,$l=function(A){return _k(Ik(A))},Nk=mA,Pk=$l,Tk=Nk({}.hasOwnProperty),wn=Object.hasOwn||function(A,t){return Tk(Pk(A),t)},Mk=mA,Ok=0,kk=Math.random(),Hk=Mk(1 .toString),nb=function(A){return"Symbol("+(A===void 0?"":A)+")_"+Hk(++Ok+kk,36)},Dk=OA,Rk=Vl.exports,ib=wn,jk=nb,Gk=Jy,Kk=Zy,Xs=Dk.Symbol,_0=Rk("wks"),Vk=Kk?Xs.for||Xs:Xs&&Xs.withoutSetter||jk,kA=function(A){return ib(_0,A)||(_0[A]=Gk&&ib(Xs,A)?Xs[A]:Vk("Symbol."+A)),_0[A]},$k=zA,ab=si,sb=tb,zk=qs,Wk=Qk,qk=kA,Xk=TypeError,Yk=qk("toPrimitive"),Jk=function(A,t){if(!ab(A)||sb(A))return A;var e=zk(A,Yk),r;if(e){if(t===void 0&&(t="default"),r=$k(e,A,t),!ab(r)||sb(r))return r;throw Xk("Can't convert object to primitive value")}return t===void 0&&(t="number"),Wk(A,t)},Zk=Jk,tH=tb,N0=function(A){var t=Zk(A,"string");return tH(t)?t:t+""},eH=OA,ob=si,P0=eH.document,AH=ob(P0)&&ob(P0.createElement),zl=function(A){return AH?P0.createElement(A):{}},rH=Gn,nH=pA,iH=zl,hb=!rH&&!nH(function(){return Object.defineProperty(iH("div"),"a",{get:function(){return 7}}).a!=7}),aH=Gn,sH=zA,oH=Ty,hH=Dl,uH=Th,cH=N0,lH=wn,dH=hb,ub=Object.getOwnPropertyDescriptor;Ws.f=aH?ub:function(A,t){if(A=uH(A),t=cH(t),dH)try{return ub(A,t)}catch{}if(lH(A,t))return hH(!sH(oH.f,A,t),A[t])};var Vn={},fH=Gn,gH=pA,cb=fH&&gH(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),pH=si,mH=String,wH=TypeError,Ar=function(A){if(pH(A))return A;throw wH(mH(A)+" is not an object")},BH=Gn,vH=hb,yH=cb,Wl=Ar,lb=N0,bH=TypeError,T0=Object.defineProperty,CH=Object.getOwnPropertyDescriptor,M0="enumerable",O0="configurable",k0="writable";Vn.f=BH?yH?function(A,t,e){if(Wl(A),t=lb(t),Wl(e),typeof A=="function"&&t==="prototype"&&"value"in e&&k0 in e&&!e[k0]){var r=CH(A,t);r&&r[k0]&&(A[t]=e.value,e={configurable:O0 in e?e[O0]:r[O0],enumerable:M0 in e?e[M0]:r[M0],writable:!1})}return T0(A,t,e)}:T0:function(A,t,e){if(Wl(A),t=lb(t),Wl(e),vH)try{return T0(A,t,e)}catch{}if("get"in e||"set"in e)throw bH("Accessors not supported");return"value"in e&&(A[t]=e.value),A};var xH=Gn,FH=Vn,QH=Dl,Mh=xH?function(A,t,e){return FH.f(A,t,QH(1,e))}:function(A,t,e){return A[t]=e,A},H0={exports:{}},D0=Gn,EH=wn,db=Function.prototype,UH=D0&&Object.getOwnPropertyDescriptor,R0=EH(db,"name"),SH=R0&&function(){}.name==="something",LH=R0&&(!D0||D0&&UH(db,"name").configurable),ql={EXISTS:R0,PROPER:SH,CONFIGURABLE:LH},IH=mA,_H=oA,j0=I0,NH=IH(Function.toString);_H(j0.inspectSource)||(j0.inspectSource=function(A){return NH(A)});var G0=j0.inspectSource,PH=OA,TH=oA,fb=PH.WeakMap,MH=TH(fb)&&/native code/.test(String(fb)),OH=Vl.exports,kH=nb,gb=OH("keys"),K0=function(A){return gb[A]||(gb[A]=kH(A))},V0={},HH=MH,pb=OA,DH=si,RH=Mh,$0=wn,z0=I0,jH=K0,GH=V0,mb="Object already initialized",W0=pb.TypeError,KH=pb.WeakMap,Xl,Oh,Yl,VH=function(A){return Yl(A)?Oh(A):Xl(A,{})},$H=function(A){return function(t){var e;if(!DH(t)||(e=Oh(t)).type!==A)throw W0("Incompatible receiver, "+A+" required");return e}};if(HH||z0.state){var $n=z0.state||(z0.state=new KH);$n.get=$n.get,$n.has=$n.has,$n.set=$n.set,Xl=function(A,t){if($n.has(A))throw W0(mb);return t.facade=A,$n.set(A,t),t},Oh=function(A){return $n.get(A)||{}},Yl=function(A){return $n.has(A)}}else{var Ys=jH("state");GH[Ys]=!0,Xl=function(A,t){if($0(A,Ys))throw W0(mb);return t.facade=A,RH(A,Ys,t),t},Oh=function(A){return $0(A,Ys)?A[Ys]:{}},Yl=function(A){return $0(A,Ys)}}var Jl={set:Xl,get:Oh,has:Yl,enforce:VH,getterFor:$H},q0=mA,zH=pA,WH=oA,Zl=wn,X0=Gn,qH=ql.CONFIGURABLE,XH=G0,wb=Jl,YH=wb.enforce,JH=wb.get,Bb=String,td=Object.defineProperty,ZH=q0("".slice),tD=q0("".replace),eD=q0([].join),AD=X0&&!zH(function(){return td(function(){},"length",{value:8}).length!==8}),rD=String(String).split("String"),nD=H0.exports=function(A,t,e){ZH(Bb(t),0,7)==="Symbol("&&(t="["+tD(Bb(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!Zl(A,"name")||qH&&A.name!==t)&&(X0?td(A,"name",{value:t,configurable:!0}):A.name=t),AD&&e&&Zl(e,"arity")&&A.length!==e.arity&&td(A,"length",{value:e.arity});try{e&&Zl(e,"constructor")&&e.constructor?X0&&td(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch{}var r=YH(A);return Zl(r,"source")||(r.source=eD(rD,typeof t=="string"?t:"")),A};Function.prototype.toString=nD(function(){return WH(this)&&JH(this).source||XH(this)},"toString");var iD=oA,aD=Vn,sD=H0.exports,oD=L0,Ra=function(A,t,e,r){r||(r={});var n=r.enumerable,i=r.name!==void 0?r.name:t;if(iD(e)&&sD(e,i,r),r.global)n?A[t]=e:oD(t,e);else{try{r.unsafe?A[t]&&(n=!0):delete A[t]}catch{}n?A[t]=e:aD.f(A,t,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return A},vb={},hD=Math.ceil,uD=Math.floor,cD=Math.trunc||function(A){var t=+A;return(t>0?uD:hD)(t)},lD=cD,ed=function(A){var t=+A;return t!==t||t===0?0:lD(t)},dD=ed,fD=Math.max,gD=Math.min,yb=function(A,t){var e=dD(A);return e<0?fD(e+t,0):gD(e,t)},pD=ed,mD=Math.min,Js=function(A){return A>0?mD(pD(A),9007199254740991):0},wD=Js,Ad=function(A){return wD(A.length)},BD=Th,vD=yb,yD=Ad,bb=function(A){return function(t,e,r){var n=BD(t),i=yD(n),a=vD(r,i),s;if(A&&e!=e){for(;i>a;)if(s=n[a++],s!=s)return!0}else for(;i>a;a++)if((A||a in n)&&n[a]===e)return A||a||0;return!A&&-1}},Cb={includes:bb(!0),indexOf:bb(!1)},bD=mA,Y0=wn,CD=Th,xD=Cb.indexOf,FD=V0,xb=bD([].push),Fb=function(A,t){var e=CD(A),r=0,n=[],i;for(i in e)!Y0(FD,i)&&Y0(e,i)&&xb(n,i);for(;t.length>r;)Y0(e,i=t[r++])&&(~xD(n,i)||xb(n,i));return n},J0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QD=Fb,ED=J0,UD=ED.concat("length","prototype");vb.f=Object.getOwnPropertyNames||function(A){return QD(A,UD)};var Qb={};Qb.f=Object.getOwnPropertySymbols;var SD=Da,LD=mA,ID=vb,_D=Qb,ND=Ar,PD=LD([].concat),TD=SD("Reflect","ownKeys")||function(A){var t=ID.f(ND(A)),e=_D.f;return e?PD(t,e(A)):t},Eb=wn,MD=TD,OD=Ws,kD=Vn,HD=function(A,t,e){for(var r=MD(t),n=kD.f,i=OD.f,a=0;a<r.length;a++){var s=r[a];!Eb(A,s)&&!(e&&Eb(e,s))&&n(A,s,i(t,s))}},DD=pA,RD=oA,jD=/#|\.prototype\./,kh=function(A,t){var e=KD[GD(A)];return e==$D?!0:e==VD?!1:RD(t)?DD(t):!!t},GD=kh.normalize=function(A){return String(A).replace(jD,".").toLowerCase()},KD=kh.data={},VD=kh.NATIVE="N",$D=kh.POLYFILL="P",Ub=kh,Z0=OA,zD=Ws.f,WD=Mh,qD=Ra,XD=L0,YD=HD,JD=Ub,gr=function(A,t){var e=A.target,r=A.global,n=A.stat,i,a,s,o,h,u;if(r?a=Z0:n?a=Z0[e]||XD(e,{}):a=(Z0[e]||{}).prototype,a)for(s in t){if(h=t[s],A.dontCallGetSet?(u=zD(a,s),o=u&&u.value):o=a[s],i=JD(r?s:e+(n?".":"#")+s,A.forced),!i&&o!==void 0){if(typeof h==typeof o)continue;YD(h,o)}(A.sham||o&&o.sham)&&WD(h,"sham",!0),qD(a,s,h,A)}},ZD=ka,Hh=typeof process<"u"&&ZD(process)=="process",tR=mA,eR=oi,AR=function(A,t,e){try{return tR(eR(Object.getOwnPropertyDescriptor(A,t)[e]))}catch{}},rR=oA,nR=String,iR=TypeError,aR=function(A){if(typeof A=="object"||rR(A))return A;throw iR("Can't set "+nR(A)+" as a prototype")},sR=AR,oR=Ar,hR=aR,Sb=Object.setPrototypeOf||("__proto__"in{}?function(){var A=!1,t={},e;try{e=sR(Object.prototype,"__proto__","set"),e(t,[]),A=t instanceof Array}catch{}return function(r,n){return oR(r),hR(n),A?e(r,n):r.__proto__=n,r}}():void 0),uR=Vn.f,cR=wn,lR=kA,Lb=lR("toStringTag"),tp=function(A,t,e){A&&!e&&(A=A.prototype),A&&!cR(A,Lb)&&uR(A,Lb,{configurable:!0,value:t})},Ib=H0.exports,dR=Vn,fR=function(A,t,e){return e.get&&Ib(e.get,t,{getter:!0}),e.set&&Ib(e.set,t,{setter:!0}),dR.f(A,t,e)},gR=Da,pR=fR,mR=kA,wR=Gn,_b=mR("species"),BR=function(A){var t=gR(A);wR&&t&&!t[_b]&&pR(t,_b,{configurable:!0,get:function(){return this}})},vR=Rl,yR=TypeError,bR=function(A,t){if(vR(t,A))return A;throw yR("Incorrect invocation")},CR=kA,xR=CR("toStringTag"),Nb={};Nb[xR]="z";var FR=String(Nb)==="[object z]",QR=FR,ER=oA,rd=ka,UR=kA,SR=UR("toStringTag"),LR=Object,IR=rd(function(){return arguments}())=="Arguments",_R=function(A,t){try{return A[t]}catch{}},ep=QR?rd:function(A){var t,e,r;return A===void 0?"Undefined":A===null?"Null":typeof(e=_R(t=LR(A),SR))=="string"?e:IR?rd(t):(r=rd(t))=="Object"&&ER(t.callee)?"Arguments":r},NR=mA,PR=pA,Pb=oA,TR=ep,MR=Da,OR=G0,Tb=function(){},kR=[],Mb=MR("Reflect","construct"),Ap=/^\s*(?:class|function)\b/,HR=NR(Ap.exec),DR=!Ap.exec(Tb),Dh=function(A){if(!Pb(A))return!1;try{return Mb(Tb,kR,A),!0}catch{return!1}},Ob=function(A){if(!Pb(A))return!1;switch(TR(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return DR||!!HR(Ap,OR(A))}catch{return!0}};Ob.sham=!0;var RR=!Mb||PR(function(){var A;return Dh(Dh.call)||!Dh(Object)||!Dh(function(){A=!0})||A})?Ob:Dh,jR=RR,GR=Kl,KR=TypeError,VR=function(A){if(jR(A))return A;throw KR(GR(A)+" is not a constructor")},kb=Ar,$R=VR,zR=Ha,WR=kA,qR=WR("species"),Hb=function(A,t){var e=kb(A).constructor,r;return e===void 0||zR(r=kb(e)[qR])?t:$R(r)},XR=kl,Db=Function.prototype,Rb=Db.apply,jb=Db.call,rp=typeof Reflect=="object"&&Reflect.apply||(XR?jb.bind(Rb):function(){return jb.apply(Rb,arguments)}),YR=ka,JR=mA,Rh=function(A){if(YR(A)==="Function")return JR(A)},Gb=Rh,ZR=oi,t9=kl,e9=Gb(Gb.bind),np=function(A,t){return ZR(A),t===void 0?A:t9?e9(A,t):function(){return A.apply(t,arguments)}},A9=Da,Kb=A9("document","documentElement"),r9=mA,n9=r9([].slice),i9=TypeError,a9=function(A,t){if(A<t)throw i9("Not enough arguments");return A},s9=jl,Vb=/(?:ipad|iphone|ipod).*applewebkit/i.test(s9),Or=OA,o9=rp,h9=np,$b=oA,u9=wn,zb=pA,Wb=Kb,c9=n9,qb=zl,l9=a9,d9=Vb,f9=Hh,ip=Or.setImmediate,ap=Or.clearImmediate,g9=Or.process,sp=Or.Dispatch,p9=Or.Function,Xb=Or.MessageChannel,m9=Or.String,op=0,jh={},Yb="onreadystatechange",Gh,ja,hp,up;zb(function(){Gh=Or.location});var cp=function(A){if(u9(jh,A)){var t=jh[A];delete jh[A],t()}},lp=function(A){return function(){cp(A)}},Jb=function(A){cp(A.data)},Zb=function(A){Or.postMessage(m9(A),Gh.protocol+"//"+Gh.host)};(!ip||!ap)&&(ip=function(A){l9(arguments.length,1);var t=$b(A)?A:p9(A),e=c9(arguments,1);return jh[++op]=function(){o9(t,void 0,e)},ja(op),op},ap=function(A){delete jh[A]},f9?ja=function(A){g9.nextTick(lp(A))}:sp&&sp.now?ja=function(A){sp.now(lp(A))}:Xb&&!d9?(hp=new Xb,up=hp.port2,hp.port1.onmessage=Jb,ja=h9(up.postMessage,up)):Or.addEventListener&&$b(Or.postMessage)&&!Or.importScripts&&Gh&&Gh.protocol!=="file:"&&!zb(Zb)?(ja=Zb,Or.addEventListener("message",Jb,!1)):Yb in qb("script")?ja=function(A){Wb.appendChild(qb("script"))[Yb]=function(){Wb.removeChild(this),cp(A)}}:ja=function(A){setTimeout(lp(A),0)});var tC={set:ip,clear:ap},eC=function(){this.head=null,this.tail=null};eC.prototype={add:function(A){var t={item:A,next:null},e=this.tail;e?e.next=t:this.head=t,this.tail=t},get:function(){var A=this.head;if(A){var t=this.head=A.next;return t===null&&(this.tail=null),A.item}}};var AC=eC,w9=jl,B9=/ipad|iphone|ipod/i.test(w9)&&typeof Pebble<"u",v9=jl,y9=/web0s(?!.*chrome)/i.test(v9),Ga=OA,rC=np,b9=Ws.f,dp=tC.set,C9=AC,x9=Vb,F9=B9,Q9=y9,fp=Hh,nC=Ga.MutationObserver||Ga.WebKitMutationObserver,iC=Ga.document,aC=Ga.process,nd=Ga.Promise,sC=b9(Ga,"queueMicrotask"),gp=sC&&sC.value,Zs,pp,mp,id,oC;if(!gp){var ad=new C9,sd=function(){var A,t;for(fp&&(A=aC.domain)&&A.exit();t=ad.get();)try{t()}catch(e){throw ad.head&&Zs(),e}A&&A.enter()};!x9&&!fp&&!Q9&&nC&&iC?(pp=!0,mp=iC.createTextNode(""),new nC(sd).observe(mp,{characterData:!0}),Zs=function(){mp.data=pp=!pp}):!F9&&nd&&nd.resolve?(id=nd.resolve(void 0),id.constructor=nd,oC=rC(id.then,id),Zs=function(){oC(sd)}):fp?Zs=function(){aC.nextTick(sd)}:(dp=rC(dp,Ga),Zs=function(){dp(sd)}),gp=function(A){ad.head||Zs(),ad.add(A)}}var E9=gp,U9=function(A,t){try{arguments.length==1?console.error(A):console.error(A,t)}catch{}},wp=function(A){try{return{error:!1,value:A()}}catch(t){return{error:!0,value:t}}},S9=OA,od=S9.Promise,hC=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",L9=hC,I9=Hh,_9=!L9&&!I9&&typeof window=="object"&&typeof document=="object",N9=OA,Kh=od,P9=oA,T9=Ub,M9=G0,O9=kA,k9=_9,H9=hC,Bp=Q0;Kh&&Kh.prototype;var D9=O9("species"),vp=!1,uC=P9(N9.PromiseRejectionEvent),R9=T9("Promise",function(){var A=M9(Kh),t=A!==String(Kh);if(!t&&Bp===66)return!0;if(!Bp||Bp<51||!/native code/.test(A)){var e=new Kh(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=e.constructor={};if(n[D9]=r,vp=e.then(function(){})instanceof r,!vp)return!0}return!t&&(k9||H9)&&!uC}),Vh={CONSTRUCTOR:R9,REJECTION_EVENT:uC,SUBCLASSING:vp},to={},cC=oi,j9=TypeError,G9=function(A){var t,e;this.promise=new A(function(r,n){if(t!==void 0||e!==void 0)throw j9("Bad Promise constructor");t=r,e=n}),this.resolve=cC(t),this.reject=cC(e)};to.f=function(A){return new G9(A)};var K9=gr,hd=Hh,Yi=OA,eo=zA,lC=Ra,dC=Sb,V9=tp,$9=BR,z9=oi,ud=oA,W9=si,q9=bR,X9=Hb,fC=tC.set,yp=E9,Y9=U9,J9=wp,Z9=AC,gC=Jl,cd=od,bp=Vh,pC=to,ld="Promise",mC=bp.CONSTRUCTOR,tj=bp.REJECTION_EVENT,ej=bp.SUBCLASSING,Cp=gC.getterFor(ld),Aj=gC.set,Ao=cd&&cd.prototype,Ka=cd,dd=Ao,wC=Yi.TypeError,xp=Yi.document,Fp=Yi.process,Qp=pC.f,rj=Qp,nj=!!(xp&&xp.createEvent&&Yi.dispatchEvent),BC="unhandledrejection",ij="rejectionhandled",vC=0,yC=1,aj=2,Ep=1,bC=2,fd,CC,sj,xC,FC=function(A){var t;return W9(A)&&ud(t=A.then)?t:!1},QC=function(A,t){var e=t.value,r=t.state==yC,n=r?A.ok:A.fail,i=A.resolve,a=A.reject,s=A.domain,o,h,u;try{n?(r||(t.rejection===bC&&hj(t),t.rejection=Ep),n===!0?o=e:(s&&s.enter(),o=n(e),s&&(s.exit(),u=!0)),o===A.promise?a(wC("Promise-chain cycle")):(h=FC(o))?eo(h,o,i,a):i(o)):a(e)}catch(d){s&&!u&&s.exit(),a(d)}},EC=function(A,t){A.notified||(A.notified=!0,yp(function(){for(var e=A.reactions,r;r=e.get();)QC(r,A);A.notified=!1,t&&!A.rejection&&oj(A)}))},UC=function(A,t,e){var r,n;nj?(r=xp.createEvent("Event"),r.promise=t,r.reason=e,r.initEvent(A,!1,!0),Yi.dispatchEvent(r)):r={promise:t,reason:e},!tj&&(n=Yi["on"+A])?n(r):A===BC&&Y9("Unhandled promise rejection",e)},oj=function(A){eo(fC,Yi,function(){var t=A.facade,e=A.value,r=SC(A),n;if(r&&(n=J9(function(){hd?Fp.emit("unhandledRejection",e,t):UC(BC,t,e)}),A.rejection=hd||SC(A)?bC:Ep,n.error))throw n.value})},SC=function(A){return A.rejection!==Ep&&!A.parent},hj=function(A){eo(fC,Yi,function(){var t=A.facade;hd?Fp.emit("rejectionHandled",t):UC(ij,t,A.value)})},ro=function(A,t,e){return function(r){A(t,r,e)}},no=function(A,t,e){A.done||(A.done=!0,e&&(A=e),A.value=t,A.state=aj,EC(A,!0))},Up=function(A,t,e){if(!A.done){A.done=!0,e&&(A=e);try{if(A.facade===t)throw wC("Promise can't be resolved itself");var r=FC(t);r?yp(function(){var n={done:!1};try{eo(r,t,ro(Up,n,A),ro(no,n,A))}catch(i){no(n,i,A)}}):(A.value=t,A.state=yC,EC(A,!1))}catch(n){no({done:!1},n,A)}}};if(mC&&(Ka=function(A){q9(this,dd),z9(A),eo(fd,this);var t=Cp(this);try{A(ro(Up,t),ro(no,t))}catch(e){no(t,e)}},dd=Ka.prototype,fd=function(A){Aj(this,{type:ld,done:!1,notified:!1,parent:!1,reactions:new Z9,rejection:!1,state:vC,value:void 0})},fd.prototype=lC(dd,"then",function(A,t){var e=Cp(this),r=Qp(X9(this,Ka));return e.parent=!0,r.ok=ud(A)?A:!0,r.fail=ud(t)&&t,r.domain=hd?Fp.domain:void 0,e.state==vC?e.reactions.add(r):yp(function(){QC(r,e)}),r.promise}),CC=function(){var A=new fd,t=Cp(A);this.promise=A,this.resolve=ro(Up,t),this.reject=ro(no,t)},pC.f=Qp=function(A){return A===Ka||A===sj?new CC(A):rj(A)},ud(cd)&&Ao!==Object.prototype)){xC=Ao.then,ej||lC(Ao,"then",function(A,t){var e=this;return new Ka(function(r,n){eo(xC,e,r,n)}).then(A,t)},{unsafe:!0});try{delete Ao.constructor}catch{}dC&&dC(Ao,dd)}K9({global:!0,constructor:!0,wrap:!0,forced:mC},{Promise:Ka}),V9(Ka,ld,!1),$9(ld);var $h={},uj=kA,cj=$h,lj=uj("iterator"),dj=Array.prototype,fj=function(A){return A!==void 0&&(cj.Array===A||dj[lj]===A)},gj=ep,LC=qs,pj=Ha,mj=$h,wj=kA,Bj=wj("iterator"),IC=function(A){if(!pj(A))return LC(A,Bj)||LC(A,"@@iterator")||mj[gj(A)]},vj=zA,yj=oi,bj=Ar,Cj=Kl,xj=IC,Fj=TypeError,Qj=function(A,t){var e=arguments.length<2?xj(A):t;if(yj(e))return bj(vj(e,A));throw Fj(Cj(A)+" is not iterable")},Ej=zA,_C=Ar,Uj=qs,Sj=function(A,t,e){var r,n;_C(A);try{if(r=Uj(A,"return"),!r){if(t==="throw")throw e;return e}r=Ej(r,A)}catch(i){n=!0,r=i}if(t==="throw")throw e;if(n)throw r;return _C(r),e},Lj=np,Ij=zA,_j=Ar,Nj=Kl,Pj=fj,Tj=Ad,NC=Rl,Mj=Qj,Oj=IC,PC=Sj,kj=TypeError,gd=function(A,t){this.stopped=A,this.result=t},TC=gd.prototype,MC=function(A,t,e){var r=e&&e.that,n=!!(e&&e.AS_ENTRIES),i=!!(e&&e.IS_RECORD),a=!!(e&&e.IS_ITERATOR),s=!!(e&&e.INTERRUPTED),o=Lj(t,r),h,u,d,f,l,p,w,y=function(C){return h&&PC(h,"normal",C),new gd(!0,C)},v=function(C){return n?(_j(C),s?o(C[0],C[1],y):o(C[0],C[1])):s?o(C,y):o(C)};if(i)h=A.iterator;else if(a)h=A;else{if(u=Oj(A),!u)throw kj(Nj(A)+" is not iterable");if(Pj(u)){for(d=0,f=Tj(A);f>d;d++)if(l=v(A[d]),l&&NC(TC,l))return l;return new gd(!1)}h=Mj(A,u)}for(p=i?A.next:h.next;!(w=Ij(p,h)).done;){try{l=v(w.value)}catch(C){PC(h,"throw",C)}if(typeof l=="object"&&l&&NC(TC,l))return l}return new gd(!1)},Hj=kA,OC=Hj("iterator"),kC=!1;try{var Dj=0,HC={next:function(){return{done:!!Dj++}},return:function(){kC=!0}};HC[OC]=function(){return this},Array.from(HC,function(){throw 2})}catch{}var Rj=function(A,t){if(!t&&!kC)return!1;var e=!1;try{var r={};r[OC]=function(){return{next:function(){return{done:e=!0}}}},A(r)}catch{}return e},jj=od,Gj=Rj,Kj=Vh.CONSTRUCTOR,DC=Kj||!Gj(function(A){jj.all(A).then(void 0,function(){})}),Vj=gr,$j=zA,zj=oi,Wj=to,qj=wp,Xj=MC,Yj=DC;Vj({target:"Promise",stat:!0,forced:Yj},{all:function(A){var t=this,e=Wj.f(t),r=e.resolve,n=e.reject,i=qj(function(){var a=zj(t.resolve),s=[],o=0,h=1;Xj(A,function(u){var d=o++,f=!1;h++,$j(a,t,u).then(function(l){f||(f=!0,s[d]=l,--h||r(s))},n)}),--h||r(s)});return i.error&&n(i.value),e.promise}});var Jj=gr,Zj=Vh.CONSTRUCTOR,Sp=od,tG=Da,eG=oA,AG=Ra,RC=Sp&&Sp.prototype;if(Jj({target:"Promise",proto:!0,forced:Zj,real:!0},{catch:function(A){return this.then(void 0,A)}}),eG(Sp)){var jC=tG("Promise").prototype.catch;RC.catch!==jC&&AG(RC,"catch",jC,{unsafe:!0})}var rG=gr,nG=zA,iG=oi,aG=to,sG=wp,oG=MC,hG=DC;rG({target:"Promise",stat:!0,forced:hG},{race:function(A){var t=this,e=aG.f(t),r=e.reject,n=sG(function(){var i=iG(t.resolve);oG(A,function(a){nG(i,t,a).then(e.resolve,r)})});return n.error&&r(n.value),e.promise}});var uG=gr,cG=zA,lG=to,dG=Vh.CONSTRUCTOR;uG({target:"Promise",stat:!0,forced:dG},{reject:function(A){var t=lG.f(this);return cG(t.reject,void 0,A),t.promise}});var fG=Ar,gG=si,pG=to,mG=function(A,t){if(fG(A),gG(t)&&t.constructor===A)return t;var e=pG.f(A),r=e.resolve;return r(t),e.promise},wG=gr,BG=Da,vG=Vh.CONSTRUCTOR,yG=mG;BG("Promise"),wG({target:"Promise",stat:!0,forced:vG},{resolve:function(A){return yG(this,A)}});function GC(A,t,e,r,n,i,a){try{var s=A[i](a),o=s.value}catch(h){e(h);return}s.done?t(o):Promise.resolve(o).then(r,n)}function hi(A){return function(){var t=this,e=arguments;return new Promise(function(r,n){var i=A.apply(t,e);function a(o){GC(i,r,n,a,s,"next",o)}function s(o){GC(i,r,n,a,s,"throw",o)}a(void 0)})}}var bG=ep,CG=String,zn=function(A){if(bG(A)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return CG(A)},xG=Ar,KC=function(){var A=xG(this),t="";return A.hasIndices&&(t+="d"),A.global&&(t+="g"),A.ignoreCase&&(t+="i"),A.multiline&&(t+="m"),A.dotAll&&(t+="s"),A.unicode&&(t+="u"),A.unicodeSets&&(t+="v"),A.sticky&&(t+="y"),t},Lp=pA,FG=OA,Ip=FG.RegExp,_p=Lp(function(){var A=Ip("a","y");return A.lastIndex=2,A.exec("abcd")!=null}),QG=_p||Lp(function(){return!Ip("a","y").sticky}),EG=_p||Lp(function(){var A=Ip("^r","gy");return A.lastIndex=2,A.exec("str")!=null}),VC={BROKEN_CARET:EG,MISSED_STICKY:QG,UNSUPPORTED_Y:_p},$C={},UG=Fb,SG=J0,LG=Object.keys||function(A){return UG(A,SG)},IG=Gn,_G=cb,NG=Vn,PG=Ar,TG=Th,MG=LG;$C.f=IG&&!_G?Object.defineProperties:function(A,t){PG(A);for(var e=TG(t),r=MG(t),n=r.length,i=0,a;n>i;)NG.f(A,a=r[i++],e[a]);return A};var OG=Ar,kG=$C,zC=J0,HG=V0,DG=Kb,RG=zl,jG=K0,WC=">",qC="<",Np="prototype",Pp="script",XC=jG("IE_PROTO"),Tp=function(){},YC=function(A){return qC+Pp+WC+A+qC+"/"+Pp+WC},JC=function(A){A.write(YC("")),A.close();var t=A.parentWindow.Object;return A=null,t},GG=function(){var A=RG("iframe"),t="java"+Pp+":",e;return A.style.display="none",DG.appendChild(A),A.src=String(t),e=A.contentWindow.document,e.open(),e.write(YC("document.F=Object")),e.close(),e.F},pd,md=function(){try{pd=new ActiveXObject("htmlfile")}catch{}md=typeof document<"u"?document.domain&&pd?JC(pd):GG():JC(pd);for(var A=zC.length;A--;)delete md[Np][zC[A]];return md()};HG[XC]=!0;var Mp=Object.create||function(A,t){var e;return A!==null?(Tp[Np]=OG(A),e=new Tp,Tp[Np]=null,e[XC]=A):e=md(),t===void 0?e:kG.f(e,t)},KG=pA,VG=OA,$G=VG.RegExp,zG=KG(function(){var A=$G(".","s");return!(A.dotAll&&A.exec(`
`)&&A.flags==="s")}),WG=pA,qG=OA,XG=qG.RegExp,YG=WG(function(){var A=XG("(?<a>b)","g");return A.exec("b").groups.a!=="b"||"b".replace(A,"$<a>c")!=="bc"}),io=zA,wd=mA,JG=zn,ZG=KC,tK=VC,eK=Vl.exports,AK=Mp,rK=Jl.get,nK=zG,iK=YG,aK=eK("native-string-replace",String.prototype.replace),Bd=RegExp.prototype.exec,Op=Bd,sK=wd("".charAt),oK=wd("".indexOf),hK=wd("".replace),kp=wd("".slice),Hp=function(){var A=/a/,t=/b*/g;return io(Bd,A,"a"),io(Bd,t,"a"),A.lastIndex!==0||t.lastIndex!==0}(),ZC=tK.BROKEN_CARET,Dp=/()??/.exec("")[1]!==void 0,uK=Hp||Dp||ZC||nK||iK;uK&&(Op=function(A){var t=this,e=rK(t),r=JG(A),n=e.raw,i,a,s,o,h,u,d;if(n)return n.lastIndex=t.lastIndex,i=io(Op,n,r),t.lastIndex=n.lastIndex,i;var f=e.groups,l=ZC&&t.sticky,p=io(ZG,t),w=t.source,y=0,v=r;if(l&&(p=hK(p,"y",""),oK(p,"g")===-1&&(p+="g"),v=kp(r,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&sK(r,t.lastIndex-1)!==`
`)&&(w="(?: "+w+")",v=" "+v,y++),a=new RegExp("^(?:"+w+")",p)),Dp&&(a=new RegExp("^"+w+"$(?!\\s)",p)),Hp&&(s=t.lastIndex),o=io(Bd,l?a:t,v),l?o?(o.input=kp(o.input,y),o[0]=kp(o[0],y),o.index=t.lastIndex,t.lastIndex+=o[0].length):t.lastIndex=0:Hp&&o&&(t.lastIndex=t.global?o.index+o[0].length:s),Dp&&o&&o.length>1&&io(aK,o[0],a,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(o[h]=void 0)}),o&&f)for(o.groups=u=AK(null),h=0;h<f.length;h++)d=f[h],u[d[0]]=o[d[1]];return o});var vd=Op,cK=gr,t4=vd;cK({target:"RegExp",proto:!0,forced:/./.exec!==t4},{exec:t4});var e4=Rh,A4=Ra,lK=vd,r4=pA,n4=kA,dK=Mh,fK=n4("species"),Rp=RegExp.prototype,jp=function(A,t,e,r){var n=n4(A),i=!r4(function(){var h={};return h[n]=function(){return 7},""[A](h)!=7}),a=i&&!r4(function(){var h=!1,u=/a/;return A==="split"&&(u={},u.constructor={},u.constructor[fK]=function(){return u},u.flags="",u[n]=/./[n]),u.exec=function(){return h=!0,null},u[n](""),!h});if(!i||!a||e){var s=e4(/./[n]),o=t(n,""[A],function(h,u,d,f,l){var p=e4(h),w=u.exec;return w===lK||w===Rp.exec?i&&!l?{done:!0,value:s(u,d,f)}:{done:!0,value:p(d,u,f)}:{done:!1}});A4(String.prototype,A,o[0]),A4(Rp,n,o[1])}r&&dK(Rp[n],"sham",!0)},Gp=mA,gK=ed,pK=zn,mK=Kn,wK=Gp("".charAt),i4=Gp("".charCodeAt),BK=Gp("".slice),a4=function(A){return function(t,e){var r=pK(mK(t)),n=gK(e),i=r.length,a,s;return n<0||n>=i?A?"":void 0:(a=i4(r,n),a<55296||a>56319||n+1===i||(s=i4(r,n+1))<56320||s>57343?A?wK(r,n):a:A?BK(r,n,n+2):(a-55296<<10)+(s-56320)+65536)}},vK={codeAt:a4(!1),charAt:a4(!0)},yK=vK.charAt,Kp=function(A,t,e){return t+(e?yK(A,t).length:1)},s4=zA,bK=Ar,CK=oA,xK=ka,FK=vd,QK=TypeError,Vp=function(A,t){var e=A.exec;if(CK(e)){var r=s4(e,A,t);return r!==null&&bK(r),r}if(xK(A)==="RegExp")return s4(FK,A,t);throw QK("RegExp#exec called on incompatible receiver")},EK=zA,UK=jp,SK=Ar,LK=Ha,IK=Js,$p=zn,_K=Kn,NK=qs,PK=Kp,o4=Vp;UK("match",function(A,t,e){return[function(r){var n=_K(this),i=LK(r)?void 0:NK(r,A);return i?EK(i,r,n):new RegExp(r)[A]($p(n))},function(r){var n=SK(this),i=$p(r),a=e(t,n,i);if(a.done)return a.value;if(!n.global)return o4(n,i);var s=n.unicode;n.lastIndex=0;for(var o=[],h=0,u;(u=o4(n,i))!==null;){var d=$p(u[0]);o[h]=d,d===""&&(n.lastIndex=PK(i,IK(n.lastIndex),s)),h++}return h===0?null:o}]});var zp=mA,TK=$l,MK=Math.floor,Wp=zp("".charAt),OK=zp("".replace),qp=zp("".slice),kK=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HK=/\$([$&'`]|\d{1,2})/g,DK=function(A,t,e,r,n,i){var a=e+A.length,s=r.length,o=HK;return n!==void 0&&(n=TK(n),o=kK),OK(i,o,function(h,u){var d;switch(Wp(u,0)){case"$":return"$";case"&":return A;case"`":return qp(t,0,e);case"'":return qp(t,a);case"<":d=n[qp(u,1,-1)];break;default:var f=+u;if(f===0)return h;if(f>s){var l=MK(f/10);return l===0?h:l<=s?r[l-1]===void 0?Wp(u,1):r[l-1]+Wp(u,1):h}d=r[f-1]}return d===void 0?"":d})},RK=rp,h4=zA,yd=mA,jK=jp,GK=pA,KK=Ar,VK=oA,$K=Ha,zK=ed,WK=Js,ao=zn,qK=Kn,XK=Kp,YK=qs,JK=DK,ZK=Vp,tV=kA,Xp=tV("replace"),eV=Math.max,AV=Math.min,rV=yd([].concat),Yp=yd([].push),u4=yd("".indexOf),c4=yd("".slice),nV=function(A){return A===void 0?A:String(A)},iV=function(){return"a".replace(/./,"$0")==="$0"}(),l4=function(){return/./[Xp]?/./[Xp]("a","$0")==="":!1}(),aV=!GK(function(){var A=/./;return A.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(A,"$<a>")!=="7"});jK("replace",function(A,t,e){var r=l4?"$":"$0";return[function(n,i){var a=qK(this),s=$K(n)?void 0:YK(n,Xp);return s?h4(s,n,a,i):h4(t,ao(a),n,i)},function(n,i){var a=KK(this),s=ao(n);if(typeof i=="string"&&u4(i,r)===-1&&u4(i,"$<")===-1){var o=e(t,a,s,i);if(o.done)return o.value}var h=VK(i);h||(i=ao(i));var u=a.global;if(u){var d=a.unicode;a.lastIndex=0}for(var f=[];;){var l=ZK(a,s);if(l===null||(Yp(f,l),!u))break;var p=ao(l[0]);p===""&&(a.lastIndex=XK(s,WK(a.lastIndex),d))}for(var w="",y=0,v=0;v<f.length;v++){l=f[v];for(var C=ao(l[0]),x=eV(AV(zK(l.index),s.length),0),L=[],k=1;k<l.length;k++)Yp(L,nV(l[k]));var M=l.groups;if(h){var H=rV([C],L,x,s);M!==void 0&&Yp(H,M);var N=ao(RK(i,void 0,H))}else N=JK(C,s,x,L,M,i);x>=y&&(w+=c4(s,y,x)+N,y=x+C.length)}return w+c4(s,y)}]},!aV||!iV||l4);var sV=si,oV=ka,hV=kA,uV=hV("match"),d4=function(A){var t;return sV(A)&&((t=A[uV])!==void 0?!!t:oV(A)=="RegExp")},cV=d4,lV=TypeError,Jp=function(A){if(cV(A))throw lV("The method doesn't accept regular expressions");return A},dV=kA,fV=dV("match"),Zp=function(A){var t=/./;try{"/./"[A](t)}catch{try{return t[fV]=!1,"/./"[A](t)}catch{}}return!1},gV=gr,f4=Rh,pV=Ws.f,mV=Js,g4=zn,wV=Jp,BV=Kn,vV=Zp,p4=f4("".startsWith),yV=f4("".slice),bV=Math.min,m4=vV("startsWith"),CV=!m4&&!!function(){var A=pV(String.prototype,"startsWith");return A&&!A.writable}();gV({target:"String",proto:!0,forced:!CV&&!m4},{startsWith:function(A){var t=g4(BV(this));wV(A);var e=mV(bV(arguments.length>1?arguments[1]:void 0,t.length)),r=g4(A);return p4?p4(t,r,e):yV(t,e,e+r.length)===r}});var xV=kA,FV=Mp,QV=Vn.f,t2=xV("unscopables"),e2=Array.prototype;e2[t2]==null&&QV(e2,t2,{configurable:!0,value:FV(null)});var EV=function(A){e2[t2][A]=!0},UV=pA,SV=!UV(function(){function A(){}return A.prototype.constructor=null,Object.getPrototypeOf(new A)!==A.prototype}),LV=wn,IV=oA,_V=$l,NV=K0,PV=SV,w4=NV("IE_PROTO"),A2=Object,TV=A2.prototype,B4=PV?A2.getPrototypeOf:function(A){var t=_V(A);if(LV(t,w4))return t[w4];var e=t.constructor;return IV(e)&&t instanceof e?e.prototype:t instanceof A2?TV:null},MV=pA,OV=oA,kV=si,v4=B4,HV=Ra,DV=kA,r2=DV("iterator"),y4=!1,Va,n2,i2;[].keys&&(i2=[].keys(),"next"in i2?(n2=v4(v4(i2)),n2!==Object.prototype&&(Va=n2)):y4=!0);var RV=!kV(Va)||MV(function(){var A={};return Va[r2].call(A)!==A});RV&&(Va={}),OV(Va[r2])||HV(Va,r2,function(){return this});var b4={IteratorPrototype:Va,BUGGY_SAFARI_ITERATORS:y4},jV=b4.IteratorPrototype,GV=Mp,KV=Dl,VV=tp,$V=$h,zV=function(){return this},WV=function(A,t,e,r){var n=t+" Iterator";return A.prototype=GV(jV,{next:KV(+!r,e)}),VV(A,n,!1),$V[n]=zV,A},qV=gr,XV=zA,C4=ql,YV=oA,JV=WV,x4=B4,F4=Sb,ZV=tp,t$=Mh,a2=Ra,e$=kA,A$=$h,Q4=b4,r$=C4.PROPER,n$=C4.CONFIGURABLE,E4=Q4.IteratorPrototype,bd=Q4.BUGGY_SAFARI_ITERATORS,zh=e$("iterator"),U4="keys",Wh="values",S4="entries",i$=function(){return this},a$=function(A,t,e,r,n,i,a){JV(e,t,r);var s=function(v){if(v===n&&f)return f;if(!bd&&v in u)return u[v];switch(v){case U4:return function(){return new e(this,v)};case Wh:return function(){return new e(this,v)};case S4:return function(){return new e(this,v)}}return function(){return new e(this)}},o=t+" Iterator",h=!1,u=A.prototype,d=u[zh]||u["@@iterator"]||n&&u[n],f=!bd&&d||s(n),l=t=="Array"&&u.entries||d,p,w,y;if(l&&(p=x4(l.call(new A)),p!==Object.prototype&&p.next&&(x4(p)!==E4&&(F4?F4(p,E4):YV(p[zh])||a2(p,zh,i$)),ZV(p,o,!0))),r$&&n==Wh&&d&&d.name!==Wh&&(n$?t$(u,"name",Wh):(h=!0,f=function(){return XV(d,this)})),n)if(w={values:s(Wh),keys:i?f:s(U4),entries:s(S4)},a)for(y in w)(bd||h||!(y in u))&&a2(u,y,w[y]);else qV({target:t,proto:!0,forced:bd||h},w);return u[zh]!==f&&a2(u,zh,f,{name:n}),A$[t]=f,w},s$=function(A,t){return{value:A,done:t}},o$=Th,s2=EV,L4=$h,I4=Jl,h$=Vn.f,u$=a$,Cd=s$,c$=Gn,_4="Array Iterator",l$=I4.set,d$=I4.getterFor(_4),f$=u$(Array,"Array",function(A,t){l$(this,{type:_4,target:o$(A),index:0,kind:t})},function(){var A=d$(this),t=A.target,e=A.kind,r=A.index++;return!t||r>=t.length?(A.target=void 0,Cd(void 0,!0)):e=="keys"?Cd(r,!1):e=="values"?Cd(t[r],!1):Cd([r,t[r]],!1)},"values"),N4=L4.Arguments=L4.Array;if(s2("keys"),s2("values"),s2("entries"),c$&&N4.name!=="values")try{h$(N4,"name",{value:"values"})}catch{}var g$={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},p$=zl,o2=p$("span").classList,P4=o2&&o2.constructor&&o2.constructor.prototype,m$=P4===Object.prototype?void 0:P4,T4=OA,M4=g$,w$=m$,qh=f$,h2=Mh,O4=kA,u2=O4("iterator"),k4=O4("toStringTag"),c2=qh.values,H4=function(A,t){if(A){if(A[u2]!==c2)try{h2(A,u2,c2)}catch{A[u2]=c2}if(A[k4]||h2(A,k4,t),M4[t]){for(var e in qh)if(A[e]!==qh[e])try{h2(A,e,qh[e])}catch{A[e]=qh[e]}}}};for(var l2 in M4)H4(T4[l2]&&T4[l2].prototype,l2);H4(w$,"DOMTokenList");function B$(A,t){if(Le(A)!=="object"||A===null)return A;var e=A[Symbol.toPrimitive];if(e!==void 0){var r=e.call(A,t||"default");if(Le(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(A)}function v$(A){var t=B$(A,"string");return Le(t)==="symbol"?t:String(t)}function d2(A,t,e){return t=v$(t),t in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}var y$=oi,b$=$l,C$=Ry,x$=Ad,F$=TypeError,D4=function(A){return function(t,e,r,n){y$(e);var i=b$(t),a=C$(i),s=x$(i),o=A?s-1:0,h=A?-1:1;if(r<2)for(;;){if(o in a){n=a[o],o+=h;break}if(o+=h,A?o<0:s<=o)throw F$("Reduce of empty array with no initial value")}for(;A?o>=0:s>o;o+=h)o in a&&(n=e(n,a[o],o,i));return n}},Q$={left:D4(!1),right:D4(!0)},E$=pA,R4=function(A,t){var e=[][A];return!!e&&E$(function(){e.call(null,t||function(){return 1},1)})},U$=gr,S$=Q$.left,L$=R4,j4=Q0,I$=Hh,_$=!I$&&j4>79&&j4<83,N$=_$||!L$("reduce");U$({target:"Array",proto:!0,forced:N$},{reduce:function(A){var t=arguments.length;return S$(this,A,t,t>1?arguments[1]:void 0)}});var P$=gr,G4=Rh,T$=Ws.f,M$=Js,K4=zn,O$=Jp,k$=Kn,H$=Zp,V4=G4("".endsWith),D$=G4("".slice),R$=Math.min,$4=H$("endsWith"),j$=!$4&&!!function(){var A=T$(String.prototype,"endsWith");return A&&!A.writable}();P$({target:"String",proto:!0,forced:!j$&&!$4},{endsWith:function(A){var t=K4(k$(this));O$(A);var e=arguments.length>1?arguments[1]:void 0,r=t.length,n=e===void 0?r:R$(M$(e),r),i=K4(A);return V4?V4(t,i,n):D$(t,n-i.length,n)===i}});var G$=N0,K$=Vn,V$=Dl,$$=function(A,t,e){var r=G$(t);r in A?K$.f(A,r,V$(0,e)):A[r]=e},z4=yb,z$=Ad,W$=$$,q$=Array,X$=Math.max,Y$=function(A,t,e){for(var r=z$(A),n=z4(t,r),i=z4(e===void 0?r:e,r),a=q$(X$(i-n,0)),s=0;n<i;n++,s++)W$(a,s,A[n]);return a.length=s,a},J$=rp,Xh=zA,f2=mA,Z$=jp,tz=Ar,ez=Ha,Az=d4,W4=Kn,rz=Hb,nz=Kp,iz=Js,g2=zn,az=qs,q4=Y$,X4=Vp,sz=vd,oz=VC,hz=pA,so=oz.UNSUPPORTED_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment