vue-data-ui 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue-data-ui.umd.cjs
CHANGED
|
@@ -136,7 +136,7 @@ T* `):m.join(` Tj
|
|
|
136
136
|
`),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:ut.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=ut.RadioButton.Cross.YesNormal,e.D[t]=ut.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=di(t);e.scope=t.scope;var r=[],A=ut.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+St(ut.internal.getWidth(t)-2)+" "+St(ut.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(St(A.x1.x)+" "+St(A.x1.y)+" m"),r.push(St(A.x2.x)+" "+St(A.x2.y)+" l"),r.push(St(A.x4.x)+" "+St(A.x4.y)+" m"),r.push(St(A.x3.x)+" "+St(A.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
|
|
137
137
|
`),e},YesPushDown:function(t){var e=di(t);e.scope=t.scope;var r=ut.internal.calculateCross(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+St(ut.internal.getWidth(t))+" "+St(ut.internal.getHeight(t))+" re"),A.push("f"),A.push("q"),A.push("1 1 "+St(ut.internal.getWidth(t)-2)+" "+St(ut.internal.getHeight(t)-2)+" re"),A.push("W"),A.push("n"),A.push(St(r.x1.x)+" "+St(r.x1.y)+" m"),A.push(St(r.x2.x)+" "+St(r.x2.y)+" l"),A.push(St(r.x4.x)+" "+St(r.x4.y)+" m"),A.push(St(r.x3.x)+" "+St(r.x3.y)+" l"),A.push("s"),A.push("Q"),e.stream=A.join(`
|
|
138
138
|
`),e},OffPushDown:function(t){var e=di(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+St(ut.internal.getWidth(t))+" "+St(ut.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
|
|
139
|
-
`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};ut.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=ut.internal.getWidth(t),r=ut.internal.getHeight(t),A=Math.min(e,r);return{x1:{x:(e-A)/2,y:(r-A)/2+A},x2:{x:(e-A)/2+A,y:(r-A)/2},x3:{x:(e-A)/2,y:(r-A)/2},x4:{x:(e-A)/2+A,y:(r-A)/2+A}}}},ut.internal.getWidth=function(t){var e=0;return zt(t)==="object"&&(e=ew(t.Rect[2])),e},ut.internal.getHeight=function(t){var e=0;return zt(t)==="object"&&(e=ew(t.Rect[3])),e};var uU=Fr.addField=function(t){if(fU(this,t),!(t instanceof Rn))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Fr.AcroFormChoiceField=eo,Fr.AcroFormListBox=to,Fr.AcroFormComboBox=ro,Fr.AcroFormEditBox=Zf,Fr.AcroFormButton=iA,Fr.AcroFormPushButton=e0,Fr.AcroFormRadioButton=Ao,Fr.AcroFormCheckBox=r0,Fr.AcroFormTextField=ns,Fr.AcroFormPasswordField=A0,Fr.AcroFormAppearance=ut,Fr.AcroForm={ChoiceField:eo,ListBox:to,ComboBox:ro,EditBox:Zf,Button:iA,PushButton:e0,RadioButton:Ao,CheckBox:r0,TextField:ns,PasswordField:A0,Appearance:ut},xt.AcroForm={ChoiceField:eo,ListBox:to,ComboBox:ro,EditBox:Zf,Button:iA,PushButton:e0,RadioButton:Ao,CheckBox:r0,TextField:ns,PasswordField:A0,Appearance:ut};function nw(t){return t.reduce(function(e,r,A){return e[r]=A,e},{})}(function(t){t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},A=t.__addimage__.getImageFileTypeByImageData=function(U,T){var V,Y,ce,he,me,ge=e;if((T=T||e)==="RGBA"||U.data!==void 0&&U.data instanceof Uint8ClampedArray&&"height"in U&&"width"in U)return"RGBA";if(q(U))for(me in r)for(ce=r[me],V=0;V<ce.length;V+=1){for(he=!0,Y=0;Y<ce[V].length;Y+=1)if(ce[V][Y]!==void 0&&ce[V][Y]!==U[Y]){he=!1;break}if(he===!0){ge=me;break}}else for(me in r)for(ce=r[me],V=0;V<ce.length;V+=1){for(he=!0,Y=0;Y<ce[V].length;Y+=1)if(ce[V][Y]!==void 0&&ce[V][Y]!==U.charCodeAt(Y)){he=!1;break}if(he===!0){ge=me;break}}return ge===e&&T!==e&&(ge=T),ge},n=function U(T){for(var V=this.internal.write,Y=this.internal.putStream,ce=(0,this.internal.getFilters)();ce.indexOf("FlateEncode")!==-1;)ce.splice(ce.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var he=[];if(he.push({key:"Type",value:"/XObject"}),he.push({key:"Subtype",value:"/Image"}),he.push({key:"Width",value:T.width}),he.push({key:"Height",value:T.height}),T.colorSpace===x.INDEXED?he.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(he.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===x.DEVICE_CMYK&&he.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),he.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&he.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)){for(var me="",ge=0,we=T.transparency.length;ge<we;ge++)me+=T.transparency[ge]+" "+T.transparency[ge]+" ";he.push({key:"Mask",value:"["+me+"]"})}T.sMask!==void 0&&he.push({key:"SMask",value:T.objectId+1+" 0 R"});var Be=T.filter!==void 0?["/"+T.filter]:void 0;if(Y({data:T.data,additionalKeyValues:he,alreadyAppliedFilters:Be,objectId:T.objectId}),V("endobj"),"sMask"in T&&T.sMask!==void 0){var ke="/Predictor "+T.predictor+" /Colors 1 /BitsPerComponent "+T.bitsPerComponent+" /Columns "+T.width,C={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:T.bitsPerComponent,decodeParameters:ke,data:T.sMask};"filter"in T&&(C.filter=T.filter),U.call(this,C)}if(T.colorSpace===x.INDEXED){var _=this.internal.newObject();Y({data:Q(new Uint8Array(T.palette)),objectId:_}),V("endobj")}},i=function(){var U=this.internal.collections.addImage_images;for(var T in U)n.call(this,U[T])},a=function(){var U,T=this.internal.collections.addImage_images,V=this.internal.write;for(var Y in T)V("/I"+(U=T[Y]).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},l=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(U){return typeof t["process"+U.toUpperCase()]=="function"},h=function(U){return zt(U)==="object"&&U.nodeType===1},d=function(U,T){if(U.nodeName==="IMG"&&U.hasAttribute("src")){var V=""+U.getAttribute("src");if(V.indexOf("data:image/")===0)return Il(unescape(V).split("base64,").pop());var Y=t.loadFile(V,!0);if(Y!==void 0)return Y}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 ce;switch(T){case"PNG":ce="image/png";break;case"WEBP":ce="image/webp";break;case"JPEG":case"JPG":default:ce="image/jpeg"}return Il(U.toDataURL(ce,1).split("base64,").pop())}},u=function(U){var T=this.internal.collections.addImage_images;if(T){for(var V in T)if(U===T[V].alias)return T[V]}},w=function(U,T,V){return U||T||(U=-96,T=-96),U<0&&(U=-1*V.width*72/U/this.internal.scaleFactor),T<0&&(T=-1*V.height*72/T/this.internal.scaleFactor),U===0&&(U=T*V.width/V.height),T===0&&(T=U*V.height/V.width),[U,T]},v=function(U,T,V,Y,ce,he){var me=w.call(this,V,Y,ce),ge=this.internal.getCoordinateString,we=this.internal.getVerticalCoordinateString,Be=o.call(this);if(V=me[0],Y=me[1],Be[ce.index]=ce,he){he*=Math.PI/180;var ke=Math.cos(he),C=Math.sin(he),_=function(O){return O.toFixed(4)},S=[_(ke),_(C),_(-1*C),_(ke),0,0,"cm"]}this.internal.write("q"),he?(this.internal.write([1,"0","0",1,ge(U),we(T+Y),"cm"].join(" ")),this.internal.write(S.join(" ")),this.internal.write([ge(V),"0","0",ge(Y),"0","0","cm"].join(" "))):this.internal.write([ge(V),"0","0",ge(Y),ge(U),we(T+Y),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ce.index+" Do"),this.internal.write("Q")},x=t.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"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=t.__addimage__.sHashCode=function(U){var T,V,Y=0;if(typeof U=="string")for(V=U.length,T=0;T<V;T++)Y=(Y<<5)-Y+U.charCodeAt(T),Y|=0;else if(q(U))for(V=U.byteLength/2,T=0;T<V;T++)Y=(Y<<5)-Y+U[T],Y|=0;return Y},F=t.__addimage__.validateStringAsBase64=function(U){(U=U||"").toString().trim();var T=!0;return U.length===0&&(T=!1),U.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(U.substr(0,U.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(U.substr(-2))===!1&&(T=!1),T},k=t.__addimage__.extractImageFromDataUrl=function(U){var T=(U=U||"").split("base64,"),V=null;if(T.length===2){var Y=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(T[0]);Array.isArray(Y)&&(V={mimeType:Y[1],charset:Y[2],data:T[1]})}return V},X=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(U){return X()&&U instanceof ArrayBuffer};var q=t.__addimage__.isArrayBufferView=function(U){return X()&&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)},N=t.__addimage__.binaryStringToUint8Array=function(U){for(var T=U.length,V=new Uint8Array(T),Y=0;Y<T;Y++)V[Y]=U.charCodeAt(Y);return V},Q=t.__addimage__.arrayBufferToBinaryString=function(U){for(var T="",V=q(U)?U:new Uint8Array(U),Y=0;Y<V.length;Y+=8192)T+=String.fromCharCode.apply(null,V.subarray(Y,Y+8192));return T};t.addImage=function(){var U,T,V,Y,ce,he,me,ge,we;if(typeof arguments[1]=="number"?(T=e,V=arguments[1],Y=arguments[2],ce=arguments[3],he=arguments[4],me=arguments[5],ge=arguments[6],we=arguments[7]):(T=arguments[1],V=arguments[2],Y=arguments[3],ce=arguments[4],he=arguments[5],me=arguments[6],ge=arguments[7],we=arguments[8]),zt(U=arguments[0])==="object"&&!h(U)&&"imageData"in U){var Be=U;U=Be.imageData,T=Be.format||T||e,V=Be.x||V||0,Y=Be.y||Y||0,ce=Be.w||Be.width||ce,he=Be.h||Be.height||he,me=Be.alias||me,ge=Be.compression||ge,we=Be.rotation||Be.angle||we}var ke=this.internal.getFilters();if(ge===void 0&&ke.indexOf("FlateEncode")!==-1&&(ge="SLOW"),isNaN(V)||isNaN(Y))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var C=K.call(this,U,T,me,ge);return v.call(this,V,Y,ce,he,C,we),this};var K=function(U,T,V,Y){var ce,he,me;if(typeof U=="string"&&A(U)===e){U=unescape(U);var ge=Ae(U,!1);(ge!==""||(ge=t.loadFile(U,!0))!==void 0)&&(U=ge)}if(h(U)&&(U=d(U,T)),T=A(U,T),!c(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((me=V)==null||me.length===0)&&(V=function(we){return typeof we=="string"||q(we)?E(we):q(we.data)?E(we.data):null}(U)),(ce=u.call(this,V))||(X()&&(U instanceof Uint8Array||T==="RGBA"||(he=U,U=N(U))),ce=this["process"+T.toUpperCase()](U,l.call(this),V,function(we){return we&&typeof we=="string"&&(we=we.toUpperCase()),we in t.image_compression?we:y.NONE}(Y),he)),!ce)throw new Error("An unknown error occurred whilst processing the image.");return ce},Ae=t.__addimage__.convertBase64ToBinaryString=function(U,T){var V;T=typeof T!="boolean"||T;var Y,ce="";if(typeof U=="string"){Y=(V=k(U))!==null?V.data:U;try{ce=Il(Y)}catch(he){if(T)throw F(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+he.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ce};t.getImageProperties=function(U){var T,V,Y="";if(h(U)&&(U=d(U)),typeof U=="string"&&A(U)===e&&((Y=Ae(U,!1))===""&&(Y=t.loadFile(U)||""),U=Y),V=A(U),!c(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(!X()||U instanceof Uint8Array||(U=N(U)),!(T=this["process"+V.toUpperCase()](U)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=V,T}})(xt.API),function(t){var e=function(r){if(r!==void 0&&r!="")return!0};xt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(r){for(var A,n,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(r.objId),l=r.pageContext.annotations,c=!1,h=0;h<l.length&&!c;h++)switch((A=l[h]).type){case"link":(e(A.options.url)||e(A.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(c!=0){this.internal.write("/Annots [");for(var d=0;d<l.length;d++){A=l[d];var u=this.internal.pdfEscape,w=this.internal.getEncryptor(r.objId);switch(A.type){case"reference":this.internal.write(" "+A.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(v.objId),E=A.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(A.bounds.x)+" "+s(A.bounds.y+A.bounds.h)+" "+a(A.bounds.x+A.bounds.w)+" "+s(A.bounds.y)+"] ")+"/Contents ("+u(y(A.contents))+")",i+=" /Popup "+x.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+u(y(E))+") >>",v.content=i;var F=v.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(A.bounds.x+30)+" "+s(A.bounds.y+A.bounds.h)+" "+a(A.bounds.x+A.bounds.w+30)+" "+s(A.bounds.y)+"] ")+" /Parent "+F,A.open&&(i+=" /Open true"),i+=" >>",x.content=i,this.internal.write(v.objId,"0 R",x.objId,"0 R");break;case"freetext":n="/Rect ["+a(A.bounds.x)+" "+s(A.bounds.y)+" "+a(A.bounds.x+A.bounds.w)+" "+s(A.bounds.y+A.bounds.h)+"] ";var k=A.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+u(w(A.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+k+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(A.options.name){var X=this.annotations._nameMap[A.options.name];A.options.pageNumber=X.page,A.options.top=X.y}else A.options.top||(A.options.top=0);if(n="/Rect ["+A.finalBounds.x+" "+A.finalBounds.y+" "+A.finalBounds.w+" "+A.finalBounds.h+"] ",i="",A.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+u(w(A.options.url))+") >>";else if(A.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(A.options.pageNumber).objId+" 0 R",A.options.magFactor=A.options.magFactor||"XYZ",A.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+A.options.top+"]";break;case"FitV":A.options.left=A.options.left||0,i+=" /FitV "+A.options.left+"]";break;case"XYZ":default:var q=s(A.options.top);A.options.left=A.options.left||0,A.options.zoom===void 0&&(A.options.zoom=0),i+=" /XYZ "+A.options.left+" "+q+" "+A.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(r){var A=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":A.pageContext.annotations.push(r)}},t.link=function(r,A,n,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(r),y:l(A),w:o(r+n),h:l(A+i)},options:a,type:"link"})},t.textWithLink=function(r,A,n,i){var a,s,o=this.getTextWidth(r),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var c=this.splitTextToSize(r,s).length;a=Math.ceil(l*c)}else s=o,a=l;return this.text(r,A,n,i),n+=.2*l,i.align==="center"&&(A-=o/2),i.align==="right"&&(A-=o),this.link(A,n-l,s,a,i),o},t.getTextWidth=function(r){var A=this.internal.getFontSize();return this.getStringUnitWidth(r)*A/this.internal.scaleFactor}}(xt.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},A={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(v){return e[v.charCodeAt(0)]!==void 0},a=t.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},s=t.__arabicParser__.isArabicEndLetter=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(v){return a(v)&&n.indexOf(v.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length==4},h=t.__arabicParser__.resolveLigatures=function(v){var x=0,y=r,E="",F=0;for(x=0;x<v.length;x+=1)y[v.charCodeAt(x)]!==void 0?(F++,typeof(y=y[v.charCodeAt(x)])=="number"&&(E+=String.fromCharCode(y),y=r,F=0),x===v.length-1&&(y=r,E+=v.charAt(x-(F-1)),x-=F-1,F=0)):(y=r,E+=v.charAt(x-F),x-=F,F=0);return E};t.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&A[v.charCodeAt(0)]!==void 0};var d=t.__arabicParser__.getCorrectForm=function(v,x,y){return a(v)?i(v)===!1?-1:!l(v)||!a(x)&&!a(y)||!a(y)&&s(x)||s(v)&&!a(x)||s(v)&&o(x)||s(v)&&s(x)?0:c(v)&&a(x)&&!s(x)&&a(y)&&l(y)?3:s(v)||!a(y)?1:2:-1},u=function(v){var x=0,y=0,E=0,F="",k="",X="",q=(v=v||"").split("\\s+"),N=[];for(x=0;x<q.length;x+=1){for(N.push(""),y=0;y<q[x].length;y+=1)F=q[x][y],k=q[x][y-1],X=q[x][y+1],a(F)?(E=d(F,k,X),N[x]+=E!==-1?String.fromCharCode(e[F.charCodeAt(0)][E]):F):N[x]+=F;N[x]=h(N[x])}return N.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var v,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(x)){var E=0;for(y=[],E=0;E<x.length;E+=1)Array.isArray(x[E])?y.push([u(x[E][0]),x[E][1],x[E][2]]):y.push([u(x[E])]);v=y}else v=u(x);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};t.events.push(["preProcessText",w])}(xt.API),xt.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(t){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var A=150;Object.defineProperty(this,"width",{get:function(){return A},set:function(s){A=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=A+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",{})};e.prototype.getContext=function(r,A){var n;if((r=r||"2d")!=="2d")return null;for(n in A)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=A[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(xt.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,A=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(v){o=v}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var c=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var u=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(v){w=v}}),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]},t.setHeaderFunction=function(o){return A.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},t.getTextDimensions=function(o,l){A.call(this);var c=(l=l||{}).fontSize||this.getFontSize(),h=l.font||this.getFont(),d=l.scaleFactor||this.internal.scaleFactor,u=0,w=0,v=0,x=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 y=l.maxWidth;y>0?typeof o=="string"?o=this.splitTextToSize(o,y):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(F,k){return F.concat(x.splitTextToSize(k,y))},[])):o=Array.isArray(o)?o:[o];for(var E=0;E<o.length;E++)u<(v=this.getStringUnitWidth(o[E],{font:h})*c)&&(u=v);return u!==0&&(w=o.length),{w:u/=d,h:Math.max((w*c*this.getLineHeightFactor()-c*(this.getLineHeightFactor()-1))/d,0)}},t.cellAddPage=function(){A.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.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]),A.call(this);var l=this.internal.__cell__.lastCell,c=this.internal.__cell__.padding,h=this.internal.__cell__.margins||e,d=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===o.lineNumber?(o.x=(l.x||0)+(l.width||0),o.y=l.y||0):l.y+l.height+o.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=h.top,u&&d&&(this.printHeaderRow(o.lineNumber,!0),o.y+=d[0].height)):o.y=l.y+l.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,r===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-c,o.y+c,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+c,{align:"center",baseline:"top",maxWidth:o.width-c-c}):this.text(o.text,o.x+c,o.y+c,{align:"left",baseline:"top",maxWidth:o.width-c-c})),this.internal.__cell__.lastCell=o,this};t.table=function(o,l,c,h,d){if(A.call(this),!c)throw new Error("No data for PDF table.");var u,w,v,x,y=[],E=[],F=[],k={},X={},q=[],N=[],Q=(d=d||{}).autoSize||!1,K=d.printHeaders!==!1,Ae=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,U=d.margins||Object.assign({width:this.getPageWidth()},e),T=typeof d.padding=="number"?d.padding:3,V=d.headerBackgroundColor||"#c8c8c8",Y=d.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=K,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=Ae,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=Y,this.setFontSize(Ae),h==null)E=y=Object.keys(c[0]),F=y.map(function(){return"left"});else if(Array.isArray(h)&&zt(h[0])==="object")for(y=h.map(function(Be){return Be.name}),E=h.map(function(Be){return Be.prompt||Be.name||""}),F=h.map(function(Be){return Be.align||"left"}),u=0;u<h.length;u+=1)X[h[u].name]=h[u].width*(19.049976/25.4);else Array.isArray(h)&&typeof h[0]=="string"&&(E=y=h,F=y.map(function(){return"left"}));if(Q||Array.isArray(h)&&typeof h[0]=="string")for(u=0;u<y.length;u+=1){for(k[x=y[u]]=c.map(function(Be){return Be[x]}),this.setFont(void 0,"bold"),q.push(this.getTextDimensions(E[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=k[x],this.setFont(void 0,"normal"),v=0;v<w.length;v+=1)q.push(this.getTextDimensions(w[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);X[x]=Math.max.apply(null,q)+T+T,q=[]}if(K){var ce={};for(u=0;u<y.length;u+=1)ce[y[u]]={},ce[y[u]].text=E[u],ce[y[u]].align=F[u];var he=s.call(this,ce,X);N=y.map(function(Be){return new i(o,l,X[Be],he,ce[Be].text,void 0,ce[Be].align)}),this.setTableHeaderRow(N),this.printHeaderRow(1,!1)}var me=h.reduce(function(Be,ke){return Be[ke.name]=ke.align,Be},{});for(u=0;u<c.length;u+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:u,data:c[u]},this);var ge=s.call(this,c[u],X);for(v=0;v<y.length;v+=1){var we=c[u][y[v]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:u,col:v,data:we},this),a.call(this,new i(o,l,X[y[v]],ge,we,u+2,me[y[v]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=l,this};var s=function(o,l){var c=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(o).map(function(u){var w=o[u];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,l[u]-c-c)},this).map(function(u){return this.getLineHeightFactor()*u.length*h/d+c+c},this).reduce(function(u,w){return Math.max(u,w)},0)};t.setTableHeaderRow=function(o){A.call(this),this.internal.__cell__.tableHeaderRow=o},t.printHeaderRow=function(o,l){if(A.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var c;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){c=this.internal.__cell__.tableHeaderRow[u].clone(),l&&(c.y=this.internal.__cell__.margins.top||0,d.push(c)),c.lineNumber=o;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,c),this.setTextColor(w)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}}(xt.API);var iw={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},aw=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],k1=nw(aw),sw=[100,200,300,400,500,600,700,800,900],hU=nw(sw);function D1(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(i){return iw[i=i||"normal"]?i:"normal"}(t.style),A=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(t.weight),n=function(i){return typeof k1[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:e,style:r,weight:A,stretch:n,src:t.src||[],ref:t.ref||{name:e,style:[n,r,A].join(" ")}}}function ow(t,e,r,A){var n;for(n=r;n>=0&&n<e.length;n+=A)if(t[e[n]])return t[e[n]];for(n=r;n>=0&&n<e.length;n-=A)if(t[e[n]])return t[e[n]]}var dU={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},lw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cw(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function gU(t,e,r){for(var A=(r=r||{}).defaultFontFamily||"times",n=Object.assign({},dU,r.genericFontFamilies||{}),i=null,a=null,s=0;s<e.length;++s)if(n[(i=D1(e[s])).family]&&(i.family=n[i.family]),t.hasOwnProperty(i.family)){a=t[i.family];break}if(!(a=a||t[A]))throw new Error("Could not find a font-family for the rule '"+cw(i)+"' and default family '"+A+"'.");if(a=function(o,l){if(l[o])return l[o];var c=k1[o],h=c<=k1.normal?-1:1,d=ow(l,aw,c,h);if(!d)throw new Error("Could not find a matching font-stretch value for "+o);return d}(i.stretch,a),a=function(o,l){if(l[o])return l[o];for(var c=iw[o],h=0;h<c.length;++h)if(l[c[h]])return l[c[h]];throw new Error("Could not find a matching font-style for "+o)}(i.style,a),!(a=function(o,l){if(l[o])return l[o];if(o===400&&l[500])return l[500];if(o===500&&l[400])return l[400];var c=hU[o],h=ow(l,sw,c,o<400?-1:1);if(!h)throw new Error("Could not find a matching font-weight for value "+o);return h}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+cw(i)+"'.");return a}function fw(t){return t.trimLeft()}function pU(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function vU(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var n0,uw,hw,P1=["times"];(function(t){var e,r,A,n,i,a,s,o,l,c=function(C){return C=C||{},this.isStrokeTransparent=C.isStrokeTransparent||!1,this.strokeOpacity=C.strokeOpacity||1,this.strokeStyle=C.strokeStyle||"#000000",this.fillStyle=C.fillStyle||"#000000",this.isFillTransparent=C.isFillTransparent||!1,this.fillOpacity=C.fillOpacity||1,this.font=C.font||"10px sans-serif",this.textBaseline=C.textBaseline||"alphabetic",this.textAlign=C.textAlign||"left",this.lineWidth=C.lineWidth||1,this.lineJoin=C.lineJoin||"miter",this.lineCap=C.lineCap||"butt",this.path=C.path||[],this.transform=C.transform!==void 0?C.transform.clone():new o,this.globalCompositeOperation=C.globalCompositeOperation||"normal",this.globalAlpha=C.globalAlpha||1,this.clip_path=C.clip_path||[],this.currentPoint=C.currentPoint||new a,this.miterLimit=C.miterLimit||10,this.lastPoint=C.lastPoint||new a,this.lineDashOffset=C.lineDashOffset||0,this.lineDash=C.lineDash||[],this.margin=C.margin||[0,0,0,0],this.prevPageLastElemOffset=C.prevPageLastElemOffset||0,this.ignoreClearRect=typeof C.ignoreClearRect!="boolean"||C.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new h(this),e=this.internal.f2,r=this.internal.getCoordinateString,A=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,l=new c}]);var h=function(C){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _=C;Object.defineProperty(this,"pdf",{get:function(){return _}});var S=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return S},set:function(_e){S=!!_e}});var O=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return O},set:function(_e){O=!!_e}});var W=0;Object.defineProperty(this,"posX",{get:function(){return W},set:function(_e){isNaN(_e)||(W=_e)}});var ie=0;Object.defineProperty(this,"posY",{get:function(){return ie},set:function(_e){isNaN(_e)||(ie=_e)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(_e){var re;typeof _e=="number"?re=[_e,_e,_e,_e]:((re=new Array(4))[0]=_e[0],re[1]=_e.length>=2?_e[1]:re[0],re[2]=_e.length>=3?_e[2]:re[0],re[3]=_e.length>=4?_e[3]:re[1]),l.margin=re}});var oe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return oe},set:function(_e){oe=_e}});var le=0;Object.defineProperty(this,"lastBreak",{get:function(){return le},set:function(_e){le=_e}});var ye=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ye},set:function(_e){ye=_e}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(_e){_e instanceof c&&(l=_e)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(_e){l.path=_e}});var Ne=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ne},set:function(_e){Ne=_e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_e){var re;re=d(_e),this.ctx.fillStyle=re.style,this.ctx.isFillTransparent=re.a===0,this.ctx.fillOpacity=re.a,this.pdf.setFillColor(re.r,re.g,re.b,{a:re.a}),this.pdf.setTextColor(re.r,re.g,re.b,{a:re.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_e){var re=d(_e);this.ctx.strokeStyle=re.style,this.ctx.isStrokeTransparent=re.a===0,this.ctx.strokeOpacity=re.a,re.a===0?this.pdf.setDrawColor(255,255,255):(re.a,this.pdf.setDrawColor(re.r,re.g,re.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_e){["butt","round","square"].indexOf(_e)!==-1&&(this.ctx.lineCap=_e,this.pdf.setLineCap(_e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_e){isNaN(_e)||(this.ctx.lineWidth=_e,this.pdf.setLineWidth(_e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_e){["bevel","round","miter"].indexOf(_e)!==-1&&(this.ctx.lineJoin=_e,this.pdf.setLineJoin(_e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_e){isNaN(_e)||(this.ctx.miterLimit=_e,this.pdf.setMiterLimit(_e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_e){this.ctx.textBaseline=_e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_e){["right","end","center","left","start"].indexOf(_e)!==-1&&(this.ctx.textAlign=_e)}});var Re=null;function Xe(_e,re){if(Re===null){var Qe=function(rt){var Me=[];return Object.keys(rt).forEach(function(We){rt[We].forEach(function($e){var Je=null;switch($e){case"bold":Je={family:We,weight:"bold"};break;case"italic":Je={family:We,style:"italic"};break;case"bolditalic":Je={family:We,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:We}}Je!==null&&(Je.ref={name:We,style:$e},Me.push(Je))})}),Me}(_e.getFontList());Re=function(rt){for(var Me={},We=0;We<rt.length;++We){var $e=D1(rt[We]),Je=$e.family,st=$e.stretch,nt=$e.style,ht=$e.weight;Me[Je]=Me[Je]||{},Me[Je][st]=Me[Je][st]||{},Me[Je][st][nt]=Me[Je][st][nt]||{},Me[Je][st][nt][ht]=$e}return Me}(Qe.concat(re))}return Re}var qe=null;Object.defineProperty(this,"fontFaces",{get:function(){return qe},set:function(_e){Re=null,qe=_e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_e){var re;if(this.ctx.font=_e,(re=/^\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(_e))!==null){var Qe=re[1],rt=(re[2],re[3]),Me=re[4],We=(re[5],re[6]),$e=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Me)[2];Me=Math.floor($e==="px"?parseFloat(Me)*this.pdf.internal.scaleFactor:$e==="em"?parseFloat(Me)*this.pdf.getFontSize():parseFloat(Me)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Me);var Je=function(dt){var yt,tt,nr=[],It=dt.trim();if(It==="")return P1;if(It in lw)return[lw[It]];for(;It!=="";){switch(tt=null,yt=(It=fw(It)).charAt(0)){case'"':case"'":tt=pU(It.substring(1),yt);break;default:tt=vU(It)}if(tt===null||(nr.push(tt[0]),(It=fw(tt[1]))!==""&&It.charAt(0)!==","))return P1;It=It.replace(/^,/,"")}return nr}(We);if(this.fontFaces){var st=gU(Xe(this.pdf,this.fontFaces),Je.map(function(dt){return{family:dt,stretch:"normal",weight:rt,style:Qe}}));this.pdf.setFont(st.ref.name,st.ref.style)}else{var nt="";(rt==="bold"||parseInt(rt,10)>=700||Qe==="bold")&&(nt="bold"),Qe==="italic"&&(nt+="italic"),nt.length===0&&(nt="normal");for(var ht="",mt={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"},_t=0;_t<Je.length;_t++){if(this.pdf.internal.getFont(Je[_t],nt,{noFallback:!0,disableWarning:!0})!==void 0){ht=Je[_t];break}if(nt==="bolditalic"&&this.pdf.internal.getFont(Je[_t],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ht=Je[_t],nt="bold";else if(this.pdf.internal.getFont(Je[_t],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ht=Je[_t],nt="normal";break}}if(ht===""){for(var Ut=0;Ut<Je.length;Ut++)if(mt[Je[Ut]]){ht=mt[Je[Ut]];break}}ht=ht===""?"Times":ht,this.pdf.setFont(ht,nt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_e){this.ctx.globalCompositeOperation=_e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_e){this.ctx.globalAlpha=_e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_e){this.ctx.lineDashOffset=_e,ke.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_e){this.ctx.lineDash=_e,ke.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_e){this.ctx.ignoreClearRect=!!_e}})};h.prototype.setLineDash=function(C){this.lineDash=C},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){k.call(this,"fill",!1)},h.prototype.stroke=function(){k.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var S=this.ctx.transform.applyToPoint(new a(C,_));this.path.push({type:"mt",x:S.x,y:S.y}),this.ctx.lastPoint=new a(C,_)},h.prototype.closePath=function(){var C=new a(0,0),_=0;for(_=this.path.length-1;_!==-1;_--)if(this.path[_].type==="begin"&&zt(this.path[_+1])==="object"&&typeof this.path[_+1].x=="number"){C=new a(this.path[_+1].x,this.path[_+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(C.x,C.y)},h.prototype.lineTo=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var S=this.ctx.transform.applyToPoint(new a(C,_));this.path.push({type:"lt",x:S.x,y:S.y}),this.ctx.lastPoint=new a(S.x,S.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},h.prototype.quadraticCurveTo=function(C,_,S,O){if(isNaN(S)||isNaN(O)||isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var W=this.ctx.transform.applyToPoint(new a(S,O)),ie=this.ctx.transform.applyToPoint(new a(C,_));this.path.push({type:"qct",x1:ie.x,y1:ie.y,x:W.x,y:W.y}),this.ctx.lastPoint=new a(W.x,W.y)},h.prototype.bezierCurveTo=function(C,_,S,O,W,ie){if(isNaN(W)||isNaN(ie)||isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var oe=this.ctx.transform.applyToPoint(new a(W,ie)),le=this.ctx.transform.applyToPoint(new a(C,_)),ye=this.ctx.transform.applyToPoint(new a(S,O));this.path.push({type:"bct",x1:le.x,y1:le.y,x2:ye.x,y2:ye.y,x:oe.x,y:oe.y}),this.ctx.lastPoint=new a(oe.x,oe.y)},h.prototype.arc=function(C,_,S,O,W,ie){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O)||isNaN(W))throw cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ie=!!ie,!this.ctx.transform.isIdentity){var oe=this.ctx.transform.applyToPoint(new a(C,_));C=oe.x,_=oe.y;var le=this.ctx.transform.applyToPoint(new a(0,S)),ye=this.ctx.transform.applyToPoint(new a(0,0));S=Math.sqrt(Math.pow(le.x-ye.x,2)+Math.pow(le.y-ye.y,2))}Math.abs(W-O)>=2*Math.PI&&(O=0,W=2*Math.PI),this.path.push({type:"arc",x:C,y:_,radius:S,startAngle:O,endAngle:W,counterclockwise:ie})},h.prototype.arcTo=function(C,_,S,O,W){throw new Error("arcTo not implemented.")},h.prototype.rect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(C,_),this.lineTo(C+S,_),this.lineTo(C+S,_+O),this.lineTo(C,_+O),this.lineTo(C,_),this.lineTo(C+S,_),this.lineTo(C,_)},h.prototype.fillRect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.call(this)){var W={};this.lineCap!=="butt"&&(W.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(W.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(C,_,S,O),this.fill(),W.hasOwnProperty("lineCap")&&(this.lineCap=W.lineCap),W.hasOwnProperty("lineJoin")&&(this.lineJoin=W.lineJoin)}},h.prototype.strokeRect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(C,_,S,O),this.stroke())},h.prototype.clearRect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(C,_,S,O))},h.prototype.save=function(C){C=typeof C!="boolean"||C;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,S=0;S<this.pdf.internal.getNumberOfPages();S++)this.pdf.setPage(S+1),this.pdf.internal.out("q");if(this.pdf.setPage(_),C){this.ctx.fontSize=this.pdf.internal.getFontSize();var O=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=O}},h.prototype.restore=function(C){C=typeof C!="boolean"||C;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,S=0;S<this.pdf.internal.getNumberOfPages();S++)this.pdf.setPage(S+1),this.pdf.internal.out("Q");this.pdf.setPage(_),C&&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)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(C){var _,S,O,W;if(C.isCanvasGradient===!0&&(C=C.getColor()),!C)return{r:0,g:0,b:0,a:0,style:C};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(C))_=0,S=0,O=0,W=0;else{var ie=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(C);if(ie!==null)_=parseInt(ie[1]),S=parseInt(ie[2]),O=parseInt(ie[3]),W=1;else if((ie=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(C))!==null)_=parseInt(ie[1]),S=parseInt(ie[2]),O=parseInt(ie[3]),W=parseFloat(ie[4]);else{if(W=1,typeof C=="string"&&C.charAt(0)!=="#"){var oe=new Xm(C);C=oe.ok?oe.toHex():"#000000"}C.length===4?(_=C.substring(1,2),_+=_,S=C.substring(2,3),S+=S,O=C.substring(3,4),O+=O):(_=C.substring(1,3),S=C.substring(3,5),O=C.substring(5,7)),_=parseInt(_,16),S=parseInt(S,16),O=parseInt(O,16)}}return{r:_,g:S,b:O,a:W,style:C}},u=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(C,_,S,O){if(isNaN(_)||isNaN(S)||typeof C!="string")throw cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(O=isNaN(O)?void 0:O,!u.call(this)){var W=ge(this.ctx.transform.rotation),ie=this.ctx.transform.scaleX;T.call(this,{text:C,x:_,y:S,scale:ie,angle:W,align:this.textAlign,maxWidth:O})}},h.prototype.strokeText=function(C,_,S,O){if(isNaN(_)||isNaN(S)||typeof C!="string")throw cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){O=isNaN(O)?void 0:O;var W=ge(this.ctx.transform.rotation),ie=this.ctx.transform.scaleX;T.call(this,{text:C,x:_,y:S,scale:ie,renderingMode:"stroke",angle:W,align:this.textAlign,maxWidth:O})}},h.prototype.measureText=function(C){if(typeof C!="string")throw cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _=this.pdf,S=this.pdf.internal.scaleFactor,O=_.internal.getFontSize(),W=_.getStringUnitWidth(C)*O/_.internal.scaleFactor,ie=function(oe){var le=(oe=oe||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return le}}),this};return new ie({width:W*=Math.round(96*S/72*1e4)/1e4})},h.prototype.scale=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var S=new o(C,0,0,_,0,0);this.ctx.transform=this.ctx.transform.multiply(S)},h.prototype.rotate=function(C){if(isNaN(C))throw cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _=new o(Math.cos(C),Math.sin(C),-Math.sin(C),Math.cos(C),0,0);this.ctx.transform=this.ctx.transform.multiply(_)},h.prototype.translate=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var S=new o(1,0,0,1,C,_);this.ctx.transform=this.ctx.transform.multiply(S)},h.prototype.transform=function(C,_,S,O,W,ie){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O)||isNaN(W)||isNaN(ie))throw cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var oe=new o(C,_,S,O,W,ie);this.ctx.transform=this.ctx.transform.multiply(oe)},h.prototype.setTransform=function(C,_,S,O,W,ie){C=isNaN(C)?1:C,_=isNaN(_)?0:_,S=isNaN(S)?0:S,O=isNaN(O)?1:O,W=isNaN(W)?0:W,ie=isNaN(ie)?0:ie,this.ctx.transform=new o(C,_,S,O,W,ie)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(C,_,S,O,W,ie,oe,le,ye){var Ne=this.pdf.getImageProperties(C),Re=1,Xe=1,qe=1,_e=1;O!==void 0&&le!==void 0&&(qe=le/O,_e=ye/W,Re=Ne.width/O*le/O,Xe=Ne.height/W*ye/W),ie===void 0&&(ie=_,oe=S,_=0,S=0),O!==void 0&&le===void 0&&(le=O,ye=W),O===void 0&&le===void 0&&(le=Ne.width,ye=Ne.height);for(var re,Qe=this.ctx.transform.decompose(),rt=ge(Qe.rotate.shx),Me=new o,We=(Me=(Me=(Me=Me.multiply(Qe.translate)).multiply(Qe.skew)).multiply(Qe.scale)).applyToRectangle(new s(ie-_*qe,oe-S*_e,O*Re,W*Xe)),$e=x.call(this,We),Je=[],st=0;st<$e.length;st+=1)Je.indexOf($e[st])===-1&&Je.push($e[st]);if(F(Je),this.autoPaging)for(var nt=Je[0],ht=Je[Je.length-1],mt=nt;mt<ht+1;mt++){this.pdf.setPage(mt);var _t=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=mt===1?this.posY+this.margin[0]:this.margin[0],dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tt=mt===1?0:dt+(mt-2)*yt;if(this.ctx.clip_path.length!==0){var nr=this.path;re=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(re,this.posX+this.margin[3],-tt+Ut+this.ctx.prevPageLastElemOffset),X.call(this,"fill",!0),this.path=nr}var It=JSON.parse(JSON.stringify(We));It=E([It],this.posX+this.margin[3],-tt+Ut+this.ctx.prevPageLastElemOffset)[0];var fr=(mt>nt||mt<ht)&&v.call(this);fr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_t,yt,null).clip().discardPath()),this.pdf.addImage(C,"JPEG",It.x,It.y,It.w,It.h,null,null,rt),fr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(C,"JPEG",We.x,We.y,We.w,We.h,null,null,rt)};var x=function(C,_,S){var O=[];_=_||this.pdf.internal.pageSize.width,S=S||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var W=this.posY+this.ctx.prevPageLastElemOffset;switch(C.type){default:case"mt":case"lt":O.push(Math.floor((C.y+W)/S)+1);break;case"arc":O.push(Math.floor((C.y+W-C.radius)/S)+1),O.push(Math.floor((C.y+W+C.radius)/S)+1);break;case"qct":var ie=we(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x,C.y);O.push(Math.floor((ie.y+W)/S)+1),O.push(Math.floor((ie.y+ie.h+W)/S)+1);break;case"bct":var oe=Be(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x2,C.y2,C.x,C.y);O.push(Math.floor((oe.y+W)/S)+1),O.push(Math.floor((oe.y+oe.h+W)/S)+1);break;case"rect":O.push(Math.floor((C.y+W)/S)+1),O.push(Math.floor((C.y+C.h+W)/S)+1)}for(var le=0;le<O.length;le+=1)for(;this.pdf.internal.getNumberOfPages()<O[le];)y.call(this);return O},y=function(){var C=this.fillStyle,_=this.strokeStyle,S=this.font,O=this.lineCap,W=this.lineWidth,ie=this.lineJoin;this.pdf.addPage(),this.fillStyle=C,this.strokeStyle=_,this.font=S,this.lineCap=O,this.lineWidth=W,this.lineJoin=ie},E=function(C,_,S){for(var O=0;O<C.length;O++)switch(C[O].type){case"bct":C[O].x2+=_,C[O].y2+=S;case"qct":C[O].x1+=_,C[O].y1+=S;case"mt":case"lt":case"arc":default:C[O].x+=_,C[O].y+=S}return C},F=function(C){return C.sort(function(_,S){return _-S})},k=function(C,_){for(var S,O,W=this.fillStyle,ie=this.strokeStyle,oe=this.lineCap,le=this.lineWidth,ye=Math.abs(le*this.ctx.transform.scaleX),Ne=this.lineJoin,Re=JSON.parse(JSON.stringify(this.path)),Xe=JSON.parse(JSON.stringify(this.path)),qe=[],_e=0;_e<Xe.length;_e++)if(Xe[_e].x!==void 0)for(var re=x.call(this,Xe[_e]),Qe=0;Qe<re.length;Qe+=1)qe.indexOf(re[Qe])===-1&&qe.push(re[Qe]);for(var rt=0;rt<qe.length;rt++)for(;this.pdf.internal.getNumberOfPages()<qe[rt];)y.call(this);if(F(qe),this.autoPaging)for(var Me=qe[0],We=qe[qe.length-1],$e=Me;$e<We+1;$e++){this.pdf.setPage($e),this.fillStyle=W,this.strokeStyle=ie,this.lineCap=oe,this.lineWidth=ye,this.lineJoin=Ne;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],st=$e===1?this.posY+this.margin[0]:this.margin[0],nt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ht=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],mt=$e===1?0:nt+($e-2)*ht;if(this.ctx.clip_path.length!==0){var _t=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(S,this.posX+this.margin[3],-mt+st+this.ctx.prevPageLastElemOffset),X.call(this,C,!0),this.path=_t}if(O=JSON.parse(JSON.stringify(Re)),this.path=E(O,this.posX+this.margin[3],-mt+st+this.ctx.prevPageLastElemOffset),_===!1||$e===0){var Ut=($e>Me||$e<We)&&v.call(this);Ut&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,ht,null).clip().discardPath()),X.call(this,C,_),Ut&&this.pdf.restoreGraphicsState()}this.lineWidth=le}else this.lineWidth=ye,X.call(this,C,_),this.lineWidth=le;this.path=Re},X=function(C,_){if((C!=="stroke"||_||!w.call(this))&&(C==="stroke"||_||!u.call(this))){for(var S,O,W=[],ie=this.path,oe=0;oe<ie.length;oe++){var le=ie[oe];switch(le.type){case"begin":W.push({begin:!0});break;case"close":W.push({close:!0});break;case"mt":W.push({start:le,deltas:[],abs:[]});break;case"lt":var ye=W.length;if(ie[oe-1]&&!isNaN(ie[oe-1].x)&&(S=[le.x-ie[oe-1].x,le.y-ie[oe-1].y],ye>0)){for(;ye>=0;ye--)if(W[ye-1].close!==!0&&W[ye-1].begin!==!0){W[ye-1].deltas.push(S),W[ye-1].abs.push(le);break}}break;case"bct":S=[le.x1-ie[oe-1].x,le.y1-ie[oe-1].y,le.x2-ie[oe-1].x,le.y2-ie[oe-1].y,le.x-ie[oe-1].x,le.y-ie[oe-1].y],W[W.length-1].deltas.push(S);break;case"qct":var Ne=ie[oe-1].x+2/3*(le.x1-ie[oe-1].x),Re=ie[oe-1].y+2/3*(le.y1-ie[oe-1].y),Xe=le.x+2/3*(le.x1-le.x),qe=le.y+2/3*(le.y1-le.y),_e=le.x,re=le.y;S=[Ne-ie[oe-1].x,Re-ie[oe-1].y,Xe-ie[oe-1].x,qe-ie[oe-1].y,_e-ie[oe-1].x,re-ie[oe-1].y],W[W.length-1].deltas.push(S);break;case"arc":W.push({deltas:[],abs:[],arc:!0}),Array.isArray(W[W.length-1].abs)&&W[W.length-1].abs.push(le)}}O=_?null:C==="stroke"?"stroke":"fill";for(var Qe=!1,rt=0;rt<W.length;rt++)if(W[rt].arc)for(var Me=W[rt].abs,We=0;We<Me.length;We++){var $e=Me[We];$e.type==="arc"?Q.call(this,$e.x,$e.y,$e.radius,$e.startAngle,$e.endAngle,$e.counterclockwise,void 0,_,!Qe):V.call(this,$e.x,$e.y),Qe=!0}else if(W[rt].close===!0)this.pdf.internal.out("h"),Qe=!1;else if(W[rt].begin!==!0){var Je=W[rt].start.x,st=W[rt].start.y;Y.call(this,W[rt].deltas,Je,st),Qe=!0}O&&K.call(this,O),_&&Ae.call(this)}},q=function(C){var _=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,S=_*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return C-S;case"top":return C+_-S;case"hanging":return C+_-2*S;case"middle":return C+_/2-S;case"ideographic":return C;case"alphabetic":default:return C}},N=function(C){return C+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var C=function(){};return C.colorStops=[],C.addColorStop=function(_,S){this.colorStops.push([_,S])},C.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},C.isCanvasGradient=!0,C},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Q=function(C,_,S,O,W,ie,oe,le,ye){for(var Ne=he.call(this,S,O,W,ie),Re=0;Re<Ne.length;Re++){var Xe=Ne[Re];Re===0&&(ye?U.call(this,Xe.x1+C,Xe.y1+_):V.call(this,Xe.x1+C,Xe.y1+_)),ce.call(this,C,_,Xe.x2,Xe.y2,Xe.x3,Xe.y3,Xe.x4,Xe.y4)}le?Ae.call(this):K.call(this,oe)},K=function(C){switch(C){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ae=function(){this.pdf.clip(),this.pdf.discardPath()},U=function(C,_){this.pdf.internal.out(r(C)+" "+A(_)+" m")},T=function(C){var _;switch(C.align){case"right":case"end":_="right";break;case"center":_="center";break;case"left":case"start":default:_="left"}var S=this.pdf.getTextDimensions(C.text),O=q.call(this,C.y),W=N.call(this,O)-S.h,ie=this.ctx.transform.applyToPoint(new a(C.x,O)),oe=this.ctx.transform.decompose(),le=new o;le=(le=(le=le.multiply(oe.translate)).multiply(oe.skew)).multiply(oe.scale);for(var ye,Ne,Re,Xe=this.ctx.transform.applyToRectangle(new s(C.x,O,S.w,S.h)),qe=le.applyToRectangle(new s(C.x,W,S.w,S.h)),_e=x.call(this,qe),re=[],Qe=0;Qe<_e.length;Qe+=1)re.indexOf(_e[Qe])===-1&&re.push(_e[Qe]);if(F(re),this.autoPaging)for(var rt=re[0],Me=re[re.length-1],We=rt;We<Me+1;We++){this.pdf.setPage(We);var $e=We===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],st=this.pdf.internal.pageSize.height-this.margin[2],nt=st-this.margin[0],ht=this.pdf.internal.pageSize.width-this.margin[1],mt=ht-this.margin[3],_t=We===1?0:Je+(We-2)*nt;if(this.ctx.clip_path.length!==0){var Ut=this.path;ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(ye,this.posX+this.margin[3],-1*_t+$e),X.call(this,"fill",!0),this.path=Ut}var dt=E([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-_t+$e+this.ctx.prevPageLastElemOffset)[0];C.scale>=.01&&(Ne=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ne*C.scale),Re=this.lineWidth,this.lineWidth=Re*C.scale);var yt=this.autoPaging!=="text";if(yt||dt.y+dt.h<=st){if(yt||dt.y>=$e&&dt.x<=ht){var tt=yt?C.text:this.pdf.splitTextToSize(C.text,C.maxWidth||ht-dt.x)[0],nr=E([JSON.parse(JSON.stringify(Xe))],this.posX+this.margin[3],-_t+$e+this.ctx.prevPageLastElemOffset)[0],It=yt&&(We>rt||We<Me)&&v.call(this);It&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],mt,nt,null).clip().discardPath()),this.pdf.text(tt,nr.x,nr.y,{angle:C.angle,align:_,renderingMode:C.renderingMode}),It&&this.pdf.restoreGraphicsState()}}else dt.y<st&&(this.ctx.prevPageLastElemOffset+=st-dt.y);C.scale>=.01&&(this.pdf.setFontSize(Ne),this.lineWidth=Re)}else C.scale>=.01&&(Ne=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ne*C.scale),Re=this.lineWidth,this.lineWidth=Re*C.scale),this.pdf.text(C.text,ie.x+this.posX,ie.y+this.posY,{angle:C.angle,align:_,renderingMode:C.renderingMode,maxWidth:C.maxWidth}),C.scale>=.01&&(this.pdf.setFontSize(Ne),this.lineWidth=Re)},V=function(C,_,S,O){S=S||0,O=O||0,this.pdf.internal.out(r(C+S)+" "+A(_+O)+" l")},Y=function(C,_,S){return this.pdf.lines(C,_,S,null,null)},ce=function(C,_,S,O,W,ie,oe,le){this.pdf.internal.out([e(n(S+C)),e(i(O+_)),e(n(W+C)),e(i(ie+_)),e(n(oe+C)),e(i(le+_)),"c"].join(" "))},he=function(C,_,S,O){for(var W=2*Math.PI,ie=Math.PI/2;_>S;)_-=W;var oe=Math.abs(S-_);oe<W&&O&&(oe=W-oe);for(var le=[],ye=O?-1:1,Ne=_;oe>1e-5;){var Re=Ne+ye*Math.min(oe,ie);le.push(me.call(this,C,Ne,Re)),oe-=Math.abs(Re-Ne),Ne=Re}return le},me=function(C,_,S){var O=(S-_)/2,W=C*Math.cos(O),ie=C*Math.sin(O),oe=W,le=-ie,ye=oe*oe+le*le,Ne=ye+oe*W+le*ie,Re=4/3*(Math.sqrt(2*ye*Ne)-Ne)/(oe*ie-le*W),Xe=oe-Re*le,qe=le+Re*oe,_e=Xe,re=-qe,Qe=O+_,rt=Math.cos(Qe),Me=Math.sin(Qe);return{x1:C*Math.cos(_),y1:C*Math.sin(_),x2:Xe*rt-qe*Me,y2:Xe*Me+qe*rt,x3:_e*rt-re*Me,y3:_e*Me+re*rt,x4:C*Math.cos(S),y4:C*Math.sin(S)}},ge=function(C){return 180*C/Math.PI},we=function(C,_,S,O,W,ie){var oe=C+.5*(S-C),le=_+.5*(O-_),ye=W+.5*(S-W),Ne=ie+.5*(O-ie),Re=Math.min(C,W,oe,ye),Xe=Math.max(C,W,oe,ye),qe=Math.min(_,ie,le,Ne),_e=Math.max(_,ie,le,Ne);return new s(Re,qe,Xe-Re,_e-qe)},Be=function(C,_,S,O,W,ie,oe,le){var ye,Ne,Re,Xe,qe,_e,re,Qe,rt,Me,We,$e,Je,st,nt=S-C,ht=O-_,mt=W-S,_t=ie-O,Ut=oe-W,dt=le-ie;for(Ne=0;Ne<41;Ne++)rt=(re=(Re=C+(ye=Ne/40)*nt)+ye*((qe=S+ye*mt)-Re))+ye*(qe+ye*(W+ye*Ut-qe)-re),Me=(Qe=(Xe=_+ye*ht)+ye*((_e=O+ye*_t)-Xe))+ye*(_e+ye*(ie+ye*dt-_e)-Qe),Ne==0?(We=rt,$e=Me,Je=rt,st=Me):(We=Math.min(We,rt),$e=Math.min($e,Me),Je=Math.max(Je,rt),st=Math.max(st,Me));return new s(Math.round(We),Math.round($e),Math.round(Je-We),Math.round(st-$e))},ke=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var C,_,S=(C=this.ctx.lineDash,_=this.ctx.lineDashOffset,JSON.stringify({lineDash:C,lineDashOffset:_}));this.prevLineDash!==S&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=S)}}})(xt.API),function(t){var e=function(i){var a,s,o,l,c,h,d,u,w,v;for(s=[],o=0,l=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;l>o;o+=4)(c=(i.charCodeAt(o)<<24)+(i.charCodeAt(o+1)<<16)+(i.charCodeAt(o+2)<<8)+i.charCodeAt(o+3))!==0?(h=(c=((c=((c=((c=(c-(v=c%85))/85)-(w=c%85))/85)-(u=c%85))/85)-(d=c%85))/85)%85,s.push(h+33,d+33,u+33,w+33,v+33)):s.push(122);return function(x,y){for(var E=y;E>0;E--)x.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},r=function(i){var a,s,o,l,c,h=String,d="length",u=255,w="charCodeAt",v="slice",x="replace";for(i[v](-2),i=i[v](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),o=[],l=0,c=(i+=a="uuuuu"[v](i[d]%5||5))[d];c>l;l+=5)s=52200625*(i[w](l)-33)+614125*(i[w](l+1)-33)+7225*(i[w](l+2)-33)+85*(i[w](l+3)-33)+(i[w](l+4)-33),o.push(u&s>>24,u&s>>16,u&s>>8,u&s);return function(y,E){for(var F=E;F>0;F--)y.pop()}(o,a[d]),h.fromCharCode.apply(h,o)},A=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=F1(a)).reduce(function(o,l){return o+String.fromCharCode(l)},"")};t.processDataByFilters=function(i,a){var s=0,o=i||"",l=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":o=r(o),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=e(o),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=A(o),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(c){return("0"+c.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=n(o),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(xt.API),function(t){t.loadFile=function(e,r,A){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,l,c){var h=new XMLHttpRequest,d=0,u=function(w){var v=w.length,x=[],y=String.fromCharCode;for(d=0;d<v;d+=1)x.push(y(255&w.charCodeAt(d)));return x.join("")};if(h.open("GET",o,!l),h.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(h.onload=function(){h.status===200?c(u(this.responseText)):c(void 0)}),h.send(null),l&&h.status===200)return u(h.responseText)}(n,i,a)}catch{}return s}(e,r,A)},t.loadImageFile=t.loadFile}(xt.API),function(t){function e(){return(Bt.html2canvas?Promise.resolve(Bt.html2canvas):Promise.resolve().then(()=>DT)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function r(){return(Bt.DOMPurify?Promise.resolve(Bt.DOMPurify):Promise.resolve().then(()=>WR)).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var A=function(a){var s=zt(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 l in s.className&&(o.className=s.className),s.innerHTML&&s.dompurify&&(o.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)o.style[l]=s.style[l];return o},i=function a(s){var o=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),l=a.convert(Promise.resolve(),o);return l=(l=l.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(A(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(r).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(l,c){for(var h=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),d=l.firstChild;d;d=d.nextSibling)c!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||h.appendChild(o(d,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(h.width=l.width,h.height=l.height,h.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(h.value=l.value),h.addEventListener("load",function(){h.scrollTop=l.scrollTop,h.scrollLeft=l.scrollLeft},!0)),h}(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(e).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(e).then(function(s){var o=this.opt.jsPDF,l=this.opt.fontFaces,c=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,h=Object.assign({async:!0,allowTaint:!0,scale:c,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 h.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=l,l)for(var d=0;d<l.length;++d){var u=l[d],w=u.src.find(function(v){return v.format==="truetype"});w&&o.addFont(w.url,u.ref.name,u.ref.style)}return h.windowHeight=h.windowHeight||0,h.windowHeight=h.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):h.windowHeight,o.context2d.save(!0),s(this.prop.container,h)}).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(A(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(A(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,l){return Math.floor(o*l/72*96)}return this.then(function(){(a=a||xt.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,l){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),o!=null&&(this.progress.n=o),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,s,o,l){return this.setProgress(a?this.progress.val+a:null,s||null,o?this.progress.n+o:null,l?this.progress.stack.concat(l):null)},i.prototype.then=function(a,s){var o=this;return this.thenCore(a,s,function(l,c){return o.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(h){return o.updateProgress(null,l),h}).then(l,c).then(function(h){return o.updateProgress(1),h})})},i.prototype.thenCore=function(a,s,o){o=o||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var l=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),c=o.call(l,a,s);return i.convert(c,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,xt.getPageSize=function(a,s,o){if(zt(a)==="object"){var l=a;a=l.orientation,s=l.unit||s,o=l.format||o}s=s||"mm",o=o||"a4",a=(""+(a||"P")).toLowerCase();var c,h=(""+o).toLowerCase(),d={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":c=1;break;case"mm":c=72/25.4;break;case"cm":c=72/2.54;break;case"in":c=72;break;case"px":c=.75;break;case"pc":case"em":c=12;break;case"ex":c=6;break;default:throw"Invalid unit: "+s}var u,w=0,v=0;if(d.hasOwnProperty(h))w=d[h][1]/c,v=d[h][0]/c;else try{w=o[1],v=o[0]}catch{throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",v>w&&(u=v,v=w,w=u);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",w>v&&(u=v,v=w,w=u)}return{width:v,height:w,unit:s,k:c,orientation:a}},t.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(D1):null;var o=new i(s);return s.worker?o:o.from(a).doCallback()}}(xt.API),xt.API.addJS=function(t){return hw=t,this.internal.events.subscribe("postPutResources",function(){n0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),uw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hw+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){n0!==void 0&&uw!==void 0&&this.internal.out("/Names <</JavaScript "+n0+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var r=this,A=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=r.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],s=A.exec(a);if(s!=null){var o=s[1];r.internal.newObjectDeferredBegin(o,!1)}r.internal.write(a)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(i=0;i<l;i++){var h=r.internal.newObject();c.push(h);var d=r.internal.getPageInfo(i+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var u=r.internal.newObject();for(r.internal.write("<< /Names [ "),i=0;i<c.length;i++)r.internal.write("(page_"+(i+1)+")"+c[i]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+u+" 0 R"),r.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(A,n,i){var a={title:n,options:i,children:[]};return A==null&&(A=this.root),A.children.push(a),a},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(A){A.id=r.internal.newObjectDeferred();for(var n=0;n<A.children.length;n++)this.genIds_r(A.children[n])},r.outline.renderRoot=function(A){this.objStart(A),this.line("/Type /Outlines"),A.children.length>0&&(this.line("/First "+this.makeRef(A.children[0])),this.line("/Last "+this.makeRef(A.children[A.children.length-1]))),this.line("/Count "+this.count_r({count:0},A)),this.objEnd()},r.outline.renderItems=function(A){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<A.children.length;i++){var a=A.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(A)),i>0&&this.line("/Prev "+this.makeRef(A.children[i-1])),i<A.children.length-1&&this.line("/Next "+this.makeRef(A.children[i+1])),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=r.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<A.children.length;l++)this.renderItems(A.children[l])},r.outline.line=function(A){this.ctx.val+=A+`\r
|
|
139
|
+
`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};ut.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=ut.internal.getWidth(t),r=ut.internal.getHeight(t),A=Math.min(e,r);return{x1:{x:(e-A)/2,y:(r-A)/2+A},x2:{x:(e-A)/2+A,y:(r-A)/2},x3:{x:(e-A)/2,y:(r-A)/2},x4:{x:(e-A)/2+A,y:(r-A)/2+A}}}},ut.internal.getWidth=function(t){var e=0;return zt(t)==="object"&&(e=ew(t.Rect[2])),e},ut.internal.getHeight=function(t){var e=0;return zt(t)==="object"&&(e=ew(t.Rect[3])),e};var uU=Fr.addField=function(t){if(fU(this,t),!(t instanceof Rn))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Fr.AcroFormChoiceField=eo,Fr.AcroFormListBox=to,Fr.AcroFormComboBox=ro,Fr.AcroFormEditBox=Zf,Fr.AcroFormButton=iA,Fr.AcroFormPushButton=e0,Fr.AcroFormRadioButton=Ao,Fr.AcroFormCheckBox=r0,Fr.AcroFormTextField=ns,Fr.AcroFormPasswordField=A0,Fr.AcroFormAppearance=ut,Fr.AcroForm={ChoiceField:eo,ListBox:to,ComboBox:ro,EditBox:Zf,Button:iA,PushButton:e0,RadioButton:Ao,CheckBox:r0,TextField:ns,PasswordField:A0,Appearance:ut},xt.AcroForm={ChoiceField:eo,ListBox:to,ComboBox:ro,EditBox:Zf,Button:iA,PushButton:e0,RadioButton:Ao,CheckBox:r0,TextField:ns,PasswordField:A0,Appearance:ut};function nw(t){return t.reduce(function(e,r,A){return e[r]=A,e},{})}(function(t){t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},A=t.__addimage__.getImageFileTypeByImageData=function(U,T){var V,Y,ce,he,me,ge=e;if((T=T||e)==="RGBA"||U.data!==void 0&&U.data instanceof Uint8ClampedArray&&"height"in U&&"width"in U)return"RGBA";if(q(U))for(me in r)for(ce=r[me],V=0;V<ce.length;V+=1){for(he=!0,Y=0;Y<ce[V].length;Y+=1)if(ce[V][Y]!==void 0&&ce[V][Y]!==U[Y]){he=!1;break}if(he===!0){ge=me;break}}else for(me in r)for(ce=r[me],V=0;V<ce.length;V+=1){for(he=!0,Y=0;Y<ce[V].length;Y+=1)if(ce[V][Y]!==void 0&&ce[V][Y]!==U.charCodeAt(Y)){he=!1;break}if(he===!0){ge=me;break}}return ge===e&&T!==e&&(ge=T),ge},n=function U(T){for(var V=this.internal.write,Y=this.internal.putStream,ce=(0,this.internal.getFilters)();ce.indexOf("FlateEncode")!==-1;)ce.splice(ce.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var he=[];if(he.push({key:"Type",value:"/XObject"}),he.push({key:"Subtype",value:"/Image"}),he.push({key:"Width",value:T.width}),he.push({key:"Height",value:T.height}),T.colorSpace===x.INDEXED?he.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(he.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===x.DEVICE_CMYK&&he.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),he.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&he.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)){for(var me="",ge=0,we=T.transparency.length;ge<we;ge++)me+=T.transparency[ge]+" "+T.transparency[ge]+" ";he.push({key:"Mask",value:"["+me+"]"})}T.sMask!==void 0&&he.push({key:"SMask",value:T.objectId+1+" 0 R"});var Be=T.filter!==void 0?["/"+T.filter]:void 0;if(Y({data:T.data,additionalKeyValues:he,alreadyAppliedFilters:Be,objectId:T.objectId}),V("endobj"),"sMask"in T&&T.sMask!==void 0){var ke="/Predictor "+T.predictor+" /Colors 1 /BitsPerComponent "+T.bitsPerComponent+" /Columns "+T.width,C={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:T.bitsPerComponent,decodeParameters:ke,data:T.sMask};"filter"in T&&(C.filter=T.filter),U.call(this,C)}if(T.colorSpace===x.INDEXED){var _=this.internal.newObject();Y({data:Q(new Uint8Array(T.palette)),objectId:_}),V("endobj")}},i=function(){var U=this.internal.collections.addImage_images;for(var T in U)n.call(this,U[T])},a=function(){var U,T=this.internal.collections.addImage_images,V=this.internal.write;for(var Y in T)V("/I"+(U=T[Y]).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},l=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(U){return typeof t["process"+U.toUpperCase()]=="function"},h=function(U){return zt(U)==="object"&&U.nodeType===1},d=function(U,T){if(U.nodeName==="IMG"&&U.hasAttribute("src")){var V=""+U.getAttribute("src");if(V.indexOf("data:image/")===0)return Il(unescape(V).split("base64,").pop());var Y=t.loadFile(V,!0);if(Y!==void 0)return Y}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 ce;switch(T){case"PNG":ce="image/png";break;case"WEBP":ce="image/webp";break;case"JPEG":case"JPG":default:ce="image/jpeg"}return Il(U.toDataURL(ce,1).split("base64,").pop())}},u=function(U){var T=this.internal.collections.addImage_images;if(T){for(var V in T)if(U===T[V].alias)return T[V]}},w=function(U,T,V){return U||T||(U=-96,T=-96),U<0&&(U=-1*V.width*72/U/this.internal.scaleFactor),T<0&&(T=-1*V.height*72/T/this.internal.scaleFactor),U===0&&(U=T*V.width/V.height),T===0&&(T=U*V.height/V.width),[U,T]},v=function(U,T,V,Y,ce,he){var me=w.call(this,V,Y,ce),ge=this.internal.getCoordinateString,we=this.internal.getVerticalCoordinateString,Be=o.call(this);if(V=me[0],Y=me[1],Be[ce.index]=ce,he){he*=Math.PI/180;var ke=Math.cos(he),C=Math.sin(he),_=function(O){return O.toFixed(4)},S=[_(ke),_(C),_(-1*C),_(ke),0,0,"cm"]}this.internal.write("q"),he?(this.internal.write([1,"0","0",1,ge(U),we(T+Y),"cm"].join(" ")),this.internal.write(S.join(" ")),this.internal.write([ge(V),"0","0",ge(Y),"0","0","cm"].join(" "))):this.internal.write([ge(V),"0","0",ge(Y),ge(U),we(T+Y),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ce.index+" Do"),this.internal.write("Q")},x=t.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"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=t.__addimage__.sHashCode=function(U){var T,V,Y=0;if(typeof U=="string")for(V=U.length,T=0;T<V;T++)Y=(Y<<5)-Y+U.charCodeAt(T),Y|=0;else if(q(U))for(V=U.byteLength/2,T=0;T<V;T++)Y=(Y<<5)-Y+U[T],Y|=0;return Y},F=t.__addimage__.validateStringAsBase64=function(U){(U=U||"").toString().trim();var T=!0;return U.length===0&&(T=!1),U.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(U.substr(0,U.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(U.substr(-2))===!1&&(T=!1),T},k=t.__addimage__.extractImageFromDataUrl=function(U){var T=(U=U||"").split("base64,"),V=null;if(T.length===2){var Y=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(T[0]);Array.isArray(Y)&&(V={mimeType:Y[1],charset:Y[2],data:T[1]})}return V},X=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(U){return X()&&U instanceof ArrayBuffer};var q=t.__addimage__.isArrayBufferView=function(U){return X()&&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)},N=t.__addimage__.binaryStringToUint8Array=function(U){for(var T=U.length,V=new Uint8Array(T),Y=0;Y<T;Y++)V[Y]=U.charCodeAt(Y);return V},Q=t.__addimage__.arrayBufferToBinaryString=function(U){for(var T="",V=q(U)?U:new Uint8Array(U),Y=0;Y<V.length;Y+=8192)T+=String.fromCharCode.apply(null,V.subarray(Y,Y+8192));return T};t.addImage=function(){var U,T,V,Y,ce,he,me,ge,we;if(typeof arguments[1]=="number"?(T=e,V=arguments[1],Y=arguments[2],ce=arguments[3],he=arguments[4],me=arguments[5],ge=arguments[6],we=arguments[7]):(T=arguments[1],V=arguments[2],Y=arguments[3],ce=arguments[4],he=arguments[5],me=arguments[6],ge=arguments[7],we=arguments[8]),zt(U=arguments[0])==="object"&&!h(U)&&"imageData"in U){var Be=U;U=Be.imageData,T=Be.format||T||e,V=Be.x||V||0,Y=Be.y||Y||0,ce=Be.w||Be.width||ce,he=Be.h||Be.height||he,me=Be.alias||me,ge=Be.compression||ge,we=Be.rotation||Be.angle||we}var ke=this.internal.getFilters();if(ge===void 0&&ke.indexOf("FlateEncode")!==-1&&(ge="SLOW"),isNaN(V)||isNaN(Y))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var C=K.call(this,U,T,me,ge);return v.call(this,V,Y,ce,he,C,we),this};var K=function(U,T,V,Y){var ce,he,me;if(typeof U=="string"&&A(U)===e){U=unescape(U);var ge=Ae(U,!1);(ge!==""||(ge=t.loadFile(U,!0))!==void 0)&&(U=ge)}if(h(U)&&(U=d(U,T)),T=A(U,T),!c(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((me=V)==null||me.length===0)&&(V=function(we){return typeof we=="string"||q(we)?E(we):q(we.data)?E(we.data):null}(U)),(ce=u.call(this,V))||(X()&&(U instanceof Uint8Array||T==="RGBA"||(he=U,U=N(U))),ce=this["process"+T.toUpperCase()](U,l.call(this),V,function(we){return we&&typeof we=="string"&&(we=we.toUpperCase()),we in t.image_compression?we:y.NONE}(Y),he)),!ce)throw new Error("An unknown error occurred whilst processing the image.");return ce},Ae=t.__addimage__.convertBase64ToBinaryString=function(U,T){var V;T=typeof T!="boolean"||T;var Y,ce="";if(typeof U=="string"){Y=(V=k(U))!==null?V.data:U;try{ce=Il(Y)}catch(he){if(T)throw F(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+he.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ce};t.getImageProperties=function(U){var T,V,Y="";if(h(U)&&(U=d(U)),typeof U=="string"&&A(U)===e&&((Y=Ae(U,!1))===""&&(Y=t.loadFile(U)||""),U=Y),V=A(U),!c(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(!X()||U instanceof Uint8Array||(U=N(U)),!(T=this["process"+V.toUpperCase()](U)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=V,T}})(xt.API),function(t){var e=function(r){if(r!==void 0&&r!="")return!0};xt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(r){for(var A,n,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(r.objId),l=r.pageContext.annotations,c=!1,h=0;h<l.length&&!c;h++)switch((A=l[h]).type){case"link":(e(A.options.url)||e(A.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(c!=0){this.internal.write("/Annots [");for(var d=0;d<l.length;d++){A=l[d];var u=this.internal.pdfEscape,w=this.internal.getEncryptor(r.objId);switch(A.type){case"reference":this.internal.write(" "+A.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),x=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(v.objId),E=A.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(A.bounds.x)+" "+s(A.bounds.y+A.bounds.h)+" "+a(A.bounds.x+A.bounds.w)+" "+s(A.bounds.y)+"] ")+"/Contents ("+u(y(A.contents))+")",i+=" /Popup "+x.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+u(y(E))+") >>",v.content=i;var F=v.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(A.bounds.x+30)+" "+s(A.bounds.y+A.bounds.h)+" "+a(A.bounds.x+A.bounds.w+30)+" "+s(A.bounds.y)+"] ")+" /Parent "+F,A.open&&(i+=" /Open true"),i+=" >>",x.content=i,this.internal.write(v.objId,"0 R",x.objId,"0 R");break;case"freetext":n="/Rect ["+a(A.bounds.x)+" "+s(A.bounds.y)+" "+a(A.bounds.x+A.bounds.w)+" "+s(A.bounds.y+A.bounds.h)+"] ";var k=A.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+u(w(A.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+k+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(A.options.name){var X=this.annotations._nameMap[A.options.name];A.options.pageNumber=X.page,A.options.top=X.y}else A.options.top||(A.options.top=0);if(n="/Rect ["+A.finalBounds.x+" "+A.finalBounds.y+" "+A.finalBounds.w+" "+A.finalBounds.h+"] ",i="",A.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+u(w(A.options.url))+") >>";else if(A.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(A.options.pageNumber).objId+" 0 R",A.options.magFactor=A.options.magFactor||"XYZ",A.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+A.options.top+"]";break;case"FitV":A.options.left=A.options.left||0,i+=" /FitV "+A.options.left+"]";break;case"XYZ":default:var q=s(A.options.top);A.options.left=A.options.left||0,A.options.zoom===void 0&&(A.options.zoom=0),i+=" /XYZ "+A.options.left+" "+q+" "+A.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(r){var A=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":A.pageContext.annotations.push(r)}},t.link=function(r,A,n,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(r),y:l(A),w:o(r+n),h:l(A+i)},options:a,type:"link"})},t.textWithLink=function(r,A,n,i){var a,s,o=this.getTextWidth(r),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var c=this.splitTextToSize(r,s).length;a=Math.ceil(l*c)}else s=o,a=l;return this.text(r,A,n,i),n+=.2*l,i.align==="center"&&(A-=o/2),i.align==="right"&&(A-=o),this.link(A,n-l,s,a,i),o},t.getTextWidth=function(r){var A=this.internal.getFontSize();return this.getStringUnitWidth(r)*A/this.internal.scaleFactor}}(xt.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},A={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(v){return e[v.charCodeAt(0)]!==void 0},a=t.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},s=t.__arabicParser__.isArabicEndLetter=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(v){return a(v)&&n.indexOf(v.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(v){return a(v)&&i(v)&&e[v.charCodeAt(0)].length==4},h=t.__arabicParser__.resolveLigatures=function(v){var x=0,y=r,E="",F=0;for(x=0;x<v.length;x+=1)y[v.charCodeAt(x)]!==void 0?(F++,typeof(y=y[v.charCodeAt(x)])=="number"&&(E+=String.fromCharCode(y),y=r,F=0),x===v.length-1&&(y=r,E+=v.charAt(x-(F-1)),x-=F-1,F=0)):(y=r,E+=v.charAt(x-F),x-=F,F=0);return E};t.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&A[v.charCodeAt(0)]!==void 0};var d=t.__arabicParser__.getCorrectForm=function(v,x,y){return a(v)?i(v)===!1?-1:!l(v)||!a(x)&&!a(y)||!a(y)&&s(x)||s(v)&&!a(x)||s(v)&&o(x)||s(v)&&s(x)?0:c(v)&&a(x)&&!s(x)&&a(y)&&l(y)?3:s(v)||!a(y)?1:2:-1},u=function(v){var x=0,y=0,E=0,F="",k="",X="",q=(v=v||"").split("\\s+"),N=[];for(x=0;x<q.length;x+=1){for(N.push(""),y=0;y<q[x].length;y+=1)F=q[x][y],k=q[x][y-1],X=q[x][y+1],a(F)?(E=d(F,k,X),N[x]+=E!==-1?String.fromCharCode(e[F.charCodeAt(0)][E]):F):N[x]+=F;N[x]=h(N[x])}return N.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var v,x=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(x)){var E=0;for(y=[],E=0;E<x.length;E+=1)Array.isArray(x[E])?y.push([u(x[E][0]),x[E][1],x[E][2]]):y.push([u(x[E])]);v=y}else v=u(x);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};t.events.push(["preProcessText",w])}(xt.API),xt.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(t){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var A=150;Object.defineProperty(this,"width",{get:function(){return A},set:function(s){A=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=A+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",{})};e.prototype.getContext=function(r,A){var n;if((r=r||"2d")!=="2d")return null;for(n in A)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=A[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(xt.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,A=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(v){o=v}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var c=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var u=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(v){w=v}}),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]},t.setHeaderFunction=function(o){return A.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},t.getTextDimensions=function(o,l){A.call(this);var c=(l=l||{}).fontSize||this.getFontSize(),h=l.font||this.getFont(),d=l.scaleFactor||this.internal.scaleFactor,u=0,w=0,v=0,x=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 y=l.maxWidth;y>0?typeof o=="string"?o=this.splitTextToSize(o,y):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(F,k){return F.concat(x.splitTextToSize(k,y))},[])):o=Array.isArray(o)?o:[o];for(var E=0;E<o.length;E++)u<(v=this.getStringUnitWidth(o[E],{font:h})*c)&&(u=v);return u!==0&&(w=o.length),{w:u/=d,h:Math.max((w*c*this.getLineHeightFactor()-c*(this.getLineHeightFactor()-1))/d,0)}},t.cellAddPage=function(){A.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.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]),A.call(this);var l=this.internal.__cell__.lastCell,c=this.internal.__cell__.padding,h=this.internal.__cell__.margins||e,d=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===o.lineNumber?(o.x=(l.x||0)+(l.width||0),o.y=l.y||0):l.y+l.height+o.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=h.top,u&&d&&(this.printHeaderRow(o.lineNumber,!0),o.y+=d[0].height)):o.y=l.y+l.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,r===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-c,o.y+c,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+c,{align:"center",baseline:"top",maxWidth:o.width-c-c}):this.text(o.text,o.x+c,o.y+c,{align:"left",baseline:"top",maxWidth:o.width-c-c})),this.internal.__cell__.lastCell=o,this};t.table=function(o,l,c,h,d){if(A.call(this),!c)throw new Error("No data for PDF table.");var u,w,v,x,y=[],E=[],F=[],k={},X={},q=[],N=[],Q=(d=d||{}).autoSize||!1,K=d.printHeaders!==!1,Ae=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,U=d.margins||Object.assign({width:this.getPageWidth()},e),T=typeof d.padding=="number"?d.padding:3,V=d.headerBackgroundColor||"#c8c8c8",Y=d.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=K,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=Ae,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=Y,this.setFontSize(Ae),h==null)E=y=Object.keys(c[0]),F=y.map(function(){return"left"});else if(Array.isArray(h)&&zt(h[0])==="object")for(y=h.map(function(Be){return Be.name}),E=h.map(function(Be){return Be.prompt||Be.name||""}),F=h.map(function(Be){return Be.align||"left"}),u=0;u<h.length;u+=1)X[h[u].name]=h[u].width*(19.049976/25.4);else Array.isArray(h)&&typeof h[0]=="string"&&(E=y=h,F=y.map(function(){return"left"}));if(Q||Array.isArray(h)&&typeof h[0]=="string")for(u=0;u<y.length;u+=1){for(k[x=y[u]]=c.map(function(Be){return Be[x]}),this.setFont(void 0,"bold"),q.push(this.getTextDimensions(E[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=k[x],this.setFont(void 0,"normal"),v=0;v<w.length;v+=1)q.push(this.getTextDimensions(w[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);X[x]=Math.max.apply(null,q)+T+T,q=[]}if(K){var ce={};for(u=0;u<y.length;u+=1)ce[y[u]]={},ce[y[u]].text=E[u],ce[y[u]].align=F[u];var he=s.call(this,ce,X);N=y.map(function(Be){return new i(o,l,X[Be],he,ce[Be].text,void 0,ce[Be].align)}),this.setTableHeaderRow(N),this.printHeaderRow(1,!1)}var me=h.reduce(function(Be,ke){return Be[ke.name]=ke.align,Be},{});for(u=0;u<c.length;u+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:u,data:c[u]},this);var ge=s.call(this,c[u],X);for(v=0;v<y.length;v+=1){var we=c[u][y[v]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:u,col:v,data:we},this),a.call(this,new i(o,l,X[y[v]],ge,we,u+2,me[y[v]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=l,this};var s=function(o,l){var c=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(o).map(function(u){var w=o[u];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,l[u]-c-c)},this).map(function(u){return this.getLineHeightFactor()*u.length*h/d+c+c},this).reduce(function(u,w){return Math.max(u,w)},0)};t.setTableHeaderRow=function(o){A.call(this),this.internal.__cell__.tableHeaderRow=o},t.printHeaderRow=function(o,l){if(A.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var c;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){c=this.internal.__cell__.tableHeaderRow[u].clone(),l&&(c.y=this.internal.__cell__.margins.top||0,d.push(c)),c.lineNumber=o;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,c),this.setTextColor(w)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}}(xt.API);var iw={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},aw=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],k1=nw(aw),sw=[100,200,300,400,500,600,700,800,900],hU=nw(sw);function D1(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(i){return iw[i=i||"normal"]?i:"normal"}(t.style),A=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(t.weight),n=function(i){return typeof k1[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:e,style:r,weight:A,stretch:n,src:t.src||[],ref:t.ref||{name:e,style:[n,r,A].join(" ")}}}function ow(t,e,r,A){var n;for(n=r;n>=0&&n<e.length;n+=A)if(t[e[n]])return t[e[n]];for(n=r;n>=0&&n<e.length;n-=A)if(t[e[n]])return t[e[n]]}var dU={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},lw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cw(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function gU(t,e,r){for(var A=(r=r||{}).defaultFontFamily||"times",n=Object.assign({},dU,r.genericFontFamilies||{}),i=null,a=null,s=0;s<e.length;++s)if(n[(i=D1(e[s])).family]&&(i.family=n[i.family]),t.hasOwnProperty(i.family)){a=t[i.family];break}if(!(a=a||t[A]))throw new Error("Could not find a font-family for the rule '"+cw(i)+"' and default family '"+A+"'.");if(a=function(o,l){if(l[o])return l[o];var c=k1[o],h=c<=k1.normal?-1:1,d=ow(l,aw,c,h);if(!d)throw new Error("Could not find a matching font-stretch value for "+o);return d}(i.stretch,a),a=function(o,l){if(l[o])return l[o];for(var c=iw[o],h=0;h<c.length;++h)if(l[c[h]])return l[c[h]];throw new Error("Could not find a matching font-style for "+o)}(i.style,a),!(a=function(o,l){if(l[o])return l[o];if(o===400&&l[500])return l[500];if(o===500&&l[400])return l[400];var c=hU[o],h=ow(l,sw,c,o<400?-1:1);if(!h)throw new Error("Could not find a matching font-weight for value "+o);return h}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+cw(i)+"'.");return a}function fw(t){return t.trimLeft()}function pU(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function vU(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var n0,uw,hw,P1=["times"];(function(t){var e,r,A,n,i,a,s,o,l,c=function(C){return C=C||{},this.isStrokeTransparent=C.isStrokeTransparent||!1,this.strokeOpacity=C.strokeOpacity||1,this.strokeStyle=C.strokeStyle||"#000000",this.fillStyle=C.fillStyle||"#000000",this.isFillTransparent=C.isFillTransparent||!1,this.fillOpacity=C.fillOpacity||1,this.font=C.font||"10px sans-serif",this.textBaseline=C.textBaseline||"alphabetic",this.textAlign=C.textAlign||"left",this.lineWidth=C.lineWidth||1,this.lineJoin=C.lineJoin||"miter",this.lineCap=C.lineCap||"butt",this.path=C.path||[],this.transform=C.transform!==void 0?C.transform.clone():new o,this.globalCompositeOperation=C.globalCompositeOperation||"normal",this.globalAlpha=C.globalAlpha||1,this.clip_path=C.clip_path||[],this.currentPoint=C.currentPoint||new a,this.miterLimit=C.miterLimit||10,this.lastPoint=C.lastPoint||new a,this.lineDashOffset=C.lineDashOffset||0,this.lineDash=C.lineDash||[],this.margin=C.margin||[0,0,0,0],this.prevPageLastElemOffset=C.prevPageLastElemOffset||0,this.ignoreClearRect=typeof C.ignoreClearRect!="boolean"||C.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new h(this),e=this.internal.f2,r=this.internal.getCoordinateString,A=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,l=new c}]);var h=function(C){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _=C;Object.defineProperty(this,"pdf",{get:function(){return _}});var S=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return S},set:function(_e){S=!!_e}});var O=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return O},set:function(_e){O=!!_e}});var W=0;Object.defineProperty(this,"posX",{get:function(){return W},set:function(_e){isNaN(_e)||(W=_e)}});var ie=0;Object.defineProperty(this,"posY",{get:function(){return ie},set:function(_e){isNaN(_e)||(ie=_e)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(_e){var re;typeof _e=="number"?re=[_e,_e,_e,_e]:((re=new Array(4))[0]=_e[0],re[1]=_e.length>=2?_e[1]:re[0],re[2]=_e.length>=3?_e[2]:re[0],re[3]=_e.length>=4?_e[3]:re[1]),l.margin=re}});var oe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return oe},set:function(_e){oe=_e}});var le=0;Object.defineProperty(this,"lastBreak",{get:function(){return le},set:function(_e){le=_e}});var ye=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ye},set:function(_e){ye=_e}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(_e){_e instanceof c&&(l=_e)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(_e){l.path=_e}});var Ne=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ne},set:function(_e){Ne=_e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_e){var re;re=d(_e),this.ctx.fillStyle=re.style,this.ctx.isFillTransparent=re.a===0,this.ctx.fillOpacity=re.a,this.pdf.setFillColor(re.r,re.g,re.b,{a:re.a}),this.pdf.setTextColor(re.r,re.g,re.b,{a:re.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_e){var re=d(_e);this.ctx.strokeStyle=re.style,this.ctx.isStrokeTransparent=re.a===0,this.ctx.strokeOpacity=re.a,re.a===0?this.pdf.setDrawColor(255,255,255):(re.a,this.pdf.setDrawColor(re.r,re.g,re.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_e){["butt","round","square"].indexOf(_e)!==-1&&(this.ctx.lineCap=_e,this.pdf.setLineCap(_e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_e){isNaN(_e)||(this.ctx.lineWidth=_e,this.pdf.setLineWidth(_e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_e){["bevel","round","miter"].indexOf(_e)!==-1&&(this.ctx.lineJoin=_e,this.pdf.setLineJoin(_e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_e){isNaN(_e)||(this.ctx.miterLimit=_e,this.pdf.setMiterLimit(_e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_e){this.ctx.textBaseline=_e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_e){["right","end","center","left","start"].indexOf(_e)!==-1&&(this.ctx.textAlign=_e)}});var Re=null;function Xe(_e,re){if(Re===null){var Qe=function(rt){var Me=[];return Object.keys(rt).forEach(function(We){rt[We].forEach(function($e){var Je=null;switch($e){case"bold":Je={family:We,weight:"bold"};break;case"italic":Je={family:We,style:"italic"};break;case"bolditalic":Je={family:We,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:We}}Je!==null&&(Je.ref={name:We,style:$e},Me.push(Je))})}),Me}(_e.getFontList());Re=function(rt){for(var Me={},We=0;We<rt.length;++We){var $e=D1(rt[We]),Je=$e.family,st=$e.stretch,nt=$e.style,ht=$e.weight;Me[Je]=Me[Je]||{},Me[Je][st]=Me[Je][st]||{},Me[Je][st][nt]=Me[Je][st][nt]||{},Me[Je][st][nt][ht]=$e}return Me}(Qe.concat(re))}return Re}var qe=null;Object.defineProperty(this,"fontFaces",{get:function(){return qe},set:function(_e){Re=null,qe=_e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_e){var re;if(this.ctx.font=_e,(re=/^\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(_e))!==null){var Qe=re[1],rt=(re[2],re[3]),Me=re[4],We=(re[5],re[6]),$e=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Me)[2];Me=Math.floor($e==="px"?parseFloat(Me)*this.pdf.internal.scaleFactor:$e==="em"?parseFloat(Me)*this.pdf.getFontSize():parseFloat(Me)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Me);var Je=function(dt){var yt,tt,nr=[],It=dt.trim();if(It==="")return P1;if(It in lw)return[lw[It]];for(;It!=="";){switch(tt=null,yt=(It=fw(It)).charAt(0)){case'"':case"'":tt=pU(It.substring(1),yt);break;default:tt=vU(It)}if(tt===null||(nr.push(tt[0]),(It=fw(tt[1]))!==""&&It.charAt(0)!==","))return P1;It=It.replace(/^,/,"")}return nr}(We);if(this.fontFaces){var st=gU(Xe(this.pdf,this.fontFaces),Je.map(function(dt){return{family:dt,stretch:"normal",weight:rt,style:Qe}}));this.pdf.setFont(st.ref.name,st.ref.style)}else{var nt="";(rt==="bold"||parseInt(rt,10)>=700||Qe==="bold")&&(nt="bold"),Qe==="italic"&&(nt+="italic"),nt.length===0&&(nt="normal");for(var ht="",mt={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"},_t=0;_t<Je.length;_t++){if(this.pdf.internal.getFont(Je[_t],nt,{noFallback:!0,disableWarning:!0})!==void 0){ht=Je[_t];break}if(nt==="bolditalic"&&this.pdf.internal.getFont(Je[_t],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ht=Je[_t],nt="bold";else if(this.pdf.internal.getFont(Je[_t],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ht=Je[_t],nt="normal";break}}if(ht===""){for(var Ut=0;Ut<Je.length;Ut++)if(mt[Je[Ut]]){ht=mt[Je[Ut]];break}}ht=ht===""?"Times":ht,this.pdf.setFont(ht,nt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_e){this.ctx.globalCompositeOperation=_e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_e){this.ctx.globalAlpha=_e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_e){this.ctx.lineDashOffset=_e,ke.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_e){this.ctx.lineDash=_e,ke.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_e){this.ctx.ignoreClearRect=!!_e}})};h.prototype.setLineDash=function(C){this.lineDash=C},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){k.call(this,"fill",!1)},h.prototype.stroke=function(){k.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var S=this.ctx.transform.applyToPoint(new a(C,_));this.path.push({type:"mt",x:S.x,y:S.y}),this.ctx.lastPoint=new a(C,_)},h.prototype.closePath=function(){var C=new a(0,0),_=0;for(_=this.path.length-1;_!==-1;_--)if(this.path[_].type==="begin"&&zt(this.path[_+1])==="object"&&typeof this.path[_+1].x=="number"){C=new a(this.path[_+1].x,this.path[_+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(C.x,C.y)},h.prototype.lineTo=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var S=this.ctx.transform.applyToPoint(new a(C,_));this.path.push({type:"lt",x:S.x,y:S.y}),this.ctx.lastPoint=new a(S.x,S.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},h.prototype.quadraticCurveTo=function(C,_,S,O){if(isNaN(S)||isNaN(O)||isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var W=this.ctx.transform.applyToPoint(new a(S,O)),ie=this.ctx.transform.applyToPoint(new a(C,_));this.path.push({type:"qct",x1:ie.x,y1:ie.y,x:W.x,y:W.y}),this.ctx.lastPoint=new a(W.x,W.y)},h.prototype.bezierCurveTo=function(C,_,S,O,W,ie){if(isNaN(W)||isNaN(ie)||isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var oe=this.ctx.transform.applyToPoint(new a(W,ie)),le=this.ctx.transform.applyToPoint(new a(C,_)),ye=this.ctx.transform.applyToPoint(new a(S,O));this.path.push({type:"bct",x1:le.x,y1:le.y,x2:ye.x,y2:ye.y,x:oe.x,y:oe.y}),this.ctx.lastPoint=new a(oe.x,oe.y)},h.prototype.arc=function(C,_,S,O,W,ie){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O)||isNaN(W))throw cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ie=!!ie,!this.ctx.transform.isIdentity){var oe=this.ctx.transform.applyToPoint(new a(C,_));C=oe.x,_=oe.y;var le=this.ctx.transform.applyToPoint(new a(0,S)),ye=this.ctx.transform.applyToPoint(new a(0,0));S=Math.sqrt(Math.pow(le.x-ye.x,2)+Math.pow(le.y-ye.y,2))}Math.abs(W-O)>=2*Math.PI&&(O=0,W=2*Math.PI),this.path.push({type:"arc",x:C,y:_,radius:S,startAngle:O,endAngle:W,counterclockwise:ie})},h.prototype.arcTo=function(C,_,S,O,W){throw new Error("arcTo not implemented.")},h.prototype.rect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(C,_),this.lineTo(C+S,_),this.lineTo(C+S,_+O),this.lineTo(C,_+O),this.lineTo(C,_),this.lineTo(C+S,_),this.lineTo(C,_)},h.prototype.fillRect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.call(this)){var W={};this.lineCap!=="butt"&&(W.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(W.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(C,_,S,O),this.fill(),W.hasOwnProperty("lineCap")&&(this.lineCap=W.lineCap),W.hasOwnProperty("lineJoin")&&(this.lineJoin=W.lineJoin)}},h.prototype.strokeRect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(C,_,S,O),this.stroke())},h.prototype.clearRect=function(C,_,S,O){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O))throw cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(C,_,S,O))},h.prototype.save=function(C){C=typeof C!="boolean"||C;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,S=0;S<this.pdf.internal.getNumberOfPages();S++)this.pdf.setPage(S+1),this.pdf.internal.out("q");if(this.pdf.setPage(_),C){this.ctx.fontSize=this.pdf.internal.getFontSize();var O=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=O}},h.prototype.restore=function(C){C=typeof C!="boolean"||C;for(var _=this.pdf.internal.getCurrentPageInfo().pageNumber,S=0;S<this.pdf.internal.getNumberOfPages();S++)this.pdf.setPage(S+1),this.pdf.internal.out("Q");this.pdf.setPage(_),C&&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)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(C){var _,S,O,W;if(C.isCanvasGradient===!0&&(C=C.getColor()),!C)return{r:0,g:0,b:0,a:0,style:C};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(C))_=0,S=0,O=0,W=0;else{var ie=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(C);if(ie!==null)_=parseInt(ie[1]),S=parseInt(ie[2]),O=parseInt(ie[3]),W=1;else if((ie=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(C))!==null)_=parseInt(ie[1]),S=parseInt(ie[2]),O=parseInt(ie[3]),W=parseFloat(ie[4]);else{if(W=1,typeof C=="string"&&C.charAt(0)!=="#"){var oe=new Xm(C);C=oe.ok?oe.toHex():"#000000"}C.length===4?(_=C.substring(1,2),_+=_,S=C.substring(2,3),S+=S,O=C.substring(3,4),O+=O):(_=C.substring(1,3),S=C.substring(3,5),O=C.substring(5,7)),_=parseInt(_,16),S=parseInt(S,16),O=parseInt(O,16)}}return{r:_,g:S,b:O,a:W,style:C}},u=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(C,_,S,O){if(isNaN(_)||isNaN(S)||typeof C!="string")throw cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(O=isNaN(O)?void 0:O,!u.call(this)){var W=ge(this.ctx.transform.rotation),ie=this.ctx.transform.scaleX;T.call(this,{text:C,x:_,y:S,scale:ie,angle:W,align:this.textAlign,maxWidth:O})}},h.prototype.strokeText=function(C,_,S,O){if(isNaN(_)||isNaN(S)||typeof C!="string")throw cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){O=isNaN(O)?void 0:O;var W=ge(this.ctx.transform.rotation),ie=this.ctx.transform.scaleX;T.call(this,{text:C,x:_,y:S,scale:ie,renderingMode:"stroke",angle:W,align:this.textAlign,maxWidth:O})}},h.prototype.measureText=function(C){if(typeof C!="string")throw cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _=this.pdf,S=this.pdf.internal.scaleFactor,O=_.internal.getFontSize(),W=_.getStringUnitWidth(C)*O/_.internal.scaleFactor,ie=function(oe){var le=(oe=oe||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return le}}),this};return new ie({width:W*=Math.round(96*S/72*1e4)/1e4})},h.prototype.scale=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var S=new o(C,0,0,_,0,0);this.ctx.transform=this.ctx.transform.multiply(S)},h.prototype.rotate=function(C){if(isNaN(C))throw cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _=new o(Math.cos(C),Math.sin(C),-Math.sin(C),Math.cos(C),0,0);this.ctx.transform=this.ctx.transform.multiply(_)},h.prototype.translate=function(C,_){if(isNaN(C)||isNaN(_))throw cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var S=new o(1,0,0,1,C,_);this.ctx.transform=this.ctx.transform.multiply(S)},h.prototype.transform=function(C,_,S,O,W,ie){if(isNaN(C)||isNaN(_)||isNaN(S)||isNaN(O)||isNaN(W)||isNaN(ie))throw cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var oe=new o(C,_,S,O,W,ie);this.ctx.transform=this.ctx.transform.multiply(oe)},h.prototype.setTransform=function(C,_,S,O,W,ie){C=isNaN(C)?1:C,_=isNaN(_)?0:_,S=isNaN(S)?0:S,O=isNaN(O)?1:O,W=isNaN(W)?0:W,ie=isNaN(ie)?0:ie,this.ctx.transform=new o(C,_,S,O,W,ie)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(C,_,S,O,W,ie,oe,le,ye){var Ne=this.pdf.getImageProperties(C),Re=1,Xe=1,qe=1,_e=1;O!==void 0&&le!==void 0&&(qe=le/O,_e=ye/W,Re=Ne.width/O*le/O,Xe=Ne.height/W*ye/W),ie===void 0&&(ie=_,oe=S,_=0,S=0),O!==void 0&&le===void 0&&(le=O,ye=W),O===void 0&&le===void 0&&(le=Ne.width,ye=Ne.height);for(var re,Qe=this.ctx.transform.decompose(),rt=ge(Qe.rotate.shx),Me=new o,We=(Me=(Me=(Me=Me.multiply(Qe.translate)).multiply(Qe.skew)).multiply(Qe.scale)).applyToRectangle(new s(ie-_*qe,oe-S*_e,O*Re,W*Xe)),$e=x.call(this,We),Je=[],st=0;st<$e.length;st+=1)Je.indexOf($e[st])===-1&&Je.push($e[st]);if(F(Je),this.autoPaging)for(var nt=Je[0],ht=Je[Je.length-1],mt=nt;mt<ht+1;mt++){this.pdf.setPage(mt);var _t=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=mt===1?this.posY+this.margin[0]:this.margin[0],dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tt=mt===1?0:dt+(mt-2)*yt;if(this.ctx.clip_path.length!==0){var nr=this.path;re=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(re,this.posX+this.margin[3],-tt+Ut+this.ctx.prevPageLastElemOffset),X.call(this,"fill",!0),this.path=nr}var It=JSON.parse(JSON.stringify(We));It=E([It],this.posX+this.margin[3],-tt+Ut+this.ctx.prevPageLastElemOffset)[0];var fr=(mt>nt||mt<ht)&&v.call(this);fr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_t,yt,null).clip().discardPath()),this.pdf.addImage(C,"JPEG",It.x,It.y,It.w,It.h,null,null,rt),fr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(C,"JPEG",We.x,We.y,We.w,We.h,null,null,rt)};var x=function(C,_,S){var O=[];_=_||this.pdf.internal.pageSize.width,S=S||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var W=this.posY+this.ctx.prevPageLastElemOffset;switch(C.type){default:case"mt":case"lt":O.push(Math.floor((C.y+W)/S)+1);break;case"arc":O.push(Math.floor((C.y+W-C.radius)/S)+1),O.push(Math.floor((C.y+W+C.radius)/S)+1);break;case"qct":var ie=we(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x,C.y);O.push(Math.floor((ie.y+W)/S)+1),O.push(Math.floor((ie.y+ie.h+W)/S)+1);break;case"bct":var oe=Be(this.ctx.lastPoint.x,this.ctx.lastPoint.y,C.x1,C.y1,C.x2,C.y2,C.x,C.y);O.push(Math.floor((oe.y+W)/S)+1),O.push(Math.floor((oe.y+oe.h+W)/S)+1);break;case"rect":O.push(Math.floor((C.y+W)/S)+1),O.push(Math.floor((C.y+C.h+W)/S)+1)}for(var le=0;le<O.length;le+=1)for(;this.pdf.internal.getNumberOfPages()<O[le];)y.call(this);return O},y=function(){var C=this.fillStyle,_=this.strokeStyle,S=this.font,O=this.lineCap,W=this.lineWidth,ie=this.lineJoin;this.pdf.addPage(),this.fillStyle=C,this.strokeStyle=_,this.font=S,this.lineCap=O,this.lineWidth=W,this.lineJoin=ie},E=function(C,_,S){for(var O=0;O<C.length;O++)switch(C[O].type){case"bct":C[O].x2+=_,C[O].y2+=S;case"qct":C[O].x1+=_,C[O].y1+=S;case"mt":case"lt":case"arc":default:C[O].x+=_,C[O].y+=S}return C},F=function(C){return C.sort(function(_,S){return _-S})},k=function(C,_){for(var S,O,W=this.fillStyle,ie=this.strokeStyle,oe=this.lineCap,le=this.lineWidth,ye=Math.abs(le*this.ctx.transform.scaleX),Ne=this.lineJoin,Re=JSON.parse(JSON.stringify(this.path)),Xe=JSON.parse(JSON.stringify(this.path)),qe=[],_e=0;_e<Xe.length;_e++)if(Xe[_e].x!==void 0)for(var re=x.call(this,Xe[_e]),Qe=0;Qe<re.length;Qe+=1)qe.indexOf(re[Qe])===-1&&qe.push(re[Qe]);for(var rt=0;rt<qe.length;rt++)for(;this.pdf.internal.getNumberOfPages()<qe[rt];)y.call(this);if(F(qe),this.autoPaging)for(var Me=qe[0],We=qe[qe.length-1],$e=Me;$e<We+1;$e++){this.pdf.setPage($e),this.fillStyle=W,this.strokeStyle=ie,this.lineCap=oe,this.lineWidth=ye,this.lineJoin=Ne;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],st=$e===1?this.posY+this.margin[0]:this.margin[0],nt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ht=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],mt=$e===1?0:nt+($e-2)*ht;if(this.ctx.clip_path.length!==0){var _t=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(S,this.posX+this.margin[3],-mt+st+this.ctx.prevPageLastElemOffset),X.call(this,C,!0),this.path=_t}if(O=JSON.parse(JSON.stringify(Re)),this.path=E(O,this.posX+this.margin[3],-mt+st+this.ctx.prevPageLastElemOffset),_===!1||$e===0){var Ut=($e>Me||$e<We)&&v.call(this);Ut&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,ht,null).clip().discardPath()),X.call(this,C,_),Ut&&this.pdf.restoreGraphicsState()}this.lineWidth=le}else this.lineWidth=ye,X.call(this,C,_),this.lineWidth=le;this.path=Re},X=function(C,_){if((C!=="stroke"||_||!w.call(this))&&(C==="stroke"||_||!u.call(this))){for(var S,O,W=[],ie=this.path,oe=0;oe<ie.length;oe++){var le=ie[oe];switch(le.type){case"begin":W.push({begin:!0});break;case"close":W.push({close:!0});break;case"mt":W.push({start:le,deltas:[],abs:[]});break;case"lt":var ye=W.length;if(ie[oe-1]&&!isNaN(ie[oe-1].x)&&(S=[le.x-ie[oe-1].x,le.y-ie[oe-1].y],ye>0)){for(;ye>=0;ye--)if(W[ye-1].close!==!0&&W[ye-1].begin!==!0){W[ye-1].deltas.push(S),W[ye-1].abs.push(le);break}}break;case"bct":S=[le.x1-ie[oe-1].x,le.y1-ie[oe-1].y,le.x2-ie[oe-1].x,le.y2-ie[oe-1].y,le.x-ie[oe-1].x,le.y-ie[oe-1].y],W[W.length-1].deltas.push(S);break;case"qct":var Ne=ie[oe-1].x+2/3*(le.x1-ie[oe-1].x),Re=ie[oe-1].y+2/3*(le.y1-ie[oe-1].y),Xe=le.x+2/3*(le.x1-le.x),qe=le.y+2/3*(le.y1-le.y),_e=le.x,re=le.y;S=[Ne-ie[oe-1].x,Re-ie[oe-1].y,Xe-ie[oe-1].x,qe-ie[oe-1].y,_e-ie[oe-1].x,re-ie[oe-1].y],W[W.length-1].deltas.push(S);break;case"arc":W.push({deltas:[],abs:[],arc:!0}),Array.isArray(W[W.length-1].abs)&&W[W.length-1].abs.push(le)}}O=_?null:C==="stroke"?"stroke":"fill";for(var Qe=!1,rt=0;rt<W.length;rt++)if(W[rt].arc)for(var Me=W[rt].abs,We=0;We<Me.length;We++){var $e=Me[We];$e.type==="arc"?Q.call(this,$e.x,$e.y,$e.radius,$e.startAngle,$e.endAngle,$e.counterclockwise,void 0,_,!Qe):V.call(this,$e.x,$e.y),Qe=!0}else if(W[rt].close===!0)this.pdf.internal.out("h"),Qe=!1;else if(W[rt].begin!==!0){var Je=W[rt].start.x,st=W[rt].start.y;Y.call(this,W[rt].deltas,Je,st),Qe=!0}O&&K.call(this,O),_&&Ae.call(this)}},q=function(C){var _=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,S=_*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return C-S;case"top":return C+_-S;case"hanging":return C+_-2*S;case"middle":return C+_/2-S;case"ideographic":return C;case"alphabetic":default:return C}},N=function(C){return C+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var C=function(){};return C.colorStops=[],C.addColorStop=function(_,S){this.colorStops.push([_,S])},C.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},C.isCanvasGradient=!0,C},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Q=function(C,_,S,O,W,ie,oe,le,ye){for(var Ne=he.call(this,S,O,W,ie),Re=0;Re<Ne.length;Re++){var Xe=Ne[Re];Re===0&&(ye?U.call(this,Xe.x1+C,Xe.y1+_):V.call(this,Xe.x1+C,Xe.y1+_)),ce.call(this,C,_,Xe.x2,Xe.y2,Xe.x3,Xe.y3,Xe.x4,Xe.y4)}le?Ae.call(this):K.call(this,oe)},K=function(C){switch(C){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ae=function(){this.pdf.clip(),this.pdf.discardPath()},U=function(C,_){this.pdf.internal.out(r(C)+" "+A(_)+" m")},T=function(C){var _;switch(C.align){case"right":case"end":_="right";break;case"center":_="center";break;case"left":case"start":default:_="left"}var S=this.pdf.getTextDimensions(C.text),O=q.call(this,C.y),W=N.call(this,O)-S.h,ie=this.ctx.transform.applyToPoint(new a(C.x,O)),oe=this.ctx.transform.decompose(),le=new o;le=(le=(le=le.multiply(oe.translate)).multiply(oe.skew)).multiply(oe.scale);for(var ye,Ne,Re,Xe=this.ctx.transform.applyToRectangle(new s(C.x,O,S.w,S.h)),qe=le.applyToRectangle(new s(C.x,W,S.w,S.h)),_e=x.call(this,qe),re=[],Qe=0;Qe<_e.length;Qe+=1)re.indexOf(_e[Qe])===-1&&re.push(_e[Qe]);if(F(re),this.autoPaging)for(var rt=re[0],Me=re[re.length-1],We=rt;We<Me+1;We++){this.pdf.setPage(We);var $e=We===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],st=this.pdf.internal.pageSize.height-this.margin[2],nt=st-this.margin[0],ht=this.pdf.internal.pageSize.width-this.margin[1],mt=ht-this.margin[3],_t=We===1?0:Je+(We-2)*nt;if(this.ctx.clip_path.length!==0){var Ut=this.path;ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(ye,this.posX+this.margin[3],-1*_t+$e),X.call(this,"fill",!0),this.path=Ut}var dt=E([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-_t+$e+this.ctx.prevPageLastElemOffset)[0];C.scale>=.01&&(Ne=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ne*C.scale),Re=this.lineWidth,this.lineWidth=Re*C.scale);var yt=this.autoPaging!=="text";if(yt||dt.y+dt.h<=st){if(yt||dt.y>=$e&&dt.x<=ht){var tt=yt?C.text:this.pdf.splitTextToSize(C.text,C.maxWidth||ht-dt.x)[0],nr=E([JSON.parse(JSON.stringify(Xe))],this.posX+this.margin[3],-_t+$e+this.ctx.prevPageLastElemOffset)[0],It=yt&&(We>rt||We<Me)&&v.call(this);It&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],mt,nt,null).clip().discardPath()),this.pdf.text(tt,nr.x,nr.y,{angle:C.angle,align:_,renderingMode:C.renderingMode}),It&&this.pdf.restoreGraphicsState()}}else dt.y<st&&(this.ctx.prevPageLastElemOffset+=st-dt.y);C.scale>=.01&&(this.pdf.setFontSize(Ne),this.lineWidth=Re)}else C.scale>=.01&&(Ne=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ne*C.scale),Re=this.lineWidth,this.lineWidth=Re*C.scale),this.pdf.text(C.text,ie.x+this.posX,ie.y+this.posY,{angle:C.angle,align:_,renderingMode:C.renderingMode,maxWidth:C.maxWidth}),C.scale>=.01&&(this.pdf.setFontSize(Ne),this.lineWidth=Re)},V=function(C,_,S,O){S=S||0,O=O||0,this.pdf.internal.out(r(C+S)+" "+A(_+O)+" l")},Y=function(C,_,S){return this.pdf.lines(C,_,S,null,null)},ce=function(C,_,S,O,W,ie,oe,le){this.pdf.internal.out([e(n(S+C)),e(i(O+_)),e(n(W+C)),e(i(ie+_)),e(n(oe+C)),e(i(le+_)),"c"].join(" "))},he=function(C,_,S,O){for(var W=2*Math.PI,ie=Math.PI/2;_>S;)_-=W;var oe=Math.abs(S-_);oe<W&&O&&(oe=W-oe);for(var le=[],ye=O?-1:1,Ne=_;oe>1e-5;){var Re=Ne+ye*Math.min(oe,ie);le.push(me.call(this,C,Ne,Re)),oe-=Math.abs(Re-Ne),Ne=Re}return le},me=function(C,_,S){var O=(S-_)/2,W=C*Math.cos(O),ie=C*Math.sin(O),oe=W,le=-ie,ye=oe*oe+le*le,Ne=ye+oe*W+le*ie,Re=4/3*(Math.sqrt(2*ye*Ne)-Ne)/(oe*ie-le*W),Xe=oe-Re*le,qe=le+Re*oe,_e=Xe,re=-qe,Qe=O+_,rt=Math.cos(Qe),Me=Math.sin(Qe);return{x1:C*Math.cos(_),y1:C*Math.sin(_),x2:Xe*rt-qe*Me,y2:Xe*Me+qe*rt,x3:_e*rt-re*Me,y3:_e*Me+re*rt,x4:C*Math.cos(S),y4:C*Math.sin(S)}},ge=function(C){return 180*C/Math.PI},we=function(C,_,S,O,W,ie){var oe=C+.5*(S-C),le=_+.5*(O-_),ye=W+.5*(S-W),Ne=ie+.5*(O-ie),Re=Math.min(C,W,oe,ye),Xe=Math.max(C,W,oe,ye),qe=Math.min(_,ie,le,Ne),_e=Math.max(_,ie,le,Ne);return new s(Re,qe,Xe-Re,_e-qe)},Be=function(C,_,S,O,W,ie,oe,le){var ye,Ne,Re,Xe,qe,_e,re,Qe,rt,Me,We,$e,Je,st,nt=S-C,ht=O-_,mt=W-S,_t=ie-O,Ut=oe-W,dt=le-ie;for(Ne=0;Ne<41;Ne++)rt=(re=(Re=C+(ye=Ne/40)*nt)+ye*((qe=S+ye*mt)-Re))+ye*(qe+ye*(W+ye*Ut-qe)-re),Me=(Qe=(Xe=_+ye*ht)+ye*((_e=O+ye*_t)-Xe))+ye*(_e+ye*(ie+ye*dt-_e)-Qe),Ne==0?(We=rt,$e=Me,Je=rt,st=Me):(We=Math.min(We,rt),$e=Math.min($e,Me),Je=Math.max(Je,rt),st=Math.max(st,Me));return new s(Math.round(We),Math.round($e),Math.round(Je-We),Math.round(st-$e))},ke=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var C,_,S=(C=this.ctx.lineDash,_=this.ctx.lineDashOffset,JSON.stringify({lineDash:C,lineDashOffset:_}));this.prevLineDash!==S&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=S)}}})(xt.API),function(t){var e=function(i){var a,s,o,l,c,h,d,u,w,v;for(s=[],o=0,l=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;l>o;o+=4)(c=(i.charCodeAt(o)<<24)+(i.charCodeAt(o+1)<<16)+(i.charCodeAt(o+2)<<8)+i.charCodeAt(o+3))!==0?(h=(c=((c=((c=((c=(c-(v=c%85))/85)-(w=c%85))/85)-(u=c%85))/85)-(d=c%85))/85)%85,s.push(h+33,d+33,u+33,w+33,v+33)):s.push(122);return function(x,y){for(var E=y;E>0;E--)x.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},r=function(i){var a,s,o,l,c,h=String,d="length",u=255,w="charCodeAt",v="slice",x="replace";for(i[v](-2),i=i[v](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),o=[],l=0,c=(i+=a="uuuuu"[v](i[d]%5||5))[d];c>l;l+=5)s=52200625*(i[w](l)-33)+614125*(i[w](l+1)-33)+7225*(i[w](l+2)-33)+85*(i[w](l+3)-33)+(i[w](l+4)-33),o.push(u&s>>24,u&s>>16,u&s>>8,u&s);return function(y,E){for(var F=E;F>0;F--)y.pop()}(o,a[d]),h.fromCharCode.apply(h,o)},A=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=F1(a)).reduce(function(o,l){return o+String.fromCharCode(l)},"")};t.processDataByFilters=function(i,a){var s=0,o=i||"",l=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":o=r(o),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=e(o),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=A(o),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(c){return("0"+c.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=n(o),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(xt.API),function(t){t.loadFile=function(e,r,A){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,l,c){var h=new XMLHttpRequest,d=0,u=function(w){var v=w.length,x=[],y=String.fromCharCode;for(d=0;d<v;d+=1)x.push(y(255&w.charCodeAt(d)));return x.join("")};if(h.open("GET",o,!l),h.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(h.onload=function(){h.status===200?c(u(this.responseText)):c(void 0)}),h.send(null),l&&h.status===200)return u(h.responseText)}(n,i,a)}catch{}return s}(e,r,A)},t.loadImageFile=t.loadFile}(xt.API),function(t){function e(){return(Bt.html2canvas?Promise.resolve(Bt.html2canvas):Promise.resolve().then(()=>DT)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function r(){return(Bt.DOMPurify?Promise.resolve(Bt.DOMPurify):Promise.resolve().then(()=>KR)).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var A=function(a){var s=zt(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 l in s.className&&(o.className=s.className),s.innerHTML&&s.dompurify&&(o.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)o.style[l]=s.style[l];return o},i=function a(s){var o=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),l=a.convert(Promise.resolve(),o);return l=(l=l.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(A(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(r).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(l,c){for(var h=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),d=l.firstChild;d;d=d.nextSibling)c!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||h.appendChild(o(d,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(h.width=l.width,h.height=l.height,h.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(h.value=l.value),h.addEventListener("load",function(){h.scrollTop=l.scrollTop,h.scrollLeft=l.scrollLeft},!0)),h}(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(e).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(e).then(function(s){var o=this.opt.jsPDF,l=this.opt.fontFaces,c=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,h=Object.assign({async:!0,allowTaint:!0,scale:c,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 h.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=l,l)for(var d=0;d<l.length;++d){var u=l[d],w=u.src.find(function(v){return v.format==="truetype"});w&&o.addFont(w.url,u.ref.name,u.ref.style)}return h.windowHeight=h.windowHeight||0,h.windowHeight=h.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):h.windowHeight,o.context2d.save(!0),s(this.prop.container,h)}).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(A(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(A(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,l){return Math.floor(o*l/72*96)}return this.then(function(){(a=a||xt.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,l){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),o!=null&&(this.progress.n=o),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,s,o,l){return this.setProgress(a?this.progress.val+a:null,s||null,o?this.progress.n+o:null,l?this.progress.stack.concat(l):null)},i.prototype.then=function(a,s){var o=this;return this.thenCore(a,s,function(l,c){return o.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(h){return o.updateProgress(null,l),h}).then(l,c).then(function(h){return o.updateProgress(1),h})})},i.prototype.thenCore=function(a,s,o){o=o||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var l=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),c=o.call(l,a,s);return i.convert(c,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,xt.getPageSize=function(a,s,o){if(zt(a)==="object"){var l=a;a=l.orientation,s=l.unit||s,o=l.format||o}s=s||"mm",o=o||"a4",a=(""+(a||"P")).toLowerCase();var c,h=(""+o).toLowerCase(),d={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":c=1;break;case"mm":c=72/25.4;break;case"cm":c=72/2.54;break;case"in":c=72;break;case"px":c=.75;break;case"pc":case"em":c=12;break;case"ex":c=6;break;default:throw"Invalid unit: "+s}var u,w=0,v=0;if(d.hasOwnProperty(h))w=d[h][1]/c,v=d[h][0]/c;else try{w=o[1],v=o[0]}catch{throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",v>w&&(u=v,v=w,w=u);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",w>v&&(u=v,v=w,w=u)}return{width:v,height:w,unit:s,k:c,orientation:a}},t.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(D1):null;var o=new i(s);return s.worker?o:o.from(a).doCallback()}}(xt.API),xt.API.addJS=function(t){return hw=t,this.internal.events.subscribe("postPutResources",function(){n0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),uw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hw+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){n0!==void 0&&uw!==void 0&&this.internal.out("/Names <</JavaScript "+n0+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var r=this,A=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=r.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],s=A.exec(a);if(s!=null){var o=s[1];r.internal.newObjectDeferredBegin(o,!1)}r.internal.write(a)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(i=0;i<l;i++){var h=r.internal.newObject();c.push(h);var d=r.internal.getPageInfo(i+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var u=r.internal.newObject();for(r.internal.write("<< /Names [ "),i=0;i<c.length;i++)r.internal.write("(page_"+(i+1)+")"+c[i]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+u+" 0 R"),r.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(A,n,i){var a={title:n,options:i,children:[]};return A==null&&(A=this.root),A.children.push(a),a},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(A){A.id=r.internal.newObjectDeferred();for(var n=0;n<A.children.length;n++)this.genIds_r(A.children[n])},r.outline.renderRoot=function(A){this.objStart(A),this.line("/Type /Outlines"),A.children.length>0&&(this.line("/First "+this.makeRef(A.children[0])),this.line("/Last "+this.makeRef(A.children[A.children.length-1]))),this.line("/Count "+this.count_r({count:0},A)),this.objEnd()},r.outline.renderItems=function(A){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<A.children.length;i++){var a=A.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(A)),i>0&&this.line("/Prev "+this.makeRef(A.children[i-1])),i<A.children.length-1&&this.line("/Next "+this.makeRef(A.children[i+1])),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=r.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<A.children.length;l++)this.renderItems(A.children[l])},r.outline.line=function(A){this.ctx.val+=A+`\r
|
|
140
140
|
`},r.outline.makeRef=function(A){return A.id+" 0 R"},r.outline.makeString=function(A){return"("+r.internal.pdfEscape(A)+")"},r.outline.objStart=function(A){this.ctx.val+=`\r
|
|
141
141
|
`+A.id+` 0 obj\r
|
|
142
142
|
<<\r
|
|
@@ -230,9 +230,9 @@ endobj\r
|
|
|
230
230
|
*
|
|
231
231
|
* Licensed under the MIT License.
|
|
232
232
|
* http://opensource.org/licenses/mit-license
|
|
233
|
-
*/function Mn(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function mw(t){function e(Q){if(!Q)throw Error("assert :P")}function r(Q,K,Ae){for(var U=0;4>U;U++)if(Q[K+U]!=Ae.charCodeAt(U))return!0;return!1}function A(Q,K,Ae,U,T){for(var V=0;V<T;V++)Q[K+V]=Ae[U+V]}function n(Q,K,Ae,U){for(var T=0;T<U;T++)Q[K+T]=Ae}function i(Q){return new Int32Array(Q)}function a(Q,K){for(var Ae=[],U=0;U<Q;U++)Ae.push(new K);return Ae}function s(Q,K){var Ae=[];return function U(T,V,Y){for(var ce=Y[V],he=0;he<ce&&(T.push(Y.length>V+1?[]:new K),!(Y.length<V+1));he++)U(T[he],V+1,Y)}(Ae,0,Q),Ae}var o=function(){var Q=this;function K(f,g){for(var B=1<<g-1>>>0;f&B;)B>>>=1;return B?(f&B-1)+B:f}function Ae(f,g,B,b,I){e(!(b%B));do f[g+(b-=B)]=I;while(0<b)}function U(f,g,B,b,I){if(e(2328>=I),512>=I)var P=i(512);else if((P=i(I))==null)return 0;return function(R,M,G,J,fe,be){var Fe,ve,Pe=M,Ue=1<<G,ue=i(16),pe=i(16);for(e(fe!=0),e(J!=null),e(R!=null),e(0<G),ve=0;ve<fe;++ve){if(15<J[ve])return 0;++ue[J[ve]]}if(ue[0]==fe)return 0;for(pe[1]=0,Fe=1;15>Fe;++Fe){if(ue[Fe]>1<<Fe)return 0;pe[Fe+1]=pe[Fe]+ue[Fe]}for(ve=0;ve<fe;++ve)Fe=J[ve],0<J[ve]&&(be[pe[Fe]++]=ve);if(pe[15]==1)return(J=new T).g=0,J.value=be[0],Ae(R,Pe,1,Ue,J),Ue;var Oe,Ge=-1,De=Ue-1,lt=0,At=1,wt=1,it=1<<G;for(ve=0,Fe=1,fe=2;Fe<=G;++Fe,fe<<=1){if(At+=wt<<=1,0>(wt-=ue[Fe]))return 0;for(;0<ue[Fe];--ue[Fe])(J=new T).g=Fe,J.value=be[ve++],Ae(R,Pe+lt,fe,it,J),lt=K(lt,Fe)}for(Fe=G+1,fe=2;15>=Fe;++Fe,fe<<=1){if(At+=wt<<=1,0>(wt-=ue[Fe]))return 0;for(;0<ue[Fe];--ue[Fe]){if(J=new T,(lt&De)!=Ge){for(Pe+=it,Oe=1<<(Ge=Fe)-G;15>Ge&&!(0>=(Oe-=ue[Ge]));)++Ge,Oe<<=1;Ue+=it=1<<(Oe=Ge-G),R[M+(Ge=lt&De)].g=Oe+G,R[M+Ge].value=Pe-M-Ge}J.g=Fe-G,J.value=be[ve++],Ae(R,Pe+(lt>>G),fe,it,J),lt=K(lt,Fe)}}return At!=2*pe[15]-1?0:Ue}(f,g,B,b,I,P)}function T(){this.value=this.g=0}function V(){this.value=this.g=0}function Y(){this.G=a(5,T),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(An,V)}function ce(f,g,B,b){e(f!=null),e(g!=null),e(2147483648>b),f.Ca=254,f.I=0,f.b=-8,f.Ka=0,f.oa=g,f.pa=B,f.Jd=g,f.Yc=B+b,f.Zc=4<=b?B+b-4+1:B,ie(f)}function he(f,g){for(var B=0;0<g--;)B|=le(f,128)<<g;return B}function me(f,g){var B=he(f,g);return oe(f)?-B:B}function ge(f,g,B,b){var I,P=0;for(e(f!=null),e(g!=null),e(4294967288>b),f.Sb=b,f.Ra=0,f.u=0,f.h=0,4<b&&(b=4),I=0;I<b;++I)P+=g[B+I]<<8*I;f.Ra=P,f.bb=b,f.oa=g,f.pa=B}function we(f){for(;8<=f.u&&f.bb<f.Sb;)f.Ra>>>=8,f.Ra+=f.oa[f.pa+f.bb]<<$o-8>>>0,++f.bb,f.u-=8;S(f)&&(f.h=1,f.u=0)}function Be(f,g){if(e(0<=g),!f.h&&g<=Yo){var B=_(f)&qo[g];return f.u+=g,we(f),B}return f.h=1,f.u=0}function ke(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function C(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(f){return f.Ra>>>(f.u&$o-1)>>>0}function S(f){return e(f.bb<=f.Sb),f.h||f.bb==f.Sb&&f.u>$o}function O(f,g){f.u=g,f.h=S(f)}function W(f){f.u>=Hc&&(e(f.u>=Hc),we(f))}function ie(f){e(f!=null&&f.oa!=null),f.pa<f.Zc?(f.I=(f.oa[f.pa++]|f.I<<8)>>>0,f.b+=8):(e(f!=null&&f.oa!=null),f.pa<f.Yc?(f.b+=8,f.I=f.oa[f.pa++]|f.I<<8):f.Ka?f.b=0:(f.I<<=8,f.b+=8,f.Ka=1))}function oe(f){return he(f,1)}function le(f,g){var B=f.Ca;0>f.b&&ie(f);var b=f.b,I=B*g>>>8,P=(f.I>>>b>I)+0;for(P?(B-=I,f.I-=I+1<<b>>>0):B=I+1,b=B,I=0;256<=b;)I+=8,b>>=8;return b=7^I+nn[b],f.b-=b,f.Ca=(B<<b)-1,P}function ye(f,g,B){f[g+0]=B>>24&255,f[g+1]=B>>16&255,f[g+2]=B>>8&255,f[g+3]=B>>0&255}function Ne(f,g){return f[g+0]<<0|f[g+1]<<8}function Re(f,g){return Ne(f,g)|f[g+2]<<16}function Xe(f,g){return Ne(f,g)|Ne(f,g+2)<<16}function qe(f,g){var B=1<<g;return e(f!=null),e(0<g),f.X=i(B),f.X==null?0:(f.Mb=32-g,f.Xa=g,1)}function _e(f,g){e(f!=null),e(g!=null),e(f.Xa==g.Xa),A(g.X,0,f.X,0,1<<g.Xa)}function re(){this.X=[],this.Xa=this.Mb=0}function Qe(f,g,B,b){e(B!=null),e(b!=null);var I=B[0],P=b[0];return I==0&&(I=(f*P+g/2)/g),P==0&&(P=(g*I+f/2)/f),0>=I||0>=P?0:(B[0]=I,b[0]=P,1)}function rt(f,g){return f+(1<<g)-1>>>g}function Me(f,g){return((4278255360&f)+(4278255360&g)>>>0&4278255360)+((16711935&f)+(16711935&g)>>>0&16711935)>>>0}function We(f,g){Q[g]=function(B,b,I,P,R,M,G){var J;for(J=0;J<R;++J){var fe=Q[f](M[G+J-1],I,P+J);M[G+J]=Me(B[b+J],fe)}}}function $e(){this.ud=this.hd=this.jd=0}function Je(f,g){return((4278124286&(f^g))>>>1)+(f&g)>>>0}function st(f){return 0<=f&&256>f?f:0>f?0:255<f?255:void 0}function nt(f,g){return st(f+(f-g+.5>>1))}function ht(f,g,B){return Math.abs(g-B)-Math.abs(f-B)}function mt(f,g,B,b,I,P,R){for(b=P[R-1],B=0;B<I;++B)P[R+B]=b=Me(f[g+B],b)}function _t(f,g,B,b,I){var P;for(P=0;P<B;++P){var R=f[g+P],M=R>>8&255,G=16711935&(G=(G=16711935&R)+((M<<16)+M));b[I+P]=(4278255360&R)+G>>>0}}function Ut(f,g){g.jd=f>>0&255,g.hd=f>>8&255,g.ud=f>>16&255}function dt(f,g,B,b,I,P){var R;for(R=0;R<b;++R){var M=g[B+R],G=M>>>8,J=M,fe=255&(fe=(fe=M>>>16)+((f.jd<<24>>24)*(G<<24>>24)>>>5));J=255&(J=(J=J+((f.hd<<24>>24)*(G<<24>>24)>>>5))+((f.ud<<24>>24)*(fe<<24>>24)>>>5)),I[P+R]=(4278255360&M)+(fe<<16)+J}}function yt(f,g,B,b,I){Q[g]=function(P,R,M,G,J,fe,be,Fe,ve){for(G=be;G<Fe;++G)for(be=0;be<ve;++be)J[fe++]=I(M[b(P[R++])])},Q[f]=function(P,R,M,G,J,fe,be){var Fe=8>>P.b,ve=P.Ea,Pe=P.K[0],Ue=P.w;if(8>Fe)for(P=(1<<P.b)-1,Ue=(1<<Fe)-1;R<M;++R){var ue,pe=0;for(ue=0;ue<ve;++ue)ue&P||(pe=b(G[J++])),fe[be++]=I(Pe[pe&Ue]),pe>>=Fe}else Q["VP8LMapColor"+B](G,J,Pe,Ue,fe,be,R,M,ve)}}function tt(f,g,B,b,I){for(B=g+B;g<B;){var P=f[g++];b[I++]=P>>16&255,b[I++]=P>>8&255,b[I++]=P>>0&255}}function nr(f,g,B,b,I){for(B=g+B;g<B;){var P=f[g++];b[I++]=P>>16&255,b[I++]=P>>8&255,b[I++]=P>>0&255,b[I++]=P>>24&255}}function It(f,g,B,b,I){for(B=g+B;g<B;){var P=(R=f[g++])>>16&240|R>>12&15,R=R>>0&240|R>>28&15;b[I++]=P,b[I++]=R}}function fr(f,g,B,b,I){for(B=g+B;g<B;){var P=(R=f[g++])>>16&248|R>>13&7,R=R>>5&224|R>>3&31;b[I++]=P,b[I++]=R}}function Qt(f,g,B,b,I){for(B=g+B;g<B;){var P=f[g++];b[I++]=P>>0&255,b[I++]=P>>8&255,b[I++]=P>>16&255}}function Kt(f,g,B,b,I,P){if(P==0)for(B=g+B;g<B;)ye(b,((P=f[g++])[0]>>24|P[1]>>8&65280|P[2]<<8&16711680|P[3]<<24)>>>0),I+=32;else A(b,I,f,g,B)}function qr(f,g){Q[g][0]=Q[f+"0"],Q[g][1]=Q[f+"1"],Q[g][2]=Q[f+"2"],Q[g][3]=Q[f+"3"],Q[g][4]=Q[f+"4"],Q[g][5]=Q[f+"5"],Q[g][6]=Q[f+"6"],Q[g][7]=Q[f+"7"],Q[g][8]=Q[f+"8"],Q[g][9]=Q[f+"9"],Q[g][10]=Q[f+"10"],Q[g][11]=Q[f+"11"],Q[g][12]=Q[f+"12"],Q[g][13]=Q[f+"13"],Q[g][14]=Q[f+"0"],Q[g][15]=Q[f+"0"]}function Pt(f){return f==x2||f==y2||f==sh||f==C2}function Er(){this.eb=[],this.size=this.A=this.fb=0}function qt(){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 rA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Er,this.f.kb=new qt,this.sd=null}function bt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Gt(){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 Ct(f){return alert("todo:WebPSamplerProcessPlane"),f.T}function Ht(f,g){var B=f.T,b=g.ba.f.RGBA,I=b.eb,P=b.fb+f.ka*b.A,R=Qn[g.ba.S],M=f.y,G=f.O,J=f.f,fe=f.N,be=f.ea,Fe=f.W,ve=g.cc,Pe=g.dc,Ue=g.Mc,ue=g.Nc,pe=f.ka,Oe=f.ka+f.T,Ge=f.U,De=Ge+1>>1;for(pe==0?R(M,G,null,null,J,fe,be,Fe,J,fe,be,Fe,I,P,null,null,Ge):(R(g.ec,g.fc,M,G,ve,Pe,Ue,ue,J,fe,be,Fe,I,P-b.A,I,P,Ge),++B);pe+2<Oe;pe+=2)ve=J,Pe=fe,Ue=be,ue=Fe,fe+=f.Rc,Fe+=f.Rc,P+=2*b.A,R(M,(G+=2*f.fa)-f.fa,M,G,ve,Pe,Ue,ue,J,fe,be,Fe,I,P-b.A,I,P,Ge);return G+=f.fa,f.j+Oe<f.o?(A(g.ec,g.fc,M,G,Ge),A(g.cc,g.dc,J,fe,De),A(g.Mc,g.Nc,be,Fe,De),B--):1&Oe||R(M,G,null,null,J,fe,be,Fe,J,fe,be,Fe,I,P+b.A,null,null,Ge),B}function gn(f,g,B){var b=f.F,I=[f.J];if(b!=null){var P=f.U,R=g.ba.S,M=R==ah||R==sh;g=g.ba.f.RGBA;var G=[0],J=f.ka;G[0]=f.T,f.Kb&&(J==0?--G[0]:(--J,I[0]-=f.width),f.j+f.ka+f.T==f.o&&(G[0]=f.o-f.j-J));var fe=g.eb;J=g.fb+J*g.A,f=th(b,I[0],f.width,P,G,fe,J+(M?0:3),g.A),e(B==G),f&&Pt(R)&&Va(fe,J,M,P,G,g.A)}return 0}function Ir(f){var g=f.ma,B=g.ba.S,b=11>B,I=B==nh||B==ih||B==ah||B==B2||B==12||Pt(B);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!Rc(g.Oa,f,I?11:12))return 0;if(I&&Pt(B)&&ze(),f.da)alert("todo:use_scaling");else{if(b){if(g.Ib=Ct,f.Kb){if(B=f.U+1>>1,g.memory=i(f.U+2*B),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+f.U,g.Mc=g.cc,g.Nc=g.dc+B,g.Ib=Ht,ze()}}else alert("todo:EmitYUV");I&&(g.Jb=gn,b&&xe())}if(b&&!qE){for(f=0;256>f;++f)c$[f]=89858*(f-128)+lh>>oh,h$[f]=-22014*(f-128)+lh,u$[f]=-45773*(f-128),f$[f]=113618*(f-128)+lh>>oh;for(f=zc;f<F2;++f)g=76283*(f-16)+lh>>oh,d$[f-zc]=vn(g,255),g$[f-zc]=vn(g+8>>4,15);qE=1}return 1}function WA(f){var g=f.ma,B=f.U,b=f.T;return e(!(1&f.ka)),0>=B||0>=b?0:(B=g.Ib(f,g),g.Jb!=null&&g.Jb(f,g,B),g.Dc+=B,1)}function en(f){f.ma.memory=null}function gt(f,g,B,b){return Be(f,8)!=47?0:(g[0]=Be(f,14)+1,B[0]=Be(f,14)+1,b[0]=Be(f,1),Be(f,3)!=0?0:!f.h)}function yA(f,g){if(4>f)return f+1;var B=f-2>>1;return(2+(1&f)<<B)+Be(g,B)+1}function QA(f,g){return 120<g?g-120:1<=(B=((B=YY[g-1])>>4)*f+(8-(15&B)))?B:1;var B}function gr(f,g,B){var b=_(B),I=f[g+=255&b].g-8;return 0<I&&(O(B,B.u+8),b=_(B),g+=f[g].value,g+=b&(1<<I)-1),O(B,B.u+f[g].g),f[g].value}function Br(f,g,B){return B.g+=f.g,B.value+=f.value<<g>>>0,e(8>=B.g),f.g}function xr(f,g,B){var b=f.xc;return e((g=b==0?0:f.vc[f.md*(B>>b)+(g>>b)])<f.Wb),f.Ya[g]}function D(f,g,B,b){var I=f.ab,P=f.c*g,R=f.C;g=R+g;var M=B,G=b;for(b=f.Ta,B=f.Ua;0<I--;){var J=f.gc[I],fe=R,be=g,Fe=M,ve=G,Pe=(G=b,M=B,J.Ea);switch(e(fe<be),e(be<=J.nc),J.hc){case 2:eh(Fe,ve,(be-fe)*Pe,G,M);break;case 0:var Ue=fe,ue=be,pe=G,Oe=M,Ge=(it=J).Ea;Ue==0&&(p2(Fe,ve,null,null,1,pe,Oe),mt(Fe,ve+1,0,0,Ge-1,pe,Oe+1),ve+=Ge,Oe+=Ge,++Ue);for(var De=1<<it.b,lt=De-1,At=rt(Ge,it.b),wt=it.K,it=it.w+(Ue>>it.b)*At;Ue<ue;){var $t=wt,ir=it,Wt=1;for(Vc(Fe,ve,pe,Oe-Ge,1,pe,Oe);Wt<Ge;){var Mt=(Wt&~lt)+De;Mt>Ge&&(Mt=Ge),(0,Pa[$t[ir++]>>8&15])(Fe,ve+ +Wt,pe,Oe+Wt-Ge,Mt-Wt,pe,Oe+Wt),Wt=Mt}ve+=Ge,Oe+=Ge,++Ue<||(it+=At)}be!=J.nc&&A(G,M-Pe,G,M+(be-fe-1)*Pe,Pe);break;case 1:for(Pe=Fe,ue=ve,Ge=(Fe=J.Ea)-(Oe=Fe&~(pe=(ve=1<<J.b)-1)),Ue=rt(Fe,J.b),De=J.K,J=J.w+(fe>>J.b)*Ue;fe<be;){for(lt=De,At=J,wt=new $e,it=ue+Oe,$t=ue+Fe;ue<it;)Ut(lt[At++],wt),In(wt,Pe,ue,ve,G,M),ue+=ve,M+=ve;ue<$t&&(Ut(lt[At++],wt),In(wt,Pe,ue,Ge,G,M),ue+=Ge,M+=Ge),++fe&pe||(J+=Ue)}break;case 3:if(Fe==G&&ve==M&&0<J.b){for(ue=G,Fe=Pe=M+(be-fe)*Pe-(Oe=(be-fe)*rt(J.Ea,J.b)),ve=G,pe=M,Ue=[],Oe=(Ge=Oe)-1;0<=Oe;--Oe)Ue[Oe]=ve[pe+Oe];for(Oe=Ge-1;0<=Oe;--Oe)ue[Fe+Oe]=Ue[Oe];ni(J,fe,be,G,Pe,G,M)}else ni(J,fe,be,Fe,ve,G,M)}M=b,G=B}G!=B&&A(b,B,M,G,P)}function ee(f,g){var B=f.V,b=f.Ba+f.c*f.C,I=g-f.C;if(e(g<=f.l.o),e(16>=I),0<I){var P=f.l,R=f.Ta,M=f.Ua,G=P.width;if(D(f,I,B,b),I=M=[M],e((B=f.C)<(b=g)),e(P.v<P.va),b>P.o&&(b=P.o),B<P.j){var J=P.j-B;B=P.j,I[0]+=J*G}if(B>=b?B=0:(I[0]+=4*P.v,P.ka=B-P.j,P.U=P.va-P.v,P.T=b-B,B=1),B){if(M=M[0],11>(B=f.ca).S){var fe=B.f.RGBA,be=(b=B.S,I=P.U,P=P.T,J=fe.eb,fe.A),Fe=P;for(fe=fe.fb+f.Ma*fe.A;0<Fe--;){var ve=R,Pe=M,Ue=I,ue=J,pe=fe;switch(b){case Ah:ii(ve,Pe,Ue,ue,pe);break;case nh:Ra(ve,Pe,Ue,ue,pe);break;case x2:Ra(ve,Pe,Ue,ue,pe),Va(ue,pe,0,Ue,1,0);break;case RE:Jo(ve,Pe,Ue,ue,pe);break;case ih:Kt(ve,Pe,Ue,ue,pe,1);break;case y2:Kt(ve,Pe,Ue,ue,pe,1),Va(ue,pe,0,Ue,1,0);break;case ah:Kt(ve,Pe,Ue,ue,pe,0);break;case sh:Kt(ve,Pe,Ue,ue,pe,0),Va(ue,pe,1,Ue,1,0);break;case B2:Ti(ve,Pe,Ue,ue,pe);break;case C2:Ti(ve,Pe,Ue,ue,pe),tl(ue,pe,Ue,1,0);break;case ME:ea(ve,Pe,Ue,ue,pe);break;default:e(0)}M+=G,fe+=be}f.Ma+=P}else alert("todo:EmitRescaledRowsYUVA");e(f.Ma<=B.height)}}f.C=g,e(f.C<=f.i)}function j(f){var g;if(0<f.ua)return 0;for(g=0;g<f.Wb;++g){var B=f.Ya[g].G,b=f.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 z(f,g,B,b,I,P){if(f.Z!=0){var R=f.qd,M=f.rd;for(e(Ga[f.Z]!=null);g<B;++g)Ga[f.Z](R,M,b,I,b,I,P),R=b,M=I,I+=P;f.qd=R,f.rd=M}}function Z(f,g){var B=f.l.ma,b=B.Z==0||B.Z==1?f.l.j:f.C;if(b=f.C<b?b:f.C,e(g<=f.l.o),g>b){var I=f.l.width,P=B.ca,R=B.tb+I*b,M=f.V,G=f.Ba+f.c*b,J=f.gc;e(f.ab==1),e(J[0].hc==3),v2(J[0],b,g,M,G,P,R),z(B,b,g,P,R,I)}f.C=f.Ma=g}function te(f,g,B,b,I,P,R){var M=f.$/b,G=f.$%b,J=f.m,fe=f.s,be=B+f.$,Fe=be;I=B+b*I;var ve=B+b*P,Pe=280+fe.ua,Ue=f.Pb?M:16777216,ue=0<fe.ua?fe.Wa:null,pe=fe.wc,Oe=be<ve?xr(fe,G,M):null;e(f.C<P),e(ve<=I);var Ge=!1;e:for(;;){for(;Ge||be<ve;){var De=0;if(M>=Ue){var lt=be-B;e((Ue=f).Pb),Ue.wd=Ue.m,Ue.xd=lt,0<Ue.s.ua&&_e(Ue.s.Wa,Ue.s.vb),Ue=M+JY}if(G&pe||(Oe=xr(fe,G,M)),e(Oe!=null),Oe.Qb&&(g[be]=Oe.qb,Ge=!0),!Ge)if(W(J),Oe.jc){De=J,lt=g;var At=be,wt=Oe.pd[_(De)&An-1];e(Oe.jc),256>wt.g?(O(De,De.u+wt.g),lt[At]=wt.value,De=0):(O(De,De.u+wt.g-256),e(256<=wt.value),De=wt.value),De==0&&(Ge=!0)}else De=gr(Oe.G[0],Oe.H[0],J);if(J.h)break;if(Ge||256>De){if(!Ge)if(Oe.nd)g[be]=(Oe.qb|De<<8)>>>0;else{if(W(J),Ge=gr(Oe.G[1],Oe.H[1],J),W(J),lt=gr(Oe.G[2],Oe.H[2],J),At=gr(Oe.G[3],Oe.H[3],J),J.h)break;g[be]=(At<<24|Ge<<16|De<<8|lt)>>>0}if(Ge=!1,++be,++G>=b&&(G=0,++M,R!=null&&M<=P&&!(M%16)&&R(f,M),ue!=null))for(;Fe<be;)De=g[Fe++],ue.X[(506832829*De&4294967295)>>>ue.Mb]=De}else if(280>De){if(De=yA(De-256,J),lt=gr(Oe.G[4],Oe.H[4],J),W(J),lt=QA(b,lt=yA(lt,J)),J.h)break;if(be-B<lt||I-be<De)break e;for(At=0;At<De;++At)g[be+At]=g[be+At-lt];for(be+=De,G+=De;G>=b;)G-=b,++M,R!=null&&M<=P&&!(M%16)&&R(f,M);if(e(be<=I),G&pe&&(Oe=xr(fe,G,M)),ue!=null)for(;Fe<be;)De=g[Fe++],ue.X[(506832829*De&4294967295)>>>ue.Mb]=De}else{if(!(De<Pe))break e;for(Ge=De-280,e(ue!=null);Fe<be;)De=g[Fe++],ue.X[(506832829*De&4294967295)>>>ue.Mb]=De;De=be,e(!(Ge>>>(lt=ue).Xa)),g[De]=lt.X[Ge],Ge=!0}Ge||e(J.h==S(J))}if(f.Pb&&J.h&&be<I)e(f.m.h),f.a=5,f.m=f.wd,f.$=f.xd,0<f.s.ua&&_e(f.s.vb,f.s.Wa);else{if(J.h)break e;R!=null&&R(f,M>P?P:M),f.a=0,f.$=be-B}return 1}return f.a=3,0}function Ee(f){e(f!=null),f.vc=null,f.yc=null,f.Ya=null;var g=f.Wa;g!=null&&(g.X=null),f.vb=null,e(f!=null)}function Te(){var f=new g2;return f==null?null:(f.a=0,f.xb=KE,qr("Predictor","VP8LPredictors"),qr("Predictor","VP8LPredictors_C"),qr("PredictorAdd","VP8LPredictorsAdd"),qr("PredictorAdd","VP8LPredictorsAdd_C"),eh=_t,In=dt,ii=tt,Ra=nr,Ti=It,ea=fr,Jo=Qt,Q.VP8LMapColor32b=Kc,Q.VP8LMapColor8b=m2,f)}function Ce(f,g,B,b,I){var P=1,R=[f],M=[g],G=b.m,J=b.s,fe=null,be=0;e:for(;;){if(B)for(;P&&Be(G,1);){var Fe=R,ve=M,Pe=b,Ue=1,ue=Pe.m,pe=Pe.gc[Pe.ab],Oe=Be(ue,2);if(Pe.Oc&1<<Oe)P=0;else{switch(Pe.Oc|=1<<Oe,pe.hc=Oe,pe.Ea=Fe[0],pe.nc=ve[0],pe.K=[null],++Pe.ab,e(4>=Pe.ab),Oe){case 0:case 1:pe.b=Be(ue,3)+2,Ue=Ce(rt(pe.Ea,pe.b),rt(pe.nc,pe.b),0,Pe,pe.K),pe.K=pe.K[0];break;case 3:var Ge,De=Be(ue,8)+1,lt=16<De?0:4<De?1:2<De?2:3;if(Fe[0]=rt(pe.Ea,lt),pe.b=lt,Ge=Ue=Ce(De,1,0,Pe,pe.K)){var At,wt=De,it=pe,$t=1<<(8>>it.b),ir=i($t);if(ir==null)Ge=0;else{var Wt=it.K[0],Mt=it.w;for(ir[0]=it.K[0][0],At=1;At<1*wt;++At)ir[At]=Me(Wt[Mt+At],ir[At-1]);for(;At<4*$t;++At)ir[At]=0;it.K[0]=null,it.K[0]=ir,Ge=1}}Ue=Ge;break;case 2:break;default:e(0)}P=Ue}}if(R=R[0],M=M[0],P&&Be(G,1)&&!(P=1<=(be=Be(G,4))&&11>=be)){b.a=3;break e}var ur;if(ur=P)t:{var lr,Nt,$r,an=b,Jr=R,sn=M,ar=be,wn=B,Bn=an.m,fA=an.s,CA=[null],zA=1,On=0,Ui=$Y[ar];r:for(;;){if(wn&&Be(Bn,1)){var uA=Be(Bn,3)+2,ia=rt(Jr,uA),Ds=rt(sn,uA),rl=ia*Ds;if(!Ce(ia,Ds,0,an,CA))break r;for(CA=CA[0],fA.xc=uA,lr=0;lr<rl;++lr){var ja=CA[lr]>>8&65535;CA[lr]=ja,ja>=zA&&(zA=ja+1)}}if(Bn.h)break r;for(Nt=0;5>Nt;++Nt){var Nr=HE[Nt];!Nt&&0<ar&&(Nr+=1<<ar),On<Nr&&(On=Nr)}var S2=a(zA*Ui,T),JE=zA,ZE=a(JE,Y);if(ZE==null)var fh=null;else e(65536>=JE),fh=ZE;var Xc=i(On);if(fh==null||Xc==null||S2==null){an.a=1;break r}var uh=S2;for(lr=$r=0;lr<zA;++lr){var li=fh[lr],Al=li.G,nl=li.H,eb=0,hh=1,tb=0;for(Nt=0;5>Nt;++Nt){Nr=HE[Nt],Al[Nt]=uh,nl[Nt]=$r,!Nt&&0<ar&&(Nr+=1<<ar);n:{var dh,_2=Nr,gh=an,qc=Xc,m$=uh,w$=$r,T2=0,Wa=gh.m,B$=Be(Wa,1);if(n(qc,0,0,_2),B$){var x$=Be(Wa,1)+1,y$=Be(Wa,1),rb=Be(Wa,y$==0?1:8);qc[rb]=1,x$==2&&(qc[rb=Be(Wa,8)]=1);var ph=1}else{var Ab=i(19),nb=Be(Wa,4)+4;if(19<nb){gh.a=3;var vh=0;break n}for(dh=0;dh<nb;++dh)Ab[qY[dh]]=Be(Wa,3);var U2=void 0,Yc=void 0,ib=gh,C$=Ab,mh=_2,ab=qc,I2=0,za=ib.m,sb=8,ob=a(128,T);A:for(;U(ob,0,7,C$,19);){if(Be(za,1)){var E$=2+2*Be(za,3);if((U2=2+Be(za,E$))>mh)break A}else U2=mh;for(Yc=0;Yc<mh&&U2--;){W(za);var lb=ob[0+(127&_(za))];O(za,za.u+lb.g);var il=lb.value;if(16>il)ab[Yc++]=il,il!=0&&(sb=il);else{var b$=il==16,cb=il-16,F$=zY[cb],fb=Be(za,WY[cb])+F$;if(Yc+fb>mh)break A;for(var S$=b$?sb:0;0<fb--;)ab[Yc++]=S$}}I2=1;break A}I2||(ib.a=3),ph=I2}(ph=ph&&!Wa.h)&&(T2=U(m$,w$,8,qc,_2)),ph&&T2!=0?vh=T2:(gh.a=3,vh=0)}if(vh==0)break r;if(hh&&XY[Nt]==1&&(hh=uh[$r].g==0),eb+=uh[$r].g,$r+=vh,3>=Nt){var $c,L2=Xc[0];for($c=1;$c<Nr;++$c)Xc[$c]>L2&&(L2=Xc[$c]);tb+=L2}}if(li.nd=hh,li.Qb=0,hh&&(li.qb=(Al[3][nl[3]+0].value<<24|Al[1][nl[1]+0].value<<16|Al[2][nl[2]+0].value)>>>0,eb==0&&256>Al[0][nl[0]+0].value&&(li.Qb=1,li.qb+=Al[0][nl[0]+0].value<<8)),li.jc=!li.Qb&&6>tb,li.jc){var wh,aa=li;for(wh=0;wh<An;++wh){var Xa=wh,qa=aa.pd[Xa],Bh=aa.G[0][aa.H[0]+Xa];256<=Bh.value?(qa.g=Bh.g+256,qa.value=Bh.value):(qa.g=0,qa.value=0,Xa>>=Br(Bh,8,qa),Xa>>=Br(aa.G[1][aa.H[1]+Xa],16,qa),Xa>>=Br(aa.G[2][aa.H[2]+Xa],0,qa),Br(aa.G[3][aa.H[3]+Xa],24,qa))}}}fA.vc=CA,fA.Wb=zA,fA.Ya=fh,fA.yc=S2,ur=1;break t}ur=0}if(!(P=ur)){b.a=3;break e}if(0<be){if(J.ua=1<<be,!qe(J.Wa,be)){b.a=1,P=0;break e}}else J.ua=0;var N2=b,ub=R,_$=M,Q2=N2.s,O2=Q2.xc;if(N2.c=ub,N2.i=_$,Q2.md=rt(ub,O2),Q2.wc=O2==0?-1:(1<<O2)-1,B){b.xb=i$;break e}if((fe=i(R*M))==null){b.a=1,P=0;break e}P=(P=te(b,fe,0,R,M,M,null))&&!G.h;break e}return P?(I!=null?I[0]=fe:(e(fe==null),e(B)),b.$=0,B||Ee(J)):Ee(J),P}function ae(f,g){var B=f.c*f.i,b=B+g+16*g;return e(f.c<=g),f.V=i(b),f.V==null?(f.Ta=null,f.Ua=0,f.a=1,0):(f.Ta=f.V,f.Ua=f.Ba+B+g,1)}function H(f,g){var B=f.C,b=g-B,I=f.V,P=f.Ba+f.c*B;for(e(g<=f.l.o);0<b;){var R=16<b?16:b,M=f.l.ma,G=f.l.width,J=G*R,fe=M.ca,be=M.tb+G*B,Fe=f.Ta,ve=f.Ua;D(f,R,I,P),NE(Fe,ve,fe,be,J),z(M,B,B+R,fe,be,G),b-=R,I+=R*f.c,B+=R}e(B==g),f.C=f.Ma=g}function de(){this.ub=this.yd=this.td=this.Rb=0}function Se(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ke(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Ve(){this.Yb=function(){var f=[];return function g(B,b,I){for(var P=I[b],R=0;R<P&&(B.push(I.length>b+1?[]:0),!(I.length<b+1));R++)g(B[R],b+1,I)}(f,0,[3,11]),f}()}function Ye(){this.jb=i(3),this.Wc=s([4,8],Ve),this.Xc=s([4,17],Ve)}function ft(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Vt(){this.ld=this.La=this.dd=this.tc=0}function Et(){this.Na=this.la=0}function Cr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function tn(){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 bi(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vt),this.Y=0,this.ya=Array(new tn),this.aa=0,this.l=new Si}function Fi(){this.y=i(16),this.f=i(8),this.ea=i(8)}function ei(){this.cb=this.a=0,this.sc="",this.m=new ke,this.Od=new de,this.Kc=new Se,this.ed=new ft,this.Qa=new Ke,this.Ic=this.$c=this.Aa=0,this.D=new bi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,ke),this.ia=0,this.pb=a(4,Cr),this.Pa=new Ye,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Fi),this.Hd=0,this.rb=Array(new Et),this.sb=0,this.wa=Array(new Vt),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 tn),this.L=this.aa=0,this.gd=s([4,2],Vt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Si(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function pn(){var f=new ei;return f!=null&&(f.a=0,f.sc="OK",f.cb=0,f.Xb=0,Wc||(Wc=Ru)),f}function Hr(f,g,B){return f.a==0&&(f.a=g,f.sc=B,f.cb=0),0}function Du(f,g,B){return 3<=B&&f[g+0]==157&&f[g+1]==1&&f[g+2]==42}function Pu(f,g){if(f==null)return 0;if(f.a=0,f.sc="OK",g==null)return Hr(f,2,"null VP8Io passed to VP8GetHeaders()");var B=g.data,b=g.w,I=g.ha;if(4>I)return Hr(f,7,"Truncated header.");var P=B[b+0]|B[b+1]<<8|B[b+2]<<16,R=f.Od;if(R.Rb=!(1&P),R.td=P>>1&7,R.yd=P>>4&1,R.ub=P>>5,3<R.td)return Hr(f,3,"Incorrect keyframe parameters.");if(!R.yd)return Hr(f,4,"Frame not displayable.");b+=3,I-=3;var M=f.Kc;if(R.Rb){if(7>I)return Hr(f,7,"cannot parse picture header");if(!Du(B,b,I))return Hr(f,3,"Bad code word");M.c=16383&(B[b+4]<<8|B[b+3]),M.Td=B[b+4]>>6,M.i=16383&(B[b+6]<<8|B[b+5]),M.Ud=B[b+6]>>6,b+=7,I-=7,f.za=M.c+15>>4,f.Ub=M.i+15>>4,g.width=M.c,g.height=M.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((P=f.Pa).jb,0,255,P.jb.length),e((P=f.Qa)!=null),P.Cb=0,P.Bb=0,P.Fb=1,n(P.Zb,0,0,P.Zb.length),n(P.Lb,0,0,P.Lb)}if(R.ub>I)return Hr(f,7,"bad partition length");ce(P=f.m,B,b,R.ub),b+=R.ub,I-=R.ub,R.Rb&&(M.Ld=oe(P),M.Kd=oe(P)),M=f.Qa;var G,J=f.Pa;if(e(P!=null),e(M!=null),M.Cb=oe(P),M.Cb){if(M.Bb=oe(P),oe(P)){for(M.Fb=oe(P),G=0;4>G;++G)M.Zb[G]=oe(P)?me(P,7):0;for(G=0;4>G;++G)M.Lb[G]=oe(P)?me(P,6):0}if(M.Bb)for(G=0;3>G;++G)J.jb[G]=oe(P)?he(P,8):255}else M.Bb=0;if(P.Ka)return Hr(f,3,"cannot parse segment header");if((M=f.ed).zd=oe(P),M.Tb=he(P,6),M.wb=he(P,3),M.Pc=oe(P),M.Pc&&oe(P)){for(J=0;4>J;++J)oe(P)&&(M.vd[J]=me(P,6));for(J=0;4>J;++J)oe(P)&&(M.od[J]=me(P,6))}if(f.L=M.Tb==0?0:M.zd?1:2,P.Ka)return Hr(f,3,"cannot parse filter header");var fe=I;if(I=G=b,b=G+fe,M=fe,f.Xb=(1<<he(f.m,2))-1,fe<3*(J=f.Xb))B=7;else{for(G+=3*J,M-=3*J,fe=0;fe<J;++fe){var be=B[I+0]|B[I+1]<<8|B[I+2]<<16;be>M&&(be=M),ce(f.Jc[+fe],B,G,be),G+=be,M-=be,I+=3}ce(f.Jc[+J],B,G,M),B=G<b?0:5}if(B!=0)return Hr(f,B,"cannot parse partitions");for(B=he(G=f.m,7),I=oe(G)?me(G,4):0,b=oe(G)?me(G,4):0,M=oe(G)?me(G,4):0,J=oe(G)?me(G,4):0,G=oe(G)?me(G,4):0,fe=f.Qa,be=0;4>be;++be){if(fe.Cb){var Fe=fe.Zb[be];fe.Fb||(Fe+=B)}else{if(0<be){f.pb[be]=f.pb[0];continue}Fe=B}var ve=f.pb[be];ve.Sc[0]=E2[vn(Fe+I,127)],ve.Sc[1]=b2[vn(Fe+0,127)],ve.Eb[0]=2*E2[vn(Fe+b,127)],ve.Eb[1]=101581*b2[vn(Fe+M,127)]>>16,8>ve.Eb[1]&&(ve.Eb[1]=8),ve.Qc[0]=E2[vn(Fe+J,117)],ve.Qc[1]=b2[vn(Fe+G,127)],ve.lc=Fe+G}if(!R.Rb)return Hr(f,4,"Not a key frame.");for(oe(P),R=f.Pa,B=0;4>B;++B){for(I=0;8>I;++I)for(b=0;3>b;++b)for(M=0;11>M;++M)J=le(P,A$[B][I][b][M])?he(P,8):t$[B][I][b][M],R.Wc[B][I].Yb[b][M]=J;for(I=0;17>I;++I)R.Xc[B][I]=R.Wc[B][n$[I]]}return f.kc=oe(P),f.kc&&(f.Bd=he(P,8)),f.cb=1}function Ru(f,g,B,b,I,P,R){var M=g[I].Yb[B];for(B=0;16>I;++I){if(!le(f,M[B+0]))return I;for(;!le(f,M[B+1]);)if(M=g[++I].Yb[0],B=0,I==16)return 16;var G=g[I+1].Yb;if(le(f,M[B+2])){var J=f,fe=0;if(le(J,(Fe=M)[(be=B)+3]))if(le(J,Fe[be+6])){for(M=0,be=2*(fe=le(J,Fe[be+8]))+(Fe=le(J,Fe[be+9+fe])),fe=0,Fe=ZY[be];Fe[M];++M)fe+=fe+le(J,Fe[M]);fe+=3+(8<<be)}else le(J,Fe[be+7])?(fe=7+2*le(J,165),fe+=le(J,145)):fe=5+le(J,159);else fe=le(J,Fe[be+4])?3+le(J,Fe[be+5]):2;M=G[2]}else fe=1,M=G[1];G=R+e$[I],0>(J=f).b&&ie(J);var be,Fe=J.b,ve=(be=J.Ca>>1)-(J.I>>Fe)>>31;--J.b,J.Ca+=ve,J.Ca|=1,J.I-=(be+1&ve)<<Fe,P[G]=((fe^ve)-ve)*b[(0<I)+0]}return 16}function Ec(f){var g=f.rb[f.sb-1];g.la=0,g.Na=0,n(f.zc,0,0,f.zc.length),f.ja=0}function Jp(f,g){if(f==null)return 0;if(g==null)return Hr(f,2,"NULL VP8Io parameter in VP8Decode().");if(!f.cb&&!Pu(f,g))return 0;if(e(f.cb),g.ac==null||g.ac(g)){g.ob&&(f.L=0);var B=ch[f.L];if(f.L==2?(f.yb=0,f.zb=0):(f.yb=g.v-B>>4,f.zb=g.j-B>>4,0>f.yb&&(f.yb=0),0>f.zb&&(f.zb=0)),f.Va=g.o+15+B>>4,f.Hb=g.va+15+B>>4,f.Hb>f.za&&(f.Hb=f.za),f.Va>f.Ub&&(f.Va=f.Ub),0<f.L){var b=f.ed;for(B=0;4>B;++B){var I;if(f.Qa.Cb){var P=f.Qa.Lb[B];f.Qa.Fb||(P+=b.Tb)}else P=b.Tb;for(I=0;1>=I;++I){var R=f.gd[B][I],M=P;if(b.Pc&&(M+=b.vd[0],I&&(M+=b.od[0])),0<(M=0>M?0:63<M?63:M)){var G=M;0<b.wb&&(G=4<b.wb?G>>2:G>>1)>9-b.wb&&(G=9-b.wb),1>G&&(G=1),R.dd=G,R.tc=2*M+G,R.ld=40<=M?2:15<=M?1:0}else R.tc=0;R.La=I}}}B=0}else Hr(f,6,"Frame setup failed"),B=f.a;if(B=B==0){if(B){f.$c=0,0<f.Aa||(f.Ic=v$);e:{B=f.Ic,b=4*(G=f.za);var J=32*G,fe=G+1,be=0<f.L?G*(0<f.Aa?2:1):0,Fe=(f.Aa==2?2:1)*G;if((R=b+832+(I=3*(16*B+ch[f.L])/2*J)+(P=f.Fa!=null&&0<f.Fa.length?f.Kc.c*f.Kc.i:0))!=R)B=0;else{if(R>f.Vb){if(f.Vb=0,f.Ec=i(R),f.Fc=0,f.Ec==null){B=Hr(f,1,"no memory during frame initialization.");break e}f.Vb=R}R=f.Ec,M=f.Fc,f.Ac=R,f.Bc=M,M+=b,f.Gd=a(J,Fi),f.Hd=0,f.rb=a(fe+1,Et),f.sb=1,f.wa=be?a(be,Vt):null,f.Y=0,f.D.Nb=0,f.D.wa=f.wa,f.D.Y=f.Y,0<f.Aa&&(f.D.Y+=G),e(!0),f.oc=R,f.pc=M,M+=832,f.ya=a(Fe,tn),f.aa=0,f.D.ya=f.ya,f.D.aa=f.aa,f.Aa==2&&(f.D.aa+=G),f.R=16*G,f.B=8*G,G=(J=ch[f.L])*f.R,J=J/2*f.B,f.sa=R,f.ta=M+G,f.qa=f.sa,f.ra=f.ta+16*B*f.R+J,f.Ha=f.qa,f.Ia=f.ra+8*B*f.B+J,f.$c=0,M+=I,f.mb=P?R:null,f.nb=P?M:null,e(M+P<=f.Fc+f.Vb),Ec(f),n(f.Ac,f.Bc,0,b),B=1}}if(B){if(g.ka=0,g.y=f.sa,g.O=f.ta,g.f=f.qa,g.N=f.ra,g.ea=f.Ha,g.Vd=f.Ia,g.fa=f.R,g.Rc=f.B,g.F=null,g.J=0,!PE){for(B=-255;255>=B;++B)QE[255+B]=0>B?-B:B;for(B=-1020;1020>=B;++B)OE[1020+B]=-128>B?-128:127<B?127:B;for(B=-112;112>=B;++B)kE[112+B]=-16>B?-16:15<B?15:B;for(B=-255;510>=B;++B)DE[255+B]=0>B?0:255<B?255:B;PE=1}ai=t2,Zo=Zp,Ma=Hu,si=e2,ta=Vu,Gc=Mu,Os=Uc,el=Ns,ks=d2,Ha=Ic,jc=h2,Ln=Go,ra=Lc,pr=$u,vr=Yu,Vr=Ji,AA=Oa,Aa=u2,oi[0]=_i,oi[1]=r2,oi[2]=a2,oi[3]=s2,oi[4]=ju,oi[5]=Vo,oi[6]=Wu,oi[7]=Sc,oi[8]=l2,oi[9]=o2,Ka[0]=Ku,Ka[1]=n2,Ka[2]=$i,Ka[3]=Mo,Ka[4]=OA,Ka[5]=i2,Ka[6]=Gu,na[0]=Qa,na[1]=A2,na[2]=c2,na[3]=_c,na[4]=Ls,na[5]=f2,na[6]=Tc,B=1}else B=0}B&&(B=function(ve,Pe){for(ve.M=0;ve.M<ve.Va;++ve.M){var Ue,ue=ve.Jc[ve.M&ve.Xb],pe=ve.m,Oe=ve;for(Ue=0;Ue<Oe.za;++Ue){var Ge=pe,De=Oe,lt=De.Ac,At=De.Bc+4*Ue,wt=De.zc,it=De.ya[De.aa+Ue];if(De.Qa.Bb?it.$b=le(Ge,De.Pa.jb[0])?2+le(Ge,De.Pa.jb[2]):le(Ge,De.Pa.jb[1]):it.$b=0,De.kc&&(it.Ad=le(Ge,De.Bd)),it.Za=!le(Ge,145)+0,it.Za){var $t=it.Ob,ir=0;for(De=0;4>De;++De){var Wt,Mt=wt[0+De];for(Wt=0;4>Wt;++Wt){Mt=r$[lt[At+Wt]][Mt];for(var ur=VE[le(Ge,Mt[0])];0<ur;)ur=VE[2*ur+le(Ge,Mt[ur])];Mt=-ur,lt[At+Wt]=Mt}A($t,ir,lt,At,4),ir+=4,wt[0+De]=Mt}}else Mt=le(Ge,156)?le(Ge,128)?1:3:le(Ge,163)?2:0,it.Ob[0]=Mt,n(lt,At,Mt,4),n(wt,0,Mt,4);it.Dd=le(Ge,142)?le(Ge,114)?le(Ge,183)?1:3:2:0}if(Oe.m.Ka)return Hr(ve,7,"Premature end-of-partition0 encountered.");for(;ve.ja<ve.za;++ve.ja){if(Oe=ue,Ge=(pe=ve).rb[pe.sb-1],lt=pe.rb[pe.sb+pe.ja],Ue=pe.ya[pe.aa+pe.ja],At=pe.kc?Ue.Ad:0)Ge.la=lt.la=0,Ue.Za||(Ge.Na=lt.Na=0),Ue.Hc=0,Ue.Gc=0,Ue.ia=0;else{var lr,Nt;if(Ge=lt,lt=Oe,At=pe.Pa.Xc,wt=pe.ya[pe.aa+pe.ja],it=pe.pb[wt.$b],De=wt.ad,$t=0,ir=pe.rb[pe.sb-1],Mt=Wt=0,n(De,$t,0,384),wt.Za)var $r=0,an=At[3];else{ur=i(16);var Jr=Ge.Na+ir.Na;if(Jr=Wc(lt,At[1],Jr,it.Eb,0,ur,0),Ge.Na=ir.Na=(0<Jr)+0,1<Jr)ai(ur,0,De,$t);else{var sn=ur[0]+3>>3;for(ur=0;256>ur;ur+=16)De[$t+ur]=sn}$r=1,an=At[0]}var ar=15&Ge.la,wn=15&ir.la;for(ur=0;4>ur;++ur){var Bn=1&wn;for(sn=Nt=0;4>sn;++sn)ar=ar>>1|(Bn=(Jr=Wc(lt,an,Jr=Bn+(1&ar),it.Sc,$r,De,$t))>$r)<<7,Nt=Nt<<2|(3<Jr?3:1<Jr?2:De[$t+0]!=0),$t+=16;ar>>=4,wn=wn>>1|Bn<<7,Wt=(Wt<<8|Nt)>>>0}for(an=ar,$r=wn>>4,lr=0;4>lr;lr+=2){for(Nt=0,ar=Ge.la>>4+lr,wn=ir.la>>4+lr,ur=0;2>ur;++ur){for(Bn=1&wn,sn=0;2>sn;++sn)Jr=Bn+(1&ar),ar=ar>>1|(Bn=0<(Jr=Wc(lt,At[2],Jr,it.Qc,0,De,$t)))<<3,Nt=Nt<<2|(3<Jr?3:1<Jr?2:De[$t+0]!=0),$t+=16;ar>>=2,wn=wn>>1|Bn<<5}Mt|=Nt<<4*lr,an|=ar<<4<<lr,$r|=(240&wn)<<lr}Ge.la=an,ir.la=$r,wt.Hc=Wt,wt.Gc=Mt,wt.ia=43690&Mt?0:it.ia,At=!(Wt|Mt)}if(0<pe.L&&(pe.wa[pe.Y+pe.ja]=pe.gd[Ue.$b][Ue.Za],pe.wa[pe.Y+pe.ja].La|=!At),Oe.Ka)return Hr(ve,7,"Premature end-of-file encountered.")}if(Ec(ve),pe=Pe,Oe=1,Ue=(ue=ve).D,Ge=0<ue.L&&ue.M>=ue.zb&&ue.M<=ue.Va,ue.Aa==0)e:{if(Ue.M=ue.M,Ue.uc=Ge,Pc(ue,Ue),Oe=1,Ue=(Nt=ue.D).Nb,Ge=(Mt=ch[ue.L])*ue.R,lt=Mt/2*ue.B,ur=16*Ue*ue.R,sn=8*Ue*ue.B,At=ue.sa,wt=ue.ta-Ge+ur,it=ue.qa,De=ue.ra-lt+sn,$t=ue.Ha,ir=ue.Ia-lt+sn,wn=(ar=Nt.M)==0,Wt=ar>=ue.Va-1,ue.Aa==2&&Pc(ue,Nt),Nt.uc)for(Bn=(Jr=ue).D.M,e(Jr.D.uc),Nt=Jr.yb;Nt<Jr.Hb;++Nt){$r=Nt,an=Bn;var fA=(CA=(Nr=Jr).D).Nb;lr=Nr.R;var CA=CA.wa[CA.Y+$r],zA=Nr.sa,On=Nr.ta+16*fA*lr+16*$r,Ui=CA.dd,uA=CA.tc;if(uA!=0)if(e(3<=uA),Nr.L==1)0<$r&&Vr(zA,On,lr,uA+4),CA.La&&Aa(zA,On,lr,uA),0<an&&vr(zA,On,lr,uA+4),CA.La&&AA(zA,On,lr,uA);else{var ia=Nr.B,Ds=Nr.qa,rl=Nr.ra+8*fA*ia+8*$r,ja=Nr.Ha,Nr=Nr.Ia+8*fA*ia+8*$r;fA=CA.ld,0<$r&&(el(zA,On,lr,uA+4,Ui,fA),Ha(Ds,rl,ja,Nr,ia,uA+4,Ui,fA)),CA.La&&(Ln(zA,On,lr,uA,Ui,fA),pr(Ds,rl,ja,Nr,ia,uA,Ui,fA)),0<an&&(Os(zA,On,lr,uA+4,Ui,fA),ks(Ds,rl,ja,Nr,ia,uA+4,Ui,fA)),CA.La&&(jc(zA,On,lr,uA,Ui,fA),ra(Ds,rl,ja,Nr,ia,uA,Ui,fA))}}if(ue.ia&&alert("todo:DitherRow"),pe.put!=null){if(Nt=16*ar,ar=16*(ar+1),wn?(pe.y=ue.sa,pe.O=ue.ta+ur,pe.f=ue.qa,pe.N=ue.ra+sn,pe.ea=ue.Ha,pe.W=ue.Ia+sn):(Nt-=Mt,pe.y=At,pe.O=wt,pe.f=it,pe.N=De,pe.ea=$t,pe.W=ir),Wt||(ar-=Mt),ar>pe.o&&(ar=pe.o),pe.F=null,pe.J=null,ue.Fa!=null&&0<ue.Fa.length&&Nt<ar&&(pe.J=kc(ue,pe,Nt,ar-Nt),pe.F=ue.mb,pe.F==null&&pe.F.length==0)){Oe=Hr(ue,3,"Could not decode alpha data.");break e}Nt<pe.j&&(Mt=pe.j-Nt,Nt=pe.j,e(!(1&Mt)),pe.O+=ue.R*Mt,pe.N+=ue.B*(Mt>>1),pe.W+=ue.B*(Mt>>1),pe.F!=null&&(pe.J+=pe.width*Mt)),Nt<ar&&(pe.O+=pe.v,pe.N+=pe.v>>1,pe.W+=pe.v>>1,pe.F!=null&&(pe.J+=pe.v),pe.ka=Nt-pe.j,pe.U=pe.va-pe.v,pe.T=ar-Nt,Oe=pe.put(pe))}Ue+1!=ue.Ic||Wt||(A(ue.sa,ue.ta-Ge,At,wt+16*ue.R,Ge),A(ue.qa,ue.ra-lt,it,De+8*ue.B,lt),A(ue.Ha,ue.Ia-lt,$t,ir+8*ue.B,lt))}if(!Oe)return Hr(ve,6,"Output aborted.")}return 1}(f,g)),g.bc!=null&&g.bc(g),B&=1}return B?(f.cb=0,B):0}function ti(f,g,B,b,I){I=f[g+B+32*b]+(I>>3),f[g+B+32*b]=-256&I?0>I?0:255:I}function Ro(f,g,B,b,I,P){ti(f,g,0,B,b+I),ti(f,g,1,B,b+P),ti(f,g,2,B,b-P),ti(f,g,3,B,b-I)}function rn(f){return(20091*f>>16)+f}function bc(f,g,B,b){var I,P=0,R=i(16);for(I=0;4>I;++I){var M=f[g+0]+f[g+8],G=f[g+0]-f[g+8],J=(35468*f[g+4]>>16)-rn(f[g+12]),fe=rn(f[g+4])+(35468*f[g+12]>>16);R[P+0]=M+fe,R[P+1]=G+J,R[P+2]=G-J,R[P+3]=M-fe,P+=4,g++}for(I=P=0;4>I;++I)M=(f=R[P+0]+4)+R[P+8],G=f-R[P+8],J=(35468*R[P+4]>>16)-rn(R[P+12]),ti(B,b,0,0,M+(fe=rn(R[P+4])+(35468*R[P+12]>>16))),ti(B,b,1,0,G+J),ti(B,b,2,0,G-J),ti(B,b,3,0,M-fe),P++,b+=32}function Mu(f,g,B,b){var I=f[g+0]+4,P=35468*f[g+4]>>16,R=rn(f[g+4]),M=35468*f[g+1]>>16;Ro(B,b,0,I+R,f=rn(f[g+1]),M),Ro(B,b,1,I+P,f,M),Ro(B,b,2,I-P,f,M),Ro(B,b,3,I-R,f,M)}function Zp(f,g,B,b,I){bc(f,g,B,b),I&&bc(f,g+16,B,b+4)}function Hu(f,g,B,b){Zo(f,g+0,B,b,1),Zo(f,g+32,B,b+128,1)}function e2(f,g,B,b){var I;for(f=f[g+0]+4,I=0;4>I;++I)for(g=0;4>g;++g)ti(B,b,g,I,f)}function Vu(f,g,B,b){f[g+0]&&si(f,g+0,B,b),f[g+16]&&si(f,g+16,B,b+4),f[g+32]&&si(f,g+32,B,b+128),f[g+48]&&si(f,g+48,B,b+128+4)}function t2(f,g,B,b){var I,P=i(16);for(I=0;4>I;++I){var R=f[g+0+I]+f[g+12+I],M=f[g+4+I]+f[g+8+I],G=f[g+4+I]-f[g+8+I],J=f[g+0+I]-f[g+12+I];P[0+I]=R+M,P[8+I]=R-M,P[4+I]=J+G,P[12+I]=J-G}for(I=0;4>I;++I)R=(f=P[0+4*I]+3)+P[3+4*I],M=P[1+4*I]+P[2+4*I],G=P[1+4*I]-P[2+4*I],J=f-P[3+4*I],B[b+0]=R+M>>3,B[b+16]=J+G>>3,B[b+32]=R-M>>3,B[b+48]=J-G>>3,b+=64}function Fc(f,g,B){var b,I=g-32,P=mn,R=255-f[I-1];for(b=0;b<B;++b){var M,G=P,J=R+f[g-1];for(M=0;M<B;++M)f[g+M]=G[J+f[I+M]];g+=32}}function r2(f,g){Fc(f,g,4)}function A2(f,g){Fc(f,g,8)}function n2(f,g){Fc(f,g,16)}function $i(f,g){var B;for(B=0;16>B;++B)A(f,g+32*B,f,g-32,16)}function Mo(f,g){var B;for(B=16;0<B;--B)n(f,g,f[g-1],16),g+=32}function Ho(f,g,B){var b;for(b=0;16>b;++b)n(g,B+32*b,f,16)}function Ku(f,g){var B,b=16;for(B=0;16>B;++B)b+=f[g-1+32*B]+f[g+B-32];Ho(b>>5,f,g)}function OA(f,g){var B,b=8;for(B=0;16>B;++B)b+=f[g-1+32*B];Ho(b>>4,f,g)}function i2(f,g){var B,b=8;for(B=0;16>B;++B)b+=f[g+B-32];Ho(b>>4,f,g)}function Gu(f,g){Ho(128,f,g)}function Ft(f,g,B){return f+2*g+B+2>>2}function a2(f,g){var B,b=g-32;for(b=new Uint8Array([Ft(f[b-1],f[b+0],f[b+1]),Ft(f[b+0],f[b+1],f[b+2]),Ft(f[b+1],f[b+2],f[b+3]),Ft(f[b+2],f[b+3],f[b+4])]),B=0;4>B;++B)A(f,g+32*B,b,0,b.length)}function s2(f,g){var B=f[g-1],b=f[g-1+32],I=f[g-1+64],P=f[g-1+96];ye(f,g+0,16843009*Ft(f[g-1-32],B,b)),ye(f,g+32,16843009*Ft(B,b,I)),ye(f,g+64,16843009*Ft(b,I,P)),ye(f,g+96,16843009*Ft(I,P,P))}function _i(f,g){var B,b=4;for(B=0;4>B;++B)b+=f[g+B-32]+f[g-1+32*B];for(b>>=3,B=0;4>B;++B)n(f,g+32*B,b,4)}function ju(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1-32],R=f[g+0-32],M=f[g+1-32],G=f[g+2-32],J=f[g+3-32];f[g+0+96]=Ft(b,I,f[g-1+96]),f[g+1+96]=f[g+0+64]=Ft(B,b,I),f[g+2+96]=f[g+1+64]=f[g+0+32]=Ft(P,B,b),f[g+3+96]=f[g+2+64]=f[g+1+32]=f[g+0+0]=Ft(R,P,B),f[g+3+64]=f[g+2+32]=f[g+1+0]=Ft(M,R,P),f[g+3+32]=f[g+2+0]=Ft(G,M,R),f[g+3+0]=Ft(J,G,M)}function Wu(f,g){var B=f[g+1-32],b=f[g+2-32],I=f[g+3-32],P=f[g+4-32],R=f[g+5-32],M=f[g+6-32],G=f[g+7-32];f[g+0+0]=Ft(f[g+0-32],B,b),f[g+1+0]=f[g+0+32]=Ft(B,b,I),f[g+2+0]=f[g+1+32]=f[g+0+64]=Ft(b,I,P),f[g+3+0]=f[g+2+32]=f[g+1+64]=f[g+0+96]=Ft(I,P,R),f[g+3+32]=f[g+2+64]=f[g+1+96]=Ft(P,R,M),f[g+3+64]=f[g+2+96]=Ft(R,M,G),f[g+3+96]=Ft(M,G,G)}function Vo(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1-32],R=f[g+0-32],M=f[g+1-32],G=f[g+2-32],J=f[g+3-32];f[g+0+0]=f[g+1+64]=P+R+1>>1,f[g+1+0]=f[g+2+64]=R+M+1>>1,f[g+2+0]=f[g+3+64]=M+G+1>>1,f[g+3+0]=G+J+1>>1,f[g+0+96]=Ft(I,b,B),f[g+0+64]=Ft(b,B,P),f[g+0+32]=f[g+1+96]=Ft(B,P,R),f[g+1+32]=f[g+2+96]=Ft(P,R,M),f[g+2+32]=f[g+3+96]=Ft(R,M,G),f[g+3+32]=Ft(M,G,J)}function Sc(f,g){var B=f[g+0-32],b=f[g+1-32],I=f[g+2-32],P=f[g+3-32],R=f[g+4-32],M=f[g+5-32],G=f[g+6-32],J=f[g+7-32];f[g+0+0]=B+b+1>>1,f[g+1+0]=f[g+0+64]=b+I+1>>1,f[g+2+0]=f[g+1+64]=I+P+1>>1,f[g+3+0]=f[g+2+64]=P+R+1>>1,f[g+0+32]=Ft(B,b,I),f[g+1+32]=f[g+0+96]=Ft(b,I,P),f[g+2+32]=f[g+1+96]=Ft(I,P,R),f[g+3+32]=f[g+2+96]=Ft(P,R,M),f[g+3+64]=Ft(R,M,G),f[g+3+96]=Ft(M,G,J)}function o2(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1+96];f[g+0+0]=B+b+1>>1,f[g+2+0]=f[g+0+32]=b+I+1>>1,f[g+2+32]=f[g+0+64]=I+P+1>>1,f[g+1+0]=Ft(B,b,I),f[g+3+0]=f[g+1+32]=Ft(b,I,P),f[g+3+32]=f[g+1+64]=Ft(I,P,P),f[g+3+64]=f[g+2+64]=f[g+0+96]=f[g+1+96]=f[g+2+96]=f[g+3+96]=P}function l2(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1+96],R=f[g-1-32],M=f[g+0-32],G=f[g+1-32],J=f[g+2-32];f[g+0+0]=f[g+2+32]=B+R+1>>1,f[g+0+32]=f[g+2+64]=b+B+1>>1,f[g+0+64]=f[g+2+96]=I+b+1>>1,f[g+0+96]=P+I+1>>1,f[g+3+0]=Ft(M,G,J),f[g+2+0]=Ft(R,M,G),f[g+1+0]=f[g+3+32]=Ft(B,R,M),f[g+1+32]=f[g+3+64]=Ft(b,B,R),f[g+1+64]=f[g+3+96]=Ft(I,b,B),f[g+1+96]=Ft(P,I,b)}function c2(f,g){var B;for(B=0;8>B;++B)A(f,g+32*B,f,g-32,8)}function _c(f,g){var B;for(B=0;8>B;++B)n(f,g,f[g-1],8),g+=32}function Is(f,g,B){var b;for(b=0;8>b;++b)n(g,B+32*b,f,8)}function Qa(f,g){var B,b=8;for(B=0;8>B;++B)b+=f[g+B-32]+f[g-1+32*B];Is(b>>4,f,g)}function f2(f,g){var B,b=4;for(B=0;8>B;++B)b+=f[g+B-32];Is(b>>3,f,g)}function Ls(f,g){var B,b=4;for(B=0;8>B;++B)b+=f[g-1+32*B];Is(b>>3,f,g)}function Tc(f,g){Is(128,f,g)}function Ko(f,g,B){var b=f[g-B],I=f[g+0],P=3*(I-b)+w2[1020+f[g-2*B]-f[g+B]],R=rh[112+(P+4>>3)];f[g-B]=mn[255+b+rh[112+(P+3>>3)]],f[g+0]=mn[255+I-R]}function zu(f,g,B,b){var I=f[g+0],P=f[g+B];return Nn[255+f[g-2*B]-f[g-B]]>b||Nn[255+P-I]>b}function Xu(f,g,B,b){return 4*Nn[255+f[g-B]-f[g+0]]+Nn[255+f[g-2*B]-f[g+B]]<=b}function qu(f,g,B,b,I){var P=f[g-3*B],R=f[g-2*B],M=f[g-B],G=f[g+0],J=f[g+B],fe=f[g+2*B],be=f[g+3*B];return 4*Nn[255+M-G]+Nn[255+R-J]>b?0:Nn[255+f[g-4*B]-P]<=I&&Nn[255+P-R]<=I&&Nn[255+R-M]<=I&&Nn[255+be-fe]<=I&&Nn[255+fe-J]<=I&&Nn[255+J-G]<=I}function Yu(f,g,B,b){var I=2*b+1;for(b=0;16>b;++b)Xu(f,g+b,B,I)&&Ko(f,g+b,B)}function Ji(f,g,B,b){var I=2*b+1;for(b=0;16>b;++b)Xu(f,g+b*B,1,I)&&Ko(f,g+b*B,1)}function Oa(f,g,B,b){var I;for(I=3;0<I;--I)Yu(f,g+=4*B,B,b)}function u2(f,g,B,b){var I;for(I=3;0<I;--I)Ji(f,g+=4,B,b)}function ka(f,g,B,b,I,P,R,M){for(P=2*P+1;0<I--;){if(qu(f,g,B,P,R))if(zu(f,g,B,M))Ko(f,g,B);else{var G=f,J=g,fe=B,be=G[J-2*fe],Fe=G[J-fe],ve=G[J+0],Pe=G[J+fe],Ue=G[J+2*fe],ue=27*(Oe=w2[1020+3*(ve-Fe)+w2[1020+be-Pe]])+63>>7,pe=18*Oe+63>>7,Oe=9*Oe+63>>7;G[J-3*fe]=mn[255+G[J-3*fe]+Oe],G[J-2*fe]=mn[255+be+pe],G[J-fe]=mn[255+Fe+ue],G[J+0]=mn[255+ve-ue],G[J+fe]=mn[255+Pe-pe],G[J+2*fe]=mn[255+Ue-Oe]}g+=b}}function ri(f,g,B,b,I,P,R,M){for(P=2*P+1;0<I--;){if(qu(f,g,B,P,R))if(zu(f,g,B,M))Ko(f,g,B);else{var G=f,J=g,fe=B,be=G[J-fe],Fe=G[J+0],ve=G[J+fe],Pe=rh[112+((Ue=3*(Fe-be))+4>>3)],Ue=rh[112+(Ue+3>>3)],ue=Pe+1>>1;G[J-2*fe]=mn[255+G[J-2*fe]+ue],G[J-fe]=mn[255+be+Ue],G[J+0]=mn[255+Fe-Pe],G[J+fe]=mn[255+ve-ue]}g+=b}}function Uc(f,g,B,b,I,P){ka(f,g,B,1,16,b,I,P)}function Ns(f,g,B,b,I,P){ka(f,g,1,B,16,b,I,P)}function h2(f,g,B,b,I,P){var R;for(R=3;0<R;--R)ri(f,g+=4*B,B,1,16,b,I,P)}function Go(f,g,B,b,I,P){var R;for(R=3;0<R;--R)ri(f,g+=4,1,B,16,b,I,P)}function d2(f,g,B,b,I,P,R,M){ka(f,g,I,1,8,P,R,M),ka(B,b,I,1,8,P,R,M)}function Ic(f,g,B,b,I,P,R,M){ka(f,g,1,I,8,P,R,M),ka(B,b,1,I,8,P,R,M)}function Lc(f,g,B,b,I,P,R,M){ri(f,g+4*I,I,1,8,P,R,M),ri(B,b+4*I,I,1,8,P,R,M)}function $u(f,g,B,b,I,P,R,M){ri(f,g+4,1,I,8,P,R,M),ri(B,b+4,1,I,8,P,R,M)}function jo(){this.ba=new rA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Gt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Nc(){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 Qc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ju(){this.ua=0,this.Wa=new re,this.vb=new re,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Y,this.yc=new T}function g2(){this.xb=this.a=0,this.l=new Si,this.ca=new rA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new C,this.Pb=0,this.wd=new C,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ju,this.ab=0,this.gc=a(4,Qc),this.Oc=0}function Wo(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Si,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Qs(f,g,B,b,I,P,R){for(f=f==null?0:f[g+0],g=0;g<R;++g)I[P+g]=f+B[b+g]&255,f=I[P+g]}function Oc(f,g,B,b,I,P,R){var M;if(f==null)Qs(null,null,B,b,I,P,R);else for(M=0;M<R;++M)I[P+M]=f[g+M]+B[b+M]&255}function Da(f,g,B,b,I,P,R){if(f==null)Qs(null,null,B,b,I,P,R);else{var M,G=f[g+0],J=G,fe=G;for(M=0;M<R;++M)J=fe+(G=f[g+M])-J,fe=B[b+M]+(-256&J?0>J?0:255:J)&255,J=G,I[P+M]=fe}}function kc(f,g,B,b){var I=g.width,P=g.o;if(e(f!=null&&g!=null),0>B||0>=b||B+b>P)return null;if(!f.Cc){if(f.ga==null){var R;if(f.ga=new Wo,(R=f.ga==null)||(R=g.width*g.o,e(f.Gb.length==0),f.Gb=i(R),f.Uc=0,f.Gb==null?R=0:(f.mb=f.Gb,f.nb=f.Uc,f.rc=null,R=1),R=!R),!R){R=f.ga;var M=f.Fa,G=f.P,J=f.qc,fe=f.mb,be=f.nb,Fe=G+1,ve=J-1,Pe=R.l;if(e(M!=null&&fe!=null&&g!=null),Ga[0]=null,Ga[1]=Qs,Ga[2]=Oc,Ga[3]=Da,R.ca=fe,R.tb=be,R.c=g.width,R.i=g.height,e(0<R.c&&0<R.i),1>=J)g=0;else if(R.$a=M[G+0]>>0&3,R.Z=M[G+0]>>2&3,R.Lc=M[G+0]>>4&3,G=M[G+0]>>6&3,0>R.$a||1<R.$a||4<=R.Z||1<R.Lc||G)g=0;else if(Pe.put=WA,Pe.ac=Ir,Pe.bc=en,Pe.ma=R,Pe.width=g.width,Pe.height=g.height,Pe.Da=g.Da,Pe.v=g.v,Pe.va=g.va,Pe.j=g.j,Pe.o=g.o,R.$a)e:{e(R.$a==1),g=Te();t:for(;;){if(g==null){g=0;break e}if(e(R!=null),R.mc=g,g.c=R.c,g.i=R.i,g.l=R.l,g.l.ma=R,g.l.width=R.c,g.l.height=R.i,g.a=0,ge(g.m,M,Fe,ve),!Ce(R.c,R.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&j(g.s)?(R.ic=1,M=g.c*g.i,g.Ta=null,g.Ua=0,g.V=i(M),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(R.ic=0,g=ae(g,R.c)),!g))break t;g=1;break e}R.mc=null,g=0}else g=ve>=R.c*R.i;R=!g}if(R)return null;f.ga.Lc!=1?f.Ga=0:b=P-B}e(f.ga!=null),e(B+b<=P);e:{if(g=(M=f.ga).c,P=M.l.o,M.$a==0){if(Fe=f.rc,ve=f.Vc,Pe=f.Fa,G=f.P+1+B*g,J=f.mb,fe=f.nb+B*g,e(G<=f.P+f.qc),M.Z!=0)for(e(Ga[M.Z]!=null),R=0;R<b;++R)Ga[M.Z](Fe,ve,Pe,G,J,fe,g),Fe=J,ve=fe,fe+=g,G+=g;else for(R=0;R<b;++R)A(J,fe,Pe,G,g),Fe=J,ve=fe,fe+=g,G+=g;f.rc=Fe,f.Vc=ve}else{if(e(M.mc!=null),g=B+b,e((R=M.mc)!=null),e(g<=R.i),R.C>=g)g=1;else if(M.ic||xe(),M.ic){M=R.V,Fe=R.Ba,ve=R.c;var Ue=R.i,ue=(Pe=1,G=R.$/ve,J=R.$%ve,fe=R.m,be=R.s,R.$),pe=ve*Ue,Oe=ve*g,Ge=be.wc,De=ue<Oe?xr(be,J,G):null;e(ue<=pe),e(g<=Ue),e(j(be));t:for(;;){for(;!fe.h&&ue<Oe;){if(J&Ge||(De=xr(be,J,G)),e(De!=null),W(fe),256>(Ue=gr(De.G[0],De.H[0],fe)))M[Fe+ue]=Ue,++ue,++J>=ve&&(J=0,++G<=g&&!(G%16)&&Z(R,G));else{if(!(280>Ue)){Pe=0;break t}Ue=yA(Ue-256,fe);var lt,At=gr(De.G[4],De.H[4],fe);if(W(fe),!(ue>=(At=QA(ve,At=yA(At,fe)))&&pe-ue>=Ue)){Pe=0;break t}for(lt=0;lt<Ue;++lt)M[Fe+ue+lt]=M[Fe+ue+lt-At];for(ue+=Ue,J+=Ue;J>=ve;)J-=ve,++G<=g&&!(G%16)&&Z(R,G);ue<Oe&&J&Ge&&(De=xr(be,J,G))}e(fe.h==S(fe))}Z(R,G>g?g:G);break t}!Pe||fe.h&&ue<pe?(Pe=0,R.a=fe.h?5:3):R.$=ue,g=Pe}else g=te(R,R.V,R.Ba,R.c,R.i,g,H);if(!g){b=0;break e}}B+b>=P&&(f.Cc=1),b=1}if(!b)return null;if(f.Cc&&((b=f.ga)!=null&&(b.mc=null),f.ga=null,0<f.Ga))return alert("todo:WebPDequantizeLevels"),null}return f.nb+B*I}function m(f,g,B,b,I,P){for(;0<I--;){var R,M=f,G=g+(B?1:0),J=f,fe=g+(B?0:3);for(R=0;R<b;++R){var be=J[fe+4*R];be!=255&&(be*=32897,M[G+4*R+0]=M[G+4*R+0]*be>>23,M[G+4*R+1]=M[G+4*R+1]*be>>23,M[G+4*R+2]=M[G+4*R+2]*be>>23)}g+=P}}function L(f,g,B,b,I){for(;0<b--;){var P;for(P=0;P<B;++P){var R=f[g+2*P+0],M=15&(J=f[g+2*P+1]),G=4369*M,J=(240&J|J>>4)*G>>16;f[g+2*P+0]=(240&R|R>>4)*G>>16&240|(15&R|R<<4)*G>>16>>4&15,f[g+2*P+1]=240&J|M}g+=I}}function ne(f,g,B,b,I,P,R,M){var G,J,fe=255;for(J=0;J<I;++J){for(G=0;G<b;++G){var be=f[g+G];P[R+4*G]=be,fe&=be}g+=B,R+=M}return fe!=255}function se(f,g,B,b,I){var P;for(P=0;P<I;++P)B[b+P]=f[g+P]>>8}function xe(){Va=m,tl=L,th=ne,NE=se}function Ie(f,g,B){Q[f]=function(b,I,P,R,M,G,J,fe,be,Fe,ve,Pe,Ue,ue,pe,Oe,Ge){var De,lt=Ge-1>>1,At=M[G+0]|J[fe+0]<<16,wt=be[Fe+0]|ve[Pe+0]<<16;e(b!=null);var it=3*At+wt+131074>>2;for(g(b[I+0],255&it,it>>16,Ue,ue),P!=null&&(it=3*wt+At+131074>>2,g(P[R+0],255&it,it>>16,pe,Oe)),De=1;De<=lt;++De){var $t=M[G+De]|J[fe+De]<<16,ir=be[Fe+De]|ve[Pe+De]<<16,Wt=At+$t+wt+ir+524296,Mt=Wt+2*($t+wt)>>3;it=Mt+At>>1,At=(Wt=Wt+2*(At+ir)>>3)+$t>>1,g(b[I+2*De-1],255&it,it>>16,Ue,ue+(2*De-1)*B),g(b[I+2*De-0],255&At,At>>16,Ue,ue+(2*De-0)*B),P!=null&&(it=Wt+wt>>1,At=Mt+ir>>1,g(P[R+2*De-1],255&it,it>>16,pe,Oe+(2*De-1)*B),g(P[R+2*De+0],255&At,At>>16,pe,Oe+(2*De+0)*B)),At=$t,wt=ir}1&Ge||(it=3*At+wt+131074>>2,g(b[I+Ge-1],255&it,it>>16,Ue,ue+(Ge-1)*B),P!=null&&(it=3*wt+At+131074>>2,g(P[R+Ge-1],255&it,it>>16,pe,Oe+(Ge-1)*B)))}}function ze(){Qn[Ah]=a$,Qn[nh]=GE,Qn[RE]=s$,Qn[ih]=jE,Qn[ah]=WE,Qn[B2]=zE,Qn[ME]=o$,Qn[x2]=GE,Qn[y2]=jE,Qn[sh]=WE,Qn[C2]=zE}function ot(f){return f&~l$?0>f?0:255:f>>XE}function vt(f,g){return ot((19077*f>>8)+(26149*g>>8)-14234)}function Lt(f,g,B){return ot((19077*f>>8)-(6419*g>>8)-(13320*B>>8)+8708)}function Dt(f,g){return ot((19077*f>>8)+(33050*g>>8)-17685)}function jt(f,g,B,b,I){b[I+0]=vt(f,B),b[I+1]=Lt(f,g,B),b[I+2]=Dt(f,g)}function br(f,g,B,b,I){b[I+0]=Dt(f,g),b[I+1]=Lt(f,g,B),b[I+2]=vt(f,B)}function Lr(f,g,B,b,I){var P=Lt(f,g,B);g=P<<3&224|Dt(f,g)>>3,b[I+0]=248&vt(f,B)|P>>5,b[I+1]=g}function Yr(f,g,B,b,I){var P=240&Dt(f,g)|15;b[I+0]=240&vt(f,B)|Lt(f,g,B)>>4,b[I+1]=P}function kA(f,g,B,b,I){b[I+0]=255,jt(f,g,B,b,I+1)}function cA(f,g,B,b,I){br(f,g,B,b,I),b[I+3]=255}function Ai(f,g,B,b,I){jt(f,g,B,b,I),b[I+3]=255}function vn(f,g){return 0>f?0:f>g?g:f}function Zi(f,g,B){Q[f]=function(b,I,P,R,M,G,J,fe,be){for(var Fe=fe+(-2&be)*B;fe!=Fe;)g(b[I+0],P[R+0],M[G+0],J,fe),g(b[I+1],P[R+0],M[G+0],J,fe+B),I+=2,++R,++G,fe+=2*B;1&be&&g(b[I+0],P[R+0],M[G+0],J,fe)}}function Zu(f,g,B){return B==0?f==0?g==0?6:5:g==0?4:0:B}function Dc(f,g,B,b,I){switch(f>>>30){case 3:Zo(g,B,b,I,0);break;case 2:Gc(g,B,b,I);break;case 1:si(g,B,b,I)}}function Pc(f,g){var B,b,I=g.M,P=g.Nb,R=f.oc,M=f.pc+40,G=f.oc,J=f.pc+584,fe=f.oc,be=f.pc+600;for(B=0;16>B;++B)R[M+32*B-1]=129;for(B=0;8>B;++B)G[J+32*B-1]=129,fe[be+32*B-1]=129;for(0<I?R[M-1-32]=G[J-1-32]=fe[be-1-32]=129:(n(R,M-32-1,127,21),n(G,J-32-1,127,9),n(fe,be-32-1,127,9)),b=0;b<f.za;++b){var Fe=g.ya[g.aa+b];if(0<b){for(B=-1;16>B;++B)A(R,M+32*B-4,R,M+32*B+12,4);for(B=-1;8>B;++B)A(G,J+32*B-4,G,J+32*B+4,4),A(fe,be+32*B-4,fe,be+32*B+4,4)}var ve=f.Gd,Pe=f.Hd+b,Ue=Fe.ad,ue=Fe.Hc;if(0<I&&(A(R,M-32,ve[Pe].y,0,16),A(G,J-32,ve[Pe].f,0,8),A(fe,be-32,ve[Pe].ea,0,8)),Fe.Za){var pe=R,Oe=M-32+16;for(0<I&&(b>=f.za-1?n(pe,Oe,ve[Pe].y[15],4):A(pe,Oe,ve[Pe+1].y,0,4)),B=0;4>B;B++)pe[Oe+128+B]=pe[Oe+256+B]=pe[Oe+384+B]=pe[Oe+0+B];for(B=0;16>B;++B,ue<<=2)pe=R,Oe=M+YE[B],oi[Fe.Ob[B]](pe,Oe),Dc(ue,Ue,16*+B,pe,Oe)}else if(pe=Zu(b,I,Fe.Ob[0]),Ka[pe](R,M),ue!=0)for(B=0;16>B;++B,ue<<=2)Dc(ue,Ue,16*+B,R,M+YE[B]);for(B=Fe.Gc,pe=Zu(b,I,Fe.Dd),na[pe](G,J),na[pe](fe,be),ue=Ue,pe=G,Oe=J,255&(Fe=B>>0)&&(170&Fe?Ma(ue,256,pe,Oe):ta(ue,256,pe,Oe)),Fe=fe,ue=be,255&(B>>=8)&&(170&B?Ma(Ue,320,Fe,ue):ta(Ue,320,Fe,ue)),I<f.Ub-1&&(A(ve[Pe].y,0,R,M+480,16),A(ve[Pe].f,0,G,J+224,8),A(ve[Pe].ea,0,fe,be+224,8)),B=8*P*f.B,ve=f.sa,Pe=f.ta+16*b+16*P*f.R,Ue=f.qa,Fe=f.ra+8*b+B,ue=f.Ha,pe=f.Ia+8*b+B,B=0;16>B;++B)A(ve,Pe+B*f.R,R,M+32*B,16);for(B=0;8>B;++B)A(Ue,Fe+B*f.B,G,J+32*B,8),A(ue,pe+B*f.B,fe,be+32*B,8)}}function zo(f,g,B,b,I,P,R,M,G){var J=[0],fe=[0],be=0,Fe=G!=null?G.kd:0,ve=G??new Nc;if(f==null||12>B)return 7;ve.data=f,ve.w=g,ve.ha=B,g=[g],B=[B],ve.gb=[ve.gb];e:{var Pe=g,Ue=B,ue=ve.gb;if(e(f!=null),e(Ue!=null),e(ue!=null),ue[0]=0,12<=Ue[0]&&!r(f,Pe[0],"RIFF")){if(r(f,Pe[0]+8,"WEBP")){ue=3;break e}var pe=Xe(f,Pe[0]+4);if(12>pe||4294967286<pe){ue=3;break e}if(Fe&&pe>Ue[0]-8){ue=7;break e}ue[0]=pe,Pe[0]+=12,Ue[0]-=12}ue=0}if(ue!=0)return ue;for(pe=0<ve.gb[0],B=B[0];;){e:{var Oe=f;Ue=g,ue=B;var Ge=J,De=fe,lt=Pe=[0];if((it=be=[be])[0]=0,8>ue[0])ue=7;else{if(!r(Oe,Ue[0],"VP8X")){if(Xe(Oe,Ue[0]+4)!=10){ue=3;break e}if(18>ue[0]){ue=7;break e}var At=Xe(Oe,Ue[0]+8),wt=1+Re(Oe,Ue[0]+12);if(2147483648<=wt*(Oe=1+Re(Oe,Ue[0]+15))){ue=3;break e}lt!=null&&(lt[0]=At),Ge!=null&&(Ge[0]=wt),De!=null&&(De[0]=Oe),Ue[0]+=18,ue[0]-=18,it[0]=1}ue=0}}if(be=be[0],Pe=Pe[0],ue!=0)return ue;if(Ue=!!(2&Pe),!pe&&be)return 3;if(P!=null&&(P[0]=!!(16&Pe)),R!=null&&(R[0]=Ue),M!=null&&(M[0]=0),R=J[0],Pe=fe[0],be&&Ue&&G==null){ue=0;break}if(4>B){ue=7;break}if(pe&&be||!pe&&!be&&!r(f,g[0],"ALPH")){B=[B],ve.na=[ve.na],ve.P=[ve.P],ve.Sa=[ve.Sa];e:{At=f,ue=g,pe=B;var it=ve.gb;Ge=ve.na,De=ve.P,lt=ve.Sa,wt=22,e(At!=null),e(pe!=null),Oe=ue[0];var $t=pe[0];for(e(Ge!=null),e(lt!=null),Ge[0]=null,De[0]=null,lt[0]=0;;){if(ue[0]=Oe,pe[0]=$t,8>$t){ue=7;break e}var ir=Xe(At,Oe+4);if(4294967286<ir){ue=3;break e}var Wt=8+ir+1&-2;if(wt+=Wt,0<it&&wt>it){ue=3;break e}if(!r(At,Oe,"VP8 ")||!r(At,Oe,"VP8L")){ue=0;break e}if($t[0]<Wt){ue=7;break e}r(At,Oe,"ALPH")||(Ge[0]=At,De[0]=Oe+8,lt[0]=ir),Oe+=Wt,$t-=Wt}}if(B=B[0],ve.na=ve.na[0],ve.P=ve.P[0],ve.Sa=ve.Sa[0],ue!=0)break}B=[B],ve.Ja=[ve.Ja],ve.xa=[ve.xa];e:if(it=f,ue=g,pe=B,Ge=ve.gb[0],De=ve.Ja,lt=ve.xa,At=ue[0],Oe=!r(it,At,"VP8 "),wt=!r(it,At,"VP8L"),e(it!=null),e(pe!=null),e(De!=null),e(lt!=null),8>pe[0])ue=7;else{if(Oe||wt){if(it=Xe(it,At+4),12<=Ge&&it>Ge-12){ue=3;break e}if(Fe&&it>pe[0]-8){ue=7;break e}De[0]=it,ue[0]+=8,pe[0]-=8,lt[0]=wt}else lt[0]=5<=pe[0]&&it[At+0]==47&&!(it[At+4]>>5),De[0]=pe[0];ue=0}if(B=B[0],ve.Ja=ve.Ja[0],ve.xa=ve.xa[0],g=g[0],ue!=0)break;if(4294967286<ve.Ja)return 3;if(M==null||Ue||(M[0]=ve.xa?2:1),R=[R],Pe=[Pe],ve.xa){if(5>B){ue=7;break}M=R,Fe=Pe,Ue=P,f==null||5>B?f=0:5<=B&&f[g+0]==47&&!(f[g+4]>>5)?(pe=[0],it=[0],Ge=[0],ge(De=new C,f,g,B),gt(De,pe,it,Ge)?(M!=null&&(M[0]=pe[0]),Fe!=null&&(Fe[0]=it[0]),Ue!=null&&(Ue[0]=Ge[0]),f=1):f=0):f=0}else{if(10>B){ue=7;break}M=Pe,f==null||10>B||!Du(f,g+3,B-3)?f=0:(Fe=f[g+0]|f[g+1]<<8|f[g+2]<<16,Ue=16383&(f[g+7]<<8|f[g+6]),f=16383&(f[g+9]<<8|f[g+8]),1&Fe||3<(Fe>>1&7)||!(Fe>>4&1)||Fe>>5>=ve.Ja||!Ue||!f?f=0:(R&&(R[0]=Ue),M&&(M[0]=f),f=1))}if(!f||(R=R[0],Pe=Pe[0],be&&(J[0]!=R||fe[0]!=Pe)))return 3;G!=null&&(G[0]=ve,G.offset=g-G.w,e(4294967286>g-G.w),e(G.offset==G.ha-B));break}return ue==0||ue==7&&be&&G==null?(P!=null&&(P[0]|=ve.na!=null&&0<ve.na.length),b!=null&&(b[0]=R),I!=null&&(I[0]=Pe),0):ue}function Rc(f,g,B){var b=g.width,I=g.height,P=0,R=0,M=b,G=I;if(g.Da=f!=null&&0<f.Da,g.Da&&(M=f.cd,G=f.bd,P=f.v,R=f.j,11>B||(P&=-2,R&=-2),0>P||0>R||0>=M||0>=G||P+M>b||R+G>I))return 0;if(g.v=P,g.j=R,g.va=P+M,g.o=R+G,g.U=M,g.T=G,g.da=f!=null&&0<f.da,g.da){if(!Qe(M,G,B=[f.ib],P=[f.hb]))return 0;g.ib=B[0],g.hb=P[0]}return g.ob=f!=null&&f.ob,g.Kb=f==null||!f.Sd,g.da&&(g.ob=g.ib<3*b/4&&g.hb<3*I/4,g.Kb=0),1}function Mc(f){if(f==null)return 2;if(11>f.S){var g=f.f.RGBA;g.fb+=(f.height-1)*g.A,g.A=-g.A}else g=f.f.kb,f=f.height,g.O+=(f-1)*g.fa,g.fa=-g.fa,g.N+=(f-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(f-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(f-1)*g.lb,g.lb=-g.lb);return 0}function Xo(f,g,B,b){if(b==null||0>=f||0>=g)return 2;if(B!=null){if(B.Da){var I=B.cd,P=B.bd,R=-2&B.v,M=-2&B.j;if(0>R||0>M||0>=I||0>=P||R+I>f||M+P>g)return 2;f=I,g=P}if(B.da){if(!Qe(f,g,I=[B.ib],P=[B.hb]))return 2;f=I[0],g=P[0]}}b.width=f,b.height=g;e:{var G=b.width,J=b.height;if(f=b.S,0>=G||0>=J||!(f>=Ah&&13>f))f=2;else{if(0>=b.Rd&&b.sd==null){R=P=I=g=0;var fe=(M=G*$E[f])*J;if(11>f||(P=(J+1)/2*(g=(G+1)/2),f==12&&(R=(I=G)*J)),(J=i(fe+2*P+R))==null){f=1;break e}b.sd=J,11>f?((G=b.f.RGBA).eb=J,G.fb=0,G.A=M,G.size=fe):((G=b.f.kb).y=J,G.O=0,G.fa=M,G.Fd=fe,G.f=J,G.N=0+fe,G.Ab=g,G.Cd=P,G.ea=J,G.W=0+fe+P,G.Db=g,G.Ed=P,f==12&&(G.F=J,G.J=0+fe+2*P),G.Tc=R,G.lb=I)}if(g=1,I=b.S,P=b.width,R=b.height,I>=Ah&&13>I)if(11>I)f=b.f.RGBA,g&=(M=Math.abs(f.A))*(R-1)+P<=f.size,g&=M>=P*$E[I],g&=f.eb!=null;else{f=b.f.kb,M=(P+1)/2,fe=(R+1)/2,G=Math.abs(f.fa),J=Math.abs(f.Ab);var be=Math.abs(f.Db),Fe=Math.abs(f.lb),ve=Fe*(R-1)+P;g&=G*(R-1)+P<=f.Fd,g&=J*(fe-1)+M<=f.Cd,g=(g&=be*(fe-1)+M<=f.Ed)&G>=P&J>=M&be>=M,g&=f.y!=null,g&=f.f!=null,g&=f.ea!=null,I==12&&(g&=Fe>=P,g&=ve<=f.Tc,g&=f.F!=null)}else g=0;f=g?0:2}}return f!=0||B!=null&&B.fd&&(f=Mc(b)),f}var An=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],Yo=24,$o=32,Hc=8,nn=[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];We("Predictor0","PredictorAdd0"),Q.Predictor0=function(){return 4278190080},Q.Predictor1=function(f){return f},Q.Predictor2=function(f,g,B){return g[B+0]},Q.Predictor3=function(f,g,B){return g[B+1]},Q.Predictor4=function(f,g,B){return g[B-1]},Q.Predictor5=function(f,g,B){return Je(Je(f,g[B+1]),g[B+0])},Q.Predictor6=function(f,g,B){return Je(f,g[B-1])},Q.Predictor7=function(f,g,B){return Je(f,g[B+0])},Q.Predictor8=function(f,g,B){return Je(g[B-1],g[B+0])},Q.Predictor9=function(f,g,B){return Je(g[B+0],g[B+1])},Q.Predictor10=function(f,g,B){return Je(Je(f,g[B-1]),Je(g[B+0],g[B+1]))},Q.Predictor11=function(f,g,B){var b=g[B+0];return 0>=ht(b>>24&255,f>>24&255,(g=g[B-1])>>24&255)+ht(b>>16&255,f>>16&255,g>>16&255)+ht(b>>8&255,f>>8&255,g>>8&255)+ht(255&b,255&f,255&g)?b:f},Q.Predictor12=function(f,g,B){var b=g[B+0];return(st((f>>24&255)+(b>>24&255)-((g=g[B-1])>>24&255))<<24|st((f>>16&255)+(b>>16&255)-(g>>16&255))<<16|st((f>>8&255)+(b>>8&255)-(g>>8&255))<<8|st((255&f)+(255&b)-(255&g)))>>>0},Q.Predictor13=function(f,g,B){var b=g[B-1];return(nt((f=Je(f,g[B+0]))>>24&255,b>>24&255)<<24|nt(f>>16&255,b>>16&255)<<16|nt(f>>8&255,b>>8&255)<<8|nt(f>>0&255,b>>0&255))>>>0};var p2=Q.PredictorAdd0;Q.PredictorAdd1=mt,We("Predictor2","PredictorAdd2"),We("Predictor3","PredictorAdd3"),We("Predictor4","PredictorAdd4"),We("Predictor5","PredictorAdd5"),We("Predictor6","PredictorAdd6"),We("Predictor7","PredictorAdd7"),We("Predictor8","PredictorAdd8"),We("Predictor9","PredictorAdd9"),We("Predictor10","PredictorAdd10"),We("Predictor11","PredictorAdd11"),We("Predictor12","PredictorAdd12"),We("Predictor13","PredictorAdd13");var Vc=Q.PredictorAdd2;yt("ColorIndexInverseTransform","MapARGB","32b",function(f){return f>>8&255},function(f){return f}),yt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(f){return f},function(f){return f>>8&255});var eh,ni=Q.ColorIndexInverseTransform,Kc=Q.MapARGB,v2=Q.VP8LColorIndexInverseTransformAlpha,m2=Q.MapAlpha,Pa=Q.VP8LPredictorsAdd=[];Pa.length=16,(Q.VP8LPredictors=[]).length=16,(Q.VP8LPredictorsAdd_C=[]).length=16,(Q.VP8LPredictors_C=[]).length=16;var In,ii,Ra,Ti,ea,Jo,ai,Zo,Gc,Ma,si,ta,Os,el,ks,Ha,jc,Ln,ra,pr,vr,Vr,AA,Aa,Va,tl,th,NE,QE=i(511),OE=i(2041),kE=i(225),DE=i(767),PE=0,w2=OE,rh=kE,mn=DE,Nn=QE,Ah=0,nh=1,RE=2,ih=3,ah=4,B2=5,ME=6,x2=7,y2=8,sh=9,C2=10,WY=[2,3,7],zY=[3,3,11],HE=[280,256,256,256,40],XY=[0,1,1,1,0],qY=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],YY=[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],$Y=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],JY=8,E2=[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],b2=[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],Wc=null,ZY=[[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]],e$=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],VE=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],t$=[[[[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]]]],r$=[[[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]]],A$=[[[[255,255,255,255,255,255,255,255,255,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]]]],n$=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ka=[],oi=[],na=[],i$=1,KE=2,Ga=[],Qn=[];Ie("UpsampleRgbLinePair",jt,3),Ie("UpsampleBgrLinePair",br,3),Ie("UpsampleRgbaLinePair",Ai,4),Ie("UpsampleBgraLinePair",cA,4),Ie("UpsampleArgbLinePair",kA,4),Ie("UpsampleRgba4444LinePair",Yr,2),Ie("UpsampleRgb565LinePair",Lr,2);var a$=Q.UpsampleRgbLinePair,s$=Q.UpsampleBgrLinePair,GE=Q.UpsampleRgbaLinePair,jE=Q.UpsampleBgraLinePair,WE=Q.UpsampleArgbLinePair,zE=Q.UpsampleRgba4444LinePair,o$=Q.UpsampleRgb565LinePair,oh=16,lh=1<<oh-1,zc=-227,F2=482,XE=6,l$=(256<<XE)-1,qE=0,c$=i(256),f$=i(256),u$=i(256),h$=i(256),d$=i(F2-zc),g$=i(F2-zc);Zi("YuvToRgbRow",jt,3),Zi("YuvToBgrRow",br,3),Zi("YuvToRgbaRow",Ai,4),Zi("YuvToBgraRow",cA,4),Zi("YuvToArgbRow",kA,4),Zi("YuvToRgba4444Row",Yr,2),Zi("YuvToRgb565Row",Lr,2);var YE=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ch=[0,2,8],p$=[8,7,6,4,4,2,2,2,1,1,1,1],v$=1;this.WebPDecodeRGBA=function(f,g,B,b,I){var P=nh,R=new jo,M=new rA;R.ba=M,M.S=P,M.width=[M.width],M.height=[M.height];var G=M.width,J=M.height,fe=new bt;if(fe==null||f==null)var be=2;else e(fe!=null),be=zo(f,g,B,fe.width,fe.height,fe.Pd,fe.Qd,fe.format,null);if(be!=0?G=0:(G!=null&&(G[0]=fe.width[0]),J!=null&&(J[0]=fe.height[0]),G=1),G){M.width=M.width[0],M.height=M.height[0],b!=null&&(b[0]=M.width),I!=null&&(I[0]=M.height);e:{if(b=new Si,(I=new Nc).data=f,I.w=g,I.ha=B,I.kd=1,g=[0],e(I!=null),((f=zo(I.data,I.w,I.ha,null,null,null,g,null,I))==0||f==7)&&g[0]&&(f=4),(g=f)==0){if(e(R!=null),b.data=I.data,b.w=I.w+I.offset,b.ha=I.ha-I.offset,b.put=WA,b.ac=Ir,b.bc=en,b.ma=R,I.xa){if((f=Te())==null){R=1;break e}if(function(Fe,ve){var Pe=[0],Ue=[0],ue=[0];t:for(;;){if(Fe==null)return 0;if(ve==null)return Fe.a=2,0;if(Fe.l=ve,Fe.a=0,ge(Fe.m,ve.data,ve.w,ve.ha),!gt(Fe.m,Pe,Ue,ue)){Fe.a=3;break t}if(Fe.xb=KE,ve.width=Pe[0],ve.height=Ue[0],!Ce(Pe[0],Ue[0],1,Fe,null))break t;return 1}return e(Fe.a!=0),0}(f,b)){if(b=(g=Xo(b.width,b.height,R.Oa,R.ba))==0){t:{b=f;r:for(;;){if(b==null){b=0;break t}if(e(b.s.yc!=null),e(b.s.Ya!=null),e(0<b.s.Wb),e((B=b.l)!=null),e((I=B.ma)!=null),b.xb!=0){if(b.ca=I.ba,b.tb=I.tb,e(b.ca!=null),!Rc(I.Oa,B,ih)){b.a=2;break r}if(!ae(b,B.width)||B.da)break r;if((B.da||Pt(b.ca.S))&&xe(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&xe()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!qe(b.s.vb,b.s.Wa.Xa)){b.a=1;break r}b.xb=0}if(!te(b,b.V,b.Ba,b.c,b.i,B.o,ee))break r;I.Dc=b.Ma,b=1;break t}e(b.a!=0),b=0}b=!b}b&&(g=f.a)}else g=f.a}else{if((f=new pn)==null){R=1;break e}if(f.Fa=I.na,f.P=I.P,f.qc=I.Sa,Pu(f,b)){if((g=Xo(b.width,b.height,R.Oa,R.ba))==0){if(f.Aa=0,B=R.Oa,e((I=f)!=null),B!=null){if(0<(G=0>(G=B.Md)?0:100<G?255:255*G/100)){for(J=fe=0;4>J;++J)12>(be=I.pb[J]).lc&&(be.ia=G*p$[0>be.lc?0:be.lc]>>3),fe|=be.ia;fe&&(alert("todo:VP8InitRandom"),I.ia=1)}I.Ga=B.Id,100<I.Ga?I.Ga=100:0>I.Ga&&(I.Ga=0)}Jp(f,b)||(g=f.a)}}else g=f.a}g==0&&R.Oa!=null&&R.Oa.fd&&(g=Mc(R.ba))}R=g}P=R!=0?null:11>P?M.f.RGBA.eb:M.f.kb.y}else P=null;return P};var $E=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(Q,K){for(var Ae="",U=0;U<4;U++)Ae+=String.fromCharCode(Q[K++]);return Ae}function c(Q,K){return(Q[K+0]<<0|Q[K+1]<<8|Q[K+2]<<16)>>>0}function h(Q,K){return(Q[K+0]<<0|Q[K+1]<<8|Q[K+2]<<16|Q[K+3]<<24)>>>0}new o;var d=[0],u=[0],w=[],v=new o,x=t,y=function(Q,K){var Ae={},U=0,T=!1,V=0,Y=0;if(Ae.frames=[],!function(_,S,O,W){for(var ie=0;ie<W;ie++)if(_[S+ie]!=O.charCodeAt(ie))return!0;return!1}(Q,K,"RIFF",4)){var ce,he;for(h(Q,K+=4),K+=8;K<Q.length;){var me=l(Q,K),ge=h(Q,K+=4);K+=4;var we=ge+(1&ge);switch(me){case"VP8 ":case"VP8L":Ae.frames[U]===void 0&&(Ae.frames[U]={}),(C=Ae.frames[U]).src_off=T?Y:K-8,C.src_size=V+ge+8,U++,T&&(T=!1,V=0,Y=0);break;case"VP8X":(C=Ae.header={}).feature_flags=Q[K];var Be=K+4;C.canvas_width=1+c(Q,Be),Be+=3,C.canvas_height=1+c(Q,Be),Be+=3;break;case"ALPH":T=!0,V=we+8,Y=K-8;break;case"ANIM":(C=Ae.header).bgcolor=h(Q,K),Be=K+4,C.loop_count=(ce=Q)[(he=Be)+0]<<0|ce[he+1]<<8,Be+=2;break;case"ANMF":var ke,C;(C=Ae.frames[U]={}).offset_x=2*c(Q,K),K+=3,C.offset_y=2*c(Q,K),K+=3,C.width=1+c(Q,K),K+=3,C.height=1+c(Q,K),K+=3,C.duration=c(Q,K),K+=3,ke=Q[K++],C.dispose=1&ke,C.blend=ke>>1&1}me!="ANMF"&&(K+=we)}return Ae}}(x,0);y.response=x,y.rgbaoutput=!0,y.dataurl=!1;var E=y.header?y.header:null,F=y.frames?y.frames:null;if(E){E.loop_counter=E.loop_count,d=[E.canvas_height],u=[E.canvas_width];for(var k=0;k<F.length&&F[k].blend!=0;k++);}var X=F[0],q=v.WebPDecodeRGBA(x,X.src_off,X.src_size,u,d);X.rgba=q,X.imgwidth=u[0],X.imgheight=d[0];for(var N=0;N<u[0]*d[0]*4;N++)w[N]=q[N];return this.width=u,this.height=d,this.data=w,this}(function(t){var e=function(){return typeof F1=="function"},r=function(d,u,w,v){var x=4,y=a;switch(v){case t.image_compression.FAST:x=1,y=i;break;case t.image_compression.MEDIUM:x=6,y=s;break;case t.image_compression.SLOW:x=9,y=o}d=A(d,u,w,y);var E=F1(d,{level:x});return t.__addimage__.arrayBufferToBinaryString(E)},A=function(d,u,w,v){for(var x,y,E,F=d.length/u,k=new Uint8Array(d.length+F),X=c(),q=0;q<F;q+=1){if(E=q*u,x=d.subarray(E,E+u),v)k.set(v(x,w,y),E+q);else{for(var N,Q=X.length,K=[];N<Q;N+=1)K[N]=X[N](x,w,y);var Ae=h(K.concat());k.set(K[Ae],E+q)}y=x}return k},n=function(d){var u=Array.apply([],d);return u.unshift(0),u},i=function(d,u){var w,v=[],x=d.length;v[0]=1;for(var y=0;y<x;y+=1)w=d[y-u]||0,v[y+1]=d[y]-w+256&255;return v},a=function(d,u,w){var v,x=[],y=d.length;x[0]=2;for(var E=0;E<y;E+=1)v=w&&w[E]||0,x[E+1]=d[E]-v+256&255;return x},s=function(d,u,w){var v,x,y=[],E=d.length;y[0]=3;for(var F=0;F<E;F+=1)v=d[F-u]||0,x=w&&w[F]||0,y[F+1]=d[F]+256-(v+x>>>1)&255;return y},o=function(d,u,w){var v,x,y,E,F=[],k=d.length;F[0]=4;for(var X=0;X<k;X+=1)v=d[X-u]||0,x=w&&w[X]||0,y=w&&w[X-u]||0,E=l(v,x,y),F[X+1]=d[X]-E+256&255;return F},l=function(d,u,w){if(d===u&&u===w)return d;var v=Math.abs(u-w),x=Math.abs(d-w),y=Math.abs(d+u-w-w);return v<=x&&v<=y?d:x<=y?u:w},c=function(){return[n,i,a,s,o]},h=function(d){var u=d.map(function(w){return w.reduce(function(v,x){return v+Math.abs(x)},0)});return u.indexOf(Math.min.apply(null,u))};t.processPNG=function(d,u,w,v){var x,y,E,F,k,X,q,N,Q,K,Ae,U,T,V,Y,ce=this.decode.FLATE_DECODE,he="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(E=new mU(d)).imgData,y=E.bits,x=E.colorSpace,k=E.colors,[4,6].indexOf(E.colorType)!==-1){if(E.bits===8){Q=(N=E.pixelBitlength==32?new Uint32Array(E.decodePixels().buffer):E.pixelBitlength==16?new Uint16Array(E.decodePixels().buffer):new Uint8Array(E.decodePixels().buffer)).length,Ae=new Uint8Array(Q*E.colors),K=new Uint8Array(Q);var me,ge=E.pixelBitlength-E.bits;for(V=0,Y=0;V<Q;V++){for(T=N[V],me=0;me<ge;)Ae[Y++]=T>>>me&255,me+=E.bits;K[V]=T>>>me&255}}if(E.bits===16){Q=(N=new Uint32Array(E.decodePixels().buffer)).length,Ae=new Uint8Array(Q*(32/E.pixelBitlength)*E.colors),K=new Uint8Array(Q*(32/E.pixelBitlength)),U=E.colors>1,V=0,Y=0;for(var we=0;V<Q;)T=N[V++],Ae[Y++]=T>>>0&255,U&&(Ae[Y++]=T>>>16&255,T=N[V++],Ae[Y++]=T>>>0&255),K[we++]=T>>>16&255;y=8}v!==t.image_compression.NONE&&e()?(d=r(Ae,E.width*E.colors,E.colors,v),q=r(K,E.width,1,v)):(d=Ae,q=K,ce=void 0)}if(E.colorType===3&&(x=this.color_spaces.INDEXED,X=E.palette,E.transparency.indexed)){var Be=E.transparency.indexed,ke=0;for(V=0,Q=Be.length;V<Q;++V)ke+=Be[V];if((ke/=255)===Q-1&&Be.indexOf(0)!==-1)F=[Be.indexOf(0)];else if(ke!==Q){for(N=E.decodePixels(),K=new Uint8Array(N.length),V=0,Q=N.length;V<Q;V++)K[V]=Be[N[V]];q=r(K,E.width,1)}}var C=function(_){var S;switch(_){case t.image_compression.FAST:S=11;break;case t.image_compression.MEDIUM:S=13;break;case t.image_compression.SLOW:S=14;break;default:S=12}return S}(v);return ce===this.decode.FLATE_DECODE&&(he="/Predictor "+C+" "),he+="/Colors "+k+" /BitsPerComponent "+y+" /Columns "+E.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(q&&this.__addimage__.isArrayBuffer(q)||this.__addimage__.isArrayBufferView(q))&&(q=this.__addimage__.arrayBufferToBinaryString(q)),{alias:w,data:d,index:u,filter:ce,decodeParameters:he,transparency:F,palette:X,sMask:q,predictor:C,width:E.width,height:E.height,bitsPerComponent:y,colorSpace:x}}}})(xt.API),function(t){t.processGIF89A=function(e,r,A,n){var i=new wU(e),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var l={data:o,width:a,height:s},c=new R1(100).encode(l,100);return t.processJPEG.call(this,c,r,A,n)},t.processGIF87A=t.processGIF89A}(xt.API),Mn.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:A,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mn.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(r){cr.log("bit decode error:"+r)}},Mn.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=A*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}r!==0&&(this.pos+=4-r)}},Mn.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var A=this.bottom_up?r:this.height-1-r,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+2*n*4,s=i>>4,o=15&i,l=this.palette[s];if(this.data[a]=l.blue,this.data[a+1]=l.green,this.data[a+2]=l.red,this.data[a+3]=255,2*n+1>=this.width)break;l=this.palette[o],this.data[a+4]=l.blue,this.data[a+4+1]=l.green,this.data[a+4+2]=l.red,this.data[a+4+3]=255}e!==0&&(this.pos+=4-e)}},Mn.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var n=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*A;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}t!==0&&(this.pos+=4-t)}},Mn.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var A=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,o=(i>>10&e)/e*255|0,l=i>>15?255:0,c=A*this.width*4+4*n;this.data[c]=o,this.data[c+1]=s,this.data[c+2]=a,this.data[c+3]=l}this.pos+=t}},Mn.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),A=this.height-1;A>=0;A--){for(var n=this.bottom_up?A:this.height-1-A,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,o=(a>>5&r)/r*255|0,l=(a>>11)/e*255|0,c=n*this.width*4+4*i;this.data[c]=l,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},Mn.prototype.bit24=function(){for(var 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 A=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=A,this.data[a+3]=255}this.pos+=this.width%4}},Mn.prototype.bit32=function(){for(var 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 A=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=e*this.width*4+4*r;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=A,this.data[s+3]=a}},Mn.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,r,A,n){var i=new Mn(e,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},l=new R1(100).encode(o,100);return t.processJPEG.call(this,l,r,A,n)}}(xt.API),mw.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,r,A,n){var i=new mw(e),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},l=new R1(100).encode(o,100);return t.processJPEG.call(this,l,r,A,n)}}(xt.API),xt.API.processRGBA=function(t,e,r){for(var A=t.data,n=A.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),s=0,o=0,l=0;l<n;l+=4){var c=A[l],h=A[l+1],d=A[l+2],u=A[l+3];i[s++]=c,i[s++]=h,i[s++]=d,a[o++]=u}var w=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:w,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},xt.API.setLanguage=function(t){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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},no=xt.API,i0=no.getCharWidthsArray=function(t,e){var r,A,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:n.metadata.Unicode.widths,o=s.fof?s.fof:1,l=e.kerning?e.kerning:n.metadata.Unicode.kerning,c=l.fof?l.fof:1,h=e.doKerning!==!1,d=0,u=t.length,w=0,v=s[0]||o,x=[];for(r=0;r<u;r++)A=t.charCodeAt(r),typeof n.metadata.widthOfString=="function"?x.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(A))+a*(1e3/i)||0)/1e3):(d=h&&zt(l[A])==="object"&&!isNaN(parseInt(l[A][w],10))?l[A][w]/c:0,x.push((s[A]||v)/o+d)),w=A;return x},dw=no.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),A=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return no.processArabic&&(t=no.processArabic(t)),typeof A.metadata.widthOfString=="function"?A.metadata.widthOfString(t,r,n)/r:i0.apply(this,arguments).reduce(function(i,a){return i+a},0)},gw=function(t,e,r,A){for(var n=[],i=0,a=t.length,s=0;i!==a&&s+e[i]<r;)s+=e[i],i++;n.push(t.slice(0,i));var o=i;for(s=0;i!==a;)s+e[i]>A&&(n.push(t.slice(o,i)),s=0,o=i),s+=e[i],i++;return o!==i&&n.push(t.slice(o,i)),n},pw=function(t,e,r){r||(r={});var A,n,i,a,s,o,l,c=[],h=[c],d=r.textIndent||0,u=0,w=0,v=t.split(" "),x=i0.apply(this,[" ",r])[0];if(o=r.lineIndent===-1?v[0].length+2:r.lineIndent||0){var y=Array(o).join(" "),E=[];v.map(function(k){(k=k.split(/\s*\n/)).length>1?E=E.concat(k.map(function(X,q){return(q&&X.length?`
|
|
233
|
+
*/function Mn(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function mw(t){function e(Q){if(!Q)throw Error("assert :P")}function r(Q,K,Ae){for(var U=0;4>U;U++)if(Q[K+U]!=Ae.charCodeAt(U))return!0;return!1}function A(Q,K,Ae,U,T){for(var V=0;V<T;V++)Q[K+V]=Ae[U+V]}function n(Q,K,Ae,U){for(var T=0;T<U;T++)Q[K+T]=Ae}function i(Q){return new Int32Array(Q)}function a(Q,K){for(var Ae=[],U=0;U<Q;U++)Ae.push(new K);return Ae}function s(Q,K){var Ae=[];return function U(T,V,Y){for(var ce=Y[V],he=0;he<ce&&(T.push(Y.length>V+1?[]:new K),!(Y.length<V+1));he++)U(T[he],V+1,Y)}(Ae,0,Q),Ae}var o=function(){var Q=this;function K(f,g){for(var B=1<<g-1>>>0;f&B;)B>>>=1;return B?(f&B-1)+B:f}function Ae(f,g,B,b,I){e(!(b%B));do f[g+(b-=B)]=I;while(0<b)}function U(f,g,B,b,I){if(e(2328>=I),512>=I)var P=i(512);else if((P=i(I))==null)return 0;return function(R,M,G,J,fe,be){var Fe,ve,Pe=M,Ue=1<<G,ue=i(16),pe=i(16);for(e(fe!=0),e(J!=null),e(R!=null),e(0<G),ve=0;ve<fe;++ve){if(15<J[ve])return 0;++ue[J[ve]]}if(ue[0]==fe)return 0;for(pe[1]=0,Fe=1;15>Fe;++Fe){if(ue[Fe]>1<<Fe)return 0;pe[Fe+1]=pe[Fe]+ue[Fe]}for(ve=0;ve<fe;++ve)Fe=J[ve],0<J[ve]&&(be[pe[Fe]++]=ve);if(pe[15]==1)return(J=new T).g=0,J.value=be[0],Ae(R,Pe,1,Ue,J),Ue;var Oe,Ge=-1,De=Ue-1,lt=0,At=1,wt=1,it=1<<G;for(ve=0,Fe=1,fe=2;Fe<=G;++Fe,fe<<=1){if(At+=wt<<=1,0>(wt-=ue[Fe]))return 0;for(;0<ue[Fe];--ue[Fe])(J=new T).g=Fe,J.value=be[ve++],Ae(R,Pe+lt,fe,it,J),lt=K(lt,Fe)}for(Fe=G+1,fe=2;15>=Fe;++Fe,fe<<=1){if(At+=wt<<=1,0>(wt-=ue[Fe]))return 0;for(;0<ue[Fe];--ue[Fe]){if(J=new T,(lt&De)!=Ge){for(Pe+=it,Oe=1<<(Ge=Fe)-G;15>Ge&&!(0>=(Oe-=ue[Ge]));)++Ge,Oe<<=1;Ue+=it=1<<(Oe=Ge-G),R[M+(Ge=lt&De)].g=Oe+G,R[M+Ge].value=Pe-M-Ge}J.g=Fe-G,J.value=be[ve++],Ae(R,Pe+(lt>>G),fe,it,J),lt=K(lt,Fe)}}return At!=2*pe[15]-1?0:Ue}(f,g,B,b,I,P)}function T(){this.value=this.g=0}function V(){this.value=this.g=0}function Y(){this.G=a(5,T),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(An,V)}function ce(f,g,B,b){e(f!=null),e(g!=null),e(2147483648>b),f.Ca=254,f.I=0,f.b=-8,f.Ka=0,f.oa=g,f.pa=B,f.Jd=g,f.Yc=B+b,f.Zc=4<=b?B+b-4+1:B,ie(f)}function he(f,g){for(var B=0;0<g--;)B|=le(f,128)<<g;return B}function me(f,g){var B=he(f,g);return oe(f)?-B:B}function ge(f,g,B,b){var I,P=0;for(e(f!=null),e(g!=null),e(4294967288>b),f.Sb=b,f.Ra=0,f.u=0,f.h=0,4<b&&(b=4),I=0;I<b;++I)P+=g[B+I]<<8*I;f.Ra=P,f.bb=b,f.oa=g,f.pa=B}function we(f){for(;8<=f.u&&f.bb<f.Sb;)f.Ra>>>=8,f.Ra+=f.oa[f.pa+f.bb]<<$o-8>>>0,++f.bb,f.u-=8;S(f)&&(f.h=1,f.u=0)}function Be(f,g){if(e(0<=g),!f.h&&g<=Yo){var B=_(f)&qo[g];return f.u+=g,we(f),B}return f.h=1,f.u=0}function ke(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function C(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(f){return f.Ra>>>(f.u&$o-1)>>>0}function S(f){return e(f.bb<=f.Sb),f.h||f.bb==f.Sb&&f.u>$o}function O(f,g){f.u=g,f.h=S(f)}function W(f){f.u>=Hc&&(e(f.u>=Hc),we(f))}function ie(f){e(f!=null&&f.oa!=null),f.pa<f.Zc?(f.I=(f.oa[f.pa++]|f.I<<8)>>>0,f.b+=8):(e(f!=null&&f.oa!=null),f.pa<f.Yc?(f.b+=8,f.I=f.oa[f.pa++]|f.I<<8):f.Ka?f.b=0:(f.I<<=8,f.b+=8,f.Ka=1))}function oe(f){return he(f,1)}function le(f,g){var B=f.Ca;0>f.b&&ie(f);var b=f.b,I=B*g>>>8,P=(f.I>>>b>I)+0;for(P?(B-=I,f.I-=I+1<<b>>>0):B=I+1,b=B,I=0;256<=b;)I+=8,b>>=8;return b=7^I+nn[b],f.b-=b,f.Ca=(B<<b)-1,P}function ye(f,g,B){f[g+0]=B>>24&255,f[g+1]=B>>16&255,f[g+2]=B>>8&255,f[g+3]=B>>0&255}function Ne(f,g){return f[g+0]<<0|f[g+1]<<8}function Re(f,g){return Ne(f,g)|f[g+2]<<16}function Xe(f,g){return Ne(f,g)|Ne(f,g+2)<<16}function qe(f,g){var B=1<<g;return e(f!=null),e(0<g),f.X=i(B),f.X==null?0:(f.Mb=32-g,f.Xa=g,1)}function _e(f,g){e(f!=null),e(g!=null),e(f.Xa==g.Xa),A(g.X,0,f.X,0,1<<g.Xa)}function re(){this.X=[],this.Xa=this.Mb=0}function Qe(f,g,B,b){e(B!=null),e(b!=null);var I=B[0],P=b[0];return I==0&&(I=(f*P+g/2)/g),P==0&&(P=(g*I+f/2)/f),0>=I||0>=P?0:(B[0]=I,b[0]=P,1)}function rt(f,g){return f+(1<<g)-1>>>g}function Me(f,g){return((4278255360&f)+(4278255360&g)>>>0&4278255360)+((16711935&f)+(16711935&g)>>>0&16711935)>>>0}function We(f,g){Q[g]=function(B,b,I,P,R,M,G){var J;for(J=0;J<R;++J){var fe=Q[f](M[G+J-1],I,P+J);M[G+J]=Me(B[b+J],fe)}}}function $e(){this.ud=this.hd=this.jd=0}function Je(f,g){return((4278124286&(f^g))>>>1)+(f&g)>>>0}function st(f){return 0<=f&&256>f?f:0>f?0:255<f?255:void 0}function nt(f,g){return st(f+(f-g+.5>>1))}function ht(f,g,B){return Math.abs(g-B)-Math.abs(f-B)}function mt(f,g,B,b,I,P,R){for(b=P[R-1],B=0;B<I;++B)P[R+B]=b=Me(f[g+B],b)}function _t(f,g,B,b,I){var P;for(P=0;P<B;++P){var R=f[g+P],M=R>>8&255,G=16711935&(G=(G=16711935&R)+((M<<16)+M));b[I+P]=(4278255360&R)+G>>>0}}function Ut(f,g){g.jd=f>>0&255,g.hd=f>>8&255,g.ud=f>>16&255}function dt(f,g,B,b,I,P){var R;for(R=0;R<b;++R){var M=g[B+R],G=M>>>8,J=M,fe=255&(fe=(fe=M>>>16)+((f.jd<<24>>24)*(G<<24>>24)>>>5));J=255&(J=(J=J+((f.hd<<24>>24)*(G<<24>>24)>>>5))+((f.ud<<24>>24)*(fe<<24>>24)>>>5)),I[P+R]=(4278255360&M)+(fe<<16)+J}}function yt(f,g,B,b,I){Q[g]=function(P,R,M,G,J,fe,be,Fe,ve){for(G=be;G<Fe;++G)for(be=0;be<ve;++be)J[fe++]=I(M[b(P[R++])])},Q[f]=function(P,R,M,G,J,fe,be){var Fe=8>>P.b,ve=P.Ea,Pe=P.K[0],Ue=P.w;if(8>Fe)for(P=(1<<P.b)-1,Ue=(1<<Fe)-1;R<M;++R){var ue,pe=0;for(ue=0;ue<ve;++ue)ue&P||(pe=b(G[J++])),fe[be++]=I(Pe[pe&Ue]),pe>>=Fe}else Q["VP8LMapColor"+B](G,J,Pe,Ue,fe,be,R,M,ve)}}function tt(f,g,B,b,I){for(B=g+B;g<B;){var P=f[g++];b[I++]=P>>16&255,b[I++]=P>>8&255,b[I++]=P>>0&255}}function nr(f,g,B,b,I){for(B=g+B;g<B;){var P=f[g++];b[I++]=P>>16&255,b[I++]=P>>8&255,b[I++]=P>>0&255,b[I++]=P>>24&255}}function It(f,g,B,b,I){for(B=g+B;g<B;){var P=(R=f[g++])>>16&240|R>>12&15,R=R>>0&240|R>>28&15;b[I++]=P,b[I++]=R}}function fr(f,g,B,b,I){for(B=g+B;g<B;){var P=(R=f[g++])>>16&248|R>>13&7,R=R>>5&224|R>>3&31;b[I++]=P,b[I++]=R}}function Qt(f,g,B,b,I){for(B=g+B;g<B;){var P=f[g++];b[I++]=P>>0&255,b[I++]=P>>8&255,b[I++]=P>>16&255}}function Kt(f,g,B,b,I,P){if(P==0)for(B=g+B;g<B;)ye(b,((P=f[g++])[0]>>24|P[1]>>8&65280|P[2]<<8&16711680|P[3]<<24)>>>0),I+=32;else A(b,I,f,g,B)}function qr(f,g){Q[g][0]=Q[f+"0"],Q[g][1]=Q[f+"1"],Q[g][2]=Q[f+"2"],Q[g][3]=Q[f+"3"],Q[g][4]=Q[f+"4"],Q[g][5]=Q[f+"5"],Q[g][6]=Q[f+"6"],Q[g][7]=Q[f+"7"],Q[g][8]=Q[f+"8"],Q[g][9]=Q[f+"9"],Q[g][10]=Q[f+"10"],Q[g][11]=Q[f+"11"],Q[g][12]=Q[f+"12"],Q[g][13]=Q[f+"13"],Q[g][14]=Q[f+"0"],Q[g][15]=Q[f+"0"]}function Pt(f){return f==x2||f==y2||f==sh||f==C2}function Er(){this.eb=[],this.size=this.A=this.fb=0}function qt(){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 rA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Er,this.f.kb=new qt,this.sd=null}function bt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Gt(){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 Ct(f){return alert("todo:WebPSamplerProcessPlane"),f.T}function Ht(f,g){var B=f.T,b=g.ba.f.RGBA,I=b.eb,P=b.fb+f.ka*b.A,R=Qn[g.ba.S],M=f.y,G=f.O,J=f.f,fe=f.N,be=f.ea,Fe=f.W,ve=g.cc,Pe=g.dc,Ue=g.Mc,ue=g.Nc,pe=f.ka,Oe=f.ka+f.T,Ge=f.U,De=Ge+1>>1;for(pe==0?R(M,G,null,null,J,fe,be,Fe,J,fe,be,Fe,I,P,null,null,Ge):(R(g.ec,g.fc,M,G,ve,Pe,Ue,ue,J,fe,be,Fe,I,P-b.A,I,P,Ge),++B);pe+2<Oe;pe+=2)ve=J,Pe=fe,Ue=be,ue=Fe,fe+=f.Rc,Fe+=f.Rc,P+=2*b.A,R(M,(G+=2*f.fa)-f.fa,M,G,ve,Pe,Ue,ue,J,fe,be,Fe,I,P-b.A,I,P,Ge);return G+=f.fa,f.j+Oe<f.o?(A(g.ec,g.fc,M,G,Ge),A(g.cc,g.dc,J,fe,De),A(g.Mc,g.Nc,be,Fe,De),B--):1&Oe||R(M,G,null,null,J,fe,be,Fe,J,fe,be,Fe,I,P+b.A,null,null,Ge),B}function gn(f,g,B){var b=f.F,I=[f.J];if(b!=null){var P=f.U,R=g.ba.S,M=R==ah||R==sh;g=g.ba.f.RGBA;var G=[0],J=f.ka;G[0]=f.T,f.Kb&&(J==0?--G[0]:(--J,I[0]-=f.width),f.j+f.ka+f.T==f.o&&(G[0]=f.o-f.j-J));var fe=g.eb;J=g.fb+J*g.A,f=th(b,I[0],f.width,P,G,fe,J+(M?0:3),g.A),e(B==G),f&&Pt(R)&&Va(fe,J,M,P,G,g.A)}return 0}function Ir(f){var g=f.ma,B=g.ba.S,b=11>B,I=B==nh||B==ih||B==ah||B==B2||B==12||Pt(B);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!Rc(g.Oa,f,I?11:12))return 0;if(I&&Pt(B)&&ze(),f.da)alert("todo:use_scaling");else{if(b){if(g.Ib=Ct,f.Kb){if(B=f.U+1>>1,g.memory=i(f.U+2*B),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+f.U,g.Mc=g.cc,g.Nc=g.dc+B,g.Ib=Ht,ze()}}else alert("todo:EmitYUV");I&&(g.Jb=gn,b&&xe())}if(b&&!qE){for(f=0;256>f;++f)s$[f]=89858*(f-128)+lh>>oh,c$[f]=-22014*(f-128)+lh,l$[f]=-45773*(f-128),o$[f]=113618*(f-128)+lh>>oh;for(f=zc;f<F2;++f)g=76283*(f-16)+lh>>oh,f$[f-zc]=vn(g,255),u$[f-zc]=vn(g+8>>4,15);qE=1}return 1}function WA(f){var g=f.ma,B=f.U,b=f.T;return e(!(1&f.ka)),0>=B||0>=b?0:(B=g.Ib(f,g),g.Jb!=null&&g.Jb(f,g,B),g.Dc+=B,1)}function en(f){f.ma.memory=null}function gt(f,g,B,b){return Be(f,8)!=47?0:(g[0]=Be(f,14)+1,B[0]=Be(f,14)+1,b[0]=Be(f,1),Be(f,3)!=0?0:!f.h)}function yA(f,g){if(4>f)return f+1;var B=f-2>>1;return(2+(1&f)<<B)+Be(g,B)+1}function QA(f,g){return 120<g?g-120:1<=(B=((B=zY[g-1])>>4)*f+(8-(15&B)))?B:1;var B}function gr(f,g,B){var b=_(B),I=f[g+=255&b].g-8;return 0<I&&(O(B,B.u+8),b=_(B),g+=f[g].value,g+=b&(1<<I)-1),O(B,B.u+f[g].g),f[g].value}function Br(f,g,B){return B.g+=f.g,B.value+=f.value<<g>>>0,e(8>=B.g),f.g}function xr(f,g,B){var b=f.xc;return e((g=b==0?0:f.vc[f.md*(B>>b)+(g>>b)])<f.Wb),f.Ya[g]}function D(f,g,B,b){var I=f.ab,P=f.c*g,R=f.C;g=R+g;var M=B,G=b;for(b=f.Ta,B=f.Ua;0<I--;){var J=f.gc[I],fe=R,be=g,Fe=M,ve=G,Pe=(G=b,M=B,J.Ea);switch(e(fe<be),e(be<=J.nc),J.hc){case 2:eh(Fe,ve,(be-fe)*Pe,G,M);break;case 0:var Ue=fe,ue=be,pe=G,Oe=M,Ge=(it=J).Ea;Ue==0&&(p2(Fe,ve,null,null,1,pe,Oe),mt(Fe,ve+1,0,0,Ge-1,pe,Oe+1),ve+=Ge,Oe+=Ge,++Ue);for(var De=1<<it.b,lt=De-1,At=rt(Ge,it.b),wt=it.K,it=it.w+(Ue>>it.b)*At;Ue<ue;){var $t=wt,ir=it,Wt=1;for(Vc(Fe,ve,pe,Oe-Ge,1,pe,Oe);Wt<Ge;){var Mt=(Wt&~lt)+De;Mt>Ge&&(Mt=Ge),(0,Pa[$t[ir++]>>8&15])(Fe,ve+ +Wt,pe,Oe+Wt-Ge,Mt-Wt,pe,Oe+Wt),Wt=Mt}ve+=Ge,Oe+=Ge,++Ue<||(it+=At)}be!=J.nc&&A(G,M-Pe,G,M+(be-fe-1)*Pe,Pe);break;case 1:for(Pe=Fe,ue=ve,Ge=(Fe=J.Ea)-(Oe=Fe&~(pe=(ve=1<<J.b)-1)),Ue=rt(Fe,J.b),De=J.K,J=J.w+(fe>>J.b)*Ue;fe<be;){for(lt=De,At=J,wt=new $e,it=ue+Oe,$t=ue+Fe;ue<it;)Ut(lt[At++],wt),In(wt,Pe,ue,ve,G,M),ue+=ve,M+=ve;ue<$t&&(Ut(lt[At++],wt),In(wt,Pe,ue,Ge,G,M),ue+=Ge,M+=Ge),++fe&pe||(J+=Ue)}break;case 3:if(Fe==G&&ve==M&&0<J.b){for(ue=G,Fe=Pe=M+(be-fe)*Pe-(Oe=(be-fe)*rt(J.Ea,J.b)),ve=G,pe=M,Ue=[],Oe=(Ge=Oe)-1;0<=Oe;--Oe)Ue[Oe]=ve[pe+Oe];for(Oe=Ge-1;0<=Oe;--Oe)ue[Fe+Oe]=Ue[Oe];ni(J,fe,be,G,Pe,G,M)}else ni(J,fe,be,Fe,ve,G,M)}M=b,G=B}G!=B&&A(b,B,M,G,P)}function ee(f,g){var B=f.V,b=f.Ba+f.c*f.C,I=g-f.C;if(e(g<=f.l.o),e(16>=I),0<I){var P=f.l,R=f.Ta,M=f.Ua,G=P.width;if(D(f,I,B,b),I=M=[M],e((B=f.C)<(b=g)),e(P.v<P.va),b>P.o&&(b=P.o),B<P.j){var J=P.j-B;B=P.j,I[0]+=J*G}if(B>=b?B=0:(I[0]+=4*P.v,P.ka=B-P.j,P.U=P.va-P.v,P.T=b-B,B=1),B){if(M=M[0],11>(B=f.ca).S){var fe=B.f.RGBA,be=(b=B.S,I=P.U,P=P.T,J=fe.eb,fe.A),Fe=P;for(fe=fe.fb+f.Ma*fe.A;0<Fe--;){var ve=R,Pe=M,Ue=I,ue=J,pe=fe;switch(b){case Ah:ii(ve,Pe,Ue,ue,pe);break;case nh:Ra(ve,Pe,Ue,ue,pe);break;case x2:Ra(ve,Pe,Ue,ue,pe),Va(ue,pe,0,Ue,1,0);break;case RE:Jo(ve,Pe,Ue,ue,pe);break;case ih:Kt(ve,Pe,Ue,ue,pe,1);break;case y2:Kt(ve,Pe,Ue,ue,pe,1),Va(ue,pe,0,Ue,1,0);break;case ah:Kt(ve,Pe,Ue,ue,pe,0);break;case sh:Kt(ve,Pe,Ue,ue,pe,0),Va(ue,pe,1,Ue,1,0);break;case B2:Ti(ve,Pe,Ue,ue,pe);break;case C2:Ti(ve,Pe,Ue,ue,pe),tl(ue,pe,Ue,1,0);break;case ME:ea(ve,Pe,Ue,ue,pe);break;default:e(0)}M+=G,fe+=be}f.Ma+=P}else alert("todo:EmitRescaledRowsYUVA");e(f.Ma<=B.height)}}f.C=g,e(f.C<=f.i)}function j(f){var g;if(0<f.ua)return 0;for(g=0;g<f.Wb;++g){var B=f.Ya[g].G,b=f.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 z(f,g,B,b,I,P){if(f.Z!=0){var R=f.qd,M=f.rd;for(e(Ga[f.Z]!=null);g<B;++g)Ga[f.Z](R,M,b,I,b,I,P),R=b,M=I,I+=P;f.qd=R,f.rd=M}}function Z(f,g){var B=f.l.ma,b=B.Z==0||B.Z==1?f.l.j:f.C;if(b=f.C<b?b:f.C,e(g<=f.l.o),g>b){var I=f.l.width,P=B.ca,R=B.tb+I*b,M=f.V,G=f.Ba+f.c*b,J=f.gc;e(f.ab==1),e(J[0].hc==3),v2(J[0],b,g,M,G,P,R),z(B,b,g,P,R,I)}f.C=f.Ma=g}function te(f,g,B,b,I,P,R){var M=f.$/b,G=f.$%b,J=f.m,fe=f.s,be=B+f.$,Fe=be;I=B+b*I;var ve=B+b*P,Pe=280+fe.ua,Ue=f.Pb?M:16777216,ue=0<fe.ua?fe.Wa:null,pe=fe.wc,Oe=be<ve?xr(fe,G,M):null;e(f.C<P),e(ve<=I);var Ge=!1;e:for(;;){for(;Ge||be<ve;){var De=0;if(M>=Ue){var lt=be-B;e((Ue=f).Pb),Ue.wd=Ue.m,Ue.xd=lt,0<Ue.s.ua&&_e(Ue.s.Wa,Ue.s.vb),Ue=M+qY}if(G&pe||(Oe=xr(fe,G,M)),e(Oe!=null),Oe.Qb&&(g[be]=Oe.qb,Ge=!0),!Ge)if(W(J),Oe.jc){De=J,lt=g;var At=be,wt=Oe.pd[_(De)&An-1];e(Oe.jc),256>wt.g?(O(De,De.u+wt.g),lt[At]=wt.value,De=0):(O(De,De.u+wt.g-256),e(256<=wt.value),De=wt.value),De==0&&(Ge=!0)}else De=gr(Oe.G[0],Oe.H[0],J);if(J.h)break;if(Ge||256>De){if(!Ge)if(Oe.nd)g[be]=(Oe.qb|De<<8)>>>0;else{if(W(J),Ge=gr(Oe.G[1],Oe.H[1],J),W(J),lt=gr(Oe.G[2],Oe.H[2],J),At=gr(Oe.G[3],Oe.H[3],J),J.h)break;g[be]=(At<<24|Ge<<16|De<<8|lt)>>>0}if(Ge=!1,++be,++G>=b&&(G=0,++M,R!=null&&M<=P&&!(M%16)&&R(f,M),ue!=null))for(;Fe<be;)De=g[Fe++],ue.X[(506832829*De&4294967295)>>>ue.Mb]=De}else if(280>De){if(De=yA(De-256,J),lt=gr(Oe.G[4],Oe.H[4],J),W(J),lt=QA(b,lt=yA(lt,J)),J.h)break;if(be-B<lt||I-be<De)break e;for(At=0;At<De;++At)g[be+At]=g[be+At-lt];for(be+=De,G+=De;G>=b;)G-=b,++M,R!=null&&M<=P&&!(M%16)&&R(f,M);if(e(be<=I),G&pe&&(Oe=xr(fe,G,M)),ue!=null)for(;Fe<be;)De=g[Fe++],ue.X[(506832829*De&4294967295)>>>ue.Mb]=De}else{if(!(De<Pe))break e;for(Ge=De-280,e(ue!=null);Fe<be;)De=g[Fe++],ue.X[(506832829*De&4294967295)>>>ue.Mb]=De;De=be,e(!(Ge>>>(lt=ue).Xa)),g[De]=lt.X[Ge],Ge=!0}Ge||e(J.h==S(J))}if(f.Pb&&J.h&&be<I)e(f.m.h),f.a=5,f.m=f.wd,f.$=f.xd,0<f.s.ua&&_e(f.s.vb,f.s.Wa);else{if(J.h)break e;R!=null&&R(f,M>P?P:M),f.a=0,f.$=be-B}return 1}return f.a=3,0}function Ee(f){e(f!=null),f.vc=null,f.yc=null,f.Ya=null;var g=f.Wa;g!=null&&(g.X=null),f.vb=null,e(f!=null)}function Te(){var f=new g2;return f==null?null:(f.a=0,f.xb=KE,qr("Predictor","VP8LPredictors"),qr("Predictor","VP8LPredictors_C"),qr("PredictorAdd","VP8LPredictorsAdd"),qr("PredictorAdd","VP8LPredictorsAdd_C"),eh=_t,In=dt,ii=tt,Ra=nr,Ti=It,ea=fr,Jo=Qt,Q.VP8LMapColor32b=Kc,Q.VP8LMapColor8b=m2,f)}function Ce(f,g,B,b,I){var P=1,R=[f],M=[g],G=b.m,J=b.s,fe=null,be=0;e:for(;;){if(B)for(;P&&Be(G,1);){var Fe=R,ve=M,Pe=b,Ue=1,ue=Pe.m,pe=Pe.gc[Pe.ab],Oe=Be(ue,2);if(Pe.Oc&1<<Oe)P=0;else{switch(Pe.Oc|=1<<Oe,pe.hc=Oe,pe.Ea=Fe[0],pe.nc=ve[0],pe.K=[null],++Pe.ab,e(4>=Pe.ab),Oe){case 0:case 1:pe.b=Be(ue,3)+2,Ue=Ce(rt(pe.Ea,pe.b),rt(pe.nc,pe.b),0,Pe,pe.K),pe.K=pe.K[0];break;case 3:var Ge,De=Be(ue,8)+1,lt=16<De?0:4<De?1:2<De?2:3;if(Fe[0]=rt(pe.Ea,lt),pe.b=lt,Ge=Ue=Ce(De,1,0,Pe,pe.K)){var At,wt=De,it=pe,$t=1<<(8>>it.b),ir=i($t);if(ir==null)Ge=0;else{var Wt=it.K[0],Mt=it.w;for(ir[0]=it.K[0][0],At=1;At<1*wt;++At)ir[At]=Me(Wt[Mt+At],ir[At-1]);for(;At<4*$t;++At)ir[At]=0;it.K[0]=null,it.K[0]=ir,Ge=1}}Ue=Ge;break;case 2:break;default:e(0)}P=Ue}}if(R=R[0],M=M[0],P&&Be(G,1)&&!(P=1<=(be=Be(G,4))&&11>=be)){b.a=3;break e}var ur;if(ur=P)t:{var lr,Nt,$r,an=b,Jr=R,sn=M,ar=be,wn=B,Bn=an.m,fA=an.s,CA=[null],zA=1,On=0,Ui=XY[ar];r:for(;;){if(wn&&Be(Bn,1)){var uA=Be(Bn,3)+2,ia=rt(Jr,uA),Ds=rt(sn,uA),rl=ia*Ds;if(!Ce(ia,Ds,0,an,CA))break r;for(CA=CA[0],fA.xc=uA,lr=0;lr<rl;++lr){var ja=CA[lr]>>8&65535;CA[lr]=ja,ja>=zA&&(zA=ja+1)}}if(Bn.h)break r;for(Nt=0;5>Nt;++Nt){var Nr=HE[Nt];!Nt&&0<ar&&(Nr+=1<<ar),On<Nr&&(On=Nr)}var S2=a(zA*Ui,T),JE=zA,ZE=a(JE,Y);if(ZE==null)var fh=null;else e(65536>=JE),fh=ZE;var Xc=i(On);if(fh==null||Xc==null||S2==null){an.a=1;break r}var uh=S2;for(lr=$r=0;lr<zA;++lr){var li=fh[lr],Al=li.G,nl=li.H,eb=0,hh=1,tb=0;for(Nt=0;5>Nt;++Nt){Nr=HE[Nt],Al[Nt]=uh,nl[Nt]=$r,!Nt&&0<ar&&(Nr+=1<<ar);n:{var dh,_2=Nr,gh=an,qc=Xc,g$=uh,p$=$r,T2=0,Wa=gh.m,v$=Be(Wa,1);if(n(qc,0,0,_2),v$){var m$=Be(Wa,1)+1,w$=Be(Wa,1),rb=Be(Wa,w$==0?1:8);qc[rb]=1,m$==2&&(qc[rb=Be(Wa,8)]=1);var ph=1}else{var Ab=i(19),nb=Be(Wa,4)+4;if(19<nb){gh.a=3;var vh=0;break n}for(dh=0;dh<nb;++dh)Ab[WY[dh]]=Be(Wa,3);var U2=void 0,Yc=void 0,ib=gh,B$=Ab,mh=_2,ab=qc,I2=0,za=ib.m,sb=8,ob=a(128,T);A:for(;U(ob,0,7,B$,19);){if(Be(za,1)){var x$=2+2*Be(za,3);if((U2=2+Be(za,x$))>mh)break A}else U2=mh;for(Yc=0;Yc<mh&&U2--;){W(za);var lb=ob[0+(127&_(za))];O(za,za.u+lb.g);var il=lb.value;if(16>il)ab[Yc++]=il,il!=0&&(sb=il);else{var y$=il==16,cb=il-16,C$=GY[cb],fb=Be(za,KY[cb])+C$;if(Yc+fb>mh)break A;for(var E$=y$?sb:0;0<fb--;)ab[Yc++]=E$}}I2=1;break A}I2||(ib.a=3),ph=I2}(ph=ph&&!Wa.h)&&(T2=U(g$,p$,8,qc,_2)),ph&&T2!=0?vh=T2:(gh.a=3,vh=0)}if(vh==0)break r;if(hh&&jY[Nt]==1&&(hh=uh[$r].g==0),eb+=uh[$r].g,$r+=vh,3>=Nt){var $c,L2=Xc[0];for($c=1;$c<Nr;++$c)Xc[$c]>L2&&(L2=Xc[$c]);tb+=L2}}if(li.nd=hh,li.Qb=0,hh&&(li.qb=(Al[3][nl[3]+0].value<<24|Al[1][nl[1]+0].value<<16|Al[2][nl[2]+0].value)>>>0,eb==0&&256>Al[0][nl[0]+0].value&&(li.Qb=1,li.qb+=Al[0][nl[0]+0].value<<8)),li.jc=!li.Qb&&6>tb,li.jc){var wh,aa=li;for(wh=0;wh<An;++wh){var Xa=wh,qa=aa.pd[Xa],Bh=aa.G[0][aa.H[0]+Xa];256<=Bh.value?(qa.g=Bh.g+256,qa.value=Bh.value):(qa.g=0,qa.value=0,Xa>>=Br(Bh,8,qa),Xa>>=Br(aa.G[1][aa.H[1]+Xa],16,qa),Xa>>=Br(aa.G[2][aa.H[2]+Xa],0,qa),Br(aa.G[3][aa.H[3]+Xa],24,qa))}}}fA.vc=CA,fA.Wb=zA,fA.Ya=fh,fA.yc=S2,ur=1;break t}ur=0}if(!(P=ur)){b.a=3;break e}if(0<be){if(J.ua=1<<be,!qe(J.Wa,be)){b.a=1,P=0;break e}}else J.ua=0;var N2=b,ub=R,b$=M,Q2=N2.s,O2=Q2.xc;if(N2.c=ub,N2.i=b$,Q2.md=rt(ub,O2),Q2.wc=O2==0?-1:(1<<O2)-1,B){b.xb=r$;break e}if((fe=i(R*M))==null){b.a=1,P=0;break e}P=(P=te(b,fe,0,R,M,M,null))&&!G.h;break e}return P?(I!=null?I[0]=fe:(e(fe==null),e(B)),b.$=0,B||Ee(J)):Ee(J),P}function ae(f,g){var B=f.c*f.i,b=B+g+16*g;return e(f.c<=g),f.V=i(b),f.V==null?(f.Ta=null,f.Ua=0,f.a=1,0):(f.Ta=f.V,f.Ua=f.Ba+B+g,1)}function H(f,g){var B=f.C,b=g-B,I=f.V,P=f.Ba+f.c*B;for(e(g<=f.l.o);0<b;){var R=16<b?16:b,M=f.l.ma,G=f.l.width,J=G*R,fe=M.ca,be=M.tb+G*B,Fe=f.Ta,ve=f.Ua;D(f,R,I,P),NE(Fe,ve,fe,be,J),z(M,B,B+R,fe,be,G),b-=R,I+=R*f.c,B+=R}e(B==g),f.C=f.Ma=g}function de(){this.ub=this.yd=this.td=this.Rb=0}function Se(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ke(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Ve(){this.Yb=function(){var f=[];return function g(B,b,I){for(var P=I[b],R=0;R<P&&(B.push(I.length>b+1?[]:0),!(I.length<b+1));R++)g(B[R],b+1,I)}(f,0,[3,11]),f}()}function Ye(){this.jb=i(3),this.Wc=s([4,8],Ve),this.Xc=s([4,17],Ve)}function ft(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Vt(){this.ld=this.La=this.dd=this.tc=0}function Et(){this.Na=this.la=0}function Cr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function tn(){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 bi(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vt),this.Y=0,this.ya=Array(new tn),this.aa=0,this.l=new Si}function Fi(){this.y=i(16),this.f=i(8),this.ea=i(8)}function ei(){this.cb=this.a=0,this.sc="",this.m=new ke,this.Od=new de,this.Kc=new Se,this.ed=new ft,this.Qa=new Ke,this.Ic=this.$c=this.Aa=0,this.D=new bi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,ke),this.ia=0,this.pb=a(4,Cr),this.Pa=new Ye,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Fi),this.Hd=0,this.rb=Array(new Et),this.sb=0,this.wa=Array(new Vt),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 tn),this.L=this.aa=0,this.gd=s([4,2],Vt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Si(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function pn(){var f=new ei;return f!=null&&(f.a=0,f.sc="OK",f.cb=0,f.Xb=0,Wc||(Wc=Ru)),f}function Hr(f,g,B){return f.a==0&&(f.a=g,f.sc=B,f.cb=0),0}function Du(f,g,B){return 3<=B&&f[g+0]==157&&f[g+1]==1&&f[g+2]==42}function Pu(f,g){if(f==null)return 0;if(f.a=0,f.sc="OK",g==null)return Hr(f,2,"null VP8Io passed to VP8GetHeaders()");var B=g.data,b=g.w,I=g.ha;if(4>I)return Hr(f,7,"Truncated header.");var P=B[b+0]|B[b+1]<<8|B[b+2]<<16,R=f.Od;if(R.Rb=!(1&P),R.td=P>>1&7,R.yd=P>>4&1,R.ub=P>>5,3<R.td)return Hr(f,3,"Incorrect keyframe parameters.");if(!R.yd)return Hr(f,4,"Frame not displayable.");b+=3,I-=3;var M=f.Kc;if(R.Rb){if(7>I)return Hr(f,7,"cannot parse picture header");if(!Du(B,b,I))return Hr(f,3,"Bad code word");M.c=16383&(B[b+4]<<8|B[b+3]),M.Td=B[b+4]>>6,M.i=16383&(B[b+6]<<8|B[b+5]),M.Ud=B[b+6]>>6,b+=7,I-=7,f.za=M.c+15>>4,f.Ub=M.i+15>>4,g.width=M.c,g.height=M.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((P=f.Pa).jb,0,255,P.jb.length),e((P=f.Qa)!=null),P.Cb=0,P.Bb=0,P.Fb=1,n(P.Zb,0,0,P.Zb.length),n(P.Lb,0,0,P.Lb)}if(R.ub>I)return Hr(f,7,"bad partition length");ce(P=f.m,B,b,R.ub),b+=R.ub,I-=R.ub,R.Rb&&(M.Ld=oe(P),M.Kd=oe(P)),M=f.Qa;var G,J=f.Pa;if(e(P!=null),e(M!=null),M.Cb=oe(P),M.Cb){if(M.Bb=oe(P),oe(P)){for(M.Fb=oe(P),G=0;4>G;++G)M.Zb[G]=oe(P)?me(P,7):0;for(G=0;4>G;++G)M.Lb[G]=oe(P)?me(P,6):0}if(M.Bb)for(G=0;3>G;++G)J.jb[G]=oe(P)?he(P,8):255}else M.Bb=0;if(P.Ka)return Hr(f,3,"cannot parse segment header");if((M=f.ed).zd=oe(P),M.Tb=he(P,6),M.wb=he(P,3),M.Pc=oe(P),M.Pc&&oe(P)){for(J=0;4>J;++J)oe(P)&&(M.vd[J]=me(P,6));for(J=0;4>J;++J)oe(P)&&(M.od[J]=me(P,6))}if(f.L=M.Tb==0?0:M.zd?1:2,P.Ka)return Hr(f,3,"cannot parse filter header");var fe=I;if(I=G=b,b=G+fe,M=fe,f.Xb=(1<<he(f.m,2))-1,fe<3*(J=f.Xb))B=7;else{for(G+=3*J,M-=3*J,fe=0;fe<J;++fe){var be=B[I+0]|B[I+1]<<8|B[I+2]<<16;be>M&&(be=M),ce(f.Jc[+fe],B,G,be),G+=be,M-=be,I+=3}ce(f.Jc[+J],B,G,M),B=G<b?0:5}if(B!=0)return Hr(f,B,"cannot parse partitions");for(B=he(G=f.m,7),I=oe(G)?me(G,4):0,b=oe(G)?me(G,4):0,M=oe(G)?me(G,4):0,J=oe(G)?me(G,4):0,G=oe(G)?me(G,4):0,fe=f.Qa,be=0;4>be;++be){if(fe.Cb){var Fe=fe.Zb[be];fe.Fb||(Fe+=B)}else{if(0<be){f.pb[be]=f.pb[0];continue}Fe=B}var ve=f.pb[be];ve.Sc[0]=E2[vn(Fe+I,127)],ve.Sc[1]=b2[vn(Fe+0,127)],ve.Eb[0]=2*E2[vn(Fe+b,127)],ve.Eb[1]=101581*b2[vn(Fe+M,127)]>>16,8>ve.Eb[1]&&(ve.Eb[1]=8),ve.Qc[0]=E2[vn(Fe+J,117)],ve.Qc[1]=b2[vn(Fe+G,127)],ve.lc=Fe+G}if(!R.Rb)return Hr(f,4,"Not a key frame.");for(oe(P),R=f.Pa,B=0;4>B;++B){for(I=0;8>I;++I)for(b=0;3>b;++b)for(M=0;11>M;++M)J=le(P,e$[B][I][b][M])?he(P,8):JY[B][I][b][M],R.Wc[B][I].Yb[b][M]=J;for(I=0;17>I;++I)R.Xc[B][I]=R.Wc[B][t$[I]]}return f.kc=oe(P),f.kc&&(f.Bd=he(P,8)),f.cb=1}function Ru(f,g,B,b,I,P,R){var M=g[I].Yb[B];for(B=0;16>I;++I){if(!le(f,M[B+0]))return I;for(;!le(f,M[B+1]);)if(M=g[++I].Yb[0],B=0,I==16)return 16;var G=g[I+1].Yb;if(le(f,M[B+2])){var J=f,fe=0;if(le(J,(Fe=M)[(be=B)+3]))if(le(J,Fe[be+6])){for(M=0,be=2*(fe=le(J,Fe[be+8]))+(Fe=le(J,Fe[be+9+fe])),fe=0,Fe=YY[be];Fe[M];++M)fe+=fe+le(J,Fe[M]);fe+=3+(8<<be)}else le(J,Fe[be+7])?(fe=7+2*le(J,165),fe+=le(J,145)):fe=5+le(J,159);else fe=le(J,Fe[be+4])?3+le(J,Fe[be+5]):2;M=G[2]}else fe=1,M=G[1];G=R+$Y[I],0>(J=f).b&&ie(J);var be,Fe=J.b,ve=(be=J.Ca>>1)-(J.I>>Fe)>>31;--J.b,J.Ca+=ve,J.Ca|=1,J.I-=(be+1&ve)<<Fe,P[G]=((fe^ve)-ve)*b[(0<I)+0]}return 16}function Ec(f){var g=f.rb[f.sb-1];g.la=0,g.Na=0,n(f.zc,0,0,f.zc.length),f.ja=0}function Jp(f,g){if(f==null)return 0;if(g==null)return Hr(f,2,"NULL VP8Io parameter in VP8Decode().");if(!f.cb&&!Pu(f,g))return 0;if(e(f.cb),g.ac==null||g.ac(g)){g.ob&&(f.L=0);var B=ch[f.L];if(f.L==2?(f.yb=0,f.zb=0):(f.yb=g.v-B>>4,f.zb=g.j-B>>4,0>f.yb&&(f.yb=0),0>f.zb&&(f.zb=0)),f.Va=g.o+15+B>>4,f.Hb=g.va+15+B>>4,f.Hb>f.za&&(f.Hb=f.za),f.Va>f.Ub&&(f.Va=f.Ub),0<f.L){var b=f.ed;for(B=0;4>B;++B){var I;if(f.Qa.Cb){var P=f.Qa.Lb[B];f.Qa.Fb||(P+=b.Tb)}else P=b.Tb;for(I=0;1>=I;++I){var R=f.gd[B][I],M=P;if(b.Pc&&(M+=b.vd[0],I&&(M+=b.od[0])),0<(M=0>M?0:63<M?63:M)){var G=M;0<b.wb&&(G=4<b.wb?G>>2:G>>1)>9-b.wb&&(G=9-b.wb),1>G&&(G=1),R.dd=G,R.tc=2*M+G,R.ld=40<=M?2:15<=M?1:0}else R.tc=0;R.La=I}}}B=0}else Hr(f,6,"Frame setup failed"),B=f.a;if(B=B==0){if(B){f.$c=0,0<f.Aa||(f.Ic=d$);e:{B=f.Ic,b=4*(G=f.za);var J=32*G,fe=G+1,be=0<f.L?G*(0<f.Aa?2:1):0,Fe=(f.Aa==2?2:1)*G;if((R=b+832+(I=3*(16*B+ch[f.L])/2*J)+(P=f.Fa!=null&&0<f.Fa.length?f.Kc.c*f.Kc.i:0))!=R)B=0;else{if(R>f.Vb){if(f.Vb=0,f.Ec=i(R),f.Fc=0,f.Ec==null){B=Hr(f,1,"no memory during frame initialization.");break e}f.Vb=R}R=f.Ec,M=f.Fc,f.Ac=R,f.Bc=M,M+=b,f.Gd=a(J,Fi),f.Hd=0,f.rb=a(fe+1,Et),f.sb=1,f.wa=be?a(be,Vt):null,f.Y=0,f.D.Nb=0,f.D.wa=f.wa,f.D.Y=f.Y,0<f.Aa&&(f.D.Y+=G),e(!0),f.oc=R,f.pc=M,M+=832,f.ya=a(Fe,tn),f.aa=0,f.D.ya=f.ya,f.D.aa=f.aa,f.Aa==2&&(f.D.aa+=G),f.R=16*G,f.B=8*G,G=(J=ch[f.L])*f.R,J=J/2*f.B,f.sa=R,f.ta=M+G,f.qa=f.sa,f.ra=f.ta+16*B*f.R+J,f.Ha=f.qa,f.Ia=f.ra+8*B*f.B+J,f.$c=0,M+=I,f.mb=P?R:null,f.nb=P?M:null,e(M+P<=f.Fc+f.Vb),Ec(f),n(f.Ac,f.Bc,0,b),B=1}}if(B){if(g.ka=0,g.y=f.sa,g.O=f.ta,g.f=f.qa,g.N=f.ra,g.ea=f.Ha,g.Vd=f.Ia,g.fa=f.R,g.Rc=f.B,g.F=null,g.J=0,!PE){for(B=-255;255>=B;++B)QE[255+B]=0>B?-B:B;for(B=-1020;1020>=B;++B)OE[1020+B]=-128>B?-128:127<B?127:B;for(B=-112;112>=B;++B)kE[112+B]=-16>B?-16:15<B?15:B;for(B=-255;510>=B;++B)DE[255+B]=0>B?0:255<B?255:B;PE=1}ai=t2,Zo=Zp,Ma=Hu,si=e2,ta=Vu,Gc=Mu,Os=Uc,el=Ns,ks=d2,Ha=Ic,jc=h2,Ln=Go,ra=Lc,pr=$u,vr=Yu,Vr=Ji,AA=Oa,Aa=u2,oi[0]=_i,oi[1]=r2,oi[2]=a2,oi[3]=s2,oi[4]=ju,oi[5]=Vo,oi[6]=Wu,oi[7]=Sc,oi[8]=l2,oi[9]=o2,Ka[0]=Ku,Ka[1]=n2,Ka[2]=$i,Ka[3]=Mo,Ka[4]=OA,Ka[5]=i2,Ka[6]=Gu,na[0]=Qa,na[1]=A2,na[2]=c2,na[3]=_c,na[4]=Ls,na[5]=f2,na[6]=Tc,B=1}else B=0}B&&(B=function(ve,Pe){for(ve.M=0;ve.M<ve.Va;++ve.M){var Ue,ue=ve.Jc[ve.M&ve.Xb],pe=ve.m,Oe=ve;for(Ue=0;Ue<Oe.za;++Ue){var Ge=pe,De=Oe,lt=De.Ac,At=De.Bc+4*Ue,wt=De.zc,it=De.ya[De.aa+Ue];if(De.Qa.Bb?it.$b=le(Ge,De.Pa.jb[0])?2+le(Ge,De.Pa.jb[2]):le(Ge,De.Pa.jb[1]):it.$b=0,De.kc&&(it.Ad=le(Ge,De.Bd)),it.Za=!le(Ge,145)+0,it.Za){var $t=it.Ob,ir=0;for(De=0;4>De;++De){var Wt,Mt=wt[0+De];for(Wt=0;4>Wt;++Wt){Mt=ZY[lt[At+Wt]][Mt];for(var ur=VE[le(Ge,Mt[0])];0<ur;)ur=VE[2*ur+le(Ge,Mt[ur])];Mt=-ur,lt[At+Wt]=Mt}A($t,ir,lt,At,4),ir+=4,wt[0+De]=Mt}}else Mt=le(Ge,156)?le(Ge,128)?1:3:le(Ge,163)?2:0,it.Ob[0]=Mt,n(lt,At,Mt,4),n(wt,0,Mt,4);it.Dd=le(Ge,142)?le(Ge,114)?le(Ge,183)?1:3:2:0}if(Oe.m.Ka)return Hr(ve,7,"Premature end-of-partition0 encountered.");for(;ve.ja<ve.za;++ve.ja){if(Oe=ue,Ge=(pe=ve).rb[pe.sb-1],lt=pe.rb[pe.sb+pe.ja],Ue=pe.ya[pe.aa+pe.ja],At=pe.kc?Ue.Ad:0)Ge.la=lt.la=0,Ue.Za||(Ge.Na=lt.Na=0),Ue.Hc=0,Ue.Gc=0,Ue.ia=0;else{var lr,Nt;if(Ge=lt,lt=Oe,At=pe.Pa.Xc,wt=pe.ya[pe.aa+pe.ja],it=pe.pb[wt.$b],De=wt.ad,$t=0,ir=pe.rb[pe.sb-1],Mt=Wt=0,n(De,$t,0,384),wt.Za)var $r=0,an=At[3];else{ur=i(16);var Jr=Ge.Na+ir.Na;if(Jr=Wc(lt,At[1],Jr,it.Eb,0,ur,0),Ge.Na=ir.Na=(0<Jr)+0,1<Jr)ai(ur,0,De,$t);else{var sn=ur[0]+3>>3;for(ur=0;256>ur;ur+=16)De[$t+ur]=sn}$r=1,an=At[0]}var ar=15&Ge.la,wn=15&ir.la;for(ur=0;4>ur;++ur){var Bn=1&wn;for(sn=Nt=0;4>sn;++sn)ar=ar>>1|(Bn=(Jr=Wc(lt,an,Jr=Bn+(1&ar),it.Sc,$r,De,$t))>$r)<<7,Nt=Nt<<2|(3<Jr?3:1<Jr?2:De[$t+0]!=0),$t+=16;ar>>=4,wn=wn>>1|Bn<<7,Wt=(Wt<<8|Nt)>>>0}for(an=ar,$r=wn>>4,lr=0;4>lr;lr+=2){for(Nt=0,ar=Ge.la>>4+lr,wn=ir.la>>4+lr,ur=0;2>ur;++ur){for(Bn=1&wn,sn=0;2>sn;++sn)Jr=Bn+(1&ar),ar=ar>>1|(Bn=0<(Jr=Wc(lt,At[2],Jr,it.Qc,0,De,$t)))<<3,Nt=Nt<<2|(3<Jr?3:1<Jr?2:De[$t+0]!=0),$t+=16;ar>>=2,wn=wn>>1|Bn<<5}Mt|=Nt<<4*lr,an|=ar<<4<<lr,$r|=(240&wn)<<lr}Ge.la=an,ir.la=$r,wt.Hc=Wt,wt.Gc=Mt,wt.ia=43690&Mt?0:it.ia,At=!(Wt|Mt)}if(0<pe.L&&(pe.wa[pe.Y+pe.ja]=pe.gd[Ue.$b][Ue.Za],pe.wa[pe.Y+pe.ja].La|=!At),Oe.Ka)return Hr(ve,7,"Premature end-of-file encountered.")}if(Ec(ve),pe=Pe,Oe=1,Ue=(ue=ve).D,Ge=0<ue.L&&ue.M>=ue.zb&&ue.M<=ue.Va,ue.Aa==0)e:{if(Ue.M=ue.M,Ue.uc=Ge,Pc(ue,Ue),Oe=1,Ue=(Nt=ue.D).Nb,Ge=(Mt=ch[ue.L])*ue.R,lt=Mt/2*ue.B,ur=16*Ue*ue.R,sn=8*Ue*ue.B,At=ue.sa,wt=ue.ta-Ge+ur,it=ue.qa,De=ue.ra-lt+sn,$t=ue.Ha,ir=ue.Ia-lt+sn,wn=(ar=Nt.M)==0,Wt=ar>=ue.Va-1,ue.Aa==2&&Pc(ue,Nt),Nt.uc)for(Bn=(Jr=ue).D.M,e(Jr.D.uc),Nt=Jr.yb;Nt<Jr.Hb;++Nt){$r=Nt,an=Bn;var fA=(CA=(Nr=Jr).D).Nb;lr=Nr.R;var CA=CA.wa[CA.Y+$r],zA=Nr.sa,On=Nr.ta+16*fA*lr+16*$r,Ui=CA.dd,uA=CA.tc;if(uA!=0)if(e(3<=uA),Nr.L==1)0<$r&&Vr(zA,On,lr,uA+4),CA.La&&Aa(zA,On,lr,uA),0<an&&vr(zA,On,lr,uA+4),CA.La&&AA(zA,On,lr,uA);else{var ia=Nr.B,Ds=Nr.qa,rl=Nr.ra+8*fA*ia+8*$r,ja=Nr.Ha,Nr=Nr.Ia+8*fA*ia+8*$r;fA=CA.ld,0<$r&&(el(zA,On,lr,uA+4,Ui,fA),Ha(Ds,rl,ja,Nr,ia,uA+4,Ui,fA)),CA.La&&(Ln(zA,On,lr,uA,Ui,fA),pr(Ds,rl,ja,Nr,ia,uA,Ui,fA)),0<an&&(Os(zA,On,lr,uA+4,Ui,fA),ks(Ds,rl,ja,Nr,ia,uA+4,Ui,fA)),CA.La&&(jc(zA,On,lr,uA,Ui,fA),ra(Ds,rl,ja,Nr,ia,uA,Ui,fA))}}if(ue.ia&&alert("todo:DitherRow"),pe.put!=null){if(Nt=16*ar,ar=16*(ar+1),wn?(pe.y=ue.sa,pe.O=ue.ta+ur,pe.f=ue.qa,pe.N=ue.ra+sn,pe.ea=ue.Ha,pe.W=ue.Ia+sn):(Nt-=Mt,pe.y=At,pe.O=wt,pe.f=it,pe.N=De,pe.ea=$t,pe.W=ir),Wt||(ar-=Mt),ar>pe.o&&(ar=pe.o),pe.F=null,pe.J=null,ue.Fa!=null&&0<ue.Fa.length&&Nt<ar&&(pe.J=kc(ue,pe,Nt,ar-Nt),pe.F=ue.mb,pe.F==null&&pe.F.length==0)){Oe=Hr(ue,3,"Could not decode alpha data.");break e}Nt<pe.j&&(Mt=pe.j-Nt,Nt=pe.j,e(!(1&Mt)),pe.O+=ue.R*Mt,pe.N+=ue.B*(Mt>>1),pe.W+=ue.B*(Mt>>1),pe.F!=null&&(pe.J+=pe.width*Mt)),Nt<ar&&(pe.O+=pe.v,pe.N+=pe.v>>1,pe.W+=pe.v>>1,pe.F!=null&&(pe.J+=pe.v),pe.ka=Nt-pe.j,pe.U=pe.va-pe.v,pe.T=ar-Nt,Oe=pe.put(pe))}Ue+1!=ue.Ic||Wt||(A(ue.sa,ue.ta-Ge,At,wt+16*ue.R,Ge),A(ue.qa,ue.ra-lt,it,De+8*ue.B,lt),A(ue.Ha,ue.Ia-lt,$t,ir+8*ue.B,lt))}if(!Oe)return Hr(ve,6,"Output aborted.")}return 1}(f,g)),g.bc!=null&&g.bc(g),B&=1}return B?(f.cb=0,B):0}function ti(f,g,B,b,I){I=f[g+B+32*b]+(I>>3),f[g+B+32*b]=-256&I?0>I?0:255:I}function Ro(f,g,B,b,I,P){ti(f,g,0,B,b+I),ti(f,g,1,B,b+P),ti(f,g,2,B,b-P),ti(f,g,3,B,b-I)}function rn(f){return(20091*f>>16)+f}function bc(f,g,B,b){var I,P=0,R=i(16);for(I=0;4>I;++I){var M=f[g+0]+f[g+8],G=f[g+0]-f[g+8],J=(35468*f[g+4]>>16)-rn(f[g+12]),fe=rn(f[g+4])+(35468*f[g+12]>>16);R[P+0]=M+fe,R[P+1]=G+J,R[P+2]=G-J,R[P+3]=M-fe,P+=4,g++}for(I=P=0;4>I;++I)M=(f=R[P+0]+4)+R[P+8],G=f-R[P+8],J=(35468*R[P+4]>>16)-rn(R[P+12]),ti(B,b,0,0,M+(fe=rn(R[P+4])+(35468*R[P+12]>>16))),ti(B,b,1,0,G+J),ti(B,b,2,0,G-J),ti(B,b,3,0,M-fe),P++,b+=32}function Mu(f,g,B,b){var I=f[g+0]+4,P=35468*f[g+4]>>16,R=rn(f[g+4]),M=35468*f[g+1]>>16;Ro(B,b,0,I+R,f=rn(f[g+1]),M),Ro(B,b,1,I+P,f,M),Ro(B,b,2,I-P,f,M),Ro(B,b,3,I-R,f,M)}function Zp(f,g,B,b,I){bc(f,g,B,b),I&&bc(f,g+16,B,b+4)}function Hu(f,g,B,b){Zo(f,g+0,B,b,1),Zo(f,g+32,B,b+128,1)}function e2(f,g,B,b){var I;for(f=f[g+0]+4,I=0;4>I;++I)for(g=0;4>g;++g)ti(B,b,g,I,f)}function Vu(f,g,B,b){f[g+0]&&si(f,g+0,B,b),f[g+16]&&si(f,g+16,B,b+4),f[g+32]&&si(f,g+32,B,b+128),f[g+48]&&si(f,g+48,B,b+128+4)}function t2(f,g,B,b){var I,P=i(16);for(I=0;4>I;++I){var R=f[g+0+I]+f[g+12+I],M=f[g+4+I]+f[g+8+I],G=f[g+4+I]-f[g+8+I],J=f[g+0+I]-f[g+12+I];P[0+I]=R+M,P[8+I]=R-M,P[4+I]=J+G,P[12+I]=J-G}for(I=0;4>I;++I)R=(f=P[0+4*I]+3)+P[3+4*I],M=P[1+4*I]+P[2+4*I],G=P[1+4*I]-P[2+4*I],J=f-P[3+4*I],B[b+0]=R+M>>3,B[b+16]=J+G>>3,B[b+32]=R-M>>3,B[b+48]=J-G>>3,b+=64}function Fc(f,g,B){var b,I=g-32,P=mn,R=255-f[I-1];for(b=0;b<B;++b){var M,G=P,J=R+f[g-1];for(M=0;M<B;++M)f[g+M]=G[J+f[I+M]];g+=32}}function r2(f,g){Fc(f,g,4)}function A2(f,g){Fc(f,g,8)}function n2(f,g){Fc(f,g,16)}function $i(f,g){var B;for(B=0;16>B;++B)A(f,g+32*B,f,g-32,16)}function Mo(f,g){var B;for(B=16;0<B;--B)n(f,g,f[g-1],16),g+=32}function Ho(f,g,B){var b;for(b=0;16>b;++b)n(g,B+32*b,f,16)}function Ku(f,g){var B,b=16;for(B=0;16>B;++B)b+=f[g-1+32*B]+f[g+B-32];Ho(b>>5,f,g)}function OA(f,g){var B,b=8;for(B=0;16>B;++B)b+=f[g-1+32*B];Ho(b>>4,f,g)}function i2(f,g){var B,b=8;for(B=0;16>B;++B)b+=f[g+B-32];Ho(b>>4,f,g)}function Gu(f,g){Ho(128,f,g)}function Ft(f,g,B){return f+2*g+B+2>>2}function a2(f,g){var B,b=g-32;for(b=new Uint8Array([Ft(f[b-1],f[b+0],f[b+1]),Ft(f[b+0],f[b+1],f[b+2]),Ft(f[b+1],f[b+2],f[b+3]),Ft(f[b+2],f[b+3],f[b+4])]),B=0;4>B;++B)A(f,g+32*B,b,0,b.length)}function s2(f,g){var B=f[g-1],b=f[g-1+32],I=f[g-1+64],P=f[g-1+96];ye(f,g+0,16843009*Ft(f[g-1-32],B,b)),ye(f,g+32,16843009*Ft(B,b,I)),ye(f,g+64,16843009*Ft(b,I,P)),ye(f,g+96,16843009*Ft(I,P,P))}function _i(f,g){var B,b=4;for(B=0;4>B;++B)b+=f[g+B-32]+f[g-1+32*B];for(b>>=3,B=0;4>B;++B)n(f,g+32*B,b,4)}function ju(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1-32],R=f[g+0-32],M=f[g+1-32],G=f[g+2-32],J=f[g+3-32];f[g+0+96]=Ft(b,I,f[g-1+96]),f[g+1+96]=f[g+0+64]=Ft(B,b,I),f[g+2+96]=f[g+1+64]=f[g+0+32]=Ft(P,B,b),f[g+3+96]=f[g+2+64]=f[g+1+32]=f[g+0+0]=Ft(R,P,B),f[g+3+64]=f[g+2+32]=f[g+1+0]=Ft(M,R,P),f[g+3+32]=f[g+2+0]=Ft(G,M,R),f[g+3+0]=Ft(J,G,M)}function Wu(f,g){var B=f[g+1-32],b=f[g+2-32],I=f[g+3-32],P=f[g+4-32],R=f[g+5-32],M=f[g+6-32],G=f[g+7-32];f[g+0+0]=Ft(f[g+0-32],B,b),f[g+1+0]=f[g+0+32]=Ft(B,b,I),f[g+2+0]=f[g+1+32]=f[g+0+64]=Ft(b,I,P),f[g+3+0]=f[g+2+32]=f[g+1+64]=f[g+0+96]=Ft(I,P,R),f[g+3+32]=f[g+2+64]=f[g+1+96]=Ft(P,R,M),f[g+3+64]=f[g+2+96]=Ft(R,M,G),f[g+3+96]=Ft(M,G,G)}function Vo(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1-32],R=f[g+0-32],M=f[g+1-32],G=f[g+2-32],J=f[g+3-32];f[g+0+0]=f[g+1+64]=P+R+1>>1,f[g+1+0]=f[g+2+64]=R+M+1>>1,f[g+2+0]=f[g+3+64]=M+G+1>>1,f[g+3+0]=G+J+1>>1,f[g+0+96]=Ft(I,b,B),f[g+0+64]=Ft(b,B,P),f[g+0+32]=f[g+1+96]=Ft(B,P,R),f[g+1+32]=f[g+2+96]=Ft(P,R,M),f[g+2+32]=f[g+3+96]=Ft(R,M,G),f[g+3+32]=Ft(M,G,J)}function Sc(f,g){var B=f[g+0-32],b=f[g+1-32],I=f[g+2-32],P=f[g+3-32],R=f[g+4-32],M=f[g+5-32],G=f[g+6-32],J=f[g+7-32];f[g+0+0]=B+b+1>>1,f[g+1+0]=f[g+0+64]=b+I+1>>1,f[g+2+0]=f[g+1+64]=I+P+1>>1,f[g+3+0]=f[g+2+64]=P+R+1>>1,f[g+0+32]=Ft(B,b,I),f[g+1+32]=f[g+0+96]=Ft(b,I,P),f[g+2+32]=f[g+1+96]=Ft(I,P,R),f[g+3+32]=f[g+2+96]=Ft(P,R,M),f[g+3+64]=Ft(R,M,G),f[g+3+96]=Ft(M,G,J)}function o2(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1+96];f[g+0+0]=B+b+1>>1,f[g+2+0]=f[g+0+32]=b+I+1>>1,f[g+2+32]=f[g+0+64]=I+P+1>>1,f[g+1+0]=Ft(B,b,I),f[g+3+0]=f[g+1+32]=Ft(b,I,P),f[g+3+32]=f[g+1+64]=Ft(I,P,P),f[g+3+64]=f[g+2+64]=f[g+0+96]=f[g+1+96]=f[g+2+96]=f[g+3+96]=P}function l2(f,g){var B=f[g-1+0],b=f[g-1+32],I=f[g-1+64],P=f[g-1+96],R=f[g-1-32],M=f[g+0-32],G=f[g+1-32],J=f[g+2-32];f[g+0+0]=f[g+2+32]=B+R+1>>1,f[g+0+32]=f[g+2+64]=b+B+1>>1,f[g+0+64]=f[g+2+96]=I+b+1>>1,f[g+0+96]=P+I+1>>1,f[g+3+0]=Ft(M,G,J),f[g+2+0]=Ft(R,M,G),f[g+1+0]=f[g+3+32]=Ft(B,R,M),f[g+1+32]=f[g+3+64]=Ft(b,B,R),f[g+1+64]=f[g+3+96]=Ft(I,b,B),f[g+1+96]=Ft(P,I,b)}function c2(f,g){var B;for(B=0;8>B;++B)A(f,g+32*B,f,g-32,8)}function _c(f,g){var B;for(B=0;8>B;++B)n(f,g,f[g-1],8),g+=32}function Is(f,g,B){var b;for(b=0;8>b;++b)n(g,B+32*b,f,8)}function Qa(f,g){var B,b=8;for(B=0;8>B;++B)b+=f[g+B-32]+f[g-1+32*B];Is(b>>4,f,g)}function f2(f,g){var B,b=4;for(B=0;8>B;++B)b+=f[g+B-32];Is(b>>3,f,g)}function Ls(f,g){var B,b=4;for(B=0;8>B;++B)b+=f[g-1+32*B];Is(b>>3,f,g)}function Tc(f,g){Is(128,f,g)}function Ko(f,g,B){var b=f[g-B],I=f[g+0],P=3*(I-b)+w2[1020+f[g-2*B]-f[g+B]],R=rh[112+(P+4>>3)];f[g-B]=mn[255+b+rh[112+(P+3>>3)]],f[g+0]=mn[255+I-R]}function zu(f,g,B,b){var I=f[g+0],P=f[g+B];return Nn[255+f[g-2*B]-f[g-B]]>b||Nn[255+P-I]>b}function Xu(f,g,B,b){return 4*Nn[255+f[g-B]-f[g+0]]+Nn[255+f[g-2*B]-f[g+B]]<=b}function qu(f,g,B,b,I){var P=f[g-3*B],R=f[g-2*B],M=f[g-B],G=f[g+0],J=f[g+B],fe=f[g+2*B],be=f[g+3*B];return 4*Nn[255+M-G]+Nn[255+R-J]>b?0:Nn[255+f[g-4*B]-P]<=I&&Nn[255+P-R]<=I&&Nn[255+R-M]<=I&&Nn[255+be-fe]<=I&&Nn[255+fe-J]<=I&&Nn[255+J-G]<=I}function Yu(f,g,B,b){var I=2*b+1;for(b=0;16>b;++b)Xu(f,g+b,B,I)&&Ko(f,g+b,B)}function Ji(f,g,B,b){var I=2*b+1;for(b=0;16>b;++b)Xu(f,g+b*B,1,I)&&Ko(f,g+b*B,1)}function Oa(f,g,B,b){var I;for(I=3;0<I;--I)Yu(f,g+=4*B,B,b)}function u2(f,g,B,b){var I;for(I=3;0<I;--I)Ji(f,g+=4,B,b)}function ka(f,g,B,b,I,P,R,M){for(P=2*P+1;0<I--;){if(qu(f,g,B,P,R))if(zu(f,g,B,M))Ko(f,g,B);else{var G=f,J=g,fe=B,be=G[J-2*fe],Fe=G[J-fe],ve=G[J+0],Pe=G[J+fe],Ue=G[J+2*fe],ue=27*(Oe=w2[1020+3*(ve-Fe)+w2[1020+be-Pe]])+63>>7,pe=18*Oe+63>>7,Oe=9*Oe+63>>7;G[J-3*fe]=mn[255+G[J-3*fe]+Oe],G[J-2*fe]=mn[255+be+pe],G[J-fe]=mn[255+Fe+ue],G[J+0]=mn[255+ve-ue],G[J+fe]=mn[255+Pe-pe],G[J+2*fe]=mn[255+Ue-Oe]}g+=b}}function ri(f,g,B,b,I,P,R,M){for(P=2*P+1;0<I--;){if(qu(f,g,B,P,R))if(zu(f,g,B,M))Ko(f,g,B);else{var G=f,J=g,fe=B,be=G[J-fe],Fe=G[J+0],ve=G[J+fe],Pe=rh[112+((Ue=3*(Fe-be))+4>>3)],Ue=rh[112+(Ue+3>>3)],ue=Pe+1>>1;G[J-2*fe]=mn[255+G[J-2*fe]+ue],G[J-fe]=mn[255+be+Ue],G[J+0]=mn[255+Fe-Pe],G[J+fe]=mn[255+ve-ue]}g+=b}}function Uc(f,g,B,b,I,P){ka(f,g,B,1,16,b,I,P)}function Ns(f,g,B,b,I,P){ka(f,g,1,B,16,b,I,P)}function h2(f,g,B,b,I,P){var R;for(R=3;0<R;--R)ri(f,g+=4*B,B,1,16,b,I,P)}function Go(f,g,B,b,I,P){var R;for(R=3;0<R;--R)ri(f,g+=4,1,B,16,b,I,P)}function d2(f,g,B,b,I,P,R,M){ka(f,g,I,1,8,P,R,M),ka(B,b,I,1,8,P,R,M)}function Ic(f,g,B,b,I,P,R,M){ka(f,g,1,I,8,P,R,M),ka(B,b,1,I,8,P,R,M)}function Lc(f,g,B,b,I,P,R,M){ri(f,g+4*I,I,1,8,P,R,M),ri(B,b+4*I,I,1,8,P,R,M)}function $u(f,g,B,b,I,P,R,M){ri(f,g+4,1,I,8,P,R,M),ri(B,b+4,1,I,8,P,R,M)}function jo(){this.ba=new rA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Gt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Nc(){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 Qc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ju(){this.ua=0,this.Wa=new re,this.vb=new re,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Y,this.yc=new T}function g2(){this.xb=this.a=0,this.l=new Si,this.ca=new rA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new C,this.Pb=0,this.wd=new C,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ju,this.ab=0,this.gc=a(4,Qc),this.Oc=0}function Wo(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Si,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Qs(f,g,B,b,I,P,R){for(f=f==null?0:f[g+0],g=0;g<R;++g)I[P+g]=f+B[b+g]&255,f=I[P+g]}function Oc(f,g,B,b,I,P,R){var M;if(f==null)Qs(null,null,B,b,I,P,R);else for(M=0;M<R;++M)I[P+M]=f[g+M]+B[b+M]&255}function Da(f,g,B,b,I,P,R){if(f==null)Qs(null,null,B,b,I,P,R);else{var M,G=f[g+0],J=G,fe=G;for(M=0;M<R;++M)J=fe+(G=f[g+M])-J,fe=B[b+M]+(-256&J?0>J?0:255:J)&255,J=G,I[P+M]=fe}}function kc(f,g,B,b){var I=g.width,P=g.o;if(e(f!=null&&g!=null),0>B||0>=b||B+b>P)return null;if(!f.Cc){if(f.ga==null){var R;if(f.ga=new Wo,(R=f.ga==null)||(R=g.width*g.o,e(f.Gb.length==0),f.Gb=i(R),f.Uc=0,f.Gb==null?R=0:(f.mb=f.Gb,f.nb=f.Uc,f.rc=null,R=1),R=!R),!R){R=f.ga;var M=f.Fa,G=f.P,J=f.qc,fe=f.mb,be=f.nb,Fe=G+1,ve=J-1,Pe=R.l;if(e(M!=null&&fe!=null&&g!=null),Ga[0]=null,Ga[1]=Qs,Ga[2]=Oc,Ga[3]=Da,R.ca=fe,R.tb=be,R.c=g.width,R.i=g.height,e(0<R.c&&0<R.i),1>=J)g=0;else if(R.$a=M[G+0]>>0&3,R.Z=M[G+0]>>2&3,R.Lc=M[G+0]>>4&3,G=M[G+0]>>6&3,0>R.$a||1<R.$a||4<=R.Z||1<R.Lc||G)g=0;else if(Pe.put=WA,Pe.ac=Ir,Pe.bc=en,Pe.ma=R,Pe.width=g.width,Pe.height=g.height,Pe.Da=g.Da,Pe.v=g.v,Pe.va=g.va,Pe.j=g.j,Pe.o=g.o,R.$a)e:{e(R.$a==1),g=Te();t:for(;;){if(g==null){g=0;break e}if(e(R!=null),R.mc=g,g.c=R.c,g.i=R.i,g.l=R.l,g.l.ma=R,g.l.width=R.c,g.l.height=R.i,g.a=0,ge(g.m,M,Fe,ve),!Ce(R.c,R.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&j(g.s)?(R.ic=1,M=g.c*g.i,g.Ta=null,g.Ua=0,g.V=i(M),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(R.ic=0,g=ae(g,R.c)),!g))break t;g=1;break e}R.mc=null,g=0}else g=ve>=R.c*R.i;R=!g}if(R)return null;f.ga.Lc!=1?f.Ga=0:b=P-B}e(f.ga!=null),e(B+b<=P);e:{if(g=(M=f.ga).c,P=M.l.o,M.$a==0){if(Fe=f.rc,ve=f.Vc,Pe=f.Fa,G=f.P+1+B*g,J=f.mb,fe=f.nb+B*g,e(G<=f.P+f.qc),M.Z!=0)for(e(Ga[M.Z]!=null),R=0;R<b;++R)Ga[M.Z](Fe,ve,Pe,G,J,fe,g),Fe=J,ve=fe,fe+=g,G+=g;else for(R=0;R<b;++R)A(J,fe,Pe,G,g),Fe=J,ve=fe,fe+=g,G+=g;f.rc=Fe,f.Vc=ve}else{if(e(M.mc!=null),g=B+b,e((R=M.mc)!=null),e(g<=R.i),R.C>=g)g=1;else if(M.ic||xe(),M.ic){M=R.V,Fe=R.Ba,ve=R.c;var Ue=R.i,ue=(Pe=1,G=R.$/ve,J=R.$%ve,fe=R.m,be=R.s,R.$),pe=ve*Ue,Oe=ve*g,Ge=be.wc,De=ue<Oe?xr(be,J,G):null;e(ue<=pe),e(g<=Ue),e(j(be));t:for(;;){for(;!fe.h&&ue<Oe;){if(J&Ge||(De=xr(be,J,G)),e(De!=null),W(fe),256>(Ue=gr(De.G[0],De.H[0],fe)))M[Fe+ue]=Ue,++ue,++J>=ve&&(J=0,++G<=g&&!(G%16)&&Z(R,G));else{if(!(280>Ue)){Pe=0;break t}Ue=yA(Ue-256,fe);var lt,At=gr(De.G[4],De.H[4],fe);if(W(fe),!(ue>=(At=QA(ve,At=yA(At,fe)))&&pe-ue>=Ue)){Pe=0;break t}for(lt=0;lt<Ue;++lt)M[Fe+ue+lt]=M[Fe+ue+lt-At];for(ue+=Ue,J+=Ue;J>=ve;)J-=ve,++G<=g&&!(G%16)&&Z(R,G);ue<Oe&&J&Ge&&(De=xr(be,J,G))}e(fe.h==S(fe))}Z(R,G>g?g:G);break t}!Pe||fe.h&&ue<pe?(Pe=0,R.a=fe.h?5:3):R.$=ue,g=Pe}else g=te(R,R.V,R.Ba,R.c,R.i,g,H);if(!g){b=0;break e}}B+b>=P&&(f.Cc=1),b=1}if(!b)return null;if(f.Cc&&((b=f.ga)!=null&&(b.mc=null),f.ga=null,0<f.Ga))return alert("todo:WebPDequantizeLevels"),null}return f.nb+B*I}function m(f,g,B,b,I,P){for(;0<I--;){var R,M=f,G=g+(B?1:0),J=f,fe=g+(B?0:3);for(R=0;R<b;++R){var be=J[fe+4*R];be!=255&&(be*=32897,M[G+4*R+0]=M[G+4*R+0]*be>>23,M[G+4*R+1]=M[G+4*R+1]*be>>23,M[G+4*R+2]=M[G+4*R+2]*be>>23)}g+=P}}function L(f,g,B,b,I){for(;0<b--;){var P;for(P=0;P<B;++P){var R=f[g+2*P+0],M=15&(J=f[g+2*P+1]),G=4369*M,J=(240&J|J>>4)*G>>16;f[g+2*P+0]=(240&R|R>>4)*G>>16&240|(15&R|R<<4)*G>>16>>4&15,f[g+2*P+1]=240&J|M}g+=I}}function ne(f,g,B,b,I,P,R,M){var G,J,fe=255;for(J=0;J<I;++J){for(G=0;G<b;++G){var be=f[g+G];P[R+4*G]=be,fe&=be}g+=B,R+=M}return fe!=255}function se(f,g,B,b,I){var P;for(P=0;P<I;++P)B[b+P]=f[g+P]>>8}function xe(){Va=m,tl=L,th=ne,NE=se}function Ie(f,g,B){Q[f]=function(b,I,P,R,M,G,J,fe,be,Fe,ve,Pe,Ue,ue,pe,Oe,Ge){var De,lt=Ge-1>>1,At=M[G+0]|J[fe+0]<<16,wt=be[Fe+0]|ve[Pe+0]<<16;e(b!=null);var it=3*At+wt+131074>>2;for(g(b[I+0],255&it,it>>16,Ue,ue),P!=null&&(it=3*wt+At+131074>>2,g(P[R+0],255&it,it>>16,pe,Oe)),De=1;De<=lt;++De){var $t=M[G+De]|J[fe+De]<<16,ir=be[Fe+De]|ve[Pe+De]<<16,Wt=At+$t+wt+ir+524296,Mt=Wt+2*($t+wt)>>3;it=Mt+At>>1,At=(Wt=Wt+2*(At+ir)>>3)+$t>>1,g(b[I+2*De-1],255&it,it>>16,Ue,ue+(2*De-1)*B),g(b[I+2*De-0],255&At,At>>16,Ue,ue+(2*De-0)*B),P!=null&&(it=Wt+wt>>1,At=Mt+ir>>1,g(P[R+2*De-1],255&it,it>>16,pe,Oe+(2*De-1)*B),g(P[R+2*De+0],255&At,At>>16,pe,Oe+(2*De+0)*B)),At=$t,wt=ir}1&Ge||(it=3*At+wt+131074>>2,g(b[I+Ge-1],255&it,it>>16,Ue,ue+(Ge-1)*B),P!=null&&(it=3*wt+At+131074>>2,g(P[R+Ge-1],255&it,it>>16,pe,Oe+(Ge-1)*B)))}}function ze(){Qn[Ah]=A$,Qn[nh]=GE,Qn[RE]=n$,Qn[ih]=jE,Qn[ah]=WE,Qn[B2]=zE,Qn[ME]=i$,Qn[x2]=GE,Qn[y2]=jE,Qn[sh]=WE,Qn[C2]=zE}function ot(f){return f&~a$?0>f?0:255:f>>XE}function vt(f,g){return ot((19077*f>>8)+(26149*g>>8)-14234)}function Lt(f,g,B){return ot((19077*f>>8)-(6419*g>>8)-(13320*B>>8)+8708)}function Dt(f,g){return ot((19077*f>>8)+(33050*g>>8)-17685)}function jt(f,g,B,b,I){b[I+0]=vt(f,B),b[I+1]=Lt(f,g,B),b[I+2]=Dt(f,g)}function br(f,g,B,b,I){b[I+0]=Dt(f,g),b[I+1]=Lt(f,g,B),b[I+2]=vt(f,B)}function Lr(f,g,B,b,I){var P=Lt(f,g,B);g=P<<3&224|Dt(f,g)>>3,b[I+0]=248&vt(f,B)|P>>5,b[I+1]=g}function Yr(f,g,B,b,I){var P=240&Dt(f,g)|15;b[I+0]=240&vt(f,B)|Lt(f,g,B)>>4,b[I+1]=P}function kA(f,g,B,b,I){b[I+0]=255,jt(f,g,B,b,I+1)}function cA(f,g,B,b,I){br(f,g,B,b,I),b[I+3]=255}function Ai(f,g,B,b,I){jt(f,g,B,b,I),b[I+3]=255}function vn(f,g){return 0>f?0:f>g?g:f}function Zi(f,g,B){Q[f]=function(b,I,P,R,M,G,J,fe,be){for(var Fe=fe+(-2&be)*B;fe!=Fe;)g(b[I+0],P[R+0],M[G+0],J,fe),g(b[I+1],P[R+0],M[G+0],J,fe+B),I+=2,++R,++G,fe+=2*B;1&be&&g(b[I+0],P[R+0],M[G+0],J,fe)}}function Zu(f,g,B){return B==0?f==0?g==0?6:5:g==0?4:0:B}function Dc(f,g,B,b,I){switch(f>>>30){case 3:Zo(g,B,b,I,0);break;case 2:Gc(g,B,b,I);break;case 1:si(g,B,b,I)}}function Pc(f,g){var B,b,I=g.M,P=g.Nb,R=f.oc,M=f.pc+40,G=f.oc,J=f.pc+584,fe=f.oc,be=f.pc+600;for(B=0;16>B;++B)R[M+32*B-1]=129;for(B=0;8>B;++B)G[J+32*B-1]=129,fe[be+32*B-1]=129;for(0<I?R[M-1-32]=G[J-1-32]=fe[be-1-32]=129:(n(R,M-32-1,127,21),n(G,J-32-1,127,9),n(fe,be-32-1,127,9)),b=0;b<f.za;++b){var Fe=g.ya[g.aa+b];if(0<b){for(B=-1;16>B;++B)A(R,M+32*B-4,R,M+32*B+12,4);for(B=-1;8>B;++B)A(G,J+32*B-4,G,J+32*B+4,4),A(fe,be+32*B-4,fe,be+32*B+4,4)}var ve=f.Gd,Pe=f.Hd+b,Ue=Fe.ad,ue=Fe.Hc;if(0<I&&(A(R,M-32,ve[Pe].y,0,16),A(G,J-32,ve[Pe].f,0,8),A(fe,be-32,ve[Pe].ea,0,8)),Fe.Za){var pe=R,Oe=M-32+16;for(0<I&&(b>=f.za-1?n(pe,Oe,ve[Pe].y[15],4):A(pe,Oe,ve[Pe+1].y,0,4)),B=0;4>B;B++)pe[Oe+128+B]=pe[Oe+256+B]=pe[Oe+384+B]=pe[Oe+0+B];for(B=0;16>B;++B,ue<<=2)pe=R,Oe=M+YE[B],oi[Fe.Ob[B]](pe,Oe),Dc(ue,Ue,16*+B,pe,Oe)}else if(pe=Zu(b,I,Fe.Ob[0]),Ka[pe](R,M),ue!=0)for(B=0;16>B;++B,ue<<=2)Dc(ue,Ue,16*+B,R,M+YE[B]);for(B=Fe.Gc,pe=Zu(b,I,Fe.Dd),na[pe](G,J),na[pe](fe,be),ue=Ue,pe=G,Oe=J,255&(Fe=B>>0)&&(170&Fe?Ma(ue,256,pe,Oe):ta(ue,256,pe,Oe)),Fe=fe,ue=be,255&(B>>=8)&&(170&B?Ma(Ue,320,Fe,ue):ta(Ue,320,Fe,ue)),I<f.Ub-1&&(A(ve[Pe].y,0,R,M+480,16),A(ve[Pe].f,0,G,J+224,8),A(ve[Pe].ea,0,fe,be+224,8)),B=8*P*f.B,ve=f.sa,Pe=f.ta+16*b+16*P*f.R,Ue=f.qa,Fe=f.ra+8*b+B,ue=f.Ha,pe=f.Ia+8*b+B,B=0;16>B;++B)A(ve,Pe+B*f.R,R,M+32*B,16);for(B=0;8>B;++B)A(Ue,Fe+B*f.B,G,J+32*B,8),A(ue,pe+B*f.B,fe,be+32*B,8)}}function zo(f,g,B,b,I,P,R,M,G){var J=[0],fe=[0],be=0,Fe=G!=null?G.kd:0,ve=G??new Nc;if(f==null||12>B)return 7;ve.data=f,ve.w=g,ve.ha=B,g=[g],B=[B],ve.gb=[ve.gb];e:{var Pe=g,Ue=B,ue=ve.gb;if(e(f!=null),e(Ue!=null),e(ue!=null),ue[0]=0,12<=Ue[0]&&!r(f,Pe[0],"RIFF")){if(r(f,Pe[0]+8,"WEBP")){ue=3;break e}var pe=Xe(f,Pe[0]+4);if(12>pe||4294967286<pe){ue=3;break e}if(Fe&&pe>Ue[0]-8){ue=7;break e}ue[0]=pe,Pe[0]+=12,Ue[0]-=12}ue=0}if(ue!=0)return ue;for(pe=0<ve.gb[0],B=B[0];;){e:{var Oe=f;Ue=g,ue=B;var Ge=J,De=fe,lt=Pe=[0];if((it=be=[be])[0]=0,8>ue[0])ue=7;else{if(!r(Oe,Ue[0],"VP8X")){if(Xe(Oe,Ue[0]+4)!=10){ue=3;break e}if(18>ue[0]){ue=7;break e}var At=Xe(Oe,Ue[0]+8),wt=1+Re(Oe,Ue[0]+12);if(2147483648<=wt*(Oe=1+Re(Oe,Ue[0]+15))){ue=3;break e}lt!=null&&(lt[0]=At),Ge!=null&&(Ge[0]=wt),De!=null&&(De[0]=Oe),Ue[0]+=18,ue[0]-=18,it[0]=1}ue=0}}if(be=be[0],Pe=Pe[0],ue!=0)return ue;if(Ue=!!(2&Pe),!pe&&be)return 3;if(P!=null&&(P[0]=!!(16&Pe)),R!=null&&(R[0]=Ue),M!=null&&(M[0]=0),R=J[0],Pe=fe[0],be&&Ue&&G==null){ue=0;break}if(4>B){ue=7;break}if(pe&&be||!pe&&!be&&!r(f,g[0],"ALPH")){B=[B],ve.na=[ve.na],ve.P=[ve.P],ve.Sa=[ve.Sa];e:{At=f,ue=g,pe=B;var it=ve.gb;Ge=ve.na,De=ve.P,lt=ve.Sa,wt=22,e(At!=null),e(pe!=null),Oe=ue[0];var $t=pe[0];for(e(Ge!=null),e(lt!=null),Ge[0]=null,De[0]=null,lt[0]=0;;){if(ue[0]=Oe,pe[0]=$t,8>$t){ue=7;break e}var ir=Xe(At,Oe+4);if(4294967286<ir){ue=3;break e}var Wt=8+ir+1&-2;if(wt+=Wt,0<it&&wt>it){ue=3;break e}if(!r(At,Oe,"VP8 ")||!r(At,Oe,"VP8L")){ue=0;break e}if($t[0]<Wt){ue=7;break e}r(At,Oe,"ALPH")||(Ge[0]=At,De[0]=Oe+8,lt[0]=ir),Oe+=Wt,$t-=Wt}}if(B=B[0],ve.na=ve.na[0],ve.P=ve.P[0],ve.Sa=ve.Sa[0],ue!=0)break}B=[B],ve.Ja=[ve.Ja],ve.xa=[ve.xa];e:if(it=f,ue=g,pe=B,Ge=ve.gb[0],De=ve.Ja,lt=ve.xa,At=ue[0],Oe=!r(it,At,"VP8 "),wt=!r(it,At,"VP8L"),e(it!=null),e(pe!=null),e(De!=null),e(lt!=null),8>pe[0])ue=7;else{if(Oe||wt){if(it=Xe(it,At+4),12<=Ge&&it>Ge-12){ue=3;break e}if(Fe&&it>pe[0]-8){ue=7;break e}De[0]=it,ue[0]+=8,pe[0]-=8,lt[0]=wt}else lt[0]=5<=pe[0]&&it[At+0]==47&&!(it[At+4]>>5),De[0]=pe[0];ue=0}if(B=B[0],ve.Ja=ve.Ja[0],ve.xa=ve.xa[0],g=g[0],ue!=0)break;if(4294967286<ve.Ja)return 3;if(M==null||Ue||(M[0]=ve.xa?2:1),R=[R],Pe=[Pe],ve.xa){if(5>B){ue=7;break}M=R,Fe=Pe,Ue=P,f==null||5>B?f=0:5<=B&&f[g+0]==47&&!(f[g+4]>>5)?(pe=[0],it=[0],Ge=[0],ge(De=new C,f,g,B),gt(De,pe,it,Ge)?(M!=null&&(M[0]=pe[0]),Fe!=null&&(Fe[0]=it[0]),Ue!=null&&(Ue[0]=Ge[0]),f=1):f=0):f=0}else{if(10>B){ue=7;break}M=Pe,f==null||10>B||!Du(f,g+3,B-3)?f=0:(Fe=f[g+0]|f[g+1]<<8|f[g+2]<<16,Ue=16383&(f[g+7]<<8|f[g+6]),f=16383&(f[g+9]<<8|f[g+8]),1&Fe||3<(Fe>>1&7)||!(Fe>>4&1)||Fe>>5>=ve.Ja||!Ue||!f?f=0:(R&&(R[0]=Ue),M&&(M[0]=f),f=1))}if(!f||(R=R[0],Pe=Pe[0],be&&(J[0]!=R||fe[0]!=Pe)))return 3;G!=null&&(G[0]=ve,G.offset=g-G.w,e(4294967286>g-G.w),e(G.offset==G.ha-B));break}return ue==0||ue==7&&be&&G==null?(P!=null&&(P[0]|=ve.na!=null&&0<ve.na.length),b!=null&&(b[0]=R),I!=null&&(I[0]=Pe),0):ue}function Rc(f,g,B){var b=g.width,I=g.height,P=0,R=0,M=b,G=I;if(g.Da=f!=null&&0<f.Da,g.Da&&(M=f.cd,G=f.bd,P=f.v,R=f.j,11>B||(P&=-2,R&=-2),0>P||0>R||0>=M||0>=G||P+M>b||R+G>I))return 0;if(g.v=P,g.j=R,g.va=P+M,g.o=R+G,g.U=M,g.T=G,g.da=f!=null&&0<f.da,g.da){if(!Qe(M,G,B=[f.ib],P=[f.hb]))return 0;g.ib=B[0],g.hb=P[0]}return g.ob=f!=null&&f.ob,g.Kb=f==null||!f.Sd,g.da&&(g.ob=g.ib<3*b/4&&g.hb<3*I/4,g.Kb=0),1}function Mc(f){if(f==null)return 2;if(11>f.S){var g=f.f.RGBA;g.fb+=(f.height-1)*g.A,g.A=-g.A}else g=f.f.kb,f=f.height,g.O+=(f-1)*g.fa,g.fa=-g.fa,g.N+=(f-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(f-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(f-1)*g.lb,g.lb=-g.lb);return 0}function Xo(f,g,B,b){if(b==null||0>=f||0>=g)return 2;if(B!=null){if(B.Da){var I=B.cd,P=B.bd,R=-2&B.v,M=-2&B.j;if(0>R||0>M||0>=I||0>=P||R+I>f||M+P>g)return 2;f=I,g=P}if(B.da){if(!Qe(f,g,I=[B.ib],P=[B.hb]))return 2;f=I[0],g=P[0]}}b.width=f,b.height=g;e:{var G=b.width,J=b.height;if(f=b.S,0>=G||0>=J||!(f>=Ah&&13>f))f=2;else{if(0>=b.Rd&&b.sd==null){R=P=I=g=0;var fe=(M=G*$E[f])*J;if(11>f||(P=(J+1)/2*(g=(G+1)/2),f==12&&(R=(I=G)*J)),(J=i(fe+2*P+R))==null){f=1;break e}b.sd=J,11>f?((G=b.f.RGBA).eb=J,G.fb=0,G.A=M,G.size=fe):((G=b.f.kb).y=J,G.O=0,G.fa=M,G.Fd=fe,G.f=J,G.N=0+fe,G.Ab=g,G.Cd=P,G.ea=J,G.W=0+fe+P,G.Db=g,G.Ed=P,f==12&&(G.F=J,G.J=0+fe+2*P),G.Tc=R,G.lb=I)}if(g=1,I=b.S,P=b.width,R=b.height,I>=Ah&&13>I)if(11>I)f=b.f.RGBA,g&=(M=Math.abs(f.A))*(R-1)+P<=f.size,g&=M>=P*$E[I],g&=f.eb!=null;else{f=b.f.kb,M=(P+1)/2,fe=(R+1)/2,G=Math.abs(f.fa),J=Math.abs(f.Ab);var be=Math.abs(f.Db),Fe=Math.abs(f.lb),ve=Fe*(R-1)+P;g&=G*(R-1)+P<=f.Fd,g&=J*(fe-1)+M<=f.Cd,g=(g&=be*(fe-1)+M<=f.Ed)&G>=P&J>=M&be>=M,g&=f.y!=null,g&=f.f!=null,g&=f.ea!=null,I==12&&(g&=Fe>=P,g&=ve<=f.Tc,g&=f.F!=null)}else g=0;f=g?0:2}}return f!=0||B!=null&&B.fd&&(f=Mc(b)),f}var An=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],Yo=24,$o=32,Hc=8,nn=[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];We("Predictor0","PredictorAdd0"),Q.Predictor0=function(){return 4278190080},Q.Predictor1=function(f){return f},Q.Predictor2=function(f,g,B){return g[B+0]},Q.Predictor3=function(f,g,B){return g[B+1]},Q.Predictor4=function(f,g,B){return g[B-1]},Q.Predictor5=function(f,g,B){return Je(Je(f,g[B+1]),g[B+0])},Q.Predictor6=function(f,g,B){return Je(f,g[B-1])},Q.Predictor7=function(f,g,B){return Je(f,g[B+0])},Q.Predictor8=function(f,g,B){return Je(g[B-1],g[B+0])},Q.Predictor9=function(f,g,B){return Je(g[B+0],g[B+1])},Q.Predictor10=function(f,g,B){return Je(Je(f,g[B-1]),Je(g[B+0],g[B+1]))},Q.Predictor11=function(f,g,B){var b=g[B+0];return 0>=ht(b>>24&255,f>>24&255,(g=g[B-1])>>24&255)+ht(b>>16&255,f>>16&255,g>>16&255)+ht(b>>8&255,f>>8&255,g>>8&255)+ht(255&b,255&f,255&g)?b:f},Q.Predictor12=function(f,g,B){var b=g[B+0];return(st((f>>24&255)+(b>>24&255)-((g=g[B-1])>>24&255))<<24|st((f>>16&255)+(b>>16&255)-(g>>16&255))<<16|st((f>>8&255)+(b>>8&255)-(g>>8&255))<<8|st((255&f)+(255&b)-(255&g)))>>>0},Q.Predictor13=function(f,g,B){var b=g[B-1];return(nt((f=Je(f,g[B+0]))>>24&255,b>>24&255)<<24|nt(f>>16&255,b>>16&255)<<16|nt(f>>8&255,b>>8&255)<<8|nt(f>>0&255,b>>0&255))>>>0};var p2=Q.PredictorAdd0;Q.PredictorAdd1=mt,We("Predictor2","PredictorAdd2"),We("Predictor3","PredictorAdd3"),We("Predictor4","PredictorAdd4"),We("Predictor5","PredictorAdd5"),We("Predictor6","PredictorAdd6"),We("Predictor7","PredictorAdd7"),We("Predictor8","PredictorAdd8"),We("Predictor9","PredictorAdd9"),We("Predictor10","PredictorAdd10"),We("Predictor11","PredictorAdd11"),We("Predictor12","PredictorAdd12"),We("Predictor13","PredictorAdd13");var Vc=Q.PredictorAdd2;yt("ColorIndexInverseTransform","MapARGB","32b",function(f){return f>>8&255},function(f){return f}),yt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(f){return f},function(f){return f>>8&255});var eh,ni=Q.ColorIndexInverseTransform,Kc=Q.MapARGB,v2=Q.VP8LColorIndexInverseTransformAlpha,m2=Q.MapAlpha,Pa=Q.VP8LPredictorsAdd=[];Pa.length=16,(Q.VP8LPredictors=[]).length=16,(Q.VP8LPredictorsAdd_C=[]).length=16,(Q.VP8LPredictors_C=[]).length=16;var In,ii,Ra,Ti,ea,Jo,ai,Zo,Gc,Ma,si,ta,Os,el,ks,Ha,jc,Ln,ra,pr,vr,Vr,AA,Aa,Va,tl,th,NE,QE=i(511),OE=i(2041),kE=i(225),DE=i(767),PE=0,w2=OE,rh=kE,mn=DE,Nn=QE,Ah=0,nh=1,RE=2,ih=3,ah=4,B2=5,ME=6,x2=7,y2=8,sh=9,C2=10,KY=[2,3,7],GY=[3,3,11],HE=[280,256,256,256,40],jY=[0,1,1,1,0],WY=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],zY=[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],XY=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],qY=8,E2=[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],b2=[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],Wc=null,YY=[[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]],$Y=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],VE=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],JY=[[[[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]]]],ZY=[[[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]]],e$=[[[[255,255,255,255,255,255,255,255,255,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]]]],t$=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ka=[],oi=[],na=[],r$=1,KE=2,Ga=[],Qn=[];Ie("UpsampleRgbLinePair",jt,3),Ie("UpsampleBgrLinePair",br,3),Ie("UpsampleRgbaLinePair",Ai,4),Ie("UpsampleBgraLinePair",cA,4),Ie("UpsampleArgbLinePair",kA,4),Ie("UpsampleRgba4444LinePair",Yr,2),Ie("UpsampleRgb565LinePair",Lr,2);var A$=Q.UpsampleRgbLinePair,n$=Q.UpsampleBgrLinePair,GE=Q.UpsampleRgbaLinePair,jE=Q.UpsampleBgraLinePair,WE=Q.UpsampleArgbLinePair,zE=Q.UpsampleRgba4444LinePair,i$=Q.UpsampleRgb565LinePair,oh=16,lh=1<<oh-1,zc=-227,F2=482,XE=6,a$=(256<<XE)-1,qE=0,s$=i(256),o$=i(256),l$=i(256),c$=i(256),f$=i(F2-zc),u$=i(F2-zc);Zi("YuvToRgbRow",jt,3),Zi("YuvToBgrRow",br,3),Zi("YuvToRgbaRow",Ai,4),Zi("YuvToBgraRow",cA,4),Zi("YuvToArgbRow",kA,4),Zi("YuvToRgba4444Row",Yr,2),Zi("YuvToRgb565Row",Lr,2);var YE=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ch=[0,2,8],h$=[8,7,6,4,4,2,2,2,1,1,1,1],d$=1;this.WebPDecodeRGBA=function(f,g,B,b,I){var P=nh,R=new jo,M=new rA;R.ba=M,M.S=P,M.width=[M.width],M.height=[M.height];var G=M.width,J=M.height,fe=new bt;if(fe==null||f==null)var be=2;else e(fe!=null),be=zo(f,g,B,fe.width,fe.height,fe.Pd,fe.Qd,fe.format,null);if(be!=0?G=0:(G!=null&&(G[0]=fe.width[0]),J!=null&&(J[0]=fe.height[0]),G=1),G){M.width=M.width[0],M.height=M.height[0],b!=null&&(b[0]=M.width),I!=null&&(I[0]=M.height);e:{if(b=new Si,(I=new Nc).data=f,I.w=g,I.ha=B,I.kd=1,g=[0],e(I!=null),((f=zo(I.data,I.w,I.ha,null,null,null,g,null,I))==0||f==7)&&g[0]&&(f=4),(g=f)==0){if(e(R!=null),b.data=I.data,b.w=I.w+I.offset,b.ha=I.ha-I.offset,b.put=WA,b.ac=Ir,b.bc=en,b.ma=R,I.xa){if((f=Te())==null){R=1;break e}if(function(Fe,ve){var Pe=[0],Ue=[0],ue=[0];t:for(;;){if(Fe==null)return 0;if(ve==null)return Fe.a=2,0;if(Fe.l=ve,Fe.a=0,ge(Fe.m,ve.data,ve.w,ve.ha),!gt(Fe.m,Pe,Ue,ue)){Fe.a=3;break t}if(Fe.xb=KE,ve.width=Pe[0],ve.height=Ue[0],!Ce(Pe[0],Ue[0],1,Fe,null))break t;return 1}return e(Fe.a!=0),0}(f,b)){if(b=(g=Xo(b.width,b.height,R.Oa,R.ba))==0){t:{b=f;r:for(;;){if(b==null){b=0;break t}if(e(b.s.yc!=null),e(b.s.Ya!=null),e(0<b.s.Wb),e((B=b.l)!=null),e((I=B.ma)!=null),b.xb!=0){if(b.ca=I.ba,b.tb=I.tb,e(b.ca!=null),!Rc(I.Oa,B,ih)){b.a=2;break r}if(!ae(b,B.width)||B.da)break r;if((B.da||Pt(b.ca.S))&&xe(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&xe()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!qe(b.s.vb,b.s.Wa.Xa)){b.a=1;break r}b.xb=0}if(!te(b,b.V,b.Ba,b.c,b.i,B.o,ee))break r;I.Dc=b.Ma,b=1;break t}e(b.a!=0),b=0}b=!b}b&&(g=f.a)}else g=f.a}else{if((f=new pn)==null){R=1;break e}if(f.Fa=I.na,f.P=I.P,f.qc=I.Sa,Pu(f,b)){if((g=Xo(b.width,b.height,R.Oa,R.ba))==0){if(f.Aa=0,B=R.Oa,e((I=f)!=null),B!=null){if(0<(G=0>(G=B.Md)?0:100<G?255:255*G/100)){for(J=fe=0;4>J;++J)12>(be=I.pb[J]).lc&&(be.ia=G*h$[0>be.lc?0:be.lc]>>3),fe|=be.ia;fe&&(alert("todo:VP8InitRandom"),I.ia=1)}I.Ga=B.Id,100<I.Ga?I.Ga=100:0>I.Ga&&(I.Ga=0)}Jp(f,b)||(g=f.a)}}else g=f.a}g==0&&R.Oa!=null&&R.Oa.fd&&(g=Mc(R.ba))}R=g}P=R!=0?null:11>P?M.f.RGBA.eb:M.f.kb.y}else P=null;return P};var $E=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(Q,K){for(var Ae="",U=0;U<4;U++)Ae+=String.fromCharCode(Q[K++]);return Ae}function c(Q,K){return(Q[K+0]<<0|Q[K+1]<<8|Q[K+2]<<16)>>>0}function h(Q,K){return(Q[K+0]<<0|Q[K+1]<<8|Q[K+2]<<16|Q[K+3]<<24)>>>0}new o;var d=[0],u=[0],w=[],v=new o,x=t,y=function(Q,K){var Ae={},U=0,T=!1,V=0,Y=0;if(Ae.frames=[],!function(_,S,O,W){for(var ie=0;ie<W;ie++)if(_[S+ie]!=O.charCodeAt(ie))return!0;return!1}(Q,K,"RIFF",4)){var ce,he;for(h(Q,K+=4),K+=8;K<Q.length;){var me=l(Q,K),ge=h(Q,K+=4);K+=4;var we=ge+(1&ge);switch(me){case"VP8 ":case"VP8L":Ae.frames[U]===void 0&&(Ae.frames[U]={}),(C=Ae.frames[U]).src_off=T?Y:K-8,C.src_size=V+ge+8,U++,T&&(T=!1,V=0,Y=0);break;case"VP8X":(C=Ae.header={}).feature_flags=Q[K];var Be=K+4;C.canvas_width=1+c(Q,Be),Be+=3,C.canvas_height=1+c(Q,Be),Be+=3;break;case"ALPH":T=!0,V=we+8,Y=K-8;break;case"ANIM":(C=Ae.header).bgcolor=h(Q,K),Be=K+4,C.loop_count=(ce=Q)[(he=Be)+0]<<0|ce[he+1]<<8,Be+=2;break;case"ANMF":var ke,C;(C=Ae.frames[U]={}).offset_x=2*c(Q,K),K+=3,C.offset_y=2*c(Q,K),K+=3,C.width=1+c(Q,K),K+=3,C.height=1+c(Q,K),K+=3,C.duration=c(Q,K),K+=3,ke=Q[K++],C.dispose=1&ke,C.blend=ke>>1&1}me!="ANMF"&&(K+=we)}return Ae}}(x,0);y.response=x,y.rgbaoutput=!0,y.dataurl=!1;var E=y.header?y.header:null,F=y.frames?y.frames:null;if(E){E.loop_counter=E.loop_count,d=[E.canvas_height],u=[E.canvas_width];for(var k=0;k<F.length&&F[k].blend!=0;k++);}var X=F[0],q=v.WebPDecodeRGBA(x,X.src_off,X.src_size,u,d);X.rgba=q,X.imgwidth=u[0],X.imgheight=d[0];for(var N=0;N<u[0]*d[0]*4;N++)w[N]=q[N];return this.width=u,this.height=d,this.data=w,this}(function(t){var e=function(){return typeof F1=="function"},r=function(d,u,w,v){var x=4,y=a;switch(v){case t.image_compression.FAST:x=1,y=i;break;case t.image_compression.MEDIUM:x=6,y=s;break;case t.image_compression.SLOW:x=9,y=o}d=A(d,u,w,y);var E=F1(d,{level:x});return t.__addimage__.arrayBufferToBinaryString(E)},A=function(d,u,w,v){for(var x,y,E,F=d.length/u,k=new Uint8Array(d.length+F),X=c(),q=0;q<F;q+=1){if(E=q*u,x=d.subarray(E,E+u),v)k.set(v(x,w,y),E+q);else{for(var N,Q=X.length,K=[];N<Q;N+=1)K[N]=X[N](x,w,y);var Ae=h(K.concat());k.set(K[Ae],E+q)}y=x}return k},n=function(d){var u=Array.apply([],d);return u.unshift(0),u},i=function(d,u){var w,v=[],x=d.length;v[0]=1;for(var y=0;y<x;y+=1)w=d[y-u]||0,v[y+1]=d[y]-w+256&255;return v},a=function(d,u,w){var v,x=[],y=d.length;x[0]=2;for(var E=0;E<y;E+=1)v=w&&w[E]||0,x[E+1]=d[E]-v+256&255;return x},s=function(d,u,w){var v,x,y=[],E=d.length;y[0]=3;for(var F=0;F<E;F+=1)v=d[F-u]||0,x=w&&w[F]||0,y[F+1]=d[F]+256-(v+x>>>1)&255;return y},o=function(d,u,w){var v,x,y,E,F=[],k=d.length;F[0]=4;for(var X=0;X<k;X+=1)v=d[X-u]||0,x=w&&w[X]||0,y=w&&w[X-u]||0,E=l(v,x,y),F[X+1]=d[X]-E+256&255;return F},l=function(d,u,w){if(d===u&&u===w)return d;var v=Math.abs(u-w),x=Math.abs(d-w),y=Math.abs(d+u-w-w);return v<=x&&v<=y?d:x<=y?u:w},c=function(){return[n,i,a,s,o]},h=function(d){var u=d.map(function(w){return w.reduce(function(v,x){return v+Math.abs(x)},0)});return u.indexOf(Math.min.apply(null,u))};t.processPNG=function(d,u,w,v){var x,y,E,F,k,X,q,N,Q,K,Ae,U,T,V,Y,ce=this.decode.FLATE_DECODE,he="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(E=new mU(d)).imgData,y=E.bits,x=E.colorSpace,k=E.colors,[4,6].indexOf(E.colorType)!==-1){if(E.bits===8){Q=(N=E.pixelBitlength==32?new Uint32Array(E.decodePixels().buffer):E.pixelBitlength==16?new Uint16Array(E.decodePixels().buffer):new Uint8Array(E.decodePixels().buffer)).length,Ae=new Uint8Array(Q*E.colors),K=new Uint8Array(Q);var me,ge=E.pixelBitlength-E.bits;for(V=0,Y=0;V<Q;V++){for(T=N[V],me=0;me<ge;)Ae[Y++]=T>>>me&255,me+=E.bits;K[V]=T>>>me&255}}if(E.bits===16){Q=(N=new Uint32Array(E.decodePixels().buffer)).length,Ae=new Uint8Array(Q*(32/E.pixelBitlength)*E.colors),K=new Uint8Array(Q*(32/E.pixelBitlength)),U=E.colors>1,V=0,Y=0;for(var we=0;V<Q;)T=N[V++],Ae[Y++]=T>>>0&255,U&&(Ae[Y++]=T>>>16&255,T=N[V++],Ae[Y++]=T>>>0&255),K[we++]=T>>>16&255;y=8}v!==t.image_compression.NONE&&e()?(d=r(Ae,E.width*E.colors,E.colors,v),q=r(K,E.width,1,v)):(d=Ae,q=K,ce=void 0)}if(E.colorType===3&&(x=this.color_spaces.INDEXED,X=E.palette,E.transparency.indexed)){var Be=E.transparency.indexed,ke=0;for(V=0,Q=Be.length;V<Q;++V)ke+=Be[V];if((ke/=255)===Q-1&&Be.indexOf(0)!==-1)F=[Be.indexOf(0)];else if(ke!==Q){for(N=E.decodePixels(),K=new Uint8Array(N.length),V=0,Q=N.length;V<Q;V++)K[V]=Be[N[V]];q=r(K,E.width,1)}}var C=function(_){var S;switch(_){case t.image_compression.FAST:S=11;break;case t.image_compression.MEDIUM:S=13;break;case t.image_compression.SLOW:S=14;break;default:S=12}return S}(v);return ce===this.decode.FLATE_DECODE&&(he="/Predictor "+C+" "),he+="/Colors "+k+" /BitsPerComponent "+y+" /Columns "+E.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(q&&this.__addimage__.isArrayBuffer(q)||this.__addimage__.isArrayBufferView(q))&&(q=this.__addimage__.arrayBufferToBinaryString(q)),{alias:w,data:d,index:u,filter:ce,decodeParameters:he,transparency:F,palette:X,sMask:q,predictor:C,width:E.width,height:E.height,bitsPerComponent:y,colorSpace:x}}}})(xt.API),function(t){t.processGIF89A=function(e,r,A,n){var i=new wU(e),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var l={data:o,width:a,height:s},c=new R1(100).encode(l,100);return t.processJPEG.call(this,c,r,A,n)},t.processGIF87A=t.processGIF89A}(xt.API),Mn.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:A,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mn.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(r){cr.log("bit decode error:"+r)}},Mn.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=A*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}r!==0&&(this.pos+=4-r)}},Mn.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var A=this.bottom_up?r:this.height-1-r,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+2*n*4,s=i>>4,o=15&i,l=this.palette[s];if(this.data[a]=l.blue,this.data[a+1]=l.green,this.data[a+2]=l.red,this.data[a+3]=255,2*n+1>=this.width)break;l=this.palette[o],this.data[a+4]=l.blue,this.data[a+4+1]=l.green,this.data[a+4+2]=l.red,this.data[a+4+3]=255}e!==0&&(this.pos+=4-e)}},Mn.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var n=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*A;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}t!==0&&(this.pos+=4-t)}},Mn.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var A=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,o=(i>>10&e)/e*255|0,l=i>>15?255:0,c=A*this.width*4+4*n;this.data[c]=o,this.data[c+1]=s,this.data[c+2]=a,this.data[c+3]=l}this.pos+=t}},Mn.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),A=this.height-1;A>=0;A--){for(var n=this.bottom_up?A:this.height-1-A,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,o=(a>>5&r)/r*255|0,l=(a>>11)/e*255|0,c=n*this.width*4+4*i;this.data[c]=l,this.data[c+1]=o,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},Mn.prototype.bit24=function(){for(var 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 A=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=A,this.data[a+3]=255}this.pos+=this.width%4}},Mn.prototype.bit32=function(){for(var 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 A=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=e*this.width*4+4*r;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=A,this.data[s+3]=a}},Mn.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,r,A,n){var i=new Mn(e,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},l=new R1(100).encode(o,100);return t.processJPEG.call(this,l,r,A,n)}}(xt.API),mw.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,r,A,n){var i=new mw(e),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},l=new R1(100).encode(o,100);return t.processJPEG.call(this,l,r,A,n)}}(xt.API),xt.API.processRGBA=function(t,e,r){for(var A=t.data,n=A.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),s=0,o=0,l=0;l<n;l+=4){var c=A[l],h=A[l+1],d=A[l+2],u=A[l+3];i[s++]=c,i[s++]=h,i[s++]=d,a[o++]=u}var w=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:w,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},xt.API.setLanguage=function(t){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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},no=xt.API,i0=no.getCharWidthsArray=function(t,e){var r,A,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:n.metadata.Unicode.widths,o=s.fof?s.fof:1,l=e.kerning?e.kerning:n.metadata.Unicode.kerning,c=l.fof?l.fof:1,h=e.doKerning!==!1,d=0,u=t.length,w=0,v=s[0]||o,x=[];for(r=0;r<u;r++)A=t.charCodeAt(r),typeof n.metadata.widthOfString=="function"?x.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(A))+a*(1e3/i)||0)/1e3):(d=h&&zt(l[A])==="object"&&!isNaN(parseInt(l[A][w],10))?l[A][w]/c:0,x.push((s[A]||v)/o+d)),w=A;return x},dw=no.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),A=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return no.processArabic&&(t=no.processArabic(t)),typeof A.metadata.widthOfString=="function"?A.metadata.widthOfString(t,r,n)/r:i0.apply(this,arguments).reduce(function(i,a){return i+a},0)},gw=function(t,e,r,A){for(var n=[],i=0,a=t.length,s=0;i!==a&&s+e[i]<r;)s+=e[i],i++;n.push(t.slice(0,i));var o=i;for(s=0;i!==a;)s+e[i]>A&&(n.push(t.slice(o,i)),s=0,o=i),s+=e[i],i++;return o!==i&&n.push(t.slice(o,i)),n},pw=function(t,e,r){r||(r={});var A,n,i,a,s,o,l,c=[],h=[c],d=r.textIndent||0,u=0,w=0,v=t.split(" "),x=i0.apply(this,[" ",r])[0];if(o=r.lineIndent===-1?v[0].length+2:r.lineIndent||0){var y=Array(o).join(" "),E=[];v.map(function(k){(k=k.split(/\s*\n/)).length>1?E=E.concat(k.map(function(X,q){return(q&&X.length?`
|
|
234
234
|
`:"")+X})):E.push(k[0])}),v=E,o=dw.apply(this,[y,r])}for(i=0,a=v.length;i<a;i++){var F=0;if(A=v[i],o&&A[0]==`
|
|
235
|
-
`&&(A=A.substr(1),F=1),d+u+(w=(n=i0.apply(this,[A,r])).reduce(function(k,X){return k+X},0))>e||F){if(w>e){for(s=gw.apply(this,[A,n,e-(d+u),e]),c.push(s.shift()),c=[s.pop()];s.length;)h.push([s.shift()]);w=n.slice(A.length-(c[0]?c[0].length:0)).reduce(function(k,X){return k+X},0)}else c=[A];h.push(c),d=w+o,u=x}else c.push(A),d+=u+w,u=x}return l=o?function(k,X){return(X?y:"")+k.join(" ")}:function(k){return k.join(" ")},h.map(l)},no.splitTextToSize=function(t,e,r){var A,n=(r=r||{}).fontSize||this.internal.getFontSize(),i=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var h=this.internal.getFont(c.fontName,c.fontStyle);return h.metadata.Unicode?{widths:h.metadata.Unicode.widths||{0:1},kerning:h.metadata.Unicode.kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);A=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/n;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=r.lineIndent;var s,o,l=[];for(s=0,o=A.length;s<o;s++)l=l.concat(pw.apply(this,[A[s],a,i]));return l},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},A={},n=0;n<e.length;n++)r[e[n]]="0123456789abcdef"[n],A["0123456789abcdef"[n]]=e[n];var i=function(h){return"0x"+parseInt(h,10).toString(16)},a=t.__fontmetrics__.compress=function(h){var d,u,w,v,x=["{"];for(var y in h){if(d=h[y],isNaN(parseInt(y,10))?u="'"+y+"'":(y=parseInt(y,10),u=(u=i(y).slice(2)).slice(0,-1)+A[u.slice(-1)]),typeof d=="number")d<0?(w=i(d).slice(3),v="-"):(w=i(d).slice(2),v=""),w=v+w.slice(0,-1)+A[w.slice(-1)];else{if(zt(d)!=="object")throw new Error("Don't know what to do with value type "+zt(d)+".");w=a(d)}x.push(u+w)}return x.push("}"),x.join("")},s=t.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,u,w,v,x={},y=1,E=x,F=[],k="",X="",q=h.length-1,N=1;N<q;N+=1)(v=h[N])=="'"?d?(w=d.join(""),d=void 0):d=[]:d?d.push(v):v=="{"?(F.push([E,w]),E={},w=void 0):v=="}"?((u=F.pop())[0][u[1]]=E,w=void 0,E=u[0]):v=="-"?y=-1:w===void 0?r.hasOwnProperty(v)?(k+=r[v],w=parseInt(k,16)*y,y=1,k=""):k+=v:r.hasOwnProperty(v)?(X+=r[v],E[w]=parseInt(X,16)*y,y=1,w=void 0,X=""):X+=v;return x},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={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}},c={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'{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}}}")}};t.events.push(["addFont",function(h){var d=h.font,u=c.Unicode[d.postScriptName];u&&(d.metadata.Unicode={},d.metadata.Unicode.widths=u.widths,d.metadata.Unicode.kerning=u.kerning);var w=l.Unicode[d.postScriptName];w&&(d.metadata.Unicode.encoding=w,d.encoding=w.codePages[0])}])}(xt.API),function(t){var e=function(r){for(var A=r.length,n=new Uint8Array(A),i=0;i<A;i++)n[i]=r.charCodeAt(i);return n};t.API.events.push(["addFont",function(r){var A=void 0,n=r.font,i=r.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(A=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(Il(s)),a.metadata=t.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,A)}}])}(xt),function(t){function e(){return(Bt.canvg?Promise.resolve(Bt.canvg):Promise.resolve().then(()=>jY)).catch(function(r){return Promise.reject(new Error("Could not load canvg: "+r))}).then(function(r){return r.default?r.default:r})}xt.API.addSvgAsImage=function(r,A,n,i,a,s,o,l){if(isNaN(A)||isNaN(n))throw cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=i,c.height=a;var h=c.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return e().then(function(w){return w.fromString(h,r,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(d)}).then(function(){u.addImage(c.toDataURL("image/jpeg",1),A,n,i,a,o,l)})}}(),xt.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var A=1;A<=this.internal.getNumberOfPages();A++)for(var n=0;n<this.internal.pages[A].length;n++)this.internal.pages[A][n]=this.internal.pages[A][n].replace(e,r);return this},xt.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var A,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=[],l=0,c=0,h=0;function d(w,v){var x,y=!1;for(x=0;x<w.length;x+=1)w[x]===v&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var u=s.length;for(h=0;h<u;h+=1)r[s[h]].value=r[s[h]].defaultValue,r[s[h]].explicitSet=!1}if(zt(t)==="object"){for(n in t)if(i=t[n],d(s,n)&&i!==void 0){if(r[n].type==="boolean"&&typeof i=="boolean")r[n].value=i;else if(r[n].type==="name"&&d(r[n].valueSet,i))r[n].value=i;else if(r[n].type==="integer"&&Number.isInteger(i))r[n].value=i;else if(r[n].type==="array"){for(l=0;l<i.length;l+=1)if(A=!0,i[l].length===1&&typeof i[l][0]=="number")o.push(String(i[l]-1));else if(i[l].length>1){for(c=0;c<i[l].length;c+=1)typeof i[l][c]!="number"&&(A=!1);A===!0&&o.push([i[l][0]-1,i[l][1]-1].join(" "))}r[n].value="["+o.join(" ")+"]"}else r[n].value=r[n].defaultValue;r[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,v=[];for(w in r)r[w].explicitSet===!0&&(r[w].type==="name"?v.push("/"+w+" /"+r[w].value):v.push("/"+w+" "+r[w].value));v.length!==0&&this.internal.write(`/ViewerPreferences
|
|
235
|
+
`&&(A=A.substr(1),F=1),d+u+(w=(n=i0.apply(this,[A,r])).reduce(function(k,X){return k+X},0))>e||F){if(w>e){for(s=gw.apply(this,[A,n,e-(d+u),e]),c.push(s.shift()),c=[s.pop()];s.length;)h.push([s.shift()]);w=n.slice(A.length-(c[0]?c[0].length:0)).reduce(function(k,X){return k+X},0)}else c=[A];h.push(c),d=w+o,u=x}else c.push(A),d+=u+w,u=x}return l=o?function(k,X){return(X?y:"")+k.join(" ")}:function(k){return k.join(" ")},h.map(l)},no.splitTextToSize=function(t,e,r){var A,n=(r=r||{}).fontSize||this.internal.getFontSize(),i=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var h=this.internal.getFont(c.fontName,c.fontStyle);return h.metadata.Unicode?{widths:h.metadata.Unicode.widths||{0:1},kerning:h.metadata.Unicode.kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);A=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/n;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=r.lineIndent;var s,o,l=[];for(s=0,o=A.length;s<o;s++)l=l.concat(pw.apply(this,[A[s],a,i]));return l},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},A={},n=0;n<e.length;n++)r[e[n]]="0123456789abcdef"[n],A["0123456789abcdef"[n]]=e[n];var i=function(h){return"0x"+parseInt(h,10).toString(16)},a=t.__fontmetrics__.compress=function(h){var d,u,w,v,x=["{"];for(var y in h){if(d=h[y],isNaN(parseInt(y,10))?u="'"+y+"'":(y=parseInt(y,10),u=(u=i(y).slice(2)).slice(0,-1)+A[u.slice(-1)]),typeof d=="number")d<0?(w=i(d).slice(3),v="-"):(w=i(d).slice(2),v=""),w=v+w.slice(0,-1)+A[w.slice(-1)];else{if(zt(d)!=="object")throw new Error("Don't know what to do with value type "+zt(d)+".");w=a(d)}x.push(u+w)}return x.push("}"),x.join("")},s=t.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,u,w,v,x={},y=1,E=x,F=[],k="",X="",q=h.length-1,N=1;N<q;N+=1)(v=h[N])=="'"?d?(w=d.join(""),d=void 0):d=[]:d?d.push(v):v=="{"?(F.push([E,w]),E={},w=void 0):v=="}"?((u=F.pop())[0][u[1]]=E,w=void 0,E=u[0]):v=="-"?y=-1:w===void 0?r.hasOwnProperty(v)?(k+=r[v],w=parseInt(k,16)*y,y=1,k=""):k+=v:r.hasOwnProperty(v)?(X+=r[v],E[w]=parseInt(X,16)*y,y=1,w=void 0,X=""):X+=v;return x},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={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}},c={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'{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}}}")}};t.events.push(["addFont",function(h){var d=h.font,u=c.Unicode[d.postScriptName];u&&(d.metadata.Unicode={},d.metadata.Unicode.widths=u.widths,d.metadata.Unicode.kerning=u.kerning);var w=l.Unicode[d.postScriptName];w&&(d.metadata.Unicode.encoding=w,d.encoding=w.codePages[0])}])}(xt.API),function(t){var e=function(r){for(var A=r.length,n=new Uint8Array(A),i=0;i<A;i++)n[i]=r.charCodeAt(i);return n};t.API.events.push(["addFont",function(r){var A=void 0,n=r.font,i=r.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(A=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(Il(s)),a.metadata=t.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,A)}}])}(xt),function(t){function e(){return(Bt.canvg?Promise.resolve(Bt.canvg):Promise.resolve().then(()=>VY)).catch(function(r){return Promise.reject(new Error("Could not load canvg: "+r))}).then(function(r){return r.default?r.default:r})}xt.API.addSvgAsImage=function(r,A,n,i,a,s,o,l){if(isNaN(A)||isNaN(n))throw cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=i,c.height=a;var h=c.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return e().then(function(w){return w.fromString(h,r,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(d)}).then(function(){u.addImage(c.toDataURL("image/jpeg",1),A,n,i,a,o,l)})}}(),xt.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var A=1;A<=this.internal.getNumberOfPages();A++)for(var n=0;n<this.internal.pages[A].length;n++)this.internal.pages[A][n]=this.internal.pages[A][n].replace(e,r);return this},xt.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var A,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=[],l=0,c=0,h=0;function d(w,v){var x,y=!1;for(x=0;x<w.length;x+=1)w[x]===v&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var u=s.length;for(h=0;h<u;h+=1)r[s[h]].value=r[s[h]].defaultValue,r[s[h]].explicitSet=!1}if(zt(t)==="object"){for(n in t)if(i=t[n],d(s,n)&&i!==void 0){if(r[n].type==="boolean"&&typeof i=="boolean")r[n].value=i;else if(r[n].type==="name"&&d(r[n].valueSet,i))r[n].value=i;else if(r[n].type==="integer"&&Number.isInteger(i))r[n].value=i;else if(r[n].type==="array"){for(l=0;l<i.length;l+=1)if(A=!0,i[l].length===1&&typeof i[l][0]=="number")o.push(String(i[l]-1));else if(i[l].length>1){for(c=0;c<i[l].length;c+=1)typeof i[l][c]!="number"&&(A=!1);A===!0&&o.push([i[l][0]-1,i[l][1]-1].join(" "))}r[n].value="["+o.join(" ")+"]"}else r[n].value=r[n].defaultValue;r[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,v=[];for(w in r)r[w].explicitSet===!0&&(r[w].type==="name"?v.push("/"+w+" /"+r[w].value):v.push("/"+w+" "+r[w].value));v.length!==0&&this.internal.write(`/ViewerPreferences
|
|
236
236
|
<<
|
|
237
237
|
`+v.join(`
|
|
238
238
|
`)+`
|
|
@@ -283,7 +283,7 @@ end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a
|
|
|
283
283
|
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/>
|
|
284
284
|
`,` </rdf:Description>
|
|
285
285
|
`].join("")}function sL(t){var e=[Gr];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
286
|
-
`);for(var r=0;r!=t.length;++r)e.push(QB(t[r][0],t[r][1])),e.push(aL("",t[r][0]));return e.push(QB("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function OB(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+a0.version+"</meta:generator></office:meta></office:document-meta>"}var ds=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function id(t,e,r,A,n){n[t]!=null||e==null||e===""||(n[t]=e,e=er(e),A[A.length]=r?Ze(t,e,r):vA(t,e))}function kB(t,e){var r=e||{},A=[Gr,Ze("cp:coreProperties",null,{"xmlns:cp":aA.CORE_PROPS,"xmlns:dc":aA.dc,"xmlns:dcterms":aA.dcterms,"xmlns:dcmitype":aA.dcmitype,"xmlns:xsi":aA.xsi})],n={};if(!t&&!r.Props)return A.join("");t&&(t.CreatedDate!=null&&id("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:q1(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},A,n),t.ModifiedDate!=null&&id("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:q1(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},A,n));for(var i=0;i!=ds.length;++i){var a=ds[i],s=r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:t?t[a[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&id(a[0],s,null,A,n)}return A.length>2&&(A[A.length]="</cp:coreProperties>",A[1]=A[1].replace("/>",">")),A.join("")}var ho=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],DB=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function PB(t){var e=[],r=Ze;return t||(t={}),t.Application="SheetJS",e[e.length]=Gr,e[e.length]=Ze("Properties",null,{xmlns:aA.EXT_PROPS,"xmlns:vt":aA.vt}),ho.forEach(function(A){if(t[A[1]]!==void 0){var n;switch(A[2]){case"string":n=er(String(t[A[1]]));break;case"bool":n=t[A[1]]?"true":"false";break}n!==void 0&&(e[e.length]=r(A[0],n))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(A){return"<vt:lpstr>"+er(A)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function RB(t){var e=[Gr,Ze("Properties",null,{xmlns:aA.CUST_PROPS,"xmlns:vt":aA.vt})];if(!t)return e.join("");var r=1;return pA(t).forEach(function(n){++r,e[e.length]=Ze("property",bI(t[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:er(n)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var MB={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function oL(t,e){var r=[];return pA(MB).map(function(A){for(var n=0;n<ds.length;++n)if(ds[n][1]==A)return ds[n];for(n=0;n<ho.length;++n)if(ho[n][1]==A)return ho[n];throw A}).forEach(function(A){if(t[A[1]]!=null){var n=e&&e.Props&&e.Props[A[1]]!=null?e.Props[A[1]]:t[A[1]];switch(A[2]){case"date":n=new Date(n).toISOString().replace(/\.\d*Z/,"Z");break}typeof n=="number"?n=String(n):n===!0||n===!1?n=n?"1":"0":n instanceof Date&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"")),r.push(vA(MB[A[1]]||A[1],n))}}),Ze("DocumentProperties",r.join(""),{xmlns:ln.o})}function lL(t,e){var r=["Worksheets","SheetNames"],A="CustomDocumentProperties",n=[];return t&&pA(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)){for(var a=0;a<ds.length;++a)if(i==ds[a][1])return;for(a=0;a<ho.length;++a)if(i==ho[a][1])return;for(a=0;a<r.length;++a)if(i==r[a])return;var s=t[i],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s=String(s),n.push(Ze(Jw(i),s,{"dt:dt":o}))}}),e&&pA(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)&&!(t&&Object.prototype.hasOwnProperty.call(t,i))){var a=e[i],s="string";typeof a=="number"?(s="float",a=String(a)):a===!0||a===!1?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),n.push(Ze(Jw(i),a,{"dt:dt":s}))}}),"<"+A+' xmlns="'+ln.o+'">'+n.join("")+"</"+A+">"}function cL(t){var e=typeof t=="string"?new Date(Date.parse(t)):t,r=e.getTime()/1e3+11644473600,A=r%Math.pow(2,32),n=(r-A)/Math.pow(2,32);A*=1e7,n*=1e7;var i=A/Math.pow(2,32)|0;i>0&&(A=A%Math.pow(2,32),n+=i);var a=Le(8);return a.write_shift(4,A),a.write_shift(4,n),a}function HB(t,e){var r=Le(4),A=Le(4);switch(r.write_shift(4,t==80?31:t),t){case 3:A.write_shift(-4,e);break;case 5:A=Le(8),A.write_shift(8,e,"f");break;case 11:A.write_shift(4,e?1:0);break;case 64:A=cL(e);break;case 31:case 80:for(A=Le(4+2*(e.length+1)+(e.length%2?0:2)),A.write_shift(4,e.length+1),A.write_shift(0,e,"dbcs");A.l!=A.length;)A.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return gA([r,A])}var VB=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function fL(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function KB(t,e,r){var A=Le(8),n=[],i=[],a=8,s=0,o=Le(8),l=Le(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),i.push(o),n.push(l),a+=8+o.length,!e){l=Le(8),l.write_shift(4,0),n.unshift(l);var c=[Le(4)];for(c[0].write_shift(4,t.length),s=0;s<t.length;++s){var h=t[s][0];for(o=Le(4+4+2*(h.length+1)+(h.length%2?0:2)),o.write_shift(4,s+2),o.write_shift(4,h.length+1),o.write_shift(0,h,"dbcs");o.l!=o.length;)o.write_shift(1,0);c.push(o)}o=gA(c),i.unshift(o),a+=8+o.length}for(s=0;s<t.length;++s)if(!(e&&!e[t[s][0]])&&!(VB.indexOf(t[s][0])>-1||DB.indexOf(t[s][0])>-1)&&t[s][1]!=null){var d=t[s][1],u=0;if(e){u=+e[t[s][0]];var w=r[u];if(w.p=="version"&&typeof d=="string"){var v=d.split(".");d=(+v[0]<<16)+(+v[1]||0)}o=HB(w.t,d)}else{var x=fL(d);x==-1&&(x=31,d=String(d)),o=HB(x,d)}i.push(o),l=Le(8),l.write_shift(4,e?u:2+s),n.push(l),a+=8+o.length}var y=8*(i.length+1);for(s=0;s<i.length;++s)n[s].write_shift(4,y),y+=i[s].length;return A.write_shift(4,a),A.write_shift(4,i.length),gA([A].concat(n).concat(i))}function GB(t,e,r,A,n,i){var a=Le(n?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,or.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,n?2:1),a.write_shift(16,e,"hex"),a.write_shift(4,n?68:48);var o=KB(t,r,A);if(s.push(o),n){var l=KB(n,null,null);a.write_shift(16,i,"hex"),a.write_shift(4,68+o.length),s.push(l)}return gA(s)}function uL(t,e){e||(e=Le(t));for(var r=0;r<t;++r)e.write_shift(1,0);return e}function hL(t,e){return t.read_shift(e)===1}function VA(t,e){return e||(e=Le(2)),e.write_shift(2,+!!t),e}function jB(t){return t.read_shift(2,"u")}function Sn(t,e){return e||(e=Le(2)),e.write_shift(2,t),e}function WB(t,e,r){return r||(r=Le(2)),r.write_shift(1,e=="e"?+t:+!!t),r.write_shift(1,e=="e"?1:0),r}function zB(t,e,r){var A=t.read_shift(r&&r.biff>=12?2:1),n="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=t.read_shift(1);i&&(n="dbcs-cont")}else r.biff==12&&(n="wstr");r.biff>=2&&r.biff<=5&&(n="cpstr");var a=A?t.read_shift(A,n):"";return a}function dL(t){var e=t.t||"",r=Le(3+0);r.write_shift(2,e.length),r.write_shift(1,1);var A=Le(2*e.length);A.write_shift(2*e.length,e,"utf16le");var n=[r,A];return gA(n)}function gL(t,e,r){var A;if(r){if(r.biff>=2&&r.biff<=5)return t.read_shift(e,"cpstr");if(r.biff>=12)return t.read_shift(e,"dbcs-cont")}var n=t.read_shift(1);return n===0?A=t.read_shift(e,"sbcs-cont"):A=t.read_shift(e,"dbcs-cont"),A}function pL(t,e,r){var A=t.read_shift(r&&r.biff==2?1:2);return A===0?(t.l++,""):gL(t,A,r)}function vL(t,e,r){if(r.biff>5)return pL(t,e,r);var A=t.read_shift(1);return A===0?(t.l++,""):t.read_shift(A,r.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function XB(t,e,r){return r||(r=Le(3+2*t.length)),r.write_shift(2,t.length),r.write_shift(1,1),r.write_shift(31,t,"utf16le"),r}function qB(t,e){e||(e=Le(6+t.length*2)),e.write_shift(4,1+t.length);for(var r=0;r<t.length;++r)e.write_shift(2,t.charCodeAt(r));return e.write_shift(2,0),e}function mL(t){var e=Le(512),r=0,A=t.Target;A.slice(0,7)=="file://"&&(A=A.slice(7));var n=A.indexOf("#"),i=n>-1?31:23;switch(A.charAt(0)){case"#":i=28;break;case".":i&=-3;break}e.write_shift(4,2),e.write_shift(4,i);var a=[8,6815827,6619237,4849780,83];for(r=0;r<a.length;++r)e.write_shift(4,a[r]);if(i==28)A=A.slice(1),qB(A,e);else if(i&2){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<a.length;++r)e.write_shift(1,parseInt(a[r],16));var s=n>-1?A.slice(0,n):A;for(e.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)e.write_shift(2,s.charCodeAt(r));e.write_shift(2,0),i&8&&qB(n>-1?A.slice(n+1):"",e)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<a.length;++r)e.write_shift(1,parseInt(a[r],16));for(var o=0;A.slice(o*3,o*3+3)=="../"||A.slice(o*3,o*3+3)=="..\\";)++o;for(e.write_shift(2,o),e.write_shift(4,A.length-3*o+1),r=0;r<A.length-3*o;++r)e.write_shift(1,A.charCodeAt(r+3*o)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),r=0;r<6;++r)e.write_shift(4,0)}return e.slice(0,e.l)}function gs(t,e,r,A){return A||(A=Le(6)),A.write_shift(2,t),A.write_shift(2,e),A.write_shift(2,r||0),A}function wL(t,e,r){var A=r.biff>8?4:2,n=t.read_shift(A),i=t.read_shift(A,"i"),a=t.read_shift(A,"i");return[n,i,a]}function BL(t){var e=t.read_shift(2),r=t.read_shift(2),A=t.read_shift(2),n=t.read_shift(2);return{s:{c:A,r:e},e:{c:n,r}}}function YB(t,e){return e||(e=Le(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function ad(t,e,r){var A=1536,n=16;switch(r.bookType){case"biff8":break;case"biff5":A=1280,n=8;break;case"biff4":A=4,n=6;break;case"biff3":A=3,n=6;break;case"biff2":A=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Le(n);return i.write_shift(2,A),i.write_shift(2,e),n>4&&i.write_shift(2,29282),n>6&&i.write_shift(2,1997),n>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function xL(t,e){var r=!e||e.biff==8,A=Le(r?112:54);for(A.write_shift(e.biff==8?2:1,7),r&&A.write_shift(1,0),A.write_shift(4,859007059),A.write_shift(4,5458548|(r?0:536870912));A.l<A.length;)A.write_shift(1,r?0:32);return A}function yL(t,e){var r=!e||e.biff>=8?2:1,A=Le(8+r*t.name.length);A.write_shift(4,t.pos),A.write_shift(1,t.hs||0),A.write_shift(1,t.dt),A.write_shift(1,t.name.length),e.biff>=8&&A.write_shift(1,1),A.write_shift(r*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var n=A.slice(0,A.l);return n.l=A.l,n}function CL(t,e){var r=Le(8);r.write_shift(4,t.Count),r.write_shift(4,t.Unique);for(var A=[],n=0;n<t.length;++n)A[n]=dL(t[n]);var i=gA([r].concat(A));return i.parts=[r.length].concat(A.map(function(a){return a.length})),i}function EL(){var t=Le(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function bL(t){var e=Le(18),r=1718;return t&&t.RTL&&(r|=64),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function FL(t,e){var r=t.name||"Arial",A=e&&e.biff==5,n=A?15+r.length:16+2*r.length,i=Le(n);return i.write_shift(2,(t.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),A||i.write_shift(1,1),i.write_shift((A?1:2)*r.length,r,A?"sbcs":"utf16le"),i}function SL(t,e,r,A){var n=Le(10);return gs(t,e,A,n),n.write_shift(4,r),n}function _L(t,e,r,A,n){var i=!n||n.biff==8,a=Le(6+2+ +i+(1+i)*r.length);return gs(t,e,A,a),a.write_shift(2,r.length),i&&a.write_shift(1,1),a.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),a}function TL(t,e,r,A){var n=r&&r.biff==5;A||(A=Le(n?3+e.length:5+2*e.length)),A.write_shift(2,t),A.write_shift(n?1:2,e.length),n||A.write_shift(1,1),A.write_shift((n?1:2)*e.length,e,n?"sbcs":"utf16le");var i=A.length>A.l?A.slice(0,A.l):A;return i.l==null&&(i.l=i.length),i}function UL(t,e){var r=e.biff==8||!e.biff?4:2,A=Le(2*r+6);return A.write_shift(r,t.s.r),A.write_shift(r,t.e.r+1),A.write_shift(2,t.s.c),A.write_shift(2,t.e.c+1),A.write_shift(2,0),A}function $B(t,e,r,A){var n=r&&r.biff==5;A||(A=Le(n?16:20)),A.write_shift(2,0),t.style?(A.write_shift(2,t.numFmtId||0),A.write_shift(2,65524)):(A.write_shift(2,t.numFmtId||0),A.write_shift(2,e<<4));var i=0;return t.numFmtId>0&&n&&(i|=1024),A.write_shift(4,i),A.write_shift(4,0),n||A.write_shift(4,0),A.write_shift(2,0),A}function IL(t){var e=Le(8);return e.write_shift(4,0),e.write_shift(2,t[0]?t[0]+1:0),e.write_shift(2,t[1]?t[1]+1:0),e}function LL(t,e,r,A,n,i){var a=Le(8);return gs(t,e,A,a),WB(r,i,a),a}function NL(t,e,r,A){var n=Le(14);return gs(t,e,A,n),hs(r,n),n}function QL(t,e,r){if(r.biff<8)return OL(t,e,r);for(var A=[],n=t.l+e,i=t.read_shift(r.biff>8?4:2);i--!==0;)A.push(wL(t,r.biff>8?12:6,r));if(t.l!=n)throw new Error("Bad ExternSheet: "+t.l+" != "+n);return A}function OL(t,e,r){t[t.l+1]==3&&t[t.l]++;var A=zB(t,e,r);return A.charCodeAt(0)==3?A.slice(1):A}function kL(t){var e=Le(2+t.length*8);e.write_shift(2,t.length);for(var r=0;r<t.length;++r)YB(t[r],e);return e}function DL(t){var e=Le(24),r=sA(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var A="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)e.write_shift(1,parseInt(A[n],16));return gA([e,mL(t[1])])}function PL(t){var e=t[1].Tooltip,r=Le(10+2*(e.length+1));r.write_shift(2,2048);var A=sA(t[0]);r.write_shift(2,A.r),r.write_shift(2,A.r),r.write_shift(2,A.c),r.write_shift(2,A.c);for(var n=0;n<e.length;++n)r.write_shift(2,e.charCodeAt(n));return r.write_shift(2,0),r}function RL(t){return t||(t=Le(4)),t.write_shift(2,1),t.write_shift(2,1),t}function ML(t,e,r){if(!r.cellStyles)return mi(t,e);var A=r&&r.biff>=12?4:2,n=t.read_shift(A),i=t.read_shift(A),a=t.read_shift(A),s=t.read_shift(A),o=t.read_shift(2);A==2&&(t.l+=2);var l={s:n,e:i,w:a,ixfe:s,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function HL(t,e){var r=Le(12);r.write_shift(2,e),r.write_shift(2,e),r.write_shift(2,t.width*256),r.write_shift(2,0);var A=0;return t.hidden&&(A|=1),r.write_shift(1,A),A=t.level||0,r.write_shift(1,A),r.write_shift(2,0),r}function VL(t){for(var e=Le(2*t),r=0;r<t;++r)e.write_shift(2,r+1);return e}function KL(t,e,r){var A=Le(15);return ql(A,t,e),A.write_shift(8,r,"f"),A}function GL(t,e,r){var A=Le(9);return ql(A,t,e),A.write_shift(2,r),A}var jL=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=G1({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,o){var l=[],c=as(1);switch(o.type){case"base64":c=Vn(ki(s));break;case"binary":c=Vn(s);break;case"buffer":case"array":c=s;break}fn(c,0);var h=c.read_shift(1),d=!!(h&136),u=!1,w=!1;switch(h){case 2:break;case 3:break;case 48:u=!0,d=!0;break;case 49:u=!0,d=!0;break;case 131:break;case 139:break;case 140:w=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var v=0,x=521;h==2&&(v=c.read_shift(2)),c.l+=3,h!=2&&(v=c.read_shift(4)),v>1048576&&(v=1e6),h!=2&&(x=c.read_shift(2));var y=c.read_shift(2),E=o.codepage||1252;h!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(E=t[c[c.l]]),c.l+=1,c.l+=2),w&&(c.l+=36);for(var F=[],k={},X=Math.min(c.length,h==2?521:x-10-(u?264:0)),q=w?32:11;c.l<X&&c[c.l]!=13;)switch(k={},k.name=is.utils.decode(E,c.slice(c.l,c.l+q)).replace(/[\u0000\r\n].*$/g,""),c.l+=q,k.type=String.fromCharCode(c.read_shift(1)),h!=2&&!w&&(k.offset=c.read_shift(4)),k.len=c.read_shift(1),h==2&&(k.offset=c.read_shift(2)),k.dec=c.read_shift(1),k.name.length&&F.push(k),h!=2&&(c.l+=w?13:14),k.type){case"B":(!u||k.len!=8)&&o.WTF&&console.log("Skipping "+k.name+":"+k.type);break;case"G":case"P":o.WTF&&console.log("Skipping "+k.name+":"+k.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+k.type)}if(c[c.l]!==13&&(c.l=x-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=x;var N=0,Q=0;for(l[0]=[],Q=0;Q!=F.length;++Q)l[0][Q]=F[Q].name;for(;v-- >0;){if(c[c.l]===42){c.l+=y;continue}for(++c.l,l[++N]=[],Q=0,Q=0;Q!=F.length;++Q){var K=c.slice(c.l,c.l+F[Q].len);c.l+=F[Q].len,fn(K,0);var Ae=is.utils.decode(E,K);switch(F[Q].type){case"C":Ae.trim().length&&(l[N][Q]=Ae.replace(/\s+$/,""));break;case"D":Ae.length===8?l[N][Q]=new Date(+Ae.slice(0,4),+Ae.slice(4,6)-1,+Ae.slice(6,8)):l[N][Q]=Ae;break;case"F":l[N][Q]=parseFloat(Ae.trim());break;case"+":case"I":l[N][Q]=w?K.read_shift(-4,"i")^2147483648:K.read_shift(4,"i");break;case"L":switch(Ae.trim().toUpperCase()){case"Y":case"T":l[N][Q]=!0;break;case"N":case"F":l[N][Q]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+Ae+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));l[N][Q]="##MEMO##"+(w?parseInt(Ae.trim(),10):K.read_shift(4));break;case"N":Ae=Ae.replace(/\u0000/g,"").trim(),Ae&&Ae!="."&&(l[N][Q]=+Ae||0);break;case"@":l[N][Q]=new Date(K.read_shift(-8,"f")-621356832e5);break;case"T":l[N][Q]=new Date((K.read_shift(4)-2440588)*864e5+K.read_shift(4));break;case"Y":l[N][Q]=K.read_shift(4,"i")/1e4+K.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[N][Q]=-K.read_shift(-8,"f");break;case"B":if(u&&F[Q].len==8){l[N][Q]=K.read_shift(8,"f");break}case"G":case"P":K.l+=F[Q].len;break;case"0":if(F[Q].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+F[Q].type)}}}if(h!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return o&&o.sheetRows&&(l=l.slice(0,o.sheetRows)),o.DBF=F,l}function A(s,o){var l=o||{};l.dateNF||(l.dateNF="yyyymmdd");var c=lo(r(s,l),l);return c["!cols"]=l.DBF.map(function(h){return{wch:h.len,DBF:h}}),delete l.DBF,c}function n(s,o){try{return os(A(s,o),o)}catch(l){if(o&&o.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function a(s,o){var l=o||{};if(+l.codepage>=0&&Ll(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=JA(),h=O0(s,{header:1,raw:!0,cellDates:!0}),d=h[0],u=h.slice(1),w=s["!cols"]||[],v=0,x=0,y=0,E=1;for(v=0;v<d.length;++v){if(((w[v]||{}).DBF||{}).name){d[v]=w[v].DBF.name,++y;continue}if(d[v]!=null){if(++y,typeof d[v]=="number"&&(d[v]=d[v].toString(10)),typeof d[v]!="string")throw new Error("DBF Invalid column name "+d[v]+" |"+typeof d[v]+"|");if(d.indexOf(d[v])!==v){for(x=0;x<1024;++x)if(d.indexOf(d[v]+"_"+x)==-1){d[v]+="_"+x;break}}}}var F=wr(s["!ref"]),k=[],X=[],q=[];for(v=0;v<=F.e.c-F.s.c;++v){var N="",Q="",K=0,Ae=[];for(x=0;x<u.length;++x)u[x][v]!=null&&Ae.push(u[x][v]);if(Ae.length==0||d[v]==null){k[v]="?";continue}for(x=0;x<Ae.length;++x){switch(typeof Ae[x]){case"number":Q="B";break;case"string":Q="C";break;case"boolean":Q="L";break;case"object":Q=Ae[x]instanceof Date?"D":"C";break;default:Q="C"}K=Math.max(K,String(Ae[x]).length),N=N&&N!=Q?"C":Q}K>250&&(K=250),Q=((w[v]||{}).DBF||{}).type,Q=="C"&&w[v].DBF.len>K&&(K=w[v].DBF.len),N=="B"&&Q=="N"&&(N="N",q[v]=w[v].DBF.dec,K=w[v].DBF.len),X[v]=N=="C"||Q=="N"?K:i[N]||0,E+=X[v],k[v]=N}var U=c.next(32);for(U.write_shift(4,318902576),U.write_shift(4,u.length),U.write_shift(2,296+32*y),U.write_shift(2,E),v=0;v<4;++v)U.write_shift(4,0);for(U.write_shift(4,0|(+e[yw]||3)<<8),v=0,x=0;v<d.length;++v)if(d[v]!=null){var T=c.next(32),V=(d[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T.write_shift(1,V,"sbcs"),T.write_shift(1,k[v]=="?"?"C":k[v],"sbcs"),T.write_shift(4,x),T.write_shift(1,X[v]||i[k[v]]||0),T.write_shift(1,q[v]||0),T.write_shift(1,2),T.write_shift(4,0),T.write_shift(1,0),T.write_shift(4,0),T.write_shift(4,0),x+=X[v]||i[k[v]]||0}var Y=c.next(264);for(Y.write_shift(4,13),v=0;v<65;++v)Y.write_shift(4,0);for(v=0;v<u.length;++v){var ce=c.next(E);for(ce.write_shift(1,0),x=0;x<d.length;++x)if(d[x]!=null)switch(k[x]){case"L":ce.write_shift(1,u[v][x]==null?63:u[v][x]?84:70);break;case"B":ce.write_shift(8,u[v][x]||0,"f");break;case"N":var he="0";for(typeof u[v][x]=="number"&&(he=u[v][x].toFixed(q[x]||0)),y=0;y<X[x]-he.length;++y)ce.write_shift(1,32);ce.write_shift(1,he,"sbcs");break;case"D":u[v][x]?(ce.write_shift(4,("0000"+u[v][x].getFullYear()).slice(-4),"sbcs"),ce.write_shift(2,("00"+(u[v][x].getMonth()+1)).slice(-2),"sbcs"),ce.write_shift(2,("00"+u[v][x].getDate()).slice(-2),"sbcs")):ce.write_shift(8,"00000000","sbcs");break;case"C":var me=String(u[v][x]!=null?u[v][x]:"").slice(0,X[x]);for(ce.write_shift(1,me,"sbcs"),y=0;y<X[x]-me.length;++y)ce.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:n,to_sheet:A,from_sheet:a}}(),WL=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+pA(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,u){var w=t[u];return typeof w=="number"?Ew(w):w},A=function(d,u,w){var v=u.charCodeAt(0)-32<<4|w.charCodeAt(0)-48;return v==59?d:Ew(v)};t["|"]=254;function n(d,u){switch(u.type){case"base64":return i(ki(d),u);case"binary":return i(d,u);case"buffer":return i(Yt&&Buffer.isBuffer(d)?d.toString("binary"):Ql(d),u);case"array":return i(m0(d),u)}throw new Error("Unrecognized type "+u.type)}function i(d,u){var w=d.split(/[\n\r]+/),v=-1,x=-1,y=0,E=0,F=[],k=[],X=null,q={},N=[],Q=[],K=[],Ae=0,U;for(+u.codepage>=0&&Ll(+u.codepage);y!==w.length;++y){Ae=0;var T=w[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,A).replace(e,r),V=T.replace(/;;/g,"\0").split(";").map(function(O){return O.replace(/\u0000/g,";")}),Y=V[0],ce;if(T.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":V[1].charAt(0)=="P"&&k.push(T.slice(3).replace(/;;/g,";"));break;case"C":var he=!1,me=!1,ge=!1,we=!1,Be=-1,ke=-1;for(E=1;E<V.length;++E)switch(V[E].charAt(0)){case"A":break;case"X":x=parseInt(V[E].slice(1))-1,me=!0;break;case"Y":for(v=parseInt(V[E].slice(1))-1,me||(x=0),U=F.length;U<=v;++U)F[U]=[];break;case"K":ce=V[E].slice(1),ce.charAt(0)==='"'?ce=ce.slice(1,ce.length-1):ce==="TRUE"?ce=!0:ce==="FALSE"?ce=!1:isNaN(Ri(ce))?isNaN(Dl(ce).getDate())||(ce=HA(ce)):(ce=Ri(ce),X!==null&&Hw(X)&&(ce=qw(ce))),he=!0;break;case"E":we=!0;var C=G6(V[E].slice(1),{r:v,c:x});F[v][x]=[F[v][x],C];break;case"S":ge=!0,F[v][x]=[F[v][x],"S5S"];break;case"G":break;case"R":Be=parseInt(V[E].slice(1))-1;break;case"C":ke=parseInt(V[E].slice(1))-1;break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}if(he&&(F[v][x]&&F[v][x].length==2?F[v][x][0]=ce:F[v][x]=ce,X=null),ge){if(we)throw new Error("SYLK shared formula cannot have own formula");var _=Be>-1&&F[Be][ke];if(!_||!_[1])throw new Error("SYLK shared formula cannot find base");F[v][x][1]=j6(_[1],{r:v-Be,c:x-ke})}break;case"F":var S=0;for(E=1;E<V.length;++E)switch(V[E].charAt(0)){case"X":x=parseInt(V[E].slice(1))-1,++S;break;case"Y":for(v=parseInt(V[E].slice(1))-1,U=F.length;U<=v;++U)F[U]=[];break;case"M":Ae=parseInt(V[E].slice(1))/20;break;case"F":break;case"G":break;case"P":X=k[parseInt(V[E].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(K=V[E].slice(1).split(" "),U=parseInt(K[0],10);U<=parseInt(K[1],10);++U)Ae=parseInt(K[2],10),Q[U-1]=Ae===0?{hidden:!0}:{wch:Ae},od(Q[U-1]);break;case"C":x=parseInt(V[E].slice(1))-1,Q[x]||(Q[x]={});break;case"R":v=parseInt(V[E].slice(1))-1,N[v]||(N[v]={}),Ae>0?(N[v].hpt=Ae,N[v].hpx=n5(Ae)):Ae===0&&(N[v].hidden=!0);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}S<1&&(X=null);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}}return N.length>0&&(q["!rows"]=N),Q.length>0&&(q["!cols"]=Q),u&&u.sheetRows&&(F=F.slice(0,u.sheetRows)),[F,q]}function a(d,u){var w=n(d,u),v=w[0],x=w[1],y=lo(v,u);return pA(x).forEach(function(E){y[E]=x[E]}),y}function s(d,u){return os(a(d,u),u)}function o(d,u,w,v){var x="C;Y"+(w+1)+";X"+(v+1)+";K";switch(d.t){case"n":x+=d.v||0,d.f&&!d.F&&(x+=";E"+fd(d.f,{r:w,c:v}));break;case"b":x+=d.v?"TRUE":"FALSE";break;case"e":x+=d.w||d.v;break;case"d":x+='"'+(d.w||d.v)+'"';break;case"s":x+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return x}function l(d,u){u.forEach(function(w,v){var x="F;W"+(v+1)+" "+(v+1)+" ";w.hidden?x+="0":(typeof w.width=="number"&&!w.wpx&&(w.wpx=S0(w.width)),typeof w.wpx=="number"&&!w.wch&&(w.wch=_0(w.wpx)),typeof w.wch=="number"&&(x+=Math.round(w.wch))),x.charAt(x.length-1)!=" "&&d.push(x)})}function c(d,u){u.forEach(function(w,v){var x="F;";w.hidden?x+="M0;":w.hpt?x+="M"+20*w.hpt+";":w.hpx&&(x+="M"+20*T0(w.hpx)+";"),x.length>2&&d.push(x+"R"+(v+1))})}function h(d,u){var w=["ID;PWXL;N;E"],v=[],x=wr(d["!ref"]),y,E=Array.isArray(d),F=`\r
|
|
286
|
+
`);for(var r=0;r!=t.length;++r)e.push(QB(t[r][0],t[r][1])),e.push(aL("",t[r][0]));return e.push(QB("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function OB(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+a0.version+"</meta:generator></office:meta></office:document-meta>"}var ds=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function id(t,e,r,A,n){n[t]!=null||e==null||e===""||(n[t]=e,e=er(e),A[A.length]=r?Ze(t,e,r):vA(t,e))}function kB(t,e){var r=e||{},A=[Gr,Ze("cp:coreProperties",null,{"xmlns:cp":aA.CORE_PROPS,"xmlns:dc":aA.dc,"xmlns:dcterms":aA.dcterms,"xmlns:dcmitype":aA.dcmitype,"xmlns:xsi":aA.xsi})],n={};if(!t&&!r.Props)return A.join("");t&&(t.CreatedDate!=null&&id("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:q1(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},A,n),t.ModifiedDate!=null&&id("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:q1(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},A,n));for(var i=0;i!=ds.length;++i){var a=ds[i],s=r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:t?t[a[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&id(a[0],s,null,A,n)}return A.length>2&&(A[A.length]="</cp:coreProperties>",A[1]=A[1].replace("/>",">")),A.join("")}var ho=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],DB=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function PB(t){var e=[],r=Ze;return t||(t={}),t.Application="SheetJS",e[e.length]=Gr,e[e.length]=Ze("Properties",null,{xmlns:aA.EXT_PROPS,"xmlns:vt":aA.vt}),ho.forEach(function(A){if(t[A[1]]!==void 0){var n;switch(A[2]){case"string":n=er(String(t[A[1]]));break;case"bool":n=t[A[1]]?"true":"false";break}n!==void 0&&(e[e.length]=r(A[0],n))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(A){return"<vt:lpstr>"+er(A)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function RB(t){var e=[Gr,Ze("Properties",null,{xmlns:aA.CUST_PROPS,"xmlns:vt":aA.vt})];if(!t)return e.join("");var r=1;return pA(t).forEach(function(n){++r,e[e.length]=Ze("property",bI(t[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:er(n)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var MB={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function oL(t,e){var r=[];return pA(MB).map(function(A){for(var n=0;n<ds.length;++n)if(ds[n][1]==A)return ds[n];for(n=0;n<ho.length;++n)if(ho[n][1]==A)return ho[n];throw A}).forEach(function(A){if(t[A[1]]!=null){var n=e&&e.Props&&e.Props[A[1]]!=null?e.Props[A[1]]:t[A[1]];switch(A[2]){case"date":n=new Date(n).toISOString().replace(/\.\d*Z/,"Z");break}typeof n=="number"?n=String(n):n===!0||n===!1?n=n?"1":"0":n instanceof Date&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"")),r.push(vA(MB[A[1]]||A[1],n))}}),Ze("DocumentProperties",r.join(""),{xmlns:ln.o})}function lL(t,e){var r=["Worksheets","SheetNames"],A="CustomDocumentProperties",n=[];return t&&pA(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)){for(var a=0;a<ds.length;++a)if(i==ds[a][1])return;for(a=0;a<ho.length;++a)if(i==ho[a][1])return;for(a=0;a<r.length;++a)if(i==r[a])return;var s=t[i],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s=String(s),n.push(Ze(Jw(i),s,{"dt:dt":o}))}}),e&&pA(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)&&!(t&&Object.prototype.hasOwnProperty.call(t,i))){var a=e[i],s="string";typeof a=="number"?(s="float",a=String(a)):a===!0||a===!1?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),n.push(Ze(Jw(i),a,{"dt:dt":s}))}}),"<"+A+' xmlns="'+ln.o+'">'+n.join("")+"</"+A+">"}function cL(t){var e=typeof t=="string"?new Date(Date.parse(t)):t,r=e.getTime()/1e3+11644473600,A=r%Math.pow(2,32),n=(r-A)/Math.pow(2,32);A*=1e7,n*=1e7;var i=A/Math.pow(2,32)|0;i>0&&(A=A%Math.pow(2,32),n+=i);var a=Le(8);return a.write_shift(4,A),a.write_shift(4,n),a}function HB(t,e){var r=Le(4),A=Le(4);switch(r.write_shift(4,t==80?31:t),t){case 3:A.write_shift(-4,e);break;case 5:A=Le(8),A.write_shift(8,e,"f");break;case 11:A.write_shift(4,e?1:0);break;case 64:A=cL(e);break;case 31:case 80:for(A=Le(4+2*(e.length+1)+(e.length%2?0:2)),A.write_shift(4,e.length+1),A.write_shift(0,e,"dbcs");A.l!=A.length;)A.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return gA([r,A])}var VB=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function fL(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function KB(t,e,r){var A=Le(8),n=[],i=[],a=8,s=0,o=Le(8),l=Le(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),i.push(o),n.push(l),a+=8+o.length,!e){l=Le(8),l.write_shift(4,0),n.unshift(l);var c=[Le(4)];for(c[0].write_shift(4,t.length),s=0;s<t.length;++s){var h=t[s][0];for(o=Le(4+4+2*(h.length+1)+(h.length%2?0:2)),o.write_shift(4,s+2),o.write_shift(4,h.length+1),o.write_shift(0,h,"dbcs");o.l!=o.length;)o.write_shift(1,0);c.push(o)}o=gA(c),i.unshift(o),a+=8+o.length}for(s=0;s<t.length;++s)if(!(e&&!e[t[s][0]])&&!(VB.indexOf(t[s][0])>-1||DB.indexOf(t[s][0])>-1)&&t[s][1]!=null){var d=t[s][1],u=0;if(e){u=+e[t[s][0]];var w=r[u];if(w.p=="version"&&typeof d=="string"){var v=d.split(".");d=(+v[0]<<16)+(+v[1]||0)}o=HB(w.t,d)}else{var x=fL(d);x==-1&&(x=31,d=String(d)),o=HB(x,d)}i.push(o),l=Le(8),l.write_shift(4,e?u:2+s),n.push(l),a+=8+o.length}var y=8*(i.length+1);for(s=0;s<i.length;++s)n[s].write_shift(4,y),y+=i[s].length;return A.write_shift(4,a),A.write_shift(4,i.length),gA([A].concat(n).concat(i))}function GB(t,e,r,A,n,i){var a=Le(n?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,or.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,n?2:1),a.write_shift(16,e,"hex"),a.write_shift(4,n?68:48);var o=KB(t,r,A);if(s.push(o),n){var l=KB(n,null,null);a.write_shift(16,i,"hex"),a.write_shift(4,68+o.length),s.push(l)}return gA(s)}function uL(t,e){e||(e=Le(t));for(var r=0;r<t;++r)e.write_shift(1,0);return e}function hL(t,e){return t.read_shift(e)===1}function VA(t,e){return e||(e=Le(2)),e.write_shift(2,+!!t),e}function jB(t){return t.read_shift(2,"u")}function Sn(t,e){return e||(e=Le(2)),e.write_shift(2,t),e}function WB(t,e,r){return r||(r=Le(2)),r.write_shift(1,e=="e"?+t:+!!t),r.write_shift(1,e=="e"?1:0),r}function zB(t,e,r){var A=t.read_shift(r&&r.biff>=12?2:1),n="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=t.read_shift(1);i&&(n="dbcs-cont")}else r.biff==12&&(n="wstr");r.biff>=2&&r.biff<=5&&(n="cpstr");var a=A?t.read_shift(A,n):"";return a}function dL(t){var e=t.t||"",r=Le(3+0);r.write_shift(2,e.length),r.write_shift(1,1);var A=Le(2*e.length);A.write_shift(2*e.length,e,"utf16le");var n=[r,A];return gA(n)}function gL(t,e,r){var A;if(r){if(r.biff>=2&&r.biff<=5)return t.read_shift(e,"cpstr");if(r.biff>=12)return t.read_shift(e,"dbcs-cont")}var n=t.read_shift(1);return n===0?A=t.read_shift(e,"sbcs-cont"):A=t.read_shift(e,"dbcs-cont"),A}function pL(t,e,r){var A=t.read_shift(r&&r.biff==2?1:2);return A===0?(t.l++,""):gL(t,A,r)}function vL(t,e,r){if(r.biff>5)return pL(t,e,r);var A=t.read_shift(1);return A===0?(t.l++,""):t.read_shift(A,r.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function XB(t,e,r){return r||(r=Le(3+2*t.length)),r.write_shift(2,t.length),r.write_shift(1,1),r.write_shift(31,t,"utf16le"),r}function qB(t,e){e||(e=Le(6+t.length*2)),e.write_shift(4,1+t.length);for(var r=0;r<t.length;++r)e.write_shift(2,t.charCodeAt(r));return e.write_shift(2,0),e}function mL(t){var e=Le(512),r=0,A=t.Target;A.slice(0,7)=="file://"&&(A=A.slice(7));var n=A.indexOf("#"),i=n>-1?31:23;switch(A.charAt(0)){case"#":i=28;break;case".":i&=-3;break}e.write_shift(4,2),e.write_shift(4,i);var a=[8,6815827,6619237,4849780,83];for(r=0;r<a.length;++r)e.write_shift(4,a[r]);if(i==28)A=A.slice(1),qB(A,e);else if(i&2){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<a.length;++r)e.write_shift(1,parseInt(a[r],16));var s=n>-1?A.slice(0,n):A;for(e.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)e.write_shift(2,s.charCodeAt(r));e.write_shift(2,0),i&8&&qB(n>-1?A.slice(n+1):"",e)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<a.length;++r)e.write_shift(1,parseInt(a[r],16));for(var o=0;A.slice(o*3,o*3+3)=="../"||A.slice(o*3,o*3+3)=="..\\";)++o;for(e.write_shift(2,o),e.write_shift(4,A.length-3*o+1),r=0;r<A.length-3*o;++r)e.write_shift(1,A.charCodeAt(r+3*o)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),r=0;r<6;++r)e.write_shift(4,0)}return e.slice(0,e.l)}function gs(t,e,r,A){return A||(A=Le(6)),A.write_shift(2,t),A.write_shift(2,e),A.write_shift(2,r||0),A}function wL(t,e,r){var A=r.biff>8?4:2,n=t.read_shift(A),i=t.read_shift(A,"i"),a=t.read_shift(A,"i");return[n,i,a]}function BL(t){var e=t.read_shift(2),r=t.read_shift(2),A=t.read_shift(2),n=t.read_shift(2);return{s:{c:A,r:e},e:{c:n,r}}}function YB(t,e){return e||(e=Le(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function ad(t,e,r){var A=1536,n=16;switch(r.bookType){case"biff8":break;case"biff5":A=1280,n=8;break;case"biff4":A=4,n=6;break;case"biff3":A=3,n=6;break;case"biff2":A=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Le(n);return i.write_shift(2,A),i.write_shift(2,e),n>4&&i.write_shift(2,29282),n>6&&i.write_shift(2,1997),n>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function xL(t,e){var r=!e||e.biff==8,A=Le(r?112:54);for(A.write_shift(e.biff==8?2:1,7),r&&A.write_shift(1,0),A.write_shift(4,859007059),A.write_shift(4,5458548|(r?0:536870912));A.l<A.length;)A.write_shift(1,r?0:32);return A}function yL(t,e){var r=!e||e.biff>=8?2:1,A=Le(8+r*t.name.length);A.write_shift(4,t.pos),A.write_shift(1,t.hs||0),A.write_shift(1,t.dt),A.write_shift(1,t.name.length),e.biff>=8&&A.write_shift(1,1),A.write_shift(r*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var n=A.slice(0,A.l);return n.l=A.l,n}function CL(t,e){var r=Le(8);r.write_shift(4,t.Count),r.write_shift(4,t.Unique);for(var A=[],n=0;n<t.length;++n)A[n]=dL(t[n]);var i=gA([r].concat(A));return i.parts=[r.length].concat(A.map(function(a){return a.length})),i}function EL(){var t=Le(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function bL(t){var e=Le(18),r=1718;return t&&t.RTL&&(r|=64),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function FL(t,e){var r=t.name||"Arial",A=e&&e.biff==5,n=A?15+r.length:16+2*r.length,i=Le(n);return i.write_shift(2,(t.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),A||i.write_shift(1,1),i.write_shift((A?1:2)*r.length,r,A?"sbcs":"utf16le"),i}function SL(t,e,r,A){var n=Le(10);return gs(t,e,A,n),n.write_shift(4,r),n}function _L(t,e,r,A,n){var i=!n||n.biff==8,a=Le(6+2+ +i+(1+i)*r.length);return gs(t,e,A,a),a.write_shift(2,r.length),i&&a.write_shift(1,1),a.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),a}function TL(t,e,r,A){var n=r&&r.biff==5;A||(A=Le(n?3+e.length:5+2*e.length)),A.write_shift(2,t),A.write_shift(n?1:2,e.length),n||A.write_shift(1,1),A.write_shift((n?1:2)*e.length,e,n?"sbcs":"utf16le");var i=A.length>A.l?A.slice(0,A.l):A;return i.l==null&&(i.l=i.length),i}function UL(t,e){var r=e.biff==8||!e.biff?4:2,A=Le(2*r+6);return A.write_shift(r,t.s.r),A.write_shift(r,t.e.r+1),A.write_shift(2,t.s.c),A.write_shift(2,t.e.c+1),A.write_shift(2,0),A}function $B(t,e,r,A){var n=r&&r.biff==5;A||(A=Le(n?16:20)),A.write_shift(2,0),t.style?(A.write_shift(2,t.numFmtId||0),A.write_shift(2,65524)):(A.write_shift(2,t.numFmtId||0),A.write_shift(2,e<<4));var i=0;return t.numFmtId>0&&n&&(i|=1024),A.write_shift(4,i),A.write_shift(4,0),n||A.write_shift(4,0),A.write_shift(2,0),A}function IL(t){var e=Le(8);return e.write_shift(4,0),e.write_shift(2,t[0]?t[0]+1:0),e.write_shift(2,t[1]?t[1]+1:0),e}function LL(t,e,r,A,n,i){var a=Le(8);return gs(t,e,A,a),WB(r,i,a),a}function NL(t,e,r,A){var n=Le(14);return gs(t,e,A,n),hs(r,n),n}function QL(t,e,r){if(r.biff<8)return OL(t,e,r);for(var A=[],n=t.l+e,i=t.read_shift(r.biff>8?4:2);i--!==0;)A.push(wL(t,r.biff>8?12:6,r));if(t.l!=n)throw new Error("Bad ExternSheet: "+t.l+" != "+n);return A}function OL(t,e,r){t[t.l+1]==3&&t[t.l]++;var A=zB(t,e,r);return A.charCodeAt(0)==3?A.slice(1):A}function kL(t){var e=Le(2+t.length*8);e.write_shift(2,t.length);for(var r=0;r<t.length;++r)YB(t[r],e);return e}function DL(t){var e=Le(24),r=sA(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var A="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)e.write_shift(1,parseInt(A[n],16));return gA([e,mL(t[1])])}function PL(t){var e=t[1].Tooltip,r=Le(10+2*(e.length+1));r.write_shift(2,2048);var A=sA(t[0]);r.write_shift(2,A.r),r.write_shift(2,A.r),r.write_shift(2,A.c),r.write_shift(2,A.c);for(var n=0;n<e.length;++n)r.write_shift(2,e.charCodeAt(n));return r.write_shift(2,0),r}function RL(t){return t||(t=Le(4)),t.write_shift(2,1),t.write_shift(2,1),t}function ML(t,e,r){if(!r.cellStyles)return mi(t,e);var A=r&&r.biff>=12?4:2,n=t.read_shift(A),i=t.read_shift(A),a=t.read_shift(A),s=t.read_shift(A),o=t.read_shift(2);A==2&&(t.l+=2);var l={s:n,e:i,w:a,ixfe:s,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function HL(t,e){var r=Le(12);r.write_shift(2,e),r.write_shift(2,e),r.write_shift(2,t.width*256),r.write_shift(2,0);var A=0;return t.hidden&&(A|=1),r.write_shift(1,A),A=t.level||0,r.write_shift(1,A),r.write_shift(2,0),r}function VL(t){for(var e=Le(2*t),r=0;r<t;++r)e.write_shift(2,r+1);return e}function KL(t,e,r){var A=Le(15);return ql(A,t,e),A.write_shift(8,r,"f"),A}function GL(t,e,r){var A=Le(9);return ql(A,t,e),A.write_shift(2,r),A}var jL=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=G1({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,o){var l=[],c=as(1);switch(o.type){case"base64":c=Vn(ki(s));break;case"binary":c=Vn(s);break;case"buffer":case"array":c=s;break}fn(c,0);var h=c.read_shift(1),d=!!(h&136),u=!1,w=!1;switch(h){case 2:break;case 3:break;case 48:u=!0,d=!0;break;case 49:u=!0,d=!0;break;case 131:break;case 139:break;case 140:w=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var v=0,x=521;h==2&&(v=c.read_shift(2)),c.l+=3,h!=2&&(v=c.read_shift(4)),v>1048576&&(v=1e6),h!=2&&(x=c.read_shift(2));var y=c.read_shift(2),E=o.codepage||1252;h!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(E=t[c[c.l]]),c.l+=1,c.l+=2),w&&(c.l+=36);for(var F=[],k={},X=Math.min(c.length,h==2?521:x-10-(u?264:0)),q=w?32:11;c.l<X&&c[c.l]!=13;)switch(k={},k.name=is.utils.decode(E,c.slice(c.l,c.l+q)).replace(/[\u0000\r\n].*$/g,""),c.l+=q,k.type=String.fromCharCode(c.read_shift(1)),h!=2&&!w&&(k.offset=c.read_shift(4)),k.len=c.read_shift(1),h==2&&(k.offset=c.read_shift(2)),k.dec=c.read_shift(1),k.name.length&&F.push(k),h!=2&&(c.l+=w?13:14),k.type){case"B":(!u||k.len!=8)&&o.WTF&&console.log("Skipping "+k.name+":"+k.type);break;case"G":case"P":o.WTF&&console.log("Skipping "+k.name+":"+k.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+k.type)}if(c[c.l]!==13&&(c.l=x-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=x;var N=0,Q=0;for(l[0]=[],Q=0;Q!=F.length;++Q)l[0][Q]=F[Q].name;for(;v-- >0;){if(c[c.l]===42){c.l+=y;continue}for(++c.l,l[++N]=[],Q=0,Q=0;Q!=F.length;++Q){var K=c.slice(c.l,c.l+F[Q].len);c.l+=F[Q].len,fn(K,0);var Ae=is.utils.decode(E,K);switch(F[Q].type){case"C":Ae.trim().length&&(l[N][Q]=Ae.replace(/\s+$/,""));break;case"D":Ae.length===8?l[N][Q]=new Date(+Ae.slice(0,4),+Ae.slice(4,6)-1,+Ae.slice(6,8)):l[N][Q]=Ae;break;case"F":l[N][Q]=parseFloat(Ae.trim());break;case"+":case"I":l[N][Q]=w?K.read_shift(-4,"i")^2147483648:K.read_shift(4,"i");break;case"L":switch(Ae.trim().toUpperCase()){case"Y":case"T":l[N][Q]=!0;break;case"N":case"F":l[N][Q]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+Ae+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));l[N][Q]="##MEMO##"+(w?parseInt(Ae.trim(),10):K.read_shift(4));break;case"N":Ae=Ae.replace(/\u0000/g,"").trim(),Ae&&Ae!="."&&(l[N][Q]=+Ae||0);break;case"@":l[N][Q]=new Date(K.read_shift(-8,"f")-621356832e5);break;case"T":l[N][Q]=new Date((K.read_shift(4)-2440588)*864e5+K.read_shift(4));break;case"Y":l[N][Q]=K.read_shift(4,"i")/1e4+K.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[N][Q]=-K.read_shift(-8,"f");break;case"B":if(u&&F[Q].len==8){l[N][Q]=K.read_shift(8,"f");break}case"G":case"P":K.l+=F[Q].len;break;case"0":if(F[Q].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+F[Q].type)}}}if(h!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return o&&o.sheetRows&&(l=l.slice(0,o.sheetRows)),o.DBF=F,l}function A(s,o){var l=o||{};l.dateNF||(l.dateNF="yyyymmdd");var c=lo(r(s,l),l);return c["!cols"]=l.DBF.map(function(h){return{wch:h.len,DBF:h}}),delete l.DBF,c}function n(s,o){try{return os(A(s,o),o)}catch(l){if(o&&o.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function a(s,o){var l=o||{};if(+l.codepage>=0&&Ll(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=JA(),h=O0(s,{header:1,raw:!0,cellDates:!0}),d=h[0],u=h.slice(1),w=s["!cols"]||[],v=0,x=0,y=0,E=1;for(v=0;v<d.length;++v){if(((w[v]||{}).DBF||{}).name){d[v]=w[v].DBF.name,++y;continue}if(d[v]!=null){if(++y,typeof d[v]=="number"&&(d[v]=d[v].toString(10)),typeof d[v]!="string")throw new Error("DBF Invalid column name "+d[v]+" |"+typeof d[v]+"|");if(d.indexOf(d[v])!==v){for(x=0;x<1024;++x)if(d.indexOf(d[v]+"_"+x)==-1){d[v]+="_"+x;break}}}}var F=wr(s["!ref"]),k=[],X=[],q=[];for(v=0;v<=F.e.c-F.s.c;++v){var N="",Q="",K=0,Ae=[];for(x=0;x<u.length;++x)u[x][v]!=null&&Ae.push(u[x][v]);if(Ae.length==0||d[v]==null){k[v]="?";continue}for(x=0;x<Ae.length;++x){switch(typeof Ae[x]){case"number":Q="B";break;case"string":Q="C";break;case"boolean":Q="L";break;case"object":Q=Ae[x]instanceof Date?"D":"C";break;default:Q="C"}K=Math.max(K,String(Ae[x]).length),N=N&&N!=Q?"C":Q}K>250&&(K=250),Q=((w[v]||{}).DBF||{}).type,Q=="C"&&w[v].DBF.len>K&&(K=w[v].DBF.len),N=="B"&&Q=="N"&&(N="N",q[v]=w[v].DBF.dec,K=w[v].DBF.len),X[v]=N=="C"||Q=="N"?K:i[N]||0,E+=X[v],k[v]=N}var U=c.next(32);for(U.write_shift(4,318902576),U.write_shift(4,u.length),U.write_shift(2,296+32*y),U.write_shift(2,E),v=0;v<4;++v)U.write_shift(4,0);for(U.write_shift(4,0|(+e[yw]||3)<<8),v=0,x=0;v<d.length;++v)if(d[v]!=null){var T=c.next(32),V=(d[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);T.write_shift(1,V,"sbcs"),T.write_shift(1,k[v]=="?"?"C":k[v],"sbcs"),T.write_shift(4,x),T.write_shift(1,X[v]||i[k[v]]||0),T.write_shift(1,q[v]||0),T.write_shift(1,2),T.write_shift(4,0),T.write_shift(1,0),T.write_shift(4,0),T.write_shift(4,0),x+=X[v]||i[k[v]]||0}var Y=c.next(264);for(Y.write_shift(4,13),v=0;v<65;++v)Y.write_shift(4,0);for(v=0;v<u.length;++v){var ce=c.next(E);for(ce.write_shift(1,0),x=0;x<d.length;++x)if(d[x]!=null)switch(k[x]){case"L":ce.write_shift(1,u[v][x]==null?63:u[v][x]?84:70);break;case"B":ce.write_shift(8,u[v][x]||0,"f");break;case"N":var he="0";for(typeof u[v][x]=="number"&&(he=u[v][x].toFixed(q[x]||0)),y=0;y<X[x]-he.length;++y)ce.write_shift(1,32);ce.write_shift(1,he,"sbcs");break;case"D":u[v][x]?(ce.write_shift(4,("0000"+u[v][x].getFullYear()).slice(-4),"sbcs"),ce.write_shift(2,("00"+(u[v][x].getMonth()+1)).slice(-2),"sbcs"),ce.write_shift(2,("00"+u[v][x].getDate()).slice(-2),"sbcs")):ce.write_shift(8,"00000000","sbcs");break;case"C":var me=String(u[v][x]!=null?u[v][x]:"").slice(0,X[x]);for(ce.write_shift(1,me,"sbcs"),y=0;y<X[x]-me.length;++y)ce.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:n,to_sheet:A,from_sheet:a}}(),WL=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+pA(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,u){var w=t[u];return typeof w=="number"?Ew(w):w},A=function(d,u,w){var v=u.charCodeAt(0)-32<<4|w.charCodeAt(0)-48;return v==59?d:Ew(v)};t["|"]=254;function n(d,u){switch(u.type){case"base64":return i(ki(d),u);case"binary":return i(d,u);case"buffer":return i(Yt&&Buffer.isBuffer(d)?d.toString("binary"):Ql(d),u);case"array":return i(m0(d),u)}throw new Error("Unrecognized type "+u.type)}function i(d,u){var w=d.split(/[\n\r]+/),v=-1,x=-1,y=0,E=0,F=[],k=[],X=null,q={},N=[],Q=[],K=[],Ae=0,U;for(+u.codepage>=0&&Ll(+u.codepage);y!==w.length;++y){Ae=0;var T=w[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,A).replace(e,r),V=T.replace(/;;/g,"\0").split(";").map(function(O){return O.replace(/\u0000/g,";")}),Y=V[0],ce;if(T.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":V[1].charAt(0)=="P"&&k.push(T.slice(3).replace(/;;/g,";"));break;case"C":var he=!1,me=!1,ge=!1,we=!1,Be=-1,ke=-1;for(E=1;E<V.length;++E)switch(V[E].charAt(0)){case"A":break;case"X":x=parseInt(V[E].slice(1))-1,me=!0;break;case"Y":for(v=parseInt(V[E].slice(1))-1,me||(x=0),U=F.length;U<=v;++U)F[U]=[];break;case"K":ce=V[E].slice(1),ce.charAt(0)==='"'?ce=ce.slice(1,ce.length-1):ce==="TRUE"?ce=!0:ce==="FALSE"?ce=!1:isNaN(Ri(ce))?isNaN(Dl(ce).getDate())||(ce=HA(ce)):(ce=Ri(ce),X!==null&&Hw(X)&&(ce=qw(ce))),he=!0;break;case"E":we=!0;var C=GN(V[E].slice(1),{r:v,c:x});F[v][x]=[F[v][x],C];break;case"S":ge=!0,F[v][x]=[F[v][x],"S5S"];break;case"G":break;case"R":Be=parseInt(V[E].slice(1))-1;break;case"C":ke=parseInt(V[E].slice(1))-1;break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}if(he&&(F[v][x]&&F[v][x].length==2?F[v][x][0]=ce:F[v][x]=ce,X=null),ge){if(we)throw new Error("SYLK shared formula cannot have own formula");var _=Be>-1&&F[Be][ke];if(!_||!_[1])throw new Error("SYLK shared formula cannot find base");F[v][x][1]=jN(_[1],{r:v-Be,c:x-ke})}break;case"F":var S=0;for(E=1;E<V.length;++E)switch(V[E].charAt(0)){case"X":x=parseInt(V[E].slice(1))-1,++S;break;case"Y":for(v=parseInt(V[E].slice(1))-1,U=F.length;U<=v;++U)F[U]=[];break;case"M":Ae=parseInt(V[E].slice(1))/20;break;case"F":break;case"G":break;case"P":X=k[parseInt(V[E].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(K=V[E].slice(1).split(" "),U=parseInt(K[0],10);U<=parseInt(K[1],10);++U)Ae=parseInt(K[2],10),Q[U-1]=Ae===0?{hidden:!0}:{wch:Ae},od(Q[U-1]);break;case"C":x=parseInt(V[E].slice(1))-1,Q[x]||(Q[x]={});break;case"R":v=parseInt(V[E].slice(1))-1,N[v]||(N[v]={}),Ae>0?(N[v].hpt=Ae,N[v].hpx=n5(Ae)):Ae===0&&(N[v].hidden=!0);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}S<1&&(X=null);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+T)}}return N.length>0&&(q["!rows"]=N),Q.length>0&&(q["!cols"]=Q),u&&u.sheetRows&&(F=F.slice(0,u.sheetRows)),[F,q]}function a(d,u){var w=n(d,u),v=w[0],x=w[1],y=lo(v,u);return pA(x).forEach(function(E){y[E]=x[E]}),y}function s(d,u){return os(a(d,u),u)}function o(d,u,w,v){var x="C;Y"+(w+1)+";X"+(v+1)+";K";switch(d.t){case"n":x+=d.v||0,d.f&&!d.F&&(x+=";E"+fd(d.f,{r:w,c:v}));break;case"b":x+=d.v?"TRUE":"FALSE";break;case"e":x+=d.w||d.v;break;case"d":x+='"'+(d.w||d.v)+'"';break;case"s":x+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return x}function l(d,u){u.forEach(function(w,v){var x="F;W"+(v+1)+" "+(v+1)+" ";w.hidden?x+="0":(typeof w.width=="number"&&!w.wpx&&(w.wpx=S0(w.width)),typeof w.wpx=="number"&&!w.wch&&(w.wch=_0(w.wpx)),typeof w.wch=="number"&&(x+=Math.round(w.wch))),x.charAt(x.length-1)!=" "&&d.push(x)})}function c(d,u){u.forEach(function(w,v){var x="F;";w.hidden?x+="M0;":w.hpt?x+="M"+20*w.hpt+";":w.hpx&&(x+="M"+20*T0(w.hpx)+";"),x.length>2&&d.push(x+"R"+(v+1))})}function h(d,u){var w=["ID;PWXL;N;E"],v=[],x=wr(d["!ref"]),y,E=Array.isArray(d),F=`\r
|
|
287
287
|
`;w.push("P;PGeneral"),w.push("F;P0;DG0G8;M255"),d["!cols"]&&l(w,d["!cols"]),d["!rows"]&&c(w,d["!rows"]),w.push("B;Y"+(x.e.r-x.s.r+1)+";X"+(x.e.c-x.s.c+1)+";D"+[x.s.c,x.s.r,x.e.c,x.e.r].join(" "));for(var k=x.s.r;k<=x.e.r;++k)for(var X=x.s.c;X<=x.e.c;++X){var q=tr({r:k,c:X});y=E?(d[k]||[])[X]:d[q],!(!y||y.v==null&&(!y.f||y.F))&&v.push(o(y,d,k,X))}return w.join(F)+F+v.join(F)+F+"E"+F}return{to_workbook:s,to_sheet:a,from_sheet:h}}(),zL=function(){function t(i,a){switch(a.type){case"base64":return e(ki(i),a);case"binary":return e(i,a);case"buffer":return e(Yt&&Buffer.isBuffer(i)?i.toString("binary"):Ql(i),a);case"array":return e(m0(i),a)}throw new Error("Unrecognized type "+a.type)}function e(i,a){for(var s=i.split(`
|
|
288
288
|
`),o=-1,l=-1,c=0,h=[];c!==s.length;++c){if(s[c].trim()==="BOT"){h[++o]=[],l=0;continue}if(!(o<0)){var d=s[c].trim().split(","),u=d[0],w=d[1];++c;for(var v=s[c]||"";(v.match(/["]/g)||[]).length&1&&c<s.length-1;)v+=`
|
|
289
289
|
`+s[++c];switch(v=v.trim(),+u){case-1:if(v==="BOT"){h[++o]=[],l=0;continue}else if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?h[o][l]=!0:v==="FALSE"?h[o][l]=!1:isNaN(Ri(w))?isNaN(Dl(w).getDate())?h[o][l]=w:h[o][l]=HA(w):h[o][l]=Ri(w),++l;break;case 1:v=v.slice(1,v.length-1),v=v.replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),h[o][l++]=v!==""?v:null;break}if(v==="EOD")break}}return a&&a.sheetRows&&(h=h.slice(0,a.sheetRows)),h}function r(i,a){return lo(t(i,a),a)}function A(i,a){return os(r(i,a),a)}var n=function(){var i=function(o,l,c,h,d){o.push(l),o.push(c+","+h),o.push('"'+d.replace(/"/g,'""')+'"')},a=function(o,l,c,h){o.push(l+","+c),o.push(l==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(o){var l=[],c=wr(o["!ref"]),h,d=Array.isArray(o);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var u=c.s.r;u<=c.e.r;++u){a(l,-1,0,"BOT");for(var w=c.s.c;w<=c.e.c;++w){var v=tr({r:u,c:w});if(h=d?(o[u]||[])[w]:o[v],!h){a(l,1,0,"");continue}switch(h.t){case"n":var x=h.w;!x&&h.v!=null&&(x=h.v),x==null?h.f&&!h.F?a(l,1,0,"="+h.f):a(l,1,0,""):a(l,0,x,"V");break;case"b":a(l,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":a(l,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=Ea(h.z||Sr[14],YA(HA(h.v)))),a(l,0,h.w,"V");break;default:a(l,1,0,"")}}}a(l,-1,0,"EOD");var y=`\r
|
|
@@ -296,8 +296,8 @@ end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a
|
|
|
296
296
|
`),o="--SocialCalcSpreadsheetControlSave--";function l(h){if(!h||!h["!ref"])return"";for(var d=[],u=[],w,v="",x=un(h["!ref"]),y=Array.isArray(h),E=x.s.r;E<=x.e.r;++E)for(var F=x.s.c;F<=x.e.c;++F)if(v=tr({r:E,c:F}),w=y?(h[E]||[])[F]:h[v],!(!w||w.v==null||w.t==="z")){switch(u=["cell",v,"t"],w.t){case"s":case"str":u.push(e(w.v));break;case"n":w.f?(u[2]="vtf",u[3]="n",u[4]=w.v,u[5]=e(w.f)):(u[2]="v",u[3]=w.v);break;case"b":u[2]="vt"+(w.f?"f":"c"),u[3]="nl",u[4]=w.v?"1":"0",u[5]=e(w.f||(w.v?"TRUE":"FALSE"));break;case"d":var k=YA(HA(w.v));u[2]="vtc",u[3]="nd",u[4]=""+k,u[5]=w.w||Ea(w.z||Sr[14],k);break;case"e":continue}d.push(u.join(":"))}return d.push("sheet:c:"+(x.e.c-x.s.c+1)+":r:"+(x.e.r-x.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
|
|
297
297
|
`)}function c(h){return[i,a,s,a,l(h),o].join(`
|
|
298
298
|
`)}return{to_workbook:n,to_sheet:A,from_sheet:c}}(),XL=function(){function t(c,h,d,u,w){w.raw?h[d][u]=c:c===""||(c==="TRUE"?h[d][u]=!0:c==="FALSE"?h[d][u]=!1:isNaN(Ri(c))?isNaN(Dl(c).getDate())?h[d][u]=c:h[d][u]=HA(c):h[d][u]=Ri(c))}function e(c,h){var d=h||{},u=[];if(!c||c.length===0)return u;for(var w=c.split(/[\r\n]/),v=w.length-1;v>=0&&w[v].length===0;)--v;for(var x=10,y=0,E=0;E<=v;++E)y=w[E].indexOf(" "),y==-1?y=w[E].length:y++,x=Math.max(x,y);for(E=0;E<=v;++E){u[E]=[];var F=0;for(t(w[E].slice(0,x).trim(),u,E,F,d),F=1;F<=(w[E].length-x)/10+1;++F)t(w[E].slice(x+(F-1)*10,x+F*10).trim(),u,E,F,d)}return d.sheetRows&&(u=u.slice(0,d.sheetRows)),u}var r={44:",",9:" ",59:";",124:"|"},A={44:3,9:2,59:1,124:0};function n(c){for(var h={},d=!1,u=0,w=0;u<c.length;++u)(w=c.charCodeAt(u))==34?d=!d:!d&&w in r&&(h[w]=(h[w]||0)+1);w=[];for(u in h)Object.prototype.hasOwnProperty.call(h,u)&&w.push([h[u],u]);if(!w.length){h=A;for(u in h)Object.prototype.hasOwnProperty.call(h,u)&&w.push([h[u],u])}return w.sort(function(v,x){return v[0]-x[0]||A[v[1]]-A[x[1]]}),r[w.pop()[1]]||44}function i(c,h){var d=h||{},u="",w=d.dense?[]:{},v={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(u=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(u=c.charAt(4),c=c.slice(6)):u=n(c.slice(0,1024)):d&&d.FS?u=d.FS:u=n(c.slice(0,1024));var x=0,y=0,E=0,F=0,k=0,X=u.charCodeAt(0),q=!1,N=0,Q=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
|
|
299
|
-
`);var K=d.dateNF!=null?cI(d.dateNF):null;function Ae(){var U=c.slice(F,k),T={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)T.t="z";else if(d.raw)T.t="s",T.v=U;else if(U.trim().length===0)T.t="s",T.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(T.t="s",T.v=U.slice(2,-1).replace(/""/g,'"')):
|
|
300
|
-
`)}return{to_workbook:o,to_sheet:s,from_sheet:l}}(),ZB=function(){function t(C,_,S){if(C){fn(C,C.l||0);for(var O=S.Enum||Be;C.l<C.length;){var W=C.read_shift(2),ie=O[W]||O[65535],oe=C.read_shift(2),le=C.l+oe,ye=ie.f&&ie.f(C,oe,S);if(C.l=le,_(ye,ie,W))return}}}function e(C,_){switch(_.type){case"base64":return r(Vn(ki(C)),_);case"binary":return r(Vn(C),_);case"buffer":case"array":return r(C,_)}throw"Unsupported type "+_.type}function r(C,_){if(!C)return C;var S=_||{},O=S.dense?[]:{},W="Sheet1",ie="",oe=0,le={},ye=[],Ne=[],Re={s:{r:0,c:0},e:{r:0,c:0}},Xe=S.sheetRows||0;if(C[2]==0&&(C[3]==8||C[3]==9)&&C.length>=16&&C[14]==5&&C[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(C[2]==2)S.Enum=Be,t(C,function(Qe,rt,Me){switch(Me){case 0:S.vers=Qe,Qe>=4096&&(S.qpro=!0);break;case 6:Re=Qe;break;case 204:Qe&&(ie=Qe);break;case 222:ie=Qe;break;case 15:case 51:S.qpro||(Qe[1].v=Qe[1].v.slice(1));case 13:case 14:case 16:Me==14&&(Qe[2]&112)==112&&(Qe[2]&15)>1&&(Qe[2]&15)<15&&(Qe[1].z=S.dateNF||Sr[14],S.cellDates&&(Qe[1].t="d",Qe[1].v=qw(Qe[1].v))),S.qpro&&Qe[3]>oe&&(O["!ref"]=jr(Re),le[W]=O,ye.push(W),O=S.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},oe=Qe[3],W=ie||"Sheet"+(oe+1),ie="");var We=S.dense?(O[Qe[0].r]||[])[Qe[0].c]:O[tr(Qe[0])];if(We){We.t=Qe[1].t,We.v=Qe[1].v,Qe[1].z!=null&&(We.z=Qe[1].z),Qe[1].f!=null&&(We.f=Qe[1].f);break}S.dense?(O[Qe[0].r]||(O[Qe[0].r]=[]),O[Qe[0].r][Qe[0].c]=Qe[1]):O[tr(Qe[0])]=Qe[1];break}},S);else if(C[2]==26||C[2]==14)S.Enum=ke,C[2]==14&&(S.qpro=!0,C.l=0),t(C,function(Qe,rt,Me){switch(Me){case 204:W=Qe;break;case 22:Qe[1].v=Qe[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Qe[3]>oe&&(O["!ref"]=jr(Re),le[W]=O,ye.push(W),O=S.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},oe=Qe[3],W="Sheet"+(oe+1)),Xe>0&&Qe[0].r>=Xe)break;S.dense?(O[Qe[0].r]||(O[Qe[0].r]=[]),O[Qe[0].r][Qe[0].c]=Qe[1]):O[tr(Qe[0])]=Qe[1],Re.e.c<Qe[0].c&&(Re.e.c=Qe[0].c),Re.e.r<Qe[0].r&&(Re.e.r=Qe[0].r);break;case 27:Qe[14e3]&&(Ne[Qe[14e3][0]]=Qe[14e3][1]);break;case 1537:Ne[Qe[0]]=Qe[1],Qe[0]==oe&&(W=Qe[1]);break}},S);else throw new Error("Unrecognized LOTUS BOF "+C[2]);if(O["!ref"]=jr(Re),le[ie||W]=O,ye.push(ie||W),!Ne.length)return{SheetNames:ye,Sheets:le};for(var qe={},_e=[],re=0;re<Ne.length;++re)le[ye[re]]?(_e.push(Ne[re]||ye[re]),qe[Ne[re]]=le[Ne[re]]||le[ye[re]]):(_e.push(Ne[re]),qe[Ne[re]]={"!ref":"A1"});return{SheetNames:_e,Sheets:qe}}function A(C,_){var S=_||{};if(+S.codepage>=0&&Ll(+S.codepage),S.type=="string")throw new Error("Cannot write WK1 to JS string");var O=JA(),W=wr(C["!ref"]),ie=Array.isArray(C),oe=[];et(O,0,i(1030)),et(O,6,o(W));for(var le=Math.min(W.e.r,8191),ye=W.s.r;ye<=le;++ye)for(var Ne=mA(ye),Re=W.s.c;Re<=W.e.c;++Re){ye===W.s.r&&(oe[Re]=UA(Re));var Xe=oe[Re]+Ne,qe=ie?(C[ye]||[])[Re]:C[Xe];if(!(!qe||qe.t=="z"))if(qe.t=="n")(qe.v|0)==qe.v&&qe.v>=-32768&&qe.v<=32767?et(O,13,u(ye,Re,qe.v)):et(O,14,v(ye,Re,qe.v));else{var _e=Hi(qe);et(O,15,h(ye,Re,_e.slice(0,239)))}}return et(O,1),O.end()}function n(C,_){var S=_||{};if(+S.codepage>=0&&Ll(+S.codepage),S.type=="string")throw new Error("Cannot write WK3 to JS string");var O=JA();et(O,0,a(C));for(var W=0,ie=0;W<C.SheetNames.length;++W)(C.Sheets[C.SheetNames[W]]||{})["!ref"]&&et(O,27,we(C.SheetNames[W],ie++));var oe=0;for(W=0;W<C.SheetNames.length;++W){var le=C.Sheets[C.SheetNames[W]];if(!(!le||!le["!ref"])){for(var ye=wr(le["!ref"]),Ne=Array.isArray(le),Re=[],Xe=Math.min(ye.e.r,8191),qe=ye.s.r;qe<=Xe;++qe)for(var _e=mA(qe),re=ye.s.c;re<=ye.e.c;++re){qe===ye.s.r&&(Re[re]=UA(re));var Qe=Re[re]+_e,rt=Ne?(le[qe]||[])[re]:le[Qe];if(!(!rt||rt.t=="z"))if(rt.t=="n")et(O,23,Ae(qe,re,oe,rt.v));else{var Me=Hi(rt);et(O,22,N(qe,re,oe,Me.slice(0,239)))}}++oe}}return et(O,1),O.end()}function i(C){var _=Le(2);return _.write_shift(2,C),_}function a(C){var _=Le(26);_.write_shift(2,4096),_.write_shift(2,4),_.write_shift(4,0);for(var S=0,O=0,W=0,ie=0;ie<C.SheetNames.length;++ie){var oe=C.SheetNames[ie],le=C.Sheets[oe];if(!(!le||!le["!ref"])){++W;var ye=un(le["!ref"]);S<ye.e.r&&(S=ye.e.r),O<ye.e.c&&(O=ye.e.c)}}return S>8191&&(S=8191),_.write_shift(2,S),_.write_shift(1,W),_.write_shift(1,O),_.write_shift(2,0),_.write_shift(2,0),_.write_shift(1,1),_.write_shift(1,2),_.write_shift(4,0),_.write_shift(4,0),_}function s(C,_,S){var O={s:{c:0,r:0},e:{c:0,r:0}};return _==8&&S.qpro?(O.s.c=C.read_shift(1),C.l++,O.s.r=C.read_shift(2),O.e.c=C.read_shift(1),C.l++,O.e.r=C.read_shift(2),O):(O.s.c=C.read_shift(2),O.s.r=C.read_shift(2),_==12&&S.qpro&&(C.l+=2),O.e.c=C.read_shift(2),O.e.r=C.read_shift(2),_==12&&S.qpro&&(C.l+=2),O.s.c==65535&&(O.s.c=O.e.c=O.s.r=O.e.r=0),O)}function o(C){var _=Le(8);return _.write_shift(2,C.s.c),_.write_shift(2,C.s.r),_.write_shift(2,C.e.c),_.write_shift(2,C.e.r),_}function l(C,_,S){var O=[{c:0,r:0},{t:"n",v:0},0,0];return S.qpro&&S.vers!=20768?(O[0].c=C.read_shift(1),O[3]=C.read_shift(1),O[0].r=C.read_shift(2),C.l+=2):(O[2]=C.read_shift(1),O[0].c=C.read_shift(2),O[0].r=C.read_shift(2)),O}function c(C,_,S){var O=C.l+_,W=l(C,_,S);if(W[1].t="s",S.vers==20768){C.l++;var ie=C.read_shift(1);return W[1].v=C.read_shift(ie,"utf8"),W}return S.qpro&&C.l++,W[1].v=C.read_shift(O-C.l,"cstr"),W}function h(C,_,S){var O=Le(7+S.length);O.write_shift(1,255),O.write_shift(2,_),O.write_shift(2,C),O.write_shift(1,39);for(var W=0;W<O.length;++W){var ie=S.charCodeAt(W);O.write_shift(1,ie>=128?95:ie)}return O.write_shift(1,0),O}function d(C,_,S){var O=l(C,_,S);return O[1].v=C.read_shift(2,"i"),O}function u(C,_,S){var O=Le(7);return O.write_shift(1,255),O.write_shift(2,_),O.write_shift(2,C),O.write_shift(2,S,"i"),O}function w(C,_,S){var O=l(C,_,S);return O[1].v=C.read_shift(8,"f"),O}function v(C,_,S){var O=Le(13);return O.write_shift(1,255),O.write_shift(2,_),O.write_shift(2,C),O.write_shift(8,S,"f"),O}function x(C,_,S){var O=C.l+_,W=l(C,_,S);if(W[1].v=C.read_shift(8,"f"),S.qpro)C.l=O;else{var ie=C.read_shift(2);k(C.slice(C.l,C.l+ie),W),C.l+=ie}return W}function y(C,_,S){var O=_&32768;return _&=-32769,_=(O?C:0)+(_>=8192?_-16384:_),(O?"":"$")+(S?UA(_):mA(_))}var E={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},F=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(C,_){fn(C,0);for(var S=[],O=0,W="",ie="",oe="",le="";C.l<C.length;){var ye=C[C.l++];switch(ye){case 0:S.push(C.read_shift(8,"f"));break;case 1:ie=y(_[0].c,C.read_shift(2),!0),W=y(_[0].r,C.read_shift(2),!1),S.push(ie+W);break;case 2:{var Ne=y(_[0].c,C.read_shift(2),!0),Re=y(_[0].r,C.read_shift(2),!1);ie=y(_[0].c,C.read_shift(2),!0),W=y(_[0].r,C.read_shift(2),!1),S.push(Ne+Re+":"+ie+W)}break;case 3:if(C.l<C.length){console.error("WK1 premature formula end");return}break;case 4:S.push("("+S.pop()+")");break;case 5:S.push(C.read_shift(2));break;case 6:{for(var Xe="";ye=C[C.l++];)Xe+=String.fromCharCode(ye);S.push('"'+Xe.replace(/"/g,'""')+'"')}break;case 8:S.push("-"+S.pop());break;case 23:S.push("+"+S.pop());break;case 22:S.push("NOT("+S.pop()+")");break;case 20:case 21:le=S.pop(),oe=S.pop(),S.push(["AND","OR"][ye-20]+"("+oe+","+le+")");break;default:if(ye<32&&F[ye])le=S.pop(),oe=S.pop(),S.push(oe+F[ye]+le);else if(E[ye]){if(O=E[ye][1],O==69&&(O=C[C.l++]),O>S.length){console.error("WK1 bad formula parse 0x"+ye.toString(16)+":|"+S.join("|")+"|");return}var qe=S.slice(-O);S.length-=O,S.push(E[ye][0]+"("+qe.join(",")+")")}else return ye<=7?console.error("WK1 invalid opcode "+ye.toString(16)):ye<=24?console.error("WK1 unsupported op "+ye.toString(16)):ye<=30?console.error("WK1 invalid opcode "+ye.toString(16)):ye<=115?console.error("WK1 unsupported function opcode "+ye.toString(16)):console.error("WK1 unrecognized opcode "+ye.toString(16))}}S.length==1?_[1].f=""+S[0]:console.error("WK1 bad formula parse |"+S.join("|")+"|")}function X(C){var _=[{c:0,r:0},{t:"n",v:0},0];return _[0].r=C.read_shift(2),_[3]=C[C.l++],_[0].c=C[C.l++],_}function q(C,_){var S=X(C);return S[1].t="s",S[1].v=C.read_shift(_-4,"cstr"),S}function N(C,_,S,O){var W=Le(6+O.length);W.write_shift(2,C),W.write_shift(1,S),W.write_shift(1,_),W.write_shift(1,39);for(var ie=0;ie<O.length;++ie){var oe=O.charCodeAt(ie);W.write_shift(1,oe>=128?95:oe)}return W.write_shift(1,0),W}function Q(C,_){var S=X(C);S[1].v=C.read_shift(2);var O=S[1].v>>1;if(S[1].v&1)switch(O&7){case 0:O=(O>>3)*5e3;break;case 1:O=(O>>3)*500;break;case 2:O=(O>>3)/20;break;case 3:O=(O>>3)/200;break;case 4:O=(O>>3)/2e3;break;case 5:O=(O>>3)/2e4;break;case 6:O=(O>>3)/16;break;case 7:O=(O>>3)/64;break}return S[1].v=O,S}function K(C,_){var S=X(C),O=C.read_shift(4),W=C.read_shift(4),ie=C.read_shift(2);if(ie==65535)return O===0&&W===3221225472?(S[1].t="e",S[1].v=15):O===0&&W===3489660928?(S[1].t="e",S[1].v=42):S[1].v=0,S;var oe=ie&32768;return ie=(ie&32767)-16446,S[1].v=(1-oe*2)*(W*Math.pow(2,ie+32)+O*Math.pow(2,ie)),S}function Ae(C,_,S,O){var W=Le(14);if(W.write_shift(2,C),W.write_shift(1,S),W.write_shift(1,_),O==0)return W.write_shift(4,0),W.write_shift(4,0),W.write_shift(2,65535),W;var ie=0,oe=0,le=0,ye=0;return O<0&&(ie=1,O=-O),oe=Math.log2(O)|0,O/=Math.pow(2,oe-31),ye=O>>>0,ye&2147483648||(O/=2,++oe,ye=O>>>0),O-=ye,ye|=2147483648,ye>>>=0,O*=Math.pow(2,32),le=O>>>0,W.write_shift(4,le),W.write_shift(4,ye),oe+=16383+(ie?32768:0),W.write_shift(2,oe),W}function U(C,_){var S=K(C);return C.l+=_-14,S}function T(C,_){var S=X(C),O=C.read_shift(4);return S[1].v=O>>6,S}function V(C,_){var S=X(C),O=C.read_shift(8,"f");return S[1].v=O,S}function Y(C,_){var S=V(C);return C.l+=_-10,S}function ce(C,_){return C[C.l+_-1]==0?C.read_shift(_,"cstr"):""}function he(C,_){var S=C[C.l++];S>_-1&&(S=_-1);for(var O="";O.length<S;)O+=String.fromCharCode(C[C.l++]);return O}function me(C,_,S){if(!(!S.qpro||_<21)){var O=C.read_shift(1);C.l+=17,C.l+=1,C.l+=2;var W=C.read_shift(_-21,"cstr");return[O,W]}}function ge(C,_){for(var S={},O=C.l+_;C.l<O;){var W=C.read_shift(2);if(W==14e3){for(S[W]=[0,""],S[W][0]=C.read_shift(2);C[C.l];)S[W][1]+=String.fromCharCode(C[C.l]),C.l++;C.l++}}return S}function we(C,_){var S=Le(5+C.length);S.write_shift(2,14e3),S.write_shift(2,_);for(var O=0;O<C.length;++O){var W=C.charCodeAt(O);S[S.l++]=W>127?95:W}return S[S.l++]=0,S}var Be={0:{n:"BOF",f:jB},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:x},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ce},222:{n:"SHEETNAMELP",f:he},65535:{n:""}},ke={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:q},23:{n:"NUMBER17",f:K},24:{n:"NUMBER18",f:Q},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ge},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:T},38:{n:"??"},39:{n:"NUMBER27",f:V},40:{n:"FORMULA28",f:Y},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ce},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:me},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:A,book_to_wk3:n,to_workbook:e}}(),qL=/^\s|\s$|[\t\n\r]/;function e5(t,e){if(!e.bookSST)return"";var r=[Gr];r[r.length]=Ze("sst",null,{xmlns:so[0],count:t.Count,uniqueCount:t.Unique});for(var A=0;A!=t.length;++A)if(t[A]!=null){var n=t[A],i="<si>";n.r?i+=n.r:(i+="<t",n.t||(n.t=""),n.t.match(qL)&&(i+=' xml:space="preserve"'),i+=">"+er(n.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function YL(t){return[t.read_shift(4),t.read_shift(4)]}function $L(t,e){return e||(e=Le(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var JL=VI;function ZL(t){var e=JA();He(e,159,$L(t));for(var r=0;r<t.length;++r)He(e,19,JL(t[r]));return He(e,160),e.end()}function e6(t){for(var e=[],r=t.split(""),A=0;A<r.length;++A)e[A]=r[A].charCodeAt(0);return e}function t5(t){var e=0,r,A=e6(t),n=A.length+1,i,a,s,o,l;for(r=as(n),r[0]=A.length,i=1;i!=n;++i)r[i]=A[i-1];for(i=n-1;i>=0;--i)a=r[i],s=e&16384?1:0,o=e<<1&32767,l=s|o,e=l^a;return e^52811}var t6=function(){function t(n,i){switch(i.type){case"base64":return e(ki(n),i);case"binary":return e(n,i);case"buffer":return e(Yt&&Buffer.isBuffer(n)?n.toString("binary"):Ql(n),i);case"array":return e(m0(n),i)}throw new Error("Unrecognized type "+i.type)}function e(n,i){var a=i||{},s=a.dense?[]:{},o=n.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,h){Array.isArray(s)&&(s[h]=[]);for(var d=/\\\w+\b/g,u=0,w,v=-1;w=d.exec(c);){switch(w[0]){case"\\cell":var x=c.slice(u,d.lastIndex-w[0].length);if(x[0]==" "&&(x=x.slice(1)),++v,x.length){var y={v:x,t:"s"};Array.isArray(s)?s[h][v]=y:s[tr({r:h,c:v})]=y}break}u=d.lastIndex}v>l.e.c&&(l.e.c=v)}),s["!ref"]=jr(l),s}function r(n,i){return os(t(n,i),i)}function A(n){for(var i=["{\\rtf1\\ansi"],a=wr(n["!ref"]),s,o=Array.isArray(n),l=a.s.r;l<=a.e.r;++l){i.push("\\trowd\\trautofit1");for(var c=a.s.c;c<=a.e.c;++c)i.push("\\cellx"+(c+1));for(i.push("\\pard\\intbl"),c=a.s.c;c<=a.e.c;++c){var h=tr({r:l,c});s=o?(n[l]||[])[c]:n[h],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(Hi(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:A}}();function r5(t){for(var e=0,r=1;e!=3;++e)r=r*256+(t[e]>255?255:t[e]<0?0:t[e]);return r.toString(16).toUpperCase().slice(1)}var r6=6,Vi=r6;function S0(t){return Math.floor((t+Math.round(128/Vi)/256)*Vi)}function _0(t){return Math.floor((t-5)/Vi*100+.5)/100}function sd(t){return Math.round((t*Vi+5)/Vi*256)/256}function od(t){t.width?(t.wpx=S0(t.width),t.wch=_0(t.wpx),t.MDW=Vi):t.wpx?(t.wch=_0(t.wpx),t.width=sd(t.wch),t.MDW=Vi):typeof t.wch=="number"&&(t.width=sd(t.wch),t.wpx=S0(t.width),t.MDW=Vi),t.customWidth&&delete t.customWidth}var A6=96,A5=A6;function T0(t){return t*96/A5}function n5(t){return t*A5/96}function n6(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var A=r[0];A<=r[1];++A)t[A]!=null&&(e[e.length]=Ze("numFmt",null,{numFmtId:A,formatCode:er(t[A])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=Ze("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function i6(t){var e=[];return e[e.length]=Ze("cellXfs",null),t.forEach(function(r){e[e.length]=Ze("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=Ze("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function i5(t,e){var r=[Gr,Ze("styleSheet",null,{xmlns:so[0],"xmlns:vt":aA.vt})],A;return t.SSF&&(A=n6(t.SSF))!=null&&(r[r.length]=A),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(A=i6(e.cellXfs))&&(r[r.length]=A),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function a6(t,e){var r=t.read_shift(2),A=IA(t);return[r,A]}function s6(t,e,r){r||(r=Le(6+4*e.length)),r.write_shift(2,t),oA(e,r);var A=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),A}function o6(t,e,r){var A={};A.sz=t.read_shift(2)/20;var n=qI(t);n.fItalic&&(A.italic=1),n.fCondense&&(A.condense=1),n.fExtend&&(A.extend=1),n.fShadow&&(A.shadow=1),n.fOutline&&(A.outline=1),n.fStrikeout&&(A.strike=1);var i=t.read_shift(2);switch(i===700&&(A.bold=1),t.read_shift(2)){case 1:A.vertAlign="superscript";break;case 2:A.vertAlign="subscript";break}var a=t.read_shift(1);a!=0&&(A.underline=a);var s=t.read_shift(1);s>0&&(A.family=s);var o=t.read_shift(1);switch(o>0&&(A.charset=o),t.l++,A.color=XI(t),t.read_shift(1)){case 1:A.scheme="major";break;case 2:A.scheme="minor";break}return A.name=IA(t),A}function l6(t,e){e||(e=Le(25+4*32)),e.write_shift(2,t.sz*20),YI(t,e),e.write_shift(2,t.bold?700:400);var r=0;t.vertAlign=="superscript"?r=1:t.vertAlign=="subscript"&&(r=2),e.write_shift(2,r),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),y0(t.color,e);var A=0;return t.scheme=="major"&&(A=1),t.scheme=="minor"&&(A=2),e.write_shift(1,A),oA(t.name,e),e.length>e.l?e.slice(0,e.l):e}var c6=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ld,f6=mi;function a5(t,e){e||(e=Le(4*3+8*7+16*1)),ld||(ld=G1(c6));var r=ld[t.patternType];r==null&&(r=40),e.write_shift(4,r);var A=0;if(r!=40)for(y0({auto:1},e),y0({auto:1},e);A<12;++A)e.write_shift(4,0);else{for(;A<4;++A)e.write_shift(4,0);for(;A<12;++A)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function u6(t,e){var r=t.l+e,A=t.read_shift(2),n=t.read_shift(2);return t.l=r,{ixfe:A,numFmtId:n}}function s5(t,e,r){r||(r=Le(16)),r.write_shift(2,e||0),r.write_shift(2,t.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var A=0;return r.write_shift(1,A),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Wl(t,e){return e||(e=Le(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var h6=mi;function d6(t,e){return e||(e=Le(51)),e.write_shift(1,0),Wl(null,e),Wl(null,e),Wl(null,e),Wl(null,e),Wl(null,e),e.length>e.l?e.slice(0,e.l):e}function g6(t,e){return e||(e=Le(12+4*10)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),x0(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function p6(t,e,r){var A=Le(2052);return A.write_shift(4,t),x0(e,A),x0(r,A),A.length>A.l?A.slice(0,A.l):A}function v6(t,e){if(e){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(A){for(var n=A[0];n<=A[1];++n)e[n]!=null&&++r}),r!=0&&(He(t,615,Gn(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(A){for(var n=A[0];n<=A[1];++n)e[n]!=null&&He(t,44,s6(n,e[n]))}),He(t,616))}}function m6(t){var e=1;He(t,611,Gn(e)),He(t,43,l6({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),He(t,612)}function w6(t){var e=2;He(t,603,Gn(e)),He(t,45,a5({patternType:"none"})),He(t,45,a5({patternType:"gray125"})),He(t,604)}function B6(t){var e=1;He(t,613,Gn(e)),He(t,46,d6()),He(t,614)}function x6(t){var e=1;He(t,626,Gn(e)),He(t,47,s5({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),He(t,627)}function y6(t,e){He(t,617,Gn(e.length)),e.forEach(function(r){He(t,47,s5(r,0))}),He(t,618)}function C6(t){var e=1;He(t,619,Gn(e)),He(t,48,g6({xfId:0,builtinId:0,name:"Normal"})),He(t,620)}function E6(t){var e=0;He(t,505,Gn(e)),He(t,506)}function b6(t){var e=0;He(t,508,p6(e,"TableStyleMedium9","PivotStyleMedium4")),He(t,509)}function F6(t,e){var r=JA();return He(r,278),v6(r,t.SSF),m6(r),w6(r),B6(r),x6(r),y6(r,e.cellXfs),C6(r),E6(r),b6(r),He(r,279),r.end()}function o5(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[Gr];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function S6(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:IA(t)}}function _6(t){var e=Le(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),oA(t.name,e),e.slice(0,e.l)}function T6(t){for(var e=[],r=t.read_shift(4);r-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function U6(t){var e=Le(4+8*t.length);e.write_shift(4,t.length);for(var r=0;r<t.length;++r)e.write_shift(4,t[r][0]),e.write_shift(4,t[r][1]);return e}function I6(t,e){var r=Le(8+2*e.length);return r.write_shift(4,t),oA(e,r),r.slice(0,r.l)}function L6(t){return t.l+=4,t.read_shift(4)!=0}function N6(t,e){var r=Le(8);return r.write_shift(4,t),r.write_shift(4,e?1:0),r}function Q6(){var t=JA();return He(t,332),He(t,334,Gn(1)),He(t,335,_6({name:"XLDAPR",version:12e4,flags:3496657072})),He(t,336),He(t,339,I6(1,"XLDAPR")),He(t,52),He(t,35,Gn(514)),He(t,4096,Gn(0)),He(t,4097,Sn(1)),He(t,36),He(t,53),He(t,340),He(t,337,N6(1,!0)),He(t,51,U6([[1,0]])),He(t,338),He(t,333),t.end()}function l5(){var t=[Gr];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
|
299
|
+
`);var K=d.dateNF!=null?cI(d.dateNF):null;function Ae(){var U=c.slice(F,k),T={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)T.t="z";else if(d.raw)T.t="s",T.v=U;else if(U.trim().length===0)T.t="s",T.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(T.t="s",T.v=U.slice(2,-1).replace(/""/g,'"')):WN(U)?(T.t="n",T.f=U.slice(1)):(T.t="s",T.v=U);else if(U=="TRUE")T.t="b",T.v=!0;else if(U=="FALSE")T.t="b",T.v=!1;else if(!isNaN(E=Ri(U)))T.t="n",d.cellText!==!1&&(T.w=U),T.v=E;else if(!isNaN(Dl(U).getDate())||K&&U.match(K)){T.z=d.dateNF||Sr[14];var V=0;K&&U.match(K)&&(U=fI(U,d.dateNF,U.match(K)||[]),V=1),d.cellDates?(T.t="d",T.v=HA(U,V)):(T.t="n",T.v=YA(HA(U,V))),d.cellText!==!1&&(T.w=Ea(T.z,T.v instanceof Date?YA(T.v):T.v)),d.cellNF||delete T.z}else T.t="s",T.v=U;if(T.t=="z"||(d.dense?(w[x]||(w[x]=[]),w[x][y]=T):w[tr({c:y,r:x})]=T),F=k+1,Q=c.charCodeAt(F),v.e.c<y&&(v.e.c=y),v.e.r<x&&(v.e.r=x),N==X)++y;else if(y=0,++x,d.sheetRows&&d.sheetRows<=x)return!0}e:for(;k<c.length;++k)switch(N=c.charCodeAt(k)){case 34:Q===34&&(q=!q);break;case X:case 10:case 13:if(!q&&Ae())break e;break}return k-F>0&&Ae(),w["!ref"]=jr(v),w}function a(c,h){return!(h&&h.PRN)||h.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,h):lo(e(c,h),h)}function s(c,h){var d="",u=h.type=="string"?[0,0,0,0]:ak(c,h);switch(h.type){case"base64":d=ki(c);break;case"binary":d=c;break;case"buffer":h.codepage==65001?d=c.toString("utf8"):h.codepage&&typeof is<"u"?d=is.utils.decode(h.codepage,c):d=Yt&&Buffer.isBuffer(c)?c.toString("binary"):Ql(c);break;case"array":d=m0(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+h.type)}return u[0]==239&&u[1]==187&&u[2]==191?d=Pl(d.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?d=Pl(d):h.type=="binary"&&typeof is<"u"&&h.codepage&&(d=is.utils.decode(h.codepage,is.utils.encode(28591,d))),d.slice(0,19)=="socialcalc:version:"?JB.to_sheet(h.type=="string"?d:Pl(d),h):a(d,h)}function o(c,h){return os(s(c,h),h)}function l(c){for(var h=[],d=wr(c["!ref"]),u,w=Array.isArray(c),v=d.s.r;v<=d.e.r;++v){for(var x=[],y=d.s.c;y<=d.e.c;++y){var E=tr({r:v,c:y});if(u=w?(c[v]||[])[y]:c[E],!u||u.v==null){x.push(" ");continue}for(var F=(u.w||(Hi(u),u.w)||"").slice(0,10);F.length<10;)F+=" ";x.push(F+(y===0?" ":""))}h.push(x.join(""))}return h.join(`
|
|
300
|
+
`)}return{to_workbook:o,to_sheet:s,from_sheet:l}}(),ZB=function(){function t(C,_,S){if(C){fn(C,C.l||0);for(var O=S.Enum||Be;C.l<C.length;){var W=C.read_shift(2),ie=O[W]||O[65535],oe=C.read_shift(2),le=C.l+oe,ye=ie.f&&ie.f(C,oe,S);if(C.l=le,_(ye,ie,W))return}}}function e(C,_){switch(_.type){case"base64":return r(Vn(ki(C)),_);case"binary":return r(Vn(C),_);case"buffer":case"array":return r(C,_)}throw"Unsupported type "+_.type}function r(C,_){if(!C)return C;var S=_||{},O=S.dense?[]:{},W="Sheet1",ie="",oe=0,le={},ye=[],Ne=[],Re={s:{r:0,c:0},e:{r:0,c:0}},Xe=S.sheetRows||0;if(C[2]==0&&(C[3]==8||C[3]==9)&&C.length>=16&&C[14]==5&&C[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(C[2]==2)S.Enum=Be,t(C,function(Qe,rt,Me){switch(Me){case 0:S.vers=Qe,Qe>=4096&&(S.qpro=!0);break;case 6:Re=Qe;break;case 204:Qe&&(ie=Qe);break;case 222:ie=Qe;break;case 15:case 51:S.qpro||(Qe[1].v=Qe[1].v.slice(1));case 13:case 14:case 16:Me==14&&(Qe[2]&112)==112&&(Qe[2]&15)>1&&(Qe[2]&15)<15&&(Qe[1].z=S.dateNF||Sr[14],S.cellDates&&(Qe[1].t="d",Qe[1].v=qw(Qe[1].v))),S.qpro&&Qe[3]>oe&&(O["!ref"]=jr(Re),le[W]=O,ye.push(W),O=S.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},oe=Qe[3],W=ie||"Sheet"+(oe+1),ie="");var We=S.dense?(O[Qe[0].r]||[])[Qe[0].c]:O[tr(Qe[0])];if(We){We.t=Qe[1].t,We.v=Qe[1].v,Qe[1].z!=null&&(We.z=Qe[1].z),Qe[1].f!=null&&(We.f=Qe[1].f);break}S.dense?(O[Qe[0].r]||(O[Qe[0].r]=[]),O[Qe[0].r][Qe[0].c]=Qe[1]):O[tr(Qe[0])]=Qe[1];break}},S);else if(C[2]==26||C[2]==14)S.Enum=ke,C[2]==14&&(S.qpro=!0,C.l=0),t(C,function(Qe,rt,Me){switch(Me){case 204:W=Qe;break;case 22:Qe[1].v=Qe[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Qe[3]>oe&&(O["!ref"]=jr(Re),le[W]=O,ye.push(W),O=S.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},oe=Qe[3],W="Sheet"+(oe+1)),Xe>0&&Qe[0].r>=Xe)break;S.dense?(O[Qe[0].r]||(O[Qe[0].r]=[]),O[Qe[0].r][Qe[0].c]=Qe[1]):O[tr(Qe[0])]=Qe[1],Re.e.c<Qe[0].c&&(Re.e.c=Qe[0].c),Re.e.r<Qe[0].r&&(Re.e.r=Qe[0].r);break;case 27:Qe[14e3]&&(Ne[Qe[14e3][0]]=Qe[14e3][1]);break;case 1537:Ne[Qe[0]]=Qe[1],Qe[0]==oe&&(W=Qe[1]);break}},S);else throw new Error("Unrecognized LOTUS BOF "+C[2]);if(O["!ref"]=jr(Re),le[ie||W]=O,ye.push(ie||W),!Ne.length)return{SheetNames:ye,Sheets:le};for(var qe={},_e=[],re=0;re<Ne.length;++re)le[ye[re]]?(_e.push(Ne[re]||ye[re]),qe[Ne[re]]=le[Ne[re]]||le[ye[re]]):(_e.push(Ne[re]),qe[Ne[re]]={"!ref":"A1"});return{SheetNames:_e,Sheets:qe}}function A(C,_){var S=_||{};if(+S.codepage>=0&&Ll(+S.codepage),S.type=="string")throw new Error("Cannot write WK1 to JS string");var O=JA(),W=wr(C["!ref"]),ie=Array.isArray(C),oe=[];et(O,0,i(1030)),et(O,6,o(W));for(var le=Math.min(W.e.r,8191),ye=W.s.r;ye<=le;++ye)for(var Ne=mA(ye),Re=W.s.c;Re<=W.e.c;++Re){ye===W.s.r&&(oe[Re]=UA(Re));var Xe=oe[Re]+Ne,qe=ie?(C[ye]||[])[Re]:C[Xe];if(!(!qe||qe.t=="z"))if(qe.t=="n")(qe.v|0)==qe.v&&qe.v>=-32768&&qe.v<=32767?et(O,13,u(ye,Re,qe.v)):et(O,14,v(ye,Re,qe.v));else{var _e=Hi(qe);et(O,15,h(ye,Re,_e.slice(0,239)))}}return et(O,1),O.end()}function n(C,_){var S=_||{};if(+S.codepage>=0&&Ll(+S.codepage),S.type=="string")throw new Error("Cannot write WK3 to JS string");var O=JA();et(O,0,a(C));for(var W=0,ie=0;W<C.SheetNames.length;++W)(C.Sheets[C.SheetNames[W]]||{})["!ref"]&&et(O,27,we(C.SheetNames[W],ie++));var oe=0;for(W=0;W<C.SheetNames.length;++W){var le=C.Sheets[C.SheetNames[W]];if(!(!le||!le["!ref"])){for(var ye=wr(le["!ref"]),Ne=Array.isArray(le),Re=[],Xe=Math.min(ye.e.r,8191),qe=ye.s.r;qe<=Xe;++qe)for(var _e=mA(qe),re=ye.s.c;re<=ye.e.c;++re){qe===ye.s.r&&(Re[re]=UA(re));var Qe=Re[re]+_e,rt=Ne?(le[qe]||[])[re]:le[Qe];if(!(!rt||rt.t=="z"))if(rt.t=="n")et(O,23,Ae(qe,re,oe,rt.v));else{var Me=Hi(rt);et(O,22,N(qe,re,oe,Me.slice(0,239)))}}++oe}}return et(O,1),O.end()}function i(C){var _=Le(2);return _.write_shift(2,C),_}function a(C){var _=Le(26);_.write_shift(2,4096),_.write_shift(2,4),_.write_shift(4,0);for(var S=0,O=0,W=0,ie=0;ie<C.SheetNames.length;++ie){var oe=C.SheetNames[ie],le=C.Sheets[oe];if(!(!le||!le["!ref"])){++W;var ye=un(le["!ref"]);S<ye.e.r&&(S=ye.e.r),O<ye.e.c&&(O=ye.e.c)}}return S>8191&&(S=8191),_.write_shift(2,S),_.write_shift(1,W),_.write_shift(1,O),_.write_shift(2,0),_.write_shift(2,0),_.write_shift(1,1),_.write_shift(1,2),_.write_shift(4,0),_.write_shift(4,0),_}function s(C,_,S){var O={s:{c:0,r:0},e:{c:0,r:0}};return _==8&&S.qpro?(O.s.c=C.read_shift(1),C.l++,O.s.r=C.read_shift(2),O.e.c=C.read_shift(1),C.l++,O.e.r=C.read_shift(2),O):(O.s.c=C.read_shift(2),O.s.r=C.read_shift(2),_==12&&S.qpro&&(C.l+=2),O.e.c=C.read_shift(2),O.e.r=C.read_shift(2),_==12&&S.qpro&&(C.l+=2),O.s.c==65535&&(O.s.c=O.e.c=O.s.r=O.e.r=0),O)}function o(C){var _=Le(8);return _.write_shift(2,C.s.c),_.write_shift(2,C.s.r),_.write_shift(2,C.e.c),_.write_shift(2,C.e.r),_}function l(C,_,S){var O=[{c:0,r:0},{t:"n",v:0},0,0];return S.qpro&&S.vers!=20768?(O[0].c=C.read_shift(1),O[3]=C.read_shift(1),O[0].r=C.read_shift(2),C.l+=2):(O[2]=C.read_shift(1),O[0].c=C.read_shift(2),O[0].r=C.read_shift(2)),O}function c(C,_,S){var O=C.l+_,W=l(C,_,S);if(W[1].t="s",S.vers==20768){C.l++;var ie=C.read_shift(1);return W[1].v=C.read_shift(ie,"utf8"),W}return S.qpro&&C.l++,W[1].v=C.read_shift(O-C.l,"cstr"),W}function h(C,_,S){var O=Le(7+S.length);O.write_shift(1,255),O.write_shift(2,_),O.write_shift(2,C),O.write_shift(1,39);for(var W=0;W<O.length;++W){var ie=S.charCodeAt(W);O.write_shift(1,ie>=128?95:ie)}return O.write_shift(1,0),O}function d(C,_,S){var O=l(C,_,S);return O[1].v=C.read_shift(2,"i"),O}function u(C,_,S){var O=Le(7);return O.write_shift(1,255),O.write_shift(2,_),O.write_shift(2,C),O.write_shift(2,S,"i"),O}function w(C,_,S){var O=l(C,_,S);return O[1].v=C.read_shift(8,"f"),O}function v(C,_,S){var O=Le(13);return O.write_shift(1,255),O.write_shift(2,_),O.write_shift(2,C),O.write_shift(8,S,"f"),O}function x(C,_,S){var O=C.l+_,W=l(C,_,S);if(W[1].v=C.read_shift(8,"f"),S.qpro)C.l=O;else{var ie=C.read_shift(2);k(C.slice(C.l,C.l+ie),W),C.l+=ie}return W}function y(C,_,S){var O=_&32768;return _&=-32769,_=(O?C:0)+(_>=8192?_-16384:_),(O?"":"$")+(S?UA(_):mA(_))}var E={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},F=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(C,_){fn(C,0);for(var S=[],O=0,W="",ie="",oe="",le="";C.l<C.length;){var ye=C[C.l++];switch(ye){case 0:S.push(C.read_shift(8,"f"));break;case 1:ie=y(_[0].c,C.read_shift(2),!0),W=y(_[0].r,C.read_shift(2),!1),S.push(ie+W);break;case 2:{var Ne=y(_[0].c,C.read_shift(2),!0),Re=y(_[0].r,C.read_shift(2),!1);ie=y(_[0].c,C.read_shift(2),!0),W=y(_[0].r,C.read_shift(2),!1),S.push(Ne+Re+":"+ie+W)}break;case 3:if(C.l<C.length){console.error("WK1 premature formula end");return}break;case 4:S.push("("+S.pop()+")");break;case 5:S.push(C.read_shift(2));break;case 6:{for(var Xe="";ye=C[C.l++];)Xe+=String.fromCharCode(ye);S.push('"'+Xe.replace(/"/g,'""')+'"')}break;case 8:S.push("-"+S.pop());break;case 23:S.push("+"+S.pop());break;case 22:S.push("NOT("+S.pop()+")");break;case 20:case 21:le=S.pop(),oe=S.pop(),S.push(["AND","OR"][ye-20]+"("+oe+","+le+")");break;default:if(ye<32&&F[ye])le=S.pop(),oe=S.pop(),S.push(oe+F[ye]+le);else if(E[ye]){if(O=E[ye][1],O==69&&(O=C[C.l++]),O>S.length){console.error("WK1 bad formula parse 0x"+ye.toString(16)+":|"+S.join("|")+"|");return}var qe=S.slice(-O);S.length-=O,S.push(E[ye][0]+"("+qe.join(",")+")")}else return ye<=7?console.error("WK1 invalid opcode "+ye.toString(16)):ye<=24?console.error("WK1 unsupported op "+ye.toString(16)):ye<=30?console.error("WK1 invalid opcode "+ye.toString(16)):ye<=115?console.error("WK1 unsupported function opcode "+ye.toString(16)):console.error("WK1 unrecognized opcode "+ye.toString(16))}}S.length==1?_[1].f=""+S[0]:console.error("WK1 bad formula parse |"+S.join("|")+"|")}function X(C){var _=[{c:0,r:0},{t:"n",v:0},0];return _[0].r=C.read_shift(2),_[3]=C[C.l++],_[0].c=C[C.l++],_}function q(C,_){var S=X(C);return S[1].t="s",S[1].v=C.read_shift(_-4,"cstr"),S}function N(C,_,S,O){var W=Le(6+O.length);W.write_shift(2,C),W.write_shift(1,S),W.write_shift(1,_),W.write_shift(1,39);for(var ie=0;ie<O.length;++ie){var oe=O.charCodeAt(ie);W.write_shift(1,oe>=128?95:oe)}return W.write_shift(1,0),W}function Q(C,_){var S=X(C);S[1].v=C.read_shift(2);var O=S[1].v>>1;if(S[1].v&1)switch(O&7){case 0:O=(O>>3)*5e3;break;case 1:O=(O>>3)*500;break;case 2:O=(O>>3)/20;break;case 3:O=(O>>3)/200;break;case 4:O=(O>>3)/2e3;break;case 5:O=(O>>3)/2e4;break;case 6:O=(O>>3)/16;break;case 7:O=(O>>3)/64;break}return S[1].v=O,S}function K(C,_){var S=X(C),O=C.read_shift(4),W=C.read_shift(4),ie=C.read_shift(2);if(ie==65535)return O===0&&W===3221225472?(S[1].t="e",S[1].v=15):O===0&&W===3489660928?(S[1].t="e",S[1].v=42):S[1].v=0,S;var oe=ie&32768;return ie=(ie&32767)-16446,S[1].v=(1-oe*2)*(W*Math.pow(2,ie+32)+O*Math.pow(2,ie)),S}function Ae(C,_,S,O){var W=Le(14);if(W.write_shift(2,C),W.write_shift(1,S),W.write_shift(1,_),O==0)return W.write_shift(4,0),W.write_shift(4,0),W.write_shift(2,65535),W;var ie=0,oe=0,le=0,ye=0;return O<0&&(ie=1,O=-O),oe=Math.log2(O)|0,O/=Math.pow(2,oe-31),ye=O>>>0,ye&2147483648||(O/=2,++oe,ye=O>>>0),O-=ye,ye|=2147483648,ye>>>=0,O*=Math.pow(2,32),le=O>>>0,W.write_shift(4,le),W.write_shift(4,ye),oe+=16383+(ie?32768:0),W.write_shift(2,oe),W}function U(C,_){var S=K(C);return C.l+=_-14,S}function T(C,_){var S=X(C),O=C.read_shift(4);return S[1].v=O>>6,S}function V(C,_){var S=X(C),O=C.read_shift(8,"f");return S[1].v=O,S}function Y(C,_){var S=V(C);return C.l+=_-10,S}function ce(C,_){return C[C.l+_-1]==0?C.read_shift(_,"cstr"):""}function he(C,_){var S=C[C.l++];S>_-1&&(S=_-1);for(var O="";O.length<S;)O+=String.fromCharCode(C[C.l++]);return O}function me(C,_,S){if(!(!S.qpro||_<21)){var O=C.read_shift(1);C.l+=17,C.l+=1,C.l+=2;var W=C.read_shift(_-21,"cstr");return[O,W]}}function ge(C,_){for(var S={},O=C.l+_;C.l<O;){var W=C.read_shift(2);if(W==14e3){for(S[W]=[0,""],S[W][0]=C.read_shift(2);C[C.l];)S[W][1]+=String.fromCharCode(C[C.l]),C.l++;C.l++}}return S}function we(C,_){var S=Le(5+C.length);S.write_shift(2,14e3),S.write_shift(2,_);for(var O=0;O<C.length;++O){var W=C.charCodeAt(O);S[S.l++]=W>127?95:W}return S[S.l++]=0,S}var Be={0:{n:"BOF",f:jB},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:x},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ce},222:{n:"SHEETNAMELP",f:he},65535:{n:""}},ke={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:q},23:{n:"NUMBER17",f:K},24:{n:"NUMBER18",f:Q},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ge},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:T},38:{n:"??"},39:{n:"NUMBER27",f:V},40:{n:"FORMULA28",f:Y},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ce},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:me},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:A,book_to_wk3:n,to_workbook:e}}(),qL=/^\s|\s$|[\t\n\r]/;function e5(t,e){if(!e.bookSST)return"";var r=[Gr];r[r.length]=Ze("sst",null,{xmlns:so[0],count:t.Count,uniqueCount:t.Unique});for(var A=0;A!=t.length;++A)if(t[A]!=null){var n=t[A],i="<si>";n.r?i+=n.r:(i+="<t",n.t||(n.t=""),n.t.match(qL)&&(i+=' xml:space="preserve"'),i+=">"+er(n.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function YL(t){return[t.read_shift(4),t.read_shift(4)]}function $L(t,e){return e||(e=Le(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var JL=VI;function ZL(t){var e=JA();He(e,159,$L(t));for(var r=0;r<t.length;++r)He(e,19,JL(t[r]));return He(e,160),e.end()}function eN(t){for(var e=[],r=t.split(""),A=0;A<r.length;++A)e[A]=r[A].charCodeAt(0);return e}function t5(t){var e=0,r,A=eN(t),n=A.length+1,i,a,s,o,l;for(r=as(n),r[0]=A.length,i=1;i!=n;++i)r[i]=A[i-1];for(i=n-1;i>=0;--i)a=r[i],s=e&16384?1:0,o=e<<1&32767,l=s|o,e=l^a;return e^52811}var tN=function(){function t(n,i){switch(i.type){case"base64":return e(ki(n),i);case"binary":return e(n,i);case"buffer":return e(Yt&&Buffer.isBuffer(n)?n.toString("binary"):Ql(n),i);case"array":return e(m0(n),i)}throw new Error("Unrecognized type "+i.type)}function e(n,i){var a=i||{},s=a.dense?[]:{},o=n.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,h){Array.isArray(s)&&(s[h]=[]);for(var d=/\\\w+\b/g,u=0,w,v=-1;w=d.exec(c);){switch(w[0]){case"\\cell":var x=c.slice(u,d.lastIndex-w[0].length);if(x[0]==" "&&(x=x.slice(1)),++v,x.length){var y={v:x,t:"s"};Array.isArray(s)?s[h][v]=y:s[tr({r:h,c:v})]=y}break}u=d.lastIndex}v>l.e.c&&(l.e.c=v)}),s["!ref"]=jr(l),s}function r(n,i){return os(t(n,i),i)}function A(n){for(var i=["{\\rtf1\\ansi"],a=wr(n["!ref"]),s,o=Array.isArray(n),l=a.s.r;l<=a.e.r;++l){i.push("\\trowd\\trautofit1");for(var c=a.s.c;c<=a.e.c;++c)i.push("\\cellx"+(c+1));for(i.push("\\pard\\intbl"),c=a.s.c;c<=a.e.c;++c){var h=tr({r:l,c});s=o?(n[l]||[])[c]:n[h],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(Hi(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:A}}();function r5(t){for(var e=0,r=1;e!=3;++e)r=r*256+(t[e]>255?255:t[e]<0?0:t[e]);return r.toString(16).toUpperCase().slice(1)}var rN=6,Vi=rN;function S0(t){return Math.floor((t+Math.round(128/Vi)/256)*Vi)}function _0(t){return Math.floor((t-5)/Vi*100+.5)/100}function sd(t){return Math.round((t*Vi+5)/Vi*256)/256}function od(t){t.width?(t.wpx=S0(t.width),t.wch=_0(t.wpx),t.MDW=Vi):t.wpx?(t.wch=_0(t.wpx),t.width=sd(t.wch),t.MDW=Vi):typeof t.wch=="number"&&(t.width=sd(t.wch),t.wpx=S0(t.width),t.MDW=Vi),t.customWidth&&delete t.customWidth}var AN=96,A5=AN;function T0(t){return t*96/A5}function n5(t){return t*A5/96}function nN(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var A=r[0];A<=r[1];++A)t[A]!=null&&(e[e.length]=Ze("numFmt",null,{numFmtId:A,formatCode:er(t[A])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=Ze("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function iN(t){var e=[];return e[e.length]=Ze("cellXfs",null),t.forEach(function(r){e[e.length]=Ze("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=Ze("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function i5(t,e){var r=[Gr,Ze("styleSheet",null,{xmlns:so[0],"xmlns:vt":aA.vt})],A;return t.SSF&&(A=nN(t.SSF))!=null&&(r[r.length]=A),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(A=iN(e.cellXfs))&&(r[r.length]=A),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function aN(t,e){var r=t.read_shift(2),A=IA(t);return[r,A]}function sN(t,e,r){r||(r=Le(6+4*e.length)),r.write_shift(2,t),oA(e,r);var A=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),A}function oN(t,e,r){var A={};A.sz=t.read_shift(2)/20;var n=qI(t);n.fItalic&&(A.italic=1),n.fCondense&&(A.condense=1),n.fExtend&&(A.extend=1),n.fShadow&&(A.shadow=1),n.fOutline&&(A.outline=1),n.fStrikeout&&(A.strike=1);var i=t.read_shift(2);switch(i===700&&(A.bold=1),t.read_shift(2)){case 1:A.vertAlign="superscript";break;case 2:A.vertAlign="subscript";break}var a=t.read_shift(1);a!=0&&(A.underline=a);var s=t.read_shift(1);s>0&&(A.family=s);var o=t.read_shift(1);switch(o>0&&(A.charset=o),t.l++,A.color=XI(t),t.read_shift(1)){case 1:A.scheme="major";break;case 2:A.scheme="minor";break}return A.name=IA(t),A}function lN(t,e){e||(e=Le(25+4*32)),e.write_shift(2,t.sz*20),YI(t,e),e.write_shift(2,t.bold?700:400);var r=0;t.vertAlign=="superscript"?r=1:t.vertAlign=="subscript"&&(r=2),e.write_shift(2,r),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),y0(t.color,e);var A=0;return t.scheme=="major"&&(A=1),t.scheme=="minor"&&(A=2),e.write_shift(1,A),oA(t.name,e),e.length>e.l?e.slice(0,e.l):e}var cN=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ld,fN=mi;function a5(t,e){e||(e=Le(4*3+8*7+16*1)),ld||(ld=G1(cN));var r=ld[t.patternType];r==null&&(r=40),e.write_shift(4,r);var A=0;if(r!=40)for(y0({auto:1},e),y0({auto:1},e);A<12;++A)e.write_shift(4,0);else{for(;A<4;++A)e.write_shift(4,0);for(;A<12;++A)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function uN(t,e){var r=t.l+e,A=t.read_shift(2),n=t.read_shift(2);return t.l=r,{ixfe:A,numFmtId:n}}function s5(t,e,r){r||(r=Le(16)),r.write_shift(2,e||0),r.write_shift(2,t.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var A=0;return r.write_shift(1,A),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Wl(t,e){return e||(e=Le(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var hN=mi;function dN(t,e){return e||(e=Le(51)),e.write_shift(1,0),Wl(null,e),Wl(null,e),Wl(null,e),Wl(null,e),Wl(null,e),e.length>e.l?e.slice(0,e.l):e}function gN(t,e){return e||(e=Le(12+4*10)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),x0(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function pN(t,e,r){var A=Le(2052);return A.write_shift(4,t),x0(e,A),x0(r,A),A.length>A.l?A.slice(0,A.l):A}function vN(t,e){if(e){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(A){for(var n=A[0];n<=A[1];++n)e[n]!=null&&++r}),r!=0&&(He(t,615,Gn(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(A){for(var n=A[0];n<=A[1];++n)e[n]!=null&&He(t,44,sN(n,e[n]))}),He(t,616))}}function mN(t){var e=1;He(t,611,Gn(e)),He(t,43,lN({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),He(t,612)}function wN(t){var e=2;He(t,603,Gn(e)),He(t,45,a5({patternType:"none"})),He(t,45,a5({patternType:"gray125"})),He(t,604)}function BN(t){var e=1;He(t,613,Gn(e)),He(t,46,dN()),He(t,614)}function xN(t){var e=1;He(t,626,Gn(e)),He(t,47,s5({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),He(t,627)}function yN(t,e){He(t,617,Gn(e.length)),e.forEach(function(r){He(t,47,s5(r,0))}),He(t,618)}function CN(t){var e=1;He(t,619,Gn(e)),He(t,48,gN({xfId:0,builtinId:0,name:"Normal"})),He(t,620)}function EN(t){var e=0;He(t,505,Gn(e)),He(t,506)}function bN(t){var e=0;He(t,508,pN(e,"TableStyleMedium9","PivotStyleMedium4")),He(t,509)}function FN(t,e){var r=JA();return He(r,278),vN(r,t.SSF),mN(r),wN(r),BN(r),xN(r),yN(r,e.cellXfs),CN(r),EN(r),bN(r),He(r,279),r.end()}function o5(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[Gr];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function SN(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:IA(t)}}function _N(t){var e=Le(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),oA(t.name,e),e.slice(0,e.l)}function TN(t){for(var e=[],r=t.read_shift(4);r-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function UN(t){var e=Le(4+8*t.length);e.write_shift(4,t.length);for(var r=0;r<t.length;++r)e.write_shift(4,t[r][0]),e.write_shift(4,t[r][1]);return e}function IN(t,e){var r=Le(8+2*e.length);return r.write_shift(4,t),oA(e,r),r.slice(0,r.l)}function LN(t){return t.l+=4,t.read_shift(4)!=0}function NN(t,e){var r=Le(8);return r.write_shift(4,t),r.write_shift(4,e?1:0),r}function QN(){var t=JA();return He(t,332),He(t,334,Gn(1)),He(t,335,_N({name:"XLDAPR",version:12e4,flags:3496657072})),He(t,336),He(t,339,IN(1,"XLDAPR")),He(t,52),He(t,35,Gn(514)),He(t,4096,Gn(0)),He(t,4097,Sn(1)),He(t,36),He(t,53),He(t,340),He(t,337,NN(1,!0)),He(t,51,UN([[1,0]])),He(t,338),He(t,333),t.end()}function l5(){var t=[Gr];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
|
301
301
|
<metadataTypes count="1">
|
|
302
302
|
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
|
|
303
303
|
</metadataTypes>
|
|
@@ -315,11 +315,11 @@ end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a
|
|
|
315
315
|
<rc t="1" v="0"/>
|
|
316
316
|
</bk>
|
|
317
317
|
</cellMetadata>
|
|
318
|
-
</metadata>`),t.join("")}function
|
|
318
|
+
</metadata>`),t.join("")}function ON(t){var e={};e.i=t.read_shift(4);var r={};r.r=t.read_shift(4),r.c=t.read_shift(4),e.r=tr(r);var A=t.read_shift(1);return A&2&&(e.l="1"),A&8&&(e.a="1"),e}var go=1024;function c5(t,e){for(var r=[21600,21600],A=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),n=[Ze("xml",null,{"xmlns:v":ln.v,"xmlns:o":ln.o,"xmlns:x":ln.x,"xmlns:mv":ln.mv}).replace(/\/>/,">"),Ze("o:shapelayout",Ze("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Ze("v:shapetype",[Ze("v:stroke",null,{joinstyle:"miter"}),Ze("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:A})];go<t*1e3;)go+=1e3;return e.forEach(function(i){var a=sA(i[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var o=s.type=="gradient"?Ze("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=Ze("v:fill",o,s),c={on:"t",obscured:"t"};++go,n=n.concat(["<v:shape"+Rl({id:"_x0000_s"+go,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,Ze("v:shadow",null,c),Ze("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",vA("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),vA("x:AutoFill","False"),vA("x:Row",String(a.r)),vA("x:Column",String(a.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),n.push("</xml>"),n.join("")}function f5(t){var e=[Gr,Ze("comments",null,{xmlns:so[0]})],r=[];return e.push("<authors>"),t.forEach(function(A){A[1].forEach(function(n){var i=er(n.a);r.indexOf(i)==-1&&(r.push(i),e.push("<author>"+i+"</author>")),n.T&&n.ID&&r.indexOf("tc="+n.ID)==-1&&(r.push("tc="+n.ID),e.push("<author>tc="+n.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(A){var n=0,i=[];if(A[1][0]&&A[1][0].T&&A[1][0].ID?n=r.indexOf("tc="+A[1][0].ID):A[1].forEach(function(o){o.a&&(n=r.indexOf(er(o.a))),i.push(o.t||"")}),e.push('<comment ref="'+A[0]+'" authorId="'+n+'"><text>'),i.length<=1)e.push(vA("t",er(i[0]||"")));else{for(var a=`Comment:
|
|
319
319
|
`+i[0]+`
|
|
320
320
|
`,s=1;s<i.length;++s)a+=`Reply:
|
|
321
321
|
`+i[s]+`
|
|
322
|
-
`;e.push(vA("t",er(a)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function k6(t,e,r){var A=[Gr,Ze("ThreadedComments",null,{xmlns:aA.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(n){var i="";(n[1]||[]).forEach(function(a,s){if(!a.T){delete a.ID;return}a.a&&e.indexOf(a.a)==-1&&e.push(a.a);var o={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=o.id:o.parentId=i,a.ID=o.id,a.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(a.a)).slice(-12)+"}"),A.push(Ze("threadedComment",vA("text",a.t||""),o))})}),A.push("</ThreadedComments>"),A.join("")}function D6(t){var e=[Gr,Ze("personList",null,{xmlns:aA.TCMNT,"xmlns:x":so[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,A){e.push(Ze("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+A).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}function P6(t){var e={};e.iauthor=t.read_shift(4);var r=us(t);return e.rfx=r.s,e.ref=tr(r.s),t.l+=16,e}function R6(t,e){return e==null&&(e=Le(36)),e.write_shift(4,t[1].iauthor),co(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var M6=IA;function H6(t){return oA(t.slice(0,54))}function V6(t){var e=JA(),r=[];return He(e,628),He(e,630),t.forEach(function(A){A[1].forEach(function(n){r.indexOf(n.a)>-1||(r.push(n.a.slice(0,54)),He(e,632,H6(n.a)))})}),He(e,631),He(e,633),t.forEach(function(A){A[1].forEach(function(n){n.iauthor=r.indexOf(n.a);var i={s:sA(A[0]),e:sA(A[0])};He(e,635,R6([i,n])),n.t&&n.t.length>0&&He(e,637,GI(n)),He(e,636),delete n.iauthor})}),He(e,634),He(e,629),e.end()}function K6(t,e){e.FullPaths.forEach(function(r,A){if(A!=0){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&or.utils.cfb_add(t,n,e.FileIndex[A].content)}})}var u5=["xlsb","xlsm","xlam","biff8","xla"],G6=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function r(A,n,i,a){var s=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),a.length==0?s=!0:a.charAt(0)=="["&&(s=!0,a=a.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=a.length>0?parseInt(a,10)|0:0;return s?c+=e.c:--c,o?l+=e.r:--l,n+(s?"":"$")+UA(c)+(o?"":"$")+mA(l)}return function(n,i){return e=i,n.replace(t,r)}}(),cd=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,fd=function(){return function(e,r){return e.replace(cd,function(A,n,i,a,s,o){var l=ed(a)-(i?0:r.c),c=Z1(o)-(s?0:r.r),h=c==0?"":s?c+1:"["+c+"]",d=l==0?"":i?l+1:"["+l+"]";return n+"R"+h+"C"+d})}}();function j6(t,e){return t.replace(cd,function(r,A,n,i,a,s){return A+(n=="$"?n+i:UA(ed(i)+e.c))+(a=="$"?a+s:mA(Z1(s)+e.r))})}function W6(t){return t.length!=1}function Wr(t){t.l+=1}function ba(t,e){var r=t.read_shift(e==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function h5(t,e,r){var A=2;if(r){if(r.biff>=2&&r.biff<=5)return d5(t);r.biff==12&&(A=4)}var n=t.read_shift(A),i=t.read_shift(A),a=ba(t,2),s=ba(t,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function d5(t){var e=ba(t,2),r=ba(t,2),A=t.read_shift(1),n=t.read_shift(1);return{s:{r:e[0],c:A,cRel:e[1],rRel:e[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function z6(t,e,r){if(r.biff<8)return d5(t);var A=t.read_shift(r.biff==12?4:2),n=t.read_shift(r.biff==12?4:2),i=ba(t,2),a=ba(t,2);return{s:{r:A,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:a[0],cRel:a[1],rRel:a[2]}}}function g5(t,e,r){if(r&&r.biff>=2&&r.biff<=5)return X6(t);var A=t.read_shift(r&&r.biff==12?4:2),n=ba(t,2);return{r:A,c:n[0],cRel:n[1],rRel:n[2]}}function X6(t){var e=ba(t,2),r=t.read_shift(1);return{r:e[0],c:r,cRel:e[1],rRel:e[2]}}function q6(t){var e=t.read_shift(2),r=t.read_shift(2);return{r:e,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function Y6(t,e,r){var A=r&&r.biff?r.biff:8;if(A>=2&&A<=5)return $6(t);var n=t.read_shift(A>=12?4:2),i=t.read_shift(2),a=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;n>524287;)n-=1048576;if(a==1)for(;i>8191;)i=i-16384;return{r:n,c:i,cRel:a,rRel:s}}function $6(t){var e=t.read_shift(2),r=t.read_shift(1),A=(e&32768)>>15,n=(e&16384)>>14;return e&=16383,A==1&&e>=8192&&(e=e-16384),n==1&&r>=128&&(r=r-256),{r:e,c:r,cRel:n,rRel:A}}function J6(t,e,r){var A=(t[t.l++]&96)>>5,n=h5(t,r.biff>=2&&r.biff<=5?6:8,r);return[A,n]}function Z6(t,e,r){var A=(t[t.l++]&96)>>5,n=t.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}var a=h5(t,i,r);return[A,n,a]}function eN(t,e,r){var A=(t[t.l++]&96)>>5;return t.l+=r&&r.biff>8?12:r.biff<8?6:8,[A]}function tN(t,e,r){var A=(t[t.l++]&96)>>5,n=t.read_shift(2),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}return t.l+=i,[A,n]}function rN(t,e,r){var A=(t[t.l++]&96)>>5,n=z6(t,e-1,r);return[A,n]}function AN(t,e,r){var A=(t[t.l++]&96)>>5;return t.l+=r.biff==2?6:r.biff==12?14:7,[A]}function p5(t){var e=t[t.l+1]&1,r=1;return t.l+=4,[e,r]}function nN(t,e,r){t.l+=2;for(var A=t.read_shift(r&&r.biff==2?1:2),n=[],i=0;i<=A;++i)n.push(t.read_shift(r&&r.biff==2?1:2));return n}function iN(t,e,r){var A=t[t.l+1]&255?1:0;return t.l+=2,[A,t.read_shift(r&&r.biff==2?1:2)]}function aN(t,e,r){var A=t[t.l+1]&255?1:0;return t.l+=2,[A,t.read_shift(r&&r.biff==2?1:2)]}function sN(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function oN(t,e,r){var A=t[t.l+1]&255?1:0;return t.l+=r&&r.biff==2?3:4,[A]}function v5(t){var e=t.read_shift(1),r=t.read_shift(1);return[e,r]}function lN(t){return t.read_shift(2),v5(t)}function cN(t){return t.read_shift(2),v5(t)}function fN(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=g5(t,0,r);return[A,n]}function uN(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=Y6(t,0,r);return[A,n]}function hN(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=t.read_shift(2);r&&r.biff==5&&(t.l+=12);var i=g5(t,0,r);return[A,n,i]}function dN(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=t.read_shift(r&&r.biff<=3?1:2);return[d8[n],y5[n],A]}function gN(t,e,r){var A=t[t.l++],n=t.read_shift(1),i=r&&r.biff<=3?[A==88?-1:0,t.read_shift(1)]:pN(t);return[n,(i[0]===0?y5:h8)[i[1]]]}function pN(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function vN(t,e,r){t.l+=r&&r.biff==2?3:4}function mN(t,e,r){if(t.l++,r&&r.biff==12)return[t.read_shift(4,"i"),0];var A=t.read_shift(2),n=t.read_shift(r&&r.biff==2?1:2);return[A,n]}function wN(t){return t.l++,jl[t.read_shift(1)]}function BN(t){return t.l++,t.read_shift(2)}function xN(t){return t.l++,t.read_shift(1)!==0}function yN(t){return t.l++,fo(t)}function CN(t,e,r){return t.l++,zB(t,e-1,r)}function EN(t,e){var r=[t.read_shift(1)];if(e==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=hL(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:r[1]=jl[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:r[1]=fo(t);break;case 2:r[1]=vL(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function bN(t,e,r){for(var A=t.read_shift(r.biff==12?4:2),n=[],i=0;i!=A;++i)n.push((r.biff==12?us:BL)(t));return n}function FN(t,e,r){var A=0,n=0;r.biff==12?(A=t.read_shift(4),n=t.read_shift(4)):(n=1+t.read_shift(1),A=1+t.read_shift(2)),r.biff>=2&&r.biff<8&&(--A,--n==0&&(n=256));for(var i=0,a=[];i!=A&&(a[i]=[]);++i)for(var s=0;s!=n;++s)a[i][s]=EN(t,r.biff);return a}function SN(t,e,r){var A=t.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,i=t.read_shift(n);switch(r.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[A,0,i]}function _N(t,e,r){if(r.biff==5)return TN(t);var A=t.read_shift(1)>>>5&3,n=t.read_shift(2),i=t.read_shift(4);return[A,n,i]}function TN(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2,"i");t.l+=8;var A=t.read_shift(2);return t.l+=12,[e,r,A]}function UN(t,e,r){var A=t.read_shift(1)>>>5&3;t.l+=r&&r.biff==2?3:4;var n=t.read_shift(r&&r.biff==2?1:2);return[A,n]}function IN(t,e,r){var A=t.read_shift(1)>>>5&3,n=t.read_shift(r&&r.biff==2?1:2);return[A,n]}function LN(t,e,r){var A=t.read_shift(1)>>>5&3;return t.l+=4,r.biff<8&&t.l--,r.biff==12&&(t.l+=2),[A]}function NN(t,e,r){var A=(t[t.l++]&96)>>5,n=t.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return t.l+=i,[A,n]}var QN=mi,ON=mi,kN=mi;function zl(t,e,r){return t.l+=2,[q6(t)]}function ud(t){return t.l+=6,[]}var DN=zl,PN=ud,RN=ud,MN=zl;function m5(t){return t.l+=2,[jB(t),t.read_shift(2)&1]}var HN=zl,VN=m5,KN=ud,GN=zl,jN=zl,WN=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function zN(t){t.l+=2;var e=t.read_shift(2),r=t.read_shift(2),A=t.read_shift(4),n=t.read_shift(2),i=t.read_shift(2),a=WN[r>>2&31];return{ixti:e,coltype:r&3,rt:a,idx:A,c:n,C:i}}function XN(t){return t.l+=2,[t.read_shift(4)]}function qN(t,e,r){return t.l+=5,t.l+=2,t.l+=r.biff==2?1:4,["PTGSHEET"]}function YN(t,e,r){return t.l+=r.biff==2?4:5,["PTGENDSHEET"]}function $N(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function JN(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function ZN(t){return t.l+=4,[0,0]}var w5={1:{n:"PtgExp",f:mN},2:{n:"PtgTbl",f:kN},3:{n:"PtgAdd",f:Wr},4:{n:"PtgSub",f:Wr},5:{n:"PtgMul",f:Wr},6:{n:"PtgDiv",f:Wr},7:{n:"PtgPower",f:Wr},8:{n:"PtgConcat",f:Wr},9:{n:"PtgLt",f:Wr},10:{n:"PtgLe",f:Wr},11:{n:"PtgEq",f:Wr},12:{n:"PtgGe",f:Wr},13:{n:"PtgGt",f:Wr},14:{n:"PtgNe",f:Wr},15:{n:"PtgIsect",f:Wr},16:{n:"PtgUnion",f:Wr},17:{n:"PtgRange",f:Wr},18:{n:"PtgUplus",f:Wr},19:{n:"PtgUminus",f:Wr},20:{n:"PtgPercent",f:Wr},21:{n:"PtgParen",f:Wr},22:{n:"PtgMissArg",f:Wr},23:{n:"PtgStr",f:CN},26:{n:"PtgSheet",f:qN},27:{n:"PtgEndSheet",f:YN},28:{n:"PtgErr",f:wN},29:{n:"PtgBool",f:xN},30:{n:"PtgInt",f:BN},31:{n:"PtgNum",f:yN},32:{n:"PtgArray",f:AN},33:{n:"PtgFunc",f:dN},34:{n:"PtgFuncVar",f:gN},35:{n:"PtgName",f:SN},36:{n:"PtgRef",f:fN},37:{n:"PtgArea",f:J6},38:{n:"PtgMemArea",f:UN},39:{n:"PtgMemErr",f:QN},40:{n:"PtgMemNoMem",f:ON},41:{n:"PtgMemFunc",f:IN},42:{n:"PtgRefErr",f:LN},43:{n:"PtgAreaErr",f:eN},44:{n:"PtgRefN",f:uN},45:{n:"PtgAreaN",f:rN},46:{n:"PtgMemAreaN",f:$N},47:{n:"PtgMemNoMemN",f:JN},57:{n:"PtgNameX",f:_N},58:{n:"PtgRef3d",f:hN},59:{n:"PtgArea3d",f:Z6},60:{n:"PtgRefErr3d",f:NN},61:{n:"PtgAreaErr3d",f:tN},255:{}},e8={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},t8={1:{n:"PtgElfLel",f:m5},2:{n:"PtgElfRw",f:GN},3:{n:"PtgElfCol",f:DN},6:{n:"PtgElfRwV",f:jN},7:{n:"PtgElfColV",f:MN},10:{n:"PtgElfRadical",f:HN},11:{n:"PtgElfRadicalS",f:KN},13:{n:"PtgElfColS",f:PN},15:{n:"PtgElfColSV",f:RN},16:{n:"PtgElfRadicalLel",f:VN},25:{n:"PtgList",f:zN},29:{n:"PtgSxName",f:XN},255:{}},r8={0:{n:"PtgAttrNoop",f:ZN},1:{n:"PtgAttrSemi",f:oN},2:{n:"PtgAttrIf",f:aN},4:{n:"PtgAttrChoose",f:nN},8:{n:"PtgAttrGoto",f:iN},16:{n:"PtgAttrSum",f:vN},32:{n:"PtgAttrBaxcel",f:p5},33:{n:"PtgAttrBaxcel",f:p5},64:{n:"PtgAttrSpace",f:lN},65:{n:"PtgAttrSpaceSemi",f:cN},128:{n:"PtgAttrIfError",f:sN},255:{}};function A8(t,e,r,A){if(A.biff<8)return mi(t,e);for(var n=t.l+e,i=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=FN(t,0,A),i.push(r[a][1]);break;case"PtgMemArea":r[a][2]=bN(t,r[a][1],A),i.push(r[a][2]);break;case"PtgExp":A&&A.biff==12&&(r[a][1][1]=t.read_shift(4),i.push(r[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[a][0]}return e=n-t.l,e!==0&&i.push(mi(t,e)),i}function n8(t,e,r){for(var A=t.l+e,n,i,a=[];A!=t.l;)e=A-t.l,i=t[t.l],n=w5[i]||w5[e8[i]],(i===24||i===25)&&(n=(i===24?t8:r8)[t[t.l+1]]),!n||!n.f?mi(t,e):a.push([n.n,n.f(t,e,r)]);return a}function i8(t){for(var e=[],r=0;r<t.length;++r){for(var A=t[r],n=[],i=0;i<A.length;++i){var a=A[i];if(a)switch(a[0]){case 2:n.push('"'+a[1].replace(/"/g,'""')+'"');break;default:n.push(a[1])}else n.push("")}e.push(n.join(","))}return e.join(";")}var a8={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function s8(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function B5(t,e,r){if(!t)return"SH33TJSERR0";if(r.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var A=t.XTI[e];if(r.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!A)return"SH33TJSERR1";var n="";if(r.biff>8)switch(t[A[0]][0]){case 357:return n=A[1]==-1?"#REF":t.SheetNames[A[1]],A[1]==A[2]?n:n+":"+t.SheetNames[A[2]];case 358:return r.SID!=null?t.SheetNames[r.SID]:"SH33TJSSAME"+t[A[0]][0];case 355:default:return"SH33TJSSRC"+t[A[0]][0]}switch(t[A[0]][0][0]){case 1025:return n=A[1]==-1?"#REF":t.SheetNames[A[1]]||"SH33TJSERR3",A[1]==A[2]?n:n+":"+t.SheetNames[A[2]];case 14849:return t[A[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return t[A[0]][0][3]?(n=A[1]==-1?"#REF":t[A[0]][0][3][A[1]]||"SH33TJSERR4",A[1]==A[2]?n:n+":"+t[A[0]][0][3][A[2]]):"SH33TJSERR2"}}function x5(t,e,r){var A=B5(t,e,r);return A=="#REF"?A:s8(A,r)}function po(t,e,r,A,n){var i=n&&n.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],o,l,c,h=0,d=0,u,w="";if(!t[0]||!t[0][0])return"";for(var v=-1,x="",y=0,E=t[0].length;y<E;++y){var F=t[0][y];switch(F[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=s.pop(),l=s.pop(),v>=0){switch(t[0][v][1][0]){case 0:x=_r(" ",t[0][v][1][1]);break;case 1:x=_r("\r",t[0][v][1][1]);break;default:if(x="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][v][1][0])}l=l+x,v=-1}s.push(l+a8[F[0]]+o);break;case"PtgIsect":o=s.pop(),l=s.pop(),s.push(l+" "+o);break;case"PtgUnion":o=s.pop(),l=s.pop(),s.push(l+","+o);break;case"PtgRange":o=s.pop(),l=s.pop(),s.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Kl(F[1][1],a,n),s.push(Gl(c,i));break;case"PtgRefN":c=r?Kl(F[1][1],r,n):F[1][1],s.push(Gl(c,i));break;case"PtgRef3d":h=F[1][1],c=Kl(F[1][2],a,n),w=x5(A,h,n),s.push(w+"!"+Gl(c,i));break;case"PtgFunc":case"PtgFuncVar":var k=F[1][0],X=F[1][1];k||(k=0),k&=127;var q=k==0?[]:s.slice(-k);s.length-=k,X==="User"&&(X=q.shift()),s.push(X+"("+q.join(",")+")");break;case"PtgBool":s.push(F[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(F[1]);break;case"PtgNum":s.push(String(F[1]));break;case"PtgStr":s.push('"'+F[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(F[1]);break;case"PtgAreaN":u=xB(F[1][1],r?{s:r}:a,n),s.push(J1(u,n));break;case"PtgArea":u=xB(F[1][1],a,n),s.push(J1(u,n));break;case"PtgArea3d":h=F[1][1],u=F[1][2],w=x5(A,h,n),s.push(w+"!"+J1(u,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=F[1][2];var N=(A.names||[])[d-1]||(A[0]||[])[d],Q=N?N.Name:"SH33TJSNAME"+String(d);Q&&Q.slice(0,6)=="_xlfn."&&!n.xlfn&&(Q=Q.slice(6)),s.push(Q);break;case"PtgNameX":var K=F[1][1];d=F[1][2];var Ae;if(n.biff<=5)K<0&&(K=-K),A[K]&&(Ae=A[K][d]);else{var U="";if(((A[K]||[])[0]||[])[0]==14849||(((A[K]||[])[0]||[])[0]==1025?A[K][d]&&A[K][d].itab>0&&(U=A.SheetNames[A[K][d].itab-1]+"!"):U=A.SheetNames[d-1]+"!"),A[K]&&A[K][d])U+=A[K][d].Name;else if(A[0]&&A[0][d])U+=A[0][d].Name;else{var T=(B5(A,K,n)||"").split(";;");T[d-1]?U=T[d-1]:U+="SH33TJSERRX"}s.push(U);break}Ae||(Ae={Name:"SH33TJSERRY"}),s.push(Ae.Name);break;case"PtgParen":var V="(",Y=")";if(v>=0){switch(x="",t[0][v][1][0]){case 2:V=_r(" ",t[0][v][1][1])+V;break;case 3:V=_r("\r",t[0][v][1][1])+V;break;case 4:Y=_r(" ",t[0][v][1][1])+Y;break;case 5:Y=_r("\r",t[0][v][1][1])+Y;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][v][1][0])}v=-1}s.push(V+s.pop()+Y);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:F[1][1],r:F[1][0]};var ce={c:r.c,r:r.r};if(A.sharedf[tr(c)]){var he=A.sharedf[tr(c)];s.push(po(he,a,ce,A,n))}else{var me=!1;for(o=0;o!=A.arrayf.length;++o)if(l=A.arrayf[o],!(c.c<l[0].s.c||c.c>l[0].e.c)&&!(c.r<l[0].s.r||c.r>l[0].e.r)){s.push(po(l[1],a,ce,A,n)),me=!0;break}me||s.push(F[1])}break;case"PtgArray":s.push("{"+i8(F[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+F[1].idx+"[#"+F[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(F));default:throw new Error("Unrecognized Formula Token: "+String(F))}var ge=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&v>=0&&ge.indexOf(t[0][y][0])==-1){F=t[0][v];var we=!0;switch(F[1][0]){case 4:we=!1;case 0:x=_r(" ",F[1][1]);break;case 5:we=!1;case 1:x=_r("\r",F[1][1]);break;default:if(x="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+F[1][0])}s.push((we?x:"")+s.pop()+(we?"":x)),v=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function o8(t){if(t==null){var e=Le(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof t=="number")return hs(t);return hs(0)}function l8(t,e,r,A,n){var i=gs(e,r,n),a=o8(t.v),s=Le(6),o=33;s.write_shift(2,o),s.write_shift(4,0);for(var l=Le(t.bf.length),c=0;c<t.bf.length;++c)l[c]=t.bf[c];var h=gA([i,a,s,l]);return h}function U0(t,e,r){var A=t.read_shift(4),n=n8(t,A,r),i=t.read_shift(4),a=i>0?A8(t,i,n,r):null;return[n,a]}var c8=U0,I0=U0,f8=U0,u8=U0,h8={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},y5={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},d8={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function g8(t){var e="of:="+t.replace(cd,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function p8(t){return t.replace(/\./,"!")}var Xl=typeof Map<"u";function hd(t,e,r){var A=0,n=t.length;if(r){if(Xl?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var i=Xl?r.get(e):r[e];A<i.length;++A)if(t[i[A]].t===e)return t.Count++,i[A]}}else for(;A<n;++A)if(t[A].t===e)return t.Count++,A;return t[n]={t:e},t.Count++,t.Unique++,r&&(Xl?(r.has(e)||r.set(e,[]),r.get(e).push(n)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(n))),n}function L0(t,e){var r={min:t+1,max:t+1},A=-1;return e.MDW&&(Vi=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?A=_0(e.wpx):e.wch!=null&&(A=e.wch),A>-1?(r.width=sd(A),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function C5(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];e=="xlml"&&(r=[1,1,1,1,.5,.5]),t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function Fa(t,e,r){var A=r.revssf[e.z!=null?e.z:"General"],n=60,i=t.length;if(A==null&&r.ssf){for(;n<392;++n)if(r.ssf[n]==null){Gw(e.z,n),r.ssf[n]=e.z,r.revssf[e.z]=A=n;break}}for(n=0;n!=i;++n)if(t[n].numFmtId===A)return n;return t[i]={numFmtId:A,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function v8(t,e,r){if(t&&t["!ref"]){var A=wr(t["!ref"]);if(A.e.c<A.s.c||A.e.r<A.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function m8(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+jr(t[r])+'"/>';return e+"</mergeCells>"}function w8(t,e,r,A,n){var i=!1,a={},s=null;if(A.bookType!=="xlsx"&&e.vbaraw){var o=e.SheetNames[r];try{e.Workbook&&(o=e.Workbook.Sheets[r].CodeName||o)}catch{}i=!0,a.codeName=Mi(er(o))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+Ze("outlinePr",null,l)}!i&&!s||(n[n.length]=Ze("sheetPr",s,a))}var B8=["objects","scenarios","selectLockedCells","selectUnlockedCells"],x8=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function y8(t){var e={sheet:1};return B8.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),x8.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=t5(t.password).toString(16).toUpperCase()),Ze("sheetProtection",null,e)}function C8(t){return C5(t),Ze("pageMargins",null,t)}function E8(t,e){for(var r=["<cols>"],A,n=0;n!=e.length;++n)(A=e[n])&&(r[r.length]=Ze("col",null,L0(n,A)));return r[r.length]="</cols>",r.join("")}function b8(t,e,r,A){var n=typeof t.ref=="string"?t.ref:jr(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,a=un(n);a.s.r==a.e.r&&(a.e.r=un(e["!ref"]).e.r,n=jr(a));for(var s=0;s<i.length;++s){var o=i[s];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==A){o.Ref="'"+r.SheetNames[A]+"'!"+n;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:A,Ref:"'"+r.SheetNames[A]+"'!"+n}),Ze("autoFilter",null,{ref:n})}function F8(t,e,r,A){var n={workbookViewId:"0"};return(((A||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=A.Workbook.Views[0].RTL?"1":"0"),Ze("sheetViews",Ze("sheetView",null,n),{})}function S8(t,e,r,A){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var n="",i=t.t,a=t.v;if(t.t!=="z")switch(t.t){case"b":n=t.v?"1":"0";break;case"n":n=""+t.v;break;case"e":n=jl[t.v];break;case"d":A&&A.cellDates?n=HA(t.v,-1).toISOString():(t=$A(t),t.t="n",n=""+(t.v=YA(HA(t.v)))),typeof t.z>"u"&&(t.z=Sr[14]);break;default:n=t.v;break}var s=vA("v",er(n)),o={r:e},l=Fa(A.cellXfs,t,A);switch(l!==0&&(o.s=l),t.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(A&&A.bookSST){s=vA("v",""+hd(A.Strings,t.v,A.revStrings)),o.t="s";break}o.t="str";break}if(t.t!=i&&(t.t=i,t.v=a),typeof t.f=="string"&&t.f){var c=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=Ze("f",er(t.f),c)+(t.v!=null?s:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(o.cm=1),Ze("c",s,o)}function _8(t,e,r,A){var n=[],i=[],a=wr(t["!ref"]),s="",o,l="",c=[],h=0,d=0,u=t["!rows"],w=Array.isArray(t),v={r:l},x,y=-1;for(d=a.s.c;d<=a.e.c;++d)c[d]=UA(d);for(h=a.s.r;h<=a.e.r;++h){for(i=[],l=mA(h),d=a.s.c;d<=a.e.c;++d){o=c[d]+l;var E=w?(t[h]||[])[d]:t[o];E!==void 0&&(s=S8(E,o,t,e))!=null&&i.push(s)}(i.length>0||u&&u[h])&&(v={r:l},u&&u[h]&&(x=u[h],x.hidden&&(v.hidden=1),y=-1,x.hpx?y=T0(x.hpx):x.hpt&&(y=x.hpt),y>-1&&(v.ht=y,v.customHeight=1),x.level&&(v.outlineLevel=x.level)),n[n.length]=Ze("row",i.join(""),v))}if(u)for(;h<u.length;++h)u&&u[h]&&(v={r:h+1},x=u[h],x.hidden&&(v.hidden=1),y=-1,x.hpx?y=T0(x.hpx):x.hpt&&(y=x.hpt),y>-1&&(v.ht=y,v.customHeight=1),x.level&&(v.outlineLevel=x.level),n[n.length]=Ze("row","",v));return n.join("")}function E5(t,e,r,A){var n=[Gr,Ze("worksheet",null,{xmlns:so[0],"xmlns:r":aA.r})],i=r.SheetNames[t],a=0,s="",o=r.Sheets[i];o==null&&(o={});var l=o["!ref"]||"A1",c=wr(l);if(c.e.c>16383||c.e.r>1048575){if(e.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=jr(c)}A||(A={}),o["!comments"]=[];var h=[];w8(o,r,t,e,n),n[n.length]=Ze("dimension",null,{ref:l}),n[n.length]=F8(o,e,t,r),e.sheetFormat&&(n[n.length]=Ze("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(n[n.length]=E8(o,o["!cols"])),n[a=n.length]="<sheetData/>",o["!links"]=[],o["!ref"]!=null&&(s=_8(o,e),s.length>0&&(n[n.length]=s)),n.length>a+1&&(n[n.length]="</sheetData>",n[a]=n[a].replace("/>",">")),o["!protect"]&&(n[n.length]=y8(o["!protect"])),o["!autofilter"]!=null&&(n[n.length]=b8(o["!autofilter"],o,r,t)),o["!merges"]!=null&&o["!merges"].length>0&&(n[n.length]=m8(o["!merges"]));var d=-1,u,w=-1;return o["!links"].length>0&&(n[n.length]="<hyperlinks>",o["!links"].forEach(function(v){v[1].Target&&(u={ref:v[0]},v[1].Target.charAt(0)!="#"&&(w=rr(A,-1,er(v[1].Target).replace(/#.*$/,""),Xt.HLINK),u["r:id"]="rId"+w),(d=v[1].Target.indexOf("#"))>-1&&(u.location=er(v[1].Target.slice(d+1))),v[1].Tooltip&&(u.tooltip=er(v[1].Tooltip)),n[n.length]=Ze("hyperlink",null,u))}),n[n.length]="</hyperlinks>"),delete o["!links"],o["!margins"]!=null&&(n[n.length]=C8(o["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(n[n.length]=vA("ignoredErrors",Ze("ignoredError",null,{numberStoredAsText:1,sqref:l}))),h.length>0&&(w=rr(A,-1,"../drawings/drawing"+(t+1)+".xml",Xt.DRAW),n[n.length]=Ze("drawing",null,{"r:id":"rId"+w}),o["!drawing"]=h),o["!comments"].length>0&&(w=rr(A,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Xt.VML),n[n.length]=Ze("legacyDrawing",null,{"r:id":"rId"+w}),o["!legacy"]=w),n.length>1&&(n[n.length]="</worksheet>",n[1]=n[1].replace("/>",">")),n.join("")}function T8(t,e){var r={},A=t.l+e;r.r=t.read_shift(4),t.l+=4;var n=t.read_shift(2);t.l+=1;var i=t.read_shift(1);return t.l=A,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=n/20),r}function U8(t,e,r){var A=Le(145),n=(r["!rows"]||[])[t]||{};A.write_shift(4,t),A.write_shift(4,0);var i=320;n.hpx?i=T0(n.hpx)*20:n.hpt&&(i=n.hpt*20),A.write_shift(2,i),A.write_shift(1,0);var a=0;n.level&&(a|=n.level),n.hidden&&(a|=16),(n.hpx||n.hpt)&&(a|=32),A.write_shift(1,a),A.write_shift(1,0);var s=0,o=A.l;A.l+=4;for(var l={r:t,c:0},c=0;c<16;++c)if(!(e.s.c>c+1<<10||e.e.c<c<<10)){for(var h=-1,d=-1,u=c<<10;u<c+1<<10;++u){l.c=u;var w=Array.isArray(r)?(r[l.r]||[])[l.c]:r[tr(l)];w&&(h<0&&(h=u),d=u)}h<0||(++s,A.write_shift(4,h),A.write_shift(4,d))}var v=A.l;return A.l=o,A.write_shift(4,s),A.l=v,A.length>A.l?A.slice(0,A.l):A}function I8(t,e,r,A){var n=U8(A,r,e);(n.length>17||(e["!rows"]||[])[A])&&He(t,0,n)}var L8=us,N8=co;function Q8(){}function O8(t,e){var r={},A=t[t.l];return++t.l,r.above=!(A&64),r.left=!(A&128),t.l+=18,r.name=jI(t),r}function k8(t,e,r){r==null&&(r=Le(84+4*t.length));var A=192;e&&(e.above&&(A&=-65),e.left&&(A&=-129)),r.write_shift(1,A);for(var n=1;n<3;++n)r.write_shift(1,0);return y0({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),EB(t,r),r.slice(0,r.l)}function D8(t){var e=Fn(t);return[e]}function P8(t,e,r){return r==null&&(r=Le(8)),ls(e,r)}function R8(t){var e=cs(t);return[e]}function M8(t,e,r){return r==null&&(r=Le(4)),fs(e,r)}function H8(t){var e=Fn(t),r=t.read_shift(1);return[e,r,"b"]}function V8(t,e,r){return r==null&&(r=Le(9)),ls(e,r),r.write_shift(1,t.v?1:0),r}function K8(t){var e=cs(t),r=t.read_shift(1);return[e,r,"b"]}function G8(t,e,r){return r==null&&(r=Le(5)),fs(e,r),r.write_shift(1,t.v?1:0),r}function j8(t){var e=Fn(t),r=t.read_shift(1);return[e,r,"e"]}function W8(t,e,r){return r==null&&(r=Le(9)),ls(e,r),r.write_shift(1,t.v),r}function z8(t){var e=cs(t),r=t.read_shift(1);return[e,r,"e"]}function X8(t,e,r){return r==null&&(r=Le(8)),fs(e,r),r.write_shift(1,t.v),r.write_shift(2,0),r.write_shift(1,0),r}function q8(t){var e=Fn(t),r=t.read_shift(4);return[e,r,"s"]}function Y8(t,e,r){return r==null&&(r=Le(12)),ls(e,r),r.write_shift(4,e.v),r}function $8(t){var e=cs(t),r=t.read_shift(4);return[e,r,"s"]}function J8(t,e,r){return r==null&&(r=Le(8)),fs(e,r),r.write_shift(4,e.v),r}function Z8(t){var e=Fn(t),r=fo(t);return[e,r,"n"]}function eQ(t,e,r){return r==null&&(r=Le(16)),ls(e,r),hs(t.v,r),r}function tQ(t){var e=cs(t),r=fo(t);return[e,r,"n"]}function rQ(t,e,r){return r==null&&(r=Le(12)),fs(e,r),hs(t.v,r),r}function AQ(t){var e=Fn(t),r=bB(t);return[e,r,"n"]}function nQ(t,e,r){return r==null&&(r=Le(12)),ls(e,r),FB(t.v,r),r}function iQ(t){var e=cs(t),r=bB(t);return[e,r,"n"]}function aQ(t,e,r){return r==null&&(r=Le(8)),fs(e,r),FB(t.v,r),r}function sQ(t){var e=Fn(t),r=td(t);return[e,r,"is"]}function oQ(t){var e=Fn(t),r=IA(t);return[e,r,"str"]}function lQ(t,e,r){return r==null&&(r=Le(12+4*t.v.length)),ls(e,r),oA(t.v,r),r.length>r.l?r.slice(0,r.l):r}function cQ(t){var e=cs(t),r=IA(t);return[e,r,"str"]}function fQ(t,e,r){return r==null&&(r=Le(8+4*t.v.length)),fs(e,r),oA(t.v,r),r.length>r.l?r.slice(0,r.l):r}function uQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=t.read_shift(1),a=[n,i,"b"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}function hQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=t.read_shift(1),a=[n,i,"e"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}function dQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=fo(t),a=[n,i,"n"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}function gQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=IA(t),a=[n,i,"str"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}var pQ=us,vQ=co;function mQ(t,e){return e==null&&(e=Le(4)),e.write_shift(4,t),e}function wQ(t,e){var r=t.l+e,A=us(t),n=rd(t),i=IA(t),a=IA(t),s=IA(t);t.l=r;var o={rfx:A,relId:n,loc:i,display:s};return a&&(o.Tooltip=a),o}function BQ(t,e){var r=Le(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));co({s:sA(t[0]),e:sA(t[0])},r),nd("rId"+e,r);var A=t[1].Target.indexOf("#"),n=A==-1?"":t[1].Target.slice(A+1);return oA(n||"",r),oA(t[1].Tooltip||"",r),oA("",r),r.slice(0,r.l)}function xQ(){}function yQ(t,e,r){var A=t.l+e,n=SB(t),i=t.read_shift(1),a=[n];if(a[2]=i,r.cellFormula){var s=c8(t,A-t.l,r);a[1]=s}else t.l=A;return a}function CQ(t,e,r){var A=t.l+e,n=us(t),i=[n];if(r.cellFormula){var a=u8(t,A-t.l,r);i[1]=a,t.l=A}else t.l=A;return i}function EQ(t,e,r){r==null&&(r=Le(18));var A=L0(t,e);r.write_shift(-4,t),r.write_shift(-4,t),r.write_shift(4,(A.width||10)*256),r.write_shift(4,0);var n=0;return e.hidden&&(n|=1),typeof A.width=="number"&&(n|=2),e.level&&(n|=e.level<<8),r.write_shift(2,n),r}var b5=["left","right","top","bottom","header","footer"];function bQ(t){var e={};return b5.forEach(function(r){e[r]=fo(t)}),e}function FQ(t,e){return e==null&&(e=Le(6*8)),C5(t),b5.forEach(function(r){hs(t[r],e)}),e}function SQ(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function _Q(t,e,r){r==null&&(r=Le(30));var A=924;return(((e||{}).Views||[])[0]||{}).RTL&&(A|=32),r.write_shift(2,A),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function TQ(t){var e=Le(24);return e.write_shift(4,4),e.write_shift(4,1),co(t,e),e}function UQ(t,e){return e==null&&(e=Le(16*4+2)),e.write_shift(2,t.password?t5(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?e.write_shift(4,t[r[0]]!=null&&!t[r[0]]?1:0):e.write_shift(4,t[r[0]]!=null&&t[r[0]]?0:1)}),e}function IQ(){}function LQ(){}function NQ(t,e,r,A,n,i,a){if(e.v===void 0)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":e=$A(e),e.z=e.z||Sr[14],e.v=YA(HA(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v;break}var o={r,c:A};switch(o.s=Fa(n.cellXfs,e,n),e.l&&i["!links"].push([tr(o),e.l]),e.c&&i["!comments"].push([tr(o),e.c]),e.t){case"s":case"str":return n.bookSST?(s=hd(n.Strings,e.v,n.revStrings),o.t="s",o.v=s,a?He(t,18,J8(e,o)):He(t,7,Y8(e,o))):(o.t="str",a?He(t,17,fQ(e,o)):He(t,6,lQ(e,o))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?a?He(t,13,aQ(e,o)):He(t,2,nQ(e,o)):a?He(t,16,rQ(e,o)):He(t,5,eQ(e,o)),!0;case"b":return o.t="b",a?He(t,15,G8(e,o)):He(t,4,V8(e,o)),!0;case"e":return o.t="e",a?He(t,14,X8(e,o)):He(t,3,W8(e,o)),!0}return a?He(t,12,M8(e,o)):He(t,1,P8(e,o)),!0}function QQ(t,e,r,A){var n=wr(e["!ref"]||"A1"),i,a="",s=[];He(t,145);var o=Array.isArray(e),l=n.e.r;e["!rows"]&&(l=Math.max(n.e.r,e["!rows"].length-1));for(var c=n.s.r;c<=l;++c){a=mA(c),I8(t,e,n,c);var h=!1;if(c<=n.e.r)for(var d=n.s.c;d<=n.e.c;++d){c===n.s.r&&(s[d]=UA(d)),i=s[d]+a;var u=o?(e[c]||[])[d]:e[i];if(!u){h=!1;continue}h=NQ(t,u,c,d,A,e,h)}}He(t,146)}function OQ(t,e){!e||!e["!merges"]||(He(t,177,mQ(e["!merges"].length)),e["!merges"].forEach(function(r){He(t,176,vQ(r))}),He(t,178))}function kQ(t,e){!e||!e["!cols"]||(He(t,390),e["!cols"].forEach(function(r,A){r&&He(t,60,EQ(A,r))}),He(t,391))}function DQ(t,e){!e||!e["!ref"]||(He(t,648),He(t,649,TQ(wr(e["!ref"]))),He(t,650))}function PQ(t,e,r){e["!links"].forEach(function(A){if(A[1].Target){var n=rr(r,-1,A[1].Target.replace(/#.*$/,""),Xt.HLINK);He(t,494,BQ(A,n))}}),delete e["!links"]}function RQ(t,e,r,A){if(e["!comments"].length>0){var n=rr(A,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Xt.VML);He(t,551,nd("rId"+n)),e["!legacy"]=n}}function MQ(t,e,r,A){if(e["!autofilter"]){var n=e["!autofilter"],i=typeof n.ref=="string"?n.ref:jr(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=un(i);s.s.r==s.e.r&&(s.e.r=un(e["!ref"]).e.r,i=jr(s));for(var o=0;o<a.length;++o){var l=a[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==A){l.Ref="'"+r.SheetNames[A]+"'!"+i;break}}o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:A,Ref:"'"+r.SheetNames[A]+"'!"+i}),He(t,161,co(wr(i))),He(t,162)}}function HQ(t,e,r){He(t,133),He(t,137,_Q(e,r)),He(t,138),He(t,134)}function VQ(t,e){e["!protect"]&&He(t,535,UQ(e["!protect"]))}function KQ(t,e,r,A){var n=JA(),i=r.SheetNames[t],a=r.Sheets[i]||{},s=i;try{r&&r.Workbook&&(s=r.Workbook.Sheets[t].CodeName||s)}catch{}var o=wr(a["!ref"]||"A1");if(o.e.c>16383||o.e.r>1048575){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],He(n,129),(r.vbaraw||a["!outline"])&&He(n,147,k8(s,a["!outline"])),He(n,148,N8(o)),HQ(n,a,r.Workbook),kQ(n,a),QQ(n,a,t,e),VQ(n,a),MQ(n,a,r,t),OQ(n,a),PQ(n,a,A),a["!margins"]&&He(n,476,FQ(a["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&DQ(n,a),RQ(n,a,t,A),He(n,130),n.end()}function GQ(t,e){t.l+=10;var r=IA(t);return{name:r}}var jQ=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function WQ(t){return!t.Workbook||!t.Workbook.WBProps?"false":CI(t.Workbook.WBProps.date1904)?"true":"false"}var zQ="][*?/\\".split("");function F5(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return zQ.forEach(function(A){if(t.indexOf(A)!=-1){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function XQ(t,e,r){t.forEach(function(A,n){F5(A);for(var i=0;i<n;++i)if(A==t[i])throw new Error("Duplicate Sheet Name: "+A);if(r){var a=e&&e[n]&&e[n].CodeName||A;if(a.charCodeAt(0)==95&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}function qQ(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];XQ(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)v8(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function S5(t){var e=[Gr];e[e.length]=Ze("workbook",null,{xmlns:so[0],"xmlns:r":aA.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,A={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(jQ.forEach(function(s){t.Workbook.WBProps[s[0]]!=null&&t.Workbook.WBProps[s[0]]!=s[1]&&(A[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(A.codeName=t.Workbook.WBProps.CodeName,delete A.CodeName)),e[e.length]=Ze("workbookPr",null,A);var n=t.Workbook&&t.Workbook.Sheets||[],i=0;if(n&&n[0]&&n[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&!(!n[i]||!n[i].Hidden);++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var a={name:er(t.SheetNames[i].slice(0,31))};if(a.sheetId=""+(i+1),a["r:id"]="rId"+(i+1),n[i])switch(n[i].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}e[e.length]=Ze("sheet",null,a)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var o={name:s.Name};s.Comment&&(o.comment=s.Comment),s.Sheet!=null&&(o.localSheetId=""+s.Sheet),s.Hidden&&(o.hidden="1"),s.Ref&&(e[e.length]=Ze("definedName",er(s.Ref),o))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function YQ(t,e){var r={};return r.Hidden=t.read_shift(4),r.iTabID=t.read_shift(4),r.strRelID=Ad(t),r.name=IA(t),r}function $Q(t,e){return e||(e=Le(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),nd(t.strRelID,e),oA(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function JQ(t,e){var r={},A=t.read_shift(4);r.defaultThemeVersion=t.read_shift(4);var n=e>8?IA(t):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(A&65536),r.backupFile=!!(A&64),r.checkCompatibility=!!(A&4096),r.date1904=!!(A&1),r.filterPrivacy=!!(A&8),r.hidePivotFieldList=!!(A&1024),r.promptedSolutions=!!(A&16),r.publishItems=!!(A&2048),r.refreshAllConnections=!!(A&262144),r.saveExternalLinkValues=!!(A&128),r.showBorderUnselectedTables=!!(A&4),r.showInkAnnotation=!!(A&32),r.showObjects=["all","placeholders","none"][A>>13&3],r.showPivotChartFilter=!!(A&32768),r.updateLinks=["userSet","never","always"][A>>8&3],r}function ZQ(t,e){e||(e=Le(72));var r=0;return t&&t.filterPrivacy&&(r|=8),e.write_shift(4,r),e.write_shift(4,0),EB(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function eO(t,e,r){var A=t.l+e;t.l+=4,t.l+=1;var n=t.read_shift(4),i=WI(t),a=f8(t,0,r),s=rd(t);t.l=A;var o={Name:i,Ptg:a};return n<268435455&&(o.Sheet=n),s&&(o.Comment=s),o}function tO(t,e){He(t,143);for(var r=0;r!=e.SheetNames.length;++r){var A=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[r]&&e.Workbook.Sheets[r].Hidden||0,n={Hidden:A,iTabID:r+1,strRelID:"rId"+(r+1),name:e.SheetNames[r]};He(t,156,$Q(n))}He(t,144)}function rO(t,e){e||(e=Le(127));for(var r=0;r!=4;++r)e.write_shift(4,0);return oA("SheetJS",e),oA(a0.version,e),oA(a0.version,e),oA("7262",e),e.length>e.l?e.slice(0,e.l):e}function AO(t,e){e||(e=Le(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var r=120;return e.write_shift(1,r),e.length>e.l?e.slice(0,e.l):e}function nO(t,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var r=e.Workbook.Sheets,A=0,n=-1,i=-1;A<r.length;++A)!r[A]||!r[A].Hidden&&n==-1?n=A:r[A].Hidden==1&&i==-1&&(i=A);i>n||(He(t,135),He(t,158,AO(n)),He(t,136))}}function iO(t,e){var r=JA();return He(r,131),He(r,128,rO()),He(r,153,ZQ(t.Workbook&&t.Workbook.WBProps||null)),nO(r,t),tO(r,t),He(r,132),r.end()}function aO(t,e,r){return(e.slice(-4)===".bin"?iO:S5)(t)}function sO(t,e,r,A,n){return(e.slice(-4)===".bin"?KQ:E5)(t,r,A,n)}function oO(t,e,r){return(e.slice(-4)===".bin"?F6:i5)(t,r)}function lO(t,e,r){return(e.slice(-4)===".bin"?ZL:e5)(t,r)}function cO(t,e,r){return(e.slice(-4)===".bin"?V6:f5)(t)}function fO(t){return(t.slice(-4)===".bin"?Q6:l5)()}function uO(t,e){var r=[];return t.Props&&r.push(oL(t.Props,e)),t.Custprops&&r.push(lL(t.Props,t.Custprops)),r.join("")}function hO(){return""}function dO(t,e){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(A,n){var i=[];i.push(Ze("NumberFormat",null,{"ss:Format":er(Sr[A.numFmtId])}));var a={"ss:ID":"s"+(21+n)};r.push(Ze("Style",i.join(""),a))}),Ze("Styles",r.join(""))}function _5(t){return Ze("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+fd(t.Ref,{r:0,c:0})})}function gO(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,r=[],A=0;A<e.length;++A){var n=e[A];n.Sheet==null&&(n.Name.match(/^_xlfn\./)||r.push(_5(n)))}return Ze("Names",r.join(""))}function pO(t,e,r,A){if(!t||!((A||{}).Workbook||{}).Names)return"";for(var n=A.Workbook.Names,i=[],a=0;a<n.length;++a){var s=n[a];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||i.push(_5(s)))}return i.join("")}function vO(t,e,r,A){if(!t)return"";var n=[];if(t["!margins"]&&(n.push("<PageSetup>"),t["!margins"].header&&n.push(Ze("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&n.push(Ze("Footer",null,{"x:Margin":t["!margins"].footer})),n.push(Ze("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),n.push("</PageSetup>")),A&&A.Workbook&&A.Workbook.Sheets&&A.Workbook.Sheets[r])if(A.Workbook.Sheets[r].Hidden)n.push(Ze("Visible",A.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(A.Workbook.Sheets[i]&&!A.Workbook.Sheets[i].Hidden);++i);i==r&&n.push("<Selected/>")}return((((A||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push("<DisplayRightToLeft/>"),t["!protect"]&&(n.push(vA("ProtectContents","True")),t["!protect"].objects&&n.push(vA("ProtectObjects","True")),t["!protect"].scenarios&&n.push(vA("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?n.push(vA("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&n.push(vA("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){t["!protect"][a[0]]&&n.push("<"+a[1]+"/>")})),n.length==0?"":Ze("WorksheetOptions",n.join(""),{xmlns:ln.x})}function mO(t){return t.map(function(e){var r=yI(e.t||""),A=Ze("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ze("Comment",A,{"ss:Author":e.a})}).join("")}function wO(t,e,r,A,n,i,a){if(!t||t.v==null&&t.f==null)return"";var s={};if(t.f&&(s["ss:Formula"]="="+er(fd(t.f,a))),t.F&&t.F.slice(0,e.length)==e){var o=sA(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(o.r==a.r?"":"["+(o.r-a.r)+"]")+"C"+(o.c==a.c?"":"["+(o.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=er(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=er(t.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=a.c||l[c].s.r!=a.r||(l[c].e.c>l[c].s.c&&(s["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(s["ss:MergeDown"]=l[c].e.r-l[c].s.r));var h="",d="";switch(t.t){case"z":if(!A.sheetStubs)return"";break;case"n":h="Number",d=String(t.v);break;case"b":h="Boolean",d=t.v?"1":"0";break;case"e":h="Error",d=jl[t.v];break;case"d":h="DateTime",d=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Sr[14]);break;case"s":h="String",d=xI(t.v||"");break}var u=Fa(A.cellXfs,t,A);s["ss:StyleID"]="s"+(21+u),s["ss:Index"]=a.c+1;var w=t.v!=null?d:"",v=t.t=="z"?"":'<Data ss:Type="'+h+'">'+w+"</Data>";return(t.c||[]).length>0&&(v+=mO(t.c)),Ze("Cell",v,s)}function BO(t,e){var r='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=n5(e.hpt)),e.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(r+=' ss:Hidden="1"')),r+">"}function xO(t,e,r,A){if(!t["!ref"])return"";var n=wr(t["!ref"]),i=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(x,y){od(x);var E=!!x.width,F=L0(y,x),k={"ss:Index":y+1};E&&(k["ss:Width"]=S0(F.width)),x.hidden&&(k["ss:Hidden"]="1"),s.push(Ze("Column",null,k))});for(var o=Array.isArray(t),l=n.s.r;l<=n.e.r;++l){for(var c=[BO(l,(t["!rows"]||[])[l])],h=n.s.c;h<=n.e.c;++h){var d=!1;for(a=0;a!=i.length;++a)if(!(i[a].s.c>h)&&!(i[a].s.r>l)&&!(i[a].e.c<h)&&!(i[a].e.r<l)){(i[a].s.c!=h||i[a].s.r!=l)&&(d=!0);break}if(!d){var u={r:l,c:h},w=tr(u),v=o?(t[l]||[])[h]:t[w];c.push(wO(v,w,t,e,r,A,u))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function yO(t,e,r){var A=[],n=r.SheetNames[t],i=r.Sheets[n],a=i?pO(i,e,t,r):"";return a.length>0&&A.push("<Names>"+a+"</Names>"),a=i?xO(i,e,t,r):"",a.length>0&&A.push("<Table>"+a+"</Table>"),A.push(vO(i,e,t,r)),A.join("")}function CO(t,e){e||(e={}),t.SSF||(t.SSF=$A(Sr)),t.SSF&&(g0(),d0(t.SSF),e.revssf=p0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],Fa(e.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(uO(t,e)),r.push(hO()),r.push(""),r.push("");for(var A=0;A<t.SheetNames.length;++A)r.push(Ze("Worksheet",yO(A,e,t),{"ss:Name":er(t.SheetNames[A])}));return r[2]=dO(t,e),r[3]=gO(t),Gr+Ze("Workbook",r.join(""),{xmlns:ln.ss,"xmlns:o":ln.o,"xmlns:x":ln.x,"xmlns:ss":ln.ss,"xmlns:dt":ln.dt,"xmlns:html":ln.html})}var dd={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function EO(t,e){var r=[],A=[],n=[],i=0,a,s=Ww(TB,"n"),o=Ww(UB,"n");if(t.Props)for(a=pA(t.Props),i=0;i<a.length;++i)(Object.prototype.hasOwnProperty.call(s,a[i])?r:Object.prototype.hasOwnProperty.call(o,a[i])?A:n).push([a[i],t.Props[a[i]]]);if(t.Custprops)for(a=pA(t.Custprops),i=0;i<a.length;++i)Object.prototype.hasOwnProperty.call(t.Props||{},a[i])||(Object.prototype.hasOwnProperty.call(s,a[i])?r:Object.prototype.hasOwnProperty.call(o,a[i])?A:n).push([a[i],t.Custprops[a[i]]]);var l=[];for(i=0;i<n.length;++i)VB.indexOf(n[i][0])>-1||DB.indexOf(n[i][0])>-1||n[i][1]!=null&&l.push(n[i]);A.length&&or.utils.cfb_add(e,"/SummaryInformation",GB(A,dd.SI,o,UB)),(r.length||l.length)&&or.utils.cfb_add(e,"/DocumentSummaryInformation",GB(r,dd.DSI,s,TB,l.length?l:null,dd.UDI))}function bO(t,e){var r=e||{},A=or.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return or.utils.cfb_add(A,n,T5(t,r)),r.biff==8&&(t.Props||t.Custprops)&&EO(t,A),r.biff==8&&t.vbaraw&&K6(A,or.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),A}var FO={0:{f:T8},1:{f:D8},2:{f:AQ},3:{f:j8},4:{f:H8},5:{f:Z8},6:{f:oQ},7:{f:q8},8:{f:gQ},9:{f:dQ},10:{f:uQ},11:{f:hQ},12:{f:R8},13:{f:iQ},14:{f:z8},15:{f:K8},16:{f:tQ},17:{f:cQ},18:{f:$8},19:{f:td},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:eO},40:{},42:{},43:{f:o6},44:{f:a6},45:{f:f6},46:{f:h6},47:{f:u6},48:{},49:{f:RI},50:{},51:{f:T6},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ML},62:{f:sQ},63:{f:O6},64:{f:IQ},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:mi,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:SQ},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:O8},148:{f:L8,p:16},151:{f:xQ},152:{},153:{f:JQ},154:{},155:{},156:{f:YQ},157:{},158:{},159:{T:1,f:YL},160:{T:-1},161:{T:1,f:us},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:pQ},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:S6},336:{T:-1},337:{f:L6,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Ad},357:{},358:{},359:{},360:{T:1},361:{},362:{f:QL},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:yQ},427:{f:CQ},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:bQ},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Q8},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:wQ},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Ad},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:M6},633:{T:1},634:{T:-1},635:{T:1,f:P6},636:{T:-1},637:{f:KI},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:GQ},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:LQ},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function et(t,e,r,A){var n=e;if(!isNaN(n)){var i=A||(r||[]).length||0,a=t.next(4);a.write_shift(2,n),a.write_shift(2,i),i>0&&$1(r)&&t.push(r)}}function SO(t,e,r,A){var n=A||(r||[]).length||0;if(n<=8224)return et(t,e,r,n);var i=e;if(!isNaN(i)){for(var a=r.parts||[],s=0,o=0,l=0;l+(a[s]||8224)<=8224;)l+=a[s]||8224,s++;var c=t.next(4);for(c.write_shift(2,i),c.write_shift(2,l),t.push(r.slice(o,o+l)),o+=l;o<n;){for(c=t.next(4),c.write_shift(2,60),l=0;l+(a[s]||8224)<=8224;)l+=a[s]||8224,s++;c.write_shift(2,l),t.push(r.slice(o,o+l)),o+=l}}}function ql(t,e,r){return t||(t=Le(7)),t.write_shift(2,e),t.write_shift(2,r),t.write_shift(2,0),t.write_shift(1,0),t}function _O(t,e,r,A){var n=Le(9);return ql(n,t,e),WB(r,A||"b",n),n}function TO(t,e,r){var A=Le(8+2*r.length);return ql(A,t,e),A.write_shift(1,r.length),A.write_shift(r.length,r,"sbcs"),A.l<A.length?A.slice(0,A.l):A}function UO(t,e,r,A){if(e.v!=null)switch(e.t){case"d":case"n":var n=e.t=="d"?YA(HA(e.v)):e.v;n==(n|0)&&n>=0&&n<65536?et(t,2,GL(r,A,n)):et(t,3,KL(r,A,n));return;case"b":case"e":et(t,5,_O(r,A,e.v,e.t));return;case"s":case"str":et(t,4,TO(r,A,(e.v||"").slice(0,255)));return}et(t,1,ql(null,r,A))}function IO(t,e,r,A){var n=Array.isArray(e),i=wr(e["!ref"]||"A1"),a,s="",o=[];if(i.e.c>255||i.e.r>16383){if(A.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),a=jr(i)}for(var l=i.s.r;l<=i.e.r;++l){s=mA(l);for(var c=i.s.c;c<=i.e.c;++c){l===i.s.r&&(o[c]=UA(c)),a=o[c]+s;var h=n?(e[l]||[])[c]:e[a];h&&UO(t,h,l,c)}}}function LO(t,e){for(var r=e||{},A=JA(),n=0,i=0;i<t.SheetNames.length;++i)t.SheetNames[i]==r.sheet&&(n=i);if(n==0&&r.sheet&&t.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return et(A,r.biff==4?1033:r.biff==3?521:9,ad(t,16,r)),IO(A,t.Sheets[t.SheetNames[n]],n,r),et(A,10),A.end()}function NO(t,e,r){et(t,49,FL({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function QO(t,e,r){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(A){for(var n=A[0];n<=A[1];++n)e[n]!=null&&et(t,1054,TL(n,e[n],r))})}function OO(t,e){var r=Le(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),et(t,2151,r),r=Le(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),YB(wr(e["!ref"]||"A1"),r),r.write_shift(4,4),et(t,2152,r)}function kO(t,e){for(var r=0;r<16;++r)et(t,224,$B({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(A){et(t,224,$B(A,0,e))})}function DO(t,e){for(var r=0;r<e["!links"].length;++r){var A=e["!links"][r];et(t,440,DL(A)),A[1].Tooltip&&et(t,2048,PL(A))}delete e["!links"]}function PO(t,e){if(e){var r=0;e.forEach(function(A,n){++r<=256&&A&&et(t,125,HL(L0(n,A),n))})}}function RO(t,e,r,A,n){var i=16+Fa(n.cellXfs,e,n);if(e.v==null&&!e.bf){et(t,513,gs(r,A,i));return}if(e.bf)et(t,6,l8(e,r,A,n,i));else switch(e.t){case"d":case"n":var a=e.t=="d"?YA(HA(e.v)):e.v;et(t,515,NL(r,A,a,i));break;case"b":case"e":et(t,517,LL(r,A,e.v,i,n,e.t));break;case"s":case"str":if(n.bookSST){var s=hd(n.Strings,e.v,n.revStrings);et(t,253,SL(r,A,s,i))}else et(t,516,_L(r,A,(e.v||"").slice(0,255),i,n));break;default:et(t,513,gs(r,A,i))}}function MO(t,e,r){var A=JA(),n=r.SheetNames[t],i=r.Sheets[n]||{},a=(r||{}).Workbook||{},s=(a.Sheets||[])[t]||{},o=Array.isArray(i),l=e.biff==8,c,h="",d=[],u=wr(i["!ref"]||"A1"),w=l?65536:16384;if(u.e.c>255||u.e.r>=w){if(e.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");u.e.c=Math.min(u.e.c,255),u.e.r=Math.min(u.e.c,w-1)}et(A,2057,ad(r,16,e)),et(A,13,Sn(1)),et(A,12,Sn(100)),et(A,15,VA(!0)),et(A,17,VA(!1)),et(A,16,hs(.001)),et(A,95,VA(!0)),et(A,42,VA(!1)),et(A,43,VA(!1)),et(A,130,Sn(1)),et(A,128,IL([0,0])),et(A,131,VA(!1)),et(A,132,VA(!1)),l&&PO(A,i["!cols"]),et(A,512,UL(u,e)),l&&(i["!links"]=[]);for(var v=u.s.r;v<=u.e.r;++v){h=mA(v);for(var x=u.s.c;x<=u.e.c;++x){v===u.s.r&&(d[x]=UA(x)),c=d[x]+h;var y=o?(i[v]||[])[x]:i[c];y&&(RO(A,y,v,x,e),l&&y.l&&i["!links"].push([c,y.l]))}}var E=s.CodeName||s.name||n;return l&&et(A,574,bL((a.Views||[])[0])),l&&(i["!merges"]||[]).length&&et(A,229,kL(i["!merges"])),l&&DO(A,i),et(A,442,XB(E)),l&&OO(A,i),et(A,10),A.end()}function HO(t,e,r){var A=JA(),n=(t||{}).Workbook||{},i=n.Sheets||[],a=n.WBProps||{},s=r.biff==8,o=r.biff==5;if(et(A,2057,ad(t,5,r)),r.bookType=="xla"&&et(A,135),et(A,225,s?Sn(1200):null),et(A,193,uL(2)),o&&et(A,191),o&&et(A,192),et(A,226),et(A,92,xL("SheetJS",r)),et(A,66,Sn(s?1200:1252)),s&&et(A,353,Sn(0)),s&&et(A,448),et(A,317,VL(t.SheetNames.length)),s&&t.vbaraw&&et(A,211),s&&t.vbaraw){var l=a.CodeName||"ThisWorkbook";et(A,442,XB(l))}et(A,156,Sn(17)),et(A,25,VA(!1)),et(A,18,VA(!1)),et(A,19,Sn(0)),s&&et(A,431,VA(!1)),s&&et(A,444,Sn(0)),et(A,61,EL()),et(A,64,VA(!1)),et(A,141,Sn(0)),et(A,34,VA(WQ(t)=="true")),et(A,14,VA(!0)),s&&et(A,439,VA(!1)),et(A,218,Sn(0)),NO(A,t,r),QO(A,t.SSF,r),kO(A,r),s&&et(A,352,VA(!1));var c=A.end(),h=JA();s&&et(h,140,RL()),s&&r.Strings&&SO(h,252,CL(r.Strings)),et(h,10);var d=h.end(),u=JA(),w=0,v=0;for(v=0;v<t.SheetNames.length;++v)w+=(s?12:11)+(s?2:1)*t.SheetNames[v].length;var x=c.length+w+d.length;for(v=0;v<t.SheetNames.length;++v){var y=i[v]||{};et(u,133,yL({pos:x,hs:y.Hidden||0,dt:0,name:t.SheetNames[v]},r)),x+=e[v].length}var E=u.end();if(w!=E.length)throw new Error("BS8 "+w+" != "+E.length);var F=[];return c.length&&F.push(c),E.length&&F.push(E),d.length&&F.push(d),gA(F)}function VO(t,e){var r=e||{},A=[];t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(g0(),d0(t.SSF),r.revssf=p0(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,vd(r),r.cellXfs=[],Fa(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var n=0;n<t.SheetNames.length;++n)A[A.length]=MO(n,r,t);return A.unshift(HO(t,A,r)),gA(A)}function T5(t,e){for(var r=0;r<=t.SheetNames.length;++r){var A=t.Sheets[t.SheetNames[r]];if(!(!A||!A["!ref"])){var n=un(A["!ref"]);n.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=e||{};switch(i.biff||2){case 8:case 5:return VO(t,e);case 4:case 3:case 2:return LO(t,e)}throw new Error("invalid type "+i.bookType+" for BIFF")}function KO(t,e,r,A){for(var n=t["!merges"]||[],i=[],a=e.s.c;a<=e.e.c;++a){for(var s=0,o=0,l=0;l<n.length;++l)if(!(n[l].s.r>r||n[l].s.c>a)&&!(n[l].e.r<r||n[l].e.c<a)){if(n[l].s.r<r||n[l].s.c<a){s=-1;break}s=n[l].e.r-n[l].s.r+1,o=n[l].e.c-n[l].s.c+1;break}if(!(s<0)){var c=tr({r,c:a}),h=A.dense?(t[r]||[])[a]:t[c],d=h&&h.v!=null&&(h.h||BI(h.w||(Hi(h),h.w)||""))||"",u={};s>1&&(u.rowspan=s),o>1&&(u.colspan=o),A.editable?d='<span contenteditable="true">'+d+"</span>":h&&(u["data-t"]=h&&h.t||"z",h.v!=null&&(u["data-v"]=h.v),h.z!=null&&(u["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+h.l.Target+'">'+d+"</a>")),u.id=(A.id||"sjs")+"-"+c,i.push(Ze("td",d,u))}}var w="<tr>";return w+i.join("")+"</tr>"}var GO='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',jO="</body></html>";function WO(t,e,r){var A=[];return A.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function U5(t,e){var r=e||{},A=r.header!=null?r.header:GO,n=r.footer!=null?r.footer:jO,i=[A],a=un(t["!ref"]);r.dense=Array.isArray(t),i.push(WO(t,a,r));for(var s=a.s.r;s<=a.e.r;++s)i.push(KO(t,a,s,r));return i.push("</table>"+n),i.join("")}function I5(t,e,r){var A=r||{},n=0,i=0;if(A.origin!=null)if(typeof A.origin=="number")n=A.origin;else{var a=typeof A.origin=="string"?sA(A.origin):A.origin;n=a.r,i=a.c}var s=e.getElementsByTagName("tr"),o=Math.min(A.sheetRows||1e7,s.length),l={s:{r:0,c:0},e:{r:n,c:i}};if(t["!ref"]){var c=un(t["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),n==-1&&(l.e.r=n=c.e.r+1)}var h=[],d=0,u=t["!rows"]||(t["!rows"]=[]),w=0,v=0,x=0,y=0,E=0,F=0;for(t["!cols"]||(t["!cols"]=[]);w<s.length&&v<o;++w){var k=s[w];if(N5(k)){if(A.display)continue;u[v]={hidden:!0}}var X=k.children;for(x=y=0;x<X.length;++x){var q=X[x];if(!(A.display&&N5(q))){var N=q.hasAttribute("data-v")?q.getAttribute("data-v"):q.hasAttribute("v")?q.getAttribute("v"):EI(q.innerHTML),Q=q.getAttribute("data-z")||q.getAttribute("z");for(d=0;d<h.length;++d){var K=h[d];K.s.c==y+i&&K.s.r<v+n&&v+n<=K.e.r&&(y=K.e.c+1-i,d=-1)}F=+q.getAttribute("colspan")||1,((E=+q.getAttribute("rowspan")||1)>1||F>1)&&h.push({s:{r:v+n,c:y+i},e:{r:v+n+(E||1)-1,c:y+i+(F||1)-1}});var Ae={t:"s",v:N},U=q.getAttribute("data-t")||q.getAttribute("t")||"";N!=null&&(N.length==0?Ae.t=U||"z":A.raw||N.trim().length==0||U=="s"||(N==="TRUE"?Ae={t:"b",v:!0}:N==="FALSE"?Ae={t:"b",v:!1}:isNaN(Ri(N))?isNaN(Dl(N).getDate())||(Ae={t:"d",v:HA(N)},A.cellDates||(Ae={t:"n",v:YA(Ae.v)}),Ae.z=A.dateNF||Sr[14]):Ae={t:"n",v:Ri(N)})),Ae.z===void 0&&Q!=null&&(Ae.z=Q);var T="",V=q.getElementsByTagName("A");if(V&&V.length)for(var Y=0;Y<V.length&&!(V[Y].hasAttribute("href")&&(T=V[Y].getAttribute("href"),T.charAt(0)!="#"));++Y);T&&T.charAt(0)!="#"&&(Ae.l={Target:T}),A.dense?(t[v+n]||(t[v+n]=[]),t[v+n][y+i]=Ae):t[tr({c:y+i,r:v+n})]=Ae,l.e.c<y+i&&(l.e.c=y+i),y+=F}}++v}return h.length&&(t["!merges"]=(t["!merges"]||[]).concat(h)),l.e.r=Math.max(l.e.r,v-1+n),t["!ref"]=jr(l),v>=o&&(t["!fullref"]=jr((l.e.r=s.length-w+v-1+n,l))),t}function L5(t,e){var r=e||{},A=r.dense?[]:{};return I5(A,t,e)}function zO(t,e){return os(L5(t,e),e)}function N5(t){var e="",r=XO(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function XO(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var qO=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Rl({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Gr+e}}(),Q5=function(){var t=function(i){return er(i).replace(/ +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=` <table:table-cell />
|
|
322
|
+
`;e.push(vA("t",er(a)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function kN(t,e,r){var A=[Gr,Ze("ThreadedComments",null,{xmlns:aA.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(n){var i="";(n[1]||[]).forEach(function(a,s){if(!a.T){delete a.ID;return}a.a&&e.indexOf(a.a)==-1&&e.push(a.a);var o={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=o.id:o.parentId=i,a.ID=o.id,a.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(a.a)).slice(-12)+"}"),A.push(Ze("threadedComment",vA("text",a.t||""),o))})}),A.push("</ThreadedComments>"),A.join("")}function DN(t){var e=[Gr,Ze("personList",null,{xmlns:aA.TCMNT,"xmlns:x":so[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,A){e.push(Ze("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+A).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}function PN(t){var e={};e.iauthor=t.read_shift(4);var r=us(t);return e.rfx=r.s,e.ref=tr(r.s),t.l+=16,e}function RN(t,e){return e==null&&(e=Le(36)),e.write_shift(4,t[1].iauthor),co(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var MN=IA;function HN(t){return oA(t.slice(0,54))}function VN(t){var e=JA(),r=[];return He(e,628),He(e,630),t.forEach(function(A){A[1].forEach(function(n){r.indexOf(n.a)>-1||(r.push(n.a.slice(0,54)),He(e,632,HN(n.a)))})}),He(e,631),He(e,633),t.forEach(function(A){A[1].forEach(function(n){n.iauthor=r.indexOf(n.a);var i={s:sA(A[0]),e:sA(A[0])};He(e,635,RN([i,n])),n.t&&n.t.length>0&&He(e,637,GI(n)),He(e,636),delete n.iauthor})}),He(e,634),He(e,629),e.end()}function KN(t,e){e.FullPaths.forEach(function(r,A){if(A!=0){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&or.utils.cfb_add(t,n,e.FileIndex[A].content)}})}var u5=["xlsb","xlsm","xlam","biff8","xla"],GN=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function r(A,n,i,a){var s=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),a.length==0?s=!0:a.charAt(0)=="["&&(s=!0,a=a.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=a.length>0?parseInt(a,10)|0:0;return s?c+=e.c:--c,o?l+=e.r:--l,n+(s?"":"$")+UA(c)+(o?"":"$")+mA(l)}return function(n,i){return e=i,n.replace(t,r)}}(),cd=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,fd=function(){return function(e,r){return e.replace(cd,function(A,n,i,a,s,o){var l=ed(a)-(i?0:r.c),c=Z1(o)-(s?0:r.r),h=c==0?"":s?c+1:"["+c+"]",d=l==0?"":i?l+1:"["+l+"]";return n+"R"+h+"C"+d})}}();function jN(t,e){return t.replace(cd,function(r,A,n,i,a,s){return A+(n=="$"?n+i:UA(ed(i)+e.c))+(a=="$"?a+s:mA(Z1(s)+e.r))})}function WN(t){return t.length!=1}function Wr(t){t.l+=1}function ba(t,e){var r=t.read_shift(e==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function h5(t,e,r){var A=2;if(r){if(r.biff>=2&&r.biff<=5)return d5(t);r.biff==12&&(A=4)}var n=t.read_shift(A),i=t.read_shift(A),a=ba(t,2),s=ba(t,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function d5(t){var e=ba(t,2),r=ba(t,2),A=t.read_shift(1),n=t.read_shift(1);return{s:{r:e[0],c:A,cRel:e[1],rRel:e[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function zN(t,e,r){if(r.biff<8)return d5(t);var A=t.read_shift(r.biff==12?4:2),n=t.read_shift(r.biff==12?4:2),i=ba(t,2),a=ba(t,2);return{s:{r:A,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:a[0],cRel:a[1],rRel:a[2]}}}function g5(t,e,r){if(r&&r.biff>=2&&r.biff<=5)return XN(t);var A=t.read_shift(r&&r.biff==12?4:2),n=ba(t,2);return{r:A,c:n[0],cRel:n[1],rRel:n[2]}}function XN(t){var e=ba(t,2),r=t.read_shift(1);return{r:e[0],c:r,cRel:e[1],rRel:e[2]}}function qN(t){var e=t.read_shift(2),r=t.read_shift(2);return{r:e,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function YN(t,e,r){var A=r&&r.biff?r.biff:8;if(A>=2&&A<=5)return $N(t);var n=t.read_shift(A>=12?4:2),i=t.read_shift(2),a=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;n>524287;)n-=1048576;if(a==1)for(;i>8191;)i=i-16384;return{r:n,c:i,cRel:a,rRel:s}}function $N(t){var e=t.read_shift(2),r=t.read_shift(1),A=(e&32768)>>15,n=(e&16384)>>14;return e&=16383,A==1&&e>=8192&&(e=e-16384),n==1&&r>=128&&(r=r-256),{r:e,c:r,cRel:n,rRel:A}}function JN(t,e,r){var A=(t[t.l++]&96)>>5,n=h5(t,r.biff>=2&&r.biff<=5?6:8,r);return[A,n]}function ZN(t,e,r){var A=(t[t.l++]&96)>>5,n=t.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}var a=h5(t,i,r);return[A,n,a]}function e6(t,e,r){var A=(t[t.l++]&96)>>5;return t.l+=r&&r.biff>8?12:r.biff<8?6:8,[A]}function t6(t,e,r){var A=(t[t.l++]&96)>>5,n=t.read_shift(2),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}return t.l+=i,[A,n]}function r6(t,e,r){var A=(t[t.l++]&96)>>5,n=zN(t,e-1,r);return[A,n]}function A6(t,e,r){var A=(t[t.l++]&96)>>5;return t.l+=r.biff==2?6:r.biff==12?14:7,[A]}function p5(t){var e=t[t.l+1]&1,r=1;return t.l+=4,[e,r]}function n6(t,e,r){t.l+=2;for(var A=t.read_shift(r&&r.biff==2?1:2),n=[],i=0;i<=A;++i)n.push(t.read_shift(r&&r.biff==2?1:2));return n}function i6(t,e,r){var A=t[t.l+1]&255?1:0;return t.l+=2,[A,t.read_shift(r&&r.biff==2?1:2)]}function a6(t,e,r){var A=t[t.l+1]&255?1:0;return t.l+=2,[A,t.read_shift(r&&r.biff==2?1:2)]}function s6(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function o6(t,e,r){var A=t[t.l+1]&255?1:0;return t.l+=r&&r.biff==2?3:4,[A]}function v5(t){var e=t.read_shift(1),r=t.read_shift(1);return[e,r]}function l6(t){return t.read_shift(2),v5(t)}function c6(t){return t.read_shift(2),v5(t)}function f6(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=g5(t,0,r);return[A,n]}function u6(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=YN(t,0,r);return[A,n]}function h6(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=t.read_shift(2);r&&r.biff==5&&(t.l+=12);var i=g5(t,0,r);return[A,n,i]}function d6(t,e,r){var A=(t[t.l]&96)>>5;t.l+=1;var n=t.read_shift(r&&r.biff<=3?1:2);return[d8[n],y5[n],A]}function g6(t,e,r){var A=t[t.l++],n=t.read_shift(1),i=r&&r.biff<=3?[A==88?-1:0,t.read_shift(1)]:p6(t);return[n,(i[0]===0?y5:h8)[i[1]]]}function p6(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function v6(t,e,r){t.l+=r&&r.biff==2?3:4}function m6(t,e,r){if(t.l++,r&&r.biff==12)return[t.read_shift(4,"i"),0];var A=t.read_shift(2),n=t.read_shift(r&&r.biff==2?1:2);return[A,n]}function w6(t){return t.l++,jl[t.read_shift(1)]}function B6(t){return t.l++,t.read_shift(2)}function x6(t){return t.l++,t.read_shift(1)!==0}function y6(t){return t.l++,fo(t)}function C6(t,e,r){return t.l++,zB(t,e-1,r)}function E6(t,e){var r=[t.read_shift(1)];if(e==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=hL(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:r[1]=jl[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:r[1]=fo(t);break;case 2:r[1]=vL(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function b6(t,e,r){for(var A=t.read_shift(r.biff==12?4:2),n=[],i=0;i!=A;++i)n.push((r.biff==12?us:BL)(t));return n}function F6(t,e,r){var A=0,n=0;r.biff==12?(A=t.read_shift(4),n=t.read_shift(4)):(n=1+t.read_shift(1),A=1+t.read_shift(2)),r.biff>=2&&r.biff<8&&(--A,--n==0&&(n=256));for(var i=0,a=[];i!=A&&(a[i]=[]);++i)for(var s=0;s!=n;++s)a[i][s]=E6(t,r.biff);return a}function S6(t,e,r){var A=t.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,i=t.read_shift(n);switch(r.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[A,0,i]}function _6(t,e,r){if(r.biff==5)return T6(t);var A=t.read_shift(1)>>>5&3,n=t.read_shift(2),i=t.read_shift(4);return[A,n,i]}function T6(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2,"i");t.l+=8;var A=t.read_shift(2);return t.l+=12,[e,r,A]}function U6(t,e,r){var A=t.read_shift(1)>>>5&3;t.l+=r&&r.biff==2?3:4;var n=t.read_shift(r&&r.biff==2?1:2);return[A,n]}function I6(t,e,r){var A=t.read_shift(1)>>>5&3,n=t.read_shift(r&&r.biff==2?1:2);return[A,n]}function L6(t,e,r){var A=t.read_shift(1)>>>5&3;return t.l+=4,r.biff<8&&t.l--,r.biff==12&&(t.l+=2),[A]}function N6(t,e,r){var A=(t[t.l++]&96)>>5,n=t.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return t.l+=i,[A,n]}var Q6=mi,O6=mi,k6=mi;function zl(t,e,r){return t.l+=2,[qN(t)]}function ud(t){return t.l+=6,[]}var D6=zl,P6=ud,R6=ud,M6=zl;function m5(t){return t.l+=2,[jB(t),t.read_shift(2)&1]}var H6=zl,V6=m5,K6=ud,G6=zl,j6=zl,W6=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function z6(t){t.l+=2;var e=t.read_shift(2),r=t.read_shift(2),A=t.read_shift(4),n=t.read_shift(2),i=t.read_shift(2),a=W6[r>>2&31];return{ixti:e,coltype:r&3,rt:a,idx:A,c:n,C:i}}function X6(t){return t.l+=2,[t.read_shift(4)]}function q6(t,e,r){return t.l+=5,t.l+=2,t.l+=r.biff==2?1:4,["PTGSHEET"]}function Y6(t,e,r){return t.l+=r.biff==2?4:5,["PTGENDSHEET"]}function $6(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function J6(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function Z6(t){return t.l+=4,[0,0]}var w5={1:{n:"PtgExp",f:m6},2:{n:"PtgTbl",f:k6},3:{n:"PtgAdd",f:Wr},4:{n:"PtgSub",f:Wr},5:{n:"PtgMul",f:Wr},6:{n:"PtgDiv",f:Wr},7:{n:"PtgPower",f:Wr},8:{n:"PtgConcat",f:Wr},9:{n:"PtgLt",f:Wr},10:{n:"PtgLe",f:Wr},11:{n:"PtgEq",f:Wr},12:{n:"PtgGe",f:Wr},13:{n:"PtgGt",f:Wr},14:{n:"PtgNe",f:Wr},15:{n:"PtgIsect",f:Wr},16:{n:"PtgUnion",f:Wr},17:{n:"PtgRange",f:Wr},18:{n:"PtgUplus",f:Wr},19:{n:"PtgUminus",f:Wr},20:{n:"PtgPercent",f:Wr},21:{n:"PtgParen",f:Wr},22:{n:"PtgMissArg",f:Wr},23:{n:"PtgStr",f:C6},26:{n:"PtgSheet",f:q6},27:{n:"PtgEndSheet",f:Y6},28:{n:"PtgErr",f:w6},29:{n:"PtgBool",f:x6},30:{n:"PtgInt",f:B6},31:{n:"PtgNum",f:y6},32:{n:"PtgArray",f:A6},33:{n:"PtgFunc",f:d6},34:{n:"PtgFuncVar",f:g6},35:{n:"PtgName",f:S6},36:{n:"PtgRef",f:f6},37:{n:"PtgArea",f:JN},38:{n:"PtgMemArea",f:U6},39:{n:"PtgMemErr",f:Q6},40:{n:"PtgMemNoMem",f:O6},41:{n:"PtgMemFunc",f:I6},42:{n:"PtgRefErr",f:L6},43:{n:"PtgAreaErr",f:e6},44:{n:"PtgRefN",f:u6},45:{n:"PtgAreaN",f:r6},46:{n:"PtgMemAreaN",f:$6},47:{n:"PtgMemNoMemN",f:J6},57:{n:"PtgNameX",f:_6},58:{n:"PtgRef3d",f:h6},59:{n:"PtgArea3d",f:ZN},60:{n:"PtgRefErr3d",f:N6},61:{n:"PtgAreaErr3d",f:t6},255:{}},e8={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},t8={1:{n:"PtgElfLel",f:m5},2:{n:"PtgElfRw",f:G6},3:{n:"PtgElfCol",f:D6},6:{n:"PtgElfRwV",f:j6},7:{n:"PtgElfColV",f:M6},10:{n:"PtgElfRadical",f:H6},11:{n:"PtgElfRadicalS",f:K6},13:{n:"PtgElfColS",f:P6},15:{n:"PtgElfColSV",f:R6},16:{n:"PtgElfRadicalLel",f:V6},25:{n:"PtgList",f:z6},29:{n:"PtgSxName",f:X6},255:{}},r8={0:{n:"PtgAttrNoop",f:Z6},1:{n:"PtgAttrSemi",f:o6},2:{n:"PtgAttrIf",f:a6},4:{n:"PtgAttrChoose",f:n6},8:{n:"PtgAttrGoto",f:i6},16:{n:"PtgAttrSum",f:v6},32:{n:"PtgAttrBaxcel",f:p5},33:{n:"PtgAttrBaxcel",f:p5},64:{n:"PtgAttrSpace",f:l6},65:{n:"PtgAttrSpaceSemi",f:c6},128:{n:"PtgAttrIfError",f:s6},255:{}};function A8(t,e,r,A){if(A.biff<8)return mi(t,e);for(var n=t.l+e,i=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=F6(t,0,A),i.push(r[a][1]);break;case"PtgMemArea":r[a][2]=b6(t,r[a][1],A),i.push(r[a][2]);break;case"PtgExp":A&&A.biff==12&&(r[a][1][1]=t.read_shift(4),i.push(r[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[a][0]}return e=n-t.l,e!==0&&i.push(mi(t,e)),i}function n8(t,e,r){for(var A=t.l+e,n,i,a=[];A!=t.l;)e=A-t.l,i=t[t.l],n=w5[i]||w5[e8[i]],(i===24||i===25)&&(n=(i===24?t8:r8)[t[t.l+1]]),!n||!n.f?mi(t,e):a.push([n.n,n.f(t,e,r)]);return a}function i8(t){for(var e=[],r=0;r<t.length;++r){for(var A=t[r],n=[],i=0;i<A.length;++i){var a=A[i];if(a)switch(a[0]){case 2:n.push('"'+a[1].replace(/"/g,'""')+'"');break;default:n.push(a[1])}else n.push("")}e.push(n.join(","))}return e.join(";")}var a8={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function s8(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function B5(t,e,r){if(!t)return"SH33TJSERR0";if(r.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var A=t.XTI[e];if(r.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!A)return"SH33TJSERR1";var n="";if(r.biff>8)switch(t[A[0]][0]){case 357:return n=A[1]==-1?"#REF":t.SheetNames[A[1]],A[1]==A[2]?n:n+":"+t.SheetNames[A[2]];case 358:return r.SID!=null?t.SheetNames[r.SID]:"SH33TJSSAME"+t[A[0]][0];case 355:default:return"SH33TJSSRC"+t[A[0]][0]}switch(t[A[0]][0][0]){case 1025:return n=A[1]==-1?"#REF":t.SheetNames[A[1]]||"SH33TJSERR3",A[1]==A[2]?n:n+":"+t.SheetNames[A[2]];case 14849:return t[A[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return t[A[0]][0][3]?(n=A[1]==-1?"#REF":t[A[0]][0][3][A[1]]||"SH33TJSERR4",A[1]==A[2]?n:n+":"+t[A[0]][0][3][A[2]]):"SH33TJSERR2"}}function x5(t,e,r){var A=B5(t,e,r);return A=="#REF"?A:s8(A,r)}function po(t,e,r,A,n){var i=n&&n.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],o,l,c,h=0,d=0,u,w="";if(!t[0]||!t[0][0])return"";for(var v=-1,x="",y=0,E=t[0].length;y<E;++y){var F=t[0][y];switch(F[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=s.pop(),l=s.pop(),v>=0){switch(t[0][v][1][0]){case 0:x=_r(" ",t[0][v][1][1]);break;case 1:x=_r("\r",t[0][v][1][1]);break;default:if(x="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][v][1][0])}l=l+x,v=-1}s.push(l+a8[F[0]]+o);break;case"PtgIsect":o=s.pop(),l=s.pop(),s.push(l+" "+o);break;case"PtgUnion":o=s.pop(),l=s.pop(),s.push(l+","+o);break;case"PtgRange":o=s.pop(),l=s.pop(),s.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Kl(F[1][1],a,n),s.push(Gl(c,i));break;case"PtgRefN":c=r?Kl(F[1][1],r,n):F[1][1],s.push(Gl(c,i));break;case"PtgRef3d":h=F[1][1],c=Kl(F[1][2],a,n),w=x5(A,h,n),s.push(w+"!"+Gl(c,i));break;case"PtgFunc":case"PtgFuncVar":var k=F[1][0],X=F[1][1];k||(k=0),k&=127;var q=k==0?[]:s.slice(-k);s.length-=k,X==="User"&&(X=q.shift()),s.push(X+"("+q.join(",")+")");break;case"PtgBool":s.push(F[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(F[1]);break;case"PtgNum":s.push(String(F[1]));break;case"PtgStr":s.push('"'+F[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(F[1]);break;case"PtgAreaN":u=xB(F[1][1],r?{s:r}:a,n),s.push(J1(u,n));break;case"PtgArea":u=xB(F[1][1],a,n),s.push(J1(u,n));break;case"PtgArea3d":h=F[1][1],u=F[1][2],w=x5(A,h,n),s.push(w+"!"+J1(u,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=F[1][2];var N=(A.names||[])[d-1]||(A[0]||[])[d],Q=N?N.Name:"SH33TJSNAME"+String(d);Q&&Q.slice(0,6)=="_xlfn."&&!n.xlfn&&(Q=Q.slice(6)),s.push(Q);break;case"PtgNameX":var K=F[1][1];d=F[1][2];var Ae;if(n.biff<=5)K<0&&(K=-K),A[K]&&(Ae=A[K][d]);else{var U="";if(((A[K]||[])[0]||[])[0]==14849||(((A[K]||[])[0]||[])[0]==1025?A[K][d]&&A[K][d].itab>0&&(U=A.SheetNames[A[K][d].itab-1]+"!"):U=A.SheetNames[d-1]+"!"),A[K]&&A[K][d])U+=A[K][d].Name;else if(A[0]&&A[0][d])U+=A[0][d].Name;else{var T=(B5(A,K,n)||"").split(";;");T[d-1]?U=T[d-1]:U+="SH33TJSERRX"}s.push(U);break}Ae||(Ae={Name:"SH33TJSERRY"}),s.push(Ae.Name);break;case"PtgParen":var V="(",Y=")";if(v>=0){switch(x="",t[0][v][1][0]){case 2:V=_r(" ",t[0][v][1][1])+V;break;case 3:V=_r("\r",t[0][v][1][1])+V;break;case 4:Y=_r(" ",t[0][v][1][1])+Y;break;case 5:Y=_r("\r",t[0][v][1][1])+Y;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][v][1][0])}v=-1}s.push(V+s.pop()+Y);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:F[1][1],r:F[1][0]};var ce={c:r.c,r:r.r};if(A.sharedf[tr(c)]){var he=A.sharedf[tr(c)];s.push(po(he,a,ce,A,n))}else{var me=!1;for(o=0;o!=A.arrayf.length;++o)if(l=A.arrayf[o],!(c.c<l[0].s.c||c.c>l[0].e.c)&&!(c.r<l[0].s.r||c.r>l[0].e.r)){s.push(po(l[1],a,ce,A,n)),me=!0;break}me||s.push(F[1])}break;case"PtgArray":s.push("{"+i8(F[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+F[1].idx+"[#"+F[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(F));default:throw new Error("Unrecognized Formula Token: "+String(F))}var ge=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&v>=0&&ge.indexOf(t[0][y][0])==-1){F=t[0][v];var we=!0;switch(F[1][0]){case 4:we=!1;case 0:x=_r(" ",F[1][1]);break;case 5:we=!1;case 1:x=_r("\r",F[1][1]);break;default:if(x="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+F[1][0])}s.push((we?x:"")+s.pop()+(we?"":x)),v=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function o8(t){if(t==null){var e=Le(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof t=="number")return hs(t);return hs(0)}function l8(t,e,r,A,n){var i=gs(e,r,n),a=o8(t.v),s=Le(6),o=33;s.write_shift(2,o),s.write_shift(4,0);for(var l=Le(t.bf.length),c=0;c<t.bf.length;++c)l[c]=t.bf[c];var h=gA([i,a,s,l]);return h}function U0(t,e,r){var A=t.read_shift(4),n=n8(t,A,r),i=t.read_shift(4),a=i>0?A8(t,i,n,r):null;return[n,a]}var c8=U0,I0=U0,f8=U0,u8=U0,h8={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},y5={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},d8={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function g8(t){var e="of:="+t.replace(cd,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function p8(t){return t.replace(/\./,"!")}var Xl=typeof Map<"u";function hd(t,e,r){var A=0,n=t.length;if(r){if(Xl?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var i=Xl?r.get(e):r[e];A<i.length;++A)if(t[i[A]].t===e)return t.Count++,i[A]}}else for(;A<n;++A)if(t[A].t===e)return t.Count++,A;return t[n]={t:e},t.Count++,t.Unique++,r&&(Xl?(r.has(e)||r.set(e,[]),r.get(e).push(n)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(n))),n}function L0(t,e){var r={min:t+1,max:t+1},A=-1;return e.MDW&&(Vi=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?A=_0(e.wpx):e.wch!=null&&(A=e.wch),A>-1?(r.width=sd(A),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function C5(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];e=="xlml"&&(r=[1,1,1,1,.5,.5]),t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function Fa(t,e,r){var A=r.revssf[e.z!=null?e.z:"General"],n=60,i=t.length;if(A==null&&r.ssf){for(;n<392;++n)if(r.ssf[n]==null){Gw(e.z,n),r.ssf[n]=e.z,r.revssf[e.z]=A=n;break}}for(n=0;n!=i;++n)if(t[n].numFmtId===A)return n;return t[i]={numFmtId:A,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function v8(t,e,r){if(t&&t["!ref"]){var A=wr(t["!ref"]);if(A.e.c<A.s.c||A.e.r<A.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function m8(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+jr(t[r])+'"/>';return e+"</mergeCells>"}function w8(t,e,r,A,n){var i=!1,a={},s=null;if(A.bookType!=="xlsx"&&e.vbaraw){var o=e.SheetNames[r];try{e.Workbook&&(o=e.Workbook.Sheets[r].CodeName||o)}catch{}i=!0,a.codeName=Mi(er(o))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+Ze("outlinePr",null,l)}!i&&!s||(n[n.length]=Ze("sheetPr",s,a))}var B8=["objects","scenarios","selectLockedCells","selectUnlockedCells"],x8=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function y8(t){var e={sheet:1};return B8.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),x8.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=t5(t.password).toString(16).toUpperCase()),Ze("sheetProtection",null,e)}function C8(t){return C5(t),Ze("pageMargins",null,t)}function E8(t,e){for(var r=["<cols>"],A,n=0;n!=e.length;++n)(A=e[n])&&(r[r.length]=Ze("col",null,L0(n,A)));return r[r.length]="</cols>",r.join("")}function b8(t,e,r,A){var n=typeof t.ref=="string"?t.ref:jr(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,a=un(n);a.s.r==a.e.r&&(a.e.r=un(e["!ref"]).e.r,n=jr(a));for(var s=0;s<i.length;++s){var o=i[s];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==A){o.Ref="'"+r.SheetNames[A]+"'!"+n;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:A,Ref:"'"+r.SheetNames[A]+"'!"+n}),Ze("autoFilter",null,{ref:n})}function F8(t,e,r,A){var n={workbookViewId:"0"};return(((A||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=A.Workbook.Views[0].RTL?"1":"0"),Ze("sheetViews",Ze("sheetView",null,n),{})}function S8(t,e,r,A){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var n="",i=t.t,a=t.v;if(t.t!=="z")switch(t.t){case"b":n=t.v?"1":"0";break;case"n":n=""+t.v;break;case"e":n=jl[t.v];break;case"d":A&&A.cellDates?n=HA(t.v,-1).toISOString():(t=$A(t),t.t="n",n=""+(t.v=YA(HA(t.v)))),typeof t.z>"u"&&(t.z=Sr[14]);break;default:n=t.v;break}var s=vA("v",er(n)),o={r:e},l=Fa(A.cellXfs,t,A);switch(l!==0&&(o.s=l),t.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(A&&A.bookSST){s=vA("v",""+hd(A.Strings,t.v,A.revStrings)),o.t="s";break}o.t="str";break}if(t.t!=i&&(t.t=i,t.v=a),typeof t.f=="string"&&t.f){var c=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=Ze("f",er(t.f),c)+(t.v!=null?s:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(o.cm=1),Ze("c",s,o)}function _8(t,e,r,A){var n=[],i=[],a=wr(t["!ref"]),s="",o,l="",c=[],h=0,d=0,u=t["!rows"],w=Array.isArray(t),v={r:l},x,y=-1;for(d=a.s.c;d<=a.e.c;++d)c[d]=UA(d);for(h=a.s.r;h<=a.e.r;++h){for(i=[],l=mA(h),d=a.s.c;d<=a.e.c;++d){o=c[d]+l;var E=w?(t[h]||[])[d]:t[o];E!==void 0&&(s=S8(E,o,t,e))!=null&&i.push(s)}(i.length>0||u&&u[h])&&(v={r:l},u&&u[h]&&(x=u[h],x.hidden&&(v.hidden=1),y=-1,x.hpx?y=T0(x.hpx):x.hpt&&(y=x.hpt),y>-1&&(v.ht=y,v.customHeight=1),x.level&&(v.outlineLevel=x.level)),n[n.length]=Ze("row",i.join(""),v))}if(u)for(;h<u.length;++h)u&&u[h]&&(v={r:h+1},x=u[h],x.hidden&&(v.hidden=1),y=-1,x.hpx?y=T0(x.hpx):x.hpt&&(y=x.hpt),y>-1&&(v.ht=y,v.customHeight=1),x.level&&(v.outlineLevel=x.level),n[n.length]=Ze("row","",v));return n.join("")}function E5(t,e,r,A){var n=[Gr,Ze("worksheet",null,{xmlns:so[0],"xmlns:r":aA.r})],i=r.SheetNames[t],a=0,s="",o=r.Sheets[i];o==null&&(o={});var l=o["!ref"]||"A1",c=wr(l);if(c.e.c>16383||c.e.r>1048575){if(e.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=jr(c)}A||(A={}),o["!comments"]=[];var h=[];w8(o,r,t,e,n),n[n.length]=Ze("dimension",null,{ref:l}),n[n.length]=F8(o,e,t,r),e.sheetFormat&&(n[n.length]=Ze("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(n[n.length]=E8(o,o["!cols"])),n[a=n.length]="<sheetData/>",o["!links"]=[],o["!ref"]!=null&&(s=_8(o,e),s.length>0&&(n[n.length]=s)),n.length>a+1&&(n[n.length]="</sheetData>",n[a]=n[a].replace("/>",">")),o["!protect"]&&(n[n.length]=y8(o["!protect"])),o["!autofilter"]!=null&&(n[n.length]=b8(o["!autofilter"],o,r,t)),o["!merges"]!=null&&o["!merges"].length>0&&(n[n.length]=m8(o["!merges"]));var d=-1,u,w=-1;return o["!links"].length>0&&(n[n.length]="<hyperlinks>",o["!links"].forEach(function(v){v[1].Target&&(u={ref:v[0]},v[1].Target.charAt(0)!="#"&&(w=rr(A,-1,er(v[1].Target).replace(/#.*$/,""),Xt.HLINK),u["r:id"]="rId"+w),(d=v[1].Target.indexOf("#"))>-1&&(u.location=er(v[1].Target.slice(d+1))),v[1].Tooltip&&(u.tooltip=er(v[1].Tooltip)),n[n.length]=Ze("hyperlink",null,u))}),n[n.length]="</hyperlinks>"),delete o["!links"],o["!margins"]!=null&&(n[n.length]=C8(o["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(n[n.length]=vA("ignoredErrors",Ze("ignoredError",null,{numberStoredAsText:1,sqref:l}))),h.length>0&&(w=rr(A,-1,"../drawings/drawing"+(t+1)+".xml",Xt.DRAW),n[n.length]=Ze("drawing",null,{"r:id":"rId"+w}),o["!drawing"]=h),o["!comments"].length>0&&(w=rr(A,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Xt.VML),n[n.length]=Ze("legacyDrawing",null,{"r:id":"rId"+w}),o["!legacy"]=w),n.length>1&&(n[n.length]="</worksheet>",n[1]=n[1].replace("/>",">")),n.join("")}function T8(t,e){var r={},A=t.l+e;r.r=t.read_shift(4),t.l+=4;var n=t.read_shift(2);t.l+=1;var i=t.read_shift(1);return t.l=A,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=n/20),r}function U8(t,e,r){var A=Le(145),n=(r["!rows"]||[])[t]||{};A.write_shift(4,t),A.write_shift(4,0);var i=320;n.hpx?i=T0(n.hpx)*20:n.hpt&&(i=n.hpt*20),A.write_shift(2,i),A.write_shift(1,0);var a=0;n.level&&(a|=n.level),n.hidden&&(a|=16),(n.hpx||n.hpt)&&(a|=32),A.write_shift(1,a),A.write_shift(1,0);var s=0,o=A.l;A.l+=4;for(var l={r:t,c:0},c=0;c<16;++c)if(!(e.s.c>c+1<<10||e.e.c<c<<10)){for(var h=-1,d=-1,u=c<<10;u<c+1<<10;++u){l.c=u;var w=Array.isArray(r)?(r[l.r]||[])[l.c]:r[tr(l)];w&&(h<0&&(h=u),d=u)}h<0||(++s,A.write_shift(4,h),A.write_shift(4,d))}var v=A.l;return A.l=o,A.write_shift(4,s),A.l=v,A.length>A.l?A.slice(0,A.l):A}function I8(t,e,r,A){var n=U8(A,r,e);(n.length>17||(e["!rows"]||[])[A])&&He(t,0,n)}var L8=us,N8=co;function Q8(){}function O8(t,e){var r={},A=t[t.l];return++t.l,r.above=!(A&64),r.left=!(A&128),t.l+=18,r.name=jI(t),r}function k8(t,e,r){r==null&&(r=Le(84+4*t.length));var A=192;e&&(e.above&&(A&=-65),e.left&&(A&=-129)),r.write_shift(1,A);for(var n=1;n<3;++n)r.write_shift(1,0);return y0({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),EB(t,r),r.slice(0,r.l)}function D8(t){var e=Fn(t);return[e]}function P8(t,e,r){return r==null&&(r=Le(8)),ls(e,r)}function R8(t){var e=cs(t);return[e]}function M8(t,e,r){return r==null&&(r=Le(4)),fs(e,r)}function H8(t){var e=Fn(t),r=t.read_shift(1);return[e,r,"b"]}function V8(t,e,r){return r==null&&(r=Le(9)),ls(e,r),r.write_shift(1,t.v?1:0),r}function K8(t){var e=cs(t),r=t.read_shift(1);return[e,r,"b"]}function G8(t,e,r){return r==null&&(r=Le(5)),fs(e,r),r.write_shift(1,t.v?1:0),r}function j8(t){var e=Fn(t),r=t.read_shift(1);return[e,r,"e"]}function W8(t,e,r){return r==null&&(r=Le(9)),ls(e,r),r.write_shift(1,t.v),r}function z8(t){var e=cs(t),r=t.read_shift(1);return[e,r,"e"]}function X8(t,e,r){return r==null&&(r=Le(8)),fs(e,r),r.write_shift(1,t.v),r.write_shift(2,0),r.write_shift(1,0),r}function q8(t){var e=Fn(t),r=t.read_shift(4);return[e,r,"s"]}function Y8(t,e,r){return r==null&&(r=Le(12)),ls(e,r),r.write_shift(4,e.v),r}function $8(t){var e=cs(t),r=t.read_shift(4);return[e,r,"s"]}function J8(t,e,r){return r==null&&(r=Le(8)),fs(e,r),r.write_shift(4,e.v),r}function Z8(t){var e=Fn(t),r=fo(t);return[e,r,"n"]}function eQ(t,e,r){return r==null&&(r=Le(16)),ls(e,r),hs(t.v,r),r}function tQ(t){var e=cs(t),r=fo(t);return[e,r,"n"]}function rQ(t,e,r){return r==null&&(r=Le(12)),fs(e,r),hs(t.v,r),r}function AQ(t){var e=Fn(t),r=bB(t);return[e,r,"n"]}function nQ(t,e,r){return r==null&&(r=Le(12)),ls(e,r),FB(t.v,r),r}function iQ(t){var e=cs(t),r=bB(t);return[e,r,"n"]}function aQ(t,e,r){return r==null&&(r=Le(8)),fs(e,r),FB(t.v,r),r}function sQ(t){var e=Fn(t),r=td(t);return[e,r,"is"]}function oQ(t){var e=Fn(t),r=IA(t);return[e,r,"str"]}function lQ(t,e,r){return r==null&&(r=Le(12+4*t.v.length)),ls(e,r),oA(t.v,r),r.length>r.l?r.slice(0,r.l):r}function cQ(t){var e=cs(t),r=IA(t);return[e,r,"str"]}function fQ(t,e,r){return r==null&&(r=Le(8+4*t.v.length)),fs(e,r),oA(t.v,r),r.length>r.l?r.slice(0,r.l):r}function uQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=t.read_shift(1),a=[n,i,"b"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}function hQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=t.read_shift(1),a=[n,i,"e"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}function dQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=fo(t),a=[n,i,"n"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}function gQ(t,e,r){var A=t.l+e,n=Fn(t);n.r=r["!row"];var i=IA(t),a=[n,i,"str"];if(r.cellFormula){t.l+=2;var s=I0(t,A-t.l,r);a[3]=po(s,null,n,r.supbooks,r)}else t.l=A;return a}var pQ=us,vQ=co;function mQ(t,e){return e==null&&(e=Le(4)),e.write_shift(4,t),e}function wQ(t,e){var r=t.l+e,A=us(t),n=rd(t),i=IA(t),a=IA(t),s=IA(t);t.l=r;var o={rfx:A,relId:n,loc:i,display:s};return a&&(o.Tooltip=a),o}function BQ(t,e){var r=Le(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));co({s:sA(t[0]),e:sA(t[0])},r),nd("rId"+e,r);var A=t[1].Target.indexOf("#"),n=A==-1?"":t[1].Target.slice(A+1);return oA(n||"",r),oA(t[1].Tooltip||"",r),oA("",r),r.slice(0,r.l)}function xQ(){}function yQ(t,e,r){var A=t.l+e,n=SB(t),i=t.read_shift(1),a=[n];if(a[2]=i,r.cellFormula){var s=c8(t,A-t.l,r);a[1]=s}else t.l=A;return a}function CQ(t,e,r){var A=t.l+e,n=us(t),i=[n];if(r.cellFormula){var a=u8(t,A-t.l,r);i[1]=a,t.l=A}else t.l=A;return i}function EQ(t,e,r){r==null&&(r=Le(18));var A=L0(t,e);r.write_shift(-4,t),r.write_shift(-4,t),r.write_shift(4,(A.width||10)*256),r.write_shift(4,0);var n=0;return e.hidden&&(n|=1),typeof A.width=="number"&&(n|=2),e.level&&(n|=e.level<<8),r.write_shift(2,n),r}var b5=["left","right","top","bottom","header","footer"];function bQ(t){var e={};return b5.forEach(function(r){e[r]=fo(t)}),e}function FQ(t,e){return e==null&&(e=Le(6*8)),C5(t),b5.forEach(function(r){hs(t[r],e)}),e}function SQ(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function _Q(t,e,r){r==null&&(r=Le(30));var A=924;return(((e||{}).Views||[])[0]||{}).RTL&&(A|=32),r.write_shift(2,A),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function TQ(t){var e=Le(24);return e.write_shift(4,4),e.write_shift(4,1),co(t,e),e}function UQ(t,e){return e==null&&(e=Le(16*4+2)),e.write_shift(2,t.password?t5(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?e.write_shift(4,t[r[0]]!=null&&!t[r[0]]?1:0):e.write_shift(4,t[r[0]]!=null&&t[r[0]]?0:1)}),e}function IQ(){}function LQ(){}function NQ(t,e,r,A,n,i,a){if(e.v===void 0)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":e=$A(e),e.z=e.z||Sr[14],e.v=YA(HA(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v;break}var o={r,c:A};switch(o.s=Fa(n.cellXfs,e,n),e.l&&i["!links"].push([tr(o),e.l]),e.c&&i["!comments"].push([tr(o),e.c]),e.t){case"s":case"str":return n.bookSST?(s=hd(n.Strings,e.v,n.revStrings),o.t="s",o.v=s,a?He(t,18,J8(e,o)):He(t,7,Y8(e,o))):(o.t="str",a?He(t,17,fQ(e,o)):He(t,6,lQ(e,o))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?a?He(t,13,aQ(e,o)):He(t,2,nQ(e,o)):a?He(t,16,rQ(e,o)):He(t,5,eQ(e,o)),!0;case"b":return o.t="b",a?He(t,15,G8(e,o)):He(t,4,V8(e,o)),!0;case"e":return o.t="e",a?He(t,14,X8(e,o)):He(t,3,W8(e,o)),!0}return a?He(t,12,M8(e,o)):He(t,1,P8(e,o)),!0}function QQ(t,e,r,A){var n=wr(e["!ref"]||"A1"),i,a="",s=[];He(t,145);var o=Array.isArray(e),l=n.e.r;e["!rows"]&&(l=Math.max(n.e.r,e["!rows"].length-1));for(var c=n.s.r;c<=l;++c){a=mA(c),I8(t,e,n,c);var h=!1;if(c<=n.e.r)for(var d=n.s.c;d<=n.e.c;++d){c===n.s.r&&(s[d]=UA(d)),i=s[d]+a;var u=o?(e[c]||[])[d]:e[i];if(!u){h=!1;continue}h=NQ(t,u,c,d,A,e,h)}}He(t,146)}function OQ(t,e){!e||!e["!merges"]||(He(t,177,mQ(e["!merges"].length)),e["!merges"].forEach(function(r){He(t,176,vQ(r))}),He(t,178))}function kQ(t,e){!e||!e["!cols"]||(He(t,390),e["!cols"].forEach(function(r,A){r&&He(t,60,EQ(A,r))}),He(t,391))}function DQ(t,e){!e||!e["!ref"]||(He(t,648),He(t,649,TQ(wr(e["!ref"]))),He(t,650))}function PQ(t,e,r){e["!links"].forEach(function(A){if(A[1].Target){var n=rr(r,-1,A[1].Target.replace(/#.*$/,""),Xt.HLINK);He(t,494,BQ(A,n))}}),delete e["!links"]}function RQ(t,e,r,A){if(e["!comments"].length>0){var n=rr(A,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Xt.VML);He(t,551,nd("rId"+n)),e["!legacy"]=n}}function MQ(t,e,r,A){if(e["!autofilter"]){var n=e["!autofilter"],i=typeof n.ref=="string"?n.ref:jr(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=un(i);s.s.r==s.e.r&&(s.e.r=un(e["!ref"]).e.r,i=jr(s));for(var o=0;o<a.length;++o){var l=a[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==A){l.Ref="'"+r.SheetNames[A]+"'!"+i;break}}o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:A,Ref:"'"+r.SheetNames[A]+"'!"+i}),He(t,161,co(wr(i))),He(t,162)}}function HQ(t,e,r){He(t,133),He(t,137,_Q(e,r)),He(t,138),He(t,134)}function VQ(t,e){e["!protect"]&&He(t,535,UQ(e["!protect"]))}function KQ(t,e,r,A){var n=JA(),i=r.SheetNames[t],a=r.Sheets[i]||{},s=i;try{r&&r.Workbook&&(s=r.Workbook.Sheets[t].CodeName||s)}catch{}var o=wr(a["!ref"]||"A1");if(o.e.c>16383||o.e.r>1048575){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],He(n,129),(r.vbaraw||a["!outline"])&&He(n,147,k8(s,a["!outline"])),He(n,148,N8(o)),HQ(n,a,r.Workbook),kQ(n,a),QQ(n,a,t,e),VQ(n,a),MQ(n,a,r,t),OQ(n,a),PQ(n,a,A),a["!margins"]&&He(n,476,FQ(a["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&DQ(n,a),RQ(n,a,t,A),He(n,130),n.end()}function GQ(t,e){t.l+=10;var r=IA(t);return{name:r}}var jQ=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function WQ(t){return!t.Workbook||!t.Workbook.WBProps?"false":CI(t.Workbook.WBProps.date1904)?"true":"false"}var zQ="][*?/\\".split("");function F5(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return zQ.forEach(function(A){if(t.indexOf(A)!=-1){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function XQ(t,e,r){t.forEach(function(A,n){F5(A);for(var i=0;i<n;++i)if(A==t[i])throw new Error("Duplicate Sheet Name: "+A);if(r){var a=e&&e[n]&&e[n].CodeName||A;if(a.charCodeAt(0)==95&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}function qQ(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];XQ(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)v8(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function S5(t){var e=[Gr];e[e.length]=Ze("workbook",null,{xmlns:so[0],"xmlns:r":aA.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,A={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(jQ.forEach(function(s){t.Workbook.WBProps[s[0]]!=null&&t.Workbook.WBProps[s[0]]!=s[1]&&(A[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(A.codeName=t.Workbook.WBProps.CodeName,delete A.CodeName)),e[e.length]=Ze("workbookPr",null,A);var n=t.Workbook&&t.Workbook.Sheets||[],i=0;if(n&&n[0]&&n[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&!(!n[i]||!n[i].Hidden);++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var a={name:er(t.SheetNames[i].slice(0,31))};if(a.sheetId=""+(i+1),a["r:id"]="rId"+(i+1),n[i])switch(n[i].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}e[e.length]=Ze("sheet",null,a)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var o={name:s.Name};s.Comment&&(o.comment=s.Comment),s.Sheet!=null&&(o.localSheetId=""+s.Sheet),s.Hidden&&(o.hidden="1"),s.Ref&&(e[e.length]=Ze("definedName",er(s.Ref),o))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function YQ(t,e){var r={};return r.Hidden=t.read_shift(4),r.iTabID=t.read_shift(4),r.strRelID=Ad(t),r.name=IA(t),r}function $Q(t,e){return e||(e=Le(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),nd(t.strRelID,e),oA(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function JQ(t,e){var r={},A=t.read_shift(4);r.defaultThemeVersion=t.read_shift(4);var n=e>8?IA(t):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(A&65536),r.backupFile=!!(A&64),r.checkCompatibility=!!(A&4096),r.date1904=!!(A&1),r.filterPrivacy=!!(A&8),r.hidePivotFieldList=!!(A&1024),r.promptedSolutions=!!(A&16),r.publishItems=!!(A&2048),r.refreshAllConnections=!!(A&262144),r.saveExternalLinkValues=!!(A&128),r.showBorderUnselectedTables=!!(A&4),r.showInkAnnotation=!!(A&32),r.showObjects=["all","placeholders","none"][A>>13&3],r.showPivotChartFilter=!!(A&32768),r.updateLinks=["userSet","never","always"][A>>8&3],r}function ZQ(t,e){e||(e=Le(72));var r=0;return t&&t.filterPrivacy&&(r|=8),e.write_shift(4,r),e.write_shift(4,0),EB(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function eO(t,e,r){var A=t.l+e;t.l+=4,t.l+=1;var n=t.read_shift(4),i=WI(t),a=f8(t,0,r),s=rd(t);t.l=A;var o={Name:i,Ptg:a};return n<268435455&&(o.Sheet=n),s&&(o.Comment=s),o}function tO(t,e){He(t,143);for(var r=0;r!=e.SheetNames.length;++r){var A=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[r]&&e.Workbook.Sheets[r].Hidden||0,n={Hidden:A,iTabID:r+1,strRelID:"rId"+(r+1),name:e.SheetNames[r]};He(t,156,$Q(n))}He(t,144)}function rO(t,e){e||(e=Le(127));for(var r=0;r!=4;++r)e.write_shift(4,0);return oA("SheetJS",e),oA(a0.version,e),oA(a0.version,e),oA("7262",e),e.length>e.l?e.slice(0,e.l):e}function AO(t,e){e||(e=Le(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var r=120;return e.write_shift(1,r),e.length>e.l?e.slice(0,e.l):e}function nO(t,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var r=e.Workbook.Sheets,A=0,n=-1,i=-1;A<r.length;++A)!r[A]||!r[A].Hidden&&n==-1?n=A:r[A].Hidden==1&&i==-1&&(i=A);i>n||(He(t,135),He(t,158,AO(n)),He(t,136))}}function iO(t,e){var r=JA();return He(r,131),He(r,128,rO()),He(r,153,ZQ(t.Workbook&&t.Workbook.WBProps||null)),nO(r,t),tO(r,t),He(r,132),r.end()}function aO(t,e,r){return(e.slice(-4)===".bin"?iO:S5)(t)}function sO(t,e,r,A,n){return(e.slice(-4)===".bin"?KQ:E5)(t,r,A,n)}function oO(t,e,r){return(e.slice(-4)===".bin"?FN:i5)(t,r)}function lO(t,e,r){return(e.slice(-4)===".bin"?ZL:e5)(t,r)}function cO(t,e,r){return(e.slice(-4)===".bin"?VN:f5)(t)}function fO(t){return(t.slice(-4)===".bin"?QN:l5)()}function uO(t,e){var r=[];return t.Props&&r.push(oL(t.Props,e)),t.Custprops&&r.push(lL(t.Props,t.Custprops)),r.join("")}function hO(){return""}function dO(t,e){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(A,n){var i=[];i.push(Ze("NumberFormat",null,{"ss:Format":er(Sr[A.numFmtId])}));var a={"ss:ID":"s"+(21+n)};r.push(Ze("Style",i.join(""),a))}),Ze("Styles",r.join(""))}function _5(t){return Ze("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+fd(t.Ref,{r:0,c:0})})}function gO(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,r=[],A=0;A<e.length;++A){var n=e[A];n.Sheet==null&&(n.Name.match(/^_xlfn\./)||r.push(_5(n)))}return Ze("Names",r.join(""))}function pO(t,e,r,A){if(!t||!((A||{}).Workbook||{}).Names)return"";for(var n=A.Workbook.Names,i=[],a=0;a<n.length;++a){var s=n[a];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||i.push(_5(s)))}return i.join("")}function vO(t,e,r,A){if(!t)return"";var n=[];if(t["!margins"]&&(n.push("<PageSetup>"),t["!margins"].header&&n.push(Ze("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&n.push(Ze("Footer",null,{"x:Margin":t["!margins"].footer})),n.push(Ze("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),n.push("</PageSetup>")),A&&A.Workbook&&A.Workbook.Sheets&&A.Workbook.Sheets[r])if(A.Workbook.Sheets[r].Hidden)n.push(Ze("Visible",A.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(A.Workbook.Sheets[i]&&!A.Workbook.Sheets[i].Hidden);++i);i==r&&n.push("<Selected/>")}return((((A||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push("<DisplayRightToLeft/>"),t["!protect"]&&(n.push(vA("ProtectContents","True")),t["!protect"].objects&&n.push(vA("ProtectObjects","True")),t["!protect"].scenarios&&n.push(vA("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?n.push(vA("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&n.push(vA("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){t["!protect"][a[0]]&&n.push("<"+a[1]+"/>")})),n.length==0?"":Ze("WorksheetOptions",n.join(""),{xmlns:ln.x})}function mO(t){return t.map(function(e){var r=yI(e.t||""),A=Ze("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ze("Comment",A,{"ss:Author":e.a})}).join("")}function wO(t,e,r,A,n,i,a){if(!t||t.v==null&&t.f==null)return"";var s={};if(t.f&&(s["ss:Formula"]="="+er(fd(t.f,a))),t.F&&t.F.slice(0,e.length)==e){var o=sA(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(o.r==a.r?"":"["+(o.r-a.r)+"]")+"C"+(o.c==a.c?"":"["+(o.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=er(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=er(t.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=a.c||l[c].s.r!=a.r||(l[c].e.c>l[c].s.c&&(s["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(s["ss:MergeDown"]=l[c].e.r-l[c].s.r));var h="",d="";switch(t.t){case"z":if(!A.sheetStubs)return"";break;case"n":h="Number",d=String(t.v);break;case"b":h="Boolean",d=t.v?"1":"0";break;case"e":h="Error",d=jl[t.v];break;case"d":h="DateTime",d=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Sr[14]);break;case"s":h="String",d=xI(t.v||"");break}var u=Fa(A.cellXfs,t,A);s["ss:StyleID"]="s"+(21+u),s["ss:Index"]=a.c+1;var w=t.v!=null?d:"",v=t.t=="z"?"":'<Data ss:Type="'+h+'">'+w+"</Data>";return(t.c||[]).length>0&&(v+=mO(t.c)),Ze("Cell",v,s)}function BO(t,e){var r='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=n5(e.hpt)),e.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(r+=' ss:Hidden="1"')),r+">"}function xO(t,e,r,A){if(!t["!ref"])return"";var n=wr(t["!ref"]),i=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(x,y){od(x);var E=!!x.width,F=L0(y,x),k={"ss:Index":y+1};E&&(k["ss:Width"]=S0(F.width)),x.hidden&&(k["ss:Hidden"]="1"),s.push(Ze("Column",null,k))});for(var o=Array.isArray(t),l=n.s.r;l<=n.e.r;++l){for(var c=[BO(l,(t["!rows"]||[])[l])],h=n.s.c;h<=n.e.c;++h){var d=!1;for(a=0;a!=i.length;++a)if(!(i[a].s.c>h)&&!(i[a].s.r>l)&&!(i[a].e.c<h)&&!(i[a].e.r<l)){(i[a].s.c!=h||i[a].s.r!=l)&&(d=!0);break}if(!d){var u={r:l,c:h},w=tr(u),v=o?(t[l]||[])[h]:t[w];c.push(wO(v,w,t,e,r,A,u))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function yO(t,e,r){var A=[],n=r.SheetNames[t],i=r.Sheets[n],a=i?pO(i,e,t,r):"";return a.length>0&&A.push("<Names>"+a+"</Names>"),a=i?xO(i,e,t,r):"",a.length>0&&A.push("<Table>"+a+"</Table>"),A.push(vO(i,e,t,r)),A.join("")}function CO(t,e){e||(e={}),t.SSF||(t.SSF=$A(Sr)),t.SSF&&(g0(),d0(t.SSF),e.revssf=p0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],Fa(e.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(uO(t,e)),r.push(hO()),r.push(""),r.push("");for(var A=0;A<t.SheetNames.length;++A)r.push(Ze("Worksheet",yO(A,e,t),{"ss:Name":er(t.SheetNames[A])}));return r[2]=dO(t,e),r[3]=gO(t),Gr+Ze("Workbook",r.join(""),{xmlns:ln.ss,"xmlns:o":ln.o,"xmlns:x":ln.x,"xmlns:ss":ln.ss,"xmlns:dt":ln.dt,"xmlns:html":ln.html})}var dd={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function EO(t,e){var r=[],A=[],n=[],i=0,a,s=Ww(TB,"n"),o=Ww(UB,"n");if(t.Props)for(a=pA(t.Props),i=0;i<a.length;++i)(Object.prototype.hasOwnProperty.call(s,a[i])?r:Object.prototype.hasOwnProperty.call(o,a[i])?A:n).push([a[i],t.Props[a[i]]]);if(t.Custprops)for(a=pA(t.Custprops),i=0;i<a.length;++i)Object.prototype.hasOwnProperty.call(t.Props||{},a[i])||(Object.prototype.hasOwnProperty.call(s,a[i])?r:Object.prototype.hasOwnProperty.call(o,a[i])?A:n).push([a[i],t.Custprops[a[i]]]);var l=[];for(i=0;i<n.length;++i)VB.indexOf(n[i][0])>-1||DB.indexOf(n[i][0])>-1||n[i][1]!=null&&l.push(n[i]);A.length&&or.utils.cfb_add(e,"/SummaryInformation",GB(A,dd.SI,o,UB)),(r.length||l.length)&&or.utils.cfb_add(e,"/DocumentSummaryInformation",GB(r,dd.DSI,s,TB,l.length?l:null,dd.UDI))}function bO(t,e){var r=e||{},A=or.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return or.utils.cfb_add(A,n,T5(t,r)),r.biff==8&&(t.Props||t.Custprops)&&EO(t,A),r.biff==8&&t.vbaraw&&KN(A,or.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),A}var FO={0:{f:T8},1:{f:D8},2:{f:AQ},3:{f:j8},4:{f:H8},5:{f:Z8},6:{f:oQ},7:{f:q8},8:{f:gQ},9:{f:dQ},10:{f:uQ},11:{f:hQ},12:{f:R8},13:{f:iQ},14:{f:z8},15:{f:K8},16:{f:tQ},17:{f:cQ},18:{f:$8},19:{f:td},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:eO},40:{},42:{},43:{f:oN},44:{f:aN},45:{f:fN},46:{f:hN},47:{f:uN},48:{},49:{f:RI},50:{},51:{f:TN},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ML},62:{f:sQ},63:{f:ON},64:{f:IQ},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:mi,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:SQ},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:O8},148:{f:L8,p:16},151:{f:xQ},152:{},153:{f:JQ},154:{},155:{},156:{f:YQ},157:{},158:{},159:{T:1,f:YL},160:{T:-1},161:{T:1,f:us},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:pQ},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:SN},336:{T:-1},337:{f:LN,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Ad},357:{},358:{},359:{},360:{T:1},361:{},362:{f:QL},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:yQ},427:{f:CQ},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:bQ},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Q8},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:wQ},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Ad},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:MN},633:{T:1},634:{T:-1},635:{T:1,f:PN},636:{T:-1},637:{f:KI},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:GQ},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:LQ},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function et(t,e,r,A){var n=e;if(!isNaN(n)){var i=A||(r||[]).length||0,a=t.next(4);a.write_shift(2,n),a.write_shift(2,i),i>0&&$1(r)&&t.push(r)}}function SO(t,e,r,A){var n=A||(r||[]).length||0;if(n<=8224)return et(t,e,r,n);var i=e;if(!isNaN(i)){for(var a=r.parts||[],s=0,o=0,l=0;l+(a[s]||8224)<=8224;)l+=a[s]||8224,s++;var c=t.next(4);for(c.write_shift(2,i),c.write_shift(2,l),t.push(r.slice(o,o+l)),o+=l;o<n;){for(c=t.next(4),c.write_shift(2,60),l=0;l+(a[s]||8224)<=8224;)l+=a[s]||8224,s++;c.write_shift(2,l),t.push(r.slice(o,o+l)),o+=l}}}function ql(t,e,r){return t||(t=Le(7)),t.write_shift(2,e),t.write_shift(2,r),t.write_shift(2,0),t.write_shift(1,0),t}function _O(t,e,r,A){var n=Le(9);return ql(n,t,e),WB(r,A||"b",n),n}function TO(t,e,r){var A=Le(8+2*r.length);return ql(A,t,e),A.write_shift(1,r.length),A.write_shift(r.length,r,"sbcs"),A.l<A.length?A.slice(0,A.l):A}function UO(t,e,r,A){if(e.v!=null)switch(e.t){case"d":case"n":var n=e.t=="d"?YA(HA(e.v)):e.v;n==(n|0)&&n>=0&&n<65536?et(t,2,GL(r,A,n)):et(t,3,KL(r,A,n));return;case"b":case"e":et(t,5,_O(r,A,e.v,e.t));return;case"s":case"str":et(t,4,TO(r,A,(e.v||"").slice(0,255)));return}et(t,1,ql(null,r,A))}function IO(t,e,r,A){var n=Array.isArray(e),i=wr(e["!ref"]||"A1"),a,s="",o=[];if(i.e.c>255||i.e.r>16383){if(A.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),a=jr(i)}for(var l=i.s.r;l<=i.e.r;++l){s=mA(l);for(var c=i.s.c;c<=i.e.c;++c){l===i.s.r&&(o[c]=UA(c)),a=o[c]+s;var h=n?(e[l]||[])[c]:e[a];h&&UO(t,h,l,c)}}}function LO(t,e){for(var r=e||{},A=JA(),n=0,i=0;i<t.SheetNames.length;++i)t.SheetNames[i]==r.sheet&&(n=i);if(n==0&&r.sheet&&t.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return et(A,r.biff==4?1033:r.biff==3?521:9,ad(t,16,r)),IO(A,t.Sheets[t.SheetNames[n]],n,r),et(A,10),A.end()}function NO(t,e,r){et(t,49,FL({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function QO(t,e,r){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(A){for(var n=A[0];n<=A[1];++n)e[n]!=null&&et(t,1054,TL(n,e[n],r))})}function OO(t,e){var r=Le(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),et(t,2151,r),r=Le(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),YB(wr(e["!ref"]||"A1"),r),r.write_shift(4,4),et(t,2152,r)}function kO(t,e){for(var r=0;r<16;++r)et(t,224,$B({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(A){et(t,224,$B(A,0,e))})}function DO(t,e){for(var r=0;r<e["!links"].length;++r){var A=e["!links"][r];et(t,440,DL(A)),A[1].Tooltip&&et(t,2048,PL(A))}delete e["!links"]}function PO(t,e){if(e){var r=0;e.forEach(function(A,n){++r<=256&&A&&et(t,125,HL(L0(n,A),n))})}}function RO(t,e,r,A,n){var i=16+Fa(n.cellXfs,e,n);if(e.v==null&&!e.bf){et(t,513,gs(r,A,i));return}if(e.bf)et(t,6,l8(e,r,A,n,i));else switch(e.t){case"d":case"n":var a=e.t=="d"?YA(HA(e.v)):e.v;et(t,515,NL(r,A,a,i));break;case"b":case"e":et(t,517,LL(r,A,e.v,i,n,e.t));break;case"s":case"str":if(n.bookSST){var s=hd(n.Strings,e.v,n.revStrings);et(t,253,SL(r,A,s,i))}else et(t,516,_L(r,A,(e.v||"").slice(0,255),i,n));break;default:et(t,513,gs(r,A,i))}}function MO(t,e,r){var A=JA(),n=r.SheetNames[t],i=r.Sheets[n]||{},a=(r||{}).Workbook||{},s=(a.Sheets||[])[t]||{},o=Array.isArray(i),l=e.biff==8,c,h="",d=[],u=wr(i["!ref"]||"A1"),w=l?65536:16384;if(u.e.c>255||u.e.r>=w){if(e.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");u.e.c=Math.min(u.e.c,255),u.e.r=Math.min(u.e.c,w-1)}et(A,2057,ad(r,16,e)),et(A,13,Sn(1)),et(A,12,Sn(100)),et(A,15,VA(!0)),et(A,17,VA(!1)),et(A,16,hs(.001)),et(A,95,VA(!0)),et(A,42,VA(!1)),et(A,43,VA(!1)),et(A,130,Sn(1)),et(A,128,IL([0,0])),et(A,131,VA(!1)),et(A,132,VA(!1)),l&&PO(A,i["!cols"]),et(A,512,UL(u,e)),l&&(i["!links"]=[]);for(var v=u.s.r;v<=u.e.r;++v){h=mA(v);for(var x=u.s.c;x<=u.e.c;++x){v===u.s.r&&(d[x]=UA(x)),c=d[x]+h;var y=o?(i[v]||[])[x]:i[c];y&&(RO(A,y,v,x,e),l&&y.l&&i["!links"].push([c,y.l]))}}var E=s.CodeName||s.name||n;return l&&et(A,574,bL((a.Views||[])[0])),l&&(i["!merges"]||[]).length&&et(A,229,kL(i["!merges"])),l&&DO(A,i),et(A,442,XB(E)),l&&OO(A,i),et(A,10),A.end()}function HO(t,e,r){var A=JA(),n=(t||{}).Workbook||{},i=n.Sheets||[],a=n.WBProps||{},s=r.biff==8,o=r.biff==5;if(et(A,2057,ad(t,5,r)),r.bookType=="xla"&&et(A,135),et(A,225,s?Sn(1200):null),et(A,193,uL(2)),o&&et(A,191),o&&et(A,192),et(A,226),et(A,92,xL("SheetJS",r)),et(A,66,Sn(s?1200:1252)),s&&et(A,353,Sn(0)),s&&et(A,448),et(A,317,VL(t.SheetNames.length)),s&&t.vbaraw&&et(A,211),s&&t.vbaraw){var l=a.CodeName||"ThisWorkbook";et(A,442,XB(l))}et(A,156,Sn(17)),et(A,25,VA(!1)),et(A,18,VA(!1)),et(A,19,Sn(0)),s&&et(A,431,VA(!1)),s&&et(A,444,Sn(0)),et(A,61,EL()),et(A,64,VA(!1)),et(A,141,Sn(0)),et(A,34,VA(WQ(t)=="true")),et(A,14,VA(!0)),s&&et(A,439,VA(!1)),et(A,218,Sn(0)),NO(A,t,r),QO(A,t.SSF,r),kO(A,r),s&&et(A,352,VA(!1));var c=A.end(),h=JA();s&&et(h,140,RL()),s&&r.Strings&&SO(h,252,CL(r.Strings)),et(h,10);var d=h.end(),u=JA(),w=0,v=0;for(v=0;v<t.SheetNames.length;++v)w+=(s?12:11)+(s?2:1)*t.SheetNames[v].length;var x=c.length+w+d.length;for(v=0;v<t.SheetNames.length;++v){var y=i[v]||{};et(u,133,yL({pos:x,hs:y.Hidden||0,dt:0,name:t.SheetNames[v]},r)),x+=e[v].length}var E=u.end();if(w!=E.length)throw new Error("BS8 "+w+" != "+E.length);var F=[];return c.length&&F.push(c),E.length&&F.push(E),d.length&&F.push(d),gA(F)}function VO(t,e){var r=e||{},A=[];t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(g0(),d0(t.SSF),r.revssf=p0(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,vd(r),r.cellXfs=[],Fa(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var n=0;n<t.SheetNames.length;++n)A[A.length]=MO(n,r,t);return A.unshift(HO(t,A,r)),gA(A)}function T5(t,e){for(var r=0;r<=t.SheetNames.length;++r){var A=t.Sheets[t.SheetNames[r]];if(!(!A||!A["!ref"])){var n=un(A["!ref"]);n.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=e||{};switch(i.biff||2){case 8:case 5:return VO(t,e);case 4:case 3:case 2:return LO(t,e)}throw new Error("invalid type "+i.bookType+" for BIFF")}function KO(t,e,r,A){for(var n=t["!merges"]||[],i=[],a=e.s.c;a<=e.e.c;++a){for(var s=0,o=0,l=0;l<n.length;++l)if(!(n[l].s.r>r||n[l].s.c>a)&&!(n[l].e.r<r||n[l].e.c<a)){if(n[l].s.r<r||n[l].s.c<a){s=-1;break}s=n[l].e.r-n[l].s.r+1,o=n[l].e.c-n[l].s.c+1;break}if(!(s<0)){var c=tr({r,c:a}),h=A.dense?(t[r]||[])[a]:t[c],d=h&&h.v!=null&&(h.h||BI(h.w||(Hi(h),h.w)||""))||"",u={};s>1&&(u.rowspan=s),o>1&&(u.colspan=o),A.editable?d='<span contenteditable="true">'+d+"</span>":h&&(u["data-t"]=h&&h.t||"z",h.v!=null&&(u["data-v"]=h.v),h.z!=null&&(u["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+h.l.Target+'">'+d+"</a>")),u.id=(A.id||"sjs")+"-"+c,i.push(Ze("td",d,u))}}var w="<tr>";return w+i.join("")+"</tr>"}var GO='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',jO="</body></html>";function WO(t,e,r){var A=[];return A.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function U5(t,e){var r=e||{},A=r.header!=null?r.header:GO,n=r.footer!=null?r.footer:jO,i=[A],a=un(t["!ref"]);r.dense=Array.isArray(t),i.push(WO(t,a,r));for(var s=a.s.r;s<=a.e.r;++s)i.push(KO(t,a,s,r));return i.push("</table>"+n),i.join("")}function I5(t,e,r){var A=r||{},n=0,i=0;if(A.origin!=null)if(typeof A.origin=="number")n=A.origin;else{var a=typeof A.origin=="string"?sA(A.origin):A.origin;n=a.r,i=a.c}var s=e.getElementsByTagName("tr"),o=Math.min(A.sheetRows||1e7,s.length),l={s:{r:0,c:0},e:{r:n,c:i}};if(t["!ref"]){var c=un(t["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),n==-1&&(l.e.r=n=c.e.r+1)}var h=[],d=0,u=t["!rows"]||(t["!rows"]=[]),w=0,v=0,x=0,y=0,E=0,F=0;for(t["!cols"]||(t["!cols"]=[]);w<s.length&&v<o;++w){var k=s[w];if(N5(k)){if(A.display)continue;u[v]={hidden:!0}}var X=k.children;for(x=y=0;x<X.length;++x){var q=X[x];if(!(A.display&&N5(q))){var N=q.hasAttribute("data-v")?q.getAttribute("data-v"):q.hasAttribute("v")?q.getAttribute("v"):EI(q.innerHTML),Q=q.getAttribute("data-z")||q.getAttribute("z");for(d=0;d<h.length;++d){var K=h[d];K.s.c==y+i&&K.s.r<v+n&&v+n<=K.e.r&&(y=K.e.c+1-i,d=-1)}F=+q.getAttribute("colspan")||1,((E=+q.getAttribute("rowspan")||1)>1||F>1)&&h.push({s:{r:v+n,c:y+i},e:{r:v+n+(E||1)-1,c:y+i+(F||1)-1}});var Ae={t:"s",v:N},U=q.getAttribute("data-t")||q.getAttribute("t")||"";N!=null&&(N.length==0?Ae.t=U||"z":A.raw||N.trim().length==0||U=="s"||(N==="TRUE"?Ae={t:"b",v:!0}:N==="FALSE"?Ae={t:"b",v:!1}:isNaN(Ri(N))?isNaN(Dl(N).getDate())||(Ae={t:"d",v:HA(N)},A.cellDates||(Ae={t:"n",v:YA(Ae.v)}),Ae.z=A.dateNF||Sr[14]):Ae={t:"n",v:Ri(N)})),Ae.z===void 0&&Q!=null&&(Ae.z=Q);var T="",V=q.getElementsByTagName("A");if(V&&V.length)for(var Y=0;Y<V.length&&!(V[Y].hasAttribute("href")&&(T=V[Y].getAttribute("href"),T.charAt(0)!="#"));++Y);T&&T.charAt(0)!="#"&&(Ae.l={Target:T}),A.dense?(t[v+n]||(t[v+n]=[]),t[v+n][y+i]=Ae):t[tr({c:y+i,r:v+n})]=Ae,l.e.c<y+i&&(l.e.c=y+i),y+=F}}++v}return h.length&&(t["!merges"]=(t["!merges"]||[]).concat(h)),l.e.r=Math.max(l.e.r,v-1+n),t["!ref"]=jr(l),v>=o&&(t["!fullref"]=jr((l.e.r=s.length-w+v-1+n,l))),t}function L5(t,e){var r=e||{},A=r.dense?[]:{};return I5(A,t,e)}function zO(t,e){return os(L5(t,e),e)}function N5(t){var e="",r=XO(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function XO(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var qO=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Rl({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Gr+e}}(),Q5=function(){var t=function(i){return er(i).replace(/ +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=` <table:table-cell />
|
|
323
323
|
`,r=` <table:covered-table-cell/>
|
|
324
324
|
`,A=function(i,a,s){var o=[];o.push(' <table:table table:name="'+er(a.SheetNames[s])+`" table:style-name="ta1">
|
|
325
325
|
`);var l=0,c=0,h=un(i["!ref"]||"A1"),d=i["!merges"]||[],u=0,w=Array.isArray(i);if(i["!cols"])for(c=0;c<=h.e.c;++c)o.push(" <table:table-column"+(i["!cols"][c]?' table:style-name="co'+i["!cols"][c].ods+'"':"")+`></table:table-column>
|
|
@@ -353,11 +353,11 @@ end`};e.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,l=a
|
|
|
353
353
|
`),o.push(` <office:spreadsheet>
|
|
354
354
|
`);for(var h=0;h!=a.SheetNames.length;++h)o.push(A(a.Sheets[a.SheetNames[h]],a,h));return o.push(` </office:spreadsheet>
|
|
355
355
|
`),o.push(` </office:body>
|
|
356
|
-
`),s.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function O5(t,e){if(e.bookType=="fods")return Q5(t,e);var r=j1(),A="",n=[],i=[];return A="mimetype",Ot(r,A,"application/vnd.oasis.opendocument.spreadsheet"),A="content.xml",Ot(r,A,Q5(t,e)),n.push([A,"text/xml"]),i.push([A,"ContentFile"]),A="styles.xml",Ot(r,A,qO(t,e)),n.push([A,"text/xml"]),i.push([A,"StylesFile"]),A="meta.xml",Ot(r,A,Gr+OB()),n.push([A,"text/xml"]),i.push([A,"MetadataFile"]),A="manifest.rdf",Ot(r,A,sL(i)),n.push([A,"application/rdf+xml"]),A="META-INF/manifest.xml",Ot(r,A,iL(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function N0(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function YO(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):Vn(Mi(t))}function $O(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var A=0;A<e.length;++A)if(t[r+A]!=e[A])continue e;return!0}return!1}function Sa(t){var e=t.reduce(function(n,i){return n+i.length},0),r=new Uint8Array(e),A=0;return t.forEach(function(n){r.set(n,A),A+=n.length}),r}function JO(t,e,r){var A=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,A-6176);t[e+15]|=A>>7,t[e+14]|=(A&127)<<1;for(var i=0;n>=1;++i,n/=256)t[e+i]=n&255;t[e+15]|=r>=0?0:128}function Yl(t,e){var r=e?e[0]:0,A=t[r]&127;e:if(t[r++]>=128&&(A|=(t[r]&127)<<7,t[r++]<128||(A|=(t[r]&127)<<14,t[r++]<128)||(A|=(t[r]&127)<<21,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),A}function Ar(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function vo(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function eA(t){for(var e=[],r=[0];r[0]<t.length;){var A=r[0],n=Yl(t,r),i=n&7;n=Math.floor(n/8);var a=0,s;if(n==0)break;switch(i){case 0:{for(var o=r[0];t[r[0]++]>=128;);s=t.slice(o,r[0])}break;case 5:a=4,s=t.slice(r[0],r[0]+a),r[0]+=a;break;case 1:a=8,s=t.slice(r[0],r[0]+a),r[0]+=a;break;case 2:a=Yl(t,r),s=t.slice(r[0],r[0]+a),r[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(A))}var l={data:s,type:i};e[n]==null?e[n]=[l]:e[n].push(l)}return e}function BA(t){var e=[];return t.forEach(function(r,A){r.forEach(function(n){n.data&&(e.push(Ar(A*8+n.type)),n.type==2&&e.push(Ar(n.data.length)),e.push(n.data))})}),Sa(e)}function jn(t){for(var e,r=[],A=[0];A[0]<t.length;){var n=Yl(t,A),i=eA(t.slice(A[0],A[0]+n));A[0]+=n;var a={id:vo(i[1][0].data),messages:[]};i[2].forEach(function(s){var o=eA(s.data),l=vo(o[3][0].data);a.messages.push({meta:o,data:t.slice(A[0],A[0]+l)}),A[0]+=l}),(e=i[3])!=null&&e[0]&&(a.merge=vo(i[3][0].data)>>>0>0),r.push(a)}return r}function mo(t){var e=[];return t.forEach(function(r){var A=[];A[1]=[{data:Ar(r.id),type:0}],A[2]=[],r.merge!=null&&(A[3]=[{data:Ar(+!!r.merge),type:0}]);var n=[];r.messages.forEach(function(a){n.push(a.data),a.meta[3]=[{type:0,data:Ar(a.data.length)}],A[2].push({data:BA(a.meta),type:2})});var i=BA(A);e.push(Ar(i.length)),e.push(i),n.forEach(function(a){return e.push(a)})}),Sa(e)}function ZO(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],A=Yl(e,r),n=[];r[0]<e.length;){var i=e[r[0]]&3;if(i==0){var a=e[r[0]++]>>2;if(a<60)++a;else{var s=a-59;a=e[r[0]],s>1&&(a|=e[r[0]+1]<<8),s>2&&(a|=e[r[0]+2]<<16),s>3&&(a|=e[r[0]+3]<<24),a>>>=0,a++,r[0]+=s}n.push(e.slice(r[0],r[0]+a)),r[0]+=a;continue}else{var o=0,l=0;if(i==1?(l=(e[r[0]]>>2&7)+4,o=(e[r[0]++]&224)<<3,o|=e[r[0]++]):(l=(e[r[0]++]>>2)+1,i==2?(o=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(o=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),n=[Sa(n)],o==0)throw new Error("Invalid offset 0");if(o>n[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(n.push(n[0].slice(-o)),l-=o;l>=n[n.length-1].length;)n.push(n[n.length-1]),l-=n[n.length-1].length;n.push(n[0].slice(-o,-o+l))}}var c=Sa(n);if(c.length!=A)throw new Error("Unexpected length: ".concat(c.length," != ").concat(A));return c}function Wn(t){for(var e=[],r=0;r<t.length;){var A=t[r++],n=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(ZO(A,t.slice(r,r+n))),r+=n}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Sa(e)}function wo(t){for(var e=[],r=0;r<t.length;){var A=Math.min(t.length-r,268435455),n=new Uint8Array(4);e.push(n);var i=Ar(A),a=i.length;e.push(i),A<=60?(a++,e.push(new Uint8Array([A-1<<2]))):A<=256?(a+=2,e.push(new Uint8Array([240,A-1&255]))):A<=65536?(a+=3,e.push(new Uint8Array([244,A-1&255,A-1>>8&255]))):A<=16777216?(a+=4,e.push(new Uint8Array([248,A-1&255,A-1>>8&255,A-1>>16&255]))):A<=4294967296&&(a+=5,e.push(new Uint8Array([252,A-1&255,A-1>>8&255,A-1>>16&255,A-1>>>24&255]))),e.push(t.slice(r,r+A)),a+=A,n[0]=0,n[1]=a&255,n[2]=a>>8&255,n[3]=a>>16&255,r+=A}return Sa(e)}function gd(t,e){var r=new Uint8Array(32),A=N0(r),n=12,i=0;switch(r[0]=5,t.t){case"n":r[1]=2,JO(r,n,t.v),i|=1,n+=16;break;case"b":r[1]=6,A.setFloat64(n,t.v?1:0,!0),i|=2,n+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,A.setUint32(n,e.indexOf(t.v),!0),i|=8,n+=4;break;default:throw"unsupported cell type "+t.t}return A.setUint32(8,i,!0),r.slice(0,n)}function pd(t,e){var r=new Uint8Array(32),A=N0(r),n=12,i=0;switch(r[0]=3,t.t){case"n":r[2]=2,A.setFloat64(n,t.v,!0),i|=32,n+=8;break;case"b":r[2]=6,A.setFloat64(n,t.v?1:0,!0),i|=32,n+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,A.setUint32(n,e.indexOf(t.v),!0),i|=16,n+=4;break;default:throw"unsupported cell type "+t.t}return A.setUint32(4,i,!0),r.slice(0,n)}function _a(t){var e=eA(t);return Yl(e[1][0].data)}function ek(t,e,r){var A,n,i,a;if(!((A=t[6])!=null&&A[0])||!((n=t[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(i=t[8])==null?void 0:i[0])==null?void 0:a.data)&&vo(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var o=0,l=N0(t[7][0].data),c=0,h=[],d=N0(t[4][0].data),u=0,w=[],v=0;v<e.length;++v){if(e[v]==null){l.setUint16(v*2,65535,!0),d.setUint16(v*2,65535);continue}l.setUint16(v*2,c,!0),d.setUint16(v*2,u,!0);var x,y;switch(typeof e[v]){case"string":x=gd({t:"s",v:e[v]},r),y=pd({t:"s",v:e[v]},r);break;case"number":x=gd({t:"n",v:e[v]},r),y=pd({t:"n",v:e[v]},r);break;case"boolean":x=gd({t:"b",v:e[v]},r),y=pd({t:"b",v:e[v]},r);break;default:throw new Error("Unsupported value "+e[v])}h.push(x),c+=x.length,w.push(y),u+=y.length,++o}for(t[2][0].data=Ar(o);v<t[7][0].data.length/2;++v)l.setUint16(v*2,65535,!0),d.setUint16(v*2,65535,!0);return t[6][0].data=Sa(h),t[3][0].data=Sa(w),o}function tk(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var A=un(r["!ref"]);A.s.r=A.s.c=0;var n=!1;A.e.c>9&&(n=!0,A.e.c=9),A.e.r>49&&(n=!0,A.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(jr(A)));var i=O0(r,{range:A,header:1}),a=["~Sh33tJ5~"];i.forEach(function(_){return _.forEach(function(S){typeof S=="string"&&a.push(S)})});var s={},o=[],l=or.read(e.numbers,{type:"base64"});l.FileIndex.map(function(_,S){return[_,l.FullPaths[S]]}).forEach(function(_){var S=_[0],O=_[1];if(S.type==2&&S.name.match(/\.iwa/)){var W=S.content,ie=Wn(W),oe=jn(ie);oe.forEach(function(le){o.push(le.id),s[le.id]={deps:[],location:O,type:vo(le.messages[0].meta[1][0].data)}})}}),o.sort(function(_,S){return _-S});var c=o.filter(function(_){return _>1}).map(function(_){return[_,Ar(_)]});l.FileIndex.map(function(_,S){return[_,l.FullPaths[S]]}).forEach(function(_){var S=_[0];if(_[1],!!S.name.match(/\.iwa/)){var O=jn(Wn(S.content));O.forEach(function(W){W.messages.forEach(function(ie){c.forEach(function(oe){W.messages.some(function(le){return vo(le.meta[1][0].data)!=11006&&$O(le.data,oe[1])})&&s[oe[0]].deps.push(W.id)})})})}});for(var h=or.find(l,s[1].location),d=jn(Wn(h.content)),u,w=0;w<d.length;++w){var v=d[w];v.id==1&&(u=v)}var x=_a(eA(u.messages[0].data)[1][0].data);for(h=or.find(l,s[x].location),d=jn(Wn(h.content)),w=0;w<d.length;++w)v=d[w],v.id==x&&(u=v);for(x=_a(eA(u.messages[0].data)[2][0].data),h=or.find(l,s[x].location),d=jn(Wn(h.content)),w=0;w<d.length;++w)v=d[w],v.id==x&&(u=v);for(x=_a(eA(u.messages[0].data)[2][0].data),h=or.find(l,s[x].location),d=jn(Wn(h.content)),w=0;w<d.length;++w)v=d[w],v.id==x&&(u=v);var y=eA(u.messages[0].data);{y[6][0].data=Ar(A.e.r+1),y[7][0].data=Ar(A.e.c+1);var E=_a(y[46][0].data),F=or.find(l,s[E].location),k=jn(Wn(F.content));{for(var X=0;X<k.length&&k[X].id!=E;++X);if(k[X].id!=E)throw"Bad ColumnRowUIDMapArchive";var q=eA(k[X].messages[0].data);q[1]=[],q[2]=[],q[3]=[];for(var N=0;N<=A.e.c;++N){var Q=[];Q[1]=Q[2]=[{type:0,data:Ar(N+420690)}],q[1].push({type:2,data:BA(Q)}),q[2].push({type:0,data:Ar(N)}),q[3].push({type:0,data:Ar(N)})}q[4]=[],q[5]=[],q[6]=[];for(var K=0;K<=A.e.r;++K)Q=[],Q[1]=Q[2]=[{type:0,data:Ar(K+726270)}],q[4].push({type:2,data:BA(Q)}),q[5].push({type:0,data:Ar(K)}),q[6].push({type:0,data:Ar(K)});k[X].messages[0].data=BA(q)}F.content=wo(mo(k)),F.size=F.content.length,delete y[46];var Ae=eA(y[4][0].data);{Ae[7][0].data=Ar(A.e.r+1);var U=eA(Ae[1][0].data),T=_a(U[2][0].data);F=or.find(l,s[T].location),k=jn(Wn(F.content));{if(k[0].id!=T)throw"Bad HeaderStorageBucket";var V=eA(k[0].messages[0].data);for(K=0;K<i.length;++K){var Y=eA(V[2][0].data);Y[1][0].data=Ar(K),Y[4][0].data=Ar(i[K].length),V[2][K]={type:V[2][0].type,data:BA(Y)}}k[0].messages[0].data=BA(V)}F.content=wo(mo(k)),F.size=F.content.length;var ce=_a(Ae[2][0].data);F=or.find(l,s[ce].location),k=jn(Wn(F.content));{if(k[0].id!=ce)throw"Bad HeaderStorageBucket";for(V=eA(k[0].messages[0].data),N=0;N<=A.e.c;++N)Y=eA(V[2][0].data),Y[1][0].data=Ar(N),Y[4][0].data=Ar(A.e.r+1),V[2][N]={type:V[2][0].type,data:BA(Y)};k[0].messages[0].data=BA(V)}F.content=wo(mo(k)),F.size=F.content.length;var he=_a(Ae[4][0].data);(function(){for(var _=or.find(l,s[he].location),S=jn(Wn(_.content)),O,W=0;W<S.length;++W){var ie=S[W];ie.id==he&&(O=ie)}var oe=eA(O.messages[0].data);{oe[3]=[];var le=[];a.forEach(function(Re,Xe){le[1]=[{type:0,data:Ar(Xe)}],le[2]=[{type:0,data:Ar(1)}],le[3]=[{type:2,data:YO(Re)}],oe[3].push({type:2,data:BA(le)})})}O.messages[0].data=BA(oe);var ye=mo(S),Ne=wo(ye);_.content=Ne,_.size=_.content.length})();var me=eA(Ae[3][0].data);{var ge=me[1][0];delete me[2];var we=eA(ge.data);{var Be=_a(we[2][0].data);(function(){for(var _=or.find(l,s[Be].location),S=jn(Wn(_.content)),O,W=0;W<S.length;++W){var ie=S[W];ie.id==Be&&(O=ie)}var oe=eA(O.messages[0].data);{delete oe[6],delete me[7];var le=new Uint8Array(oe[5][0].data);oe[5]=[];for(var ye=0,Ne=0;Ne<=A.e.r;++Ne){var Re=eA(le);ye+=ek(Re,i[Ne],a),Re[1][0].data=Ar(Ne),oe[5].push({data:BA(Re),type:2})}oe[1]=[{type:0,data:Ar(A.e.c+1)}],oe[2]=[{type:0,data:Ar(A.e.r+1)}],oe[3]=[{type:0,data:Ar(ye)}],oe[4]=[{type:0,data:Ar(A.e.r+1)}]}O.messages[0].data=BA(oe);var Xe=mo(S),qe=wo(Xe);_.content=qe,_.size=_.content.length})()}ge.data=BA(we)}Ae[3][0].data=BA(me)}y[4][0].data=BA(Ae)}u.messages[0].data=BA(y);var ke=mo(d),C=wo(ke);return h.content=C,h.size=h.content.length,l}function rk(t){return function(r){for(var A=0;A!=t.length;++A){var n=t[A];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function vd(t){rk([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function Ak(t,e){return e.bookType=="ods"?O5(t,e):e.bookType=="numbers"?tk(t,e):e.bookType=="xlsb"?nk(t,e):ik(t,e)}function nk(t,e){go=1024,t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(g0(),d0(t.SSF),e.revssf=p0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Xl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",A=u5.indexOf(e.bookType)>-1,n=IB();vd(e=e||{});var i=j1(),a="",s=0;if(e.cellXfs=[],Fa(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),a="docProps/core.xml",Ot(i,a,kB(t.Props,e)),n.coreprops.push(a),rr(e.rels,2,a,Xt.CORE_PROPS),a="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var o=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}for(t.Props.Worksheets=t.Props.SheetNames.length,Ot(i,a,PB(t.Props)),n.extprops.push(a),rr(e.rels,3,a,Xt.EXT_PROPS),t.Custprops!==t.Props&&pA(t.Custprops||{}).length>0&&(a="docProps/custom.xml",Ot(i,a,RB(t.Custprops)),n.custprops.push(a),rr(e.rels,4,a,Xt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var c={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Ot(i,a,sO(s-1,a,e,t,c)),n.sheets.push(a),rr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(h){var u=h["!comments"],w=!1,v="";u&&u.length>0&&(v="xl/comments"+s+"."+r,Ot(i,v,cO(u,v)),n.comments.push(v),rr(c,-1,"../comments"+s+"."+r,Xt.CMNT),w=!0),h["!legacy"]&&w&&Ot(i,"xl/drawings/vmlDrawing"+s+".vml",c5(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}c["!id"].rId1&&Ot(i,NB(a),uo(c))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+r,Ot(i,a,lO(e.Strings,a,e)),n.strs.push(a),rr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),a="xl/workbook."+r,Ot(i,a,aO(t,a)),n.workbooks.push(a),rr(e.rels,1,a,Xt.WB),a="xl/theme/theme1.xml",Ot(i,a,o5(t.Themes,e)),n.themes.push(a),rr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),a="xl/styles."+r,Ot(i,a,oO(t,a,e)),n.styles.push(a),rr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&A&&(a="xl/vbaProject.bin",Ot(i,a,t.vbaraw),n.vba.push(a),rr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),a="xl/metadata."+r,Ot(i,a,fO(a)),n.metadata.push(a),rr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),Ot(i,"[Content_Types].xml",LB(n,e)),Ot(i,"_rels/.rels",uo(e.rels)),Ot(i,"xl/_rels/workbook."+r+".rels",uo(e.wbrels)),delete e.revssf,delete e.ssf,i}function ik(t,e){go=1024,t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(g0(),d0(t.SSF),e.revssf=p0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Xl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",A=u5.indexOf(e.bookType)>-1,n=IB();vd(e=e||{});var i=j1(),a="",s=0;if(e.cellXfs=[],Fa(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),a="docProps/core.xml",Ot(i,a,kB(t.Props,e)),n.coreprops.push(a),rr(e.rels,2,a,Xt.CORE_PROPS),a="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var o=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}t.Props.Worksheets=t.Props.SheetNames.length,Ot(i,a,PB(t.Props)),n.extprops.push(a),rr(e.rels,3,a,Xt.EXT_PROPS),t.Custprops!==t.Props&&pA(t.Custprops||{}).length>0&&(a="docProps/custom.xml",Ot(i,a,RB(t.Custprops)),n.custprops.push(a),rr(e.rels,4,a,Xt.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var h={"!id":{}},d=t.Sheets[t.SheetNames[s-1]],u=(d||{})["!type"]||"sheet";switch(u){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Ot(i,a,E5(s-1,e,t,h)),n.sheets.push(a),rr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(d){var w=d["!comments"],v=!1,x="";if(w&&w.length>0){var y=!1;w.forEach(function(E){E[1].forEach(function(F){F.T==!0&&(y=!0)})}),y&&(x="xl/threadedComments/threadedComment"+s+"."+r,Ot(i,x,k6(w,c,e)),n.threadedcomments.push(x),rr(h,-1,"../threadedComments/threadedComment"+s+"."+r,Xt.TCMNT)),x="xl/comments"+s+"."+r,Ot(i,x,f5(w)),n.comments.push(x),rr(h,-1,"../comments"+s+"."+r,Xt.CMNT),v=!0}d["!legacy"]&&v&&Ot(i,"xl/drawings/vmlDrawing"+s+".vml",c5(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}h["!id"].rId1&&Ot(i,NB(a),uo(h))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+r,Ot(i,a,e5(e.Strings,e)),n.strs.push(a),rr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),a="xl/workbook."+r,Ot(i,a,S5(t)),n.workbooks.push(a),rr(e.rels,1,a,Xt.WB),a="xl/theme/theme1.xml",Ot(i,a,o5(t.Themes,e)),n.themes.push(a),rr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),a="xl/styles."+r,Ot(i,a,i5(t,e)),n.styles.push(a),rr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&A&&(a="xl/vbaProject.bin",Ot(i,a,t.vbaraw),n.vba.push(a),rr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),a="xl/metadata."+r,Ot(i,a,l5()),n.metadata.push(a),rr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),c.length>1&&(a="xl/persons/person.xml",Ot(i,a,D6(c)),n.people.push(a),rr(e.wbrels,-1,"persons/person.xml",Xt.PEOPLE)),Ot(i,"[Content_Types].xml",LB(n,e)),Ot(i,"_rels/.rels",uo(e.rels)),Ot(i,"xl/_rels/workbook."+r+".rels",uo(e.wbrels)),delete e.revssf,delete e.ssf,i}function ak(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=ki(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function k5(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return kl(e.file,or.write(t,{type:Yt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return or.write(t,e)}function sk(t,e){var r=$A(e||{}),A=Ak(t,r);return ok(A,r)}function ok(t,e){var r={},A=Yt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=A;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=A;break;default:throw new Error("Unrecognized type "+e.type)}var n=t.FullPaths?or.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof n=="string"){if(e.type=="binary"||e.type=="base64")return n;n=new Uint8Array(o0(n))}return e.password&&typeof encrypt_agile<"u"?k5(encrypt_agile(n,e.password),e):e.type==="file"?kl(e.file,n):e.type=="string"?Pl(n):n}function lk(t,e){var r=e||{},A=bO(t,r);return k5(A,r)}function wi(t,e,r){r||(r="");var A=r+t;switch(e.type){case"base64":return Nl(Mi(A));case"binary":return Mi(A);case"string":return t;case"file":return kl(e.file,A,"utf8");case"buffer":return Yt?Di(A,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(A):wi(A,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function ck(t,e){switch(e.type){case"base64":return Nl(t);case"binary":return t;case"string":return t;case"file":return kl(e.file,t,"binary");case"buffer":return Yt?Di(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function Q0(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",A=0;A<t.length;++A)r+=String.fromCharCode(t[A]);return e.type=="base64"?Nl(r):e.type=="string"?Pl(r):r;case"file":return kl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function md(t,e){DU(),qQ(t);var r=$A(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var A=md(t,r);return r.type="array",o0(A)}var n=0;if(r.sheet&&(typeof r.sheet=="number"?n=r.sheet:n=t.SheetNames.indexOf(r.sheet),!t.SheetNames[n]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return wi(CO(t,r),r);case"slk":case"sylk":return wi(WL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"htm":case"html":return wi(U5(t.Sheets[t.SheetNames[n]],r),r);case"txt":return ck(P5(t.Sheets[t.SheetNames[n]],r),r);case"csv":return wi(wd(t.Sheets[t.SheetNames[n]],r),r,"\uFEFF");case"dif":return wi(zL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"dbf":return Q0(jL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"prn":return wi(XL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"rtf":return wi(t6.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"eth":return wi(JB.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"fods":return wi(O5(t,r),r);case"wk1":return Q0(ZB.sheet_to_wk1(t.Sheets[t.SheetNames[n]],r),r);case"wk3":return Q0(ZB.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Q0(T5(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),lk(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return sk(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function fk(t,e,r,A,n,i,a,s){var o=mA(r),l=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!a||t[r])for(var u=e.s.c;u<=e.e.c;++u){var w=a?t[r][u]:t[A[u]+o];if(w===void 0||w.t===void 0){if(l===void 0)continue;i[u]!=null&&(d[i[u]]=l);continue}var v=w.v;switch(w.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+w.t)}if(i[u]!=null){if(v==null)if(w.t=="e"&&v===null)d[i[u]]=null;else if(l!==void 0)d[i[u]]=l;else if(c&&v===null)d[i[u]]=null;else continue;else d[i[u]]=c&&(w.t!=="n"||w.t==="n"&&s.rawNumbers!==!1)?v:Hi(w,v,s);v!=null&&(h=!1)}}return{row:d,isempty:h}}function O0(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},A=0,n=1,i=[],a=0,s="",o={s:{r:0,c:0},e:{r:0,c:0}},l=e||{},c=l.range!=null?l.range:t["!ref"];switch(l.header===1?A=1:l.header==="A"?A=2:Array.isArray(l.header)?A=3:l.header==null&&(A=0),typeof c){case"string":o=wr(c);break;case"number":o=wr(t["!ref"]),o.s.r=c;break;default:o=c}A>0&&(n=0);var h=mA(o.s.r),d=[],u=[],w=0,v=0,x=Array.isArray(t),y=o.s.r,E=0,F={};x&&!t[y]&&(t[y]=[]);var k=l.skipHidden&&t["!cols"]||[],X=l.skipHidden&&t["!rows"]||[];for(E=o.s.c;E<=o.e.c;++E)if(!(k[E]||{}).hidden)switch(d[E]=UA(E),r=x?t[y][E]:t[d[E]+h],A){case 1:i[E]=E-o.s.c;break;case 2:i[E]=d[E];break;case 3:i[E]=l.header[E-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=a=Hi(r,null,l),v=F[a]||0,!v)F[a]=1;else{do s=a+"_"+v++;while(F[s]);F[a]=v,F[s]=1}i[E]=s}for(y=o.s.r+n;y<=o.e.r;++y)if(!(X[y]||{}).hidden){var q=fk(t,o,y,d,A,i,x,l);(q.isempty===!1||(A===1?l.blankrows!==!1:l.blankrows))&&(u[w++]=q.row)}return u.length=w,u}var D5=/"/g;function uk(t,e,r,A,n,i,a,s){for(var o=!0,l=[],c="",h=mA(r),d=e.s.c;d<=e.e.c;++d)if(A[d]){var u=s.dense?(t[r]||[])[d]:t[A[d]+h];if(u==null)c="";else if(u.v!=null){o=!1,c=""+(s.rawNumbers&&u.t=="n"?u.v:Hi(u,null,s));for(var w=0,v=0;w!==c.length;++w)if((v=c.charCodeAt(w))===n||v===i||v===34||s.forceQuotes){c='"'+c.replace(D5,'""')+'"';break}c=="ID"&&(c='"ID"')}else u.f!=null&&!u.F?(o=!1,c="="+u.f,c.indexOf(",")>=0&&(c='"'+c.replace(D5,'""')+'"')):c="";l.push(c)}return s.blankrows===!1&&o?null:l.join(a)}function wd(t,e){var r=[],A=e??{};if(t==null||t["!ref"]==null)return"";var n=wr(t["!ref"]),i=A.FS!==void 0?A.FS:",",a=i.charCodeAt(0),s=A.RS!==void 0?A.RS:`
|
|
356
|
+
`),s.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function O5(t,e){if(e.bookType=="fods")return Q5(t,e);var r=j1(),A="",n=[],i=[];return A="mimetype",Ot(r,A,"application/vnd.oasis.opendocument.spreadsheet"),A="content.xml",Ot(r,A,Q5(t,e)),n.push([A,"text/xml"]),i.push([A,"ContentFile"]),A="styles.xml",Ot(r,A,qO(t,e)),n.push([A,"text/xml"]),i.push([A,"StylesFile"]),A="meta.xml",Ot(r,A,Gr+OB()),n.push([A,"text/xml"]),i.push([A,"MetadataFile"]),A="manifest.rdf",Ot(r,A,sL(i)),n.push([A,"application/rdf+xml"]),A="META-INF/manifest.xml",Ot(r,A,iL(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function N0(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function YO(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):Vn(Mi(t))}function $O(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var A=0;A<e.length;++A)if(t[r+A]!=e[A])continue e;return!0}return!1}function Sa(t){var e=t.reduce(function(n,i){return n+i.length},0),r=new Uint8Array(e),A=0;return t.forEach(function(n){r.set(n,A),A+=n.length}),r}function JO(t,e,r){var A=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,A-6176);t[e+15]|=A>>7,t[e+14]|=(A&127)<<1;for(var i=0;n>=1;++i,n/=256)t[e+i]=n&255;t[e+15]|=r>=0?0:128}function Yl(t,e){var r=e?e[0]:0,A=t[r]&127;e:if(t[r++]>=128&&(A|=(t[r]&127)<<7,t[r++]<128||(A|=(t[r]&127)<<14,t[r++]<128)||(A|=(t[r]&127)<<21,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),A}function Ar(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function vo(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function eA(t){for(var e=[],r=[0];r[0]<t.length;){var A=r[0],n=Yl(t,r),i=n&7;n=Math.floor(n/8);var a=0,s;if(n==0)break;switch(i){case 0:{for(var o=r[0];t[r[0]++]>=128;);s=t.slice(o,r[0])}break;case 5:a=4,s=t.slice(r[0],r[0]+a),r[0]+=a;break;case 1:a=8,s=t.slice(r[0],r[0]+a),r[0]+=a;break;case 2:a=Yl(t,r),s=t.slice(r[0],r[0]+a),r[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(A))}var l={data:s,type:i};e[n]==null?e[n]=[l]:e[n].push(l)}return e}function BA(t){var e=[];return t.forEach(function(r,A){r.forEach(function(n){n.data&&(e.push(Ar(A*8+n.type)),n.type==2&&e.push(Ar(n.data.length)),e.push(n.data))})}),Sa(e)}function jn(t){for(var e,r=[],A=[0];A[0]<t.length;){var n=Yl(t,A),i=eA(t.slice(A[0],A[0]+n));A[0]+=n;var a={id:vo(i[1][0].data),messages:[]};i[2].forEach(function(s){var o=eA(s.data),l=vo(o[3][0].data);a.messages.push({meta:o,data:t.slice(A[0],A[0]+l)}),A[0]+=l}),(e=i[3])!=null&&e[0]&&(a.merge=vo(i[3][0].data)>>>0>0),r.push(a)}return r}function mo(t){var e=[];return t.forEach(function(r){var A=[];A[1]=[{data:Ar(r.id),type:0}],A[2]=[],r.merge!=null&&(A[3]=[{data:Ar(+!!r.merge),type:0}]);var n=[];r.messages.forEach(function(a){n.push(a.data),a.meta[3]=[{type:0,data:Ar(a.data.length)}],A[2].push({data:BA(a.meta),type:2})});var i=BA(A);e.push(Ar(i.length)),e.push(i),n.forEach(function(a){return e.push(a)})}),Sa(e)}function ZO(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],A=Yl(e,r),n=[];r[0]<e.length;){var i=e[r[0]]&3;if(i==0){var a=e[r[0]++]>>2;if(a<60)++a;else{var s=a-59;a=e[r[0]],s>1&&(a|=e[r[0]+1]<<8),s>2&&(a|=e[r[0]+2]<<16),s>3&&(a|=e[r[0]+3]<<24),a>>>=0,a++,r[0]+=s}n.push(e.slice(r[0],r[0]+a)),r[0]+=a;continue}else{var o=0,l=0;if(i==1?(l=(e[r[0]]>>2&7)+4,o=(e[r[0]++]&224)<<3,o|=e[r[0]++]):(l=(e[r[0]++]>>2)+1,i==2?(o=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(o=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),n=[Sa(n)],o==0)throw new Error("Invalid offset 0");if(o>n[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(n.push(n[0].slice(-o)),l-=o;l>=n[n.length-1].length;)n.push(n[n.length-1]),l-=n[n.length-1].length;n.push(n[0].slice(-o,-o+l))}}var c=Sa(n);if(c.length!=A)throw new Error("Unexpected length: ".concat(c.length," != ").concat(A));return c}function Wn(t){for(var e=[],r=0;r<t.length;){var A=t[r++],n=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(ZO(A,t.slice(r,r+n))),r+=n}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Sa(e)}function wo(t){for(var e=[],r=0;r<t.length;){var A=Math.min(t.length-r,268435455),n=new Uint8Array(4);e.push(n);var i=Ar(A),a=i.length;e.push(i),A<=60?(a++,e.push(new Uint8Array([A-1<<2]))):A<=256?(a+=2,e.push(new Uint8Array([240,A-1&255]))):A<=65536?(a+=3,e.push(new Uint8Array([244,A-1&255,A-1>>8&255]))):A<=16777216?(a+=4,e.push(new Uint8Array([248,A-1&255,A-1>>8&255,A-1>>16&255]))):A<=4294967296&&(a+=5,e.push(new Uint8Array([252,A-1&255,A-1>>8&255,A-1>>16&255,A-1>>>24&255]))),e.push(t.slice(r,r+A)),a+=A,n[0]=0,n[1]=a&255,n[2]=a>>8&255,n[3]=a>>16&255,r+=A}return Sa(e)}function gd(t,e){var r=new Uint8Array(32),A=N0(r),n=12,i=0;switch(r[0]=5,t.t){case"n":r[1]=2,JO(r,n,t.v),i|=1,n+=16;break;case"b":r[1]=6,A.setFloat64(n,t.v?1:0,!0),i|=2,n+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,A.setUint32(n,e.indexOf(t.v),!0),i|=8,n+=4;break;default:throw"unsupported cell type "+t.t}return A.setUint32(8,i,!0),r.slice(0,n)}function pd(t,e){var r=new Uint8Array(32),A=N0(r),n=12,i=0;switch(r[0]=3,t.t){case"n":r[2]=2,A.setFloat64(n,t.v,!0),i|=32,n+=8;break;case"b":r[2]=6,A.setFloat64(n,t.v?1:0,!0),i|=32,n+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,A.setUint32(n,e.indexOf(t.v),!0),i|=16,n+=4;break;default:throw"unsupported cell type "+t.t}return A.setUint32(4,i,!0),r.slice(0,n)}function _a(t){var e=eA(t);return Yl(e[1][0].data)}function ek(t,e,r){var A,n,i,a;if(!((A=t[6])!=null&&A[0])||!((n=t[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(i=t[8])==null?void 0:i[0])==null?void 0:a.data)&&vo(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var o=0,l=N0(t[7][0].data),c=0,h=[],d=N0(t[4][0].data),u=0,w=[],v=0;v<e.length;++v){if(e[v]==null){l.setUint16(v*2,65535,!0),d.setUint16(v*2,65535);continue}l.setUint16(v*2,c,!0),d.setUint16(v*2,u,!0);var x,y;switch(typeof e[v]){case"string":x=gd({t:"s",v:e[v]},r),y=pd({t:"s",v:e[v]},r);break;case"number":x=gd({t:"n",v:e[v]},r),y=pd({t:"n",v:e[v]},r);break;case"boolean":x=gd({t:"b",v:e[v]},r),y=pd({t:"b",v:e[v]},r);break;default:throw new Error("Unsupported value "+e[v])}h.push(x),c+=x.length,w.push(y),u+=y.length,++o}for(t[2][0].data=Ar(o);v<t[7][0].data.length/2;++v)l.setUint16(v*2,65535,!0),d.setUint16(v*2,65535,!0);return t[6][0].data=Sa(h),t[3][0].data=Sa(w),o}function tk(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var A=un(r["!ref"]);A.s.r=A.s.c=0;var n=!1;A.e.c>9&&(n=!0,A.e.c=9),A.e.r>49&&(n=!0,A.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(jr(A)));var i=O0(r,{range:A,header:1}),a=["~Sh33tJ5~"];i.forEach(function(_){return _.forEach(function(S){typeof S=="string"&&a.push(S)})});var s={},o=[],l=or.read(e.numbers,{type:"base64"});l.FileIndex.map(function(_,S){return[_,l.FullPaths[S]]}).forEach(function(_){var S=_[0],O=_[1];if(S.type==2&&S.name.match(/\.iwa/)){var W=S.content,ie=Wn(W),oe=jn(ie);oe.forEach(function(le){o.push(le.id),s[le.id]={deps:[],location:O,type:vo(le.messages[0].meta[1][0].data)}})}}),o.sort(function(_,S){return _-S});var c=o.filter(function(_){return _>1}).map(function(_){return[_,Ar(_)]});l.FileIndex.map(function(_,S){return[_,l.FullPaths[S]]}).forEach(function(_){var S=_[0];if(_[1],!!S.name.match(/\.iwa/)){var O=jn(Wn(S.content));O.forEach(function(W){W.messages.forEach(function(ie){c.forEach(function(oe){W.messages.some(function(le){return vo(le.meta[1][0].data)!=11006&&$O(le.data,oe[1])})&&s[oe[0]].deps.push(W.id)})})})}});for(var h=or.find(l,s[1].location),d=jn(Wn(h.content)),u,w=0;w<d.length;++w){var v=d[w];v.id==1&&(u=v)}var x=_a(eA(u.messages[0].data)[1][0].data);for(h=or.find(l,s[x].location),d=jn(Wn(h.content)),w=0;w<d.length;++w)v=d[w],v.id==x&&(u=v);for(x=_a(eA(u.messages[0].data)[2][0].data),h=or.find(l,s[x].location),d=jn(Wn(h.content)),w=0;w<d.length;++w)v=d[w],v.id==x&&(u=v);for(x=_a(eA(u.messages[0].data)[2][0].data),h=or.find(l,s[x].location),d=jn(Wn(h.content)),w=0;w<d.length;++w)v=d[w],v.id==x&&(u=v);var y=eA(u.messages[0].data);{y[6][0].data=Ar(A.e.r+1),y[7][0].data=Ar(A.e.c+1);var E=_a(y[46][0].data),F=or.find(l,s[E].location),k=jn(Wn(F.content));{for(var X=0;X<k.length&&k[X].id!=E;++X);if(k[X].id!=E)throw"Bad ColumnRowUIDMapArchive";var q=eA(k[X].messages[0].data);q[1]=[],q[2]=[],q[3]=[];for(var N=0;N<=A.e.c;++N){var Q=[];Q[1]=Q[2]=[{type:0,data:Ar(N+420690)}],q[1].push({type:2,data:BA(Q)}),q[2].push({type:0,data:Ar(N)}),q[3].push({type:0,data:Ar(N)})}q[4]=[],q[5]=[],q[6]=[];for(var K=0;K<=A.e.r;++K)Q=[],Q[1]=Q[2]=[{type:0,data:Ar(K+726270)}],q[4].push({type:2,data:BA(Q)}),q[5].push({type:0,data:Ar(K)}),q[6].push({type:0,data:Ar(K)});k[X].messages[0].data=BA(q)}F.content=wo(mo(k)),F.size=F.content.length,delete y[46];var Ae=eA(y[4][0].data);{Ae[7][0].data=Ar(A.e.r+1);var U=eA(Ae[1][0].data),T=_a(U[2][0].data);F=or.find(l,s[T].location),k=jn(Wn(F.content));{if(k[0].id!=T)throw"Bad HeaderStorageBucket";var V=eA(k[0].messages[0].data);for(K=0;K<i.length;++K){var Y=eA(V[2][0].data);Y[1][0].data=Ar(K),Y[4][0].data=Ar(i[K].length),V[2][K]={type:V[2][0].type,data:BA(Y)}}k[0].messages[0].data=BA(V)}F.content=wo(mo(k)),F.size=F.content.length;var ce=_a(Ae[2][0].data);F=or.find(l,s[ce].location),k=jn(Wn(F.content));{if(k[0].id!=ce)throw"Bad HeaderStorageBucket";for(V=eA(k[0].messages[0].data),N=0;N<=A.e.c;++N)Y=eA(V[2][0].data),Y[1][0].data=Ar(N),Y[4][0].data=Ar(A.e.r+1),V[2][N]={type:V[2][0].type,data:BA(Y)};k[0].messages[0].data=BA(V)}F.content=wo(mo(k)),F.size=F.content.length;var he=_a(Ae[4][0].data);(function(){for(var _=or.find(l,s[he].location),S=jn(Wn(_.content)),O,W=0;W<S.length;++W){var ie=S[W];ie.id==he&&(O=ie)}var oe=eA(O.messages[0].data);{oe[3]=[];var le=[];a.forEach(function(Re,Xe){le[1]=[{type:0,data:Ar(Xe)}],le[2]=[{type:0,data:Ar(1)}],le[3]=[{type:2,data:YO(Re)}],oe[3].push({type:2,data:BA(le)})})}O.messages[0].data=BA(oe);var ye=mo(S),Ne=wo(ye);_.content=Ne,_.size=_.content.length})();var me=eA(Ae[3][0].data);{var ge=me[1][0];delete me[2];var we=eA(ge.data);{var Be=_a(we[2][0].data);(function(){for(var _=or.find(l,s[Be].location),S=jn(Wn(_.content)),O,W=0;W<S.length;++W){var ie=S[W];ie.id==Be&&(O=ie)}var oe=eA(O.messages[0].data);{delete oe[6],delete me[7];var le=new Uint8Array(oe[5][0].data);oe[5]=[];for(var ye=0,Ne=0;Ne<=A.e.r;++Ne){var Re=eA(le);ye+=ek(Re,i[Ne],a),Re[1][0].data=Ar(Ne),oe[5].push({data:BA(Re),type:2})}oe[1]=[{type:0,data:Ar(A.e.c+1)}],oe[2]=[{type:0,data:Ar(A.e.r+1)}],oe[3]=[{type:0,data:Ar(ye)}],oe[4]=[{type:0,data:Ar(A.e.r+1)}]}O.messages[0].data=BA(oe);var Xe=mo(S),qe=wo(Xe);_.content=qe,_.size=_.content.length})()}ge.data=BA(we)}Ae[3][0].data=BA(me)}y[4][0].data=BA(Ae)}u.messages[0].data=BA(y);var ke=mo(d),C=wo(ke);return h.content=C,h.size=h.content.length,l}function rk(t){return function(r){for(var A=0;A!=t.length;++A){var n=t[A];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function vd(t){rk([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function Ak(t,e){return e.bookType=="ods"?O5(t,e):e.bookType=="numbers"?tk(t,e):e.bookType=="xlsb"?nk(t,e):ik(t,e)}function nk(t,e){go=1024,t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(g0(),d0(t.SSF),e.revssf=p0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Xl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",A=u5.indexOf(e.bookType)>-1,n=IB();vd(e=e||{});var i=j1(),a="",s=0;if(e.cellXfs=[],Fa(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),a="docProps/core.xml",Ot(i,a,kB(t.Props,e)),n.coreprops.push(a),rr(e.rels,2,a,Xt.CORE_PROPS),a="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var o=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}for(t.Props.Worksheets=t.Props.SheetNames.length,Ot(i,a,PB(t.Props)),n.extprops.push(a),rr(e.rels,3,a,Xt.EXT_PROPS),t.Custprops!==t.Props&&pA(t.Custprops||{}).length>0&&(a="docProps/custom.xml",Ot(i,a,RB(t.Custprops)),n.custprops.push(a),rr(e.rels,4,a,Xt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var c={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Ot(i,a,sO(s-1,a,e,t,c)),n.sheets.push(a),rr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(h){var u=h["!comments"],w=!1,v="";u&&u.length>0&&(v="xl/comments"+s+"."+r,Ot(i,v,cO(u,v)),n.comments.push(v),rr(c,-1,"../comments"+s+"."+r,Xt.CMNT),w=!0),h["!legacy"]&&w&&Ot(i,"xl/drawings/vmlDrawing"+s+".vml",c5(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}c["!id"].rId1&&Ot(i,NB(a),uo(c))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+r,Ot(i,a,lO(e.Strings,a,e)),n.strs.push(a),rr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),a="xl/workbook."+r,Ot(i,a,aO(t,a)),n.workbooks.push(a),rr(e.rels,1,a,Xt.WB),a="xl/theme/theme1.xml",Ot(i,a,o5(t.Themes,e)),n.themes.push(a),rr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),a="xl/styles."+r,Ot(i,a,oO(t,a,e)),n.styles.push(a),rr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&A&&(a="xl/vbaProject.bin",Ot(i,a,t.vbaraw),n.vba.push(a),rr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),a="xl/metadata."+r,Ot(i,a,fO(a)),n.metadata.push(a),rr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),Ot(i,"[Content_Types].xml",LB(n,e)),Ot(i,"_rels/.rels",uo(e.rels)),Ot(i,"xl/_rels/workbook."+r+".rels",uo(e.wbrels)),delete e.revssf,delete e.ssf,i}function ik(t,e){go=1024,t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(g0(),d0(t.SSF),e.revssf=p0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Xl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",A=u5.indexOf(e.bookType)>-1,n=IB();vd(e=e||{});var i=j1(),a="",s=0;if(e.cellXfs=[],Fa(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),a="docProps/core.xml",Ot(i,a,kB(t.Props,e)),n.coreprops.push(a),rr(e.rels,2,a,Xt.CORE_PROPS),a="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var o=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}t.Props.Worksheets=t.Props.SheetNames.length,Ot(i,a,PB(t.Props)),n.extprops.push(a),rr(e.rels,3,a,Xt.EXT_PROPS),t.Custprops!==t.Props&&pA(t.Custprops||{}).length>0&&(a="docProps/custom.xml",Ot(i,a,RB(t.Custprops)),n.custprops.push(a),rr(e.rels,4,a,Xt.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var h={"!id":{}},d=t.Sheets[t.SheetNames[s-1]],u=(d||{})["!type"]||"sheet";switch(u){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Ot(i,a,E5(s-1,e,t,h)),n.sheets.push(a),rr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(d){var w=d["!comments"],v=!1,x="";if(w&&w.length>0){var y=!1;w.forEach(function(E){E[1].forEach(function(F){F.T==!0&&(y=!0)})}),y&&(x="xl/threadedComments/threadedComment"+s+"."+r,Ot(i,x,kN(w,c,e)),n.threadedcomments.push(x),rr(h,-1,"../threadedComments/threadedComment"+s+"."+r,Xt.TCMNT)),x="xl/comments"+s+"."+r,Ot(i,x,f5(w)),n.comments.push(x),rr(h,-1,"../comments"+s+"."+r,Xt.CMNT),v=!0}d["!legacy"]&&v&&Ot(i,"xl/drawings/vmlDrawing"+s+".vml",c5(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}h["!id"].rId1&&Ot(i,NB(a),uo(h))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+r,Ot(i,a,e5(e.Strings,e)),n.strs.push(a),rr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),a="xl/workbook."+r,Ot(i,a,S5(t)),n.workbooks.push(a),rr(e.rels,1,a,Xt.WB),a="xl/theme/theme1.xml",Ot(i,a,o5(t.Themes,e)),n.themes.push(a),rr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),a="xl/styles."+r,Ot(i,a,i5(t,e)),n.styles.push(a),rr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&A&&(a="xl/vbaProject.bin",Ot(i,a,t.vbaraw),n.vba.push(a),rr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),a="xl/metadata."+r,Ot(i,a,l5()),n.metadata.push(a),rr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),c.length>1&&(a="xl/persons/person.xml",Ot(i,a,DN(c)),n.people.push(a),rr(e.wbrels,-1,"persons/person.xml",Xt.PEOPLE)),Ot(i,"[Content_Types].xml",LB(n,e)),Ot(i,"_rels/.rels",uo(e.rels)),Ot(i,"xl/_rels/workbook."+r+".rels",uo(e.wbrels)),delete e.revssf,delete e.ssf,i}function ak(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=ki(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function k5(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return kl(e.file,or.write(t,{type:Yt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return or.write(t,e)}function sk(t,e){var r=$A(e||{}),A=Ak(t,r);return ok(A,r)}function ok(t,e){var r={},A=Yt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=A;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=A;break;default:throw new Error("Unrecognized type "+e.type)}var n=t.FullPaths?or.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof n=="string"){if(e.type=="binary"||e.type=="base64")return n;n=new Uint8Array(o0(n))}return e.password&&typeof encrypt_agile<"u"?k5(encrypt_agile(n,e.password),e):e.type==="file"?kl(e.file,n):e.type=="string"?Pl(n):n}function lk(t,e){var r=e||{},A=bO(t,r);return k5(A,r)}function wi(t,e,r){r||(r="");var A=r+t;switch(e.type){case"base64":return Nl(Mi(A));case"binary":return Mi(A);case"string":return t;case"file":return kl(e.file,A,"utf8");case"buffer":return Yt?Di(A,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(A):wi(A,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function ck(t,e){switch(e.type){case"base64":return Nl(t);case"binary":return t;case"string":return t;case"file":return kl(e.file,t,"binary");case"buffer":return Yt?Di(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function Q0(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",A=0;A<t.length;++A)r+=String.fromCharCode(t[A]);return e.type=="base64"?Nl(r):e.type=="string"?Pl(r):r;case"file":return kl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function md(t,e){DU(),qQ(t);var r=$A(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var A=md(t,r);return r.type="array",o0(A)}var n=0;if(r.sheet&&(typeof r.sheet=="number"?n=r.sheet:n=t.SheetNames.indexOf(r.sheet),!t.SheetNames[n]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return wi(CO(t,r),r);case"slk":case"sylk":return wi(WL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"htm":case"html":return wi(U5(t.Sheets[t.SheetNames[n]],r),r);case"txt":return ck(P5(t.Sheets[t.SheetNames[n]],r),r);case"csv":return wi(wd(t.Sheets[t.SheetNames[n]],r),r,"\uFEFF");case"dif":return wi(zL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"dbf":return Q0(jL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"prn":return wi(XL.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"rtf":return wi(tN.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"eth":return wi(JB.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"fods":return wi(O5(t,r),r);case"wk1":return Q0(ZB.sheet_to_wk1(t.Sheets[t.SheetNames[n]],r),r);case"wk3":return Q0(ZB.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Q0(T5(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),lk(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return sk(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function fk(t,e,r,A,n,i,a,s){var o=mA(r),l=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!a||t[r])for(var u=e.s.c;u<=e.e.c;++u){var w=a?t[r][u]:t[A[u]+o];if(w===void 0||w.t===void 0){if(l===void 0)continue;i[u]!=null&&(d[i[u]]=l);continue}var v=w.v;switch(w.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+w.t)}if(i[u]!=null){if(v==null)if(w.t=="e"&&v===null)d[i[u]]=null;else if(l!==void 0)d[i[u]]=l;else if(c&&v===null)d[i[u]]=null;else continue;else d[i[u]]=c&&(w.t!=="n"||w.t==="n"&&s.rawNumbers!==!1)?v:Hi(w,v,s);v!=null&&(h=!1)}}return{row:d,isempty:h}}function O0(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},A=0,n=1,i=[],a=0,s="",o={s:{r:0,c:0},e:{r:0,c:0}},l=e||{},c=l.range!=null?l.range:t["!ref"];switch(l.header===1?A=1:l.header==="A"?A=2:Array.isArray(l.header)?A=3:l.header==null&&(A=0),typeof c){case"string":o=wr(c);break;case"number":o=wr(t["!ref"]),o.s.r=c;break;default:o=c}A>0&&(n=0);var h=mA(o.s.r),d=[],u=[],w=0,v=0,x=Array.isArray(t),y=o.s.r,E=0,F={};x&&!t[y]&&(t[y]=[]);var k=l.skipHidden&&t["!cols"]||[],X=l.skipHidden&&t["!rows"]||[];for(E=o.s.c;E<=o.e.c;++E)if(!(k[E]||{}).hidden)switch(d[E]=UA(E),r=x?t[y][E]:t[d[E]+h],A){case 1:i[E]=E-o.s.c;break;case 2:i[E]=d[E];break;case 3:i[E]=l.header[E-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=a=Hi(r,null,l),v=F[a]||0,!v)F[a]=1;else{do s=a+"_"+v++;while(F[s]);F[a]=v,F[s]=1}i[E]=s}for(y=o.s.r+n;y<=o.e.r;++y)if(!(X[y]||{}).hidden){var q=fk(t,o,y,d,A,i,x,l);(q.isempty===!1||(A===1?l.blankrows!==!1:l.blankrows))&&(u[w++]=q.row)}return u.length=w,u}var D5=/"/g;function uk(t,e,r,A,n,i,a,s){for(var o=!0,l=[],c="",h=mA(r),d=e.s.c;d<=e.e.c;++d)if(A[d]){var u=s.dense?(t[r]||[])[d]:t[A[d]+h];if(u==null)c="";else if(u.v!=null){o=!1,c=""+(s.rawNumbers&&u.t=="n"?u.v:Hi(u,null,s));for(var w=0,v=0;w!==c.length;++w)if((v=c.charCodeAt(w))===n||v===i||v===34||s.forceQuotes){c='"'+c.replace(D5,'""')+'"';break}c=="ID"&&(c='"ID"')}else u.f!=null&&!u.F?(o=!1,c="="+u.f,c.indexOf(",")>=0&&(c='"'+c.replace(D5,'""')+'"')):c="";l.push(c)}return s.blankrows===!1&&o?null:l.join(a)}function wd(t,e){var r=[],A=e??{};if(t==null||t["!ref"]==null)return"";var n=wr(t["!ref"]),i=A.FS!==void 0?A.FS:",",a=i.charCodeAt(0),s=A.RS!==void 0?A.RS:`
|
|
357
357
|
`,o=s.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",h=[];A.dense=Array.isArray(t);for(var d=A.skipHidden&&t["!cols"]||[],u=A.skipHidden&&t["!rows"]||[],w=n.s.c;w<=n.e.c;++w)(d[w]||{}).hidden||(h[w]=UA(w));for(var v=0,x=n.s.r;x<=n.e.r;++x)(u[x]||{}).hidden||(c=uk(t,n,x,h,a,o,i,A),c!=null&&(A.strip&&(c=c.replace(l,"")),(c||A.blankrows!==!1)&&r.push((v++?s:"")+c)));return delete A.dense,r.join("")}function P5(t,e){e||(e={}),e.FS=" ",e.RS=`
|
|
358
|
-
`;var r=wd(t,e);return r}function hk(t){var e="",r,A="";if(t==null||t["!ref"]==null)return[];var n=wr(t["!ref"]),i="",a=[],s,o=[],l=Array.isArray(t);for(s=n.s.c;s<=n.e.c;++s)a[s]=UA(s);for(var c=n.s.r;c<=n.e.r;++c)for(i=mA(c),s=n.s.c;s<=n.e.c;++s)if(e=a[s]+i,r=l?(t[c]||[])[s]:t[e],A="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;A=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)A=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)A=""+r.v;else if(r.t=="b")A=r.v?"TRUE":"FALSE";else if(r.w!==void 0)A="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?A="'"+r.v:A=""+r.v}}o[o.length]=e+"="+A}return o}function R5(t,e,r){var A=r||{},n=+!A.skipHeader,i=t||{},a=0,s=0;if(i&&A.origin!=null)if(typeof A.origin=="number")a=A.origin;else{var o=typeof A.origin=="string"?sA(A.origin):A.origin;a=o.r,s=o.c}var l,c={s:{c:0,r:0},e:{c:s,r:a+e.length-1+n}};if(i["!ref"]){var h=wr(i["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),a==-1&&(a=h.e.r+1,c.e.r=a+e.length-1+n)}else a==-1&&(a=0,c.e.r=e.length-1+n);var d=A.header||[],u=0;e.forEach(function(v,x){pA(v).forEach(function(y){(u=d.indexOf(y))==-1&&(d[u=d.length]=y);var E=v[y],F="z",k="",X=tr({c:s+u,r:a+x+n});l=$l(i,X),E&&typeof E=="object"&&!(E instanceof Date)?i[X]=E:(typeof E=="number"?F="n":typeof E=="boolean"?F="b":typeof E=="string"?F="s":E instanceof Date?(F="d",A.cellDates||(F="n",E=YA(E)),k=A.dateNF||Sr[14]):E===null&&A.nullError&&(F="e",E=0),l?(l.t=F,l.v=E,delete l.w,delete l.R,k&&(l.z=k)):i[X]=l={t:F,v:E},k&&(l.z=k))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var w=mA(a);if(n)for(u=0;u<d.length;++u)i[UA(u+s)+w]={t:"s",v:d[u]};return i["!ref"]=jr(c),i}function dk(t,e){return R5(null,t,e)}function $l(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var A=sA(e);return t[A.r]||(t[A.r]=[]),t[A.r][A.c]||(t[A.r][A.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?$l(t,tr(e)):$l(t,tr({r:e,c:r||0}))}function gk(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function pk(){return{SheetNames:[],Sheets:{}}}function vk(t,e,r,A){var n=1;if(!r)for(;n<=65535&&t.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(A&&t.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var a=i&&i[1]||r;for(++n;n<=65535&&t.SheetNames.indexOf(r=a+n)!=-1;++n);}if(F5(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function mk(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var A=gk(t,e);switch(t.Workbook.Sheets[A]||(t.Workbook.Sheets[A]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[A].Hidden=r}function wk(t,e){return t.z=e,t}function M5(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function Bk(t,e,r){return M5(t,"#"+e,r)}function xk(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function yk(t,e,r,A){for(var n=typeof e!="string"?e:wr(e),i=typeof e=="string"?e:jr(e),a=n.s.r;a<=n.e.r;++a)for(var s=n.s.c;s<=n.e.c;++s){var o=$l(t,a,s);o.t="n",o.F=i,delete o.v,a==n.s.r&&s==n.s.c&&(o.f=r,A&&(o.D=!0))}return t}var Bo={encode_col:UA,encode_row:mA,encode_cell:tr,encode_range:jr,decode_col:ed,decode_row:Z1,split_cell:PI,decode_cell:sA,decode_range:un,format_cell:Hi,sheet_add_aoa:CB,sheet_add_json:R5,sheet_add_dom:I5,aoa_to_sheet:lo,json_to_sheet:dk,table_to_sheet:L5,table_to_book:zO,sheet_to_csv:wd,sheet_to_txt:P5,sheet_to_json:O0,sheet_to_html:U5,sheet_to_formulae:hk,sheet_to_row_object_array:O0,sheet_get_cell:$l,book_new:pk,book_append_sheet:vk,book_set_sheet_visibility:mk,cell_set_number_format:wk,cell_set_hyperlink:M5,cell_set_internal_link:Bk,cell_add_comment:xk,sheet_set_array_formula:yk,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const T$="",H5=(t,e)=>{const r=t.__vccOpts||t;for(const[A,n]of e)r[A]=n;return r},Ck={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`;return{useSafeValues:!0,defaultColors:["#6376DD","#FEB019","#00E396","#FF4560","#775DD0","#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800","#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B","#4ECDC4","#C7F464","#81D4FA","#546E7A","#FD6A6A"],defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#000000",height:300,width:500,padding:{top:36,right:12,bottom:12,left:48},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"black",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"black",show:!0,values:[],fontSize:6}}},labels:{fontSize:10},legend:{color:"black",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#000000",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"white",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},table:{rounding:0}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t}},computed:{chartConfig(){return Object.keys(this.config||{}).length?this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config}):this.defaultConfig},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.defaultColors[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.defaultColors[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,A)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*A*this.absoluteDataset.filter(n=>n.type==="bar").filter(n=>!this.segregatedSeries.includes(n.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[A]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){return Math.min(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.min(...t.series)))},maxSeries(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>t.series.length))},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=[...this.plotSet,...this.barSet,...this.lineSet].map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.chartConfig.chart.grid.labels.xAxisLabels.values.forEach((r,A)=>{const n=[r];this.plotSet.length&&this.plotSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.barSet.length&&this.barSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.lineSet.length&&this.lineSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),e.push(n)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(n=>({name:n.name,color:n.color,type:n.type,value:n.absoluteValues.find((i,a)=>a===this.selectedSerieIndex)}));let e="",r=t.map(n=>n.value).filter(n=>this.isSafeValue(n)&&n!==null).reduce((n,i)=>Math.abs(n)+Math.abs(i),0);const A=this.chartConfig.chart.grid.labels.xAxisLabels.values[this.selectedSerieIndex];return A&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${A}</div>`),t.forEach(n=>{this.isSafeValue(n.value)&&n.value!==null&&(e+=`<div><span style="color:${n.color}; margin-right: 3px">${this.icons[n.type]}</span>${n.name} : <b>${this.chartConfig.chart.tooltip.showValue?n.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(n.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,A=48;if(t&&e){const{width:n,height:i}=t.getBoundingClientRect(),a=e.getBoundingClientRect();this.clientPosition.x+n/2>a.right?r=-n:this.clientPosition.x-n/2<a.left?r=0:r=-n/2,this.clientPosition.y+i>a.bottom&&(A=-i-48)}return{top:this.clientPosition.y+A,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let n=5;n>0;n-=1){const i=t*n;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*n),value:i})}const r=this.closestDecimal(this.min/5),A=[];for(let n=5;n>=0;n-=1){const i=Math.abs(r)*n;A.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*n),value:-i})}return[...e,...A]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,A=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${A})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",A),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,A)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
358
|
+
`;var r=wd(t,e);return r}function hk(t){var e="",r,A="";if(t==null||t["!ref"]==null)return[];var n=wr(t["!ref"]),i="",a=[],s,o=[],l=Array.isArray(t);for(s=n.s.c;s<=n.e.c;++s)a[s]=UA(s);for(var c=n.s.r;c<=n.e.r;++c)for(i=mA(c),s=n.s.c;s<=n.e.c;++s)if(e=a[s]+i,r=l?(t[c]||[])[s]:t[e],A="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;A=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)A=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)A=""+r.v;else if(r.t=="b")A=r.v?"TRUE":"FALSE";else if(r.w!==void 0)A="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?A="'"+r.v:A=""+r.v}}o[o.length]=e+"="+A}return o}function R5(t,e,r){var A=r||{},n=+!A.skipHeader,i=t||{},a=0,s=0;if(i&&A.origin!=null)if(typeof A.origin=="number")a=A.origin;else{var o=typeof A.origin=="string"?sA(A.origin):A.origin;a=o.r,s=o.c}var l,c={s:{c:0,r:0},e:{c:s,r:a+e.length-1+n}};if(i["!ref"]){var h=wr(i["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),a==-1&&(a=h.e.r+1,c.e.r=a+e.length-1+n)}else a==-1&&(a=0,c.e.r=e.length-1+n);var d=A.header||[],u=0;e.forEach(function(v,x){pA(v).forEach(function(y){(u=d.indexOf(y))==-1&&(d[u=d.length]=y);var E=v[y],F="z",k="",X=tr({c:s+u,r:a+x+n});l=$l(i,X),E&&typeof E=="object"&&!(E instanceof Date)?i[X]=E:(typeof E=="number"?F="n":typeof E=="boolean"?F="b":typeof E=="string"?F="s":E instanceof Date?(F="d",A.cellDates||(F="n",E=YA(E)),k=A.dateNF||Sr[14]):E===null&&A.nullError&&(F="e",E=0),l?(l.t=F,l.v=E,delete l.w,delete l.R,k&&(l.z=k)):i[X]=l={t:F,v:E},k&&(l.z=k))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var w=mA(a);if(n)for(u=0;u<d.length;++u)i[UA(u+s)+w]={t:"s",v:d[u]};return i["!ref"]=jr(c),i}function dk(t,e){return R5(null,t,e)}function $l(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var A=sA(e);return t[A.r]||(t[A.r]=[]),t[A.r][A.c]||(t[A.r][A.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?$l(t,tr(e)):$l(t,tr({r:e,c:r||0}))}function gk(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function pk(){return{SheetNames:[],Sheets:{}}}function vk(t,e,r,A){var n=1;if(!r)for(;n<=65535&&t.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(A&&t.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var a=i&&i[1]||r;for(++n;n<=65535&&t.SheetNames.indexOf(r=a+n)!=-1;++n);}if(F5(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function mk(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var A=gk(t,e);switch(t.Workbook.Sheets[A]||(t.Workbook.Sheets[A]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[A].Hidden=r}function wk(t,e){return t.z=e,t}function M5(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function Bk(t,e,r){return M5(t,"#"+e,r)}function xk(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function yk(t,e,r,A){for(var n=typeof e!="string"?e:wr(e),i=typeof e=="string"?e:jr(e),a=n.s.r;a<=n.e.r;++a)for(var s=n.s.c;s<=n.e.c;++s){var o=$l(t,a,s);o.t="n",o.F=i,delete o.v,a==n.s.r&&s==n.s.c&&(o.f=r,A&&(o.D=!0))}return t}var Bo={encode_col:UA,encode_row:mA,encode_cell:tr,encode_range:jr,decode_col:ed,decode_row:Z1,split_cell:PI,decode_cell:sA,decode_range:un,format_cell:Hi,sheet_add_aoa:CB,sheet_add_json:R5,sheet_add_dom:I5,aoa_to_sheet:lo,json_to_sheet:dk,table_to_sheet:L5,table_to_book:zO,sheet_to_csv:wd,sheet_to_txt:P5,sheet_to_json:O0,sheet_to_html:U5,sheet_to_formulae:hk,sheet_to_row_object_array:O0,sheet_get_cell:$l,book_new:pk,book_append_sheet:vk,book_set_sheet_visibility:mk,cell_set_number_format:wk,cell_set_hyperlink:M5,cell_set_internal_link:Bk,cell_add_comment:xk,sheet_set_array_formula:yk,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const F$="",H5=(t,e)=>{const r=t.__vccOpts||t;for(const[A,n]of e)r[A]=n;return r},Ck={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`;return{useSafeValues:!0,defaultColors:["#6376DD","#FEB019","#00E396","#FF4560","#775DD0","#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800","#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B","#4ECDC4","#C7F464","#81D4FA","#546E7A","#FD6A6A"],defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#000000",height:300,width:500,padding:{top:36,right:12,bottom:12,left:48},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"black",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"black",show:!0,values:[],fontSize:6}}},labels:{fontSize:10},legend:{color:"black",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#000000",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"white",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#000000"}},table:{rounding:0}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t}},computed:{chartConfig(){return Object.keys(this.config||{}).length?this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config}):this.defaultConfig},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.defaultColors[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.defaultColors[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,A)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*A*this.absoluteDataset.filter(n=>n.type==="bar").filter(n=>!this.segregatedSeries.includes(n.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[A]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){return Math.min(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.min(...t.series)))},maxSeries(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>t.series.length))},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=[...this.plotSet,...this.barSet,...this.lineSet].map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.chartConfig.chart.grid.labels.xAxisLabels.values.forEach((r,A)=>{const n=[r];this.plotSet.length&&this.plotSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.barSet.length&&this.barSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.lineSet.length&&this.lineSet.forEach(i=>{n.push(this.canShowValue(i.absoluteValues[A])?Number(i.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),e.push(n)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(n=>({name:n.name,color:n.color,type:n.type,value:n.absoluteValues.find((i,a)=>a===this.selectedSerieIndex)}));let e="",r=t.map(n=>n.value).filter(n=>this.isSafeValue(n)&&n!==null).reduce((n,i)=>Math.abs(n)+Math.abs(i),0);const A=this.chartConfig.chart.grid.labels.xAxisLabels.values[this.selectedSerieIndex];return A&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${A}</div>`),t.forEach(n=>{this.isSafeValue(n.value)&&n.value!==null&&(e+=`<div><span style="color:${n.color}; margin-right: 3px">${this.icons[n.type]}</span>${n.name} : <b>${this.chartConfig.chart.tooltip.showValue?n.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(n.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,A=48;if(t&&e){const{width:n,height:i}=t.getBoundingClientRect(),a=e.getBoundingClientRect();this.clientPosition.x+n/2>a.right?r=-n:this.clientPosition.x-n/2<a.left?r=0:r=-n/2,this.clientPosition.y+i>a.bottom&&(A=-i-48)}return{top:this.clientPosition.y+A,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let n=5;n>0;n-=1){const i=t*n;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*n),value:i})}const r=this.closestDecimal(this.min/5),A=[];for(let n=5;n>=0;n-=1){const i=Math.abs(r)*n;A.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*n),value:-i})}return[...e,...A]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,A=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${A})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",A),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,A)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
359
359
|
-----> The serie '${e.name}' contains the value '${r}' at index ${A}.
|
|
360
|
-
'${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{treeShake({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(A=>{if(Object.hasOwn(e,A)){const n=e[A];typeof n=="boolean"?r[A]=n:["string","number"].includes(typeof n)?this.isValidUserValue(n)&&(r[A]=n):Array.isArray(r[A])?this.checkArray({userConfig:e,key:A})&&(r[A]=n):this.checkObj({userConfig:e,key:A})&&(r[A]=this.treeShake({defaultConfig:r[A],userConfig:n}))}}),r},calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let A;return t<0,A=Math.round(t/r)*r,A},convertColorToHex(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,i,a,s]=n;return`#${i}${a}${s}`}else if(n=t.match(r)){const[,i,a,s]=n;return`#${this.decimalToHex(i)}${this.decimalToHex(a)}${this.decimalToHex(s)}`}else if(n=t.match(A)){const[,i,a,s]=n,o=this.hslToRgb(Number(i),Number(a),Number(s));return`#${this.decimalToHex(o[0])}${this.decimalToHex(o[1])}${this.decimalToHex(o[2])}`}return null},decimalToHex(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e},hslToRgb(t,e,r){t/=360,e/=100,r/=100;let A,n,i;if(e===0)A=n=i=r;else{const a=(l,c,h)=>(h<0&&(h+=1),h>1&&(h-=1),h<.16666666666666666?l+(c-l)*6*h:h<.5?c:h<.6666666666666666?l+(c-l)*(.6666666666666666-h)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=a(o,s,t+1/3),n=a(o,s,t),i=a(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(i*255)]},ratioToMax(t){return t/this.absoluteMax},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}},shiftHue(t,e){const r=l=>({r:parseInt(l.substring(1,3),16),g:parseInt(l.substring(3,5),16),b:parseInt(l.substring(5,7),16)}),A=({r:l,g:c,b:h})=>{l/=255,c/=255,h/=255;const d=Math.max(l,c,h),u=Math.min(l,c,h);let w,v,x=(d+u)/2;if(d===u)w=v=0;else{const y=d-u;switch(v=x>.5?y/(2-d-u):y/(d+u),d){case l:w=(c-h)/y+(c<h?6:0);break;case c:w=(h-l)/y+2;break;case h:w=(l-c)/y+4;break}w/=6}return{h:w,s:v,l:x}},n=({h:l,s:c,l:h})=>{let d,u,w;if(c===0)d=u=w=h;else{const v=(E,F,k)=>(k<0&&(k+=1),k>1&&(k-=1),k<.16666666666666666?E+(F-E)*6*k:k<.5?F:k<.6666666666666666?E+(F-E)*(.6666666666666666-k)*6:E),x=h<.5?h*(1+c):h+c-h*c,y=2*h-x;d=v(y,x,l+.3333333333333333),u=v(y,x,l),w=v(y,x,l-.3333333333333333)}return{r:Math.round(d*255),g:Math.round(u*255),b:Math.round(w*255)}},i=r(t),a=A(i);a.h+=e,a.h=(a.h+1)%1;const s=n(a);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){const t=this.$refs.chart;t&&(this.isPrinting=!0,this.$nextTick(()=>{const e={height:851.89,width:595.28},r=new xt("","pt","a4");let A,n,i,a,s;Pm(t).then(o=>{A=o.width,n=o.height;let l=n;const c=A/e.width*e.height;let h=0;if(i=e.width,a=582.28/A*n,s=o.toDataURL("image/png",1),l<c)r.addImage(s,"PNG",33,24,i*.9,a*.9,"","FAST");else for(;l>0;)r.addImage(s,"PNG",33,h,i*.9,a*.9,"","FAST"),l-=c,h-=e.height-24,l>0&&r.addPage();r.save(`${this.chartConfig.chart.title.text||"vue-ui-xy"}.pdf`)}).finally(()=>{this.isPrinting=!1})}))},generateXls(){const t=["",...this.table.head.map(l=>l.label)],e=this.table.body,r=[t].concat(e);function A(l){let c=new ArrayBuffer(l.length),h=new Uint8Array(c);for(let d=0;d<l.length;d++)h[d]=l.charCodeAt(d)&255;return c}const n=Bo.book_new(),i=Bo.aoa_to_sheet(r);Bo.book_append_sheet(n,i,"Sheet1");const a=md(n,{bookType:"xlsx",type:"binary"}),s=new Blob([A(a)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=document.createElement("a");o.href=window.URL.createObjectURL(s),o.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,o.click(),window.URL.revokeObjectURL(o.href),this.isExportRequest=!1},checkArray({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length},checkObj({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"},isValidUserValue(t){return![null,void 0,NaN,1/0,-1/0].includes(t)},isSafeValue(t){return![void 0,NaN,1/0,-1/0].includes(t)},checkNaN(t,e=0){return isNaN(t)?e:t}}},Ek=t=>(p.pushScopeId("data-v-91971d60"),t=t(),p.popScopeId(),t),bk={key:1,class:"vue-ui-xy-user-options","data-html2canvas-ignore":"",ref:"details"},Fk={style:{"`background":"${chartConfig.chart.background}",color:"${chartConfig.chart.color}`"}},Sk={class:"vue-ui-xy-user-options-items"},_k={class:"vue-ui-xy-user-option-item"},Tk={for:"vue-ui-xy-option-datalabels"},Uk={class:"vue-ui-xy-user-option-item"},Ik={for:"vue-ui-xy-option-title"},Lk={class:"vue-ui-xy-user-option-item"},Nk={for:"vue-ui-xy-option-legend"},Qk={class:"vue-ui-xy-user-option-item"},Ok={for:"vue-ui-xy-option-table"},kk=["disabled"],Dk={key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Pk=[p.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-91971d60></path><path d="M18 16v.01" data-v-91971d60></path><path d="M6 16v.01" data-v-91971d60></path><path d="M12 5v.01" data-v-91971d60></path><path d="M12 12v.01" data-v-91971d60></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-91971d60></path>',6)],Rk={key:1},Mk=["viewBox"],Hk={class:"vue-ui-xy-grid"},Vk=["stroke","x1","x2","y1","y2"],Kk=["stroke","x1","x2","y1","y2"],Gk={key:0},jk=["x1","x2","y1","y2","stroke"],Wk=["id"],zk=["stop-color"],Xk=["stop-color"],qk=["stop-color"],Yk=["id"],$k=["stop-color"],Jk=["stop-color"],Zk=["stop-color"],eD=["id"],tD=["stop-color"],rD=["stop-color"],AD=["id"],nD=["stop-color"],iD=["stop-color"],aD=["x","y","height","width","fill"],sD=["cx","cy","r","fill","stroke"],oD=["x1","x2","y1","y2","stroke","stroke-width"],lD=["cx","cy","r","fill","stroke"],cD={key:0},fD=["x","y","font-size","fill"],uD={key:1},hD=["x","y","font-size","fill"],dD={key:2},gD=["x","y","font-size","fill"],pD={key:3},vD=["x1","x2","y1","y2","stroke"],mD=["x","y","font-size","fill"],wD=["fill"],BD=["x","y","font-size","fill"],xD={key:4},yD={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},CD={key:5},ED=["y"],bD={class:"vue-ui-xy-legend"},FD=["onClick"],SD={key:6},_D=["y","x","font-size","fill"],TD={key:7},UD=["x","y","height","width","fill","onMouseenter"],ID=["onClick"],LD=["innerHTML"],ND=["innerHTML"],QD={class:"vue-ui-xy-table"},OD=Ek(()=>p.createElementVNode("th",null,null,-1)),kD={style:{"max-width":"200px",margin:"0 auto"}},DD=["onMouseover"];function PD(t,e,r,A,n,i){return p.openBlock(),p.createElementBlock("div",{class:"vue-ui-xy",ref:"chart",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}`)},[i.chartConfig.chart.title.show&&(!n.mutableConfig.titleInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)):p.createCommentVNode("",!0),i.chartConfig.chart.userOptions.show?(p.openBlock(),p.createElementBlock("details",bk,[p.createElementVNode("summary",Fk,p.toDisplayString(i.chartConfig.chart.userOptions.title),1),p.createElementVNode("div",Sk,[p.createElementVNode("div",_k,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-datalabels",name:"vue-ui-xy-option-datalabels","onUpdate:modelValue":e[0]||(e[0]=a=>n.mutableConfig.dataLabels.show=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.dataLabels.show]]),p.createElementVNode("label",Tk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.dataLabels),1)]),p.createElementVNode("div",Uk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-title",name:"vue-ui-xy-option-title","onUpdate:modelValue":e[1]||(e[1]=a=>n.mutableConfig.titleInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.titleInside]]),p.createElementVNode("label",Ik,p.toDisplayString(i.chartConfig.chart.userOptions.labels.titleInside),1)]),p.createElementVNode("div",Lk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-legend",name:"vue-ui-xy-option-legend","onUpdate:modelValue":e[2]||(e[2]=a=>n.mutableConfig.legendInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.legendInside]]),p.createElementVNode("label",Nk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.legendInside),1)]),p.createElementVNode("div",Qk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-table",name:"vue-ui-xy-option-table","onUpdate:modelValue":e[3]||(e[3]=a=>n.mutableConfig.showTable=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.showTable]]),p.createElementVNode("label",Ok,p.toDisplayString(i.chartConfig.chart.userOptions.labels.showTable),1)]),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...a)=>i.generatePdf&&i.generatePdf(...a)),disabled:n.isPrinting,style:{"margin-top":"12px"}},[n.isPrinting?(p.openBlock(),p.createElementBlock("svg",Dk,Pk)):(p.openBlock(),p.createElementBlock("span",Rk,"PDF"))],8,kk),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...a)=>i.generateXls&&i.generateXls(...a))}," XLSX ")])],512)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",{width:"100%",viewBox:i.viewBox,class:"vue-ui-xy-svg",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}; font-family:${i.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("g",Hk,[p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-linecap":"round"},null,8,Vk),p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.right,y1:i.zero,y2:i.zero,"stroke-linecap":"round"},null,8,Kk),i.chartConfig.chart.grid.showVerticalLines?(p.openBlock(),p.createElementBlock("g",Gk,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries+1,(a,s)=>(p.openBlock(),p.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,x2:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-width":"0.5",stroke:i.chartConfig.chart.grid.stroke},null,8,jk))),128))])):p.createCommentVNode("",!0)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_rect_${s}`},[p.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,zk),p.createElementVNode("stop",{offset:"62%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,Xk),p.createElementVNode("stop",{offset:"100%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,qk)],8,Wk),p.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,$k),p.createElementVNode("stop",{offset:"38%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,Jk),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Zk)],8,Yk)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_plot_${s}`},[p.createElementVNode("radialGradient",{id:`plotGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,tD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,rD)],8,eD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_line_${s}`},[p.createElementVNode("radialGradient",{id:`lineGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,nD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,iD)],8,AD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_bar_${s}`,class:p.normalizeClass(`serie_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`bar_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("rect",{key:0,x:i.calcRectX(o),y:i.calcRectY(o),height:i.calcRectHeight(o),width:i.calcRectWidth(),fill:i.chartConfig.bar.useGradient?o.value>=0?`url(#rectGradient_pos_${s}_${n.uniqueId})`:`url(#rectGradient_neg_${s}_${n.uniqueId})`:a.color},null,8,aD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_plot_${s}`,class:p.normalizeClass(`serie_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.plot.radius,fill:i.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,sD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_line_${s}`,class:p.normalizeClass(`serie_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`line_${s}_${l}`},[l<a.plots.length-1&&i.canShowValue(o.value)&&i.canShowValue(a.plots[l+1].value)?(p.openBlock(),p.createElementBlock("line",{key:0,x1:o.x,x2:a.plots[l+1].x,y1:o.y,y2:a.plots[l+1].y,stroke:a.color,"stroke-width":i.chartConfig.line.strokeWidth},null,8,oD)):p.createCommentVNode("",!0)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_line_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.line.radius,fill:i.chartConfig.line.useGradient?`url(#lineGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,lD)):p.createCommentVNode("",!0)]))),128))],2))),128)),i.chartConfig.bar.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",cD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}`,class:p.normalizeClass(`xLabel_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}_${l}`},[p.createElementVNode("text",{x:o.x+i.calcRectWidth(),y:o.y+i.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.bar.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.bar.labels.rounding):""),9,fD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.plot.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",uD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}`,class:p.normalizeClass(`xLabel_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.plot.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.plot.labels.rounding):""),9,hD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.line.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",dD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}`,class:p.normalizeClass(`xLabel_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.line.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.line.labels.rounding):""),9,gD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.show?(p.openBlock(),p.createElementBlock("g",pD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.yLabels,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`yLabel_${s}`},[a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("line",{key:0,x1:i.drawingArea.left,x2:i.drawingArea.left-5,y1:a.y,y2:a.y,stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,vD)):p.createCommentVNode("",!0),a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("text",{key:1,x:i.drawingArea.left-5,y:a.y+i.chartConfig.chart.labels.fontSize/3,"font-size":i.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.canShowValue(a.value)?a.value.toFixed(0):""),9,mD)):p.createCommentVNode("",!0)]))),128))])):p.createCommentVNode("",!0),p.createElementVNode("g",null,[i.chartConfig.chart.grid.labels.axis.yLabel?(p.openBlock(),p.createElementBlock("text",{key:0,fill:i.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.yLabel),9,wD)):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.axis.xLabel?(p.openBlock(),p.createElementBlock("text",{key:1,"text-anchor":"middle",x:i.chartConfig.chart.width/2,y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.axis.fontSize+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":i.chartConfig.chart.grid.labels.axis.fontSize,fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.xLabel),9,BD)):p.createCommentVNode("",!0)]),i.chartConfig.chart.title.show&&n.mutableConfig.titleInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",xD,[(p.openBlock(),p.createElementBlock("foreignObject",yD,[p.createElementVNode("div",{class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize*.6}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)]))])):p.createCommentVNode("",!0),i.chartConfig.chart.legend.show&&n.mutableConfig.legendInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",CD,[(p.openBlock(),p.createElementBlock("foreignObject",{x:"0",y:i.drawingArea.bottom+i.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:p.normalizeStyle(`overflow:visible; font-size:${i.chartConfig.chart.legend.fontSize*.6}px`)},[p.createElementVNode("div",bD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[["plot"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(`color:${a.color}`)},"●",4)):p.createCommentVNode("",!0),["line"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:1,style:p.normalizeStyle(`color:${a.color}`)},"▬",4)):p.createCommentVNode("",!0),["bar"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:2,style:p.normalizeStyle(`color:${a.color}`)},"◼",4)):p.createCommentVNode("",!0),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,FD))),128))])],12,ED))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.xAxisLabels.show?(p.openBlock(),p.createElementBlock("g",SD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("text",{key:`time_label_${s}`,"text-anchor":"middle",y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s+i.drawingArea.width/i.maxSeries/2,"font-size":i.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:i.chartConfig.chart.grid.labels.xAxisLabels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.xAxisLabels.values[s]||""),9,_D))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show?(p.openBlock(),p.createElementBlock("g",TD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`tooltip_trap_${s}`},[p.createElementVNode("rect",{x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s,y:i.drawingArea.top,height:i.drawingArea.height,width:i.drawingArea.width/i.maxSeries,fill:n.selectedSerieIndex===s||n.selectedRowIndex===s?"rgba(0,0,0,0.03)":"transparent",onMouseenter:o=>i.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=o=>i.toggleTooltip(!1))},null,40,UD)]))),128))])):p.createCommentVNode("",!0)],12,Mk)),i.chartConfig.chart.legend.show&&(!n.mutableConfig.legendInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:2,class:"vue-ui-xy-legend",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.legend.fontSize}px`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}`),innerHTML:n.icons[a.type]},null,12,LD),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,ID))),128))],4)):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show&&n.isTooltip?(p.openBlock(),p.createElementBlock("div",{key:3,class:"vue-ui-xy-tooltip",ref:"tooltip",style:p.normalizeStyle(`top:${i.tooltipPosition.top}px; left:${i.tooltipPosition.left}px; background-color:${i.chartConfig.chart.tooltip.backgroundColor}, color:${i.chartConfig.chart.tooltip.color}`),innerHTML:i.tooltipContent},null,12,ND)):p.createCommentVNode("",!0),i.chartConfig.showTable&&n.mutableConfig.showTable?(p.openBlock(),p.createElementBlock("div",{key:4,class:p.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":n.isPrinting}),onClick:e[9]||(e[9]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("table",QD,[p.createElementVNode("thead",null,[p.createElementVNode("tr",null,[OD,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.head,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`th_${s}`},[p.createElementVNode("div",kD,[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}; margin-right:3px`)},p.toDisplayString(n.icons[a.type]),5),p.createTextVNode(p.toDisplayString(a.label),1)])]))),128))])]),p.createElementVNode("tbody",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.body,(a,s)=>(p.openBlock(),p.createElementBlock("tr",{key:`tr_${s}`,class:p.normalizeClass({"vue-ui-xy-table-tr-selected":n.selectedSerieIndex===s||n.selectedRowIndex===s}),onMouseover:o=>n.selectedRowIndex=s,onMouseleave:e[8]||(e[8]=o=>n.selectedRowIndex=null)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a,(o,l)=>(p.openBlock(),p.createElementBlock("td",{key:`td_${s}_${l}`},p.toDisplayString(o),1))),128))],42,DD))),128))])])],2)):p.createCommentVNode("",!0)],4)}const RD=H5(Ck,[["render",PD],["__scopeId","data-v-91971d60"]]),I$="",MD={name:"vue-ui-table",props:{locale:{type:String,default:"fr-fr"},header:{type:Array,default(){return[]}},body:{type:Array,default(){return[]}},fontFamily:{type:String,default:"inherit"},maxHeight:{type:String,default:"500px"},rowsPerPage:{type:Number,default:25},translations:{type:Object,default(){return{average:"Moyenne",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"Du",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"Au",total:"Total",totalRows:"Total rows"}}},useChart:{type:Boolean,default:!0}},data(){return{bodyCopy:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.rowsPerPage,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.rowsPerPage,this.body.length])].sort((t,e)=>t-e),palette:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),tableHead:JSON.parse(JSON.stringify(this.header)).map(t=>({average:Object.hasOwn(t,"average")?t.average:!1,decimals:Object.hasOwn(t,"decimals")?t.decimals:0,isMultiselect:Object.hasOwn(t,"isMultiselect")?t.isMultiselect:!1,isPercentage:Object.hasOwn(t,"isPercentage")?t.isPercentage:!1,isSearch:Object.hasOwn(t,"isSearch")?t.isSearch:!1,isSort:Object.hasOwn(t,"isSort")?t.isSort:!1,name:t.name,percentageTo:Object.hasOwn(t,"percentageTo")?t.percentageTo:void 0,prefix:Object.hasOwn(t,"prefix")?t.prefix:"",rangeFilter:Object.hasOwn(t,"rangeFilter")?t.rangeFilter:!1,suffix:Object.hasOwn(t,"suffix")?t.suffix:"",sum:Object.hasOwn(t,"sum")?t.sum:!1,type:t.type}))}},mounted(){if(this.header.length===0)throw new Error(`SmartTable error: missing header data.
|
|
360
|
+
'${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{treeShake({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(A=>{if(Object.hasOwn(e,A)){const n=e[A];typeof n=="boolean"?r[A]=n:["string","number"].includes(typeof n)?this.isValidUserValue(n)&&(r[A]=n):Array.isArray(r[A])?this.checkArray({userConfig:e,key:A})&&(r[A]=n):this.checkObj({userConfig:e,key:A})&&(r[A]=this.treeShake({defaultConfig:r[A],userConfig:n}))}}),r},calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let A;return t<0,A=Math.round(t/r)*r,A},convertColorToHex(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,i,a,s]=n;return`#${i}${a}${s}`}else if(n=t.match(r)){const[,i,a,s]=n;return`#${this.decimalToHex(i)}${this.decimalToHex(a)}${this.decimalToHex(s)}`}else if(n=t.match(A)){const[,i,a,s]=n,o=this.hslToRgb(Number(i),Number(a),Number(s));return`#${this.decimalToHex(o[0])}${this.decimalToHex(o[1])}${this.decimalToHex(o[2])}`}return null},decimalToHex(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e},hslToRgb(t,e,r){t/=360,e/=100,r/=100;let A,n,i;if(e===0)A=n=i=r;else{const a=(l,c,h)=>(h<0&&(h+=1),h>1&&(h-=1),h<.16666666666666666?l+(c-l)*6*h:h<.5?c:h<.6666666666666666?l+(c-l)*(.6666666666666666-h)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=a(o,s,t+1/3),n=a(o,s,t),i=a(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(i*255)]},ratioToMax(t){return t/this.absoluteMax},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}},shiftHue(t,e){const r=l=>({r:parseInt(l.substring(1,3),16),g:parseInt(l.substring(3,5),16),b:parseInt(l.substring(5,7),16)}),A=({r:l,g:c,b:h})=>{l/=255,c/=255,h/=255;const d=Math.max(l,c,h),u=Math.min(l,c,h);let w,v,x=(d+u)/2;if(d===u)w=v=0;else{const y=d-u;switch(v=x>.5?y/(2-d-u):y/(d+u),d){case l:w=(c-h)/y+(c<h?6:0);break;case c:w=(h-l)/y+2;break;case h:w=(l-c)/y+4;break}w/=6}return{h:w,s:v,l:x}},n=({h:l,s:c,l:h})=>{let d,u,w;if(c===0)d=u=w=h;else{const v=(E,F,k)=>(k<0&&(k+=1),k>1&&(k-=1),k<.16666666666666666?E+(F-E)*6*k:k<.5?F:k<.6666666666666666?E+(F-E)*(.6666666666666666-k)*6:E),x=h<.5?h*(1+c):h+c-h*c,y=2*h-x;d=v(y,x,l+.3333333333333333),u=v(y,x,l),w=v(y,x,l-.3333333333333333)}return{r:Math.round(d*255),g:Math.round(u*255),b:Math.round(w*255)}},i=r(t),a=A(i);a.h+=e,a.h=(a.h+1)%1;const s=n(a);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){const t=this.$refs.chart;t&&(this.isPrinting=!0,this.$nextTick(()=>{const e={height:851.89,width:595.28},r=new xt("","pt","a4");let A,n,i,a,s;Pm(t).then(o=>{A=o.width,n=o.height;let l=n;const c=A/e.width*e.height;let h=0;if(i=e.width,a=582.28/A*n,s=o.toDataURL("image/png",1),l<c)r.addImage(s,"PNG",33,24,i*.9,a*.9,"","FAST");else for(;l>0;)r.addImage(s,"PNG",33,h,i*.9,a*.9,"","FAST"),l-=c,h-=e.height-24,l>0&&r.addPage();r.save(`${this.chartConfig.chart.title.text||"vue-ui-xy"}.pdf`)}).finally(()=>{this.isPrinting=!1})}))},generateXls(){const t=["",...this.table.head.map(l=>l.label)],e=this.table.body,r=[t].concat(e);function A(l){let c=new ArrayBuffer(l.length),h=new Uint8Array(c);for(let d=0;d<l.length;d++)h[d]=l.charCodeAt(d)&255;return c}const n=Bo.book_new(),i=Bo.aoa_to_sheet(r);Bo.book_append_sheet(n,i,"Sheet1");const a=md(n,{bookType:"xlsx",type:"binary"}),s=new Blob([A(a)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=document.createElement("a");o.href=window.URL.createObjectURL(s),o.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,o.click(),window.URL.revokeObjectURL(o.href),this.isExportRequest=!1},checkArray({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length},checkObj({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"},isValidUserValue(t){return![null,void 0,NaN,1/0,-1/0].includes(t)},isSafeValue(t){return![void 0,NaN,1/0,-1/0].includes(t)},checkNaN(t,e=0){return isNaN(t)?e:t}}},Ek=t=>(p.pushScopeId("data-v-aa9b330f"),t=t(),p.popScopeId(),t),bk={class:"vue-ui-xy-user-option-item"},Fk={for:"vue-ui-xy-option-datalabels"},Sk={class:"vue-ui-xy-user-option-item"},_k={for:"vue-ui-xy-option-title"},Tk={class:"vue-ui-xy-user-option-item"},Uk={for:"vue-ui-xy-option-legend"},Ik={class:"vue-ui-xy-user-option-item"},Lk={for:"vue-ui-xy-option-table"},Nk=["disabled"],Qk={key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Ok=[p.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-aa9b330f></path><path d="M18 16v.01" data-v-aa9b330f></path><path d="M6 16v.01" data-v-aa9b330f></path><path d="M12 5v.01" data-v-aa9b330f></path><path d="M12 12v.01" data-v-aa9b330f></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-aa9b330f></path>',6)],kk={key:1},Dk=["viewBox"],Pk={class:"vue-ui-xy-grid"},Rk=["stroke","x1","x2","y1","y2"],Mk=["stroke","x1","x2","y1","y2"],Hk={key:0},Vk=["x1","x2","y1","y2","stroke"],Kk=["id"],Gk=["stop-color"],jk=["stop-color"],Wk=["stop-color"],zk=["id"],Xk=["stop-color"],qk=["stop-color"],Yk=["stop-color"],$k=["id"],Jk=["stop-color"],Zk=["stop-color"],eD=["id"],tD=["stop-color"],rD=["stop-color"],AD=["x","y","height","width","fill"],nD=["cx","cy","r","fill","stroke"],iD=["x1","x2","y1","y2","stroke","stroke-width"],aD=["cx","cy","r","fill","stroke"],sD={key:0},oD=["x","y","font-size","fill"],lD={key:1},cD=["x","y","font-size","fill"],fD={key:2},uD=["x","y","font-size","fill"],hD={key:3},dD=["x1","x2","y1","y2","stroke"],gD=["x","y","font-size","fill"],pD=["font-size","fill"],vD=["x","y","font-size","fill"],mD={key:4},wD={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},BD={key:5},xD=["y"],yD={class:"vue-ui-xy-legend"},CD=["onClick"],ED={key:6},bD=["y","x","font-size","fill"],FD={key:7},SD=["x","y","height","width","fill","onMouseenter"],_D=["onClick"],TD=["innerHTML"],UD=["innerHTML"],ID={class:"vue-ui-xy-table"},LD=Ek(()=>p.createElementVNode("th",null,null,-1)),ND={style:{"max-width":"200px",margin:"0 auto"}},QD=["onMouseover"];function OD(t,e,r,A,n,i){return p.openBlock(),p.createElementBlock("div",{class:"vue-ui-xy",ref:"chart",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}`)},[i.chartConfig.chart.title.show&&(!n.mutableConfig.titleInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)):p.createCommentVNode("",!0),i.chartConfig.chart.userOptions.show?(p.openBlock(),p.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor};color:${i.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[p.createElementVNode("summary",{style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor};color:${i.chartConfig.chart.color}`)},p.toDisplayString(i.chartConfig.chart.userOptions.title),5),p.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor};color:${i.chartConfig.chart.color}`)},[p.createElementVNode("div",bk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-datalabels",name:"vue-ui-xy-option-datalabels","onUpdate:modelValue":e[0]||(e[0]=a=>n.mutableConfig.dataLabels.show=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.dataLabels.show]]),p.createElementVNode("label",Fk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.dataLabels),1)]),p.createElementVNode("div",Sk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-title",name:"vue-ui-xy-option-title","onUpdate:modelValue":e[1]||(e[1]=a=>n.mutableConfig.titleInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.titleInside]]),p.createElementVNode("label",_k,p.toDisplayString(i.chartConfig.chart.userOptions.labels.titleInside),1)]),p.createElementVNode("div",Tk,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-legend",name:"vue-ui-xy-option-legend","onUpdate:modelValue":e[2]||(e[2]=a=>n.mutableConfig.legendInside=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.legendInside]]),p.createElementVNode("label",Uk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.legendInside),1)]),p.createElementVNode("div",Ik,[p.withDirectives(p.createElementVNode("input",{type:"checkbox",id:"vue-ui-xy-option-table",name:"vue-ui-xy-option-table","onUpdate:modelValue":e[3]||(e[3]=a=>n.mutableConfig.showTable=a)},null,512),[[p.vModelCheckbox,n.mutableConfig.showTable]]),p.createElementVNode("label",Lk,p.toDisplayString(i.chartConfig.chart.userOptions.labels.showTable),1)]),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...a)=>i.generatePdf&&i.generatePdf(...a)),disabled:n.isPrinting,style:{"margin-top":"12px"}},[n.isPrinting?(p.openBlock(),p.createElementBlock("svg",Qk,Ok)):(p.openBlock(),p.createElementBlock("span",kk,"PDF"))],8,Nk),p.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...a)=>i.generateXls&&i.generateXls(...a))}," XLSX ")],4)],4)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",{width:"100%",viewBox:i.viewBox,class:"vue-ui-xy-svg",style:p.normalizeStyle(`background:${i.chartConfig.chart.backgroundColor}; color:${i.chartConfig.chart.color}; font-family:${i.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("g",Pk,[p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-linecap":"round"},null,8,Rk),p.createElementVNode("line",{stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:i.drawingArea.left,x2:i.drawingArea.right,y1:i.zero,y2:i.zero,"stroke-linecap":"round"},null,8,Mk),i.chartConfig.chart.grid.showVerticalLines?(p.openBlock(),p.createElementBlock("g",Hk,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries+1,(a,s)=>(p.openBlock(),p.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,x2:i.drawingArea.width/i.maxSeries*s+i.drawingArea.left,y1:i.drawingArea.top,y2:i.drawingArea.bottom,"stroke-width":"0.5",stroke:i.chartConfig.chart.grid.stroke},null,8,Vk))),128))])):p.createCommentVNode("",!0)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_rect_${s}`},[p.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,Gk),p.createElementVNode("stop",{offset:"62%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,jk),p.createElementVNode("stop",{offset:"100%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,Wk)],8,Kk),p.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}66`},null,8,Xk),p.createElementVNode("stop",{offset:"38%","stop-color":`${i.shiftHue(a.color,.02)}DE`},null,8,qk),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Yk)],8,zk)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_plot_${s}`},[p.createElementVNode("radialGradient",{id:`plotGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,Jk),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Zk)],8,$k)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("defs",{key:`def_line_${s}`},[p.createElementVNode("radialGradient",{id:`lineGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[p.createElementVNode("stop",{offset:"0%","stop-color":`${i.shiftHue(a.color,.05)}`},null,8,tD),p.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,rD)],8,eD)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_bar_${s}`,class:p.normalizeClass(`serie_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`bar_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("rect",{key:0,x:i.calcRectX(o),y:i.calcRectY(o),height:i.calcRectHeight(o),width:i.calcRectWidth(),fill:i.chartConfig.bar.useGradient?o.value>=0?`url(#rectGradient_pos_${s}_${n.uniqueId})`:`url(#rectGradient_neg_${s}_${n.uniqueId})`:a.color},null,8,AD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_plot_${s}`,class:p.normalizeClass(`serie_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_plot_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.plot.radius,fill:i.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,nD)):p.createCommentVNode("",!0)]))),128))],2))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`serie_line_${s}`,class:p.normalizeClass(`serie_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`line_${s}_${l}`},[l<a.plots.length-1&&i.canShowValue(o.value)&&i.canShowValue(a.plots[l+1].value)?(p.openBlock(),p.createElementBlock("line",{key:0,x1:o.x,x2:a.plots[l+1].x,y1:o.y,y2:a.plots[l+1].y,stroke:a.color,"stroke-width":i.chartConfig.line.strokeWidth},null,8,iD)):p.createCommentVNode("",!0)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`circle_line_${s}_${l}`},[i.canShowValue(o.value)?(p.openBlock(),p.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:i.chartConfig.line.radius,fill:i.chartConfig.line.useGradient?`url(#lineGradient_${s}_${n.uniqueId})`:a.color,stroke:i.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,aD)):p.createCommentVNode("",!0)]))),128))],2))),128)),i.chartConfig.bar.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",sD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.barSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}`,class:p.normalizeClass(`xLabel_bar_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_bar_${s}_${l}`},[p.createElementVNode("text",{x:o.x+i.calcRectWidth(),y:o.y+i.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.bar.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.bar.labels.rounding):""),9,oD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.plot.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",lD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.plotSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}`,class:p.normalizeClass(`xLabel_plot_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_plot_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.plot.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.plot.labels.rounding):""),9,cD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.line.labels.show&&n.mutableConfig.dataLabels.show?(p.openBlock(),p.createElementBlock("g",fD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.lineSet,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}`,class:p.normalizeClass(`xLabel_line_${s}`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.plots,(o,l)=>(p.openBlock(),p.createElementBlock("g",{key:`xLabel_line_${s}_${l}`},[p.createElementVNode("text",{x:o.x,y:o.y+i.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":i.chartConfig.chart.labels.fontSize,fill:i.chartConfig.line.labels.color},p.toDisplayString(i.canShowValue(o.value)?o.value.toFixed(i.chartConfig.line.labels.rounding):""),9,uD)]))),128))],2))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.show?(p.openBlock(),p.createElementBlock("g",hD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.yLabels,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`yLabel_${s}`},[a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("line",{key:0,x1:i.drawingArea.left,x2:i.drawingArea.left-5,y1:a.y,y2:a.y,stroke:i.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,dD)):p.createCommentVNode("",!0),a.value>=i.min&&a.value<=i.max?(p.openBlock(),p.createElementBlock("text",{key:1,x:i.drawingArea.left-5,y:a.y+i.chartConfig.chart.labels.fontSize/3,"font-size":i.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.canShowValue(a.value)?a.value.toFixed(0):""),9,gD)):p.createCommentVNode("",!0)]))),128))])):p.createCommentVNode("",!0),p.createElementVNode("g",null,[i.chartConfig.chart.grid.labels.axis.yLabel?(p.openBlock(),p.createElementBlock("text",{key:0,"font-size":i.chartConfig.chart.grid.labels.axis.fontSize,fill:i.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.yLabel),9,pD)):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.axis.xLabel?(p.openBlock(),p.createElementBlock("text",{key:1,"text-anchor":"middle",x:i.chartConfig.chart.width/2,y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.axis.fontSize+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":i.chartConfig.chart.grid.labels.axis.fontSize,fill:i.chartConfig.chart.grid.labels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.axis.xLabel),9,vD)):p.createCommentVNode("",!0)]),i.chartConfig.chart.title.show&&n.mutableConfig.titleInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",mD,[(p.openBlock(),p.createElementBlock("foreignObject",wD,[p.createElementVNode("div",{class:"vue-ui-xy-title",style:p.normalizeStyle(`font-family:${i.chartConfig.chart.fontFamily}`)},[p.createElementVNode("div",{class:"vue-ui-xy-title-main",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.fontSize*.6}px; color:${i.chartConfig.chart.title.color}; font-weight:${i.chartConfig.chart.title.bold?"bold":"400"}`)},p.toDisplayString(i.chartConfig.chart.title.text),5),i.chartConfig.chart.title.subtitle.text?(p.openBlock(),p.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${i.chartConfig.chart.title.subtitle.color}`)},p.toDisplayString(i.chartConfig.chart.title.subtitle.text),5)):p.createCommentVNode("",!0)],4)]))])):p.createCommentVNode("",!0),i.chartConfig.chart.legend.show&&n.mutableConfig.legendInside&&!n.isPrinting?(p.openBlock(),p.createElementBlock("g",BD,[(p.openBlock(),p.createElementBlock("foreignObject",{x:"0",y:i.drawingArea.bottom+i.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:p.normalizeStyle(`overflow:visible; font-size:${i.chartConfig.chart.legend.fontSize*.6}px`)},[p.createElementVNode("div",yD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[["plot"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(`color:${a.color}`)},"●",4)):p.createCommentVNode("",!0),["line"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:1,style:p.normalizeStyle(`color:${a.color}`)},"▬",4)):p.createCommentVNode("",!0),["bar"].includes(a.type)?(p.openBlock(),p.createElementBlock("span",{key:2,style:p.normalizeStyle(`color:${a.color}`)},"◼",4)):p.createCommentVNode("",!0),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,CD))),128))])],12,xD))])):p.createCommentVNode("",!0),i.chartConfig.chart.grid.labels.xAxisLabels.show?(p.openBlock(),p.createElementBlock("g",ED,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("text",{key:`time_label_${s}`,"text-anchor":"middle",y:i.drawingArea.bottom+i.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s+i.drawingArea.width/i.maxSeries/2,"font-size":i.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:i.chartConfig.chart.grid.labels.xAxisLabels.color},p.toDisplayString(i.chartConfig.chart.grid.labels.xAxisLabels.values[s]||""),9,bD))),128))])):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show?(p.openBlock(),p.createElementBlock("g",FD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.maxSeries,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`tooltip_trap_${s}`},[p.createElementVNode("rect",{x:i.drawingArea.left+i.drawingArea.width/i.maxSeries*s,y:i.drawingArea.top,height:i.drawingArea.height,width:i.drawingArea.width/i.maxSeries,fill:n.selectedSerieIndex===s||n.selectedRowIndex===s?"rgba(0,0,0,0.03)":"transparent",onMouseenter:o=>i.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=o=>i.toggleTooltip(!1))},null,40,SD)]))),128))])):p.createCommentVNode("",!0)],12,Dk)),i.chartConfig.chart.legend.show&&(!n.mutableConfig.legendInside||n.isPrinting)?(p.openBlock(),p.createElementBlock("div",{key:2,class:"vue-ui-xy-legend",style:p.normalizeStyle(`font-size:${i.chartConfig.chart.legend.fontSize}px`)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.absoluteDataset,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>i.segregate(a),class:p.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(a.id)})},[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}`),innerHTML:n.icons[a.type]},null,12,TD),p.createElementVNode("span",{style:p.normalizeStyle(`color:${i.chartConfig.chart.legend.color}`)},p.toDisplayString(a.name),5)],10,_D))),128))],4)):p.createCommentVNode("",!0),i.chartConfig.chart.tooltip.show&&n.isTooltip?(p.openBlock(),p.createElementBlock("div",{key:3,class:"vue-ui-xy-tooltip",ref:"tooltip",style:p.normalizeStyle(`top:${i.tooltipPosition.top}px; left:${i.tooltipPosition.left}px; background-color:${i.chartConfig.chart.tooltip.backgroundColor}, color:${i.chartConfig.chart.tooltip.color}`),innerHTML:i.tooltipContent},null,12,UD)):p.createCommentVNode("",!0),i.chartConfig.showTable&&n.mutableConfig.showTable?(p.openBlock(),p.createElementBlock("div",{key:4,class:p.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":n.isPrinting}),onClick:e[9]||(e[9]=(...a)=>i.closeDetails&&i.closeDetails(...a))},[p.createElementVNode("table",ID,[p.createElementVNode("thead",null,[p.createElementVNode("tr",null,[LD,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.head,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`th_${s}`},[p.createElementVNode("div",ND,[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}; margin-right:3px`)},p.toDisplayString(n.icons[a.type]),5),p.createTextVNode(p.toDisplayString(a.label),1)])]))),128))])]),p.createElementVNode("tbody",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.table.body,(a,s)=>(p.openBlock(),p.createElementBlock("tr",{key:`tr_${s}`,class:p.normalizeClass({"vue-ui-xy-table-tr-selected":n.selectedSerieIndex===s||n.selectedRowIndex===s}),onMouseover:o=>n.selectedRowIndex=s,onMouseleave:e[8]||(e[8]=o=>n.selectedRowIndex=null)},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a,(o,l)=>(p.openBlock(),p.createElementBlock("td",{key:`td_${s}_${l}`},p.toDisplayString(o),1))),128))],42,QD))),128))])])],2)):p.createCommentVNode("",!0)],4)}const kD=H5(Ck,[["render",OD],["__scopeId","data-v-aa9b330f"]]),_$="",DD={name:"vue-ui-table",props:{locale:{type:String,default:"fr-fr"},header:{type:Array,default(){return[]}},body:{type:Array,default(){return[]}},fontFamily:{type:String,default:"inherit"},maxHeight:{type:String,default:"500px"},rowsPerPage:{type:Number,default:25},translations:{type:Object,default(){return{average:"Moyenne",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"Du",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"Au",total:"Total",totalRows:"Total rows"}}},useChart:{type:Boolean,default:!0}},data(){return{bodyCopy:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.rowsPerPage,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.rowsPerPage,this.body.length])].sort((t,e)=>t-e),palette:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.body)).map((t,e)=>({...t,absoluteIndex:e})),tableHead:JSON.parse(JSON.stringify(this.header)).map(t=>({average:Object.hasOwn(t,"average")?t.average:!1,decimals:Object.hasOwn(t,"decimals")?t.decimals:0,isMultiselect:Object.hasOwn(t,"isMultiselect")?t.isMultiselect:!1,isPercentage:Object.hasOwn(t,"isPercentage")?t.isPercentage:!1,isSearch:Object.hasOwn(t,"isSearch")?t.isSearch:!1,isSort:Object.hasOwn(t,"isSort")?t.isSort:!1,name:t.name,percentageTo:Object.hasOwn(t,"percentageTo")?t.percentageTo:void 0,prefix:Object.hasOwn(t,"prefix")?t.prefix:"",rangeFilter:Object.hasOwn(t,"rangeFilter")?t.rangeFilter:!1,suffix:Object.hasOwn(t,"suffix")?t.suffix:"",sum:Object.hasOwn(t,"sum")?t.sum:!1,type:t.type}))}},mounted(){if(this.header.length===0)throw new Error(`SmartTable error: missing header data.
|
|
361
361
|
Provide an array of objects of type:
|
|
362
362
|
{
|
|
363
363
|
name: string;
|
|
@@ -370,12 +370,12 @@ Provide an array of objects of type:
|
|
|
370
370
|
isMultiselect: boolean;
|
|
371
371
|
isPercentage: boolean;
|
|
372
372
|
percentageTo: string; (or '')
|
|
373
|
-
}`);if(this.body.length===0)throw new Error("SmartTable error: missing body data");this.isLoading=!0,this.promiseWithAsyncFunction(this.prepareBodyCopy,()=>{this.$forceUpdate(),this.isLoading=!1}),document.addEventListener("keydown",t=>{const e=document.activeElement;(e&&Array.from(e.classList).includes("td-focusable")&&t.key.includes("Arrow")||t.code==="Space")&&t.preventDefault()})},watch:{showChart:function(t){t&&this.$nextTick(()=>{this.closeDragElement();const e=this.$refs.chartModal;e.onmousedown=this.dragMouseDown})}},computed:{availableDonutCategories(){return Object.keys(this.multiselects).map(t=>({index:t,name:this.header[t].name,options:this.multiselects[t]}))},canChart(){return this.useChart&&this.currentSelectionSpan.rows.length>1},chartData(){if(!this.canChart)return[];const t=316,e=512,r=this.currentSelectionSpan.rows.length,A=e/r,n=Math.max(...this.currentSelectionSpan.rows.map(h=>h.value)),i=Math.min(...this.currentSelectionSpan.rows.map(h=>h.value)),a=i>=0?0:Math.abs(i),s=n+a,o=this.header[this.currentSelectionSpan.col].isPercentage,l=this.currentSelectionSpan.rows.map((h,d)=>({x:A*d+A/2,y:(1-(h.value+a)/s)*t,value:o?h.value*100:h.value,suffix:o?"%":this.header[this.currentSelectionSpan.col].suffix?this.header[this.currentSelectionSpan.col].suffix:"",prefix:this.header[this.currentSelectionSpan.col].prefix?this.header[this.currentSelectionSpan.col].prefix:"",index:h.index,absoluteValue:o?Math.abs(h.value)*100:Math.abs(h.value)}));return{zero:t-t*(a/s),plots:l,slot:A,progression:l.length>=2?this.calcChartProgression(l):!1}},donutHollowLabels(){return{total:Number((this.currentDonut.map(t=>t.absoluteValue).reduce((t,e)=>t+e,0)*(this.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),average:Number((this.currentDonut.map(t=>t.absoluteValue).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length*(this.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},hasNumericTypes(){return this.header.map(t=>t.type).includes(this.constants.NUMERIC)},icons(){return{arrowSort:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,bar:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,chart:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,chevronDown:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,chevronLeft:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg>`,chevronRight:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg>`,donut:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,export:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,fileDownload:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,filter:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,move:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,sort09:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sort90:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sortAZ:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sortZA:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sum:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,table:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`}},pages(){const t=[];if(this.bodyCopy.length)for(let e=0;e<this.bodyCopy.length;e+=this.itemsPerPage)t.push(this.bodyCopy.slice(e,e+this.itemsPerPage));return t},rows(){return this.bodyCopy.map(t=>t.td)},selectedCellsCalculations(){return{sumPercentage:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)*100).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),sumRegular:Number(this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averagePercentage:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length*100).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averageRegular:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},visibleRows(){return this.pages[this.currentPage]}},methods:{applyDonutOption(){const t=this.selectedDonutCategory.options.map((e,r)=>({name:e,color:this.palette[r]||this.palette[r%this.palette.length],value:this.visibleRows.filter((A,n)=>A.td[this.selectedDonutCategory.index]===e&&this.currentSelectionSpan.rows.map(i=>i.index).includes(n)).map(A=>A.td[this.currentSelectionSpan.col]).reduce((A,n)=>Math.abs(A)+Math.abs(n),0),absoluteValue:this.visibleRows.filter((A,n)=>A.td[this.selectedDonutCategory.index]===e&&this.currentSelectionSpan.rows.map(i=>i.index).includes(n)).map(A=>A.td[this.currentSelectionSpan.col]).reduce((A,n)=>A+n,0)})).sort((e,r)=>r.value-e.value);this.currentDonut=this.makeDonut({series:t},50,50,30,30),this.$nextTick(()=>{this.chart.type=this.constants.DONUT,this.showDonutOptions=!1})},calcRectY(t,e){return t>=0?e:this.chartData.zero},canResetColumn(t,e){return!this.hasNaN[t]&&(e.isSort||e.isSearch||e.isMultiselect||e.rangeFilter)&&![this.constants.DATE].includes(e.type)},createXls(t="all"){const e=this.header.map(c=>c.name),r=t==="all"?this.bodyCopy.map(c=>c.td):this.visibleRows.map(c=>c.td),A=[e].concat(r);function n(c){let h=new ArrayBuffer(c.length),d=new Uint8Array(h);for(let u=0;u<c.length;u++)d[u]=c.charCodeAt(u)&255;return h}const i=Bo.book_new(),a=Bo.aoa_to_sheet(A);Bo.book_append_sheet(i,a,"Sheet1");const s=md(i,{bookType:"xlsx",type:"binary"}),o=new Blob([n(s)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=document.createElement("a");l.href=window.URL.createObjectURL(o),l.download="data.xlsx",l.click(),window.URL.revokeObjectURL(l.href),this.isExportRequest=!1},calcChartProgression(t){let e,r,A,n;const i=t.length;let a=0,s=0,o=0,l=0;for(const{x:d,y:u}of t)a+=d,s+=u,o+=d*u,l+=d*d;const c=(i*o-a*s)/(i*l-a*a),h=(s-c*a)/i;return e=t[0].x,A=t[i-1].x,r=c*e+h,n=c*A+h,{x1:e,y1:r,x2:A,y2:n,slope:c}},closeAllDropdowns(){const t=document.getElementsByClassName("th-dropdown");t.length&&Array.from(t).forEach(e=>{e.dataset.isOpen=!1})},debounce(t,e){let r;clearTimeout(r),r=setTimeout(t,e)},filterBody(){this.bodyCopy=this.tableBody.filter(t=>{for(const e in this.searches)if(!t.td[e].toUpperCase().includes(this.searches[e].toUpperCase()))return!1;for(const e in this.multiselects)if(!this.multiselects[e].some(A=>A===t.td[e]))return!1;for(const e in this.dates){const r=new Date(t.td[e]),A=new Date(this.dates[e].from),n=new Date(this.dates[e].to);if(r<A||r>n)return!1}return!0}),this.sortBody()},getAverage(t){return this.rows.map(e=>e[t]).map(e=>isNaN(Number(e))?0:e).reduce((e,r)=>e+r,0)/this.bodyCopy.length},getDatesRange(t){const e=this.body.map(d=>new Date(d.td[t])),r=new Date(Math.min(...e)),A=new Date(Math.max(...e)),n=r.getFullYear(),i=A.getFullYear(),a=String(r.getMonth()+1).padStart(2,"0"),s=String(A.getMonth()+1).padStart(2,"0"),o=String(r.getDate()).padStart(2,"0"),l=String(A.getDate()).padStart(2,"0"),c=`${n}-${a}-${o}`,h=`${i}-${s}-${l}`;return{from:c,to:h}},getDonutLegendValue(t){return Number((t*(this.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString()},getDropdownOptions(t){return[...new Set(this.body.map(e=>e.td[t]))]},getSum(t){return this.rows.map(e=>e[t]).map(e=>isNaN(Number(e))?0:e).reduce((e,r)=>e+r,0)},includesNaN(t){return t.includes(NaN)},isDropdownOptionSelected(t,e){return this.multiselects[e]?this.multiselects[e].includes(t):!0},isNumeric(t){return!isNaN(Number(String(t).replaceAll("%","")))},isResetDisabled(t,e){const r=e.isSort,A=e.isSearch,n=e.isMultiselect&&this.multiselects[t],i=e.rangeFilter,a=s=>{if(i&&this.rangeFilters[s])return Math.round(this.rangeFilters[s].min)===this.immutableRangeFilters[s].min&&Math.round(this.rangeFilters[s].max)===this.immutableRangeFilters[s].max};if(r&&A&&n&&i)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(r&&A&&n)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(r&&A&&i)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&a(t);if(r&&A)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t]);if(r&&n&&i)return[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(r&&n)return[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(A&&n&&i)return["",void 0].includes(this.searches[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(A&&n)return["",void 0].includes(this.searches[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(A&&i)return["",void 0].includes(this.searches[t])&&a(t);if(A)return["",void 0].includes(this.searches[t]);if(r&&i)return[void 0].includes(this.sorts[t])&&a(t);if(r)return[void 0].includes(this.sorts[t]);if(n&&i)return this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(n)return this.multiselects[t].length===this.getDropdownOptions(t).length},navigate(t){this.resetSelection(),t==="next"&&this.currentPage<this.pages.length?this.currentPage+=1:t==="previous"&&this.currentPage>=1?this.currentPage-=1:this.currentPage=t-1,this.$refs.tableWrapper.scrollTo({top:0,left:0,behavior:"smooth"})},navigateCell(t){t.preventDefault();const e=t.keyCode,r=38,A=40,n=37,i=39;if(![r,A,n,i].includes(e))return;const a=t.target.id,s=/cell_(\d+)_(\d+)/,o=a.match(s),l=parseInt(o[1]),c=parseInt(o[2]),h=document.getElementById(`cell_${l}_${c+1}`),d=document.getElementById(`cell_${l}_${c-1}`),u=document.getElementById(`cell_${l+1}_${c}`),w=document.getElementById(`cell_${l-1}_${c}`);let v;switch(!0){case e===i:v=h;break;case e===n:v=d;break;case e===r:v=w;break;case e===A:v=u;break;default:return}v&&(v.focus(),v.scrollIntoView({behavior:"smooth",block:"center"}))},openDonutOptions(){this.selectedDonutCategory=this.availableDonutCategories[0],this.showDonutOptions=!0},placeLabelOnTopOrBottom({previousPlot:t,currentPlot:e,nextPlot:r}){const A=e.y-38,n=e.y+16;return t&&r?t.value<e.value&&r.value<e.value?A:t.value>e.value&&r.value>e.value?n:(t.value>e.value&&r.value<e.value||t.value<e.value&&r.value>e.value,A):t&&!r?t.value>e.value?n:A:!t&&r&&r.value>e.value?n:A},async prepareBodyCopy(){return new Promise(t=>{const e=[];this.tableHead.forEach((r,A)=>{if(r.isSearch&&Object.assign(this.searches,{[A]:""}),r.isMultiselect&&Object.assign(this.multiselects,{[A]:this.getDropdownOptions(A)}),r.type===this.constants.DATE&&(Object.assign(this.dates,{[A]:this.getDatesRange(A)}),Object.assign(this.filteredDatesIndexes,{[A]:!1})),(r.isPercentage||r.percentageTo)&&Object.assign(this.percentages,{[A]:{reference:r.percentageTo,referenceIndex:this.header.map(n=>n.name).indexOf(r.percentageTo)}}),r.rangeFilter&&(Object.assign(this.rangeFilters,{[A]:{min:Math.round(Math.min(...this.body.map(n=>n.td).map(n=>n[A]))),max:Math.round(Math.max(...this.body.map(n=>n.td).map(n=>n[A])))}}),Object.assign(this.immutableRangeFilters,{[A]:{min:Math.round(Math.min(...this.body.map(n=>n.td).map(n=>n[A]))),max:Math.round(Math.max(...this.body.map(n=>n.td).map(n=>n[A])))}})),r.isPercentage){const n=this.header.map(a=>a.name).indexOf(r.percentageTo),i=this.body.map(a=>a.td[n]).reduce((a,s)=>a+s,0);e.push([A,n,i])}r.type===this.constants.NUMERIC&&!r.isPercentage&&Object.assign(this.hasNaN,{[A]:this.includesNaN(this.body.map(n=>Number(n.td[A])))})}),this.bodyCopy.forEach((r,A)=>{e.map(n=>{const[i,a,s]=n;r.td[i]=r.td[a]/s}),r.td.forEach((n,i)=>{this.header[i].type===this.constants.TEXT&&this.header[i].isSearch&&(r[i]=this.stringToNumber(n)),this.header[i].type===this.constants.DATE&&(r[i]=new Date(n).getTime()),this.header[i].type===this.constants.NUMERIC&&(r[i]=isNaN(Number(n))?i:n),this.tableBody[A][i]=r[i]})}),t(!0)})},promiseWithAsyncFunction(t,e){return new Promise((r,A)=>{t().then(n=>{try{const i=e(n);r(i)}catch(i){A(i)}}).catch(n=>{A(n)})})},resetDates(t){this.dates[t]={from:this.getDatesRange(t).from,to:this.getDatesRange(t).to},this.filteredDatesIndexes[t]=!1,this.$forceUpdate(),this.filterBody()},resetFilter(t,e,r){const A=r.currentTarget;clearTimeout(this.buttonTimeout),A.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{A.classList.remove("clicked")},200),this.currentFilter=void 0,e.rangeFilter&&(this.rangeFilters[t].min=this.immutableRangeFilters[t].min,this.rangeFilters[t].max=this.immutableRangeFilters[t].max),e.isMultiselect?(this.multiselects[t]=this.getDropdownOptions(t),e.type===this.constants.TEXT&&(this.sorts[t]=void 0),e.isSearch&&(this.searches[t]="")):e.type===this.constants.NUMERIC?this.sorts[t]=void 0:e.type===this.constants.TEXT?(this.sorts[t]=void 0,this.searches[t]=""):e.type===this.constants.DATE&&(this.sorts[t]=void 0),this.filterBody()},resetSelection(){const t=document.getElementsByClassName(this.cssClass.ROW);Array.from(t).forEach(e=>{e.classList.remove(this.cssClass.CELL),e.classList.remove(this.cssClass.ROW),e.classList.remove(this.cssClass.FIRST_TD),e.classList.remove(this.cssClass.LAST_TD)}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),this.showChart=!1,this.currentDonut=void 0,this.selectedColumn=void 0,this.chart.type=this.constants.BAR,this.currentSelectionSpan={col:void 0,rows:[]},this.clientX=100,this.clientY=100},selectColumn(t){this.currentSelectionSpan.col!==t?(this.visibleRows.forEach((e,r)=>{this.selectTd({td:e.td[t],rowIndex:r,colIndex:t,headerType:this.constants.NUMERIC,event:{currentTarget:document.getElementById(`cell_${r}_${t}`)}})}),this.selectedColumn=t):(this.selectedColumn=void 0,this.resetSelection())},selectDropdownOption(t,e){this.multiselects[e].includes(t)?this.multiselects[e]=this.multiselects[e].filter(r=>r!==t):this.multiselects[e].push(t),this.$forceUpdate(),this.filterBody()},selectTd({td:t,rowIndex:e,colIndex:r,headerType:A,event:n}){if(A!==this.constants.NUMERIC||isNaN(Number(t))){this.resetSelection();return}this.currentSelectionSpan.col!==r&&this.resetSelection();const i=n.currentTarget.parentNode;this.currentSelectionSpan.col=r,this.currentSelectionSpan.rows.map(a=>a.index).includes(e)?(this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.filter(a=>a.index!==e),n.currentTarget.classList.remove(this.cssClass.CELL),Array.from(i.children).forEach((a,s)=>{a.classList.remove(this.cssClass.ROW),s===0&&a.classList.remove(this.cssClass.FIRST_TD),s===i.children.length-1&&a.classList.remove(this.cssClass.LAST_TD)})):(this.currentSelectionSpan.rows.push({index:e,value:t}),n.currentTarget.classList.add(this.cssClass.CELL),Array.from(i.children).forEach((a,s)=>{a.classList.add(this.cssClass.ROW),s===0&&a.classList.add(this.cssClass.FIRST_TD),s===i.children.length-1&&a.classList.add(this.cssClass.LAST_TD)})),this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.sort((a,s)=>a.index-s.index),this.chart.type===this.constants.DONUT&&this.currentSelectionSpan.rows.length>0&&this.applyDonutOption()},setFilterDatesIndexes(t){this.filteredDatesIndexes[t]=!(this.getDatesRange(t).from===this.dates[t].from&&this.getDatesRange(t).to===this.dates[t].to)},sortBody(){this.resetSelection(),Object.keys(this.rangeFilters).forEach(t=>{this.filterByRange(this.bodyCopy,t)}),Object.keys(this.sorts).forEach(t=>{this.sortByNumber(this.bodyCopy,t)}),this.currentFilter!==void 0&&this.sortByNumber(this.bodyCopy,this.currentFilter),this.header.forEach((t,e)=>{if(t.isPercentage){const r=this.percentages[e].referenceIndex,A=this.bodyCopy.map(n=>n.td[r]).reduce((n,i)=>n+i,0);this.bodyCopy.forEach(n=>{n.td[e]=n.td[r]/A})}}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),[-1].includes(this.currentPage)&&(this.currentPage=0),this.$forceUpdate()},filterByRange(t,e){this.bodyCopy=t.filter(r=>r.td[e]>=this.rangeFilters[e].min&&r[e]<=this.rangeFilters[e].max)},sortByNumber(t,e){if(this.sorts[e]===this.constants.ASC&&(t=t.sort((r,A)=>r[e]-A[e])),this.sorts[e]===this.constants.DESC)t=t.sort((r,A)=>A[e]-r[e]);else return 0},sortTh(t,e){this.currentFilter=t;const r=e.currentTarget;clearTimeout(this.buttonTimeout),r.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{r.classList.remove("clicked")},200),this.sorts[t]===1?this.sorts[t]=this.constants.DESC:this.sorts[t]=this.constants.ASC,this.sortBody()},stringToNumber(t){let e=0;for(let r=0;r<t.length;r+=1)e+=t.charCodeAt(r);return e},toggleMultiselect(t,e,r){const A=r.currentTarget;clearTimeout(this.buttonTimeout),A.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{A.classList.remove("clicked")},200);const n=document.getElementById(`th_dropdown_${t}`);n.dataset.isOpen==="false"?n.dataset.isOpen="true":n.dataset.isOpen="false"},updateCurrentPage(t){this.resetSelection(),this.currentPage=Number(t.target.value)},addVector([t,e],[r,A]){return[t+r,e+A]},calcDonutMarkerConnectorColor(t){return t.proportion*100>3?t.color:"transparent"},calcDonutMarkerLabelPositionX(t){return t.center.endX+this.calcMarkerOffset(t,50)},calcMarkerOffset(t,e){return t.center.endX-e>=0?3:-2},createArc([t,e],[r,A],[n,i],a){i=i%(2*Math.PI);const s=this.rotateMatrix(a),[o,l]=this.addVector(this.matrixTimes(s,[r*Math.cos(n),A*Math.sin(n)]),[t,e]),[c,h]=this.addVector(this.matrixTimes(s,[r*Math.cos(n+i),A*Math.sin(n+i)]),[t,e]),d=i>Math.PI?1:0,u=i>0?1:0;return{startX:o,startY:l,endX:c,endY:h,path:`M${o} ${l} A ${[r,A,a/(2*Math.PI)*360,d,u,c,h].join(" ")}`}},displayArcPercentage(t,e){return isNaN(t.value/this.sumValues(e))?0:(t.value/this.sumValues(e)*100).toFixed(0)+"%"},isArcBigEnough(t){return t.proportion*100>3},makeDonut(t,e,r,A,n){let{series:i}=t;if(!i||t.base===0)return{...i,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const a=[...i].map(l=>l.value).reduce((l,c)=>l+c,0),s=[];let o=0;for(let l=0;l<i.length;l+=1){let c=i[l].value/a;const h=c*(Math.PI*1.9999),u=i[l].value/2/a*(Math.PI*2),{startX:w,startY:v,endX:x,endY:y,path:E}=this.createArc([e,r],[A,n],[o,h],110);s.push({...i[l],proportion:c,ratio:h,path:E,startX:w,startY:v,endX:x,endY:y,center:this.createArc([e,r],[A*1.45,n*1.45],[o,u],110)}),o+=h}return s},matrixTimes([[t,e],[r,A]],[n,i]){return[t*n+e*i,r*n+A*i]},rotateMatrix(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]},sumValues(t){return[...t].map(e=>e.value).reduce((e,r)=>e+r,0)},closeDragElement(){document.onmouseup=null,document.onmousemove=null},dragMouseDown(t){t=t||window.event,t.preventDefault(),document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag(t){this.rafId||(this.rafId=window.requestAnimationFrame(()=>this.onElementDrag(t)))},onElementDrag(t){t=t||window.event,t.preventDefault();const r=this.$refs.chartModal.getBoundingClientRect();this.clientX=t.clientX-r.width/2,this.clientY=t.clientY-r.height/2,this.rafId=null}}},_n=t=>(p.pushScopeId("data-v-cfc38e10"),t=t(),p.popScopeId(),t),HD={class:"smart-table-export-hub"},VD=["innerHTML"],KD=["data-is-open"],GD=_n(()=>p.createElementVNode("b",{class:"smart-table-export-hub-title"}," Export ",-1)),jD={class:"smart-table-export-hub-options"},WD={class:"smart-table-export-hub-option-wrapper"},zD={class:"label"},XD=["innerHTML"],qD={class:"smart-table-export-hub-option-wrapper"},YD={class:"label"},$D=["innerHTML"],JD={class:"smart-table"},ZD={id:"tableHead"},eP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),tP={key:0,class:"th-fusion"},rP={key:0},AP={key:1},nP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),iP={key:0,style:{display:"flex","align-items":"center","justify-content":"flex-end"}},aP=["innerHTML"],sP={key:0,style:{"margin-left":"3px"}},oP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),lP={key:0},cP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),fP={class:"th-filter"},uP={key:0,class:"th-date"},hP={class:"date-wrapper--inputs"},dP={class:"date-fieldset"},gP=["for"],pP=["id","onUpdate:modelValue","onInput"],vP={class:"date-fieldset"},mP=["for"],wP=["id","onUpdate:modelValue","onInput"],BP={class:"date-wrapper--button"},xP=["onClick"],yP=["innerHTML"],CP=["innerHTML"],EP=["innerHTML"],bP=["onClick","disabled"],FP=["placeholder","onUpdate:modelValue","name"],SP=["onClick"],_P=["innerHTML"],TP=["innerHTML"],UP=["innerHTML"],IP=["onClick","innerHTML"],LP=["innerHTML"],NP={key:5,class:"th-range-filter"},QP=["for"],OP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒥ",-1)),kP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒣ",-1)),DP=["id","max","min","onUpdate:modelValue"],PP=["id","max","min","onUpdate:modelValue"],RP=["for"],MP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒪ",-1)),HP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒧ",-1)),VP=["onClick","disabled"],KP=["id"],GP=["onClick"],jP=["onClick","onKeyup"],WP={key:0,style:{color:"green"},class:"th-icon-green"},zP={key:1,style:{color:"red"},class:"th-icon-red"},XP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),qP=["innerHTML","onClick","onKeyup"],YP={class:"smart-table-td-iteration"},$P=["onClick","onKeyup","id"],JP=["innerHTML"],ZP={key:1},e7={key:2},t7={key:5},r7=["innerHTML"],A7={key:0},n7={style:{"margin-left":"12px"}},i7={class:"format-num"},a7={style:{"margin-left":"12px"}},s7={key:0,class:"format-num"},o7={key:1,class:"format-num"},l7={key:2},c7={style:{"margin-left":"12px"}},f7={key:0,class:"format-num"},u7={key:1,class:"format-num"},h7={key:2},d7={key:0,class:"smart-table-paginator format-num"},g7={key:1,class:"smart-table-size-warning"},p7=["innerHTML"],v7={key:3,class:"smart-table-pagination format-num"},m7=["innerHTML","disabled"],w7=["disabled"],B7={key:0,class:"smart-table-page-scroller-wrapper"},x7={for:"pageScroller",style:{"font-size":"14px"}},y7=["max","value"],C7={key:1},E7=["disabled"],b7=["innerHTML","disabled"],F7={class:"chart-modal-options"},S7=["innerHTML"],_7=["innerHTML"],T7=["innerHTML"],U7={style:{"margin-bottom":"12px"}},I7={key:0},L7={key:1},N7={style:{width:"100%",height:"fit-content",cursor:"move"},ref:"chartModal"},Q7={key:0},O7={class:"smart-table-fieldset"},k7={class:"smart-table-fieldset-wrapper"},D7=["name","id","checked","onInput"],P7=["for"],R7=["disabled"],M7=["innerHTML"],H7=["viewBox"],V7=_n(()=>p.createElementVNode("defs",null,[p.createElementVNode("marker",{id:"arrowhead",markerWidth:"7",markerHeight:"7",refX:"0",refY:"3.5",orient:"auto"},[p.createElementVNode("polygon",{points:"0 0, 7 3.5, 0 7",fill:"grey"})])],-1)),K7=["x2","y1","y2"],G7=["y2"],j7=["x","width","height","fill"],W7=p.createStaticVNode('<linearGradient id="barGradientSelected" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DD" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DD80" data-v-cfc38e10></stop></linearGradient><linearGradient id="barGradientSelectedNeg" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DD80" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DD" data-v-cfc38e10></stop></linearGradient><linearGradient id="barGradient" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DDB3" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DD66" data-v-cfc38e10></stop></linearGradient><linearGradient id="barGradientNeg" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DD66" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DDB3" data-v-cfc38e10></stop></linearGradient>',4),z7=["x","y","height","width","fill"],X7=["x","y","width"],q7={style:{width:"100%","text-align":"center","font-size":"20px"}},Y7=["x1","y1","x2","y2"],$7=["x1","y1","x2","y2"],J7=["cx","cy","r"],Z7=["x","y","width"],eR={style:{width:"100%","text-align":"center","font-size":"20px"}},tR=["x","width","height","onMouseenter"],rR=["x1","y1","x2","y2"],AR={key:0,class:"chart-trend"},nR=_n(()=>p.createElementVNode("span",null,"---",-1)),iR={viewBox:"0 0 100 100",style:{overflow:"visible",padding:"0 24px"},class:"smart-table-donut-chart"},aR=["d","stroke"],sR=["x","y"],oR={key:0,class:"smart-table-donut-label"},lR={class:"smart-table-donut-label-name"},cR={x:50,y:42,"text-anchor":"middle","font-size":"6"},fR={x:50,y:48,"text-anchor":"middle","font-size":"4"},uR={x:50,y:56,"text-anchor":"middle","font-size":"6"},hR={x:50,y:62,"text-anchor":"middle","font-size":"4"},dR={class:"smart-table-donut-legend"};function gR(t,e,r,A,n,i){return p.openBlock(),p.createElementBlock("div",{class:"smart-table-main",style:p.normalizeStyle(`font-family: ${r.fontFamily}`)},[p.createElementVNode("div",HD,[p.createElementVNode("button",{onClick:e[0]||(e[0]=a=>n.isExportRequest=!n.isExportRequest),innerHTML:i.icons.export},null,8,VD),p.createElementVNode("div",{class:"smart-table-export-hub-dropdown","data-is-open":n.isExportRequest||"false"},[GD,p.createElementVNode("button",{class:"close-dropdown",onClick:e[1]||(e[1]=a=>n.isExportRequest=!1)}," ✖ "),p.createElementVNode("div",jD,[p.createElementVNode("div",WD,[p.createElementVNode("div",zD,p.toDisplayString(r.translations.exportAllLabel)+" ("+p.toDisplayString(n.bodyCopy.length)+") ",1),p.createElementVNode("button",{id:"exportAll",onClick:e[2]||(e[2]=a=>i.createXls("all"))},[p.createElementVNode("div",{innerHTML:i.icons.fileDownload},null,8,XD),p.createElementVNode("span",null,p.toDisplayString(r.translations.exportAllButton),1)])]),p.createElementVNode("div",qD,[p.createElementVNode("div",YD,p.toDisplayString(r.translations.exportPageLabel),1),p.createElementVNode("button",{id:"exportPage",onClick:e[3]||(e[3]=a=>i.createXls("page"))},[p.createElementVNode("div",{innerHTML:i.icons.fileDownload},null,8,$D),p.createElementVNode("span",null,p.toDisplayString(r.translations.exportPageButton),1)])])])],8,KD)]),p.createElementVNode("div",{class:"smart-table__wrapper",style:p.normalizeStyle(`max-height:${r.maxHeight}`),ref:"tableWrapper"},[p.createElementVNode("table",JD,[p.createElementVNode("thead",ZD,[p.createElementVNode("tr",null,[eP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,style:{overflow:"visible",position:"relative"},class:p.normalizeClass({"th-has-nan":n.hasNaN[s]})},[i.hasNumericTypes&&([n.constants.TEXT,n.constants.DATE].includes(a.type)||a.isPercentage)?(p.openBlock(),p.createElementBlock("div",tP,[p.createElementVNode("span",null,[p.createTextVNode(p.toDisplayString(a.name)+" ",1),a.isPercentage?(p.openBlock(),p.createElementBlock("span",rP," / "+p.toDisplayString(a.percentageTo),1)):p.createCommentVNode("",!0)])])):(p.openBlock(),p.createElementBlock("span",AP,p.toDisplayString(a.name),1))],2))),128))]),i.hasNumericTypes?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("tr",null,[nP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,class:p.normalizeClass({"th-numeric":!0,"th-has-nan":n.hasNaN[s]})},[a.sum&&!n.hasNaN[s]?(p.openBlock(),p.createElementBlock("span",iP,[p.createElementVNode("span",{innerHTML:i.icons.sum,style:{"margin-bottom":"-4px","margin-right":"3px"}},null,8,aP),p.createTextVNode(" "+p.toDisplayString(a.prefix)+" "+p.toDisplayString(Number(i.getSum(s).toFixed(a.decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix)+" ",1),n.percentages[s]&&a.percentageTo&&!a.isPercentage?(p.openBlock(),p.createElementBlock("span",sP," ("+p.toDisplayString(isNaN(i.getSum(s)/i.getSum(n.percentages[s].referenceIndex))?"-":(i.getSum(s)/i.getSum(n.percentages[s].referenceIndex)*100).toFixed(a.decimals))+"%) ",1)):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)],2))),128))]),p.createElementVNode("tr",null,[oP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,class:p.normalizeClass({"th-numeric":!0,"th-has-nan":n.hasNaN[s]})},[a.average&&!n.hasNaN[s]?(p.openBlock(),p.createElementBlock("span",lP," ~ "+p.toDisplayString(a.prefix)+" "+p.toDisplayString(isNaN(i.getAverage(s))?"":Number(i.getAverage(s).toFixed(a.decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix),1)):p.createCommentVNode("",!0)],2))),128))]),p.createElementVNode("tr",null,[cP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,class:p.normalizeClass({"th-has-nan":n.hasNaN[s]})},[p.createElementVNode("div",fP,[a.type===n.constants.DATE&&n.dates[s]?(p.openBlock(),p.createElementBlock("div",uP,[p.createElementVNode("div",hP,[p.createElementVNode("div",dP,[p.createElementVNode("label",{for:`from_${s}`},p.toDisplayString(r.translations.from),9,gP),p.withDirectives(p.createElementVNode("input",{id:`from_${s}`,type:"date","onUpdate:modelValue":o=>n.dates[s].from=o,onInput:o=>{i.filterBody(),i.setFilterDatesIndexes(s)}},null,40,pP),[[p.vModelText,n.dates[s].from]])]),p.createElementVNode("div",vP,[p.createElementVNode("label",{for:`to_${s}`},p.toDisplayString(r.translations.to),9,mP),p.withDirectives(p.createElementVNode("input",{id:`to_${s}`,type:"date","onUpdate:modelValue":o=>n.dates[s].to=o,onInput:o=>{i.filterBody(),i.setFilterDatesIndexes(s)}},null,40,wP),[[p.vModelText,n.dates[s].to]])])]),p.createElementVNode("div",BP,[a.isSort?(p.openBlock(),p.createElementBlock("button",{key:0,onClick:o=>i.sortTh(s,o),class:p.normalizeClass({"th-button-active":[n.constants.DESC,n.constants.ASC].includes(n.sorts[s])})},[n.sorts[s]===n.constants.ASC?(p.openBlock(),p.createElementBlock("span",{key:0,innerHTML:[n.constants.DATE].includes(a.type)?i.icons.sort09:i.icons.sortAZ},null,8,yP)):n.sorts[s]===n.constants.DESC?(p.openBlock(),p.createElementBlock("span",{key:1,innerHTML:[n.constants.DATE].includes(a.type)?i.icons.sort90:i.icons.sortZA},null,8,CP)):(p.openBlock(),p.createElementBlock("span",{key:2,innerHTML:i.icons.arrowSort},null,8,EP))],10,xP)):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:o=>{i.resetDates(s),i.resetFilter(s,a,o)},disabled:!n.filteredDatesIndexes[s]&&i.isResetDisabled(s,a),class:"th-reset"}," ✖ ",8,bP)])])):p.createCommentVNode("",!0),a.isSearch?p.withDirectives((p.openBlock(),p.createElementBlock("input",{key:1,placeholder:r.translations.inputPlaceholder,"onUpdate:modelValue":o=>n.searches[s]=o,onInput:e[4]||(e[4]=o=>i.debounce(i.filterBody,400)),name:`search_${s}`},null,40,FP)),[[p.vModelText,n.searches[s]]]):p.createCommentVNode("",!0),!n.hasNaN[s]&&a.isSort&&a.type!==n.constants.DATE?(p.openBlock(),p.createElementBlock("button",{key:2,onClick:o=>i.sortTh(s,o),class:p.normalizeClass({"th-button-active":[n.constants.DESC,n.constants.ASC].includes(n.sorts[s])})},[n.sorts[s]===n.constants.ASC?(p.openBlock(),p.createElementBlock("span",{key:0,innerHTML:[n.constants.NUMERIC].includes(a.type)?i.icons.sort09:i.icons.sortZA},null,8,_P)):n.sorts[s]===n.constants.DESC?(p.openBlock(),p.createElementBlock("span",{key:1,innerHTML:[n.constants.NUMERIC].includes(a.type)?i.icons.sort90:i.icons.sortAZ},null,8,TP)):(p.openBlock(),p.createElementBlock("span",{key:2,innerHTML:i.icons.arrowSort},null,8,UP))],10,SP)):p.createCommentVNode("",!0),a.isMultiselect?(p.openBlock(),p.createElementBlock("button",{key:3,onClick:o=>i.toggleMultiselect(s,a,o),innerHTML:i.icons.filter,class:p.normalizeClass({"th-button-active":n.multiselects[s]&&n.multiselects[s].length!==i.getDropdownOptions(s).length})},null,10,IP)):p.createCommentVNode("",!0),n.currentSelectionSpan.col===s&&i.canChart?(p.openBlock(),p.createElementBlock("button",{key:4,onClick:e[5]||(e[5]=o=>n.showChart=!n.showChart),innerHTML:i.icons.chart,class:p.normalizeClass({"th-button-active":n.showChart})},null,10,LP)):p.createCommentVNode("",!0),a.rangeFilter&&n.rangeFilters[s]&&!n.hasNaN[s]?(p.openBlock(),p.createElementBlock("div",NP,[p.createElementVNode("label",{for:`rangeMin${s}`},[OP,p.createTextVNode(" min "),kP],8,QP),p.withDirectives(p.createElementVNode("input",{type:"number",id:`rangeMin${s}`,max:n.immutableRangeFilters[s].max,min:n.immutableRangeFilters[s].min,"onUpdate:modelValue":o=>n.rangeFilters[s].min=o,onInput:e[6]||(e[6]=o=>i.debounce(i.filterBody,400))},null,40,DP),[[p.vModelText,n.rangeFilters[s].min,void 0,{number:!0}]]),p.withDirectives(p.createElementVNode("input",{type:"number",id:`rangeMax${s}`,max:n.immutableRangeFilters[s].max,min:n.immutableRangeFilters[s].min,"onUpdate:modelValue":o=>n.rangeFilters[s].max=o,onInput:e[7]||(e[7]=o=>i.debounce(i.filterBody,400))},null,40,PP),[[p.vModelText,n.rangeFilters[s].max,void 0,{number:!0}]]),p.createElementVNode("label",{for:`rangeMax${s}`},[MP,p.createTextVNode(" max "),HP],8,RP)])):p.createCommentVNode("",!0),i.canResetColumn(s,a)?(p.openBlock(),p.createElementBlock("button",{key:6,onClick:o=>i.resetFilter(s,a,o),disabled:i.isResetDisabled(s,a),class:"th-reset"}," ✖ ",8,VP)):p.createCommentVNode("",!0),a.isMultiselect?(p.openBlock(),p.createElementBlock("div",{key:7,class:"th-dropdown","data-is-open":"false",id:`th_dropdown_${s}`},[p.createElementVNode("button",{class:"close-dropdown",onClick:o=>i.toggleMultiselect(s,a,o)}," ✖ ",8,GP),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.getDropdownOptions(s),(o,l)=>(p.openBlock(),p.createElementBlock("span",{class:"th-option",key:`th_option_${s}_${l}`,onClick:c=>i.selectDropdownOption(o,s),onKeyup:[p.withKeys(c=>i.selectDropdownOption(o,s),["enter"]),p.withKeys(c=>i.selectDropdownOption(o,s),["space"])],style:p.normalizeStyle(`opacity:${i.isDropdownOptionSelected(o,s)?1:.5}`),tabindex:"0"},[i.isDropdownOptionSelected(o,s)?(p.openBlock(),p.createElementBlock("span",WP," ✔ ")):(p.openBlock(),p.createElementBlock("span",zP," ✖ ")),p.createElementVNode("span",null,p.toDisplayString(o),1)],44,jP))),128))],8,KP)):p.createCommentVNode("",!0)])],2))),128))])],64)):p.createCommentVNode("",!0),p.createElementVNode("tr",null,[XP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`col_selector_${s}`,class:p.normalizeClass({"smart-table-col-selector":!n.hasNaN[s],"col-selector--selected":s===n.selectedColumn&&!n.hasNaN[s],"th-has-nan":n.hasNaN[s]})},[n.hasNaN[s]?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:0,innerHTML:n.tableHead[s].type===n.constants.NUMERIC?i.icons.chevronDown:"",class:p.normalizeClass({"col-selector":n.tableHead[s].type===n.constants.NUMERIC}),tabindex:"0",onClick:p.withModifiers(o=>i.selectColumn(s),["stop"]),onKeyup:p.withKeys(o=>i.selectColumn(s),["enter"])},null,42,qP))],2))),128))])]),p.createElementVNode("tbody",{onClick:e[8]||(e[8]=(...a)=>i.closeAllDropdowns&&i.closeAllDropdowns(...a)),onKeydown:e[9]||(e[9]=a=>i.navigateCell(a))},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.visibleRows,(a,s)=>(p.openBlock(),p.createElementBlock("tr",{key:`tbody_${s}`},[p.createElementVNode("td",YP,p.toDisplayString(a.absoluteIndex+1),1),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.td,(o,l)=>(p.openBlock(),p.createElementBlock("td",{key:`td_${s}_${l}`,style:p.normalizeStyle(i.isNumeric(o)||r.header[l].type===n.constants.DATE?"text-align:right;font-variant-numeric: tabular-nums;":""),onClick:c=>i.selectTd({td:o,rowIndex:s,colIndex:l,headerType:r.header[l].type,event:c}),onKeyup:[p.withKeys(c=>i.selectTd({td:o,rowIndex:s,colIndex:l,headerType:r.header[l].type,event:c}),["enter"]),p.withKeys(c=>i.selectTd({td:o,rowIndex:s,colIndex:l,headerType:r.header[l].type,event:c}),["space"])],class:p.normalizeClass({"td-numeric":r.header[l].type===n.constants.NUMERIC,"td-focusable":!0,"td-has-nan":n.hasNaN[l]}),id:`cell_${s}_${l}`,tabindex:"0"},[a.meta&&a.meta.markerIndices.includes(l)&&a.meta.unicodeIcon?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(`color:${a.meta.color};margin-right:3px`),innerHTML:a.meta.unicodeIcon},null,12,JP)):p.createCommentVNode("",!0),r.header[l].type===n.constants.DATE?(p.openBlock(),p.createElementBlock("span",ZP,p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(new Date(o).toLocaleString().slice(0,10))+" "+p.toDisplayString(r.header[l].suffix),1)):r.header[l].isPercentage?(p.openBlock(),p.createElementBlock("span",e7,p.toDisplayString(Number((o*100).toFixed(r.header[l].decimals)).toLocaleString())+"% ",1)):n.percentages[l]&&r.header[l].percentageTo&&!r.header[l].isPercentage?(p.openBlock(),p.createElementBlock("span",{key:3,class:p.normalizeClass({"td-nan":isNaN(Number(o))})},p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(isNaN(Number(o))?`${o} is not ${n.constants.NUMERIC}`:Number(o.toFixed(r.header[l].decimals)).toLocaleString())+" "+p.toDisplayString(r.header[l].suffix)+" ("+p.toDisplayString(isNaN(Number(o))?"":Number((o/i.getSum(n.percentages[l].referenceIndex)*100).toFixed(r.header[l].decimals)).toLocaleString())+"%) ",3)):r.header[l].type===n.constants.NUMERIC?(p.openBlock(),p.createElementBlock("span",{key:4,class:p.normalizeClass({"td-nan":isNaN(Number(o))})},p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(isNaN(Number(o))?`${o} is not ${n.constants.NUMERIC}`:Number(o.toFixed(r.header[l].decimals)).toLocaleString())+" "+p.toDisplayString(r.header[l].suffix),3)):(p.openBlock(),p.createElementBlock("span",t7,p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(o)+" "+p.toDisplayString(r.header[l].suffix),1))],46,$P))),128))]))),128))],32)])],4),p.createElementVNode("div",{class:p.normalizeClass({"td-selector-info":!0,"td-selector-info--active":n.currentSelectionSpan.col!==void 0&&n.currentSelectionSpan.rows.length})},[n.currentSelectionSpan.col!==void 0&&n.currentSelectionSpan.rows.length?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("div",{innerHTML:i.icons.table,class:"td-selector-icon"},null,8,r7),p.createElementVNode("span",null,[p.createElementVNode("b",null,[p.createTextVNode(p.toDisplayString(r.header[n.currentSelectionSpan.col].name)+" ",1),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("span",A7," / "+p.toDisplayString(r.header[n.percentages[n.currentSelectionSpan.col].referenceIndex].name),1)):p.createCommentVNode("",!0)]),p.createElementVNode("span",n7,[p.createTextVNode(p.toDisplayString(r.translations.nb)+" : ",1),p.createElementVNode("b",i7,p.toDisplayString(n.currentSelectionSpan.rows.length),1)]),p.createElementVNode("span",a7,[p.createTextVNode(p.toDisplayString(r.translations.sum)+" : ",1),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",s7,p.toDisplayString(i.selectedCellsCalculations.sumPercentage),1)):(p.openBlock(),p.createElementBlock("b",o7,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.selectedCellsCalculations.sumRegular)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1)),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",l7,"%")):p.createCommentVNode("",!0)]),p.createElementVNode("span",c7,[p.createTextVNode(p.toDisplayString(r.translations.average)+" : ",1),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",f7,p.toDisplayString(i.selectedCellsCalculations.averagePercentage),1)):(p.openBlock(),p.createElementBlock("b",u7,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.selectedCellsCalculations.averageRegular)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1)),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",h7,"%")):p.createCommentVNode("",!0)])]),p.createElementVNode("button",{onClick:e[10]||(e[10]=(...a)=>i.resetSelection&&i.resetSelection(...a)),class:"td-selector-info-reset"}," ✖ ")],64)):p.createCommentVNode("",!0)],2),n.bodyCopy.length>10?(p.openBlock(),p.createElementBlock("div",d7,[p.createTextVNode(p.toDisplayString(r.translations.totalRows)+" : "+p.toDisplayString(r.body.length)+" | "+p.toDisplayString(r.translations.paginatorLabel)+" : ",1),n.bodyCopy.length>10?p.withDirectives((p.openBlock(),p.createElementBlock("select",{key:0,id:"paginatorSelector","onUpdate:modelValue":e[11]||(e[11]=a=>n.itemsPerPage=a),onChange:e[12]||(e[12]=(...a)=>i.resetSelection&&i.resetSelection(...a))},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.paginatorOptions,(a,s)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[n.bodyCopy.length>a||r.body.length===a?(p.openBlock(),p.createElementBlock("option",{key:`paginator_option_${s}`},p.toDisplayString(a),1)):p.createCommentVNode("",!0)],64))),256))],544)),[[p.vModelSelect,n.itemsPerPage,void 0,{number:!0}]]):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0),n.itemsPerPage>=250?(p.openBlock(),p.createElementBlock("div",g7,[p.createElementVNode("span",{innerHTML:i.icons.warning},null,8,p7),p.createTextVNode(p.toDisplayString(r.translations.sizeWarning),1)])):p.createCommentVNode("",!0),i.pages.length>1&&i.pages.length<=10?(p.openBlock(),p.createElementBlock("div",{key:2,class:"smart-table-navigation-indicator",style:p.normalizeStyle(`width:calc(${n.currentPage/(i.pages.length-1)*100}%)`)},null,4)):p.createCommentVNode("",!0),i.pages.length>1?(p.openBlock(),p.createElementBlock("div",v7,[p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[13]||(e[13]=p.withModifiers(a=>i.navigate("previous"),["stop"])),innerHTML:i.icons.chevronLeft,disabled:n.currentPage===0},null,8,m7),i.pages.length>3?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[14]||(e[14]=p.withModifiers(a=>i.navigate(1),["stop"])),disabled:n.currentPage===0}," 1 ",8,w7),i.pages.length>10?(p.openBlock(),p.createElementBlock("div",B7,[p.createElementVNode("label",x7,p.toDisplayString(r.translations.page)+" "+p.toDisplayString(n.currentPage+1)+" / "+p.toDisplayString(i.pages.length),1),p.createElementVNode("input",{class:"smart-table-page-scroller",id:"pageScroller",type:"range",step:"1",min:0,max:i.pages.length-1,onInput:e[15]||(e[15]=a=>i.updateCurrentPage(a)),value:n.currentPage},null,40,y7)])):(p.openBlock(),p.createElementBlock("span",C7,p.toDisplayString(r.translations.page)+" "+p.toDisplayString(n.currentPage+1)+" / "+p.toDisplayString(i.pages.length),1)),p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[16]||(e[16]=p.withModifiers(a=>i.navigate(i.pages.length),["stop"])),disabled:n.currentPage===i.pages.length-1},p.toDisplayString(i.pages.length),9,E7)],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createTextVNode(p.toDisplayString(r.translations.page)+" "+p.toDisplayString(n.currentPage+1)+" / "+p.toDisplayString(i.pages.length),1)],64)),p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[17]||(e[17]=p.withModifiers(a=>i.navigate("next"),["stop"])),innerHTML:i.icons.chevronRight,disabled:n.currentPage===i.pages.length-1},null,8,b7)])):p.createCommentVNode("",!0),n.showChart&&i.canChart?(p.openBlock(),p.createElementBlock("div",{key:4,class:"smart-table-chart-modal",style:p.normalizeStyle(`top:${n.clientY}px; left:${n.clientX}px`)},[p.createElementVNode("button",{class:"close-chart-modal",onClick:e[18]||(e[18]=a=>n.showChart=!1)}," ✖ "),p.createElementVNode("div",F7,[i.availableDonutCategories.length?(p.openBlock(),p.createElementBlock("button",{key:0,onClick:e[19]||(e[19]=a=>n.showDonutOptions=!0),innerHTML:i.icons.donut,class:p.normalizeClass({"is-active-chart":n.chart.type===n.constants.DONUT||n.showDonutOptions})},null,10,S7)):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:e[20]||(e[20]=a=>{n.chart.type=n.constants.LINE,n.showDonutOptions=!1}),innerHTML:i.icons.chart,class:p.normalizeClass({"is-active-chart":n.chart.type===n.constants.LINE&&!n.showDonutOptions})},null,10,_7),p.createElementVNode("button",{onClick:e[21]||(e[21]=a=>{n.chart.type=n.constants.BAR,n.showDonutOptions=!1}),innerHTML:i.icons.bar,class:p.normalizeClass({"is-active-chart":n.chart.type===n.constants.BAR&&!n.showDonutOptions})},null,10,T7)]),p.createElementVNode("div",U7,[p.createElementVNode("b",null,[p.createTextVNode(p.toDisplayString(r.header[n.currentSelectionSpan.col].name)+" ",1),r.header[n.currentSelectionSpan.col].isPercentage&&r.header[n.currentSelectionSpan.col].percentageTo?(p.openBlock(),p.createElementBlock("span",I7," / "+p.toDisplayString(r.header[n.percentages[n.currentSelectionSpan.col].referenceIndex].name),1)):p.createCommentVNode("",!0),n.chart.type===n.constants.DONUT&&n.selectedDonutCategory&&n.selectedDonutCategory.name?(p.openBlock(),p.createElementBlock("span",L7,p.toDisplayString(r.translations.by)+" "+p.toDisplayString(n.selectedDonutCategory.name),1)):p.createCommentVNode("",!0)])]),p.createElementVNode("div",N7,[n.showDonutOptions&&i.availableDonutCategories.length?(p.openBlock(),p.createElementBlock("div",Q7,[p.createElementVNode("fieldset",O7,[p.createElementVNode("legend",null,p.toDisplayString(r.translations.chooseCategoryColumn),1),p.createElementVNode("div",k7,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.availableDonutCategories,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`donut_radio_${s}`,class:"smart-table-fieldset-option"},[p.createElementVNode("input",{type:"radio",name:a.name,id:a.name,checked:n.selectedDonutCategory&&a.name===n.selectedDonutCategory.name,onInput:o=>n.selectedDonutCategory=i.availableDonutCategories[s]},null,40,D7),p.createElementVNode("label",{for:a.name},p.toDisplayString(a.name),9,P7)]))),128))]),p.createElementVNode("button",{class:"smart-table-generate-donut",disabled:!n.selectedDonutCategory,onClick:e[22]||(e[22]=(...a)=>i.applyDonutOption&&i.applyDonutOption(...a))},[p.createElementVNode("div",{style:{"margin-bottom":"-3px"},innerHTML:i.icons.donut},null,8,M7),p.createTextVNode(" "+p.toDisplayString(r.translations.makeDonut),1)],8,R7)])])):p.createCommentVNode("",!0),[n.constants.BAR,n.constants.LINE].includes(n.chart.type)&&!n.showDonutOptions?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[(p.openBlock(),p.createElementBlock("svg",{viewBox:`0 0 ${n.chart.width} ${n.chart.height}`,class:"smart-table-chart-svg"},[V7,p.createElementVNode("g",null,[p.createElementVNode("line",{x1:0,x2:n.chart.width,y1:i.chartData.zero,y2:i.chartData.zero,stroke:"#ccd1d4","stroke-width":"2","stroke-linecap":"round"},null,8,K7),p.createElementVNode("line",{x1:0,x2:0,y1:0,y2:n.chart.height,stroke:"#ccd1d4","stroke-width":"2","stroke-linecap":"round"},null,8,G7)]),n.chart.type===n.constants.LINE?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(i.chartData.plots,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`trap_fill_${s}`},[p.createElementVNode("rect",{x:s*i.chartData.slot,y:0,width:i.chartData.slot,height:n.chart.height,fill:n.selectedPlot===s?"rgba(0,0,0,0.03)":"transparent"},null,8,j7)]))),128)):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.chartData.plots,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`plot_${s}`},[n.chart.type===n.constants.BAR?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[W7,p.createElementVNode("rect",{x:a.x-i.chartData.slot/2,y:i.calcRectY(a.value,a.y),height:a.value>=0?i.chartData.zero-a.y:a.y-i.chartData.zero,width:i.chartData.slot,fill:n.selectedPlot===s?a.value>=0?"url(#barGradientSelected)":"url(#barGradientSelectedNeg)":(a.value>=0,"url(#barGradient)"),stroke:"white","stroke-width":"1"},null,8,z7),n.selectedPlot===s?(p.openBlock(),p.createElementBlock("foreignObject",{key:0,x:a.x-(i.chartData.slot<100?50:i.chartData.slot/2),y:a.value>=0?a.y-32:a.y+4,height:"20",width:i.chartData.slot<100?100:i.chartData.slot,style:{overflow:"visible"}},[p.createElementVNode("div",q7,p.toDisplayString(a.prefix)+" "+p.toDisplayString(Number(a.value.toFixed(r.header[n.currentSelectionSpan.col].decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix),1)],8,X7)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),n.chart.type===n.constants.LINE?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[s+1<i.chartData.plots.length?(p.openBlock(),p.createElementBlock("line",{key:0,x1:a.x,y1:a.y,x2:i.chartData.plots[s+1].x,y2:i.chartData.plots[s+1].y,"stroke-width":"3",stroke:"#6376DD75"},null,8,Y7)):p.createCommentVNode("",!0),n.selectedPlot===s?(p.openBlock(),p.createElementBlock("line",{key:1,x1:a.x,y1:a.y,x2:a.x,y2:n.chart.height,stroke:"grey","stroke-width":"1","stroke-dasharray":"3"},null,8,$7)):p.createCommentVNode("",!0),p.createElementVNode("circle",{cx:a.x,cy:a.y,r:n.selectedPlot===s?6:4,fill:"#22348f",stroke:"white","stroke-width":"1"},null,8,J7),n.selectedPlot===s?(p.openBlock(),p.createElementBlock("foreignObject",{key:2,x:a.x-(i.chartData.slot<100?50:i.chartData.slot/2),y:i.placeLabelOnTopOrBottom({previousPlot:i.chartData.plots[s-1],currentPlot:a,nextPlot:i.chartData.plots[s+1]}),height:"20",width:i.chartData.slot<100?100:i.chartData.slot,style:{overflow:"visible"}},[p.createElementVNode("div",eR,p.toDisplayString(a.prefix)+" "+p.toDisplayString(Number(a.value.toFixed(r.header[n.currentSelectionSpan.col].decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix),1)],8,Z7)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.chartData.plots,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`trap_${s}`},[p.createElementVNode("rect",{x:s*i.chartData.slot,y:0,width:i.chartData.slot,height:n.chart.height,fill:"transparent",onMouseenter:o=>n.selectedPlot=s,onMouseleave:e[23]||(e[23]=o=>n.selectedPlot=void 0)},null,40,tR)]))),128)),i.chartData.progression&&i.chartData.plots.length>2?(p.openBlock(),p.createElementBlock("line",{key:1,x1:i.chartData.progression.x1,y1:i.chartData.progression.y1,x2:i.chartData.progression.x2,y2:i.chartData.progression.y2,stroke:"grey","stroke-width":"2","stroke-dasharray":"4","marker-end":"url(#arrowhead)"},null,8,rR)):p.createCommentVNode("",!0)],8,H7)),i.chartData.plots.length>=2?(p.openBlock(),p.createElementBlock("div",AR,[nR,p.createTextVNode(" Trend: "),p.createElementVNode("span",null,p.toDisplayString(i.chartData.progression.slope<0?"+":"-"),1),p.createTextVNode(" "+p.toDisplayString((Math.abs(i.chartData.progression.slope)*100).toFixed(1))+" % ",1)])):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),[n.constants.DONUT].includes(n.chart.type)&&!n.showDonutOptions?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[(p.openBlock(),p.createElementBlock("svg",iR,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.currentDonut,(a,s)=>(p.openBlock(),p.createElementBlock("path",{key:`arc_${s}`,d:a.path,stroke:`${a.color}CC`,"stroke-width":20,fill:"none"},null,8,aR))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.currentDonut,(a,s)=>(p.openBlock(),p.createElementBlock("foreignObject",{key:`text_marker_${s}`,x:i.calcDonutMarkerLabelPositionX(a)-15,y:a.center.endY-15,height:"30",width:"30",style:{overflow:"visible",display:"flex","align-items":"center","justify-content":"center"}},[i.isArcBigEnough(a)?(p.openBlock(),p.createElementBlock("div",oR,[p.createElementVNode("b",null,p.toDisplayString(i.displayArcPercentage(a,n.currentDonut)),1),p.createElementVNode("span",lR,p.toDisplayString(a.name),1)])):p.createCommentVNode("",!0)],8,sR))),128)),p.createElementVNode("text",cR,p.toDisplayString(r.translations.total),1),p.createElementVNode("text",fR,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.donutHollowLabels.total)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].isPercentage?"%":"")+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1),p.createElementVNode("text",uR,p.toDisplayString(r.translations.average),1),p.createElementVNode("text",hR,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.donutHollowLabels.average)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].isPercentage?"%":"")+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1)])),p.createElementVNode("div",dR,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.currentDonut.filter(a=>a.value>0),(a,s)=>(p.openBlock(),p.createElementBlock("div",{class:"smart-table-donut-legend-item",key:`donut_legend_${s}`},[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}`)},"●",4),p.createElementVNode("span",null,p.toDisplayString(a.name)+" : ",1),p.createElementVNode("b",null,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.getDonutLegendValue(a.absoluteValue))+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].isPercentage?"%":"")+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1),p.createElementVNode("span",null,"("+p.toDisplayString((a.proportion*100).toFixed(1))+"%)",1)]))),128))])],64)):p.createCommentVNode("",!0)],512)],4)):p.createCommentVNode("",!0)],4)}const pR=H5(MD,[["render",gR],["__scopeId","data-v-cfc38e10"]]);/*! @license DOMPurify 2.4.7 | (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.7/LICENSE */function Ta(t){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(t)}function Bd(t,e){return Bd=Object.setPrototypeOf||function(A,n){return A.__proto__=n,A},Bd(t,e)}function vR(){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 k0(t,e,r){return vR()?k0=Reflect.construct:k0=function(n,i,a){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),l=new o;return a&&Bd(l,a.prototype),l},k0.apply(null,arguments)}function zn(t){return mR(t)||wR(t)||BR(t)||xR()}function mR(t){if(Array.isArray(t))return xd(t)}function wR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function BR(t,e){if(t){if(typeof t=="string")return xd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xd(t,e)}}function xd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,A=new Array(e);r<e;r++)A[r]=t[r];return A}function xR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
374
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yR=Object.hasOwnProperty,V5=Object.setPrototypeOf,CR=Object.isFrozen,ER=Object.getPrototypeOf,bR=Object.getOwnPropertyDescriptor,KA=Object.freeze,Xn=Object.seal,FR=Object.create,K5=typeof Reflect<"u"&&Reflect,D0=K5.apply,yd=K5.construct;D0||(D0=function(e,r,A){return e.apply(r,A)}),KA||(KA=function(e){return e}),Xn||(Xn=function(e){return e}),yd||(yd=function(e,r){return k0(e,zn(r))});var SR=Tn(Array.prototype.forEach),G5=Tn(Array.prototype.pop),Jl=Tn(Array.prototype.push),P0=Tn(String.prototype.toLowerCase),Cd=Tn(String.prototype.toString),_R=Tn(String.prototype.match),qn=Tn(String.prototype.replace),TR=Tn(String.prototype.indexOf),UR=Tn(String.prototype.trim),GA=Tn(RegExp.prototype.test),Ed=IR(TypeError);function Tn(t){return function(e){for(var r=arguments.length,A=new Array(r>1?r-1:0),n=1;n<r;n++)A[n-1]=arguments[n];return D0(t,e,A)}}function IR(t){return function(){for(var e=arguments.length,r=new Array(e),A=0;A<e;A++)r[A]=arguments[A];return yd(t,r)}}function kt(t,e,r){var A;r=(A=r)!==null&&A!==void 0?A:P0,V5&&V5(t,null);for(var n=e.length;n--;){var i=e[n];if(typeof i=="string"){var a=r(i);a!==i&&(CR(e)||(e[n]=a),i=a)}t[i]=!0}return t}function ps(t){var e=FR(null),r;for(r in t)D0(yR,t,[r])===!0&&(e[r]=t[r]);return e}function R0(t,e){for(;t!==null;){var r=bR(t,e);if(r){if(r.get)return Tn(r.get);if(typeof r.value=="function")return Tn(r.value)}t=ER(t)}function A(n){return console.warn("fallback value for",n),null}return A}var j5=KA(["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"]),bd=KA(["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"]),Fd=KA(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),LR=KA(["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"]),Sd=KA(["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"]),NR=KA(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W5=KA(["#text"]),z5=KA(["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"]),_d=KA(["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"]),X5=KA(["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"]),M0=KA(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),QR=Xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),OR=Xn(/<%[\w\W]*|[\w\W]*%>/gm),kR=Xn(/\${[\w\W]*}/gm),DR=Xn(/^data-[\-\w.\u00B7-\uFFFF]/),PR=Xn(/^aria-[\-\w]+$/),RR=Xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),MR=Xn(/^(?:\w+script|data):/i),HR=Xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),VR=Xn(/^html$/i),KR=function(){return typeof window>"u"?null:window},GR=function(e,r){if(Ta(e)!=="object"||typeof e.createPolicy!="function")return null;var A=null,n="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(n)&&(A=r.currentScript.getAttribute(n));var i="dompurify"+(A?"#"+A:"");try{return e.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function q5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KR(),e=function(H){return q5(H)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,A=t.document,n=t.DocumentFragment,i=t.HTMLTemplateElement,a=t.Node,s=t.Element,o=t.NodeFilter,l=t.NamedNodeMap,c=l===void 0?t.NamedNodeMap||t.MozNamedAttrMap:l,h=t.HTMLFormElement,d=t.DOMParser,u=t.trustedTypes,w=s.prototype,v=R0(w,"cloneNode"),x=R0(w,"nextSibling"),y=R0(w,"childNodes"),E=R0(w,"parentNode");if(typeof i=="function"){var F=A.createElement("template");F.content&&F.content.ownerDocument&&(A=F.content.ownerDocument)}var k=GR(u,r),X=k?k.createHTML(""):"",q=A,N=q.implementation,Q=q.createNodeIterator,K=q.createDocumentFragment,Ae=q.getElementsByTagName,U=r.importNode,T={};try{T=ps(A).documentMode?A.documentMode:{}}catch{}var V={};e.isSupported=typeof E=="function"&&N&&N.createHTMLDocument!==void 0&&T!==9;var Y=QR,ce=OR,he=kR,me=DR,ge=PR,we=MR,Be=HR,ke=RR,C=null,_=kt({},[].concat(zn(j5),zn(bd),zn(Fd),zn(Sd),zn(W5))),S=null,O=kt({},[].concat(zn(z5),zn(_d),zn(X5),zn(M0))),W=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}})),ie=null,oe=null,le=!0,ye=!0,Ne=!1,Re=!0,Xe=!1,qe=!1,_e=!1,re=!1,Qe=!1,rt=!1,Me=!1,We=!0,$e=!1,Je="user-content-",st=!0,nt=!1,ht={},mt=null,_t=kt({},["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"]),Ut=null,dt=kt({},["audio","video","img","source","image","track"]),yt=null,tt=kt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nr="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",fr="http://www.w3.org/1999/xhtml",Qt=fr,Kt=!1,qr=null,Pt=kt({},[nr,It,fr],Cd),Er,qt=["application/xhtml+xml","text/html"],rA="text/html",bt,Gt=null,Ct=A.createElement("form"),Ht=function(H){return H instanceof RegExp||H instanceof Function},gn=function(H){Gt&&Gt===H||((!H||Ta(H)!=="object")&&(H={}),H=ps(H),Er=qt.indexOf(H.PARSER_MEDIA_TYPE)===-1?Er=rA:Er=H.PARSER_MEDIA_TYPE,bt=Er==="application/xhtml+xml"?Cd:P0,C="ALLOWED_TAGS"in H?kt({},H.ALLOWED_TAGS,bt):_,S="ALLOWED_ATTR"in H?kt({},H.ALLOWED_ATTR,bt):O,qr="ALLOWED_NAMESPACES"in H?kt({},H.ALLOWED_NAMESPACES,Cd):Pt,yt="ADD_URI_SAFE_ATTR"in H?kt(ps(tt),H.ADD_URI_SAFE_ATTR,bt):tt,Ut="ADD_DATA_URI_TAGS"in H?kt(ps(dt),H.ADD_DATA_URI_TAGS,bt):dt,mt="FORBID_CONTENTS"in H?kt({},H.FORBID_CONTENTS,bt):_t,ie="FORBID_TAGS"in H?kt({},H.FORBID_TAGS,bt):{},oe="FORBID_ATTR"in H?kt({},H.FORBID_ATTR,bt):{},ht="USE_PROFILES"in H?H.USE_PROFILES:!1,le=H.ALLOW_ARIA_ATTR!==!1,ye=H.ALLOW_DATA_ATTR!==!1,Ne=H.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=H.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Xe=H.SAFE_FOR_TEMPLATES||!1,qe=H.WHOLE_DOCUMENT||!1,Qe=H.RETURN_DOM||!1,rt=H.RETURN_DOM_FRAGMENT||!1,Me=H.RETURN_TRUSTED_TYPE||!1,re=H.FORCE_BODY||!1,We=H.SANITIZE_DOM!==!1,$e=H.SANITIZE_NAMED_PROPS||!1,st=H.KEEP_CONTENT!==!1,nt=H.IN_PLACE||!1,ke=H.ALLOWED_URI_REGEXP||ke,Qt=H.NAMESPACE||fr,W=H.CUSTOM_ELEMENT_HANDLING||{},H.CUSTOM_ELEMENT_HANDLING&&Ht(H.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=H.CUSTOM_ELEMENT_HANDLING.tagNameCheck),H.CUSTOM_ELEMENT_HANDLING&&Ht(H.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=H.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),H.CUSTOM_ELEMENT_HANDLING&&typeof H.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=H.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xe&&(ye=!1),rt&&(Qe=!0),ht&&(C=kt({},zn(W5)),S=[],ht.html===!0&&(kt(C,j5),kt(S,z5)),ht.svg===!0&&(kt(C,bd),kt(S,_d),kt(S,M0)),ht.svgFilters===!0&&(kt(C,Fd),kt(S,_d),kt(S,M0)),ht.mathMl===!0&&(kt(C,Sd),kt(S,X5),kt(S,M0))),H.ADD_TAGS&&(C===_&&(C=ps(C)),kt(C,H.ADD_TAGS,bt)),H.ADD_ATTR&&(S===O&&(S=ps(S)),kt(S,H.ADD_ATTR,bt)),H.ADD_URI_SAFE_ATTR&&kt(yt,H.ADD_URI_SAFE_ATTR,bt),H.FORBID_CONTENTS&&(mt===_t&&(mt=ps(mt)),kt(mt,H.FORBID_CONTENTS,bt)),st&&(C["#text"]=!0),qe&&kt(C,["html","head","body"]),C.table&&(kt(C,["tbody"]),delete ie.tbody),KA&&KA(H),Gt=H)},Ir=kt({},["mi","mo","mn","ms","mtext"]),WA=kt({},["foreignobject","desc","title","annotation-xml"]),en=kt({},["title","style","font","a","script"]),gt=kt({},bd);kt(gt,Fd),kt(gt,LR);var yA=kt({},Sd);kt(yA,NR);var QA=function(H){var de=E(H);(!de||!de.tagName)&&(de={namespaceURI:Qt,tagName:"template"});var Se=P0(H.tagName),Ke=P0(de.tagName);return qr[H.namespaceURI]?H.namespaceURI===It?de.namespaceURI===fr?Se==="svg":de.namespaceURI===nr?Se==="svg"&&(Ke==="annotation-xml"||Ir[Ke]):!!gt[Se]:H.namespaceURI===nr?de.namespaceURI===fr?Se==="math":de.namespaceURI===It?Se==="math"&&WA[Ke]:!!yA[Se]:H.namespaceURI===fr?de.namespaceURI===It&&!WA[Ke]||de.namespaceURI===nr&&!Ir[Ke]?!1:!yA[Se]&&(en[Se]||!gt[Se]):!!(Er==="application/xhtml+xml"&&qr[H.namespaceURI]):!1},gr=function(H){Jl(e.removed,{element:H});try{H.parentNode.removeChild(H)}catch{try{H.outerHTML=X}catch{H.remove()}}},Br=function(H,de){try{Jl(e.removed,{attribute:de.getAttributeNode(H),from:de})}catch{Jl(e.removed,{attribute:null,from:de})}if(de.removeAttribute(H),H==="is"&&!S[H])if(Qe||rt)try{gr(de)}catch{}else try{de.setAttribute(H,"")}catch{}},xr=function(H){var de,Se;if(re)H="<remove></remove>"+H;else{var Ke=_R(H,/^[\r\n\t ]+/);Se=Ke&&Ke[0]}Er==="application/xhtml+xml"&&Qt===fr&&(H='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+H+"</body></html>");var Ve=k?k.createHTML(H):H;if(Qt===fr)try{de=new d().parseFromString(Ve,Er)}catch{}if(!de||!de.documentElement){de=N.createDocument(Qt,"template",null);try{de.documentElement.innerHTML=Kt?X:Ve}catch{}}var Ye=de.body||de.documentElement;return H&&Se&&Ye.insertBefore(A.createTextNode(Se),Ye.childNodes[0]||null),Qt===fr?Ae.call(de,qe?"html":"body")[0]:qe?de.documentElement:Ye},D=function(H){return Q.call(H.ownerDocument||H,H,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT,null,!1)},ee=function(H){return H instanceof h&&(typeof H.nodeName!="string"||typeof H.textContent!="string"||typeof H.removeChild!="function"||!(H.attributes instanceof c)||typeof H.removeAttribute!="function"||typeof H.setAttribute!="function"||typeof H.namespaceURI!="string"||typeof H.insertBefore!="function"||typeof H.hasChildNodes!="function")},j=function(H){return Ta(a)==="object"?H instanceof a:H&&Ta(H)==="object"&&typeof H.nodeType=="number"&&typeof H.nodeName=="string"},z=function(H,de,Se){V[H]&&SR(V[H],function(Ke){Ke.call(e,de,Se,Gt)})},Z=function(H){var de;if(z("beforeSanitizeElements",H,null),ee(H)||GA(/[\u0080-\uFFFF]/,H.nodeName))return gr(H),!0;var Se=bt(H.nodeName);if(z("uponSanitizeElement",H,{tagName:Se,allowedTags:C}),H.hasChildNodes()&&!j(H.firstElementChild)&&(!j(H.content)||!j(H.content.firstElementChild))&&GA(/<[/\w]/g,H.innerHTML)&&GA(/<[/\w]/g,H.textContent)||Se==="select"&&GA(/<template/i,H.innerHTML))return gr(H),!0;if(!C[Se]||ie[Se]){if(!ie[Se]&&Ee(Se)&&(W.tagNameCheck instanceof RegExp&&GA(W.tagNameCheck,Se)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Se)))return!1;if(st&&!mt[Se]){var Ke=E(H)||H.parentNode,Ve=y(H)||H.childNodes;if(Ve&&Ke)for(var Ye=Ve.length,ft=Ye-1;ft>=0;--ft)Ke.insertBefore(v(Ve[ft],!0),x(H))}return gr(H),!0}return H instanceof s&&!QA(H)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&GA(/<\/no(script|embed|frames)/i,H.innerHTML)?(gr(H),!0):(Xe&&H.nodeType===3&&(de=H.textContent,de=qn(de,Y," "),de=qn(de,ce," "),de=qn(de,he," "),H.textContent!==de&&(Jl(e.removed,{element:H.cloneNode()}),H.textContent=de)),z("afterSanitizeElements",H,null),!1)},te=function(H,de,Se){if(We&&(de==="id"||de==="name")&&(Se in A||Se in Ct))return!1;if(!(ye&&!oe[de]&&GA(me,de))){if(!(le&&GA(ge,de))){if(!S[de]||oe[de]){if(!(Ee(H)&&(W.tagNameCheck instanceof RegExp&&GA(W.tagNameCheck,H)||W.tagNameCheck instanceof Function&&W.tagNameCheck(H))&&(W.attributeNameCheck instanceof RegExp&&GA(W.attributeNameCheck,de)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(de))||de==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&GA(W.tagNameCheck,Se)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Se))))return!1}else if(!yt[de]){if(!GA(ke,qn(Se,Be,""))){if(!((de==="src"||de==="xlink:href"||de==="href")&&H!=="script"&&TR(Se,"data:")===0&&Ut[H])){if(!(Ne&&!GA(we,qn(Se,Be,"")))){if(Se)return!1}}}}}}return!0},Ee=function(H){return H.indexOf("-")>0},Te=function(H){var de,Se,Ke,Ve;z("beforeSanitizeAttributes",H,null);var Ye=H.attributes;if(Ye){var ft={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S};for(Ve=Ye.length;Ve--;){de=Ye[Ve];var Vt=de,Et=Vt.name,Cr=Vt.namespaceURI;if(Se=Et==="value"?de.value:UR(de.value),Ke=bt(Et),ft.attrName=Ke,ft.attrValue=Se,ft.keepAttr=!0,ft.forceKeepAttr=void 0,z("uponSanitizeAttribute",H,ft),Se=ft.attrValue,!ft.forceKeepAttr&&(Br(Et,H),!!ft.keepAttr)){if(!Re&&GA(/\/>/i,Se)){Br(Et,H);continue}Xe&&(Se=qn(Se,Y," "),Se=qn(Se,ce," "),Se=qn(Se,he," "));var tn=bt(H.nodeName);if(te(tn,Ke,Se)){if($e&&(Ke==="id"||Ke==="name")&&(Br(Et,H),Se=Je+Se),k&&Ta(u)==="object"&&typeof u.getAttributeType=="function"&&!Cr)switch(u.getAttributeType(tn,Ke)){case"TrustedHTML":{Se=k.createHTML(Se);break}case"TrustedScriptURL":{Se=k.createScriptURL(Se);break}}try{Cr?H.setAttributeNS(Cr,Et,Se):H.setAttribute(Et,Se),G5(e.removed)}catch{}}}}z("afterSanitizeAttributes",H,null)}},Ce=function ae(H){var de,Se=D(H);for(z("beforeSanitizeShadowDOM",H,null);de=Se.nextNode();)z("uponSanitizeShadowNode",de,null),!Z(de)&&(de.content instanceof n&&ae(de.content),Te(de));z("afterSanitizeShadowDOM",H,null)};return e.sanitize=function(ae){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de,Se,Ke,Ve,Ye;if(Kt=!ae,Kt&&(ae="<!-->"),typeof ae!="string"&&!j(ae))if(typeof ae.toString=="function"){if(ae=ae.toString(),typeof ae!="string")throw Ed("dirty is not a string, aborting")}else throw Ed("toString is not a function");if(!e.isSupported){if(Ta(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof ae=="string")return t.toStaticHTML(ae);if(j(ae))return t.toStaticHTML(ae.outerHTML)}return ae}if(_e||gn(H),e.removed=[],typeof ae=="string"&&(nt=!1),nt){if(ae.nodeName){var ft=bt(ae.nodeName);if(!C[ft]||ie[ft])throw Ed("root node is forbidden and cannot be sanitized in-place")}}else if(ae instanceof a)de=xr("<!---->"),Se=de.ownerDocument.importNode(ae,!0),Se.nodeType===1&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?de=Se:de.appendChild(Se);else{if(!Qe&&!Xe&&!qe&&ae.indexOf("<")===-1)return k&&Me?k.createHTML(ae):ae;if(de=xr(ae),!de)return Qe?null:Me?X:""}de&&re&&gr(de.firstChild);for(var Vt=D(nt?ae:de);Ke=Vt.nextNode();)Ke.nodeType===3&&Ke===Ve||Z(Ke)||(Ke.content instanceof n&&Ce(Ke.content),Te(Ke),Ve=Ke);if(Ve=null,nt)return ae;if(Qe){if(rt)for(Ye=K.call(de.ownerDocument);de.firstChild;)Ye.appendChild(de.firstChild);else Ye=de;return(S.shadowroot||S.shadowrootmod)&&(Ye=U.call(r,Ye,!0)),Ye}var Et=qe?de.outerHTML:de.innerHTML;return qe&&C["!doctype"]&&de.ownerDocument&&de.ownerDocument.doctype&&de.ownerDocument.doctype.name&&GA(VR,de.ownerDocument.doctype.name)&&(Et="<!DOCTYPE "+de.ownerDocument.doctype.name+`>
|
|
375
|
-
`+Et),Xe&&(Et=qn(Et,Y," "),Et=qn(Et,ce," "),Et=qn(Et,he," ")),k&&Me?k.createHTML(Et):Et},e.setConfig=function(ae){gn(ae),_e=!0},e.clearConfig=function(){Gt=null,_e=!1},e.isValidAttribute=function(ae,H,de){Gt||gn({});var Se=bt(ae),Ke=bt(H);return te(Se,Ke,de)},e.addHook=function(ae,H){typeof H=="function"&&(V[ae]=V[ae]||[],Jl(V[ae],H))},e.removeHook=function(ae){if(V[ae])return G5(V[ae])},e.removeHooks=function(ae){V[ae]&&(V[ae]=[])},e.removeAllHooks=function(){V={}},e}var jR=q5();const WR=Object.freeze(Object.defineProperty({__proto__:null,default:jR},Symbol.toStringTag,{value:"Module"}));var Zl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var H0=function(t){return t&&t.Math==Math&&t},tA=H0(typeof globalThis=="object"&&globalThis)||H0(typeof window=="object"&&window)||H0(typeof self=="object"&&self)||H0(typeof Zl=="object"&&Zl)||function(){return this}()||Zl||Function("return this")(),xo={},Rr=function(t){try{return!!t()}catch{return!0}},zR=Rr,Bi=!zR(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),XR=Rr,V0=!XR(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),qR=V0,K0=Function.prototype.call,xA=qR?K0.bind(K0):function(){return K0.apply(K0,arguments)},$5={},J5={}.propertyIsEnumerable,Z5=Object.getOwnPropertyDescriptor,YR=Z5&&!J5.call({1:2},1);$5.f=YR?function(e){var r=Z5(this,e);return!!r&&r.enumerable}:J5;var G0=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},ex=V0,tx=Function.prototype,Td=tx.call,$R=ex&&tx.bind.bind(Td,Td),Mr=ex?$R:function(t){return function(){return Td.apply(t,arguments)}},rx=Mr,JR=rx({}.toString),ZR=rx("".slice),vs=function(t){return ZR(JR(t),8,-1)},eM=Mr,tM=Rr,rM=vs,Ud=Object,AM=eM("".split),Ax=tM(function(){return!Ud("z").propertyIsEnumerable(0)})?function(t){return rM(t)=="String"?AM(t,""):Ud(t)}:Ud,ms=function(t){return t==null},nM=ms,iM=TypeError,xi=function(t){if(nM(t))throw iM("Can't call method on "+t);return t},aM=Ax,sM=xi,ec=function(t){return aM(sM(t))},Id=typeof document=="object"&&document.all,oM=typeof Id>"u"&&Id!==void 0,nx={all:Id,IS_HTMLDDA:oM},ix=nx,lM=ix.all,Tr=ix.IS_HTMLDDA?function(t){return typeof t=="function"||t===lM}:function(t){return typeof t=="function"},ax=Tr,sx=nx,cM=sx.all,Ki=sx.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:ax(t)||t===cM}:function(t){return typeof t=="object"?t!==null:ax(t)},Ld=tA,fM=Tr,uM=function(t){return fM(t)?t:void 0},ws=function(t,e){return arguments.length<2?uM(Ld[t]):Ld[t]&&Ld[t][e]},hM=Mr,j0=hM({}.isPrototypeOf),W0=typeof navigator<"u"&&String(navigator.userAgent)||"",ox=tA,Nd=W0,lx=ox.process,cx=ox.Deno,fx=lx&&lx.versions||cx&&cx.version,ux=fx&&fx.v8,Yn,z0;ux&&(Yn=ux.split("."),z0=Yn[0]>0&&Yn[0]<4?1:+(Yn[0]+Yn[1])),!z0&&Nd&&(Yn=Nd.match(/Edge\/(\d+)/),(!Yn||Yn[1]>=74)&&(Yn=Nd.match(/Chrome\/(\d+)/),Yn&&(z0=+Yn[1])));var Qd=z0,hx=Qd,dM=Rr,gM=tA,pM=gM.String,dx=!!Object.getOwnPropertySymbols&&!dM(function(){var t=Symbol();return!pM(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&hx&&hx<41}),vM=dx,gx=vM&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mM=ws,wM=Tr,BM=j0,xM=gx,yM=Object,px=xM?function(t){return typeof t=="symbol"}:function(t){var e=mM("Symbol");return wM(e)&&BM(e.prototype,yM(t))},CM=String,X0=function(t){try{return CM(t)}catch{return"Object"}},EM=Tr,bM=X0,FM=TypeError,Gi=function(t){if(EM(t))return t;throw FM(bM(t)+" is not a function")},SM=Gi,_M=ms,yo=function(t,e){var r=t[e];return _M(r)?void 0:SM(r)},Od=xA,kd=Tr,Dd=Ki,TM=TypeError,UM=function(t,e){var r,A;if(e==="string"&&kd(r=t.toString)&&!Dd(A=Od(r,t))||kd(r=t.valueOf)&&!Dd(A=Od(r,t))||e!=="string"&&kd(r=t.toString)&&!Dd(A=Od(r,t)))return A;throw TM("Can't convert object to primitive value")},vx={exports:{}},mx=tA,IM=Object.defineProperty,Pd=function(t,e){try{IM(mx,t,{value:e,configurable:!0,writable:!0})}catch{mx[t]=e}return e},LM=tA,NM=Pd,wx="__core-js_shared__",QM=LM[wx]||NM(wx,{}),Rd=QM,Bx=Rd;(vx.exports=function(t,e){return Bx[t]||(Bx[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.31.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Md=vx.exports,OM=xi,kM=Object,q0=function(t){return kM(OM(t))},DM=Mr,PM=q0,RM=DM({}.hasOwnProperty),$n=Object.hasOwn||function(e,r){return RM(PM(e),r)},MM=Mr,HM=0,VM=Math.random(),KM=MM(1 .toString),xx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+KM(++HM+VM,36)},GM=tA,jM=Md,yx=$n,WM=xx,zM=dx,XM=gx,Co=GM.Symbol,Hd=jM("wks"),qM=XM?Co.for||Co:Co&&Co.withoutSetter||WM,lA=function(t){return yx(Hd,t)||(Hd[t]=zM&&yx(Co,t)?Co[t]:qM("Symbol."+t)),Hd[t]},YM=xA,Cx=Ki,Ex=px,$M=yo,JM=UM,ZM=lA,eH=TypeError,tH=ZM("toPrimitive"),rH=function(t,e){if(!Cx(t)||Ex(t))return t;var r=$M(t,tH),A;if(r){if(e===void 0&&(e="default"),A=YM(r,t,e),!Cx(A)||Ex(A))return A;throw eH("Can't convert object to primitive value")}return e===void 0&&(e="number"),JM(t,e)},AH=rH,nH=px,Vd=function(t){var e=AH(t,"string");return nH(e)?e:e+""},iH=tA,bx=Ki,Kd=iH.document,aH=bx(Kd)&&bx(Kd.createElement),Y0=function(t){return aH?Kd.createElement(t):{}},sH=Bi,oH=Rr,lH=Y0,Fx=!sH&&!oH(function(){return Object.defineProperty(lH("div"),"a",{get:function(){return 7}}).a!=7}),cH=Bi,fH=xA,uH=$5,hH=G0,dH=ec,gH=Vd,pH=$n,vH=Fx,Sx=Object.getOwnPropertyDescriptor;xo.f=cH?Sx:function(e,r){if(e=dH(e),r=gH(r),vH)try{return Sx(e,r)}catch{}if(pH(e,r))return hH(!fH(uH.f,e,r),e[r])};var yi={},mH=Bi,wH=Rr,_x=mH&&wH(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),BH=Ki,xH=String,yH=TypeError,LA=function(t){if(BH(t))return t;throw yH(xH(t)+" is not an object")},CH=Bi,EH=Fx,bH=_x,$0=LA,Tx=Vd,FH=TypeError,Gd=Object.defineProperty,SH=Object.getOwnPropertyDescriptor,jd="enumerable",Wd="configurable",zd="writable";yi.f=CH?bH?function(e,r,A){if($0(e),r=Tx(r),$0(A),typeof e=="function"&&r==="prototype"&&"value"in A&&zd in A&&!A[zd]){var n=SH(e,r);n&&n[zd]&&(e[r]=A.value,A={configurable:Wd in A?A[Wd]:n[Wd],enumerable:jd in A?A[jd]:n[jd],writable:!1})}return Gd(e,r,A)}:Gd:function(e,r,A){if($0(e),r=Tx(r),$0(A),EH)try{return Gd(e,r,A)}catch{}if("get"in A||"set"in A)throw FH("Accessors not supported");return"value"in A&&(e[r]=A.value),e};var _H=Bi,TH=yi,UH=G0,tc=_H?function(t,e,r){return TH.f(t,e,UH(1,r))}:function(t,e,r){return t[e]=r,t},Ux={exports:{}},Xd=Bi,IH=$n,Ix=Function.prototype,LH=Xd&&Object.getOwnPropertyDescriptor,qd=IH(Ix,"name"),NH=qd&&(function(){}).name==="something",QH=qd&&(!Xd||Xd&&LH(Ix,"name").configurable),J0={EXISTS:qd,PROPER:NH,CONFIGURABLE:QH},OH=Mr,kH=Tr,Yd=Rd,DH=OH(Function.toString);kH(Yd.inspectSource)||(Yd.inspectSource=function(t){return DH(t)});var $d=Yd.inspectSource,PH=tA,RH=Tr,Lx=PH.WeakMap,MH=RH(Lx)&&/native code/.test(String(Lx)),HH=Md,VH=xx,Nx=HH("keys"),Jd=function(t){return Nx[t]||(Nx[t]=VH(t))},Zd={},KH=MH,Qx=tA,GH=Ki,jH=tc,eg=$n,tg=Rd,WH=Jd,zH=Zd,Ox="Object already initialized",rg=Qx.TypeError,XH=Qx.WeakMap,Z0,rc,eu,qH=function(t){return eu(t)?rc(t):Z0(t,{})},YH=function(t){return function(e){var r;if(!GH(e)||(r=rc(e)).type!==t)throw rg("Incompatible receiver, "+t+" required");return r}};if(KH||tg.state){var Ci=tg.state||(tg.state=new XH);Ci.get=Ci.get,Ci.has=Ci.has,Ci.set=Ci.set,Z0=function(t,e){if(Ci.has(t))throw rg(Ox);return e.facade=t,Ci.set(t,e),e},rc=function(t){return Ci.get(t)||{}},eu=function(t){return Ci.has(t)}}else{var Eo=WH("state");zH[Eo]=!0,Z0=function(t,e){if(eg(t,Eo))throw rg(Ox);return e.facade=t,jH(t,Eo,e),e},rc=function(t){return eg(t,Eo)?t[Eo]:{}},eu=function(t){return eg(t,Eo)}}var tu={set:Z0,get:rc,has:eu,enforce:qH,getterFor:YH},Ag=Mr,$H=Rr,JH=Tr,ru=$n,ng=Bi,ZH=J0.CONFIGURABLE,e9=$d,kx=tu,t9=kx.enforce,r9=kx.get,Dx=String,Au=Object.defineProperty,A9=Ag("".slice),n9=Ag("".replace),i9=Ag([].join),a9=ng&&!$H(function(){return Au(function(){},"length",{value:8}).length!==8}),s9=String(String).split("String"),o9=Ux.exports=function(t,e,r){A9(Dx(e),0,7)==="Symbol("&&(e="["+n9(Dx(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!ru(t,"name")||ZH&&t.name!==e)&&(ng?Au(t,"name",{value:e,configurable:!0}):t.name=e),a9&&r&&ru(r,"arity")&&t.length!==r.arity&&Au(t,"length",{value:r.arity});try{r&&ru(r,"constructor")&&r.constructor?ng&&Au(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var A=t9(t);return ru(A,"source")||(A.source=i9(s9,typeof e=="string"?e:"")),t};Function.prototype.toString=o9(function(){return JH(this)&&r9(this).source||e9(this)},"toString");var Px=Ux.exports,l9=Tr,c9=yi,f9=Px,u9=Pd,Bs=function(t,e,r,A){A||(A={});var n=A.enumerable,i=A.name!==void 0?A.name:e;if(l9(r)&&f9(r,i,A),A.global)n?t[e]=r:u9(e,r);else{try{A.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=r:c9.f(t,e,{value:r,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return t},Rx={},h9=Math.ceil,d9=Math.floor,g9=Math.trunc||function(e){var r=+e;return(r>0?d9:h9)(r)},p9=g9,nu=function(t){var e=+t;return e!==e||e===0?0:p9(e)},v9=nu,m9=Math.max,w9=Math.min,Mx=function(t,e){var r=v9(t);return r<0?m9(r+e,0):w9(r,e)},B9=nu,x9=Math.min,bo=function(t){return t>0?x9(B9(t),9007199254740991):0},y9=bo,iu=function(t){return y9(t.length)},C9=ec,E9=Mx,b9=iu,Hx=function(t){return function(e,r,A){var n=C9(e),i=b9(n),a=E9(A,i),s;if(t&&r!=r){for(;i>a;)if(s=n[a++],s!=s)return!0}else for(;i>a;a++)if((t||a in n)&&n[a]===r)return t||a||0;return!t&&-1}},Vx={includes:Hx(!0),indexOf:Hx(!1)},F9=Mr,ig=$n,S9=ec,_9=Vx.indexOf,T9=Zd,Kx=F9([].push),Gx=function(t,e){var r=S9(t),A=0,n=[],i;for(i in r)!ig(T9,i)&&ig(r,i)&&Kx(n,i);for(;e.length>A;)ig(r,i=e[A++])&&(~_9(n,i)||Kx(n,i));return n},ag=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],U9=Gx,I9=ag,L9=I9.concat("length","prototype");Rx.f=Object.getOwnPropertyNames||function(e){return U9(e,L9)};var jx={};jx.f=Object.getOwnPropertySymbols;var N9=ws,Q9=Mr,O9=Rx,k9=jx,D9=LA,P9=Q9([].concat),R9=N9("Reflect","ownKeys")||function(e){var r=O9.f(D9(e)),A=k9.f;return A?P9(r,A(e)):r},Wx=$n,M9=R9,H9=xo,V9=yi,K9=function(t,e,r){for(var A=M9(e),n=V9.f,i=H9.f,a=0;a<A.length;a++){var s=A[a];!Wx(t,s)&&!(r&&Wx(r,s))&&n(t,s,i(e,s))}},G9=Rr,j9=Tr,W9=/#|\.prototype\./,Ac=function(t,e){var r=X9[z9(t)];return r==Y9?!0:r==q9?!1:j9(e)?G9(e):!!e},z9=Ac.normalize=function(t){return String(t).replace(W9,".").toLowerCase()},X9=Ac.data={},q9=Ac.NATIVE="N",Y9=Ac.POLYFILL="P",zx=Ac,sg=tA,$9=xo.f,J9=tc,Z9=Bs,eV=Pd,tV=K9,rV=zx,jA=function(t,e){var r=t.target,A=t.global,n=t.stat,i,a,s,o,l,c;if(A?a=sg:n?a=sg[r]||eV(r,{}):a=(sg[r]||{}).prototype,a)for(s in e){if(l=e[s],t.dontCallGetSet?(c=$9(a,s),o=c&&c.value):o=a[s],i=rV(A?s:r+(n?".":"#")+s,t.forced),!i&&o!==void 0){if(typeof l==typeof o)continue;tV(l,o)}(t.sham||o&&o.sham)&&J9(l,"sham",!0),Z9(a,s,l,t)}},AV=vs,nc=typeof process<"u"&&AV(process)=="process",nV=Mr,iV=Gi,aV=function(t,e,r){try{return nV(iV(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}},sV=Tr,oV=String,lV=TypeError,cV=function(t){if(typeof t=="object"||sV(t))return t;throw lV("Can't set "+oV(t)+" as a prototype")},fV=aV,uV=LA,hV=cV,Xx=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=fV(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch{}return function(n,i){return uV(n),hV(i),t?r(n,i):n.__proto__=i,n}}():void 0),dV=yi.f,gV=$n,pV=lA,qx=pV("toStringTag"),og=function(t,e,r){t&&!r&&(t=t.prototype),t&&!gV(t,qx)&&dV(t,qx,{configurable:!0,value:e})},Yx=Px,vV=yi,mV=function(t,e,r){return r.get&&Yx(r.get,e,{getter:!0}),r.set&&Yx(r.set,e,{setter:!0}),vV.f(t,e,r)},wV=ws,BV=mV,xV=lA,yV=Bi,$x=xV("species"),CV=function(t){var e=wV(t);yV&&e&&!e[$x]&&BV(e,$x,{configurable:!0,get:function(){return this}})},EV=j0,bV=TypeError,FV=function(t,e){if(EV(e,t))return t;throw bV("Incorrect invocation")},SV=lA,_V=SV("toStringTag"),Jx={};Jx[_V]="z";var TV=String(Jx)==="[object z]",UV=TV,IV=Tr,au=vs,LV=lA,NV=LV("toStringTag"),QV=Object,OV=au(function(){return arguments}())=="Arguments",kV=function(t,e){try{return t[e]}catch{}},lg=UV?au:function(t){var e,r,A;return t===void 0?"Undefined":t===null?"Null":typeof(r=kV(e=QV(t),NV))=="string"?r:OV?au(e):(A=au(e))=="Object"&&IV(e.callee)?"Arguments":A},DV=Mr,PV=Rr,Zx=Tr,RV=lg,MV=ws,HV=$d,ey=function(){},VV=[],ty=MV("Reflect","construct"),cg=/^\s*(?:class|function)\b/,KV=DV(cg.exec),GV=!cg.exec(ey),ic=function(e){if(!Zx(e))return!1;try{return ty(ey,VV,e),!0}catch{return!1}},ry=function(e){if(!Zx(e))return!1;switch(RV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return GV||!!KV(cg,HV(e))}catch{return!0}};ry.sham=!0;var jV=!ty||PV(function(){var t;return ic(ic.call)||!ic(Object)||!ic(function(){t=!0})||t})?ry:ic,WV=jV,zV=X0,XV=TypeError,qV=function(t){if(WV(t))return t;throw XV(zV(t)+" is not a constructor")},Ay=LA,YV=qV,$V=ms,JV=lA,ZV=JV("species"),ny=function(t,e){var r=Ay(t).constructor,A;return r===void 0||$V(A=Ay(r)[ZV])?e:YV(A)},eK=V0,iy=Function.prototype,ay=iy.apply,sy=iy.call,fg=typeof Reflect=="object"&&Reflect.apply||(eK?sy.bind(ay):function(){return sy.apply(ay,arguments)}),tK=vs,rK=Mr,ac=function(t){if(tK(t)==="Function")return rK(t)},oy=ac,AK=Gi,nK=V0,iK=oy(oy.bind),ug=function(t,e){return AK(t),e===void 0?t:nK?iK(t,e):function(){return t.apply(e,arguments)}},aK=ws,ly=aK("document","documentElement"),sK=Mr,oK=sK([].slice),lK=TypeError,cK=function(t,e){if(t<e)throw lK("Not enough arguments");return t},fK=W0,cy=/(?:ipad|iphone|ipod).*applewebkit/i.test(fK),dn=tA,uK=fg,hK=ug,fy=Tr,dK=$n,uy=Rr,hy=ly,gK=oK,dy=Y0,pK=cK,vK=cy,mK=nc,hg=dn.setImmediate,dg=dn.clearImmediate,wK=dn.process,gg=dn.Dispatch,BK=dn.Function,gy=dn.MessageChannel,xK=dn.String,pg=0,sc={},py="onreadystatechange",oc,xs,vg,mg;uy(function(){oc=dn.location});var wg=function(t){if(dK(sc,t)){var e=sc[t];delete sc[t],e()}},Bg=function(t){return function(){wg(t)}},vy=function(t){wg(t.data)},my=function(t){dn.postMessage(xK(t),oc.protocol+"//"+oc.host)};(!hg||!dg)&&(hg=function(e){pK(arguments.length,1);var r=fy(e)?e:BK(e),A=gK(arguments,1);return sc[++pg]=function(){uK(r,void 0,A)},xs(pg),pg},dg=function(e){delete sc[e]},mK?xs=function(t){wK.nextTick(Bg(t))}:gg&&gg.now?xs=function(t){gg.now(Bg(t))}:gy&&!vK?(vg=new gy,mg=vg.port2,vg.port1.onmessage=vy,xs=hK(mg.postMessage,mg)):dn.addEventListener&&fy(dn.postMessage)&&!dn.importScripts&&oc&&oc.protocol!=="file:"&&!uy(my)?(xs=my,dn.addEventListener("message",vy,!1)):py in dy("script")?xs=function(t){hy.appendChild(dy("script"))[py]=function(){hy.removeChild(this),wg(t)}}:xs=function(t){setTimeout(Bg(t),0)});var wy={set:hg,clear:dg},By=function(){this.head=null,this.tail=null};By.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var xy=By,yK=W0,CK=/ipad|iphone|ipod/i.test(yK)&&typeof Pebble<"u",EK=W0,bK=/web0s(?!.*chrome)/i.test(EK),ys=tA,yy=ug,FK=xo.f,xg=wy.set,SK=xy,_K=cy,TK=CK,UK=bK,yg=nc,Cy=ys.MutationObserver||ys.WebKitMutationObserver,Ey=ys.document,by=ys.process,su=ys.Promise,Fy=FK(ys,"queueMicrotask"),Cg=Fy&&Fy.value,Fo,Eg,bg,ou,Sy;if(!Cg){var lu=new SK,cu=function(){var t,e;for(yg&&(t=by.domain)&&t.exit();e=lu.get();)try{e()}catch(r){throw lu.head&&Fo(),r}t&&t.enter()};!_K&&!yg&&!UK&&Cy&&Ey?(Eg=!0,bg=Ey.createTextNode(""),new Cy(cu).observe(bg,{characterData:!0}),Fo=function(){bg.data=Eg=!Eg}):!TK&&su&&su.resolve?(ou=su.resolve(void 0),ou.constructor=su,Sy=yy(ou.then,ou),Fo=function(){Sy(cu)}):yg?Fo=function(){by.nextTick(cu)}:(xg=yy(xg,ys),Fo=function(){xg(cu)}),Cg=function(t){lu.head||Fo(),lu.add(t)}}var IK=Cg,LK=function(t,e){try{arguments.length==1?console.error(t):console.error(t,e)}catch{}},Fg=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},NK=tA,fu=NK.Promise,_y=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",QK=_y,OK=nc,kK=!QK&&!OK&&typeof window=="object"&&typeof document=="object",DK=tA,lc=fu,PK=Tr,RK=zx,MK=$d,HK=lA,VK=kK,KK=_y,Sg=Qd;lc&&lc.prototype;var GK=HK("species"),_g=!1,Ty=PK(DK.PromiseRejectionEvent),jK=RK("Promise",function(){var t=MK(lc),e=t!==String(lc);if(!e&&Sg===66)return!0;if(!Sg||Sg<51||!/native code/.test(t)){var r=new lc(function(i){i(1)}),A=function(i){i(function(){},function(){})},n=r.constructor={};if(n[GK]=A,_g=r.then(function(){})instanceof A,!_g)return!0}return!e&&(VK||KK)&&!Ty}),cc={CONSTRUCTOR:jK,REJECTION_EVENT:Ty,SUBCLASSING:_g},So={},Uy=Gi,WK=TypeError,zK=function(t){var e,r;this.promise=new t(function(A,n){if(e!==void 0||r!==void 0)throw WK("Bad Promise constructor");e=A,r=n}),this.resolve=Uy(e),this.reject=Uy(r)};So.f=function(t){return new zK(t)};var XK=jA,uu=nc,Ua=tA,_o=xA,Iy=Bs,Ly=Xx,qK=og,YK=CV,$K=Gi,hu=Tr,JK=Ki,ZK=FV,eG=ny,Ny=wy.set,Tg=IK,tG=LK,rG=Fg,AG=xy,Qy=tu,du=fu,Ug=cc,Oy=So,gu="Promise",ky=Ug.CONSTRUCTOR,nG=Ug.REJECTION_EVENT,iG=Ug.SUBCLASSING,Ig=Qy.getterFor(gu),aG=Qy.set,To=du&&du.prototype,Cs=du,pu=To,Dy=Ua.TypeError,Lg=Ua.document,Ng=Ua.process,Qg=Oy.f,sG=Qg,oG=!!(Lg&&Lg.createEvent&&Ua.dispatchEvent),Py="unhandledrejection",lG="rejectionhandled",Ry=0,My=1,cG=2,Og=1,Hy=2,vu,Vy,fG,Ky,Gy=function(t){var e;return JK(t)&&hu(e=t.then)?e:!1},jy=function(t,e){var r=e.value,A=e.state==My,n=A?t.ok:t.fail,i=t.resolve,a=t.reject,s=t.domain,o,l,c;try{n?(A||(e.rejection===Hy&&hG(e),e.rejection=Og),n===!0?o=r:(s&&s.enter(),o=n(r),s&&(s.exit(),c=!0)),o===t.promise?a(Dy("Promise-chain cycle")):(l=Gy(o))?_o(l,o,i,a):i(o)):a(r)}catch(h){s&&!c&&s.exit(),a(h)}},Wy=function(t,e){t.notified||(t.notified=!0,Tg(function(){for(var r=t.reactions,A;A=r.get();)jy(A,t);t.notified=!1,e&&!t.rejection&&uG(t)}))},zy=function(t,e,r){var A,n;oG?(A=Lg.createEvent("Event"),A.promise=e,A.reason=r,A.initEvent(t,!1,!0),Ua.dispatchEvent(A)):A={promise:e,reason:r},!nG&&(n=Ua["on"+t])?n(A):t===Py&&tG("Unhandled promise rejection",r)},uG=function(t){_o(Ny,Ua,function(){var e=t.facade,r=t.value,A=Xy(t),n;if(A&&(n=rG(function(){uu?Ng.emit("unhandledRejection",r,e):zy(Py,e,r)}),t.rejection=uu||Xy(t)?Hy:Og,n.error))throw n.value})},Xy=function(t){return t.rejection!==Og&&!t.parent},hG=function(t){_o(Ny,Ua,function(){var e=t.facade;uu?Ng.emit("rejectionHandled",e):zy(lG,e,t.value)})},Uo=function(t,e,r){return function(A){t(e,A,r)}},Io=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=cG,Wy(t,!0))},kg=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Dy("Promise can't be resolved itself");var A=Gy(e);A?Tg(function(){var n={done:!1};try{_o(A,e,Uo(kg,n,t),Uo(Io,n,t))}catch(i){Io(n,i,t)}}):(t.value=e,t.state=My,Wy(t,!1))}catch(n){Io({done:!1},n,t)}}};if(ky&&(Cs=function(e){ZK(this,pu),$K(e),_o(vu,this);var r=Ig(this);try{e(Uo(kg,r),Uo(Io,r))}catch(A){Io(r,A)}},pu=Cs.prototype,vu=function(e){aG(this,{type:gu,done:!1,notified:!1,parent:!1,reactions:new AG,rejection:!1,state:Ry,value:void 0})},vu.prototype=Iy(pu,"then",function(e,r){var A=Ig(this),n=Qg(eG(this,Cs));return A.parent=!0,n.ok=hu(e)?e:!0,n.fail=hu(r)&&r,n.domain=uu?Ng.domain:void 0,A.state==Ry?A.reactions.add(n):Tg(function(){jy(n,A)}),n.promise}),Vy=function(){var t=new vu,e=Ig(t);this.promise=t,this.resolve=Uo(kg,e),this.reject=Uo(Io,e)},Oy.f=Qg=function(t){return t===Cs||t===fG?new Vy(t):sG(t)},hu(du)&&To!==Object.prototype)){Ky=To.then,iG||Iy(To,"then",function(e,r){var A=this;return new Cs(function(n,i){_o(Ky,A,n,i)}).then(e,r)},{unsafe:!0});try{delete To.constructor}catch{}Ly&&Ly(To,pu)}XK({global:!0,constructor:!0,wrap:!0,forced:ky},{Promise:Cs}),qK(Cs,gu,!1),YK(gu);var fc={},dG=lA,gG=fc,pG=dG("iterator"),vG=Array.prototype,mG=function(t){return t!==void 0&&(gG.Array===t||vG[pG]===t)},wG=lg,qy=yo,BG=ms,xG=fc,yG=lA,CG=yG("iterator"),Yy=function(t){if(!BG(t))return qy(t,CG)||qy(t,"@@iterator")||xG[wG(t)]},EG=xA,bG=Gi,FG=LA,SG=X0,_G=Yy,TG=TypeError,UG=function(t,e){var r=arguments.length<2?_G(t):e;if(bG(r))return FG(EG(r,t));throw TG(SG(t)+" is not iterable")},IG=xA,$y=LA,LG=yo,NG=function(t,e,r){var A,n;$y(t);try{if(A=LG(t,"return"),!A){if(e==="throw")throw r;return r}A=IG(A,t)}catch(i){n=!0,A=i}if(e==="throw")throw r;if(n)throw A;return $y(A),r},QG=ug,OG=xA,kG=LA,DG=X0,PG=mG,RG=iu,Jy=j0,MG=UG,HG=Yy,Zy=NG,VG=TypeError,mu=function(t,e){this.stopped=t,this.result=e},e4=mu.prototype,t4=function(t,e,r){var A=r&&r.that,n=!!(r&&r.AS_ENTRIES),i=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),o=QG(e,A),l,c,h,d,u,w,v,x=function(E){return l&&Zy(l,"normal",E),new mu(!0,E)},y=function(E){return n?(kG(E),s?o(E[0],E[1],x):o(E[0],E[1])):s?o(E,x):o(E)};if(i)l=t.iterator;else if(a)l=t;else{if(c=HG(t),!c)throw VG(DG(t)+" is not iterable");if(PG(c)){for(h=0,d=RG(t);d>h;h++)if(u=y(t[h]),u&&Jy(e4,u))return u;return new mu(!1)}l=MG(t,c)}for(w=i?t.next:l.next;!(v=OG(w,l)).done;){try{u=y(v.value)}catch(E){Zy(l,"throw",E)}if(typeof u=="object"&&u&&Jy(e4,u))return u}return new mu(!1)},KG=lA,r4=KG("iterator"),A4=!1;try{var GG=0,n4={next:function(){return{done:!!GG++}},return:function(){A4=!0}};n4[r4]=function(){return this},Array.from(n4,function(){throw 2})}catch{}var jG=function(t,e){if(!e&&!A4)return!1;var r=!1;try{var A={};A[r4]=function(){return{next:function(){return{done:r=!0}}}},t(A)}catch{}return r},WG=fu,zG=jG,XG=cc.CONSTRUCTOR,i4=XG||!zG(function(t){WG.all(t).then(void 0,function(){})}),qG=jA,YG=xA,$G=Gi,JG=So,ZG=Fg,ej=t4,tj=i4;qG({target:"Promise",stat:!0,forced:tj},{all:function(e){var r=this,A=JG.f(r),n=A.resolve,i=A.reject,a=ZG(function(){var s=$G(r.resolve),o=[],l=0,c=1;ej(e,function(h){var d=l++,u=!1;c++,YG(s,r,h).then(function(w){u||(u=!0,o[d]=w,--c||n(o))},i)}),--c||n(o)});return a.error&&i(a.value),A.promise}});var rj=jA,Aj=cc.CONSTRUCTOR,Dg=fu,nj=ws,ij=Tr,aj=Bs,a4=Dg&&Dg.prototype;if(rj({target:"Promise",proto:!0,forced:Aj,real:!0},{catch:function(t){return this.then(void 0,t)}}),ij(Dg)){var s4=nj("Promise").prototype.catch;a4.catch!==s4&&aj(a4,"catch",s4,{unsafe:!0})}var sj=jA,oj=xA,lj=Gi,cj=So,fj=Fg,uj=t4,hj=i4;sj({target:"Promise",stat:!0,forced:hj},{race:function(e){var r=this,A=cj.f(r),n=A.reject,i=fj(function(){var a=lj(r.resolve);uj(e,function(s){oj(a,r,s).then(A.resolve,n)})});return i.error&&n(i.value),A.promise}});var dj=jA,gj=xA,pj=So,vj=cc.CONSTRUCTOR;dj({target:"Promise",stat:!0,forced:vj},{reject:function(e){var r=pj.f(this);return gj(r.reject,void 0,e),r.promise}});var mj=LA,wj=Ki,Bj=So,xj=function(t,e){if(mj(t),wj(e)&&e.constructor===t)return e;var r=Bj.f(t),A=r.resolve;return A(e),r.promise},yj=jA,Cj=ws,Ej=cc.CONSTRUCTOR,bj=xj;Cj("Promise"),yj({target:"Promise",stat:!0,forced:Ej},{resolve:function(e){return bj(this,e)}});function o4(t,e,r,A,n,i,a){try{var s=t[i](a),o=s.value}catch(l){r(l);return}s.done?e(o):Promise.resolve(o).then(A,n)}function ji(t){return function(){var e=this,r=arguments;return new Promise(function(A,n){var i=t.apply(e,r);function a(o){o4(i,A,n,a,s,"next",o)}function s(o){o4(i,A,n,a,s,"throw",o)}a(void 0)})}}var Fj=lg,Sj=String,Ei=function(t){if(Fj(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Sj(t)},_j=LA,l4=function(){var t=_j(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Pg=Rr,Tj=tA,Rg=Tj.RegExp,Mg=Pg(function(){var t=Rg("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Uj=Mg||Pg(function(){return!Rg("a","y").sticky}),Ij=Mg||Pg(function(){var t=Rg("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),c4={BROKEN_CARET:Ij,MISSED_STICKY:Uj,UNSUPPORTED_Y:Mg},f4={},Lj=Gx,Nj=ag,Qj=Object.keys||function(e){return Lj(e,Nj)},Oj=Bi,kj=_x,Dj=yi,Pj=LA,Rj=ec,Mj=Qj;f4.f=Oj&&!kj?Object.defineProperties:function(e,r){Pj(e);for(var A=Rj(r),n=Mj(r),i=n.length,a=0,s;i>a;)Dj.f(e,s=n[a++],A[s]);return e};var Hj=LA,Vj=f4,u4=ag,Kj=Zd,Gj=ly,jj=Y0,Wj=Jd,h4=">",d4="<",Hg="prototype",Vg="script",g4=Wj("IE_PROTO"),Kg=function(){},p4=function(t){return d4+Vg+h4+t+d4+"/"+Vg+h4},v4=function(t){t.write(p4("")),t.close();var e=t.parentWindow.Object;return t=null,e},zj=function(){var t=jj("iframe"),e="java"+Vg+":",r;return t.style.display="none",Gj.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(p4("document.F=Object")),r.close(),r.F},wu,Bu=function(){try{wu=new ActiveXObject("htmlfile")}catch{}Bu=typeof document<"u"?document.domain&&wu?v4(wu):zj():v4(wu);for(var t=u4.length;t--;)delete Bu[Hg][u4[t]];return Bu()};Kj[g4]=!0;var Gg=Object.create||function(e,r){var A;return e!==null?(Kg[Hg]=Hj(e),A=new Kg,Kg[Hg]=null,A[g4]=e):A=Bu(),r===void 0?A:Vj.f(A,r)},Xj=Rr,qj=tA,Yj=qj.RegExp,$j=Xj(function(){var t=Yj(".","s");return!(t.dotAll&&t.exec(`
|
|
376
|
-
`)&&t.flags==="s")}),
|
|
377
|
-
`)&&(x="(?: "+x+")",E=" "+E,y++),s=new RegExp("^(?:"+x+")",v)),Xg&&(s=new RegExp("^"+x+"$(?!\\s)",v)),zg&&(o=r.lastIndex),l=Lo(yu,w?s:r,E),w?l?(l.input=Wg(l.input,y),l[0]=Wg(l[0],y),l.index=r.lastIndex,r.lastIndex+=l[0].length):r.lastIndex=0:zg&&l&&(r.lastIndex=r.global?l.index+l[0].length:o),Xg&&l&&l.length>1&&Lo(cW,l[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(l[c]=void 0)}),l&&u)for(l.groups=h=aW(null),c=0;c<u.length;c++)d=u[c],h[d[0]]=l[d[1]];return l});var Cu=jg,gW=jA,w4=Cu;gW({target:"RegExp",proto:!0,forced:/./.exec!==w4},{exec:w4});var B4=ac,x4=Bs,pW=Cu,y4=Rr,C4=lA,vW=tc,mW=C4("species"),qg=RegExp.prototype,Yg=function(t,e,r,A){var n=C4(t),i=!y4(function(){var l={};return l[n]=function(){return 7},""[t](l)!=7}),a=i&&!y4(function(){var l=!1,c=/a/;return t==="split"&&(c={},c.constructor={},c.constructor[mW]=function(){return c},c.flags="",c[n]=/./[n]),c.exec=function(){return l=!0,null},c[n](""),!l});if(!i||!a||r){var s=B4(/./[n]),o=e(n,""[t],function(l,c,h,d,u){var w=B4(l),v=c.exec;return v===pW||v===qg.exec?i&&!u?{done:!0,value:s(c,h,d)}:{done:!0,value:w(h,c,d)}:{done:!1}});x4(String.prototype,t,o[0]),x4(qg,n,o[1])}A&&vW(qg[n],"sham",!0)},$g=Mr,wW=nu,BW=Ei,xW=xi,yW=$g("".charAt),E4=$g("".charCodeAt),CW=$g("".slice),b4=function(t){return function(e,r){var A=BW(xW(e)),n=wW(r),i=A.length,a,s;return n<0||n>=i?t?"":void 0:(a=E4(A,n),a<55296||a>56319||n+1===i||(s=E4(A,n+1))<56320||s>57343?t?yW(A,n):a:t?CW(A,n,n+2):(a-55296<<10)+(s-56320)+65536)}},EW={codeAt:b4(!1),charAt:b4(!0)},bW=EW.charAt,Jg=function(t,e,r){return e+(r?bW(t,e).length:1)},F4=xA,FW=LA,SW=Tr,_W=vs,TW=Cu,UW=TypeError,Zg=function(t,e){var r=t.exec;if(SW(r)){var A=F4(r,t,e);return A!==null&&FW(A),A}if(_W(t)==="RegExp")return F4(TW,t,e);throw UW("RegExp#exec called on incompatible receiver")},IW=xA,LW=Yg,NW=LA,QW=ms,OW=bo,ep=Ei,kW=xi,DW=yo,PW=Jg,S4=Zg;LW("match",function(t,e,r){return[function(n){var i=kW(this),a=QW(n)?void 0:DW(n,t);return a?IW(a,n,i):new RegExp(n)[t](ep(i))},function(A){var n=NW(this),i=ep(A),a=r(e,n,i);if(a.done)return a.value;if(!n.global)return S4(n,i);var s=n.unicode;n.lastIndex=0;for(var o=[],l=0,c;(c=S4(n,i))!==null;){var h=ep(c[0]);o[l]=h,h===""&&(n.lastIndex=PW(i,OW(n.lastIndex),s)),l++}return l===0?null:o}]});var tp=Mr,RW=q0,MW=Math.floor,rp=tp("".charAt),HW=tp("".replace),Ap=tp("".slice),VW=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,KW=/\$([$&'`]|\d{1,2})/g,GW=function(t,e,r,A,n,i){var a=r+t.length,s=A.length,o=KW;return n!==void 0&&(n=RW(n),o=VW),HW(i,o,function(l,c){var h;switch(rp(c,0)){case"$":return"$";case"&":return t;case"`":return Ap(e,0,r);case"'":return Ap(e,a);case"<":h=n[Ap(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var u=MW(d/10);return u===0?l:u<=s?A[u-1]===void 0?rp(c,1):A[u-1]+rp(c,1):l}h=A[d-1]}return h===void 0?"":h})},jW=fg,_4=xA,Eu=Mr,WW=Yg,zW=Rr,XW=LA,qW=Tr,YW=ms,$W=nu,JW=bo,No=Ei,ZW=xi,ez=Jg,tz=yo,rz=GW,Az=Zg,nz=lA,np=nz("replace"),iz=Math.max,az=Math.min,sz=Eu([].concat),ip=Eu([].push),T4=Eu("".indexOf),U4=Eu("".slice),oz=function(t){return t===void 0?t:String(t)},lz=function(){return"a".replace(/./,"$0")==="$0"}(),I4=function(){return/./[np]?/./[np]("a","$0")==="":!1}(),cz=!zW(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"});WW("replace",function(t,e,r){var A=I4?"$":"$0";return[function(i,a){var s=ZW(this),o=YW(i)?void 0:tz(i,np);return o?_4(o,i,s,a):_4(e,No(s),i,a)},function(n,i){var a=XW(this),s=No(n);if(typeof i=="string"&&T4(i,A)===-1&&T4(i,"$<")===-1){var o=r(e,a,s,i);if(o.done)return o.value}var l=qW(i);l||(i=No(i));var c=a.global;if(c){var h=a.unicode;a.lastIndex=0}for(var d=[];;){var u=Az(a,s);if(u===null||(ip(d,u),!c))break;var w=No(u[0]);w===""&&(a.lastIndex=ez(s,JW(a.lastIndex),h))}for(var v="",x=0,y=0;y<d.length;y++){u=d[y];for(var E=No(u[0]),F=iz(az($W(u.index),s.length),0),k=[],X=1;X<u.length;X++)ip(k,oz(u[X]));var q=u.groups;if(l){var N=sz([E],k,F,s);q!==void 0&&ip(N,q);var Q=No(jW(i,void 0,N))}else Q=rz(E,s,F,k,q,i);F>=x&&(v+=U4(s,x,F)+Q,x=F+E.length)}return v+U4(s,x)}]},!cz||!lz||I4);var fz=Ki,uz=vs,hz=lA,dz=hz("match"),L4=function(t){var e;return fz(t)&&((e=t[dz])!==void 0?!!e:uz(t)=="RegExp")},gz=L4,pz=TypeError,ap=function(t){if(gz(t))throw pz("The method doesn't accept regular expressions");return t},vz=lA,mz=vz("match"),sp=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[mz]=!1,"/./"[t](e)}catch{}}return!1},wz=jA,N4=ac,Bz=xo.f,xz=bo,Q4=Ei,yz=ap,Cz=xi,Ez=sp,O4=N4("".startsWith),bz=N4("".slice),Fz=Math.min,k4=Ez("startsWith"),Sz=!k4&&!!function(){var t=Bz(String.prototype,"startsWith");return t&&!t.writable}();wz({target:"String",proto:!0,forced:!Sz&&!k4},{startsWith:function(e){var r=Q4(Cz(this));yz(e);var A=xz(Fz(arguments.length>1?arguments[1]:void 0,r.length)),n=Q4(e);return O4?O4(r,n,A):bz(r,A,A+n.length)===n}});var _z=lA,Tz=Gg,Uz=yi.f,op=_z("unscopables"),lp=Array.prototype;lp[op]==null&&Uz(lp,op,{configurable:!0,value:Tz(null)});var Iz=function(t){lp[op][t]=!0},Lz=Rr,Nz=!Lz(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Qz=$n,Oz=Tr,kz=q0,Dz=Jd,Pz=Nz,D4=Dz("IE_PROTO"),cp=Object,Rz=cp.prototype,P4=Pz?cp.getPrototypeOf:function(t){var e=kz(t);if(Qz(e,D4))return e[D4];var r=e.constructor;return Oz(r)&&e instanceof r?r.prototype:e instanceof cp?Rz:null},Mz=Rr,Hz=Tr,Vz=Ki,R4=P4,Kz=Bs,Gz=lA,fp=Gz("iterator"),M4=!1,Es,up,hp;[].keys&&(hp=[].keys(),"next"in hp?(up=R4(R4(hp)),up!==Object.prototype&&(Es=up)):M4=!0);var jz=!Vz(Es)||Mz(function(){var t={};return Es[fp].call(t)!==t});jz&&(Es={}),Hz(Es[fp])||Kz(Es,fp,function(){return this});var H4={IteratorPrototype:Es,BUGGY_SAFARI_ITERATORS:M4},Wz=H4.IteratorPrototype,zz=Gg,Xz=G0,qz=og,Yz=fc,$z=function(){return this},Jz=function(t,e,r,A){var n=e+" Iterator";return t.prototype=zz(Wz,{next:Xz(+!A,r)}),qz(t,n,!1),Yz[n]=$z,t},Zz=jA,eX=xA,V4=J0,tX=Tr,rX=Jz,K4=P4,G4=Xx,AX=og,nX=tc,dp=Bs,iX=lA,aX=fc,j4=H4,sX=V4.PROPER,oX=V4.CONFIGURABLE,W4=j4.IteratorPrototype,bu=j4.BUGGY_SAFARI_ITERATORS,uc=iX("iterator"),z4="keys",hc="values",X4="entries",lX=function(){return this},cX=function(t,e,r,A,n,i,a){rX(r,e,A);var s=function(y){if(y===n&&d)return d;if(!bu&&y in c)return c[y];switch(y){case z4:return function(){return new r(this,y)};case hc:return function(){return new r(this,y)};case X4:return function(){return new r(this,y)}}return function(){return new r(this)}},o=e+" Iterator",l=!1,c=t.prototype,h=c[uc]||c["@@iterator"]||n&&c[n],d=!bu&&h||s(n),u=e=="Array"&&c.entries||h,w,v,x;if(u&&(w=K4(u.call(new t)),w!==Object.prototype&&w.next&&(K4(w)!==W4&&(G4?G4(w,W4):tX(w[uc])||dp(w,uc,lX)),AX(w,o,!0))),sX&&n==hc&&h&&h.name!==hc&&(oX?nX(c,"name",hc):(l=!0,d=function(){return eX(h,this)})),n)if(v={values:s(hc),keys:i?d:s(z4),entries:s(X4)},a)for(x in v)(bu||l||!(x in c))&&dp(c,x,v[x]);else Zz({target:e,proto:!0,forced:bu||l},v);return c[uc]!==d&&dp(c,uc,d,{name:n}),aX[e]=d,v},fX=function(t,e){return{value:t,done:e}},uX=ec,gp=Iz,q4=fc,Y4=tu,hX=yi.f,dX=cX,Fu=fX,gX=Bi,$4="Array Iterator",pX=Y4.set,vX=Y4.getterFor($4),mX=dX(Array,"Array",function(t,e){pX(this,{type:$4,target:uX(t),index:0,kind:e})},function(){var t=vX(this),e=t.target,r=t.kind,A=t.index++;return!e||A>=e.length?(t.target=void 0,Fu(void 0,!0)):r=="keys"?Fu(A,!1):r=="values"?Fu(e[A],!1):Fu([A,e[A]],!1)},"values"),J4=q4.Arguments=q4.Array;if(gp("keys"),gp("values"),gp("entries"),gX&&J4.name!=="values")try{hX(J4,"name",{value:"values"})}catch{}var wX={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},BX=Y0,pp=BX("span").classList,Z4=pp&&pp.constructor&&pp.constructor.prototype,xX=Z4===Object.prototype?void 0:Z4,eC=tA,tC=wX,yX=xX,dc=mX,vp=tc,rC=lA,mp=rC("iterator"),AC=rC("toStringTag"),wp=dc.values,nC=function(t,e){if(t){if(t[mp]!==wp)try{vp(t,mp,wp)}catch{t[mp]=wp}if(t[AC]||vp(t,AC,e),tC[e]){for(var r in dc)if(t[r]!==dc[r])try{vp(t,r,dc[r])}catch{t[r]=dc[r]}}}};for(var Bp in tC)nC(eC[Bp]&&eC[Bp].prototype,Bp);nC(yX,"DOMTokenList");function CX(t,e){if(zt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var A=r.call(t,e||"default");if(zt(A)!=="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function EX(t){var e=CX(t,"string");return zt(e)==="symbol"?e:String(e)}function xp(t,e,r){return e=EX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bX=Gi,FX=q0,SX=Ax,_X=iu,TX=TypeError,iC=function(t){return function(e,r,A,n){bX(r);var i=FX(e),a=SX(i),s=_X(i),o=t?s-1:0,l=t?-1:1;if(A<2)for(;;){if(o in a){n=a[o],o+=l;break}if(o+=l,t?o<0:s<=o)throw TX("Reduce of empty array with no initial value")}for(;t?o>=0:s>o;o+=l)o in a&&(n=r(n,a[o],o,i));return n}},UX={left:iC(!1),right:iC(!0)},IX=Rr,aC=function(t,e){var r=[][t];return!!r&&IX(function(){r.call(null,e||function(){return 1},1)})},LX=jA,NX=UX.left,QX=aC,sC=Qd,OX=nc,kX=!OX&&sC>79&&sC<83,DX=kX||!QX("reduce");LX({target:"Array",proto:!0,forced:DX},{reduce:function(e){var r=arguments.length;return NX(this,e,r,r>1?arguments[1]:void 0)}});var PX=jA,oC=ac,RX=xo.f,MX=bo,lC=Ei,HX=ap,VX=xi,KX=sp,cC=oC("".endsWith),GX=oC("".slice),jX=Math.min,fC=KX("endsWith"),WX=!fC&&!!function(){var t=RX(String.prototype,"endsWith");return t&&!t.writable}();PX({target:"String",proto:!0,forced:!WX&&!fC},{endsWith:function(e){var r=lC(VX(this));HX(e);var A=arguments.length>1?arguments[1]:void 0,n=r.length,i=A===void 0?n:jX(MX(A),n),a=lC(e);return cC?cC(r,a,i):GX(r,i-a.length,i)===a}});var zX=Vd,XX=yi,qX=G0,YX=function(t,e,r){var A=zX(e);A in t?XX.f(t,A,qX(0,r)):t[A]=r},uC=Mx,$X=iu,JX=YX,ZX=Array,eq=Math.max,tq=function(t,e,r){for(var A=$X(t),n=uC(e,A),i=uC(r===void 0?A:r,A),a=ZX(eq(i-n,0)),s=0;n<i;n++,s++)JX(a,s,t[n]);return a.length=s,a},rq=fg,gc=xA,yp=Mr,Aq=Yg,nq=LA,iq=ms,aq=L4,hC=xi,sq=ny,oq=Jg,lq=bo,Cp=Ei,cq=yo,dC=tq,gC=Zg,fq=Cu,uq=c4,hq=Rr,Qo=uq.UNSUPPORTED_Y,pC=4294967295,dq=Math.min,vC=[].push,gq=yp(/./.exec),Oo=yp(vC),pc=yp("".slice),pq=!hq(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"});Aq("split",function(t,e,r){var A;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?A=function(n,i){var a=Cp(hC(this)),s=i===void 0?pC:i>>>0;if(s===0)return[];if(n===void 0)return[a];if(!aq(n))return gc(e,a,n,s);for(var o=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),c=0,h=new RegExp(n.source,l+"g"),d,u,w;(d=gc(fq,h,a))&&(u=h.lastIndex,!(u>c&&(Oo(o,pc(a,c,d.index)),d.length>1&&d.index<a.length&&rq(vC,o,dC(d,1)),w=d[0].length,c=u,o.length>=s)));)h.lastIndex===d.index&&h.lastIndex++;return c===a.length?(w||!gq(h,""))&&Oo(o,""):Oo(o,pc(a,c)),o.length>s?dC(o,0,s):o}:"0".split(void 0,0).length?A=function(n,i){return n===void 0&&i===0?[]:gc(e,this,n,i)}:A=e,[function(i,a){var s=hC(this),o=iq(i)?void 0:cq(i,t);return o?gc(o,i,s,a):gc(A,Cp(s),i,a)},function(n,i){var a=nq(this),s=Cp(n),o=r(A,a,s,i,A!==e);if(o.done)return o.value;var l=sq(a,RegExp),c=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Qo?"g":"y"),d=new l(Qo?"^(?:"+a.source+")":a,h),u=i===void 0?pC:i>>>0;if(u===0)return[];if(s.length===0)return gC(d,s)===null?[s]:[];for(var w=0,v=0,x=[];v<s.length;){d.lastIndex=Qo?0:v;var y=gC(d,Qo?pc(s,v):s),E;if(y===null||(E=dq(lq(d.lastIndex+(Qo?v:0)),s.length))===w)v=oq(s,v,c);else{if(Oo(x,pc(s,w,v)),x.length===u)return x;for(var F=1;F<=y.length-1;F++)if(Oo(x,y[F]),x.length===u)return x;v=w=E}}return Oo(x,pc(s,w)),x}]},!pq,Qo);var Su={exports:{}},vc={exports:{}};(function(){var t,e,r,A,n,i;typeof performance<"u"&&performance!==null&&performance.now?vc.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(vc.exports=function(){return(t()-n)/1e6},e=process.hrtime,t=function(){var a;return a=e(),a[0]*1e9+a[1]},A=t(),i=process.uptime()*1e9,n=A-i):Date.now?(vc.exports=function(){return Date.now()-r},r=Date.now()):(vc.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Zl);for(var vq=vc.exports,mq=vq,Wi=typeof window>"u"?Zl:window,_u=["moz","webkit"],ko="AnimationFrame",Do=Wi["request"+ko],mc=Wi["cancel"+ko]||Wi["cancelRequest"+ko],wc=0;!Do&&wc<_u.length;wc++)Do=Wi[_u[wc]+"Request"+ko],mc=Wi[_u[wc]+"Cancel"+ko]||Wi[_u[wc]+"CancelRequest"+ko];if(!Do||!mc){var Ep=0,mC=0,bs=[],wq=1e3/60;Do=function(t){if(bs.length===0){var e=mq(),r=Math.max(0,wq-(e-Ep));Ep=r+e,setTimeout(function(){var A=bs.slice(0);bs.length=0;for(var n=0;n<A.length;n++)if(!A[n].cancelled)try{A[n].callback(Ep)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return bs.push({handle:++mC,callback:t,cancelled:!1}),mC},mc=function(t){for(var e=0;e<bs.length;e++)bs[e].handle===t&&(bs[e].cancelled=!0)}}Su.exports=function(t){return Do.call(Wi,t)},Su.exports.cancel=function(){mc.apply(Wi,arguments)},Su.exports.polyfill=function(t){t||(t=Wi),t.requestAnimationFrame=Do,t.cancelAnimationFrame=mc};var Bq=Su.exports;const bp=Y5(Bq);var wC=`
|
|
378
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
373
|
+
}`);if(this.body.length===0)throw new Error("SmartTable error: missing body data");this.isLoading=!0,this.promiseWithAsyncFunction(this.prepareBodyCopy,()=>{this.$forceUpdate(),this.isLoading=!1}),document.addEventListener("keydown",t=>{const e=document.activeElement;(e&&Array.from(e.classList).includes("td-focusable")&&t.key.includes("Arrow")||t.code==="Space")&&t.preventDefault()})},watch:{showChart:function(t){t&&this.$nextTick(()=>{this.closeDragElement();const e=this.$refs.chartModal;e.onmousedown=this.dragMouseDown})}},computed:{availableDonutCategories(){return Object.keys(this.multiselects).map(t=>({index:t,name:this.header[t].name,options:this.multiselects[t]}))},canChart(){return this.useChart&&this.currentSelectionSpan.rows.length>1},chartData(){if(!this.canChart)return[];const t=316,e=512,r=this.currentSelectionSpan.rows.length,A=e/r,n=Math.max(...this.currentSelectionSpan.rows.map(h=>h.value)),i=Math.min(...this.currentSelectionSpan.rows.map(h=>h.value)),a=i>=0?0:Math.abs(i),s=n+a,o=this.header[this.currentSelectionSpan.col].isPercentage,l=this.currentSelectionSpan.rows.map((h,d)=>({x:A*d+A/2,y:(1-(h.value+a)/s)*t,value:o?h.value*100:h.value,suffix:o?"%":this.header[this.currentSelectionSpan.col].suffix?this.header[this.currentSelectionSpan.col].suffix:"",prefix:this.header[this.currentSelectionSpan.col].prefix?this.header[this.currentSelectionSpan.col].prefix:"",index:h.index,absoluteValue:o?Math.abs(h.value)*100:Math.abs(h.value)}));return{zero:t-t*(a/s),plots:l,slot:A,progression:l.length>=2?this.calcChartProgression(l):!1}},donutHollowLabels(){return{total:Number((this.currentDonut.map(t=>t.absoluteValue).reduce((t,e)=>t+e,0)*(this.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),average:Number((this.currentDonut.map(t=>t.absoluteValue).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length*(this.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},hasNumericTypes(){return this.header.map(t=>t.type).includes(this.constants.NUMERIC)},icons(){return{arrowSort:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,bar:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,chart:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,chevronDown:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,chevronLeft:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg>`,chevronRight:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*1.6}" height="${this.iconSize*1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg>`,donut:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,export:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,fileDownload:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,filter:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,move:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,sort09:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sort90:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sortAZ:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sortZA:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sum:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,table:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize*.8}" height="${this.iconSize*.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`}},pages(){const t=[];if(this.bodyCopy.length)for(let e=0;e<this.bodyCopy.length;e+=this.itemsPerPage)t.push(this.bodyCopy.slice(e,e+this.itemsPerPage));return t},rows(){return this.bodyCopy.map(t=>t.td)},selectedCellsCalculations(){return{sumPercentage:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)*100).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),sumRegular:Number(this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averagePercentage:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length*100).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),averageRegular:Number((this.currentSelectionSpan.rows.map(t=>t.value).reduce((t,e)=>t+e,0)/this.currentSelectionSpan.rows.length).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString()}},visibleRows(){return this.pages[this.currentPage]}},methods:{applyDonutOption(){const t=this.selectedDonutCategory.options.map((e,r)=>({name:e,color:this.palette[r]||this.palette[r%this.palette.length],value:this.visibleRows.filter((A,n)=>A.td[this.selectedDonutCategory.index]===e&&this.currentSelectionSpan.rows.map(i=>i.index).includes(n)).map(A=>A.td[this.currentSelectionSpan.col]).reduce((A,n)=>Math.abs(A)+Math.abs(n),0),absoluteValue:this.visibleRows.filter((A,n)=>A.td[this.selectedDonutCategory.index]===e&&this.currentSelectionSpan.rows.map(i=>i.index).includes(n)).map(A=>A.td[this.currentSelectionSpan.col]).reduce((A,n)=>A+n,0)})).sort((e,r)=>r.value-e.value);this.currentDonut=this.makeDonut({series:t},50,50,30,30),this.$nextTick(()=>{this.chart.type=this.constants.DONUT,this.showDonutOptions=!1})},calcRectY(t,e){return t>=0?e:this.chartData.zero},canResetColumn(t,e){return!this.hasNaN[t]&&(e.isSort||e.isSearch||e.isMultiselect||e.rangeFilter)&&![this.constants.DATE].includes(e.type)},createXls(t="all"){const e=this.header.map(c=>c.name),r=t==="all"?this.bodyCopy.map(c=>c.td):this.visibleRows.map(c=>c.td),A=[e].concat(r);function n(c){let h=new ArrayBuffer(c.length),d=new Uint8Array(h);for(let u=0;u<c.length;u++)d[u]=c.charCodeAt(u)&255;return h}const i=Bo.book_new(),a=Bo.aoa_to_sheet(A);Bo.book_append_sheet(i,a,"Sheet1");const s=md(i,{bookType:"xlsx",type:"binary"}),o=new Blob([n(s)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=document.createElement("a");l.href=window.URL.createObjectURL(o),l.download="data.xlsx",l.click(),window.URL.revokeObjectURL(l.href),this.isExportRequest=!1},calcChartProgression(t){let e,r,A,n;const i=t.length;let a=0,s=0,o=0,l=0;for(const{x:d,y:u}of t)a+=d,s+=u,o+=d*u,l+=d*d;const c=(i*o-a*s)/(i*l-a*a),h=(s-c*a)/i;return e=t[0].x,A=t[i-1].x,r=c*e+h,n=c*A+h,{x1:e,y1:r,x2:A,y2:n,slope:c}},closeAllDropdowns(){const t=document.getElementsByClassName("th-dropdown");t.length&&Array.from(t).forEach(e=>{e.dataset.isOpen=!1})},debounce(t,e){let r;clearTimeout(r),r=setTimeout(t,e)},filterBody(){this.bodyCopy=this.tableBody.filter(t=>{for(const e in this.searches)if(!t.td[e].toUpperCase().includes(this.searches[e].toUpperCase()))return!1;for(const e in this.multiselects)if(!this.multiselects[e].some(A=>A===t.td[e]))return!1;for(const e in this.dates){const r=new Date(t.td[e]),A=new Date(this.dates[e].from),n=new Date(this.dates[e].to);if(r<A||r>n)return!1}return!0}),this.sortBody()},getAverage(t){return this.rows.map(e=>e[t]).map(e=>isNaN(Number(e))?0:e).reduce((e,r)=>e+r,0)/this.bodyCopy.length},getDatesRange(t){const e=this.body.map(d=>new Date(d.td[t])),r=new Date(Math.min(...e)),A=new Date(Math.max(...e)),n=r.getFullYear(),i=A.getFullYear(),a=String(r.getMonth()+1).padStart(2,"0"),s=String(A.getMonth()+1).padStart(2,"0"),o=String(r.getDate()).padStart(2,"0"),l=String(A.getDate()).padStart(2,"0"),c=`${n}-${a}-${o}`,h=`${i}-${s}-${l}`;return{from:c,to:h}},getDonutLegendValue(t){return Number((t*(this.header[this.currentSelectionSpan.col].isPercentage?100:1)).toFixed(this.header[this.currentSelectionSpan.col].decimals)).toLocaleString()},getDropdownOptions(t){return[...new Set(this.body.map(e=>e.td[t]))]},getSum(t){return this.rows.map(e=>e[t]).map(e=>isNaN(Number(e))?0:e).reduce((e,r)=>e+r,0)},includesNaN(t){return t.includes(NaN)},isDropdownOptionSelected(t,e){return this.multiselects[e]?this.multiselects[e].includes(t):!0},isNumeric(t){return!isNaN(Number(String(t).replaceAll("%","")))},isResetDisabled(t,e){const r=e.isSort,A=e.isSearch,n=e.isMultiselect&&this.multiselects[t],i=e.rangeFilter,a=s=>{if(i&&this.rangeFilters[s])return Math.round(this.rangeFilters[s].min)===this.immutableRangeFilters[s].min&&Math.round(this.rangeFilters[s].max)===this.immutableRangeFilters[s].max};if(r&&A&&n&&i)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(r&&A&&n)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(r&&A&&i)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t])&&a(t);if(r&&A)return["",void 0].includes(this.searches[t])&&[void 0].includes(this.sorts[t]);if(r&&n&&i)return[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(r&&n)return[void 0].includes(this.sorts[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(A&&n&&i)return["",void 0].includes(this.searches[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(A&&n)return["",void 0].includes(this.searches[t])&&this.multiselects[t].length===this.getDropdownOptions(t).length;if(A&&i)return["",void 0].includes(this.searches[t])&&a(t);if(A)return["",void 0].includes(this.searches[t]);if(r&&i)return[void 0].includes(this.sorts[t])&&a(t);if(r)return[void 0].includes(this.sorts[t]);if(n&&i)return this.multiselects[t].length===this.getDropdownOptions(t).length&&a(t);if(n)return this.multiselects[t].length===this.getDropdownOptions(t).length},navigate(t){this.resetSelection(),t==="next"&&this.currentPage<this.pages.length?this.currentPage+=1:t==="previous"&&this.currentPage>=1?this.currentPage-=1:this.currentPage=t-1,this.$refs.tableWrapper.scrollTo({top:0,left:0,behavior:"smooth"})},navigateCell(t){t.preventDefault();const e=t.keyCode,r=38,A=40,n=37,i=39;if(![r,A,n,i].includes(e))return;const a=t.target.id,s=/cell_(\d+)_(\d+)/,o=a.match(s),l=parseInt(o[1]),c=parseInt(o[2]),h=document.getElementById(`cell_${l}_${c+1}`),d=document.getElementById(`cell_${l}_${c-1}`),u=document.getElementById(`cell_${l+1}_${c}`),w=document.getElementById(`cell_${l-1}_${c}`);let v;switch(!0){case e===i:v=h;break;case e===n:v=d;break;case e===r:v=w;break;case e===A:v=u;break;default:return}v&&(v.focus(),v.scrollIntoView({behavior:"smooth",block:"center"}))},openDonutOptions(){this.selectedDonutCategory=this.availableDonutCategories[0],this.showDonutOptions=!0},placeLabelOnTopOrBottom({previousPlot:t,currentPlot:e,nextPlot:r}){const A=e.y-38,n=e.y+16;return t&&r?t.value<e.value&&r.value<e.value?A:t.value>e.value&&r.value>e.value?n:(t.value>e.value&&r.value<e.value||t.value<e.value&&r.value>e.value,A):t&&!r?t.value>e.value?n:A:!t&&r&&r.value>e.value?n:A},async prepareBodyCopy(){return new Promise(t=>{const e=[];this.tableHead.forEach((r,A)=>{if(r.isSearch&&Object.assign(this.searches,{[A]:""}),r.isMultiselect&&Object.assign(this.multiselects,{[A]:this.getDropdownOptions(A)}),r.type===this.constants.DATE&&(Object.assign(this.dates,{[A]:this.getDatesRange(A)}),Object.assign(this.filteredDatesIndexes,{[A]:!1})),(r.isPercentage||r.percentageTo)&&Object.assign(this.percentages,{[A]:{reference:r.percentageTo,referenceIndex:this.header.map(n=>n.name).indexOf(r.percentageTo)}}),r.rangeFilter&&(Object.assign(this.rangeFilters,{[A]:{min:Math.round(Math.min(...this.body.map(n=>n.td).map(n=>n[A]))),max:Math.round(Math.max(...this.body.map(n=>n.td).map(n=>n[A])))}}),Object.assign(this.immutableRangeFilters,{[A]:{min:Math.round(Math.min(...this.body.map(n=>n.td).map(n=>n[A]))),max:Math.round(Math.max(...this.body.map(n=>n.td).map(n=>n[A])))}})),r.isPercentage){const n=this.header.map(a=>a.name).indexOf(r.percentageTo),i=this.body.map(a=>a.td[n]).reduce((a,s)=>a+s,0);e.push([A,n,i])}r.type===this.constants.NUMERIC&&!r.isPercentage&&Object.assign(this.hasNaN,{[A]:this.includesNaN(this.body.map(n=>Number(n.td[A])))})}),this.bodyCopy.forEach((r,A)=>{e.map(n=>{const[i,a,s]=n;r.td[i]=r.td[a]/s}),r.td.forEach((n,i)=>{this.header[i].type===this.constants.TEXT&&this.header[i].isSearch&&(r[i]=this.stringToNumber(n)),this.header[i].type===this.constants.DATE&&(r[i]=new Date(n).getTime()),this.header[i].type===this.constants.NUMERIC&&(r[i]=isNaN(Number(n))?i:n),this.tableBody[A][i]=r[i]})}),t(!0)})},promiseWithAsyncFunction(t,e){return new Promise((r,A)=>{t().then(n=>{try{const i=e(n);r(i)}catch(i){A(i)}}).catch(n=>{A(n)})})},resetDates(t){this.dates[t]={from:this.getDatesRange(t).from,to:this.getDatesRange(t).to},this.filteredDatesIndexes[t]=!1,this.$forceUpdate(),this.filterBody()},resetFilter(t,e,r){const A=r.currentTarget;clearTimeout(this.buttonTimeout),A.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{A.classList.remove("clicked")},200),this.currentFilter=void 0,e.rangeFilter&&(this.rangeFilters[t].min=this.immutableRangeFilters[t].min,this.rangeFilters[t].max=this.immutableRangeFilters[t].max),e.isMultiselect?(this.multiselects[t]=this.getDropdownOptions(t),e.type===this.constants.TEXT&&(this.sorts[t]=void 0),e.isSearch&&(this.searches[t]="")):e.type===this.constants.NUMERIC?this.sorts[t]=void 0:e.type===this.constants.TEXT?(this.sorts[t]=void 0,this.searches[t]=""):e.type===this.constants.DATE&&(this.sorts[t]=void 0),this.filterBody()},resetSelection(){const t=document.getElementsByClassName(this.cssClass.ROW);Array.from(t).forEach(e=>{e.classList.remove(this.cssClass.CELL),e.classList.remove(this.cssClass.ROW),e.classList.remove(this.cssClass.FIRST_TD),e.classList.remove(this.cssClass.LAST_TD)}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),this.showChart=!1,this.currentDonut=void 0,this.selectedColumn=void 0,this.chart.type=this.constants.BAR,this.currentSelectionSpan={col:void 0,rows:[]},this.clientX=100,this.clientY=100},selectColumn(t){this.currentSelectionSpan.col!==t?(this.visibleRows.forEach((e,r)=>{this.selectTd({td:e.td[t],rowIndex:r,colIndex:t,headerType:this.constants.NUMERIC,event:{currentTarget:document.getElementById(`cell_${r}_${t}`)}})}),this.selectedColumn=t):(this.selectedColumn=void 0,this.resetSelection())},selectDropdownOption(t,e){this.multiselects[e].includes(t)?this.multiselects[e]=this.multiselects[e].filter(r=>r!==t):this.multiselects[e].push(t),this.$forceUpdate(),this.filterBody()},selectTd({td:t,rowIndex:e,colIndex:r,headerType:A,event:n}){if(A!==this.constants.NUMERIC||isNaN(Number(t))){this.resetSelection();return}this.currentSelectionSpan.col!==r&&this.resetSelection();const i=n.currentTarget.parentNode;this.currentSelectionSpan.col=r,this.currentSelectionSpan.rows.map(a=>a.index).includes(e)?(this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.filter(a=>a.index!==e),n.currentTarget.classList.remove(this.cssClass.CELL),Array.from(i.children).forEach((a,s)=>{a.classList.remove(this.cssClass.ROW),s===0&&a.classList.remove(this.cssClass.FIRST_TD),s===i.children.length-1&&a.classList.remove(this.cssClass.LAST_TD)})):(this.currentSelectionSpan.rows.push({index:e,value:t}),n.currentTarget.classList.add(this.cssClass.CELL),Array.from(i.children).forEach((a,s)=>{a.classList.add(this.cssClass.ROW),s===0&&a.classList.add(this.cssClass.FIRST_TD),s===i.children.length-1&&a.classList.add(this.cssClass.LAST_TD)})),this.currentSelectionSpan.rows=this.currentSelectionSpan.rows.sort((a,s)=>a.index-s.index),this.chart.type===this.constants.DONUT&&this.currentSelectionSpan.rows.length>0&&this.applyDonutOption()},setFilterDatesIndexes(t){this.filteredDatesIndexes[t]=!(this.getDatesRange(t).from===this.dates[t].from&&this.getDatesRange(t).to===this.dates[t].to)},sortBody(){this.resetSelection(),Object.keys(this.rangeFilters).forEach(t=>{this.filterByRange(this.bodyCopy,t)}),Object.keys(this.sorts).forEach(t=>{this.sortByNumber(this.bodyCopy,t)}),this.currentFilter!==void 0&&this.sortByNumber(this.bodyCopy,this.currentFilter),this.header.forEach((t,e)=>{if(t.isPercentage){const r=this.percentages[e].referenceIndex,A=this.bodyCopy.map(n=>n.td[r]).reduce((n,i)=>n+i,0);this.bodyCopy.forEach(n=>{n.td[e]=n.td[r]/A})}}),this.currentPage>this.pages.length-1&&(this.currentPage=this.pages.length-1),[-1].includes(this.currentPage)&&(this.currentPage=0),this.$forceUpdate()},filterByRange(t,e){this.bodyCopy=t.filter(r=>r.td[e]>=this.rangeFilters[e].min&&r[e]<=this.rangeFilters[e].max)},sortByNumber(t,e){if(this.sorts[e]===this.constants.ASC&&(t=t.sort((r,A)=>r[e]-A[e])),this.sorts[e]===this.constants.DESC)t=t.sort((r,A)=>A[e]-r[e]);else return 0},sortTh(t,e){this.currentFilter=t;const r=e.currentTarget;clearTimeout(this.buttonTimeout),r.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{r.classList.remove("clicked")},200),this.sorts[t]===1?this.sorts[t]=this.constants.DESC:this.sorts[t]=this.constants.ASC,this.sortBody()},stringToNumber(t){let e=0;for(let r=0;r<t.length;r+=1)e+=t.charCodeAt(r);return e},toggleMultiselect(t,e,r){const A=r.currentTarget;clearTimeout(this.buttonTimeout),A.classList.add("clicked"),this.buttonTimeout=setTimeout(()=>{A.classList.remove("clicked")},200);const n=document.getElementById(`th_dropdown_${t}`);n.dataset.isOpen==="false"?n.dataset.isOpen="true":n.dataset.isOpen="false"},updateCurrentPage(t){this.resetSelection(),this.currentPage=Number(t.target.value)},addVector([t,e],[r,A]){return[t+r,e+A]},calcDonutMarkerConnectorColor(t){return t.proportion*100>3?t.color:"transparent"},calcDonutMarkerLabelPositionX(t){return t.center.endX+this.calcMarkerOffset(t,50)},calcMarkerOffset(t,e){return t.center.endX-e>=0?3:-2},createArc([t,e],[r,A],[n,i],a){i=i%(2*Math.PI);const s=this.rotateMatrix(a),[o,l]=this.addVector(this.matrixTimes(s,[r*Math.cos(n),A*Math.sin(n)]),[t,e]),[c,h]=this.addVector(this.matrixTimes(s,[r*Math.cos(n+i),A*Math.sin(n+i)]),[t,e]),d=i>Math.PI?1:0,u=i>0?1:0;return{startX:o,startY:l,endX:c,endY:h,path:`M${o} ${l} A ${[r,A,a/(2*Math.PI)*360,d,u,c,h].join(" ")}`}},displayArcPercentage(t,e){return isNaN(t.value/this.sumValues(e))?0:(t.value/this.sumValues(e)*100).toFixed(0)+"%"},isArcBigEnough(t){return t.proportion*100>3},makeDonut(t,e,r,A,n){let{series:i}=t;if(!i||t.base===0)return{...i,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const a=[...i].map(l=>l.value).reduce((l,c)=>l+c,0),s=[];let o=0;for(let l=0;l<i.length;l+=1){let c=i[l].value/a;const h=c*(Math.PI*1.9999),u=i[l].value/2/a*(Math.PI*2),{startX:w,startY:v,endX:x,endY:y,path:E}=this.createArc([e,r],[A,n],[o,h],110);s.push({...i[l],proportion:c,ratio:h,path:E,startX:w,startY:v,endX:x,endY:y,center:this.createArc([e,r],[A*1.45,n*1.45],[o,u],110)}),o+=h}return s},matrixTimes([[t,e],[r,A]],[n,i]){return[t*n+e*i,r*n+A*i]},rotateMatrix(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]},sumValues(t){return[...t].map(e=>e.value).reduce((e,r)=>e+r,0)},closeDragElement(){document.onmouseup=null,document.onmousemove=null},dragMouseDown(t){t=t||window.event,t.preventDefault(),document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag(t){this.rafId||(this.rafId=window.requestAnimationFrame(()=>this.onElementDrag(t)))},onElementDrag(t){t=t||window.event,t.preventDefault();const r=this.$refs.chartModal.getBoundingClientRect();this.clientX=t.clientX-r.width/2,this.clientY=t.clientY-r.height/2,this.rafId=null}}},_n=t=>(p.pushScopeId("data-v-cfc38e10"),t=t(),p.popScopeId(),t),PD={class:"smart-table-export-hub"},RD=["innerHTML"],MD=["data-is-open"],HD=_n(()=>p.createElementVNode("b",{class:"smart-table-export-hub-title"}," Export ",-1)),VD={class:"smart-table-export-hub-options"},KD={class:"smart-table-export-hub-option-wrapper"},GD={class:"label"},jD=["innerHTML"],WD={class:"smart-table-export-hub-option-wrapper"},zD={class:"label"},XD=["innerHTML"],qD={class:"smart-table"},YD={id:"tableHead"},$D=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),JD={key:0,class:"th-fusion"},ZD={key:0},eP={key:1},tP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),rP={key:0,style:{display:"flex","align-items":"center","justify-content":"flex-end"}},AP=["innerHTML"],nP={key:0,style:{"margin-left":"3px"}},iP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),aP={key:0},sP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),oP={class:"th-filter"},lP={key:0,class:"th-date"},cP={class:"date-wrapper--inputs"},fP={class:"date-fieldset"},uP=["for"],hP=["id","onUpdate:modelValue","onInput"],dP={class:"date-fieldset"},gP=["for"],pP=["id","onUpdate:modelValue","onInput"],vP={class:"date-wrapper--button"},mP=["onClick"],wP=["innerHTML"],BP=["innerHTML"],xP=["innerHTML"],yP=["onClick","disabled"],CP=["placeholder","onUpdate:modelValue","name"],EP=["onClick"],bP=["innerHTML"],FP=["innerHTML"],SP=["innerHTML"],_P=["onClick","innerHTML"],TP=["innerHTML"],UP={key:5,class:"th-range-filter"},IP=["for"],LP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒥ",-1)),NP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒣ",-1)),QP=["id","max","min","onUpdate:modelValue"],OP=["id","max","min","onUpdate:modelValue"],kP=["for"],DP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒪ",-1)),PP=_n(()=>p.createElementVNode("span",{style:{color:"grey"}},"ᒧ",-1)),RP=["onClick","disabled"],MP=["id"],HP=["onClick"],VP=["onClick","onKeyup"],KP={key:0,style:{color:"green"},class:"th-icon-green"},GP={key:1,style:{color:"red"},class:"th-icon-red"},jP=_n(()=>p.createElementVNode("th",{class:"invisible-cell"},null,-1)),WP=["innerHTML","onClick","onKeyup"],zP={class:"smart-table-td-iteration"},XP=["onClick","onKeyup","id"],qP=["innerHTML"],YP={key:1},$P={key:2},JP={key:5},ZP=["innerHTML"],e7={key:0},t7={style:{"margin-left":"12px"}},r7={class:"format-num"},A7={style:{"margin-left":"12px"}},n7={key:0,class:"format-num"},i7={key:1,class:"format-num"},a7={key:2},s7={style:{"margin-left":"12px"}},o7={key:0,class:"format-num"},l7={key:1,class:"format-num"},c7={key:2},f7={key:0,class:"smart-table-paginator format-num"},u7={key:1,class:"smart-table-size-warning"},h7=["innerHTML"],d7={key:3,class:"smart-table-pagination format-num"},g7=["innerHTML","disabled"],p7=["disabled"],v7={key:0,class:"smart-table-page-scroller-wrapper"},m7={for:"pageScroller",style:{"font-size":"14px"}},w7=["max","value"],B7={key:1},x7=["disabled"],y7=["innerHTML","disabled"],C7={class:"chart-modal-options"},E7=["innerHTML"],b7=["innerHTML"],F7=["innerHTML"],S7={style:{"margin-bottom":"12px"}},_7={key:0},T7={key:1},U7={style:{width:"100%",height:"fit-content",cursor:"move"},ref:"chartModal"},I7={key:0},L7={class:"smart-table-fieldset"},N7={class:"smart-table-fieldset-wrapper"},Q7=["name","id","checked","onInput"],O7=["for"],k7=["disabled"],D7=["innerHTML"],P7=["viewBox"],R7=_n(()=>p.createElementVNode("defs",null,[p.createElementVNode("marker",{id:"arrowhead",markerWidth:"7",markerHeight:"7",refX:"0",refY:"3.5",orient:"auto"},[p.createElementVNode("polygon",{points:"0 0, 7 3.5, 0 7",fill:"grey"})])],-1)),M7=["x2","y1","y2"],H7=["y2"],V7=["x","width","height","fill"],K7=p.createStaticVNode('<linearGradient id="barGradientSelected" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DD" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DD80" data-v-cfc38e10></stop></linearGradient><linearGradient id="barGradientSelectedNeg" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DD80" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DD" data-v-cfc38e10></stop></linearGradient><linearGradient id="barGradient" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DDB3" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DD66" data-v-cfc38e10></stop></linearGradient><linearGradient id="barGradientNeg" x2="0%" y2="100%" data-v-cfc38e10><stop offset="0.2" stop-color="#6376DD66" data-v-cfc38e10></stop><stop offset="1" stop-color="#6376DDB3" data-v-cfc38e10></stop></linearGradient>',4),G7=["x","y","height","width","fill"],j7=["x","y","width"],W7={style:{width:"100%","text-align":"center","font-size":"20px"}},z7=["x1","y1","x2","y2"],X7=["x1","y1","x2","y2"],q7=["cx","cy","r"],Y7=["x","y","width"],$7={style:{width:"100%","text-align":"center","font-size":"20px"}},J7=["x","width","height","onMouseenter"],Z7=["x1","y1","x2","y2"],eR={key:0,class:"chart-trend"},tR=_n(()=>p.createElementVNode("span",null,"---",-1)),rR={viewBox:"0 0 100 100",style:{overflow:"visible",padding:"0 24px"},class:"smart-table-donut-chart"},AR=["d","stroke"],nR=["x","y"],iR={key:0,class:"smart-table-donut-label"},aR={class:"smart-table-donut-label-name"},sR={x:50,y:42,"text-anchor":"middle","font-size":"6"},oR={x:50,y:48,"text-anchor":"middle","font-size":"4"},lR={x:50,y:56,"text-anchor":"middle","font-size":"6"},cR={x:50,y:62,"text-anchor":"middle","font-size":"4"},fR={class:"smart-table-donut-legend"};function uR(t,e,r,A,n,i){return p.openBlock(),p.createElementBlock("div",{class:"smart-table-main",style:p.normalizeStyle(`font-family: ${r.fontFamily}`)},[p.createElementVNode("div",PD,[p.createElementVNode("button",{onClick:e[0]||(e[0]=a=>n.isExportRequest=!n.isExportRequest),innerHTML:i.icons.export},null,8,RD),p.createElementVNode("div",{class:"smart-table-export-hub-dropdown","data-is-open":n.isExportRequest||"false"},[HD,p.createElementVNode("button",{class:"close-dropdown",onClick:e[1]||(e[1]=a=>n.isExportRequest=!1)}," ✖ "),p.createElementVNode("div",VD,[p.createElementVNode("div",KD,[p.createElementVNode("div",GD,p.toDisplayString(r.translations.exportAllLabel)+" ("+p.toDisplayString(n.bodyCopy.length)+") ",1),p.createElementVNode("button",{id:"exportAll",onClick:e[2]||(e[2]=a=>i.createXls("all"))},[p.createElementVNode("div",{innerHTML:i.icons.fileDownload},null,8,jD),p.createElementVNode("span",null,p.toDisplayString(r.translations.exportAllButton),1)])]),p.createElementVNode("div",WD,[p.createElementVNode("div",zD,p.toDisplayString(r.translations.exportPageLabel),1),p.createElementVNode("button",{id:"exportPage",onClick:e[3]||(e[3]=a=>i.createXls("page"))},[p.createElementVNode("div",{innerHTML:i.icons.fileDownload},null,8,XD),p.createElementVNode("span",null,p.toDisplayString(r.translations.exportPageButton),1)])])])],8,MD)]),p.createElementVNode("div",{class:"smart-table__wrapper",style:p.normalizeStyle(`max-height:${r.maxHeight}`),ref:"tableWrapper"},[p.createElementVNode("table",qD,[p.createElementVNode("thead",YD,[p.createElementVNode("tr",null,[$D,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,style:{overflow:"visible",position:"relative"},class:p.normalizeClass({"th-has-nan":n.hasNaN[s]})},[i.hasNumericTypes&&([n.constants.TEXT,n.constants.DATE].includes(a.type)||a.isPercentage)?(p.openBlock(),p.createElementBlock("div",JD,[p.createElementVNode("span",null,[p.createTextVNode(p.toDisplayString(a.name)+" ",1),a.isPercentage?(p.openBlock(),p.createElementBlock("span",ZD," / "+p.toDisplayString(a.percentageTo),1)):p.createCommentVNode("",!0)])])):(p.openBlock(),p.createElementBlock("span",eP,p.toDisplayString(a.name),1))],2))),128))]),i.hasNumericTypes?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("tr",null,[tP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,class:p.normalizeClass({"th-numeric":!0,"th-has-nan":n.hasNaN[s]})},[a.sum&&!n.hasNaN[s]?(p.openBlock(),p.createElementBlock("span",rP,[p.createElementVNode("span",{innerHTML:i.icons.sum,style:{"margin-bottom":"-4px","margin-right":"3px"}},null,8,AP),p.createTextVNode(" "+p.toDisplayString(a.prefix)+" "+p.toDisplayString(Number(i.getSum(s).toFixed(a.decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix)+" ",1),n.percentages[s]&&a.percentageTo&&!a.isPercentage?(p.openBlock(),p.createElementBlock("span",nP," ("+p.toDisplayString(isNaN(i.getSum(s)/i.getSum(n.percentages[s].referenceIndex))?"-":(i.getSum(s)/i.getSum(n.percentages[s].referenceIndex)*100).toFixed(a.decimals))+"%) ",1)):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)],2))),128))]),p.createElementVNode("tr",null,[iP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,class:p.normalizeClass({"th-numeric":!0,"th-has-nan":n.hasNaN[s]})},[a.average&&!n.hasNaN[s]?(p.openBlock(),p.createElementBlock("span",aP," ~ "+p.toDisplayString(a.prefix)+" "+p.toDisplayString(isNaN(i.getAverage(s))?"":Number(i.getAverage(s).toFixed(a.decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix),1)):p.createCommentVNode("",!0)],2))),128))]),p.createElementVNode("tr",null,[sP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`thead_${s}`,class:p.normalizeClass({"th-has-nan":n.hasNaN[s]})},[p.createElementVNode("div",oP,[a.type===n.constants.DATE&&n.dates[s]?(p.openBlock(),p.createElementBlock("div",lP,[p.createElementVNode("div",cP,[p.createElementVNode("div",fP,[p.createElementVNode("label",{for:`from_${s}`},p.toDisplayString(r.translations.from),9,uP),p.withDirectives(p.createElementVNode("input",{id:`from_${s}`,type:"date","onUpdate:modelValue":o=>n.dates[s].from=o,onInput:o=>{i.filterBody(),i.setFilterDatesIndexes(s)}},null,40,hP),[[p.vModelText,n.dates[s].from]])]),p.createElementVNode("div",dP,[p.createElementVNode("label",{for:`to_${s}`},p.toDisplayString(r.translations.to),9,gP),p.withDirectives(p.createElementVNode("input",{id:`to_${s}`,type:"date","onUpdate:modelValue":o=>n.dates[s].to=o,onInput:o=>{i.filterBody(),i.setFilterDatesIndexes(s)}},null,40,pP),[[p.vModelText,n.dates[s].to]])])]),p.createElementVNode("div",vP,[a.isSort?(p.openBlock(),p.createElementBlock("button",{key:0,onClick:o=>i.sortTh(s,o),class:p.normalizeClass({"th-button-active":[n.constants.DESC,n.constants.ASC].includes(n.sorts[s])})},[n.sorts[s]===n.constants.ASC?(p.openBlock(),p.createElementBlock("span",{key:0,innerHTML:[n.constants.DATE].includes(a.type)?i.icons.sort09:i.icons.sortAZ},null,8,wP)):n.sorts[s]===n.constants.DESC?(p.openBlock(),p.createElementBlock("span",{key:1,innerHTML:[n.constants.DATE].includes(a.type)?i.icons.sort90:i.icons.sortZA},null,8,BP)):(p.openBlock(),p.createElementBlock("span",{key:2,innerHTML:i.icons.arrowSort},null,8,xP))],10,mP)):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:o=>{i.resetDates(s),i.resetFilter(s,a,o)},disabled:!n.filteredDatesIndexes[s]&&i.isResetDisabled(s,a),class:"th-reset"}," ✖ ",8,yP)])])):p.createCommentVNode("",!0),a.isSearch?p.withDirectives((p.openBlock(),p.createElementBlock("input",{key:1,placeholder:r.translations.inputPlaceholder,"onUpdate:modelValue":o=>n.searches[s]=o,onInput:e[4]||(e[4]=o=>i.debounce(i.filterBody,400)),name:`search_${s}`},null,40,CP)),[[p.vModelText,n.searches[s]]]):p.createCommentVNode("",!0),!n.hasNaN[s]&&a.isSort&&a.type!==n.constants.DATE?(p.openBlock(),p.createElementBlock("button",{key:2,onClick:o=>i.sortTh(s,o),class:p.normalizeClass({"th-button-active":[n.constants.DESC,n.constants.ASC].includes(n.sorts[s])})},[n.sorts[s]===n.constants.ASC?(p.openBlock(),p.createElementBlock("span",{key:0,innerHTML:[n.constants.NUMERIC].includes(a.type)?i.icons.sort09:i.icons.sortZA},null,8,bP)):n.sorts[s]===n.constants.DESC?(p.openBlock(),p.createElementBlock("span",{key:1,innerHTML:[n.constants.NUMERIC].includes(a.type)?i.icons.sort90:i.icons.sortAZ},null,8,FP)):(p.openBlock(),p.createElementBlock("span",{key:2,innerHTML:i.icons.arrowSort},null,8,SP))],10,EP)):p.createCommentVNode("",!0),a.isMultiselect?(p.openBlock(),p.createElementBlock("button",{key:3,onClick:o=>i.toggleMultiselect(s,a,o),innerHTML:i.icons.filter,class:p.normalizeClass({"th-button-active":n.multiselects[s]&&n.multiselects[s].length!==i.getDropdownOptions(s).length})},null,10,_P)):p.createCommentVNode("",!0),n.currentSelectionSpan.col===s&&i.canChart?(p.openBlock(),p.createElementBlock("button",{key:4,onClick:e[5]||(e[5]=o=>n.showChart=!n.showChart),innerHTML:i.icons.chart,class:p.normalizeClass({"th-button-active":n.showChart})},null,10,TP)):p.createCommentVNode("",!0),a.rangeFilter&&n.rangeFilters[s]&&!n.hasNaN[s]?(p.openBlock(),p.createElementBlock("div",UP,[p.createElementVNode("label",{for:`rangeMin${s}`},[LP,p.createTextVNode(" min "),NP],8,IP),p.withDirectives(p.createElementVNode("input",{type:"number",id:`rangeMin${s}`,max:n.immutableRangeFilters[s].max,min:n.immutableRangeFilters[s].min,"onUpdate:modelValue":o=>n.rangeFilters[s].min=o,onInput:e[6]||(e[6]=o=>i.debounce(i.filterBody,400))},null,40,QP),[[p.vModelText,n.rangeFilters[s].min,void 0,{number:!0}]]),p.withDirectives(p.createElementVNode("input",{type:"number",id:`rangeMax${s}`,max:n.immutableRangeFilters[s].max,min:n.immutableRangeFilters[s].min,"onUpdate:modelValue":o=>n.rangeFilters[s].max=o,onInput:e[7]||(e[7]=o=>i.debounce(i.filterBody,400))},null,40,OP),[[p.vModelText,n.rangeFilters[s].max,void 0,{number:!0}]]),p.createElementVNode("label",{for:`rangeMax${s}`},[DP,p.createTextVNode(" max "),PP],8,kP)])):p.createCommentVNode("",!0),i.canResetColumn(s,a)?(p.openBlock(),p.createElementBlock("button",{key:6,onClick:o=>i.resetFilter(s,a,o),disabled:i.isResetDisabled(s,a),class:"th-reset"}," ✖ ",8,RP)):p.createCommentVNode("",!0),a.isMultiselect?(p.openBlock(),p.createElementBlock("div",{key:7,class:"th-dropdown","data-is-open":"false",id:`th_dropdown_${s}`},[p.createElementVNode("button",{class:"close-dropdown",onClick:o=>i.toggleMultiselect(s,a,o)}," ✖ ",8,HP),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.getDropdownOptions(s),(o,l)=>(p.openBlock(),p.createElementBlock("span",{class:"th-option",key:`th_option_${s}_${l}`,onClick:c=>i.selectDropdownOption(o,s),onKeyup:[p.withKeys(c=>i.selectDropdownOption(o,s),["enter"]),p.withKeys(c=>i.selectDropdownOption(o,s),["space"])],style:p.normalizeStyle(`opacity:${i.isDropdownOptionSelected(o,s)?1:.5}`),tabindex:"0"},[i.isDropdownOptionSelected(o,s)?(p.openBlock(),p.createElementBlock("span",KP," ✔ ")):(p.openBlock(),p.createElementBlock("span",GP," ✖ ")),p.createElementVNode("span",null,p.toDisplayString(o),1)],44,VP))),128))],8,MP)):p.createCommentVNode("",!0)])],2))),128))])],64)):p.createCommentVNode("",!0),p.createElementVNode("tr",null,[jP,(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tableHead,(a,s)=>(p.openBlock(),p.createElementBlock("th",{key:`col_selector_${s}`,class:p.normalizeClass({"smart-table-col-selector":!n.hasNaN[s],"col-selector--selected":s===n.selectedColumn&&!n.hasNaN[s],"th-has-nan":n.hasNaN[s]})},[n.hasNaN[s]?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:0,innerHTML:n.tableHead[s].type===n.constants.NUMERIC?i.icons.chevronDown:"",class:p.normalizeClass({"col-selector":n.tableHead[s].type===n.constants.NUMERIC}),tabindex:"0",onClick:p.withModifiers(o=>i.selectColumn(s),["stop"]),onKeyup:p.withKeys(o=>i.selectColumn(s),["enter"])},null,42,WP))],2))),128))])]),p.createElementVNode("tbody",{onClick:e[8]||(e[8]=(...a)=>i.closeAllDropdowns&&i.closeAllDropdowns(...a)),onKeydown:e[9]||(e[9]=a=>i.navigateCell(a))},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.visibleRows,(a,s)=>(p.openBlock(),p.createElementBlock("tr",{key:`tbody_${s}`},[p.createElementVNode("td",zP,p.toDisplayString(a.absoluteIndex+1),1),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.td,(o,l)=>(p.openBlock(),p.createElementBlock("td",{key:`td_${s}_${l}`,style:p.normalizeStyle(i.isNumeric(o)||r.header[l].type===n.constants.DATE?"text-align:right;font-variant-numeric: tabular-nums;":""),onClick:c=>i.selectTd({td:o,rowIndex:s,colIndex:l,headerType:r.header[l].type,event:c}),onKeyup:[p.withKeys(c=>i.selectTd({td:o,rowIndex:s,colIndex:l,headerType:r.header[l].type,event:c}),["enter"]),p.withKeys(c=>i.selectTd({td:o,rowIndex:s,colIndex:l,headerType:r.header[l].type,event:c}),["space"])],class:p.normalizeClass({"td-numeric":r.header[l].type===n.constants.NUMERIC,"td-focusable":!0,"td-has-nan":n.hasNaN[l]}),id:`cell_${s}_${l}`,tabindex:"0"},[a.meta&&a.meta.markerIndices.includes(l)&&a.meta.unicodeIcon?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(`color:${a.meta.color};margin-right:3px`),innerHTML:a.meta.unicodeIcon},null,12,qP)):p.createCommentVNode("",!0),r.header[l].type===n.constants.DATE?(p.openBlock(),p.createElementBlock("span",YP,p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(new Date(o).toLocaleString().slice(0,10))+" "+p.toDisplayString(r.header[l].suffix),1)):r.header[l].isPercentage?(p.openBlock(),p.createElementBlock("span",$P,p.toDisplayString(Number((o*100).toFixed(r.header[l].decimals)).toLocaleString())+"% ",1)):n.percentages[l]&&r.header[l].percentageTo&&!r.header[l].isPercentage?(p.openBlock(),p.createElementBlock("span",{key:3,class:p.normalizeClass({"td-nan":isNaN(Number(o))})},p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(isNaN(Number(o))?`${o} is not ${n.constants.NUMERIC}`:Number(o.toFixed(r.header[l].decimals)).toLocaleString())+" "+p.toDisplayString(r.header[l].suffix)+" ("+p.toDisplayString(isNaN(Number(o))?"":Number((o/i.getSum(n.percentages[l].referenceIndex)*100).toFixed(r.header[l].decimals)).toLocaleString())+"%) ",3)):r.header[l].type===n.constants.NUMERIC?(p.openBlock(),p.createElementBlock("span",{key:4,class:p.normalizeClass({"td-nan":isNaN(Number(o))})},p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(isNaN(Number(o))?`${o} is not ${n.constants.NUMERIC}`:Number(o.toFixed(r.header[l].decimals)).toLocaleString())+" "+p.toDisplayString(r.header[l].suffix),3)):(p.openBlock(),p.createElementBlock("span",JP,p.toDisplayString(r.header[l].prefix)+" "+p.toDisplayString(o)+" "+p.toDisplayString(r.header[l].suffix),1))],46,XP))),128))]))),128))],32)])],4),p.createElementVNode("div",{class:p.normalizeClass({"td-selector-info":!0,"td-selector-info--active":n.currentSelectionSpan.col!==void 0&&n.currentSelectionSpan.rows.length})},[n.currentSelectionSpan.col!==void 0&&n.currentSelectionSpan.rows.length?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("div",{innerHTML:i.icons.table,class:"td-selector-icon"},null,8,ZP),p.createElementVNode("span",null,[p.createElementVNode("b",null,[p.createTextVNode(p.toDisplayString(r.header[n.currentSelectionSpan.col].name)+" ",1),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("span",e7," / "+p.toDisplayString(r.header[n.percentages[n.currentSelectionSpan.col].referenceIndex].name),1)):p.createCommentVNode("",!0)]),p.createElementVNode("span",t7,[p.createTextVNode(p.toDisplayString(r.translations.nb)+" : ",1),p.createElementVNode("b",r7,p.toDisplayString(n.currentSelectionSpan.rows.length),1)]),p.createElementVNode("span",A7,[p.createTextVNode(p.toDisplayString(r.translations.sum)+" : ",1),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",n7,p.toDisplayString(i.selectedCellsCalculations.sumPercentage),1)):(p.openBlock(),p.createElementBlock("b",i7,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.selectedCellsCalculations.sumRegular)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1)),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",a7,"%")):p.createCommentVNode("",!0)]),p.createElementVNode("span",s7,[p.createTextVNode(p.toDisplayString(r.translations.average)+" : ",1),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",o7,p.toDisplayString(i.selectedCellsCalculations.averagePercentage),1)):(p.openBlock(),p.createElementBlock("b",l7,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.selectedCellsCalculations.averageRegular)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1)),r.header[n.currentSelectionSpan.col].isPercentage?(p.openBlock(),p.createElementBlock("b",c7,"%")):p.createCommentVNode("",!0)])]),p.createElementVNode("button",{onClick:e[10]||(e[10]=(...a)=>i.resetSelection&&i.resetSelection(...a)),class:"td-selector-info-reset"}," ✖ ")],64)):p.createCommentVNode("",!0)],2),n.bodyCopy.length>10?(p.openBlock(),p.createElementBlock("div",f7,[p.createTextVNode(p.toDisplayString(r.translations.totalRows)+" : "+p.toDisplayString(r.body.length)+" | "+p.toDisplayString(r.translations.paginatorLabel)+" : ",1),n.bodyCopy.length>10?p.withDirectives((p.openBlock(),p.createElementBlock("select",{key:0,id:"paginatorSelector","onUpdate:modelValue":e[11]||(e[11]=a=>n.itemsPerPage=a),onChange:e[12]||(e[12]=(...a)=>i.resetSelection&&i.resetSelection(...a))},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.paginatorOptions,(a,s)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[n.bodyCopy.length>a||r.body.length===a?(p.openBlock(),p.createElementBlock("option",{key:`paginator_option_${s}`},p.toDisplayString(a),1)):p.createCommentVNode("",!0)],64))),256))],544)),[[p.vModelSelect,n.itemsPerPage,void 0,{number:!0}]]):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0),n.itemsPerPage>=250?(p.openBlock(),p.createElementBlock("div",u7,[p.createElementVNode("span",{innerHTML:i.icons.warning},null,8,h7),p.createTextVNode(p.toDisplayString(r.translations.sizeWarning),1)])):p.createCommentVNode("",!0),i.pages.length>1&&i.pages.length<=10?(p.openBlock(),p.createElementBlock("div",{key:2,class:"smart-table-navigation-indicator",style:p.normalizeStyle(`width:calc(${n.currentPage/(i.pages.length-1)*100}%)`)},null,4)):p.createCommentVNode("",!0),i.pages.length>1?(p.openBlock(),p.createElementBlock("div",d7,[p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[13]||(e[13]=p.withModifiers(a=>i.navigate("previous"),["stop"])),innerHTML:i.icons.chevronLeft,disabled:n.currentPage===0},null,8,g7),i.pages.length>3?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[14]||(e[14]=p.withModifiers(a=>i.navigate(1),["stop"])),disabled:n.currentPage===0}," 1 ",8,p7),i.pages.length>10?(p.openBlock(),p.createElementBlock("div",v7,[p.createElementVNode("label",m7,p.toDisplayString(r.translations.page)+" "+p.toDisplayString(n.currentPage+1)+" / "+p.toDisplayString(i.pages.length),1),p.createElementVNode("input",{class:"smart-table-page-scroller",id:"pageScroller",type:"range",step:"1",min:0,max:i.pages.length-1,onInput:e[15]||(e[15]=a=>i.updateCurrentPage(a)),value:n.currentPage},null,40,w7)])):(p.openBlock(),p.createElementBlock("span",B7,p.toDisplayString(r.translations.page)+" "+p.toDisplayString(n.currentPage+1)+" / "+p.toDisplayString(i.pages.length),1)),p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[16]||(e[16]=p.withModifiers(a=>i.navigate(i.pages.length),["stop"])),disabled:n.currentPage===i.pages.length-1},p.toDisplayString(i.pages.length),9,x7)],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createTextVNode(p.toDisplayString(r.translations.page)+" "+p.toDisplayString(n.currentPage+1)+" / "+p.toDisplayString(i.pages.length),1)],64)),p.createElementVNode("button",{class:"smart-table-navigation",onClick:e[17]||(e[17]=p.withModifiers(a=>i.navigate("next"),["stop"])),innerHTML:i.icons.chevronRight,disabled:n.currentPage===i.pages.length-1},null,8,y7)])):p.createCommentVNode("",!0),n.showChart&&i.canChart?(p.openBlock(),p.createElementBlock("div",{key:4,class:"smart-table-chart-modal",style:p.normalizeStyle(`top:${n.clientY}px; left:${n.clientX}px`)},[p.createElementVNode("button",{class:"close-chart-modal",onClick:e[18]||(e[18]=a=>n.showChart=!1)}," ✖ "),p.createElementVNode("div",C7,[i.availableDonutCategories.length?(p.openBlock(),p.createElementBlock("button",{key:0,onClick:e[19]||(e[19]=a=>n.showDonutOptions=!0),innerHTML:i.icons.donut,class:p.normalizeClass({"is-active-chart":n.chart.type===n.constants.DONUT||n.showDonutOptions})},null,10,E7)):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:e[20]||(e[20]=a=>{n.chart.type=n.constants.LINE,n.showDonutOptions=!1}),innerHTML:i.icons.chart,class:p.normalizeClass({"is-active-chart":n.chart.type===n.constants.LINE&&!n.showDonutOptions})},null,10,b7),p.createElementVNode("button",{onClick:e[21]||(e[21]=a=>{n.chart.type=n.constants.BAR,n.showDonutOptions=!1}),innerHTML:i.icons.bar,class:p.normalizeClass({"is-active-chart":n.chart.type===n.constants.BAR&&!n.showDonutOptions})},null,10,F7)]),p.createElementVNode("div",S7,[p.createElementVNode("b",null,[p.createTextVNode(p.toDisplayString(r.header[n.currentSelectionSpan.col].name)+" ",1),r.header[n.currentSelectionSpan.col].isPercentage&&r.header[n.currentSelectionSpan.col].percentageTo?(p.openBlock(),p.createElementBlock("span",_7," / "+p.toDisplayString(r.header[n.percentages[n.currentSelectionSpan.col].referenceIndex].name),1)):p.createCommentVNode("",!0),n.chart.type===n.constants.DONUT&&n.selectedDonutCategory&&n.selectedDonutCategory.name?(p.openBlock(),p.createElementBlock("span",T7,p.toDisplayString(r.translations.by)+" "+p.toDisplayString(n.selectedDonutCategory.name),1)):p.createCommentVNode("",!0)])]),p.createElementVNode("div",U7,[n.showDonutOptions&&i.availableDonutCategories.length?(p.openBlock(),p.createElementBlock("div",I7,[p.createElementVNode("fieldset",L7,[p.createElementVNode("legend",null,p.toDisplayString(r.translations.chooseCategoryColumn),1),p.createElementVNode("div",N7,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.availableDonutCategories,(a,s)=>(p.openBlock(),p.createElementBlock("div",{key:`donut_radio_${s}`,class:"smart-table-fieldset-option"},[p.createElementVNode("input",{type:"radio",name:a.name,id:a.name,checked:n.selectedDonutCategory&&a.name===n.selectedDonutCategory.name,onInput:o=>n.selectedDonutCategory=i.availableDonutCategories[s]},null,40,Q7),p.createElementVNode("label",{for:a.name},p.toDisplayString(a.name),9,O7)]))),128))]),p.createElementVNode("button",{class:"smart-table-generate-donut",disabled:!n.selectedDonutCategory,onClick:e[22]||(e[22]=(...a)=>i.applyDonutOption&&i.applyDonutOption(...a))},[p.createElementVNode("div",{style:{"margin-bottom":"-3px"},innerHTML:i.icons.donut},null,8,D7),p.createTextVNode(" "+p.toDisplayString(r.translations.makeDonut),1)],8,k7)])])):p.createCommentVNode("",!0),[n.constants.BAR,n.constants.LINE].includes(n.chart.type)&&!n.showDonutOptions?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[(p.openBlock(),p.createElementBlock("svg",{viewBox:`0 0 ${n.chart.width} ${n.chart.height}`,class:"smart-table-chart-svg"},[R7,p.createElementVNode("g",null,[p.createElementVNode("line",{x1:0,x2:n.chart.width,y1:i.chartData.zero,y2:i.chartData.zero,stroke:"#ccd1d4","stroke-width":"2","stroke-linecap":"round"},null,8,M7),p.createElementVNode("line",{x1:0,x2:0,y1:0,y2:n.chart.height,stroke:"#ccd1d4","stroke-width":"2","stroke-linecap":"round"},null,8,H7)]),n.chart.type===n.constants.LINE?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(i.chartData.plots,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`trap_fill_${s}`},[p.createElementVNode("rect",{x:s*i.chartData.slot,y:0,width:i.chartData.slot,height:n.chart.height,fill:n.selectedPlot===s?"rgba(0,0,0,0.03)":"transparent"},null,8,V7)]))),128)):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.chartData.plots,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`plot_${s}`},[n.chart.type===n.constants.BAR?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[K7,p.createElementVNode("rect",{x:a.x-i.chartData.slot/2,y:i.calcRectY(a.value,a.y),height:a.value>=0?i.chartData.zero-a.y:a.y-i.chartData.zero,width:i.chartData.slot,fill:n.selectedPlot===s?a.value>=0?"url(#barGradientSelected)":"url(#barGradientSelectedNeg)":(a.value>=0,"url(#barGradient)"),stroke:"white","stroke-width":"1"},null,8,G7),n.selectedPlot===s?(p.openBlock(),p.createElementBlock("foreignObject",{key:0,x:a.x-(i.chartData.slot<100?50:i.chartData.slot/2),y:a.value>=0?a.y-32:a.y+4,height:"20",width:i.chartData.slot<100?100:i.chartData.slot,style:{overflow:"visible"}},[p.createElementVNode("div",W7,p.toDisplayString(a.prefix)+" "+p.toDisplayString(Number(a.value.toFixed(r.header[n.currentSelectionSpan.col].decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix),1)],8,j7)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),n.chart.type===n.constants.LINE?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[s+1<i.chartData.plots.length?(p.openBlock(),p.createElementBlock("line",{key:0,x1:a.x,y1:a.y,x2:i.chartData.plots[s+1].x,y2:i.chartData.plots[s+1].y,"stroke-width":"3",stroke:"#6376DD75"},null,8,z7)):p.createCommentVNode("",!0),n.selectedPlot===s?(p.openBlock(),p.createElementBlock("line",{key:1,x1:a.x,y1:a.y,x2:a.x,y2:n.chart.height,stroke:"grey","stroke-width":"1","stroke-dasharray":"3"},null,8,X7)):p.createCommentVNode("",!0),p.createElementVNode("circle",{cx:a.x,cy:a.y,r:n.selectedPlot===s?6:4,fill:"#22348f",stroke:"white","stroke-width":"1"},null,8,q7),n.selectedPlot===s?(p.openBlock(),p.createElementBlock("foreignObject",{key:2,x:a.x-(i.chartData.slot<100?50:i.chartData.slot/2),y:i.placeLabelOnTopOrBottom({previousPlot:i.chartData.plots[s-1],currentPlot:a,nextPlot:i.chartData.plots[s+1]}),height:"20",width:i.chartData.slot<100?100:i.chartData.slot,style:{overflow:"visible"}},[p.createElementVNode("div",$7,p.toDisplayString(a.prefix)+" "+p.toDisplayString(Number(a.value.toFixed(r.header[n.currentSelectionSpan.col].decimals)).toLocaleString())+" "+p.toDisplayString(a.suffix),1)],8,Y7)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0)]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(i.chartData.plots,(a,s)=>(p.openBlock(),p.createElementBlock("g",{key:`trap_${s}`},[p.createElementVNode("rect",{x:s*i.chartData.slot,y:0,width:i.chartData.slot,height:n.chart.height,fill:"transparent",onMouseenter:o=>n.selectedPlot=s,onMouseleave:e[23]||(e[23]=o=>n.selectedPlot=void 0)},null,40,J7)]))),128)),i.chartData.progression&&i.chartData.plots.length>2?(p.openBlock(),p.createElementBlock("line",{key:1,x1:i.chartData.progression.x1,y1:i.chartData.progression.y1,x2:i.chartData.progression.x2,y2:i.chartData.progression.y2,stroke:"grey","stroke-width":"2","stroke-dasharray":"4","marker-end":"url(#arrowhead)"},null,8,Z7)):p.createCommentVNode("",!0)],8,P7)),i.chartData.plots.length>=2?(p.openBlock(),p.createElementBlock("div",eR,[tR,p.createTextVNode(" Trend: "),p.createElementVNode("span",null,p.toDisplayString(i.chartData.progression.slope<0?"+":"-"),1),p.createTextVNode(" "+p.toDisplayString((Math.abs(i.chartData.progression.slope)*100).toFixed(1))+" % ",1)])):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),[n.constants.DONUT].includes(n.chart.type)&&!n.showDonutOptions?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[(p.openBlock(),p.createElementBlock("svg",rR,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.currentDonut,(a,s)=>(p.openBlock(),p.createElementBlock("path",{key:`arc_${s}`,d:a.path,stroke:`${a.color}CC`,"stroke-width":20,fill:"none"},null,8,AR))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.currentDonut,(a,s)=>(p.openBlock(),p.createElementBlock("foreignObject",{key:`text_marker_${s}`,x:i.calcDonutMarkerLabelPositionX(a)-15,y:a.center.endY-15,height:"30",width:"30",style:{overflow:"visible",display:"flex","align-items":"center","justify-content":"center"}},[i.isArcBigEnough(a)?(p.openBlock(),p.createElementBlock("div",iR,[p.createElementVNode("b",null,p.toDisplayString(i.displayArcPercentage(a,n.currentDonut)),1),p.createElementVNode("span",aR,p.toDisplayString(a.name),1)])):p.createCommentVNode("",!0)],8,nR))),128)),p.createElementVNode("text",sR,p.toDisplayString(r.translations.total),1),p.createElementVNode("text",oR,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.donutHollowLabels.total)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].isPercentage?"%":"")+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1),p.createElementVNode("text",lR,p.toDisplayString(r.translations.average),1),p.createElementVNode("text",cR,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.donutHollowLabels.average)+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].isPercentage?"%":"")+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1)])),p.createElementVNode("div",fR,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.currentDonut.filter(a=>a.value>0),(a,s)=>(p.openBlock(),p.createElementBlock("div",{class:"smart-table-donut-legend-item",key:`donut_legend_${s}`},[p.createElementVNode("span",{style:p.normalizeStyle(`color:${a.color}`)},"●",4),p.createElementVNode("span",null,p.toDisplayString(a.name)+" : ",1),p.createElementVNode("b",null,p.toDisplayString(r.header[n.currentSelectionSpan.col].prefix)+" "+p.toDisplayString(i.getDonutLegendValue(a.absoluteValue))+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].isPercentage?"%":"")+" "+p.toDisplayString(r.header[n.currentSelectionSpan.col].suffix),1),p.createElementVNode("span",null,"("+p.toDisplayString((a.proportion*100).toFixed(1))+"%)",1)]))),128))])],64)):p.createCommentVNode("",!0)],512)],4)):p.createCommentVNode("",!0)],4)}const hR=H5(DD,[["render",uR],["__scopeId","data-v-cfc38e10"]]);/*! @license DOMPurify 2.4.7 | (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.7/LICENSE */function Ta(t){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(t)}function Bd(t,e){return Bd=Object.setPrototypeOf||function(A,n){return A.__proto__=n,A},Bd(t,e)}function dR(){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 k0(t,e,r){return dR()?k0=Reflect.construct:k0=function(n,i,a){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),l=new o;return a&&Bd(l,a.prototype),l},k0.apply(null,arguments)}function zn(t){return gR(t)||pR(t)||vR(t)||mR()}function gR(t){if(Array.isArray(t))return xd(t)}function pR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vR(t,e){if(t){if(typeof t=="string")return xd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xd(t,e)}}function xd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,A=new Array(e);r<e;r++)A[r]=t[r];return A}function mR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
374
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wR=Object.hasOwnProperty,V5=Object.setPrototypeOf,BR=Object.isFrozen,xR=Object.getPrototypeOf,yR=Object.getOwnPropertyDescriptor,KA=Object.freeze,Xn=Object.seal,CR=Object.create,K5=typeof Reflect<"u"&&Reflect,D0=K5.apply,yd=K5.construct;D0||(D0=function(e,r,A){return e.apply(r,A)}),KA||(KA=function(e){return e}),Xn||(Xn=function(e){return e}),yd||(yd=function(e,r){return k0(e,zn(r))});var ER=Tn(Array.prototype.forEach),G5=Tn(Array.prototype.pop),Jl=Tn(Array.prototype.push),P0=Tn(String.prototype.toLowerCase),Cd=Tn(String.prototype.toString),bR=Tn(String.prototype.match),qn=Tn(String.prototype.replace),FR=Tn(String.prototype.indexOf),SR=Tn(String.prototype.trim),GA=Tn(RegExp.prototype.test),Ed=_R(TypeError);function Tn(t){return function(e){for(var r=arguments.length,A=new Array(r>1?r-1:0),n=1;n<r;n++)A[n-1]=arguments[n];return D0(t,e,A)}}function _R(t){return function(){for(var e=arguments.length,r=new Array(e),A=0;A<e;A++)r[A]=arguments[A];return yd(t,r)}}function kt(t,e,r){var A;r=(A=r)!==null&&A!==void 0?A:P0,V5&&V5(t,null);for(var n=e.length;n--;){var i=e[n];if(typeof i=="string"){var a=r(i);a!==i&&(BR(e)||(e[n]=a),i=a)}t[i]=!0}return t}function ps(t){var e=CR(null),r;for(r in t)D0(wR,t,[r])===!0&&(e[r]=t[r]);return e}function R0(t,e){for(;t!==null;){var r=yR(t,e);if(r){if(r.get)return Tn(r.get);if(typeof r.value=="function")return Tn(r.value)}t=xR(t)}function A(n){return console.warn("fallback value for",n),null}return A}var j5=KA(["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"]),bd=KA(["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"]),Fd=KA(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),TR=KA(["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"]),Sd=KA(["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"]),UR=KA(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W5=KA(["#text"]),z5=KA(["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"]),_d=KA(["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"]),X5=KA(["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"]),M0=KA(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),IR=Xn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),LR=Xn(/<%[\w\W]*|[\w\W]*%>/gm),NR=Xn(/\${[\w\W]*}/gm),QR=Xn(/^data-[\-\w.\u00B7-\uFFFF]/),OR=Xn(/^aria-[\-\w]+$/),kR=Xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DR=Xn(/^(?:\w+script|data):/i),PR=Xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RR=Xn(/^html$/i),MR=function(){return typeof window>"u"?null:window},HR=function(e,r){if(Ta(e)!=="object"||typeof e.createPolicy!="function")return null;var A=null,n="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(n)&&(A=r.currentScript.getAttribute(n));var i="dompurify"+(A?"#"+A:"");try{return e.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function q5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MR(),e=function(H){return q5(H)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,A=t.document,n=t.DocumentFragment,i=t.HTMLTemplateElement,a=t.Node,s=t.Element,o=t.NodeFilter,l=t.NamedNodeMap,c=l===void 0?t.NamedNodeMap||t.MozNamedAttrMap:l,h=t.HTMLFormElement,d=t.DOMParser,u=t.trustedTypes,w=s.prototype,v=R0(w,"cloneNode"),x=R0(w,"nextSibling"),y=R0(w,"childNodes"),E=R0(w,"parentNode");if(typeof i=="function"){var F=A.createElement("template");F.content&&F.content.ownerDocument&&(A=F.content.ownerDocument)}var k=HR(u,r),X=k?k.createHTML(""):"",q=A,N=q.implementation,Q=q.createNodeIterator,K=q.createDocumentFragment,Ae=q.getElementsByTagName,U=r.importNode,T={};try{T=ps(A).documentMode?A.documentMode:{}}catch{}var V={};e.isSupported=typeof E=="function"&&N&&N.createHTMLDocument!==void 0&&T!==9;var Y=IR,ce=LR,he=NR,me=QR,ge=OR,we=DR,Be=PR,ke=kR,C=null,_=kt({},[].concat(zn(j5),zn(bd),zn(Fd),zn(Sd),zn(W5))),S=null,O=kt({},[].concat(zn(z5),zn(_d),zn(X5),zn(M0))),W=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}})),ie=null,oe=null,le=!0,ye=!0,Ne=!1,Re=!0,Xe=!1,qe=!1,_e=!1,re=!1,Qe=!1,rt=!1,Me=!1,We=!0,$e=!1,Je="user-content-",st=!0,nt=!1,ht={},mt=null,_t=kt({},["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"]),Ut=null,dt=kt({},["audio","video","img","source","image","track"]),yt=null,tt=kt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nr="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",fr="http://www.w3.org/1999/xhtml",Qt=fr,Kt=!1,qr=null,Pt=kt({},[nr,It,fr],Cd),Er,qt=["application/xhtml+xml","text/html"],rA="text/html",bt,Gt=null,Ct=A.createElement("form"),Ht=function(H){return H instanceof RegExp||H instanceof Function},gn=function(H){Gt&&Gt===H||((!H||Ta(H)!=="object")&&(H={}),H=ps(H),Er=qt.indexOf(H.PARSER_MEDIA_TYPE)===-1?Er=rA:Er=H.PARSER_MEDIA_TYPE,bt=Er==="application/xhtml+xml"?Cd:P0,C="ALLOWED_TAGS"in H?kt({},H.ALLOWED_TAGS,bt):_,S="ALLOWED_ATTR"in H?kt({},H.ALLOWED_ATTR,bt):O,qr="ALLOWED_NAMESPACES"in H?kt({},H.ALLOWED_NAMESPACES,Cd):Pt,yt="ADD_URI_SAFE_ATTR"in H?kt(ps(tt),H.ADD_URI_SAFE_ATTR,bt):tt,Ut="ADD_DATA_URI_TAGS"in H?kt(ps(dt),H.ADD_DATA_URI_TAGS,bt):dt,mt="FORBID_CONTENTS"in H?kt({},H.FORBID_CONTENTS,bt):_t,ie="FORBID_TAGS"in H?kt({},H.FORBID_TAGS,bt):{},oe="FORBID_ATTR"in H?kt({},H.FORBID_ATTR,bt):{},ht="USE_PROFILES"in H?H.USE_PROFILES:!1,le=H.ALLOW_ARIA_ATTR!==!1,ye=H.ALLOW_DATA_ATTR!==!1,Ne=H.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=H.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Xe=H.SAFE_FOR_TEMPLATES||!1,qe=H.WHOLE_DOCUMENT||!1,Qe=H.RETURN_DOM||!1,rt=H.RETURN_DOM_FRAGMENT||!1,Me=H.RETURN_TRUSTED_TYPE||!1,re=H.FORCE_BODY||!1,We=H.SANITIZE_DOM!==!1,$e=H.SANITIZE_NAMED_PROPS||!1,st=H.KEEP_CONTENT!==!1,nt=H.IN_PLACE||!1,ke=H.ALLOWED_URI_REGEXP||ke,Qt=H.NAMESPACE||fr,W=H.CUSTOM_ELEMENT_HANDLING||{},H.CUSTOM_ELEMENT_HANDLING&&Ht(H.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=H.CUSTOM_ELEMENT_HANDLING.tagNameCheck),H.CUSTOM_ELEMENT_HANDLING&&Ht(H.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=H.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),H.CUSTOM_ELEMENT_HANDLING&&typeof H.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=H.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xe&&(ye=!1),rt&&(Qe=!0),ht&&(C=kt({},zn(W5)),S=[],ht.html===!0&&(kt(C,j5),kt(S,z5)),ht.svg===!0&&(kt(C,bd),kt(S,_d),kt(S,M0)),ht.svgFilters===!0&&(kt(C,Fd),kt(S,_d),kt(S,M0)),ht.mathMl===!0&&(kt(C,Sd),kt(S,X5),kt(S,M0))),H.ADD_TAGS&&(C===_&&(C=ps(C)),kt(C,H.ADD_TAGS,bt)),H.ADD_ATTR&&(S===O&&(S=ps(S)),kt(S,H.ADD_ATTR,bt)),H.ADD_URI_SAFE_ATTR&&kt(yt,H.ADD_URI_SAFE_ATTR,bt),H.FORBID_CONTENTS&&(mt===_t&&(mt=ps(mt)),kt(mt,H.FORBID_CONTENTS,bt)),st&&(C["#text"]=!0),qe&&kt(C,["html","head","body"]),C.table&&(kt(C,["tbody"]),delete ie.tbody),KA&&KA(H),Gt=H)},Ir=kt({},["mi","mo","mn","ms","mtext"]),WA=kt({},["foreignobject","desc","title","annotation-xml"]),en=kt({},["title","style","font","a","script"]),gt=kt({},bd);kt(gt,Fd),kt(gt,TR);var yA=kt({},Sd);kt(yA,UR);var QA=function(H){var de=E(H);(!de||!de.tagName)&&(de={namespaceURI:Qt,tagName:"template"});var Se=P0(H.tagName),Ke=P0(de.tagName);return qr[H.namespaceURI]?H.namespaceURI===It?de.namespaceURI===fr?Se==="svg":de.namespaceURI===nr?Se==="svg"&&(Ke==="annotation-xml"||Ir[Ke]):!!gt[Se]:H.namespaceURI===nr?de.namespaceURI===fr?Se==="math":de.namespaceURI===It?Se==="math"&&WA[Ke]:!!yA[Se]:H.namespaceURI===fr?de.namespaceURI===It&&!WA[Ke]||de.namespaceURI===nr&&!Ir[Ke]?!1:!yA[Se]&&(en[Se]||!gt[Se]):!!(Er==="application/xhtml+xml"&&qr[H.namespaceURI]):!1},gr=function(H){Jl(e.removed,{element:H});try{H.parentNode.removeChild(H)}catch{try{H.outerHTML=X}catch{H.remove()}}},Br=function(H,de){try{Jl(e.removed,{attribute:de.getAttributeNode(H),from:de})}catch{Jl(e.removed,{attribute:null,from:de})}if(de.removeAttribute(H),H==="is"&&!S[H])if(Qe||rt)try{gr(de)}catch{}else try{de.setAttribute(H,"")}catch{}},xr=function(H){var de,Se;if(re)H="<remove></remove>"+H;else{var Ke=bR(H,/^[\r\n\t ]+/);Se=Ke&&Ke[0]}Er==="application/xhtml+xml"&&Qt===fr&&(H='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+H+"</body></html>");var Ve=k?k.createHTML(H):H;if(Qt===fr)try{de=new d().parseFromString(Ve,Er)}catch{}if(!de||!de.documentElement){de=N.createDocument(Qt,"template",null);try{de.documentElement.innerHTML=Kt?X:Ve}catch{}}var Ye=de.body||de.documentElement;return H&&Se&&Ye.insertBefore(A.createTextNode(Se),Ye.childNodes[0]||null),Qt===fr?Ae.call(de,qe?"html":"body")[0]:qe?de.documentElement:Ye},D=function(H){return Q.call(H.ownerDocument||H,H,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT,null,!1)},ee=function(H){return H instanceof h&&(typeof H.nodeName!="string"||typeof H.textContent!="string"||typeof H.removeChild!="function"||!(H.attributes instanceof c)||typeof H.removeAttribute!="function"||typeof H.setAttribute!="function"||typeof H.namespaceURI!="string"||typeof H.insertBefore!="function"||typeof H.hasChildNodes!="function")},j=function(H){return Ta(a)==="object"?H instanceof a:H&&Ta(H)==="object"&&typeof H.nodeType=="number"&&typeof H.nodeName=="string"},z=function(H,de,Se){V[H]&&ER(V[H],function(Ke){Ke.call(e,de,Se,Gt)})},Z=function(H){var de;if(z("beforeSanitizeElements",H,null),ee(H)||GA(/[\u0080-\uFFFF]/,H.nodeName))return gr(H),!0;var Se=bt(H.nodeName);if(z("uponSanitizeElement",H,{tagName:Se,allowedTags:C}),H.hasChildNodes()&&!j(H.firstElementChild)&&(!j(H.content)||!j(H.content.firstElementChild))&&GA(/<[/\w]/g,H.innerHTML)&&GA(/<[/\w]/g,H.textContent)||Se==="select"&&GA(/<template/i,H.innerHTML))return gr(H),!0;if(!C[Se]||ie[Se]){if(!ie[Se]&&Ee(Se)&&(W.tagNameCheck instanceof RegExp&&GA(W.tagNameCheck,Se)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Se)))return!1;if(st&&!mt[Se]){var Ke=E(H)||H.parentNode,Ve=y(H)||H.childNodes;if(Ve&&Ke)for(var Ye=Ve.length,ft=Ye-1;ft>=0;--ft)Ke.insertBefore(v(Ve[ft],!0),x(H))}return gr(H),!0}return H instanceof s&&!QA(H)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&GA(/<\/no(script|embed|frames)/i,H.innerHTML)?(gr(H),!0):(Xe&&H.nodeType===3&&(de=H.textContent,de=qn(de,Y," "),de=qn(de,ce," "),de=qn(de,he," "),H.textContent!==de&&(Jl(e.removed,{element:H.cloneNode()}),H.textContent=de)),z("afterSanitizeElements",H,null),!1)},te=function(H,de,Se){if(We&&(de==="id"||de==="name")&&(Se in A||Se in Ct))return!1;if(!(ye&&!oe[de]&&GA(me,de))){if(!(le&&GA(ge,de))){if(!S[de]||oe[de]){if(!(Ee(H)&&(W.tagNameCheck instanceof RegExp&&GA(W.tagNameCheck,H)||W.tagNameCheck instanceof Function&&W.tagNameCheck(H))&&(W.attributeNameCheck instanceof RegExp&&GA(W.attributeNameCheck,de)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(de))||de==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&GA(W.tagNameCheck,Se)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Se))))return!1}else if(!yt[de]){if(!GA(ke,qn(Se,Be,""))){if(!((de==="src"||de==="xlink:href"||de==="href")&&H!=="script"&&FR(Se,"data:")===0&&Ut[H])){if(!(Ne&&!GA(we,qn(Se,Be,"")))){if(Se)return!1}}}}}}return!0},Ee=function(H){return H.indexOf("-")>0},Te=function(H){var de,Se,Ke,Ve;z("beforeSanitizeAttributes",H,null);var Ye=H.attributes;if(Ye){var ft={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S};for(Ve=Ye.length;Ve--;){de=Ye[Ve];var Vt=de,Et=Vt.name,Cr=Vt.namespaceURI;if(Se=Et==="value"?de.value:SR(de.value),Ke=bt(Et),ft.attrName=Ke,ft.attrValue=Se,ft.keepAttr=!0,ft.forceKeepAttr=void 0,z("uponSanitizeAttribute",H,ft),Se=ft.attrValue,!ft.forceKeepAttr&&(Br(Et,H),!!ft.keepAttr)){if(!Re&&GA(/\/>/i,Se)){Br(Et,H);continue}Xe&&(Se=qn(Se,Y," "),Se=qn(Se,ce," "),Se=qn(Se,he," "));var tn=bt(H.nodeName);if(te(tn,Ke,Se)){if($e&&(Ke==="id"||Ke==="name")&&(Br(Et,H),Se=Je+Se),k&&Ta(u)==="object"&&typeof u.getAttributeType=="function"&&!Cr)switch(u.getAttributeType(tn,Ke)){case"TrustedHTML":{Se=k.createHTML(Se);break}case"TrustedScriptURL":{Se=k.createScriptURL(Se);break}}try{Cr?H.setAttributeNS(Cr,Et,Se):H.setAttribute(Et,Se),G5(e.removed)}catch{}}}}z("afterSanitizeAttributes",H,null)}},Ce=function ae(H){var de,Se=D(H);for(z("beforeSanitizeShadowDOM",H,null);de=Se.nextNode();)z("uponSanitizeShadowNode",de,null),!Z(de)&&(de.content instanceof n&&ae(de.content),Te(de));z("afterSanitizeShadowDOM",H,null)};return e.sanitize=function(ae){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de,Se,Ke,Ve,Ye;if(Kt=!ae,Kt&&(ae="<!-->"),typeof ae!="string"&&!j(ae))if(typeof ae.toString=="function"){if(ae=ae.toString(),typeof ae!="string")throw Ed("dirty is not a string, aborting")}else throw Ed("toString is not a function");if(!e.isSupported){if(Ta(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof ae=="string")return t.toStaticHTML(ae);if(j(ae))return t.toStaticHTML(ae.outerHTML)}return ae}if(_e||gn(H),e.removed=[],typeof ae=="string"&&(nt=!1),nt){if(ae.nodeName){var ft=bt(ae.nodeName);if(!C[ft]||ie[ft])throw Ed("root node is forbidden and cannot be sanitized in-place")}}else if(ae instanceof a)de=xr("<!---->"),Se=de.ownerDocument.importNode(ae,!0),Se.nodeType===1&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?de=Se:de.appendChild(Se);else{if(!Qe&&!Xe&&!qe&&ae.indexOf("<")===-1)return k&&Me?k.createHTML(ae):ae;if(de=xr(ae),!de)return Qe?null:Me?X:""}de&&re&&gr(de.firstChild);for(var Vt=D(nt?ae:de);Ke=Vt.nextNode();)Ke.nodeType===3&&Ke===Ve||Z(Ke)||(Ke.content instanceof n&&Ce(Ke.content),Te(Ke),Ve=Ke);if(Ve=null,nt)return ae;if(Qe){if(rt)for(Ye=K.call(de.ownerDocument);de.firstChild;)Ye.appendChild(de.firstChild);else Ye=de;return(S.shadowroot||S.shadowrootmod)&&(Ye=U.call(r,Ye,!0)),Ye}var Et=qe?de.outerHTML:de.innerHTML;return qe&&C["!doctype"]&&de.ownerDocument&&de.ownerDocument.doctype&&de.ownerDocument.doctype.name&&GA(RR,de.ownerDocument.doctype.name)&&(Et="<!DOCTYPE "+de.ownerDocument.doctype.name+`>
|
|
375
|
+
`+Et),Xe&&(Et=qn(Et,Y," "),Et=qn(Et,ce," "),Et=qn(Et,he," ")),k&&Me?k.createHTML(Et):Et},e.setConfig=function(ae){gn(ae),_e=!0},e.clearConfig=function(){Gt=null,_e=!1},e.isValidAttribute=function(ae,H,de){Gt||gn({});var Se=bt(ae),Ke=bt(H);return te(Se,Ke,de)},e.addHook=function(ae,H){typeof H=="function"&&(V[ae]=V[ae]||[],Jl(V[ae],H))},e.removeHook=function(ae){if(V[ae])return G5(V[ae])},e.removeHooks=function(ae){V[ae]&&(V[ae]=[])},e.removeAllHooks=function(){V={}},e}var VR=q5();const KR=Object.freeze(Object.defineProperty({__proto__:null,default:VR},Symbol.toStringTag,{value:"Module"}));var Zl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var H0=function(t){return t&&t.Math==Math&&t},tA=H0(typeof globalThis=="object"&&globalThis)||H0(typeof window=="object"&&window)||H0(typeof self=="object"&&self)||H0(typeof Zl=="object"&&Zl)||function(){return this}()||Zl||Function("return this")(),xo={},Rr=function(t){try{return!!t()}catch{return!0}},GR=Rr,Bi=!GR(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),jR=Rr,V0=!jR(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),WR=V0,K0=Function.prototype.call,xA=WR?K0.bind(K0):function(){return K0.apply(K0,arguments)},$5={},J5={}.propertyIsEnumerable,Z5=Object.getOwnPropertyDescriptor,zR=Z5&&!J5.call({1:2},1);$5.f=zR?function(e){var r=Z5(this,e);return!!r&&r.enumerable}:J5;var G0=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},ex=V0,tx=Function.prototype,Td=tx.call,XR=ex&&tx.bind.bind(Td,Td),Mr=ex?XR:function(t){return function(){return Td.apply(t,arguments)}},rx=Mr,qR=rx({}.toString),YR=rx("".slice),vs=function(t){return YR(qR(t),8,-1)},$R=Mr,JR=Rr,ZR=vs,Ud=Object,eM=$R("".split),Ax=JR(function(){return!Ud("z").propertyIsEnumerable(0)})?function(t){return ZR(t)=="String"?eM(t,""):Ud(t)}:Ud,ms=function(t){return t==null},tM=ms,rM=TypeError,xi=function(t){if(tM(t))throw rM("Can't call method on "+t);return t},AM=Ax,nM=xi,ec=function(t){return AM(nM(t))},Id=typeof document=="object"&&document.all,iM=typeof Id>"u"&&Id!==void 0,nx={all:Id,IS_HTMLDDA:iM},ix=nx,aM=ix.all,Tr=ix.IS_HTMLDDA?function(t){return typeof t=="function"||t===aM}:function(t){return typeof t=="function"},ax=Tr,sx=nx,sM=sx.all,Ki=sx.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:ax(t)||t===sM}:function(t){return typeof t=="object"?t!==null:ax(t)},Ld=tA,oM=Tr,lM=function(t){return oM(t)?t:void 0},ws=function(t,e){return arguments.length<2?lM(Ld[t]):Ld[t]&&Ld[t][e]},cM=Mr,j0=cM({}.isPrototypeOf),W0=typeof navigator<"u"&&String(navigator.userAgent)||"",ox=tA,Nd=W0,lx=ox.process,cx=ox.Deno,fx=lx&&lx.versions||cx&&cx.version,ux=fx&&fx.v8,Yn,z0;ux&&(Yn=ux.split("."),z0=Yn[0]>0&&Yn[0]<4?1:+(Yn[0]+Yn[1])),!z0&&Nd&&(Yn=Nd.match(/Edge\/(\d+)/),(!Yn||Yn[1]>=74)&&(Yn=Nd.match(/Chrome\/(\d+)/),Yn&&(z0=+Yn[1])));var Qd=z0,hx=Qd,fM=Rr,uM=tA,hM=uM.String,dx=!!Object.getOwnPropertySymbols&&!fM(function(){var t=Symbol();return!hM(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&hx&&hx<41}),dM=dx,gx=dM&&!Symbol.sham&&typeof Symbol.iterator=="symbol",gM=ws,pM=Tr,vM=j0,mM=gx,wM=Object,px=mM?function(t){return typeof t=="symbol"}:function(t){var e=gM("Symbol");return pM(e)&&vM(e.prototype,wM(t))},BM=String,X0=function(t){try{return BM(t)}catch{return"Object"}},xM=Tr,yM=X0,CM=TypeError,Gi=function(t){if(xM(t))return t;throw CM(yM(t)+" is not a function")},EM=Gi,bM=ms,yo=function(t,e){var r=t[e];return bM(r)?void 0:EM(r)},Od=xA,kd=Tr,Dd=Ki,FM=TypeError,SM=function(t,e){var r,A;if(e==="string"&&kd(r=t.toString)&&!Dd(A=Od(r,t))||kd(r=t.valueOf)&&!Dd(A=Od(r,t))||e!=="string"&&kd(r=t.toString)&&!Dd(A=Od(r,t)))return A;throw FM("Can't convert object to primitive value")},vx={exports:{}},mx=tA,_M=Object.defineProperty,Pd=function(t,e){try{_M(mx,t,{value:e,configurable:!0,writable:!0})}catch{mx[t]=e}return e},TM=tA,UM=Pd,wx="__core-js_shared__",IM=TM[wx]||UM(wx,{}),Rd=IM,Bx=Rd;(vx.exports=function(t,e){return Bx[t]||(Bx[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.31.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Md=vx.exports,LM=xi,NM=Object,q0=function(t){return NM(LM(t))},QM=Mr,OM=q0,kM=QM({}.hasOwnProperty),$n=Object.hasOwn||function(e,r){return kM(OM(e),r)},DM=Mr,PM=0,RM=Math.random(),MM=DM(1 .toString),xx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+MM(++PM+RM,36)},HM=tA,VM=Md,yx=$n,KM=xx,GM=dx,jM=gx,Co=HM.Symbol,Hd=VM("wks"),WM=jM?Co.for||Co:Co&&Co.withoutSetter||KM,lA=function(t){return yx(Hd,t)||(Hd[t]=GM&&yx(Co,t)?Co[t]:WM("Symbol."+t)),Hd[t]},zM=xA,Cx=Ki,Ex=px,XM=yo,qM=SM,YM=lA,$M=TypeError,JM=YM("toPrimitive"),ZM=function(t,e){if(!Cx(t)||Ex(t))return t;var r=XM(t,JM),A;if(r){if(e===void 0&&(e="default"),A=zM(r,t,e),!Cx(A)||Ex(A))return A;throw $M("Can't convert object to primitive value")}return e===void 0&&(e="number"),qM(t,e)},eH=ZM,tH=px,Vd=function(t){var e=eH(t,"string");return tH(e)?e:e+""},rH=tA,bx=Ki,Kd=rH.document,AH=bx(Kd)&&bx(Kd.createElement),Y0=function(t){return AH?Kd.createElement(t):{}},nH=Bi,iH=Rr,aH=Y0,Fx=!nH&&!iH(function(){return Object.defineProperty(aH("div"),"a",{get:function(){return 7}}).a!=7}),sH=Bi,oH=xA,lH=$5,cH=G0,fH=ec,uH=Vd,hH=$n,dH=Fx,Sx=Object.getOwnPropertyDescriptor;xo.f=sH?Sx:function(e,r){if(e=fH(e),r=uH(r),dH)try{return Sx(e,r)}catch{}if(hH(e,r))return cH(!oH(lH.f,e,r),e[r])};var yi={},gH=Bi,pH=Rr,_x=gH&&pH(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),vH=Ki,mH=String,wH=TypeError,LA=function(t){if(vH(t))return t;throw wH(mH(t)+" is not an object")},BH=Bi,xH=Fx,yH=_x,$0=LA,Tx=Vd,CH=TypeError,Gd=Object.defineProperty,EH=Object.getOwnPropertyDescriptor,jd="enumerable",Wd="configurable",zd="writable";yi.f=BH?yH?function(e,r,A){if($0(e),r=Tx(r),$0(A),typeof e=="function"&&r==="prototype"&&"value"in A&&zd in A&&!A[zd]){var n=EH(e,r);n&&n[zd]&&(e[r]=A.value,A={configurable:Wd in A?A[Wd]:n[Wd],enumerable:jd in A?A[jd]:n[jd],writable:!1})}return Gd(e,r,A)}:Gd:function(e,r,A){if($0(e),r=Tx(r),$0(A),xH)try{return Gd(e,r,A)}catch{}if("get"in A||"set"in A)throw CH("Accessors not supported");return"value"in A&&(e[r]=A.value),e};var bH=Bi,FH=yi,SH=G0,tc=bH?function(t,e,r){return FH.f(t,e,SH(1,r))}:function(t,e,r){return t[e]=r,t},Ux={exports:{}},Xd=Bi,_H=$n,Ix=Function.prototype,TH=Xd&&Object.getOwnPropertyDescriptor,qd=_H(Ix,"name"),UH=qd&&(function(){}).name==="something",IH=qd&&(!Xd||Xd&&TH(Ix,"name").configurable),J0={EXISTS:qd,PROPER:UH,CONFIGURABLE:IH},LH=Mr,NH=Tr,Yd=Rd,QH=LH(Function.toString);NH(Yd.inspectSource)||(Yd.inspectSource=function(t){return QH(t)});var $d=Yd.inspectSource,OH=tA,kH=Tr,Lx=OH.WeakMap,DH=kH(Lx)&&/native code/.test(String(Lx)),PH=Md,RH=xx,Nx=PH("keys"),Jd=function(t){return Nx[t]||(Nx[t]=RH(t))},Zd={},MH=DH,Qx=tA,HH=Ki,VH=tc,eg=$n,tg=Rd,KH=Jd,GH=Zd,Ox="Object already initialized",rg=Qx.TypeError,jH=Qx.WeakMap,Z0,rc,eu,WH=function(t){return eu(t)?rc(t):Z0(t,{})},zH=function(t){return function(e){var r;if(!HH(e)||(r=rc(e)).type!==t)throw rg("Incompatible receiver, "+t+" required");return r}};if(MH||tg.state){var Ci=tg.state||(tg.state=new jH);Ci.get=Ci.get,Ci.has=Ci.has,Ci.set=Ci.set,Z0=function(t,e){if(Ci.has(t))throw rg(Ox);return e.facade=t,Ci.set(t,e),e},rc=function(t){return Ci.get(t)||{}},eu=function(t){return Ci.has(t)}}else{var Eo=KH("state");GH[Eo]=!0,Z0=function(t,e){if(eg(t,Eo))throw rg(Ox);return e.facade=t,VH(t,Eo,e),e},rc=function(t){return eg(t,Eo)?t[Eo]:{}},eu=function(t){return eg(t,Eo)}}var tu={set:Z0,get:rc,has:eu,enforce:WH,getterFor:zH},Ag=Mr,XH=Rr,qH=Tr,ru=$n,ng=Bi,YH=J0.CONFIGURABLE,$H=$d,kx=tu,JH=kx.enforce,ZH=kx.get,Dx=String,Au=Object.defineProperty,e9=Ag("".slice),t9=Ag("".replace),r9=Ag([].join),A9=ng&&!XH(function(){return Au(function(){},"length",{value:8}).length!==8}),n9=String(String).split("String"),i9=Ux.exports=function(t,e,r){e9(Dx(e),0,7)==="Symbol("&&(e="["+t9(Dx(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!ru(t,"name")||YH&&t.name!==e)&&(ng?Au(t,"name",{value:e,configurable:!0}):t.name=e),A9&&r&&ru(r,"arity")&&t.length!==r.arity&&Au(t,"length",{value:r.arity});try{r&&ru(r,"constructor")&&r.constructor?ng&&Au(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var A=JH(t);return ru(A,"source")||(A.source=r9(n9,typeof e=="string"?e:"")),t};Function.prototype.toString=i9(function(){return qH(this)&&ZH(this).source||$H(this)},"toString");var Px=Ux.exports,a9=Tr,s9=yi,o9=Px,l9=Pd,Bs=function(t,e,r,A){A||(A={});var n=A.enumerable,i=A.name!==void 0?A.name:e;if(a9(r)&&o9(r,i,A),A.global)n?t[e]=r:l9(e,r);else{try{A.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=r:s9.f(t,e,{value:r,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return t},Rx={},c9=Math.ceil,f9=Math.floor,u9=Math.trunc||function(e){var r=+e;return(r>0?f9:c9)(r)},h9=u9,nu=function(t){var e=+t;return e!==e||e===0?0:h9(e)},d9=nu,g9=Math.max,p9=Math.min,Mx=function(t,e){var r=d9(t);return r<0?g9(r+e,0):p9(r,e)},v9=nu,m9=Math.min,bo=function(t){return t>0?m9(v9(t),9007199254740991):0},w9=bo,iu=function(t){return w9(t.length)},B9=ec,x9=Mx,y9=iu,Hx=function(t){return function(e,r,A){var n=B9(e),i=y9(n),a=x9(A,i),s;if(t&&r!=r){for(;i>a;)if(s=n[a++],s!=s)return!0}else for(;i>a;a++)if((t||a in n)&&n[a]===r)return t||a||0;return!t&&-1}},Vx={includes:Hx(!0),indexOf:Hx(!1)},C9=Mr,ig=$n,E9=ec,b9=Vx.indexOf,F9=Zd,Kx=C9([].push),Gx=function(t,e){var r=E9(t),A=0,n=[],i;for(i in r)!ig(F9,i)&&ig(r,i)&&Kx(n,i);for(;e.length>A;)ig(r,i=e[A++])&&(~b9(n,i)||Kx(n,i));return n},ag=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],S9=Gx,_9=ag,T9=_9.concat("length","prototype");Rx.f=Object.getOwnPropertyNames||function(e){return S9(e,T9)};var jx={};jx.f=Object.getOwnPropertySymbols;var U9=ws,I9=Mr,L9=Rx,N9=jx,Q9=LA,O9=I9([].concat),k9=U9("Reflect","ownKeys")||function(e){var r=L9.f(Q9(e)),A=N9.f;return A?O9(r,A(e)):r},Wx=$n,D9=k9,P9=xo,R9=yi,M9=function(t,e,r){for(var A=D9(e),n=R9.f,i=P9.f,a=0;a<A.length;a++){var s=A[a];!Wx(t,s)&&!(r&&Wx(r,s))&&n(t,s,i(e,s))}},H9=Rr,V9=Tr,K9=/#|\.prototype\./,Ac=function(t,e){var r=j9[G9(t)];return r==z9?!0:r==W9?!1:V9(e)?H9(e):!!e},G9=Ac.normalize=function(t){return String(t).replace(K9,".").toLowerCase()},j9=Ac.data={},W9=Ac.NATIVE="N",z9=Ac.POLYFILL="P",zx=Ac,sg=tA,X9=xo.f,q9=tc,Y9=Bs,$9=Pd,J9=M9,Z9=zx,jA=function(t,e){var r=t.target,A=t.global,n=t.stat,i,a,s,o,l,c;if(A?a=sg:n?a=sg[r]||$9(r,{}):a=(sg[r]||{}).prototype,a)for(s in e){if(l=e[s],t.dontCallGetSet?(c=X9(a,s),o=c&&c.value):o=a[s],i=Z9(A?s:r+(n?".":"#")+s,t.forced),!i&&o!==void 0){if(typeof l==typeof o)continue;J9(l,o)}(t.sham||o&&o.sham)&&q9(l,"sham",!0),Y9(a,s,l,t)}},eV=vs,nc=typeof process<"u"&&eV(process)=="process",tV=Mr,rV=Gi,AV=function(t,e,r){try{return tV(rV(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}},nV=Tr,iV=String,aV=TypeError,sV=function(t){if(typeof t=="object"||nV(t))return t;throw aV("Can't set "+iV(t)+" as a prototype")},oV=AV,lV=LA,cV=sV,Xx=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=oV(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch{}return function(n,i){return lV(n),cV(i),t?r(n,i):n.__proto__=i,n}}():void 0),fV=yi.f,uV=$n,hV=lA,qx=hV("toStringTag"),og=function(t,e,r){t&&!r&&(t=t.prototype),t&&!uV(t,qx)&&fV(t,qx,{configurable:!0,value:e})},Yx=Px,dV=yi,gV=function(t,e,r){return r.get&&Yx(r.get,e,{getter:!0}),r.set&&Yx(r.set,e,{setter:!0}),dV.f(t,e,r)},pV=ws,vV=gV,mV=lA,wV=Bi,$x=mV("species"),BV=function(t){var e=pV(t);wV&&e&&!e[$x]&&vV(e,$x,{configurable:!0,get:function(){return this}})},xV=j0,yV=TypeError,CV=function(t,e){if(xV(e,t))return t;throw yV("Incorrect invocation")},EV=lA,bV=EV("toStringTag"),Jx={};Jx[bV]="z";var FV=String(Jx)==="[object z]",SV=FV,_V=Tr,au=vs,TV=lA,UV=TV("toStringTag"),IV=Object,LV=au(function(){return arguments}())=="Arguments",NV=function(t,e){try{return t[e]}catch{}},lg=SV?au:function(t){var e,r,A;return t===void 0?"Undefined":t===null?"Null":typeof(r=NV(e=IV(t),UV))=="string"?r:LV?au(e):(A=au(e))=="Object"&&_V(e.callee)?"Arguments":A},QV=Mr,OV=Rr,Zx=Tr,kV=lg,DV=ws,PV=$d,ey=function(){},RV=[],ty=DV("Reflect","construct"),cg=/^\s*(?:class|function)\b/,MV=QV(cg.exec),HV=!cg.exec(ey),ic=function(e){if(!Zx(e))return!1;try{return ty(ey,RV,e),!0}catch{return!1}},ry=function(e){if(!Zx(e))return!1;switch(kV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return HV||!!MV(cg,PV(e))}catch{return!0}};ry.sham=!0;var VV=!ty||OV(function(){var t;return ic(ic.call)||!ic(Object)||!ic(function(){t=!0})||t})?ry:ic,KV=VV,GV=X0,jV=TypeError,WV=function(t){if(KV(t))return t;throw jV(GV(t)+" is not a constructor")},Ay=LA,zV=WV,XV=ms,qV=lA,YV=qV("species"),ny=function(t,e){var r=Ay(t).constructor,A;return r===void 0||XV(A=Ay(r)[YV])?e:zV(A)},$V=V0,iy=Function.prototype,ay=iy.apply,sy=iy.call,fg=typeof Reflect=="object"&&Reflect.apply||($V?sy.bind(ay):function(){return sy.apply(ay,arguments)}),JV=vs,ZV=Mr,ac=function(t){if(JV(t)==="Function")return ZV(t)},oy=ac,eK=Gi,tK=V0,rK=oy(oy.bind),ug=function(t,e){return eK(t),e===void 0?t:tK?rK(t,e):function(){return t.apply(e,arguments)}},AK=ws,ly=AK("document","documentElement"),nK=Mr,iK=nK([].slice),aK=TypeError,sK=function(t,e){if(t<e)throw aK("Not enough arguments");return t},oK=W0,cy=/(?:ipad|iphone|ipod).*applewebkit/i.test(oK),dn=tA,lK=fg,cK=ug,fy=Tr,fK=$n,uy=Rr,hy=ly,uK=iK,dy=Y0,hK=sK,dK=cy,gK=nc,hg=dn.setImmediate,dg=dn.clearImmediate,pK=dn.process,gg=dn.Dispatch,vK=dn.Function,gy=dn.MessageChannel,mK=dn.String,pg=0,sc={},py="onreadystatechange",oc,xs,vg,mg;uy(function(){oc=dn.location});var wg=function(t){if(fK(sc,t)){var e=sc[t];delete sc[t],e()}},Bg=function(t){return function(){wg(t)}},vy=function(t){wg(t.data)},my=function(t){dn.postMessage(mK(t),oc.protocol+"//"+oc.host)};(!hg||!dg)&&(hg=function(e){hK(arguments.length,1);var r=fy(e)?e:vK(e),A=uK(arguments,1);return sc[++pg]=function(){lK(r,void 0,A)},xs(pg),pg},dg=function(e){delete sc[e]},gK?xs=function(t){pK.nextTick(Bg(t))}:gg&&gg.now?xs=function(t){gg.now(Bg(t))}:gy&&!dK?(vg=new gy,mg=vg.port2,vg.port1.onmessage=vy,xs=cK(mg.postMessage,mg)):dn.addEventListener&&fy(dn.postMessage)&&!dn.importScripts&&oc&&oc.protocol!=="file:"&&!uy(my)?(xs=my,dn.addEventListener("message",vy,!1)):py in dy("script")?xs=function(t){hy.appendChild(dy("script"))[py]=function(){hy.removeChild(this),wg(t)}}:xs=function(t){setTimeout(Bg(t),0)});var wy={set:hg,clear:dg},By=function(){this.head=null,this.tail=null};By.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var xy=By,wK=W0,BK=/ipad|iphone|ipod/i.test(wK)&&typeof Pebble<"u",xK=W0,yK=/web0s(?!.*chrome)/i.test(xK),ys=tA,yy=ug,CK=xo.f,xg=wy.set,EK=xy,bK=cy,FK=BK,SK=yK,yg=nc,Cy=ys.MutationObserver||ys.WebKitMutationObserver,Ey=ys.document,by=ys.process,su=ys.Promise,Fy=CK(ys,"queueMicrotask"),Cg=Fy&&Fy.value,Fo,Eg,bg,ou,Sy;if(!Cg){var lu=new EK,cu=function(){var t,e;for(yg&&(t=by.domain)&&t.exit();e=lu.get();)try{e()}catch(r){throw lu.head&&Fo(),r}t&&t.enter()};!bK&&!yg&&!SK&&Cy&&Ey?(Eg=!0,bg=Ey.createTextNode(""),new Cy(cu).observe(bg,{characterData:!0}),Fo=function(){bg.data=Eg=!Eg}):!FK&&su&&su.resolve?(ou=su.resolve(void 0),ou.constructor=su,Sy=yy(ou.then,ou),Fo=function(){Sy(cu)}):yg?Fo=function(){by.nextTick(cu)}:(xg=yy(xg,ys),Fo=function(){xg(cu)}),Cg=function(t){lu.head||Fo(),lu.add(t)}}var _K=Cg,TK=function(t,e){try{arguments.length==1?console.error(t):console.error(t,e)}catch{}},Fg=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},UK=tA,fu=UK.Promise,_y=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",IK=_y,LK=nc,NK=!IK&&!LK&&typeof window=="object"&&typeof document=="object",QK=tA,lc=fu,OK=Tr,kK=zx,DK=$d,PK=lA,RK=NK,MK=_y,Sg=Qd;lc&&lc.prototype;var HK=PK("species"),_g=!1,Ty=OK(QK.PromiseRejectionEvent),VK=kK("Promise",function(){var t=DK(lc),e=t!==String(lc);if(!e&&Sg===66)return!0;if(!Sg||Sg<51||!/native code/.test(t)){var r=new lc(function(i){i(1)}),A=function(i){i(function(){},function(){})},n=r.constructor={};if(n[HK]=A,_g=r.then(function(){})instanceof A,!_g)return!0}return!e&&(RK||MK)&&!Ty}),cc={CONSTRUCTOR:VK,REJECTION_EVENT:Ty,SUBCLASSING:_g},So={},Uy=Gi,KK=TypeError,GK=function(t){var e,r;this.promise=new t(function(A,n){if(e!==void 0||r!==void 0)throw KK("Bad Promise constructor");e=A,r=n}),this.resolve=Uy(e),this.reject=Uy(r)};So.f=function(t){return new GK(t)};var jK=jA,uu=nc,Ua=tA,_o=xA,Iy=Bs,Ly=Xx,WK=og,zK=BV,XK=Gi,hu=Tr,qK=Ki,YK=CV,$K=ny,Ny=wy.set,Tg=_K,JK=TK,ZK=Fg,eG=xy,Qy=tu,du=fu,Ug=cc,Oy=So,gu="Promise",ky=Ug.CONSTRUCTOR,tG=Ug.REJECTION_EVENT,rG=Ug.SUBCLASSING,Ig=Qy.getterFor(gu),AG=Qy.set,To=du&&du.prototype,Cs=du,pu=To,Dy=Ua.TypeError,Lg=Ua.document,Ng=Ua.process,Qg=Oy.f,nG=Qg,iG=!!(Lg&&Lg.createEvent&&Ua.dispatchEvent),Py="unhandledrejection",aG="rejectionhandled",Ry=0,My=1,sG=2,Og=1,Hy=2,vu,Vy,oG,Ky,Gy=function(t){var e;return qK(t)&&hu(e=t.then)?e:!1},jy=function(t,e){var r=e.value,A=e.state==My,n=A?t.ok:t.fail,i=t.resolve,a=t.reject,s=t.domain,o,l,c;try{n?(A||(e.rejection===Hy&&cG(e),e.rejection=Og),n===!0?o=r:(s&&s.enter(),o=n(r),s&&(s.exit(),c=!0)),o===t.promise?a(Dy("Promise-chain cycle")):(l=Gy(o))?_o(l,o,i,a):i(o)):a(r)}catch(h){s&&!c&&s.exit(),a(h)}},Wy=function(t,e){t.notified||(t.notified=!0,Tg(function(){for(var r=t.reactions,A;A=r.get();)jy(A,t);t.notified=!1,e&&!t.rejection&&lG(t)}))},zy=function(t,e,r){var A,n;iG?(A=Lg.createEvent("Event"),A.promise=e,A.reason=r,A.initEvent(t,!1,!0),Ua.dispatchEvent(A)):A={promise:e,reason:r},!tG&&(n=Ua["on"+t])?n(A):t===Py&&JK("Unhandled promise rejection",r)},lG=function(t){_o(Ny,Ua,function(){var e=t.facade,r=t.value,A=Xy(t),n;if(A&&(n=ZK(function(){uu?Ng.emit("unhandledRejection",r,e):zy(Py,e,r)}),t.rejection=uu||Xy(t)?Hy:Og,n.error))throw n.value})},Xy=function(t){return t.rejection!==Og&&!t.parent},cG=function(t){_o(Ny,Ua,function(){var e=t.facade;uu?Ng.emit("rejectionHandled",e):zy(aG,e,t.value)})},Uo=function(t,e,r){return function(A){t(e,A,r)}},Io=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=sG,Wy(t,!0))},kg=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Dy("Promise can't be resolved itself");var A=Gy(e);A?Tg(function(){var n={done:!1};try{_o(A,e,Uo(kg,n,t),Uo(Io,n,t))}catch(i){Io(n,i,t)}}):(t.value=e,t.state=My,Wy(t,!1))}catch(n){Io({done:!1},n,t)}}};if(ky&&(Cs=function(e){YK(this,pu),XK(e),_o(vu,this);var r=Ig(this);try{e(Uo(kg,r),Uo(Io,r))}catch(A){Io(r,A)}},pu=Cs.prototype,vu=function(e){AG(this,{type:gu,done:!1,notified:!1,parent:!1,reactions:new eG,rejection:!1,state:Ry,value:void 0})},vu.prototype=Iy(pu,"then",function(e,r){var A=Ig(this),n=Qg($K(this,Cs));return A.parent=!0,n.ok=hu(e)?e:!0,n.fail=hu(r)&&r,n.domain=uu?Ng.domain:void 0,A.state==Ry?A.reactions.add(n):Tg(function(){jy(n,A)}),n.promise}),Vy=function(){var t=new vu,e=Ig(t);this.promise=t,this.resolve=Uo(kg,e),this.reject=Uo(Io,e)},Oy.f=Qg=function(t){return t===Cs||t===oG?new Vy(t):nG(t)},hu(du)&&To!==Object.prototype)){Ky=To.then,rG||Iy(To,"then",function(e,r){var A=this;return new Cs(function(n,i){_o(Ky,A,n,i)}).then(e,r)},{unsafe:!0});try{delete To.constructor}catch{}Ly&&Ly(To,pu)}jK({global:!0,constructor:!0,wrap:!0,forced:ky},{Promise:Cs}),WK(Cs,gu,!1),zK(gu);var fc={},fG=lA,uG=fc,hG=fG("iterator"),dG=Array.prototype,gG=function(t){return t!==void 0&&(uG.Array===t||dG[hG]===t)},pG=lg,qy=yo,vG=ms,mG=fc,wG=lA,BG=wG("iterator"),Yy=function(t){if(!vG(t))return qy(t,BG)||qy(t,"@@iterator")||mG[pG(t)]},xG=xA,yG=Gi,CG=LA,EG=X0,bG=Yy,FG=TypeError,SG=function(t,e){var r=arguments.length<2?bG(t):e;if(yG(r))return CG(xG(r,t));throw FG(EG(t)+" is not iterable")},_G=xA,$y=LA,TG=yo,UG=function(t,e,r){var A,n;$y(t);try{if(A=TG(t,"return"),!A){if(e==="throw")throw r;return r}A=_G(A,t)}catch(i){n=!0,A=i}if(e==="throw")throw r;if(n)throw A;return $y(A),r},IG=ug,LG=xA,NG=LA,QG=X0,OG=gG,kG=iu,Jy=j0,DG=SG,PG=Yy,Zy=UG,RG=TypeError,mu=function(t,e){this.stopped=t,this.result=e},e4=mu.prototype,t4=function(t,e,r){var A=r&&r.that,n=!!(r&&r.AS_ENTRIES),i=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),o=IG(e,A),l,c,h,d,u,w,v,x=function(E){return l&&Zy(l,"normal",E),new mu(!0,E)},y=function(E){return n?(NG(E),s?o(E[0],E[1],x):o(E[0],E[1])):s?o(E,x):o(E)};if(i)l=t.iterator;else if(a)l=t;else{if(c=PG(t),!c)throw RG(QG(t)+" is not iterable");if(OG(c)){for(h=0,d=kG(t);d>h;h++)if(u=y(t[h]),u&&Jy(e4,u))return u;return new mu(!1)}l=DG(t,c)}for(w=i?t.next:l.next;!(v=LG(w,l)).done;){try{u=y(v.value)}catch(E){Zy(l,"throw",E)}if(typeof u=="object"&&u&&Jy(e4,u))return u}return new mu(!1)},MG=lA,r4=MG("iterator"),A4=!1;try{var HG=0,n4={next:function(){return{done:!!HG++}},return:function(){A4=!0}};n4[r4]=function(){return this},Array.from(n4,function(){throw 2})}catch{}var VG=function(t,e){if(!e&&!A4)return!1;var r=!1;try{var A={};A[r4]=function(){return{next:function(){return{done:r=!0}}}},t(A)}catch{}return r},KG=fu,GG=VG,jG=cc.CONSTRUCTOR,i4=jG||!GG(function(t){KG.all(t).then(void 0,function(){})}),WG=jA,zG=xA,XG=Gi,qG=So,YG=Fg,$G=t4,JG=i4;WG({target:"Promise",stat:!0,forced:JG},{all:function(e){var r=this,A=qG.f(r),n=A.resolve,i=A.reject,a=YG(function(){var s=XG(r.resolve),o=[],l=0,c=1;$G(e,function(h){var d=l++,u=!1;c++,zG(s,r,h).then(function(w){u||(u=!0,o[d]=w,--c||n(o))},i)}),--c||n(o)});return a.error&&i(a.value),A.promise}});var ZG=jA,ej=cc.CONSTRUCTOR,Dg=fu,tj=ws,rj=Tr,Aj=Bs,a4=Dg&&Dg.prototype;if(ZG({target:"Promise",proto:!0,forced:ej,real:!0},{catch:function(t){return this.then(void 0,t)}}),rj(Dg)){var s4=tj("Promise").prototype.catch;a4.catch!==s4&&Aj(a4,"catch",s4,{unsafe:!0})}var nj=jA,ij=xA,aj=Gi,sj=So,oj=Fg,lj=t4,cj=i4;nj({target:"Promise",stat:!0,forced:cj},{race:function(e){var r=this,A=sj.f(r),n=A.reject,i=oj(function(){var a=aj(r.resolve);lj(e,function(s){ij(a,r,s).then(A.resolve,n)})});return i.error&&n(i.value),A.promise}});var fj=jA,uj=xA,hj=So,dj=cc.CONSTRUCTOR;fj({target:"Promise",stat:!0,forced:dj},{reject:function(e){var r=hj.f(this);return uj(r.reject,void 0,e),r.promise}});var gj=LA,pj=Ki,vj=So,mj=function(t,e){if(gj(t),pj(e)&&e.constructor===t)return e;var r=vj.f(t),A=r.resolve;return A(e),r.promise},wj=jA,Bj=ws,xj=cc.CONSTRUCTOR,yj=mj;Bj("Promise"),wj({target:"Promise",stat:!0,forced:xj},{resolve:function(e){return yj(this,e)}});function o4(t,e,r,A,n,i,a){try{var s=t[i](a),o=s.value}catch(l){r(l);return}s.done?e(o):Promise.resolve(o).then(A,n)}function ji(t){return function(){var e=this,r=arguments;return new Promise(function(A,n){var i=t.apply(e,r);function a(o){o4(i,A,n,a,s,"next",o)}function s(o){o4(i,A,n,a,s,"throw",o)}a(void 0)})}}var Cj=lg,Ej=String,Ei=function(t){if(Cj(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ej(t)},bj=LA,l4=function(){var t=bj(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Pg=Rr,Fj=tA,Rg=Fj.RegExp,Mg=Pg(function(){var t=Rg("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Sj=Mg||Pg(function(){return!Rg("a","y").sticky}),_j=Mg||Pg(function(){var t=Rg("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),c4={BROKEN_CARET:_j,MISSED_STICKY:Sj,UNSUPPORTED_Y:Mg},f4={},Tj=Gx,Uj=ag,Ij=Object.keys||function(e){return Tj(e,Uj)},Lj=Bi,Nj=_x,Qj=yi,Oj=LA,kj=ec,Dj=Ij;f4.f=Lj&&!Nj?Object.defineProperties:function(e,r){Oj(e);for(var A=kj(r),n=Dj(r),i=n.length,a=0,s;i>a;)Qj.f(e,s=n[a++],A[s]);return e};var Pj=LA,Rj=f4,u4=ag,Mj=Zd,Hj=ly,Vj=Y0,Kj=Jd,h4=">",d4="<",Hg="prototype",Vg="script",g4=Kj("IE_PROTO"),Kg=function(){},p4=function(t){return d4+Vg+h4+t+d4+"/"+Vg+h4},v4=function(t){t.write(p4("")),t.close();var e=t.parentWindow.Object;return t=null,e},Gj=function(){var t=Vj("iframe"),e="java"+Vg+":",r;return t.style.display="none",Hj.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(p4("document.F=Object")),r.close(),r.F},wu,Bu=function(){try{wu=new ActiveXObject("htmlfile")}catch{}Bu=typeof document<"u"?document.domain&&wu?v4(wu):Gj():v4(wu);for(var t=u4.length;t--;)delete Bu[Hg][u4[t]];return Bu()};Mj[g4]=!0;var Gg=Object.create||function(e,r){var A;return e!==null?(Kg[Hg]=Pj(e),A=new Kg,Kg[Hg]=null,A[g4]=e):A=Bu(),r===void 0?A:Rj.f(A,r)},jj=Rr,Wj=tA,zj=Wj.RegExp,Xj=jj(function(){var t=zj(".","s");return!(t.dotAll&&t.exec(`
|
|
376
|
+
`)&&t.flags==="s")}),qj=Rr,Yj=tA,$j=Yj.RegExp,Jj=qj(function(){var t=$j("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Lo=xA,xu=Mr,Zj=Ei,eW=l4,tW=c4,rW=Md,AW=Gg,nW=tu.get,iW=Xj,aW=Jj,sW=rW("native-string-replace",String.prototype.replace),yu=RegExp.prototype.exec,jg=yu,oW=xu("".charAt),lW=xu("".indexOf),cW=xu("".replace),Wg=xu("".slice),zg=function(){var t=/a/,e=/b*/g;return Lo(yu,t,"a"),Lo(yu,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),m4=tW.BROKEN_CARET,Xg=/()??/.exec("")[1]!==void 0,fW=zg||Xg||m4||iW||aW;fW&&(jg=function(e){var r=this,A=nW(r),n=Zj(e),i=A.raw,a,s,o,l,c,h,d;if(i)return i.lastIndex=r.lastIndex,a=Lo(jg,i,n),r.lastIndex=i.lastIndex,a;var u=A.groups,w=m4&&r.sticky,v=Lo(eW,r),x=r.source,y=0,E=n;if(w&&(v=cW(v,"y",""),lW(v,"g")===-1&&(v+="g"),E=Wg(n,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&oW(n,r.lastIndex-1)!==`
|
|
377
|
+
`)&&(x="(?: "+x+")",E=" "+E,y++),s=new RegExp("^(?:"+x+")",v)),Xg&&(s=new RegExp("^"+x+"$(?!\\s)",v)),zg&&(o=r.lastIndex),l=Lo(yu,w?s:r,E),w?l?(l.input=Wg(l.input,y),l[0]=Wg(l[0],y),l.index=r.lastIndex,r.lastIndex+=l[0].length):r.lastIndex=0:zg&&l&&(r.lastIndex=r.global?l.index+l[0].length:o),Xg&&l&&l.length>1&&Lo(sW,l[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(l[c]=void 0)}),l&&u)for(l.groups=h=AW(null),c=0;c<u.length;c++)d=u[c],h[d[0]]=l[d[1]];return l});var Cu=jg,uW=jA,w4=Cu;uW({target:"RegExp",proto:!0,forced:/./.exec!==w4},{exec:w4});var B4=ac,x4=Bs,hW=Cu,y4=Rr,C4=lA,dW=tc,gW=C4("species"),qg=RegExp.prototype,Yg=function(t,e,r,A){var n=C4(t),i=!y4(function(){var l={};return l[n]=function(){return 7},""[t](l)!=7}),a=i&&!y4(function(){var l=!1,c=/a/;return t==="split"&&(c={},c.constructor={},c.constructor[gW]=function(){return c},c.flags="",c[n]=/./[n]),c.exec=function(){return l=!0,null},c[n](""),!l});if(!i||!a||r){var s=B4(/./[n]),o=e(n,""[t],function(l,c,h,d,u){var w=B4(l),v=c.exec;return v===hW||v===qg.exec?i&&!u?{done:!0,value:s(c,h,d)}:{done:!0,value:w(h,c,d)}:{done:!1}});x4(String.prototype,t,o[0]),x4(qg,n,o[1])}A&&dW(qg[n],"sham",!0)},$g=Mr,pW=nu,vW=Ei,mW=xi,wW=$g("".charAt),E4=$g("".charCodeAt),BW=$g("".slice),b4=function(t){return function(e,r){var A=vW(mW(e)),n=pW(r),i=A.length,a,s;return n<0||n>=i?t?"":void 0:(a=E4(A,n),a<55296||a>56319||n+1===i||(s=E4(A,n+1))<56320||s>57343?t?wW(A,n):a:t?BW(A,n,n+2):(a-55296<<10)+(s-56320)+65536)}},xW={codeAt:b4(!1),charAt:b4(!0)},yW=xW.charAt,Jg=function(t,e,r){return e+(r?yW(t,e).length:1)},F4=xA,CW=LA,EW=Tr,bW=vs,FW=Cu,SW=TypeError,Zg=function(t,e){var r=t.exec;if(EW(r)){var A=F4(r,t,e);return A!==null&&CW(A),A}if(bW(t)==="RegExp")return F4(FW,t,e);throw SW("RegExp#exec called on incompatible receiver")},_W=xA,TW=Yg,UW=LA,IW=ms,LW=bo,ep=Ei,NW=xi,QW=yo,OW=Jg,S4=Zg;TW("match",function(t,e,r){return[function(n){var i=NW(this),a=IW(n)?void 0:QW(n,t);return a?_W(a,n,i):new RegExp(n)[t](ep(i))},function(A){var n=UW(this),i=ep(A),a=r(e,n,i);if(a.done)return a.value;if(!n.global)return S4(n,i);var s=n.unicode;n.lastIndex=0;for(var o=[],l=0,c;(c=S4(n,i))!==null;){var h=ep(c[0]);o[l]=h,h===""&&(n.lastIndex=OW(i,LW(n.lastIndex),s)),l++}return l===0?null:o}]});var tp=Mr,kW=q0,DW=Math.floor,rp=tp("".charAt),PW=tp("".replace),Ap=tp("".slice),RW=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,MW=/\$([$&'`]|\d{1,2})/g,HW=function(t,e,r,A,n,i){var a=r+t.length,s=A.length,o=MW;return n!==void 0&&(n=kW(n),o=RW),PW(i,o,function(l,c){var h;switch(rp(c,0)){case"$":return"$";case"&":return t;case"`":return Ap(e,0,r);case"'":return Ap(e,a);case"<":h=n[Ap(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var u=DW(d/10);return u===0?l:u<=s?A[u-1]===void 0?rp(c,1):A[u-1]+rp(c,1):l}h=A[d-1]}return h===void 0?"":h})},VW=fg,_4=xA,Eu=Mr,KW=Yg,GW=Rr,jW=LA,WW=Tr,zW=ms,XW=nu,qW=bo,No=Ei,YW=xi,$W=Jg,JW=yo,ZW=HW,ez=Zg,tz=lA,np=tz("replace"),rz=Math.max,Az=Math.min,nz=Eu([].concat),ip=Eu([].push),T4=Eu("".indexOf),U4=Eu("".slice),iz=function(t){return t===void 0?t:String(t)},az=function(){return"a".replace(/./,"$0")==="$0"}(),I4=function(){return/./[np]?/./[np]("a","$0")==="":!1}(),sz=!GW(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"});KW("replace",function(t,e,r){var A=I4?"$":"$0";return[function(i,a){var s=YW(this),o=zW(i)?void 0:JW(i,np);return o?_4(o,i,s,a):_4(e,No(s),i,a)},function(n,i){var a=jW(this),s=No(n);if(typeof i=="string"&&T4(i,A)===-1&&T4(i,"$<")===-1){var o=r(e,a,s,i);if(o.done)return o.value}var l=WW(i);l||(i=No(i));var c=a.global;if(c){var h=a.unicode;a.lastIndex=0}for(var d=[];;){var u=ez(a,s);if(u===null||(ip(d,u),!c))break;var w=No(u[0]);w===""&&(a.lastIndex=$W(s,qW(a.lastIndex),h))}for(var v="",x=0,y=0;y<d.length;y++){u=d[y];for(var E=No(u[0]),F=rz(Az(XW(u.index),s.length),0),k=[],X=1;X<u.length;X++)ip(k,iz(u[X]));var q=u.groups;if(l){var N=nz([E],k,F,s);q!==void 0&&ip(N,q);var Q=No(VW(i,void 0,N))}else Q=ZW(E,s,F,k,q,i);F>=x&&(v+=U4(s,x,F)+Q,x=F+E.length)}return v+U4(s,x)}]},!sz||!az||I4);var oz=Ki,lz=vs,cz=lA,fz=cz("match"),L4=function(t){var e;return oz(t)&&((e=t[fz])!==void 0?!!e:lz(t)=="RegExp")},uz=L4,hz=TypeError,ap=function(t){if(uz(t))throw hz("The method doesn't accept regular expressions");return t},dz=lA,gz=dz("match"),sp=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[gz]=!1,"/./"[t](e)}catch{}}return!1},pz=jA,N4=ac,vz=xo.f,mz=bo,Q4=Ei,wz=ap,Bz=xi,xz=sp,O4=N4("".startsWith),yz=N4("".slice),Cz=Math.min,k4=xz("startsWith"),Ez=!k4&&!!function(){var t=vz(String.prototype,"startsWith");return t&&!t.writable}();pz({target:"String",proto:!0,forced:!Ez&&!k4},{startsWith:function(e){var r=Q4(Bz(this));wz(e);var A=mz(Cz(arguments.length>1?arguments[1]:void 0,r.length)),n=Q4(e);return O4?O4(r,n,A):yz(r,A,A+n.length)===n}});var bz=lA,Fz=Gg,Sz=yi.f,op=bz("unscopables"),lp=Array.prototype;lp[op]==null&&Sz(lp,op,{configurable:!0,value:Fz(null)});var _z=function(t){lp[op][t]=!0},Tz=Rr,Uz=!Tz(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Iz=$n,Lz=Tr,Nz=q0,Qz=Jd,Oz=Uz,D4=Qz("IE_PROTO"),cp=Object,kz=cp.prototype,P4=Oz?cp.getPrototypeOf:function(t){var e=Nz(t);if(Iz(e,D4))return e[D4];var r=e.constructor;return Lz(r)&&e instanceof r?r.prototype:e instanceof cp?kz:null},Dz=Rr,Pz=Tr,Rz=Ki,R4=P4,Mz=Bs,Hz=lA,fp=Hz("iterator"),M4=!1,Es,up,hp;[].keys&&(hp=[].keys(),"next"in hp?(up=R4(R4(hp)),up!==Object.prototype&&(Es=up)):M4=!0);var Vz=!Rz(Es)||Dz(function(){var t={};return Es[fp].call(t)!==t});Vz&&(Es={}),Pz(Es[fp])||Mz(Es,fp,function(){return this});var H4={IteratorPrototype:Es,BUGGY_SAFARI_ITERATORS:M4},Kz=H4.IteratorPrototype,Gz=Gg,jz=G0,Wz=og,zz=fc,Xz=function(){return this},qz=function(t,e,r,A){var n=e+" Iterator";return t.prototype=Gz(Kz,{next:jz(+!A,r)}),Wz(t,n,!1),zz[n]=Xz,t},Yz=jA,$z=xA,V4=J0,Jz=Tr,Zz=qz,K4=P4,G4=Xx,eX=og,tX=tc,dp=Bs,rX=lA,AX=fc,j4=H4,nX=V4.PROPER,iX=V4.CONFIGURABLE,W4=j4.IteratorPrototype,bu=j4.BUGGY_SAFARI_ITERATORS,uc=rX("iterator"),z4="keys",hc="values",X4="entries",aX=function(){return this},sX=function(t,e,r,A,n,i,a){Zz(r,e,A);var s=function(y){if(y===n&&d)return d;if(!bu&&y in c)return c[y];switch(y){case z4:return function(){return new r(this,y)};case hc:return function(){return new r(this,y)};case X4:return function(){return new r(this,y)}}return function(){return new r(this)}},o=e+" Iterator",l=!1,c=t.prototype,h=c[uc]||c["@@iterator"]||n&&c[n],d=!bu&&h||s(n),u=e=="Array"&&c.entries||h,w,v,x;if(u&&(w=K4(u.call(new t)),w!==Object.prototype&&w.next&&(K4(w)!==W4&&(G4?G4(w,W4):Jz(w[uc])||dp(w,uc,aX)),eX(w,o,!0))),nX&&n==hc&&h&&h.name!==hc&&(iX?tX(c,"name",hc):(l=!0,d=function(){return $z(h,this)})),n)if(v={values:s(hc),keys:i?d:s(z4),entries:s(X4)},a)for(x in v)(bu||l||!(x in c))&&dp(c,x,v[x]);else Yz({target:e,proto:!0,forced:bu||l},v);return c[uc]!==d&&dp(c,uc,d,{name:n}),AX[e]=d,v},oX=function(t,e){return{value:t,done:e}},lX=ec,gp=_z,q4=fc,Y4=tu,cX=yi.f,fX=sX,Fu=oX,uX=Bi,$4="Array Iterator",hX=Y4.set,dX=Y4.getterFor($4),gX=fX(Array,"Array",function(t,e){hX(this,{type:$4,target:lX(t),index:0,kind:e})},function(){var t=dX(this),e=t.target,r=t.kind,A=t.index++;return!e||A>=e.length?(t.target=void 0,Fu(void 0,!0)):r=="keys"?Fu(A,!1):r=="values"?Fu(e[A],!1):Fu([A,e[A]],!1)},"values"),J4=q4.Arguments=q4.Array;if(gp("keys"),gp("values"),gp("entries"),uX&&J4.name!=="values")try{cX(J4,"name",{value:"values"})}catch{}var pX={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},vX=Y0,pp=vX("span").classList,Z4=pp&&pp.constructor&&pp.constructor.prototype,mX=Z4===Object.prototype?void 0:Z4,eC=tA,tC=pX,wX=mX,dc=gX,vp=tc,rC=lA,mp=rC("iterator"),AC=rC("toStringTag"),wp=dc.values,nC=function(t,e){if(t){if(t[mp]!==wp)try{vp(t,mp,wp)}catch{t[mp]=wp}if(t[AC]||vp(t,AC,e),tC[e]){for(var r in dc)if(t[r]!==dc[r])try{vp(t,r,dc[r])}catch{t[r]=dc[r]}}}};for(var Bp in tC)nC(eC[Bp]&&eC[Bp].prototype,Bp);nC(wX,"DOMTokenList");function BX(t,e){if(zt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var A=r.call(t,e||"default");if(zt(A)!=="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xX(t){var e=BX(t,"string");return zt(e)==="symbol"?e:String(e)}function xp(t,e,r){return e=xX(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yX=Gi,CX=q0,EX=Ax,bX=iu,FX=TypeError,iC=function(t){return function(e,r,A,n){yX(r);var i=CX(e),a=EX(i),s=bX(i),o=t?s-1:0,l=t?-1:1;if(A<2)for(;;){if(o in a){n=a[o],o+=l;break}if(o+=l,t?o<0:s<=o)throw FX("Reduce of empty array with no initial value")}for(;t?o>=0:s>o;o+=l)o in a&&(n=r(n,a[o],o,i));return n}},SX={left:iC(!1),right:iC(!0)},_X=Rr,aC=function(t,e){var r=[][t];return!!r&&_X(function(){r.call(null,e||function(){return 1},1)})},TX=jA,UX=SX.left,IX=aC,sC=Qd,LX=nc,NX=!LX&&sC>79&&sC<83,QX=NX||!IX("reduce");TX({target:"Array",proto:!0,forced:QX},{reduce:function(e){var r=arguments.length;return UX(this,e,r,r>1?arguments[1]:void 0)}});var OX=jA,oC=ac,kX=xo.f,DX=bo,lC=Ei,PX=ap,RX=xi,MX=sp,cC=oC("".endsWith),HX=oC("".slice),VX=Math.min,fC=MX("endsWith"),KX=!fC&&!!function(){var t=kX(String.prototype,"endsWith");return t&&!t.writable}();OX({target:"String",proto:!0,forced:!KX&&!fC},{endsWith:function(e){var r=lC(RX(this));PX(e);var A=arguments.length>1?arguments[1]:void 0,n=r.length,i=A===void 0?n:VX(DX(A),n),a=lC(e);return cC?cC(r,a,i):HX(r,i-a.length,i)===a}});var GX=Vd,jX=yi,WX=G0,zX=function(t,e,r){var A=GX(e);A in t?jX.f(t,A,WX(0,r)):t[A]=r},uC=Mx,XX=iu,qX=zX,YX=Array,$X=Math.max,JX=function(t,e,r){for(var A=XX(t),n=uC(e,A),i=uC(r===void 0?A:r,A),a=YX($X(i-n,0)),s=0;n<i;n++,s++)qX(a,s,t[n]);return a.length=s,a},ZX=fg,gc=xA,yp=Mr,eq=Yg,tq=LA,rq=ms,Aq=L4,hC=xi,nq=ny,iq=Jg,aq=bo,Cp=Ei,sq=yo,dC=JX,gC=Zg,oq=Cu,lq=c4,cq=Rr,Qo=lq.UNSUPPORTED_Y,pC=4294967295,fq=Math.min,vC=[].push,uq=yp(/./.exec),Oo=yp(vC),pc=yp("".slice),hq=!cq(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"});eq("split",function(t,e,r){var A;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?A=function(n,i){var a=Cp(hC(this)),s=i===void 0?pC:i>>>0;if(s===0)return[];if(n===void 0)return[a];if(!Aq(n))return gc(e,a,n,s);for(var o=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),c=0,h=new RegExp(n.source,l+"g"),d,u,w;(d=gc(oq,h,a))&&(u=h.lastIndex,!(u>c&&(Oo(o,pc(a,c,d.index)),d.length>1&&d.index<a.length&&ZX(vC,o,dC(d,1)),w=d[0].length,c=u,o.length>=s)));)h.lastIndex===d.index&&h.lastIndex++;return c===a.length?(w||!uq(h,""))&&Oo(o,""):Oo(o,pc(a,c)),o.length>s?dC(o,0,s):o}:"0".split(void 0,0).length?A=function(n,i){return n===void 0&&i===0?[]:gc(e,this,n,i)}:A=e,[function(i,a){var s=hC(this),o=rq(i)?void 0:sq(i,t);return o?gc(o,i,s,a):gc(A,Cp(s),i,a)},function(n,i){var a=tq(this),s=Cp(n),o=r(A,a,s,i,A!==e);if(o.done)return o.value;var l=nq(a,RegExp),c=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Qo?"g":"y"),d=new l(Qo?"^(?:"+a.source+")":a,h),u=i===void 0?pC:i>>>0;if(u===0)return[];if(s.length===0)return gC(d,s)===null?[s]:[];for(var w=0,v=0,x=[];v<s.length;){d.lastIndex=Qo?0:v;var y=gC(d,Qo?pc(s,v):s),E;if(y===null||(E=fq(aq(d.lastIndex+(Qo?v:0)),s.length))===w)v=iq(s,v,c);else{if(Oo(x,pc(s,w,v)),x.length===u)return x;for(var F=1;F<=y.length-1;F++)if(Oo(x,y[F]),x.length===u)return x;v=w=E}}return Oo(x,pc(s,w)),x}]},!hq,Qo);var Su={exports:{}},vc={exports:{}};(function(){var t,e,r,A,n,i;typeof performance<"u"&&performance!==null&&performance.now?vc.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(vc.exports=function(){return(t()-n)/1e6},e=process.hrtime,t=function(){var a;return a=e(),a[0]*1e9+a[1]},A=t(),i=process.uptime()*1e9,n=A-i):Date.now?(vc.exports=function(){return Date.now()-r},r=Date.now()):(vc.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Zl);for(var dq=vc.exports,gq=dq,Wi=typeof window>"u"?Zl:window,_u=["moz","webkit"],ko="AnimationFrame",Do=Wi["request"+ko],mc=Wi["cancel"+ko]||Wi["cancelRequest"+ko],wc=0;!Do&&wc<_u.length;wc++)Do=Wi[_u[wc]+"Request"+ko],mc=Wi[_u[wc]+"Cancel"+ko]||Wi[_u[wc]+"CancelRequest"+ko];if(!Do||!mc){var Ep=0,mC=0,bs=[],pq=1e3/60;Do=function(t){if(bs.length===0){var e=gq(),r=Math.max(0,pq-(e-Ep));Ep=r+e,setTimeout(function(){var A=bs.slice(0);bs.length=0;for(var n=0;n<A.length;n++)if(!A[n].cancelled)try{A[n].callback(Ep)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return bs.push({handle:++mC,callback:t,cancelled:!1}),mC},mc=function(t){for(var e=0;e<bs.length;e++)bs[e].handle===t&&(bs[e].cancelled=!0)}}Su.exports=function(t){return Do.call(Wi,t)},Su.exports.cancel=function(){mc.apply(Wi,arguments)},Su.exports.polyfill=function(t){t||(t=Wi),t.requestAnimationFrame=Do,t.cancelAnimationFrame=mc};var vq=Su.exports;const bp=Y5(vq);var wC=`
|
|
378
|
+
\v\f\r \u2028\u2029\uFEFF`,mq=Mr,wq=xi,Bq=Ei,Fp=wC,BC=mq("".replace),xq=RegExp("^["+Fp+"]+"),yq=RegExp("(^|[^"+Fp+"])["+Fp+"]+$"),Sp=function(t){return function(e){var r=Bq(wq(e));return t&1&&(r=BC(r,xq,"")),t&2&&(r=BC(r,yq,"$1")),r}},Cq={start:Sp(1),end:Sp(2),trim:Sp(3)},Eq=J0.PROPER,bq=Rr,xC=wC,yC="
",Fq=function(t){return bq(function(){return!!xC[t]()||yC[t]()!==yC||Eq&&xC[t].name!==t})},Sq=jA,_q=Cq.trim,Tq=Fq;Sq({target:"String",proto:!0,forced:Tq("trim")},{trim:function(){return _q(this)}});var Uq=function(t){this.ok=!1,this.alpha=1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],A=0;A<r.length;A++){var n=r[A].re,i=r[A].process,a=n.exec(t);if(a){var s=i(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var o=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+o+l+c},this.getHelpXML=function(){for(var o=new Array,l=0;l<r.length;l++)for(var c=r[l].example,h=0;h<c.length;h++)o[o.length]=c[h];for(var d in e)o[o.length]=d;var u=document.createElement("ul");u.setAttribute("id","rgbcolor-examples");for(var l=0;l<o.length;l++)try{var w=document.createElement("li"),v=new RGBColor(o[l]),x=document.createElement("div");x.style.cssText="margin: 3px; border: 1px solid black; background:"+v.toHex()+"; color:"+v.toHex(),x.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+o[l]+" -> "+v.toRGB()+" -> "+v.toHex());w.appendChild(x),w.appendChild(y),u.appendChild(w)}catch{}return u}};const _p=Y5(Uq);var Iq=jA,Lq=ac,Nq=Vx.indexOf,Qq=aC,Tp=Lq([].indexOf),CC=!!Tp&&1/Tp([1],1,-0)<0,Oq=CC||!Qq("indexOf");Iq({target:"Array",proto:!0,forced:Oq},{indexOf:function(e){var r=arguments.length>1?arguments[1]:void 0;return CC?Tp(this,e,r)||0:Nq(this,e,r)}});var kq=jA,Dq=Mr,Pq=ap,Rq=xi,EC=Ei,Mq=sp,Hq=Dq("".indexOf);kq({target:"String",proto:!0,forced:!Mq("includes")},{includes:function(e){return!!~Hq(EC(Rq(this)),EC(Pq(e)),arguments.length>1?arguments[1]:void 0)}});var Vq=vs,Kq=Array.isArray||function(e){return Vq(e)=="Array"},Gq=jA,jq=Mr,Wq=Kq,zq=jq([].reverse),bC=[1,2];Gq({target:"Array",proto:!0,forced:String(bC)===String(bC.reverse())},{reverse:function(){return Wq(this)&&(this.length=this.length),zq(this)}});/*! *****************************************************************************
|
|
379
379
|
Copyright (c) Microsoft Corporation.
|
|
380
380
|
|
|
381
381
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -388,5 +388,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
388
388
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
389
389
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
390
390
|
PERFORMANCE OF THIS SOFTWARE.
|
|
391
|
-
***************************************************************************** */var FC=function(t,e){return(FC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,A){r.__proto__=A}||function(r,A){for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(r[n]=A[n])})(t,e)};function SC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}FC(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function $q(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var A=t[r];if(A.type===je.CLOSE_PATH)e+="z";else if(A.type===je.HORIZ_LINE_TO)e+=(A.relative?"h":"H")+A.x;else if(A.type===je.VERT_LINE_TO)e+=(A.relative?"v":"V")+A.y;else if(A.type===je.MOVE_TO)e+=(A.relative?"m":"M")+A.x+" "+A.y;else if(A.type===je.LINE_TO)e+=(A.relative?"l":"L")+A.x+" "+A.y;else if(A.type===je.CURVE_TO)e+=(A.relative?"c":"C")+A.x1+" "+A.y1+" "+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===je.SMOOTH_CURVE_TO)e+=(A.relative?"s":"S")+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===je.QUAD_TO)e+=(A.relative?"q":"Q")+A.x1+" "+A.y1+" "+A.x+" "+A.y;else if(A.type===je.SMOOTH_QUAD_TO)e+=(A.relative?"t":"T")+A.x+" "+A.y;else{if(A.type!==je.ARC)throw new Error('Unexpected command type "'+A.type+'" at index '+r+".");e+=(A.relative?"a":"A")+A.rX+" "+A.rY+" "+A.xRot+" "+ +A.lArcFlag+" "+ +A.sweepFlag+" "+A.x+" "+A.y}}return e}function Up(t,e){var r=t[0],A=t[1];return[r*Math.cos(e)-A*Math.sin(e),r*Math.sin(e)+A*Math.cos(e)]}function Jn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if(typeof t[r]!="number")throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Ia=Math.PI;function Ip(t,e,r){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;var A=t.rX,n=t.rY,i=t.x,a=t.y;A=Math.abs(t.rX),n=Math.abs(t.rY);var s=Up([(e-i)/2,(r-a)/2],-t.xRot/180*Ia),o=s[0],l=s[1],c=Math.pow(o,2)/Math.pow(A,2)+Math.pow(l,2)/Math.pow(n,2);1<c&&(A*=Math.sqrt(c),n*=Math.sqrt(c)),t.rX=A,t.rY=n;var h=Math.pow(A,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(o,2),d=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(A,2)*Math.pow(n,2)-h)/h)),u=A*l/n*d,w=-n*o/A*d,v=Up([u,w],t.xRot/180*Ia);t.cX=v[0]+(e+i)/2,t.cY=v[1]+(r+a)/2,t.phi1=Math.atan2((l-w)/n,(o-u)/A),t.phi2=Math.atan2((-l-w)/n,(-o-u)/A),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*Ia),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*Ia),t.phi1*=180/Ia,t.phi2*=180/Ia}function _C(t,e,r){Jn(t,e,r);var A=t*t+e*e-r*r;if(0>A)return[];if(A===0)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(A);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var zr,zi=Math.PI/180;function TC(t,e,r){return(1-r)*t+r*e}function UC(t,e,r,A){return t+Math.cos(A/180*Ia)*e+Math.sin(A/180*Ia)*r}function IC(t,e,r,A){var n=1e-6,i=e-t,a=r-e,s=3*i+3*(A-r)-6*a,o=6*(a-i),l=3*i;return Math.abs(s)<n?[-l/o]:function(c,h,d){d===void 0&&(d=1e-6);var u=c*c/4-h;if(u<-d)return[];if(u<=d)return[-c/2];var w=Math.sqrt(u);return[-c/2-w,-c/2+w]}(o/s,l/s,n)}function LC(t,e,r,A,n){var i=1-n;return t*(i*i*i)+e*(3*i*i*n)+r*(3*i*n*n)+A*(n*n*n)}(function(t){function e(){return n(function(s,o,l){return s.relative&&(s.x1!==void 0&&(s.x1+=o),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=o),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=o),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function r(){var s=NaN,o=NaN,l=NaN,c=NaN;return n(function(h,d,u){return h.type&je.SMOOTH_CURVE_TO&&(h.type=je.CURVE_TO,s=isNaN(s)?d:s,o=isNaN(o)?u:o,h.x1=h.relative?d-s:2*d-s,h.y1=h.relative?u-o:2*u-o),h.type&je.CURVE_TO?(s=h.relative?d+h.x2:h.x2,o=h.relative?u+h.y2:h.y2):(s=NaN,o=NaN),h.type&je.SMOOTH_QUAD_TO&&(h.type=je.QUAD_TO,l=isNaN(l)?d:l,c=isNaN(c)?u:c,h.x1=h.relative?d-l:2*d-l,h.y1=h.relative?u-c:2*u-c),h.type&je.QUAD_TO?(l=h.relative?d+h.x1:h.x1,c=h.relative?u+h.y1:h.y1):(l=NaN,c=NaN),h})}function A(){var s=NaN,o=NaN;return n(function(l,c,h){if(l.type&je.SMOOTH_QUAD_TO&&(l.type=je.QUAD_TO,s=isNaN(s)?c:s,o=isNaN(o)?h:o,l.x1=l.relative?c-s:2*c-s,l.y1=l.relative?h-o:2*h-o),l.type&je.QUAD_TO){s=l.relative?c+l.x1:l.x1,o=l.relative?h+l.y1:l.y1;var d=l.x1,u=l.y1;l.type=je.CURVE_TO,l.x1=((l.relative?0:c)+2*d)/3,l.y1=((l.relative?0:h)+2*u)/3,l.x2=(l.x+2*d)/3,l.y2=(l.y+2*u)/3}else s=NaN,o=NaN;return l})}function n(s){var o=0,l=0,c=NaN,h=NaN;return function(d){if(isNaN(c)&&!(d.type&je.MOVE_TO))throw new Error("path must start with moveto");var u=s(d,o,l,c,h);return d.type&je.CLOSE_PATH&&(o=c,l=h),d.x!==void 0&&(o=d.relative?o+d.x:d.x),d.y!==void 0&&(l=d.relative?l+d.y:d.y),d.type&je.MOVE_TO&&(c=o,h=l),u}}function i(s,o,l,c,h,d){return Jn(s,o,l,c,h,d),n(function(u,w,v,x){var y=u.x1,E=u.x2,F=u.relative&&!isNaN(x),k=u.x!==void 0?u.x:F?0:w,X=u.y!==void 0?u.y:F?0:v;function q(C){return C*C}u.type&je.HORIZ_LINE_TO&&o!==0&&(u.type=je.LINE_TO,u.y=u.relative?0:v),u.type&je.VERT_LINE_TO&&l!==0&&(u.type=je.LINE_TO,u.x=u.relative?0:w),u.x!==void 0&&(u.x=u.x*s+X*l+(F?0:h)),u.y!==void 0&&(u.y=k*o+u.y*c+(F?0:d)),u.x1!==void 0&&(u.x1=u.x1*s+u.y1*l+(F?0:h)),u.y1!==void 0&&(u.y1=y*o+u.y1*c+(F?0:d)),u.x2!==void 0&&(u.x2=u.x2*s+u.y2*l+(F?0:h)),u.y2!==void 0&&(u.y2=E*o+u.y2*c+(F?0:d));var N=s*c-o*l;if(u.xRot!==void 0&&(s!==1||o!==0||l!==0||c!==1))if(N===0)delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag,u.type=je.LINE_TO;else{var Q=u.xRot*Math.PI/180,K=Math.sin(Q),Ae=Math.cos(Q),U=1/q(u.rX),T=1/q(u.rY),V=q(Ae)*U+q(K)*T,Y=2*K*Ae*(U-T),ce=q(K)*U+q(Ae)*T,he=V*c*c-Y*o*c+ce*o*o,me=Y*(s*c+o*l)-2*(V*l*c+ce*s*o),ge=V*l*l-Y*s*l+ce*s*s,we=(Math.atan2(me,he-ge)+Math.PI)%Math.PI/2,Be=Math.sin(we),ke=Math.cos(we);u.rX=Math.abs(N)/Math.sqrt(he*q(ke)+me*Be*ke+ge*q(Be)),u.rY=Math.abs(N)/Math.sqrt(he*q(Be)-me*Be*ke+ge*q(ke)),u.xRot=180*we/Math.PI}return u.sweepFlag!==void 0&&0>N&&(u.sweepFlag=+!u.sweepFlag),u})}function a(){return function(s){var o={};for(var l in s)o[l]=s[l];return o}}t.ROUND=function(s){function o(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),Jn(s),function(l){return l.x1!==void 0&&(l.x1=o(l.x1)),l.y1!==void 0&&(l.y1=o(l.y1)),l.x2!==void 0&&(l.x2=o(l.x2)),l.y2!==void 0&&(l.y2=o(l.y2)),l.x!==void 0&&(l.x=o(l.x)),l.y!==void 0&&(l.y=o(l.y)),l.rX!==void 0&&(l.rX=o(l.rX)),l.rY!==void 0&&(l.rY=o(l.rY)),l}},t.TO_ABS=e,t.TO_REL=function(){return n(function(s,o,l){return s.relative||(s.x1!==void 0&&(s.x1-=o),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=o),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=o),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},t.NORMALIZE_HVZ=function(s,o,l){return s===void 0&&(s=!0),o===void 0&&(o=!0),l===void 0&&(l=!0),n(function(c,h,d,u,w){if(isNaN(u)&&!(c.type&je.MOVE_TO))throw new Error("path must start with moveto");return o&&c.type&je.HORIZ_LINE_TO&&(c.type=je.LINE_TO,c.y=c.relative?0:d),l&&c.type&je.VERT_LINE_TO&&(c.type=je.LINE_TO,c.x=c.relative?0:h),s&&c.type&je.CLOSE_PATH&&(c.type=je.LINE_TO,c.x=c.relative?u-h:u,c.y=c.relative?w-d:w),c.type&je.ARC&&(c.rX===0||c.rY===0)&&(c.type=je.LINE_TO,delete c.rX,delete c.rY,delete c.xRot,delete c.lArcFlag,delete c.sweepFlag),c})},t.NORMALIZE_ST=r,t.QT_TO_C=A,t.INFO=n,t.SANITIZE=function(s){s===void 0&&(s=0),Jn(s);var o=NaN,l=NaN,c=NaN,h=NaN;return n(function(d,u,w,v,x){var y=Math.abs,E=!1,F=0,k=0;if(d.type&je.SMOOTH_CURVE_TO&&(F=isNaN(o)?0:u-o,k=isNaN(l)?0:w-l),d.type&(je.CURVE_TO|je.SMOOTH_CURVE_TO)?(o=d.relative?u+d.x2:d.x2,l=d.relative?w+d.y2:d.y2):(o=NaN,l=NaN),d.type&je.SMOOTH_QUAD_TO?(c=isNaN(c)?u:2*u-c,h=isNaN(h)?w:2*w-h):d.type&je.QUAD_TO?(c=d.relative?u+d.x1:d.x1,h=d.relative?w+d.y1:d.y2):(c=NaN,h=NaN),d.type&je.LINE_COMMANDS||d.type&je.ARC&&(d.rX===0||d.rY===0||!d.lArcFlag)||d.type&je.CURVE_TO||d.type&je.SMOOTH_CURVE_TO||d.type&je.QUAD_TO||d.type&je.SMOOTH_QUAD_TO){var X=d.x===void 0?0:d.relative?d.x:d.x-u,q=d.y===void 0?0:d.relative?d.y:d.y-w;F=isNaN(c)?d.x1===void 0?F:d.relative?d.x:d.x1-u:c-u,k=isNaN(h)?d.y1===void 0?k:d.relative?d.y:d.y1-w:h-w;var N=d.x2===void 0?0:d.relative?d.x:d.x2-u,Q=d.y2===void 0?0:d.relative?d.y:d.y2-w;y(X)<=s&&y(q)<=s&&y(F)<=s&&y(k)<=s&&y(N)<=s&&y(Q)<=s&&(E=!0)}return d.type&je.CLOSE_PATH&&y(u-v)<=s&&y(w-x)<=s&&(E=!0),E?[]:d})},t.MATRIX=i,t.ROTATE=function(s,o,l){o===void 0&&(o=0),l===void 0&&(l=0),Jn(s,o,l);var c=Math.sin(s),h=Math.cos(s);return i(h,c,-c,h,o-o*h+l*c,l-o*c-l*h)},t.TRANSLATE=function(s,o){return o===void 0&&(o=0),Jn(s,o),i(1,0,0,1,s,o)},t.SCALE=function(s,o){return o===void 0&&(o=s),Jn(s,o),i(s,0,0,o,0,0)},t.SKEW_X=function(s){return Jn(s),i(1,0,Math.atan(s),1,0,0)},t.SKEW_Y=function(s){return Jn(s),i(1,Math.atan(s),0,1,0,0)},t.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Jn(s),i(-1,0,0,1,s,0)},t.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Jn(s),i(1,0,0,-1,0,s)},t.A_TO_C=function(){return n(function(s,o,l){return je.ARC===s.type?function(c,h,d){var u,w,v,x;c.cX||Ip(c,h,d);for(var y=Math.min(c.phi1,c.phi2),E=Math.max(c.phi1,c.phi2)-y,F=Math.ceil(E/90),k=new Array(F),X=h,q=d,N=0;N<F;N++){var Q=TC(c.phi1,c.phi2,N/F),K=TC(c.phi1,c.phi2,(N+1)/F),Ae=K-Q,U=4/3*Math.tan(Ae*zi/4),T=[Math.cos(Q*zi)-U*Math.sin(Q*zi),Math.sin(Q*zi)+U*Math.cos(Q*zi)],V=T[0],Y=T[1],ce=[Math.cos(K*zi),Math.sin(K*zi)],he=ce[0],me=ce[1],ge=[he+U*Math.sin(K*zi),me-U*Math.cos(K*zi)],we=ge[0],Be=ge[1];k[N]={relative:c.relative,type:je.CURVE_TO};var ke=function(C,_){var S=Up([C*c.rX,_*c.rY],c.xRot),O=S[0],W=S[1];return[c.cX+O,c.cY+W]};u=ke(V,Y),k[N].x1=u[0],k[N].y1=u[1],w=ke(we,Be),k[N].x2=w[0],k[N].y2=w[1],v=ke(he,me),k[N].x=v[0],k[N].y=v[1],c.relative&&(k[N].x1-=X,k[N].y1-=q,k[N].x2-=X,k[N].y2-=q,k[N].x-=X,k[N].y-=q),X=(x=[k[N].x,k[N].y])[0],q=x[1]}return k}(s,s.relative?0:o,s.relative?0:l):s})},t.ANNOTATE_ARCS=function(){return n(function(s,o,l){return s.relative&&(o=0,l=0),je.ARC===s.type&&Ip(s,o,l),s})},t.CLONE=a,t.CALCULATE_BOUNDS=function(){var s=function(d){var u={};for(var w in d)u[w]=d[w];return u},o=e(),l=A(),c=r(),h=n(function(d,u,w){var v=c(l(o(s(d))));function x(Be){Be>h.maxX&&(h.maxX=Be),Be<h.minX&&(h.minX=Be)}function y(Be){Be>h.maxY&&(h.maxY=Be),Be<h.minY&&(h.minY=Be)}if(v.type&je.DRAWING_COMMANDS&&(x(u),y(w)),v.type&je.HORIZ_LINE_TO&&x(v.x),v.type&je.VERT_LINE_TO&&y(v.y),v.type&je.LINE_TO&&(x(v.x),y(v.y)),v.type&je.CURVE_TO){x(v.x),y(v.y);for(var E=0,F=IC(u,v.x1,v.x2,v.x);E<F.length;E++)0<(we=F[E])&&1>we&&x(LC(u,v.x1,v.x2,v.x,we));for(var k=0,X=IC(w,v.y1,v.y2,v.y);k<X.length;k++)0<(we=X[k])&&1>we&&y(LC(w,v.y1,v.y2,v.y,we))}if(v.type&je.ARC){x(v.x),y(v.y),Ip(v,u,w);for(var q=v.xRot/180*Math.PI,N=Math.cos(q)*v.rX,Q=Math.sin(q)*v.rX,K=-Math.sin(q)*v.rY,Ae=Math.cos(q)*v.rY,U=v.phi1<v.phi2?[v.phi1,v.phi2]:-180>v.phi2?[v.phi2+360,v.phi1+360]:[v.phi2,v.phi1],T=U[0],V=U[1],Y=function(Be){var ke=Be[0],C=Be[1],_=180*Math.atan2(C,ke)/Math.PI;return _<T?_+360:_},ce=0,he=_C(K,-N,0).map(Y);ce<he.length;ce++)(we=he[ce])>T&&we<V&&x(UC(v.cX,N,K,we));for(var me=0,ge=_C(Ae,-Q,0).map(Y);me<ge.length;me++){var we;(we=ge[me])>T&&we<V&&y(UC(v.cY,Q,Ae,we))}}return d});return h.minX=1/0,h.maxX=-1/0,h.minY=1/0,h.maxY=-1/0,h}})(zr||(zr={}));var Zn,NC=function(){function t(){}return t.prototype.round=function(e){return this.transform(zr.ROUND(e))},t.prototype.toAbs=function(){return this.transform(zr.TO_ABS())},t.prototype.toRel=function(){return this.transform(zr.TO_REL())},t.prototype.normalizeHVZ=function(e,r,A){return this.transform(zr.NORMALIZE_HVZ(e,r,A))},t.prototype.normalizeST=function(){return this.transform(zr.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(zr.QT_TO_C())},t.prototype.aToC=function(){return this.transform(zr.A_TO_C())},t.prototype.sanitize=function(e){return this.transform(zr.SANITIZE(e))},t.prototype.translate=function(e,r){return this.transform(zr.TRANSLATE(e,r))},t.prototype.scale=function(e,r){return this.transform(zr.SCALE(e,r))},t.prototype.rotate=function(e,r,A){return this.transform(zr.ROTATE(e,r,A))},t.prototype.matrix=function(e,r,A,n,i,a){return this.transform(zr.MATRIX(e,r,A,n,i,a))},t.prototype.skewX=function(e){return this.transform(zr.SKEW_X(e))},t.prototype.skewY=function(e){return this.transform(zr.SKEW_Y(e))},t.prototype.xSymmetry=function(e){return this.transform(zr.X_AXIS_SYMMETRY(e))},t.prototype.ySymmetry=function(e){return this.transform(zr.Y_AXIS_SYMMETRY(e))},t.prototype.annotateArcs=function(){return this.transform(zr.ANNOTATE_ARCS())},t}(),Jq=function(t){return t===" "||t===" "||t==="\r"||t===`
|
|
392
|
-
`},QC=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},Zq=function(t){function e(){var r=t.call(this)||this;return r.curNumber="",r.curCommandType=-1,r.curCommandRelative=!1,r.canParseCommandOrComma=!0,r.curNumberHasExp=!1,r.curNumberHasExpDigits=!1,r.curNumberHasDecimal=!1,r.curArgs=[],r}return SC(e,t),e.prototype.finish=function(r){if(r===void 0&&(r=[]),this.parse(" ",r),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return r},e.prototype.parse=function(r,A){var n=this;A===void 0&&(A=[]);for(var i=function(h){A.push(h),n.curArgs.length=0,n.canParseCommandOrComma=!0},a=0;a<r.length;a++){var s=r[a],o=!(this.curCommandType!==je.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=QC(s)&&(this.curNumber==="0"&&s==="0"||o);if(!QC(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+a);if(this.curCommandType===je.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" at index "'+a+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+a+'"')}this.curArgs.push(c),this.curArgs.length===eY[this.curCommandType]&&(je.HORIZ_LINE_TO===this.curCommandType?i({type:je.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):je.VERT_LINE_TO===this.curCommandType?i({type:je.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===je.MOVE_TO||this.curCommandType===je.LINE_TO||this.curCommandType===je.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),je.MOVE_TO===this.curCommandType&&(this.curCommandType=je.LINE_TO)):this.curCommandType===je.CURVE_TO?i({type:je.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===je.SMOOTH_CURVE_TO?i({type:je.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===je.QUAD_TO?i({type:je.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===je.ARC&&i({type:je.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Jq(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+a+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+a+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=je.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=je.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=je.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=je.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=je.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=je.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=je.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=je.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+a+".");this.curCommandType=je.ARC,this.curCommandRelative=s==="a"}else A.push({type:je.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return A},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(A,n){n===void 0&&(n=[]);for(var i=0,a=Object.getPrototypeOf(this).parse.call(this,A);i<a.length;i++){var s=a[i],o=r(s);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},e}(NC),je=function(t){function e(r){var A=t.call(this)||this;return A.commands=typeof r=="string"?e.parse(r):r,A}return SC(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var r=zr.CALCULATE_BOUNDS();return this.transform(r),r},e.prototype.transform=function(r){for(var A=[],n=0,i=this.commands;n<i.length;n++){var a=r(i[n]);Array.isArray(a)?A.push.apply(A,a):A.push(a)}return this.commands=A,this},e.encode=function(r){return $q(r)},e.parse=function(r){var A=new Zq,n=[];return A.parse(r,n),A.finish(n),n},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(NC),eY=((Zn={})[je.MOVE_TO]=2,Zn[je.LINE_TO]=2,Zn[je.HORIZ_LINE_TO]=1,Zn[je.VERT_LINE_TO]=1,Zn[je.CLOSE_PATH]=0,Zn[je.QUAD_TO]=4,Zn[je.SMOOTH_QUAD_TO]=2,Zn[je.CURVE_TO]=6,Zn[je.SMOOTH_CURVE_TO]=4,Zn[je.ARC]=7,Zn),tY=xA,rY=$n,AY=j0,nY=l4,OC=RegExp.prototype,iY=function(t){var e=t.flags;return e===void 0&&!("flags"in OC)&&!rY(t,"flags")&&AY(OC,t)?tY(nY,t):e},aY=J0.PROPER,sY=Bs,oY=LA,kC=Ei,lY=Rr,cY=iY,Lp="toString",fY=RegExp.prototype,DC=fY[Lp],uY=lY(function(){return DC.call({source:"a",flags:"b"})!="/a/b"}),hY=aY&&DC.name!=Lp;(uY||hY)&&sY(RegExp.prototype,Lp,function(){var e=oY(this),r=kC(e.source),A=kC(cY(e));return"/"+r+"/"+A},{unsafe:!0});function Tu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tu=function(e){return typeof e}:Tu=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tu(t)}function dY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gY=[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],pY=[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 vY(t,e,r,A,n){if(typeof t=="string"&&(t=document.getElementById(t)),!t||Tu(t)!=="object"||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=t.getContext("2d");try{return i.getImageData(e,r,A,n)}catch(a){throw new Error("unable to access image data: "+a)}}function mY(t,e,r,A,n,i){if(!(isNaN(i)||i<1)){i|=0;var a=vY(t,e,r,A,n);a=wY(a,e,r,A,n,i),t.getContext("2d").putImageData(a,e,r)}}function wY(t,e,r,A,n,i){for(var a=t.data,s=2*i+1,o=A-1,l=n-1,c=i+1,h=c*(c+1)/2,d=new PC,u=d,w,v=1;v<s;v++)u=u.next=new PC,v===c&&(w=u);u.next=d;for(var x=null,y=null,E=0,F=0,k=gY[i],X=pY[i],q=0;q<n;q++){u=d;for(var N=a[F],Q=a[F+1],K=a[F+2],Ae=a[F+3],U=0;U<c;U++)u.r=N,u.g=Q,u.b=K,u.a=Ae,u=u.next;for(var T=0,V=0,Y=0,ce=0,he=c*N,me=c*Q,ge=c*K,we=c*Ae,Be=h*N,ke=h*Q,C=h*K,_=h*Ae,S=1;S<c;S++){var O=F+((o<S?o:S)<<2),W=a[O],ie=a[O+1],oe=a[O+2],le=a[O+3],ye=c-S;Be+=(u.r=W)*ye,ke+=(u.g=ie)*ye,C+=(u.b=oe)*ye,_+=(u.a=le)*ye,T+=W,V+=ie,Y+=oe,ce+=le,u=u.next}x=d,y=w;for(var Ne=0;Ne<A;Ne++){var Re=_*k>>X;if(a[F+3]=Re,Re!==0){var Xe=255/Re;a[F]=(Be*k>>X)*Xe,a[F+1]=(ke*k>>X)*Xe,a[F+2]=(C*k>>X)*Xe}else a[F]=a[F+1]=a[F+2]=0;Be-=he,ke-=me,C-=ge,_-=we,he-=x.r,me-=x.g,ge-=x.b,we-=x.a;var qe=Ne+i+1;qe=E+(qe<o?qe:o)<<2,T+=x.r=a[qe],V+=x.g=a[qe+1],Y+=x.b=a[qe+2],ce+=x.a=a[qe+3],Be+=T,ke+=V,C+=Y,_+=ce,x=x.next;var _e=y,re=_e.r,Qe=_e.g,rt=_e.b,Me=_e.a;he+=re,me+=Qe,ge+=rt,we+=Me,T-=re,V-=Qe,Y-=rt,ce-=Me,y=y.next,F+=4}E+=A}for(var We=0;We<A;We++){F=We<<2;var $e=a[F],Je=a[F+1],st=a[F+2],nt=a[F+3],ht=c*$e,mt=c*Je,_t=c*st,Ut=c*nt,dt=h*$e,yt=h*Je,tt=h*st,nr=h*nt;u=d;for(var It=0;It<c;It++)u.r=$e,u.g=Je,u.b=st,u.a=nt,u=u.next;for(var fr=A,Qt=0,Kt=0,qr=0,Pt=0,Er=1;Er<=i;Er++){F=fr+We<<2;var qt=c-Er;dt+=(u.r=$e=a[F])*qt,yt+=(u.g=Je=a[F+1])*qt,tt+=(u.b=st=a[F+2])*qt,nr+=(u.a=nt=a[F+3])*qt,Pt+=$e,Qt+=Je,Kt+=st,qr+=nt,u=u.next,Er<l&&(fr+=A)}F=We,x=d,y=w;for(var rA=0;rA<n;rA++){var bt=F<<2;a[bt+3]=nt=nr*k>>X,nt>0?(nt=255/nt,a[bt]=(dt*k>>X)*nt,a[bt+1]=(yt*k>>X)*nt,a[bt+2]=(tt*k>>X)*nt):a[bt]=a[bt+1]=a[bt+2]=0,dt-=ht,yt-=mt,tt-=_t,nr-=Ut,ht-=x.r,mt-=x.g,_t-=x.b,Ut-=x.a,bt=We+((bt=rA+c)<l?bt:l)*A<<2,dt+=Pt+=x.r=a[bt],yt+=Qt+=x.g=a[bt+1],tt+=Kt+=x.b=a[bt+2],nr+=qr+=x.a=a[bt+3],x=x.next,ht+=$e=y.r,mt+=Je=y.g,_t+=st=y.b,Ut+=nt=y.a,Pt-=$e,Qt-=Je,Kt-=st,qr-=nt,y=y.next,F+=A}}return t}var PC=function t(){dY(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function BY(){var{DOMParser:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(r,A){return new OffscreenCanvas(r,A)},createImage(r){return ji(function*(){var A=yield fetch(r),n=yield A.blob(),i=yield createImageBitmap(n);return i})()}};return(typeof DOMParser<"u"||typeof t>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function xY(t){var{DOMParser:e,canvas:r,fetch:A}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:A,createCanvas:r.createCanvas,createImage:r.loadImage}}var yY=Object.freeze({__proto__:null,offscreen:BY,node:xY});function Fs(t){return t.replace(/(?!\u3000)\s+/gm," ")}function RC(t){return t.replace(/^[\n \t]+/,"")}function MC(t){return t.replace(/[\n \t]+$/,"")}function ZA(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var CY=/^[A-Z-]+$/;function HC(t){return CY.test(t)?t.toLowerCase():t}function Np(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function VC(t){if(!t.startsWith("rgb"))return t;var e=3,r=t.replace(/\d+(\.\d+)?/g,(A,n)=>e--&&n?String(Math.round(parseFloat(A))):A);return r}var EY=/(\[[^\]]+\])/g,bY=/(#[^\s+>~.[:]+)/g,FY=/(\.[^\s+>~.[:]+)/g,SY=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,_Y=/(:[\w-]+\([^)]*\))/gi,TY=/(:[^\s+>~.[:]+)/g,UY=/([^\s+>~.[:]+)/g;function Ss(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function KC(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),A=0;return[r,A]=Ss(r,EY),e[1]+=A,[r,A]=Ss(r,bY),e[0]+=A,[r,A]=Ss(r,FY),e[1]+=A,[r,A]=Ss(r,SY),e[2]+=A,[r,A]=Ss(r,_Y),e[1]+=A,[r,A]=Ss(r,TY),e[1]+=A,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,A]=Ss(r,UY),e[2]+=A,e.join("")}var _s=1e-8;function Qp(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Uu(t,e){return(t[0]*e[0]+t[1]*e[1])/(Qp(t)*Qp(e))}function Op(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Uu(t,e))}function kp(t){return t*t*t}function Dp(t){return 3*t*t*(1-t)}function Pp(t){return 3*t*(1-t)*(1-t)}function Rp(t){return(1-t)*(1-t)*(1-t)}function Mp(t){return t*t}function Hp(t){return 2*t*(1-t)}function Vp(t){return(1-t)*(1-t)}class pt{constructor(e,r,A){this.document=e,this.name=r,this.value=A,this.isNormalizedColor=!1}static empty(e){return new pt(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:r,name:A}=this;return Fs(this.getString()).trim().split(e).map(n=>new pt(r,A,n))}hasValue(e){var{value:r}=this;return r!==null&&r!==""&&(e||r!==0)&&typeof r<"u"}isString(e){var{value:r}=this,A=typeof r=="string";return!A||!e?A:e.test(r)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,A=parseFloat(r);return this.isString(/%$/)&&(A/=100),A}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=VC(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[A,n]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(A);default:{var a=this.getNumber();return r&&a<1?a*i.computeSize(A):a}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var A=this.getDefinition();if(!A)return null;if(typeof A.createGradient=="function")return A.createGradient(this.document.ctx,e,r);if(typeof A.createPattern=="function"){if(A.getHrefAttribute().hasValue()){var n=A.getAttribute("patternTransform");A=A.getHrefAttribute().getDefinition(),n.hasValue()&&A.getAttribute("patternTransform",!0).setValue(n.value)}return A.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?pt.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),A=r.length,n=0,i=0;i<A&&(r[i]===","&&n++,n!==3);i++);if(e.hasValue()&&this.isString()&&n!==3){var a=new _p(r);a.ok&&(a.alpha=e.getNumber(),r=a.toRGBA())}return new pt(this.document,this.name,r)}}pt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class GC{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,r){this.viewPorts.push({width:e,height:r})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Ur{constructor(e,r){this.x=e,this.y=r}static parse(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[A=r,n=r]=ZA(e);return new Ur(A,n)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[A=r,n=A]=ZA(e);return new Ur(A,n)}static parsePath(e){for(var r=ZA(e),A=r.length,n=[],i=0;i<A;i+=2)n.push(new Ur(r[i],r[i+1]));return n}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:r,y:A}=this,n=r*e[0]+A*e[2]+e[4],i=r*e[1]+A*e[3]+e[5];this.x=n,this.y=i}}class jC{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:r,onMouseMove:A}=this,n=e.ctx.canvas;n.onclick=r,n.onmousemove=A,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:A}=this,{style:n}=e.ctx.canvas;n&&(n.cursor=""),r.forEach((i,a)=>{for(var{run:s}=i,o=A[a];o;)s(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:A,eventElements:n}=this;A.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&r.isPointInPath&&r.isPointInPath(s,o)&&(n[a]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:A,eventElements:n}=this;A.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&r.isPointInBox(s,o)&&(n[a]=e)})}}mapXY(e,r){for(var{window:A,ctx:n}=this.screen,i=new Ur(e,r),a=n.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return A.scrollX&&(i.x+=A.scrollX),A.scrollY&&(i.y+=A.scrollY),i}onClick(e){var{x:r,y:A}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:A,run(n){n.onClick&&n.onClick()}})}onMouseMove(e){var{x:r,y:A}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:A,run(n){n.onMouseMove&&n.onMouseMove()}})}}var WC=typeof window<"u"?window:null,zC=typeof fetch<"u"?fetch.bind(void 0):null;class Bc{constructor(e){var{fetch:r=zC,window:A=WC}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new GC,this.mouse=new jC(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=A,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:A,aspectRatio:n,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:l=0,minY:c=0,refX:h,refY:d,clip:u=!1,clipX:w=0,clipY:v=0}=e,x=Fs(n).replace(/^defer\s/,""),[y,E]=x.split(" "),F=y||"xMidYMid",k=E||"meet",X=i/a,q=s/o,N=Math.min(X,q),Q=Math.max(X,q),K=a,Ae=o;k==="meet"&&(K*=N,Ae*=N),k==="slice"&&(K*=Q,Ae*=Q);var U=new pt(r,"refX",h),T=new pt(r,"refY",d),V=U.hasValue()&&T.hasValue();if(V&&A.translate(-N*U.getPixels("x"),-N*T.getPixels("y")),u){var Y=N*w,ce=N*v;A.beginPath(),A.moveTo(Y,ce),A.lineTo(i,ce),A.lineTo(i,s),A.lineTo(Y,s),A.closePath(),A.clip()}if(!V){var he=k==="meet"&&N===q,me=k==="slice"&&Q===q,ge=k==="meet"&&N===X,we=k==="slice"&&Q===X;F.startsWith("xMid")&&(he||me)&&A.translate(i/2-K/2,0),F.endsWith("YMid")&&(ge||we)&&A.translate(0,s/2-Ae/2),F.startsWith("xMax")&&(he||me)&&A.translate(i-K,0),F.endsWith("YMax")&&(ge||we)&&A.translate(0,s-Ae)}switch(!0){case F==="none":A.scale(X,q);break;case k==="meet":A.scale(N,N);break;case k==="slice":A.scale(Q,Q);break}A.translate(-l,-c)}start(e){var{enableRedraw:r=!1,ignoreMouse:A=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:l,offsetX:c,offsetY:h}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:d,mouse:u}=this,w=1e3/d;if(this.frameDuration=w,this.readyPromise=new Promise(F=>{this.resolveReady=F}),this.isReady()&&this.render(e,i,a,o,l,c,h),!!r){var v=Date.now(),x=v,y=0,E=()=>{v=Date.now(),y=v-x,y>=w&&(x=v-y%w,this.shouldUpdate(n,s)&&(this.render(e,i,a,o,l,c,h),u.runEvents())),this.intervalId=bp(E)};A||u.start(),this.intervalId=bp(E)}}stop(){this.intervalId&&(bp.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:A}=this,n=this.animations.reduce((i,a)=>a.update(A)||i,!1);if(n)return!0}return!!(typeof r=="function"&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,A,n,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:c,ctx:h,isFirstRender:d}=this,u=h.canvas;c.clear(),u.width&&u.height?c.setCurrent(u.width,u.height):c.setCurrent(o,l);var w=e.getStyle("width"),v=e.getStyle("height");!r&&(d||typeof n!="number"&&typeof i!="number")&&(w.hasValue()&&(u.width=w.getPixels("x"),u.style&&(u.style.width="".concat(u.width,"px"))),v.hasValue()&&(u.height=v.getPixels("y"),u.style&&(u.style.height="".concat(u.height,"px"))));var x=u.clientWidth||u.width,y=u.clientHeight||u.height;if(r&&w.hasValue()&&v.hasValue()&&(x=w.getPixels("x"),y=v.getPixels("y")),c.setCurrent(x,y),typeof a=="number"&&e.getAttribute("x",!0).setValue(a),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof n=="number"||typeof i=="number"){var E=ZA(e.getAttribute("viewBox").getString()),F=0,k=0;if(typeof n=="number"){var X=e.getStyle("width");X.hasValue()?F=X.getPixels("x")/n:isNaN(E[2])||(F=E[2]/n)}if(typeof i=="number"){var q=e.getStyle("height");q.hasValue()?k=q.getPixels("y")/i:isNaN(E[3])||(k=E[3]/i)}F||(F=k),k||(k=F),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(i);var N=e.getStyle("transform",!0,!0);N.setValue("".concat(N.getString()," scale(").concat(1/F,", ").concat(1/k,")"))}A||h.clearRect(0,0,x,y),e.render(h),d&&(this.isFirstRender=!1)}}Bc.defaultWindow=WC,Bc.defaultFetch=zC;var{defaultFetch:IY}=Bc,LY=typeof DOMParser<"u"?DOMParser:null;class Iu{constructor(){var{fetch:e=IY,DOMParser:r=LY}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return ji(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return ji(function*(){var A=yield r.fetch(e),n=yield A.text();return r.parseFromString(n)})()}}class XC{constructor(e,r){this.type="translate",this.point=null,this.point=Ur.parse(r)}apply(e){var{x:r,y:A}=this.point;e.translate(r||0,A||0)}unapply(e){var{x:r,y:A}=this.point;e.translate(-1*r||0,-1*A||0)}applyToPoint(e){var{x:r,y:A}=this.point;e.applyTransform([1,0,0,1,r||0,A||0])}}class qC{constructor(e,r,A){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=ZA(r);this.angle=new pt(e,"angle",n[0]),this.originX=A[0],this.originY=A[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(e){var{cx:r,cy:A,originX:n,originY:i,angle:a}=this,s=r+n.getPixels("x"),o=A+i.getPixels("y");e.translate(s,o),e.rotate(a.getRadians()),e.translate(-s,-o)}unapply(e){var{cx:r,cy:A,originX:n,originY:i,angle:a}=this,s=r+n.getPixels("x"),o=A+i.getPixels("y");e.translate(s,o),e.rotate(-1*a.getRadians()),e.translate(-s,-o)}applyToPoint(e){var{cx:r,cy:A,angle:n}=this,i=n.getRadians();e.applyTransform([1,0,0,1,r||0,A||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-r||0,-A||0])}}class YC{constructor(e,r,A){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Ur.parseScale(r);(n.x===0||n.y===0)&&(n.x=_s,n.y=_s),this.scale=n,this.originX=A[0],this.originY=A[1]}apply(e){var{scale:{x:r,y:A},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");e.translate(a,s),e.scale(r,A||r),e.translate(-a,-s)}unapply(e){var{scale:{x:r,y:A},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");e.translate(a,s),e.scale(1/r,1/A||r),e.translate(-a,-s)}applyToPoint(e){var{x:r,y:A}=this.scale;e.applyTransform([r||0,0,0,A||0,0,0])}}class Kp{constructor(e,r,A){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ZA(r),this.originX=A[0],this.originY=A[1]}apply(e){var{originX:r,originY:A,matrix:n}=this,i=r.getPixels("x"),a=A.getPixels("y");e.translate(i,a),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-i,-a)}unapply(e){var{originX:r,originY:A,matrix:n}=this,i=n[0],a=n[2],s=n[4],o=n[1],l=n[3],c=n[5],h=0,d=0,u=1,w=1/(i*(l*u-c*d)-a*(o*u-c*h)+s*(o*d-l*h)),v=r.getPixels("x"),x=A.getPixels("y");e.translate(v,x),e.transform(w*(l*u-c*d),w*(c*h-o*u),w*(s*d-a*u),w*(i*u-s*h),w*(a*c-s*l),w*(s*o-i*c)),e.translate(-v,-x)}applyToPoint(e){e.applyTransform(this.matrix)}}class Gp extends Kp{constructor(e,r,A){super(e,r,A),this.type="skew",this.angle=null,this.angle=new pt(e,"angle",r)}}class $C extends Gp{constructor(e,r,A){super(e,r,A),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class JC extends Gp{constructor(e,r,A){super(e,r,A),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function NY(t){return Fs(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function QY(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class La{constructor(e,r,A){this.document=e,this.transforms=[];var n=NY(r);n.forEach(i=>{if(i!=="none"){var[a,s]=QY(i),o=La.transformTypes[a];typeof o<"u"&&this.transforms.push(new o(this.document,s,A))}})}static fromElement(e,r){var A=r.getStyle("transform",!1,!0),[n,i=n]=r.getStyle("transform-origin",!1,!0).split(),a=[n,i];return A.hasValue()?new La(e,A.getString(),a):null}apply(e){for(var{transforms:r}=this,A=r.length,n=0;n<A;n++)r[n].apply(e)}unapply(e){for(var{transforms:r}=this,A=r.length,n=A-1;n>=0;n--)r[n].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,A=r.length,n=0;n<A;n++)r[n].applyToPoint(e)}}La.transformTypes={translate:XC,rotate:qC,scale:YC,matrix:Kp,skewX:$C,skewY:JC};class dr{constructor(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=r,this.captureTextNodes=A,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!r||r.nodeType!==1)){if(Array.from(r.attributes).forEach(s=>{var o=HC(s.nodeName);this.attributes[o]=new pt(e,o,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(s=>s.trim());n.forEach(s=>{if(s){var[o,l]=s.split(":").map(c=>c.trim());this.styles[o]=new pt(e,o,l)}})}var{definitions:i}=e,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(r.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(A&&(s.nodeType===3||s.nodeType===4)){var o=e.createTextNode(s);o.getText().length>0&&this.addChild(o)}})}}getAttribute(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=this.attributes[e];if(!A&&r){var n=new pt(this.document,e,"");return this.attributes[e]=n,n}return A||pt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return pt.empty(this.document)}getStyle(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[e];if(n)return n;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!A){var{parent:a}=this;if(a){var s=a.getStyle(e);if(s!=null&&s.hasValue())return s}}if(r){var o=new pt(this.document,e,"");return this.styles[e]=o,o}return n||pt.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var A=this.getStyle("filter").getDefinition();A&&(this.applyEffects(e),A.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=La.fromElement(this.document,this);r&&r.apply(e);var A=this.getStyle("clip-path",!1,!0);if(A.hasValue()){var n=A.getDefinition();n&&n.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof dr?e:this.document.createElement(e);r.parent=this,dr.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:A}=this;if(typeof A.matches=="function")return A.matches(e);var n=(r=A.getAttribute)===null||r===void 0?void 0:r.call(A,"class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var A in e)if(!A.startsWith("@")&&this.matchesSelector(A)){var n=e[A],i=r[A];if(n)for(var a in n){var s=this.stylesSpecificity[a];typeof s>"u"&&(s="000"),i>=s&&(this.styles[a]=n[a],this.stylesSpecificity[a]=i)}}}removeStyles(e,r){var A=r.reduce((n,i)=>{var a=e.getStyle(i);if(!a.hasValue())return n;var s=a.getString();return a.setValue(""),[...n,[i,s]]},[]);return A}restoreStyles(e,r){r.forEach(A=>{var[n,i]=A;e.getStyle(n,!0).setValue(i)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}dr.ignoreChildTypes=["title"];class ZC extends dr{constructor(e,r,A){super(e,r,A)}}function OY(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function kY(t){return typeof process>"u"?t:t.trim().split(",").map(OY).join(",")}function DY(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function PY(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class NA{constructor(e,r,A,n,i,a){var s=a?typeof a=="string"?NA.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=A||s.fontWeight,this.fontVariant=r||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,A="",n="",i="",a="",s="",o=Fs(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(c=>{switch(!0){case(!l.fontStyle&&NA.styles.includes(c)):c!=="inherit"&&(A=c),l.fontStyle=!0;break;case(!l.fontVariant&&NA.variants.includes(c)):c!=="inherit"&&(n=c),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&NA.weights.includes(c)):c!=="inherit"&&(i=c),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:c!=="inherit"&&([a]=c.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:c!=="inherit"&&(s+=c)}}),new NA(A,n,i,a,s,r)}toString(){return[DY(this.fontStyle),this.fontVariant,PY(this.fontWeight),this.fontSize,kY(this.fontFamily)].join(" ").trim()}}NA.styles="normal|italic|oblique|inherit",NA.variants="normal|small-caps|inherit",NA.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Un{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=A,this.y2=n,this.addPoint(e,r),this.addPoint(A,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,r){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:A,x2:n,y2:i}=e;this.addPoint(r,A),this.addPoint(n,i)}}sumCubic(e,r,A,n,i){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*A+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*i}bezierCurveAdd(e,r,A,n,i){var a=6*r-12*A+6*n,s=-3*r+9*A-9*n+3*i,o=3*A-3*r;if(s===0){if(a===0)return;var l=-o/a;0<l&&l<1&&(e?this.addX(this.sumCubic(l,r,A,n,i)):this.addY(this.sumCubic(l,r,A,n,i)));return}var c=Math.pow(a,2)-4*o*s;if(!(c<0)){var h=(-a+Math.sqrt(c))/(2*s);0<h&&h<1&&(e?this.addX(this.sumCubic(h,r,A,n,i)):this.addY(this.sumCubic(h,r,A,n,i)));var d=(-a-Math.sqrt(c))/(2*s);0<d&&d<1&&(e?this.addX(this.sumCubic(d,r,A,n,i)):this.addY(this.sumCubic(d,r,A,n,i)))}}addBezierCurve(e,r,A,n,i,a,s,o){this.addPoint(e,r),this.addPoint(s,o),this.bezierCurveAdd(!0,e,A,i,s),this.bezierCurveAdd(!1,r,n,a,o)}addQuadraticCurve(e,r,A,n,i,a){var s=e+.6666666666666666*(A-e),o=r+2/3*(n-r),l=s+1/3*(i-e),c=o+1/3*(a-r);this.addBezierCurve(e,r,s,l,o,c,i,a)}isPointInBox(e,r){var{x1:A,y1:n,x2:i,y2:a}=this;return A<=e&&e<=i&&n<=r&&r<=a}}class Tt extends je{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Ur(0,0),this.control=new Ur(0,0),this.current=new Ur(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:r}=this;return e>=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",A=new Ur(this.command[e],this.command[r]);return this.makeAbsolute(A)}getAsControlPoint(e,r){var A=this.getPoint(e,r);return this.control=A,A}getAsCurrentPoint(e,r){var A=this.getPoint(e,r);return this.current=A,A}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==je.CURVE_TO&&e!==je.SMOOTH_CURVE_TO&&e!==je.QUAD_TO&&e!==je.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:A},control:{x:n,y:i}}=this,a=new Ur(2*r-n,2*A-i);return a}makeAbsolute(e){if(this.command.relative){var{x:r,y:A}=this.current;e.x+=r,e.y+=A}return e}addMarker(e,r,A){var{points:n,angles:i}=this;A&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(A)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,A=0;A<r;A++)if(!e[A]){for(var n=A+1;n<r;n++)if(e[n]){e[A]=e[n];break}}return e}}class Na extends dr{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,r=this;r;){var A=r.getStyle("opacity",!1,!0);A.hasValue(!0)&&(e*=A.getNumber()),r=r.parent}return e}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var A=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(A.isUrlDefinition()){var s=A.getFillStyleDefinition(this,n);s&&(e.fillStyle=s)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());var o=A.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(n.hasValue()){var l=new pt(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(e.strokeStyle=c)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var h=i.getString();h!=="inherit"&&(e.strokeStyle=h==="none"?"rgba(0,0,0,0)":h)}if(a.hasValue()){var d=new pt(this.document,"stroke",e.strokeStyle).addOpacity(a).getString();e.strokeStyle=d}var u=this.getStyle("stroke-width");if(u.hasValue()){var w=u.getPixels();e.lineWidth=w||_s}var v=this.getStyle("stroke-linecap"),x=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),E=this.getStyle("stroke-dasharray"),F=this.getStyle("stroke-dashoffset");if(v.hasValue()&&(e.lineCap=v.getString()),x.hasValue()&&(e.lineJoin=x.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),E.hasValue()&&E.getString()!=="none"){var k=ZA(E.getString());typeof e.setLineDash<"u"?e.setLineDash(k):typeof e.webkitLineDash<"u"?e.webkitLineDash=k:typeof e.mozDash<"u"&&!(k.length===1&&k[0]===0)&&(e.mozDash=k);var X=F.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=X:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=X:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=X)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var q=this.getStyle("font"),N=this.getStyle("font-style"),Q=this.getStyle("font-variant"),K=this.getStyle("font-weight"),Ae=this.getStyle("font-size"),U=this.getStyle("font-family"),T=new NA(N.getString(),Q.getString(),K.getString(),Ae.hasValue()?"".concat(Ae.getPixels(!0),"px"):"",U.getString(),NA.parse(q.getString(),e.font));N.setValue(T.fontStyle),Q.setValue(T.fontVariant),K.setValue(T.fontWeight),Ae.setValue(T.fontSize),U.setValue(T.fontFamily),e.font=T.toString(),Ae.isPixels()&&(this.document.emSize=Ae.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Zt extends Na{constructor(e,r,A){super(e,r,A),this.type="path",this.pathParser=null,this.pathParser=new Tt(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,A=new Un;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case Tt.MOVE_TO:this.pathM(e,A);break;case Tt.LINE_TO:this.pathL(e,A);break;case Tt.HORIZ_LINE_TO:this.pathH(e,A);break;case Tt.VERT_LINE_TO:this.pathV(e,A);break;case Tt.CURVE_TO:this.pathC(e,A);break;case Tt.SMOOTH_CURVE_TO:this.pathS(e,A);break;case Tt.QUAD_TO:this.pathQ(e,A);break;case Tt.SMOOTH_QUAD_TO:this.pathT(e,A);break;case Tt.ARC:this.pathA(e,A);break;case Tt.CLOSE_PATH:this.pathZ(e,A);break}return A}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),A=e.getMarkerAngles(),n=r.map((i,a)=>[i,A[a]]);return n}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var A=this.getMarkers();if(A){var n=A.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[l,c]=A[0];o.render(e,l,c)}if(a.isUrlDefinition())for(var h=a.getDefinition(),d=1;d<n;d++){var[u,w]=A[d];h.render(e,u,w)}if(s.isUrlDefinition()){var v=s.getDefinition(),[x,y]=A[n];v.render(e,x,y)}}}static pathM(e){var r=e.getAsCurrentPoint();return e.start=e.current,{point:r}}pathM(e,r){var{pathParser:A}=this,{point:n}=Zt.pathM(A),{x:i,y:a}=n;A.addMarker(n),r.addPoint(i,a),e&&e.moveTo(i,a)}static pathL(e){var{current:r}=e,A=e.getAsCurrentPoint();return{current:r,point:A}}pathL(e,r){var{pathParser:A}=this,{current:n,point:i}=Zt.pathL(A),{x:a,y:s}=i;A.addMarker(i,n),r.addPoint(a,s),e&&e.lineTo(a,s)}static pathH(e){var{current:r,command:A}=e,n=new Ur((A.relative?r.x:0)+A.x,r.y);return e.current=n,{current:r,point:n}}pathH(e,r){var{pathParser:A}=this,{current:n,point:i}=Zt.pathH(A),{x:a,y:s}=i;A.addMarker(i,n),r.addPoint(a,s),e&&e.lineTo(a,s)}static pathV(e){var{current:r,command:A}=e,n=new Ur(r.x,(A.relative?r.y:0)+A.y);return e.current=n,{current:r,point:n}}pathV(e,r){var{pathParser:A}=this,{current:n,point:i}=Zt.pathV(A),{x:a,y:s}=i;A.addMarker(i,n),r.addPoint(a,s),e&&e.lineTo(a,s)}static pathC(e){var{current:r}=e,A=e.getPoint("x1","y1"),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:r,point:A,controlPoint:n,currentPoint:i}}pathC(e,r){var{pathParser:A}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Zt.pathC(A);A.addMarker(s,a,i),r.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(e){var{current:r}=e,A=e.getReflectedControlPoint(),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:r,point:A,controlPoint:n,currentPoint:i}}pathS(e,r){var{pathParser:A}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Zt.pathS(A);A.addMarker(s,a,i),r.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(e){var{current:r}=e,A=e.getAsControlPoint("x1","y1"),n=e.getAsCurrentPoint();return{current:r,controlPoint:A,currentPoint:n}}pathQ(e,r){var{pathParser:A}=this,{current:n,controlPoint:i,currentPoint:a}=Zt.pathQ(A);A.addMarker(a,i,i),r.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(e){var{current:r}=e,A=e.getReflectedControlPoint();e.control=A;var n=e.getAsCurrentPoint();return{current:r,controlPoint:A,currentPoint:n}}pathT(e,r){var{pathParser:A}=this,{current:n,controlPoint:i,currentPoint:a}=Zt.pathT(A);A.addMarker(a,i,i),r.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(e){var{current:r,command:A}=e,{rX:n,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=A,l=a*(Math.PI/180),c=e.getAsCurrentPoint(),h=new Ur(Math.cos(l)*(r.x-c.x)/2+Math.sin(l)*(r.y-c.y)/2,-Math.sin(l)*(r.x-c.x)/2+Math.cos(l)*(r.y-c.y)/2),d=Math.pow(h.x,2)/Math.pow(n,2)+Math.pow(h.y,2)/Math.pow(i,2);d>1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));var u=(s===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(h.y,2)-Math.pow(i,2)*Math.pow(h.x,2))/(Math.pow(n,2)*Math.pow(h.y,2)+Math.pow(i,2)*Math.pow(h.x,2)));isNaN(u)&&(u=0);var w=new Ur(u*n*h.y/i,u*-i*h.x/n),v=new Ur((r.x+c.x)/2+Math.cos(l)*w.x-Math.sin(l)*w.y,(r.y+c.y)/2+Math.sin(l)*w.x+Math.cos(l)*w.y),x=Op([1,0],[(h.x-w.x)/n,(h.y-w.y)/i]),y=[(h.x-w.x)/n,(h.y-w.y)/i],E=[(-h.x-w.x)/n,(-h.y-w.y)/i],F=Op(y,E);return Uu(y,E)<=-1&&(F=Math.PI),Uu(y,E)>=1&&(F=0),{currentPoint:c,rX:n,rY:i,sweepFlag:o,xAxisRotation:l,centp:v,a1:x,ad:F}}pathA(e,r){var{pathParser:A}=this,{currentPoint:n,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:l,a1:c,ad:h}=Zt.pathA(A),d=1-s?1:-1,u=c+d*(h/2),w=new Ur(l.x+i*Math.cos(u),l.y+a*Math.sin(u));if(A.addMarkerAngle(w,u-d*Math.PI/2),A.addMarkerAngle(n,u-d*Math.PI),r.addPoint(n.x,n.y),e&&!isNaN(c)&&!isNaN(h)){var v=i>a?i:a,x=i>a?1:i/a,y=i>a?a/i:1;e.translate(l.x,l.y),e.rotate(o),e.scale(x,y),e.arc(0,0,v,c,c+h,!!(1-s)),e.scale(1/x,1/y),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){Zt.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}}class jp extends Zt{constructor(e,r,A){super(e,r,A),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Xi extends Na{constructor(e,r,A){super(e,r,new.target===Xi?!0:A),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var A=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();A&&(e.textBaseline=A)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((A,n)=>{var i=this.getChildBoundingBox(e,this,this,n);r?r.addBoundingBox(i):r=i}),r}getFontSize(){var{document:e,parent:r}=this,A=NA.parse(e.ctx.font).fontSize,n=r.getStyle("font-size").getNumber(A);return n}getTElementBoundingBox(e){var r=this.getFontSize();return new Un(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,A){var n=r[A],i=null;if(e.isArabic){var a=r.length,s=r[A-1],o=r[A+1],l="isolated";if((A===0||s===" ")&&A<a-1&&o!==" "&&(l="terminal"),A>0&&s!==" "&&A<a-1&&o!==" "&&(l="medial"),A>0&&s!==" "&&(A===a-1||o===" ")&&(l="initial"),typeof e.glyphs[n]<"u"){var c=e.glyphs[n];i=c instanceof jp?c:c[l]}}else i=e.glyphs[n];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var r=e||this.node,A=Array.from(r.parentNode.childNodes),n=A.indexOf(r),i=A.length-1,a=Fs(r.textContent||"");return n===0&&(a=RC(a)),n===i&&(a=MC(a)),a}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((A,n)=>{this.renderChild(e,this,this,n)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:A}=this,n=this.getText(),i=A.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,s=NA.parse(r.ctx.font),o=A.getStyle("font-size").getNumber(s.fontSize),l=A.getStyle("font-style").getString(s.fontStyle),c=o/a,h=i.isRTL?n.split("").reverse().join(""):n,d=ZA(A.getAttribute("dx").getString()),u=h.length,w=0;w<u;w++){var v=this.getGlyph(i,h,w);e.translate(this.x,this.y),e.scale(c,-c);var x=e.lineWidth;e.lineWidth=e.lineWidth*a/o,l==="italic"&&e.transform(1,0,.4,1,0,0),v.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=x,e.scale(1/c,-1/c),e.translate(-this.x,-this.y),this.x+=o*(v.horizAdvX||i.horizAdvX)/a,typeof d[w]<"u"&&!isNaN(d[w])&&(this.x+=d[w])}return}var{x:y,y:E}=this;e.fillStyle&&e.fillText(n,y,E),e.strokeStyle&&e.strokeText(n,y,E)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),A=!1,n=0;r==="start"&&!A||r==="end"&&A?n=e.x-this.minX:r==="end"&&!A||r==="start"&&A?n=e.x-this.maxX:n=e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((r,A)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,A)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,A,n){var i=A.children[n];i.children.length>0?i.children.forEach((a,s)=>{r.adjustChildCoordinatesRecursiveCore(e,r,i,s)}):this.adjustChildCoordinates(e,r,A,n)}adjustChildCoordinates(e,r,A,n){var i=A.children[n];if(typeof i.measureText!="function")return i;e.save(),i.setContext(e,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),l=i.getAttribute("dy"),c=i.getStyle("font-family").getDefinition(),h=!!c&&c.isRTL;n===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var d=i.measureText(e);return h&&(r.x-=d),a.hasValue()?(r.applyAnchoring(),i.x=a.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(r.x+=o.getPixels("x")),i.x=r.x),r.x=i.x,h||(r.x+=d),s.hasValue()?(i.y=s.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(r.y+=l.getPixels("y")),i.y=r.y),r.y=i.y,r.leafTexts.push(i),r.minX=Math.min(r.minX,i.x,i.x+d),r.maxX=Math.max(r.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,r,A,n){var i=A.children[n];if(typeof i.getBoundingBox!="function")return null;var a=i.getBoundingBox(e);return a?(i.children.forEach((s,o)=>{var l=r.getChildBoundingBox(e,r,i,o);a.addBoundingBox(l)}),a):null}renderChild(e,r,A,n){var i=A.children[n];i.render(e),i.children.forEach((a,s)=>{r.renderChild(e,r,i,s)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var A=this.getText(),n=this.measureTargetText(e,A);return this.measureCache=n,n}measureTargetText(e,r){if(!r.length)return 0;var{parent:A}=this,n=A.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?r.split("").reverse().join(""):r,s=ZA(A.getAttribute("dx").getString()),o=a.length,l=0,c=0;c<o;c++){var h=this.getGlyph(n,a,c);l+=(h.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof s[c]<"u"&&!isNaN(s[c])&&(l+=s[c])}return l}if(!e.measureText)return r.length*10;e.save(),this.setContext(e,!0);var{width:d}=e.measureText(r);return this.clearContext(e),e.restore(),d}getInheritedAttribute(e){for(var r=this;r instanceof Xi&&r.isFirstChild();){var A=r.parent.getAttribute(e);if(A.hasValue(!0))return A.getValue("0");r=r.parent}return null}}class xc extends Xi{constructor(e,r,A){super(e,r,new.target===xc?!0:A),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class RY extends xc{constructor(){super(...arguments),this.type="textNode"}}class Po extends Na{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:A}=this,{screen:n,window:i}=A,a=e.canvas;if(n.setDefaults(e),a.style&&typeof e.font<"u"&&i&&typeof i.getComputedStyle<"u"){e.font=i.getComputedStyle(a).getPropertyValue("font");var s=new pt(A,"fontSize",NA.parse(e.font).fontSize);s.hasValue()&&(A.rootEmSize=s.getPixels("y"),A.emSize=A.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:l}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),h=this.getAttribute("refY"),d=this.getAttribute("viewBox"),u=d.hasValue()?ZA(d.getString()):null,w=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",v=0,x=0,y=0,E=0;u&&(v=u[0],x=u[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=v,E=x,v=0,x=0)),n.viewPort.setCurrent(o,l),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),u&&(o=u[2],l=u[3]),A.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:l,minX:v,minY:x,refX:c.getValue(),refY:h.getValue(),clip:w,clipX:y,clipY:E}),u&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),l=i.getNumber(0);if(A)if(typeof A=="string")this.getAttribute("preserveAspectRatio",!0).setValue(A);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),i.setValue(r),a.hasValue()||a.setValue("0 0 ".concat(o||e," ").concat(l||r)),s.hasValue()){var h=this.getStyle("width"),d=this.getStyle("height");h.hasValue()&&h.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(r,"px"))}}}class Wp extends Zt{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),l=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(l=o),s.hasValue()&&!a.hasValue()&&(o=l),o=Math.min(o,n/2),l=Math.min(l,i/2),e){var c=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&n>0&&(e.moveTo(r+o,A),e.lineTo(r+n-o,A),e.bezierCurveTo(r+n-o+c*o,A,r+n,A+l-c*l,r+n,A+l),e.lineTo(r+n,A+i-l),e.bezierCurveTo(r+n,A+i-l+c*l,r+n-o+c*o,A+i,r+n-o,A+i),e.lineTo(r+o,A+i),e.bezierCurveTo(r+o-c*o,A+i,r,A+i-l+c*l,r,A+i-l),e.lineTo(r,A+l),e.bezierCurveTo(r,A+l-c*l,r+o-c*o,A,r+o,A),e.closePath())}return new Un(r,A,r+n,A+i)}getMarkers(){return null}}class eE extends Zt{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),A=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(r,A,n,0,Math.PI*2,!1),e.closePath()),new Un(r-n,A-n,r+n,A+n)}getMarkers(){return null}}class tE extends Zt{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),A=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return e&&A>0&&n>0&&(e.beginPath(),e.moveTo(i+A,a),e.bezierCurveTo(i+A,a+r*n,i+r*A,a+n,i,a+n),e.bezierCurveTo(i-r*A,a+n,i-A,a+r*n,i-A,a),e.bezierCurveTo(i-A,a-r*n,i-r*A,a-n,i,a-n),e.bezierCurveTo(i+r*A,a-n,i+A,a-r*n,i+A,a),e.closePath()),new Un(i-A,a-n,i+A,a+n)}getMarkers(){return null}}class rE extends Zt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Ur(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Ur(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:A},{x:n,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,A),e.lineTo(n,i)),new Un(r,A,n,i)}getMarkers(){var[e,r]=this.getPoints(),A=e.angleTo(r);return[[e,A],[r,A]]}}class zp extends Zt{constructor(e,r,A){super(e,r,A),this.type="polyline",this.points=[],this.points=Ur.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:A,y:n}]=r,i=new Un(A,n);return e&&(e.beginPath(),e.moveTo(A,n)),r.forEach(a=>{var{x:s,y:o}=a;i.addPoint(s,o),e&&e.lineTo(s,o)}),i}getMarkers(){var{points:e}=this,r=e.length-1,A=[];return e.forEach((n,i)=>{i!==r&&A.push([n,n.angleTo(e[i+1])])}),A.length>0&&A.push([e[e.length-1],A[A.length-1][1]]),A}}class AE extends zp{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:A,y:n}]=this.points;return e&&(e.lineTo(A,n),e.closePath()),r}}class nE extends dr{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,A){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new Po(this.document,null);a.attributes.viewBox=new pt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new pt(this.document,"width","".concat(n,"px")),a.attributes.height=new pt(this.document,"height","".concat(i,"px")),a.attributes.transform=new pt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),l=this.getAttribute("x"),c=this.getAttribute("y");l.hasValue()&&c.hasValue()&&o.translate(l.getPixels("x",!0),c.getPixels("y",!0)),A.hasValue()?this.styles["fill-opacity"]=A:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var d=-1;d<=1;d++)o.save(),a.attributes.x=new pt(this.document,"x",h*s.width),a.attributes.y=new pt(this.document,"y",d*s.height),a.render(o),o.restore();var u=e.createPattern(s,"repeat");return u}}class iE extends dr{constructor(){super(...arguments),this.type="marker"}render(e,r,A){if(r){var{x:n,y:i}=r,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,i),a==="auto"&&e.rotate(A),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new Po(this.document,null);o.type=this.type,o.attributes.viewBox=new pt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new pt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new pt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new pt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new pt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new pt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new pt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new pt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),a==="auto"&&e.rotate(-A),e.translate(-n,-i)}}}class aE extends dr{constructor(){super(...arguments),this.type="defs"}render(){}}class Lu extends Na{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new Un;return this.children.forEach(A=>{r.addBoundingBox(A.getBoundingBox(e))}),r}}class Xp extends dr{constructor(e,r,A){super(e,r,A),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(a=>{a.type==="stop"&&n.push(a)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,A){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,a=this.getGradient(e,r);if(!a)return this.addParentOpacity(A,i[i.length-1].color);if(i.forEach(x=>{a.addColorStop(x.offset,this.addParentOpacity(A,x.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=s.screen,[c]=l.viewPorts,h=new Wp(s,null);h.attributes.x=new pt(s,"x",-o/3),h.attributes.y=new pt(s,"y",-o/3),h.attributes.width=new pt(s,"width",o),h.attributes.height=new pt(s,"height",o);var d=new Lu(s,null);d.attributes.transform=new pt(s,"transform",this.getAttribute("gradientTransform").getValue()),d.children=[h];var u=new Po(s,null);u.attributes.x=new pt(s,"x",0),u.attributes.y=new pt(s,"y",0),u.attributes.width=new pt(s,"width",c.width),u.attributes.height=new pt(s,"height",c.height),u.children=[d];var w=s.createCanvas(c.width,c.height),v=w.getContext("2d");return v.fillStyle=a,u.render(v),v.createPattern(w,"no-repeat")}return a}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var A=new pt(this.document,"color",r);return A.addOpacity(e).getColor()}return r}}class sE extends Xp{constructor(e,r,A){super(e,r,A),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var A=this.getGradientUnits()==="objectBoundingBox",n=A?r.getBoundingBox(e):null;if(A&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=A?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=A?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=A?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=A?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:e.createLinearGradient(i,a,s,o)}}class oE extends Xp{constructor(e,r,A){super(e,r,A),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var A=this.getGradientUnits()==="objectBoundingBox",n=r.getBoundingBox(e);if(A&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=A?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=A?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=A?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=A?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=A?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,o,c,i,a,l)}}class lE extends dr{constructor(e,r,A){super(e,r,A),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);a.getString()===""&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=n,this.color=a.getColor()}}class Nu extends dr{constructor(e,r,A){super(e,r,A),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new pt(e,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:A,to:n}=this.getProgress(),i=A.getNumber()+(n.getNumber()-A.getNumber())*r;return e==="%"&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:r}=this,A=this.getProperty();if(this.initialValue||(this.initialValue=A.getString(),this.initialUnits=A.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=A.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,A.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}A.setValue(a),i=!0}return i}getProgress(){var{document:e,values:r}=this,A={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var n=A.progress*(r.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);A.from=new pt(e,"from",parseFloat(r.getValue()[i])),A.to=new pt(e,"to",parseFloat(r.getValue()[a])),A.progress=(n-i)/(a-i)}else A.from=this.from,A.to=this.to;return A}}class cE extends Nu{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:r,to:A}=this.getProgress(),n=new _p(r.getColor()),i=new _p(A.getColor());if(n.ok&&i.ok){var a=n.r+(i.r-n.r)*e,s=n.g+(i.g-n.g)*e,o=n.b+(i.b-n.b)*e;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class fE extends Nu{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:r,to:A}=this.getProgress(),n=ZA(r.getString()),i=ZA(A.getString()),a=n.map((s,o)=>{var l=i[o];return s+(l-s)*e}).join(" ");return a}}class uE extends dr{constructor(e,r,A){super(e,r,A),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=e,{children:i}=this;for(var a of i)switch(a.type){case"font-face":{this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=a;break;case"glyph":{var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class hE extends dr{constructor(e,r,A){super(e,r,A),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class dE extends Zt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class gE extends Xi{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}}class pE extends Xi{constructor(e,r,A){super(e,r,A),this.type="a";var{childNodes:n}=r,i=n[0],a=n.length>0&&Array.from(n).every(s=>s.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:A,y:n}=this,{mouse:i}=r.screen,a=new pt(r,"fontSize",NA.parse(r.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Un(A,n-a.getPixels("y"),A+this.measureText(e),n))}else if(this.children.length>0){var s=new Lu(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function vE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,A)}return r}function Qu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vE(Object(r),!0).forEach(function(A){xp(t,A,r[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach(function(A){Object.defineProperty(t,A,Object.getOwnPropertyDescriptor(r,A))})}return t}class mE extends Xi{constructor(e,r,A){super(e,r,A),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(A=>{var{type:n,points:i}=A;switch(n){case Tt.LINE_TO:e&&e.lineTo(i[0],i[1]);break;case Tt.MOVE_TO:e&&e.moveTo(i[0],i[1]);break;case Tt.CURVE_TO:e&&e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case Tt.QUAD_TO:e&&e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case Tt.ARC:{var[a,s,o,l,c,h,d,u]=i,w=o>l?o:l,v=o>l?1:o/l,x=o>l?l/o:1;e&&(e.translate(a,s),e.rotate(d),e.scale(v,x),e.arc(0,0,w,c,c+h,!!(1-u)),e.scale(1/v,1/x),e.rotate(-d),e.translate(-a,-s));break}case Tt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),A=this.getFontSize(),{glyphInfo:n}=this,i=e.fillStyle;r==="underline"&&e.beginPath(),n.forEach((a,s)=>{var{p0:o,p1:l,rotation:c,text:h}=a;e.save(),e.translate(o.x,o.y),e.rotate(c),e.fillStyle&&e.fillText(h,0,0),e.strokeStyle&&e.strokeText(h,0,0),e.restore(),r==="underline"&&(s===0&&e.moveTo(o.x,o.y+A/8),e.lineTo(l.x,l.y+A/5))}),r==="underline"&&(e.lineWidth=A/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,A,n,i,a,s,o,l){var c=a,h=this.measureText(e,o);o===" "&&r==="justify"&&A<n&&(h+=(n-A)/i),l>-1&&(c+=this.getLetterSpacingAt(l));var d=this.textHeight/20,u=this.getEquidistantPointOnPath(c,d,0),w=this.getEquidistantPointOnPath(c+h,d,0),v={p0:u,p1:w},x=u&&w?Math.atan2(w.y-u.y,w.x-u.x):0;if(s){var y=Math.cos(Math.PI/2+x)*s,E=Math.cos(-x)*s;v.p0=Qu(Qu({},u),{},{x:u.x+y,y:u.y+E}),v.p1=Qu(Qu({},w),{},{x:w.x+y,y:w.y+E})}return c+=h,{offset:c,segment:v,rotation:x}}measureText(e,r){var{measuresCache:A}=this,n=r||this.getText();if(A.has(n))return A.get(n);var i=this.measureTargetText(e,n);return A.set(n,i),i}setTextData(e){if(!this.glyphInfo){var r=this.getText(),A=r.split(""),n=r.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(k=>k.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),c=0;!o.hasValue()||o.getValue()==="inherit"?c=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(c=o.getPixels());var h=[],d=r.length;this.letterSpacingCache=h;for(var u=0;u<d;u++)h.push(typeof i[u]<"u"?i[u]:c);var w=h.reduce((k,X,q)=>q===0?0:k+X||0,0),v=this.measureText(e),x=Math.max(v+w,0);this.textWidth=v,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),E=this.getStyle("startOffset").getNumber(0)*y,F=0;(s==="middle"||s==="center")&&(F=-x/2),(s==="end"||s==="right")&&(F=-x),F+=E,A.forEach((k,X)=>{var{offset:q,segment:N,rotation:Q}=this.findSegmentToFitChar(e,s,x,y,n,F,a,k,X);F=q,!(!N.p0||!N.p1)&&this.glyphInfo.push({text:A[X],p0:N.p0,p1:N.p1,rotation:Q})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:A}=e;for(A.reset();!A.isEnd();){var{current:n}=A,i=n?n.x:0,a=n?n.y:0,s=A.next(),o=s.type,l=[];switch(s.type){case Tt.MOVE_TO:this.pathM(A,l);break;case Tt.LINE_TO:o=this.pathL(A,l);break;case Tt.HORIZ_LINE_TO:o=this.pathH(A,l);break;case Tt.VERT_LINE_TO:o=this.pathV(A,l);break;case Tt.CURVE_TO:this.pathC(A,l);break;case Tt.SMOOTH_CURVE_TO:o=this.pathS(A,l);break;case Tt.QUAD_TO:this.pathQ(A,l);break;case Tt.SMOOTH_QUAD_TO:o=this.pathT(A,l);break;case Tt.ARC:l=this.pathA(A);break;case Tt.CLOSE_PATH:Zt.pathZ(A);break}s.type!==Tt.CLOSE_PATH?r.push({type:o,points:l,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,l)}):r.push({type:Tt.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:A,y:n}=Zt.pathM(e).point;r.push(A,n)}pathL(e,r){var{x:A,y:n}=Zt.pathL(e).point;return r.push(A,n),Tt.LINE_TO}pathH(e,r){var{x:A,y:n}=Zt.pathH(e).point;return r.push(A,n),Tt.LINE_TO}pathV(e,r){var{x:A,y:n}=Zt.pathV(e).point;return r.push(A,n),Tt.LINE_TO}pathC(e,r){var{point:A,controlPoint:n,currentPoint:i}=Zt.pathC(e);r.push(A.x,A.y,n.x,n.y,i.x,i.y)}pathS(e,r){var{point:A,controlPoint:n,currentPoint:i}=Zt.pathS(e);return r.push(A.x,A.y,n.x,n.y,i.x,i.y),Tt.CURVE_TO}pathQ(e,r){var{controlPoint:A,currentPoint:n}=Zt.pathQ(e);r.push(A.x,A.y,n.x,n.y)}pathT(e,r){var{controlPoint:A,currentPoint:n}=Zt.pathT(e);return r.push(A.x,A.y,n.x,n.y),Tt.QUAD_TO}pathA(e){var{rX:r,rY:A,sweepFlag:n,xAxisRotation:i,centp:a,a1:s,ad:o}=Zt.pathA(e);return n===0&&o>0&&(o-=2*Math.PI),n===1&&o<0&&(o+=2*Math.PI),[a.x,a.y,r,A,s,o,i,n]}calcLength(e,r,A,n){var i=0,a=null,s=null,o=0;switch(A){case Tt.LINE_TO:return this.getLineLength(e,r,n[0],n[1]);case Tt.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,r,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,e,r,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Tt.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,r,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,e,r,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Tt.ARC:{i=0;var l=n[4],c=n[5],h=n[4]+c,d=Math.PI/180;if(Math.abs(l-h)<d&&(d=Math.abs(l-h)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),c<0)for(o=l-d;o>h;o-=d)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=l+d;o<h;o+=d)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),i}}return 0}getPointOnLine(e,r,A,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:A,o=(i-A)/(n-r+_s),l=Math.sqrt(e*e/(1+o*o));n<r&&(l*=-1);var c=o*l,h=null;if(n===r)h={x:a,y:s+c};else if((s-A)/(a-r+_s)===o)h={x:a+l,y:s+c};else{var d=0,u=0,w=this.getLineLength(r,A,n,i);if(w<_s)return null;var v=(a-r)*(n-r)+(s-A)*(i-A);v/=w*w,d=r+v*(n-r),u=A+v*(i-A);var x=this.getLineLength(a,s,d,u),y=Math.sqrt(e*e-x*x);l=Math.sqrt(y*y/(1+o*o)),n<r&&(l*=-1),c=o*l,h={x:d+l,y:u+c}}return h}getPointOnPath(e){var r=this.getPathLength(),A=0,n=null;if(e<-5e-5||e-5e-5>r)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||A+a.pathLength+5e-5<e)){A+=a.pathLength;continue}var s=e-A,o=0;switch(a.type){case Tt.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Tt.ARC:{var l=a.points[4],c=a.points[5],h=a.points[4]+c;if(o=l+s/a.pathLength*c,c<0&&o<h||c>=0&&o>h)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break}case Tt.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Tt.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(n)return n;break}return null}getLineLength(e,r,A,n){return Math.sqrt((A-e)*(A-e)+(n-r)*(n-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,A,n,i,a,s,o,l){var c=o*kp(e)+a*Dp(e)+n*Pp(e)+r*Rp(e),h=l*kp(e)+s*Dp(e)+i*Pp(e)+A*Rp(e);return{x:c,y:h}}getPointOnQuadraticBezier(e,r,A,n,i,a,s){var o=a*Mp(e)+n*Hp(e)+r*Vp(e),l=s*Mp(e)+i*Hp(e)+A*Vp(e);return{x:o,y:l}}getPointOnEllipticalArc(e,r,A,n,i,a){var s=Math.cos(a),o=Math.sin(a),l={x:A*Math.cos(i),y:n*Math.sin(i)};return{x:e+(l.x*s-l.y*o),y:r+(l.x*o+l.y*s)}}buildEquidistantCache(e,r){var A=this.getPathLength(),n=r||.25,i=e||A/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=A;s+=n){var o=this.getPointOnPath(s),l=this.getPointOnPath(s+n);!o||!l||(a+=this.getLineLength(o.x,o.y,l.x,l.y),a>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(e,r,A){if(this.buildEquidistantCache(r,A),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var MY=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class wE extends Na{constructor(e,r,A){super(e,r,A),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);e.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(e){var r=this;return ji(function*(){try{var A=yield r.document.createImage(e);r.image=A}catch(n){console.error('Error while loading image "'.concat(e,'":'),n)}r.loaded=!0})()}loadSvg(e){var r=this;return ji(function*(){var A=MY.exec(e);if(A){var n=A[5];A[4]==="base64"?r.image=atob(n):r.image=decodeURIComponent(n)}else try{var i=yield r.document.fetch(e),a=yield i.text();r.image=a}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}r.loaded=!0})()}renderChildren(e){var{document:r,image:A,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!n||!A||!s||!o)){if(e.save(),e.translate(i,a),this.isSvg){var l=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var c=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:c.width,height:o,desiredHeight:c.height}),this.loaded&&(typeof c.complete>"u"||c.complete)&&e.drawImage(c,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),A=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Un(e,r,e+A,r+n)}}class BE extends Na{constructor(){super(...arguments),this.type="symbol"}render(e){}}class xE{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var A=this;return ji(function*(){try{var{document:n}=A,i=yield n.canvg.parser.load(r),a=i.getElementsByTagName("font");Array.from(a).forEach(s=>{var o=n.createElement(s);n.definitions[e]=o})}catch(s){console.error('Error while loading font "'.concat(r,'":'),s)}A.loaded=!0})()}}class qp extends dr{constructor(e,r,A){super(e,r,A),this.type="style";var n=Fs(Array.from(r.childNodes).map(a=>a.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach(a=>{var s=a.trim();if(s){var o=s.split("{"),l=o[0].split(","),c=o[1].split(";");l.forEach(h=>{var d=h.trim();if(d){var u=e.styles[d]||{};if(c.forEach(x=>{var y=x.indexOf(":"),E=x.substr(0,y).trim(),F=x.substr(y+1,x.length-y).trim();E&&F&&(u[E]=new pt(e,E,F))}),e.styles[d]=u,e.stylesSpecificity[d]=KC(d),d==="@font-face"){var w=u["font-family"].getString().replace(/"|'/g,""),v=u.src.getString().split(",");v.forEach(x=>{if(x.indexOf('format("svg")')>0){var y=Np(x);y&&new xE(e).load(w,y)}})}}})}})}}qp.parseExternalUrl=Np;class yE extends Na{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),A=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),A.hasValue()&&e.translate(0,A.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:A}=this;if(A){var n=A;if(A.type==="symbol"&&(n=new Po(r,null),n.attributes.viewBox=new pt(r,"viewBox",A.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new pt(r,"preserveAspectRatio",A.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new pt(r,"overflow",A.getAttribute("overflow").getString()),n.children=A.children,A.styles.opacity=new pt(r,"opacity",this.calculateOpacity())),n.type==="svg"){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new pt(r,"width",i.getString())),a.hasValue()&&(n.attributes.height=new pt(r,"height",a.getString()))}var s=n.parent;n.parent=this,n.render(e),n.parent=s}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return La.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Ou(t,e,r,A,n,i){return t[r*A*4+e*4+i]}function ku(t,e,r,A,n,i,a){t[r*A*4+e*4+i]=a}function Xr(t,e,r){var A=t[e];return A*r}function qi(t,e,r,A){return e+Math.cos(t)*r+Math.sin(t)*A}class Yp extends dr{constructor(e,r,A){super(e,r,A),this.type="feColorMatrix";var n=ZA(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var a=n[0]*Math.PI/180;n=[qi(a,.213,.787,-.213),qi(a,.715,-.715,-.715),qi(a,.072,-.072,.928),0,0,qi(a,.213,-.213,.143),qi(a,.715,.285,.14),qi(a,.072,-.072,-.283),0,0,qi(a,.213,-.213,-.787),qi(a,.715,-.715,.715),qi(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,A,n,i){for(var{includeOpacity:a,matrix:s}=this,o=e.getImageData(0,0,n,i),l=0;l<i;l++)for(var c=0;c<n;c++){var h=Ou(o.data,c,l,n,i,0),d=Ou(o.data,c,l,n,i,1),u=Ou(o.data,c,l,n,i,2),w=Ou(o.data,c,l,n,i,3),v=Xr(s,0,h)+Xr(s,1,d)+Xr(s,2,u)+Xr(s,3,w)+Xr(s,4,1),x=Xr(s,5,h)+Xr(s,6,d)+Xr(s,7,u)+Xr(s,8,w)+Xr(s,9,1),y=Xr(s,10,h)+Xr(s,11,d)+Xr(s,12,u)+Xr(s,13,w)+Xr(s,14,1),E=Xr(s,15,h)+Xr(s,16,d)+Xr(s,17,u)+Xr(s,18,w)+Xr(s,19,1);a&&(v=0,x=0,y=0,E*=w/255),ku(o.data,c,l,n,i,0,v),ku(o.data,c,l,n,i,1,x),ku(o.data,c,l,n,i,2,y),ku(o.data,c,l,n,i,3,E)}e.clearRect(0,0,n,i),e.putImageData(o,0,0)}}class yc extends dr{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:A}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new Un;this.children.forEach(w=>{o.addBoundingBox(w.getBoundingBox(e))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var l=this.removeStyles(r,yc.ignoreStyles),c=A.createCanvas(n+a,i+s),h=c.getContext("2d");A.screen.setDefaults(h),this.renderChildren(h),new Yp(A,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,n+a,i+s);var d=A.createCanvas(n+a,i+s),u=d.getContext("2d");A.screen.setDefaults(u),r.render(u),u.globalCompositeOperation="destination-in",u.fillStyle=h.createPattern(c,"no-repeat"),u.fillRect(0,0,n+a,i+s),e.fillStyle=u.createPattern(d,"no-repeat"),e.fillRect(0,0,n+a,i+s),this.restoreStyles(r,l)}render(e){}}yc.ignoreStyles=["mask","transform","clip-path"];var CE=()=>{};class EE extends dr{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,A=Reflect.getPrototypeOf(e),{beginPath:n,closePath:i}=e;A&&(A.beginPath=CE,A.closePath=CE),Reflect.apply(n,e,[]),this.children.forEach(a=>{if(!(typeof a.path>"u")){var s=typeof a.elementTransform<"u"?a.elementTransform():null;s||(s=La.fromElement(r,a)),s&&s.apply(e),a.path(e),A&&(A.closePath=i),s&&s.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),A&&(A.beginPath=n,A.closePath=i)}render(e){}}class Cc extends dr{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:A,children:n}=this,i=r.getBoundingBox(e);if(i){var a=0,s=0;n.forEach(y=>{var E=y.extraFilterDistance||0;a=Math.max(a,E),s=Math.max(s,E)});var o=Math.floor(i.width),l=Math.floor(i.height),c=o+2*a,h=l+2*s;if(!(c<1||h<1)){var d=Math.floor(i.x),u=Math.floor(i.y),w=this.removeStyles(r,Cc.ignoreStyles),v=A.createCanvas(c,h),x=v.getContext("2d");A.screen.setDefaults(x),x.translate(-d+a,-u+s),r.render(x),n.forEach(y=>{typeof y.apply=="function"&&y.apply(x,0,0,c,h)}),e.drawImage(v,0,0,c,h,d-a,u-s,c,h),this.restoreStyles(r,w)}}}render(e){}}Cc.ignoreStyles=["filter","transform","clip-path"];class bE extends dr{constructor(e,r,A){super(e,r,A),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,A,n,i){}}class FE extends dr{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,A,n,i){}}class SE extends dr{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,A,n,i){}}class _E extends dr{constructor(e,r,A){super(e,r,A),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,A,n,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,l=e.canvas;l.id=a.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),mY(l,r,A,n,i,s),o&&o.removeChild(l)}}class TE extends dr{constructor(){super(...arguments),this.type="title"}}class UE extends dr{constructor(){super(...arguments),this.type="desc"}}var HY={svg:Po,rect:Wp,circle:eE,ellipse:tE,line:rE,polyline:zp,polygon:AE,path:Zt,pattern:nE,marker:iE,defs:aE,linearGradient:sE,radialGradient:oE,stop:lE,animate:Nu,animateColor:cE,animateTransform:fE,font:uE,"font-face":hE,"missing-glyph":dE,glyph:jp,text:Xi,tspan:xc,tref:gE,a:pE,textPath:mE,image:wE,g:Lu,symbol:BE,style:qp,use:yE,mask:yc,clipPath:EE,filter:Cc,feDropShadow:bE,feMorphology:FE,feComposite:SE,feColorMatrix:Yp,feGaussianBlur:_E,title:TE,desc:UE};function IE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,A)}return r}function VY(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IE(Object(r),!0).forEach(function(A){xp(t,A,r[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IE(Object(r)).forEach(function(A){Object.defineProperty(t,A,Object.getOwnPropertyDescriptor(r,A))})}return t}function KY(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function GY(t){return $p.apply(this,arguments)}function $p(){return $p=ji(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((A,n)=>{r.onload=()=>{A(r)},r.onerror=(i,a,s,o,l)=>{n(l)},r.src=t})}),$p.apply(this,arguments)}class Yi{constructor(e){var{rootEmSize:r=12,emSize:A=12,createCanvas:n=Yi.createCanvas,createImage:i=Yi.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=A,this.createCanvas=n,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return typeof r=="boolean"?(A,n)=>e(A,typeof n=="boolean"?n:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),A=Yi.elementTypes[r];return typeof A<"u"?new A(this,e):new ZC(this,e)}createTextNode(e){return new RY(this,e)}setViewBox(e){this.screen.setViewBox(VY({document:this},e))}}Yi.createCanvas=KY,Yi.createImage=GY,Yi.elementTypes=HY;function LE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,A)}return r}function Ts(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?LE(Object(r),!0).forEach(function(A){xp(t,A,r[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LE(Object(r)).forEach(function(A){Object.defineProperty(t,A,Object.getOwnPropertyDescriptor(r,A))})}return t}class Us{constructor(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Iu(A),this.screen=new Bc(e,A),this.options=A;var n=new Yi(this,A),i=n.createDocumentElement(r);this.document=n,this.documentElement=i}static from(e,r){var A=arguments;return ji(function*(){var n=A.length>2&&A[2]!==void 0?A[2]:{},i=new Iu(n),a=yield i.parse(r);return new Us(e,a,n)})()}static fromString(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Iu(A),i=n.parseFromString(r);return new Us(e,i,A)}fork(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Us.from(e,r,Ts(Ts({},this.options),A))}forkString(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Us.fromString(e,r,Ts(Ts({},this.options),A))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return ji(function*(){var A=e.length>0&&e[0]!==void 0?e[0]:{};r.start(Ts({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},A)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:A,options:n}=this;A.start(r,Ts(Ts({enableRedraw:!0},n),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,A)}}const jY=Object.freeze(Object.defineProperty({__proto__:null,AElement:pE,AnimateColorElement:cE,AnimateElement:Nu,AnimateTransformElement:fE,BoundingBox:Un,CB1:kp,CB2:Dp,CB3:Pp,CB4:Rp,Canvg:Us,CircleElement:eE,ClipPathElement:EE,DefsElement:aE,DescElement:UE,Document:Yi,Element:dr,EllipseElement:tE,FeColorMatrixElement:Yp,FeCompositeElement:SE,FeDropShadowElement:bE,FeGaussianBlurElement:_E,FeMorphologyElement:FE,FilterElement:Cc,Font:NA,FontElement:uE,FontFaceElement:hE,GElement:Lu,GlyphElement:jp,GradientElement:Xp,ImageElement:wE,LineElement:rE,LinearGradientElement:sE,MarkerElement:iE,MaskElement:yc,Matrix:Kp,MissingGlyphElement:dE,Mouse:jC,PSEUDO_ZERO:_s,Parser:Iu,PathElement:Zt,PathParser:Tt,PatternElement:nE,Point:Ur,PolygonElement:AE,PolylineElement:zp,Property:pt,QB1:Mp,QB2:Hp,QB3:Vp,RadialGradientElement:oE,RectElement:Wp,RenderedElement:Na,Rotate:qC,SVGElement:Po,SVGFontLoader:xE,Scale:YC,Screen:Bc,Skew:Gp,SkewX:$C,SkewY:JC,StopElement:lE,StyleElement:qp,SymbolElement:BE,TRefElement:gE,TSpanElement:xc,TextElement:Xi,TextPathElement:mE,TitleElement:TE,Transform:La,Translate:XC,UnknownElement:ZC,UseElement:yE,ViewPort:GC,compressSpaces:Fs,default:Us,getSelectorSpecificity:KC,normalizeAttributeName:HC,normalizeColor:VC,parseExternalUrl:Np,presets:yY,toNumbers:ZA,trimLeft:RC,trimRight:MC,vectorMagnitude:Qp,vectorsAngle:Op,vectorsRatio:Uu},Symbol.toStringTag,{value:"Module"}));sa.VueUiTable=pR,sa.VueUiXy=RD,Object.defineProperty(sa,Symbol.toStringTag,{value:"Module"})});
|
|
391
|
+
***************************************************************************** */var FC=function(t,e){return(FC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,A){r.__proto__=A}||function(r,A){for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(r[n]=A[n])})(t,e)};function SC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}FC(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Xq(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var A=t[r];if(A.type===je.CLOSE_PATH)e+="z";else if(A.type===je.HORIZ_LINE_TO)e+=(A.relative?"h":"H")+A.x;else if(A.type===je.VERT_LINE_TO)e+=(A.relative?"v":"V")+A.y;else if(A.type===je.MOVE_TO)e+=(A.relative?"m":"M")+A.x+" "+A.y;else if(A.type===je.LINE_TO)e+=(A.relative?"l":"L")+A.x+" "+A.y;else if(A.type===je.CURVE_TO)e+=(A.relative?"c":"C")+A.x1+" "+A.y1+" "+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===je.SMOOTH_CURVE_TO)e+=(A.relative?"s":"S")+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===je.QUAD_TO)e+=(A.relative?"q":"Q")+A.x1+" "+A.y1+" "+A.x+" "+A.y;else if(A.type===je.SMOOTH_QUAD_TO)e+=(A.relative?"t":"T")+A.x+" "+A.y;else{if(A.type!==je.ARC)throw new Error('Unexpected command type "'+A.type+'" at index '+r+".");e+=(A.relative?"a":"A")+A.rX+" "+A.rY+" "+A.xRot+" "+ +A.lArcFlag+" "+ +A.sweepFlag+" "+A.x+" "+A.y}}return e}function Up(t,e){var r=t[0],A=t[1];return[r*Math.cos(e)-A*Math.sin(e),r*Math.sin(e)+A*Math.cos(e)]}function Jn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if(typeof t[r]!="number")throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Ia=Math.PI;function Ip(t,e,r){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;var A=t.rX,n=t.rY,i=t.x,a=t.y;A=Math.abs(t.rX),n=Math.abs(t.rY);var s=Up([(e-i)/2,(r-a)/2],-t.xRot/180*Ia),o=s[0],l=s[1],c=Math.pow(o,2)/Math.pow(A,2)+Math.pow(l,2)/Math.pow(n,2);1<c&&(A*=Math.sqrt(c),n*=Math.sqrt(c)),t.rX=A,t.rY=n;var h=Math.pow(A,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(o,2),d=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(A,2)*Math.pow(n,2)-h)/h)),u=A*l/n*d,w=-n*o/A*d,v=Up([u,w],t.xRot/180*Ia);t.cX=v[0]+(e+i)/2,t.cY=v[1]+(r+a)/2,t.phi1=Math.atan2((l-w)/n,(o-u)/A),t.phi2=Math.atan2((-l-w)/n,(-o-u)/A),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*Ia),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*Ia),t.phi1*=180/Ia,t.phi2*=180/Ia}function _C(t,e,r){Jn(t,e,r);var A=t*t+e*e-r*r;if(0>A)return[];if(A===0)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(A);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var zr,zi=Math.PI/180;function TC(t,e,r){return(1-r)*t+r*e}function UC(t,e,r,A){return t+Math.cos(A/180*Ia)*e+Math.sin(A/180*Ia)*r}function IC(t,e,r,A){var n=1e-6,i=e-t,a=r-e,s=3*i+3*(A-r)-6*a,o=6*(a-i),l=3*i;return Math.abs(s)<n?[-l/o]:function(c,h,d){d===void 0&&(d=1e-6);var u=c*c/4-h;if(u<-d)return[];if(u<=d)return[-c/2];var w=Math.sqrt(u);return[-c/2-w,-c/2+w]}(o/s,l/s,n)}function LC(t,e,r,A,n){var i=1-n;return t*(i*i*i)+e*(3*i*i*n)+r*(3*i*n*n)+A*(n*n*n)}(function(t){function e(){return n(function(s,o,l){return s.relative&&(s.x1!==void 0&&(s.x1+=o),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=o),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=o),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function r(){var s=NaN,o=NaN,l=NaN,c=NaN;return n(function(h,d,u){return h.type&je.SMOOTH_CURVE_TO&&(h.type=je.CURVE_TO,s=isNaN(s)?d:s,o=isNaN(o)?u:o,h.x1=h.relative?d-s:2*d-s,h.y1=h.relative?u-o:2*u-o),h.type&je.CURVE_TO?(s=h.relative?d+h.x2:h.x2,o=h.relative?u+h.y2:h.y2):(s=NaN,o=NaN),h.type&je.SMOOTH_QUAD_TO&&(h.type=je.QUAD_TO,l=isNaN(l)?d:l,c=isNaN(c)?u:c,h.x1=h.relative?d-l:2*d-l,h.y1=h.relative?u-c:2*u-c),h.type&je.QUAD_TO?(l=h.relative?d+h.x1:h.x1,c=h.relative?u+h.y1:h.y1):(l=NaN,c=NaN),h})}function A(){var s=NaN,o=NaN;return n(function(l,c,h){if(l.type&je.SMOOTH_QUAD_TO&&(l.type=je.QUAD_TO,s=isNaN(s)?c:s,o=isNaN(o)?h:o,l.x1=l.relative?c-s:2*c-s,l.y1=l.relative?h-o:2*h-o),l.type&je.QUAD_TO){s=l.relative?c+l.x1:l.x1,o=l.relative?h+l.y1:l.y1;var d=l.x1,u=l.y1;l.type=je.CURVE_TO,l.x1=((l.relative?0:c)+2*d)/3,l.y1=((l.relative?0:h)+2*u)/3,l.x2=(l.x+2*d)/3,l.y2=(l.y+2*u)/3}else s=NaN,o=NaN;return l})}function n(s){var o=0,l=0,c=NaN,h=NaN;return function(d){if(isNaN(c)&&!(d.type&je.MOVE_TO))throw new Error("path must start with moveto");var u=s(d,o,l,c,h);return d.type&je.CLOSE_PATH&&(o=c,l=h),d.x!==void 0&&(o=d.relative?o+d.x:d.x),d.y!==void 0&&(l=d.relative?l+d.y:d.y),d.type&je.MOVE_TO&&(c=o,h=l),u}}function i(s,o,l,c,h,d){return Jn(s,o,l,c,h,d),n(function(u,w,v,x){var y=u.x1,E=u.x2,F=u.relative&&!isNaN(x),k=u.x!==void 0?u.x:F?0:w,X=u.y!==void 0?u.y:F?0:v;function q(C){return C*C}u.type&je.HORIZ_LINE_TO&&o!==0&&(u.type=je.LINE_TO,u.y=u.relative?0:v),u.type&je.VERT_LINE_TO&&l!==0&&(u.type=je.LINE_TO,u.x=u.relative?0:w),u.x!==void 0&&(u.x=u.x*s+X*l+(F?0:h)),u.y!==void 0&&(u.y=k*o+u.y*c+(F?0:d)),u.x1!==void 0&&(u.x1=u.x1*s+u.y1*l+(F?0:h)),u.y1!==void 0&&(u.y1=y*o+u.y1*c+(F?0:d)),u.x2!==void 0&&(u.x2=u.x2*s+u.y2*l+(F?0:h)),u.y2!==void 0&&(u.y2=E*o+u.y2*c+(F?0:d));var N=s*c-o*l;if(u.xRot!==void 0&&(s!==1||o!==0||l!==0||c!==1))if(N===0)delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag,u.type=je.LINE_TO;else{var Q=u.xRot*Math.PI/180,K=Math.sin(Q),Ae=Math.cos(Q),U=1/q(u.rX),T=1/q(u.rY),V=q(Ae)*U+q(K)*T,Y=2*K*Ae*(U-T),ce=q(K)*U+q(Ae)*T,he=V*c*c-Y*o*c+ce*o*o,me=Y*(s*c+o*l)-2*(V*l*c+ce*s*o),ge=V*l*l-Y*s*l+ce*s*s,we=(Math.atan2(me,he-ge)+Math.PI)%Math.PI/2,Be=Math.sin(we),ke=Math.cos(we);u.rX=Math.abs(N)/Math.sqrt(he*q(ke)+me*Be*ke+ge*q(Be)),u.rY=Math.abs(N)/Math.sqrt(he*q(Be)-me*Be*ke+ge*q(ke)),u.xRot=180*we/Math.PI}return u.sweepFlag!==void 0&&0>N&&(u.sweepFlag=+!u.sweepFlag),u})}function a(){return function(s){var o={};for(var l in s)o[l]=s[l];return o}}t.ROUND=function(s){function o(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),Jn(s),function(l){return l.x1!==void 0&&(l.x1=o(l.x1)),l.y1!==void 0&&(l.y1=o(l.y1)),l.x2!==void 0&&(l.x2=o(l.x2)),l.y2!==void 0&&(l.y2=o(l.y2)),l.x!==void 0&&(l.x=o(l.x)),l.y!==void 0&&(l.y=o(l.y)),l.rX!==void 0&&(l.rX=o(l.rX)),l.rY!==void 0&&(l.rY=o(l.rY)),l}},t.TO_ABS=e,t.TO_REL=function(){return n(function(s,o,l){return s.relative||(s.x1!==void 0&&(s.x1-=o),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=o),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=o),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},t.NORMALIZE_HVZ=function(s,o,l){return s===void 0&&(s=!0),o===void 0&&(o=!0),l===void 0&&(l=!0),n(function(c,h,d,u,w){if(isNaN(u)&&!(c.type&je.MOVE_TO))throw new Error("path must start with moveto");return o&&c.type&je.HORIZ_LINE_TO&&(c.type=je.LINE_TO,c.y=c.relative?0:d),l&&c.type&je.VERT_LINE_TO&&(c.type=je.LINE_TO,c.x=c.relative?0:h),s&&c.type&je.CLOSE_PATH&&(c.type=je.LINE_TO,c.x=c.relative?u-h:u,c.y=c.relative?w-d:w),c.type&je.ARC&&(c.rX===0||c.rY===0)&&(c.type=je.LINE_TO,delete c.rX,delete c.rY,delete c.xRot,delete c.lArcFlag,delete c.sweepFlag),c})},t.NORMALIZE_ST=r,t.QT_TO_C=A,t.INFO=n,t.SANITIZE=function(s){s===void 0&&(s=0),Jn(s);var o=NaN,l=NaN,c=NaN,h=NaN;return n(function(d,u,w,v,x){var y=Math.abs,E=!1,F=0,k=0;if(d.type&je.SMOOTH_CURVE_TO&&(F=isNaN(o)?0:u-o,k=isNaN(l)?0:w-l),d.type&(je.CURVE_TO|je.SMOOTH_CURVE_TO)?(o=d.relative?u+d.x2:d.x2,l=d.relative?w+d.y2:d.y2):(o=NaN,l=NaN),d.type&je.SMOOTH_QUAD_TO?(c=isNaN(c)?u:2*u-c,h=isNaN(h)?w:2*w-h):d.type&je.QUAD_TO?(c=d.relative?u+d.x1:d.x1,h=d.relative?w+d.y1:d.y2):(c=NaN,h=NaN),d.type&je.LINE_COMMANDS||d.type&je.ARC&&(d.rX===0||d.rY===0||!d.lArcFlag)||d.type&je.CURVE_TO||d.type&je.SMOOTH_CURVE_TO||d.type&je.QUAD_TO||d.type&je.SMOOTH_QUAD_TO){var X=d.x===void 0?0:d.relative?d.x:d.x-u,q=d.y===void 0?0:d.relative?d.y:d.y-w;F=isNaN(c)?d.x1===void 0?F:d.relative?d.x:d.x1-u:c-u,k=isNaN(h)?d.y1===void 0?k:d.relative?d.y:d.y1-w:h-w;var N=d.x2===void 0?0:d.relative?d.x:d.x2-u,Q=d.y2===void 0?0:d.relative?d.y:d.y2-w;y(X)<=s&&y(q)<=s&&y(F)<=s&&y(k)<=s&&y(N)<=s&&y(Q)<=s&&(E=!0)}return d.type&je.CLOSE_PATH&&y(u-v)<=s&&y(w-x)<=s&&(E=!0),E?[]:d})},t.MATRIX=i,t.ROTATE=function(s,o,l){o===void 0&&(o=0),l===void 0&&(l=0),Jn(s,o,l);var c=Math.sin(s),h=Math.cos(s);return i(h,c,-c,h,o-o*h+l*c,l-o*c-l*h)},t.TRANSLATE=function(s,o){return o===void 0&&(o=0),Jn(s,o),i(1,0,0,1,s,o)},t.SCALE=function(s,o){return o===void 0&&(o=s),Jn(s,o),i(s,0,0,o,0,0)},t.SKEW_X=function(s){return Jn(s),i(1,0,Math.atan(s),1,0,0)},t.SKEW_Y=function(s){return Jn(s),i(1,Math.atan(s),0,1,0,0)},t.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Jn(s),i(-1,0,0,1,s,0)},t.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Jn(s),i(1,0,0,-1,0,s)},t.A_TO_C=function(){return n(function(s,o,l){return je.ARC===s.type?function(c,h,d){var u,w,v,x;c.cX||Ip(c,h,d);for(var y=Math.min(c.phi1,c.phi2),E=Math.max(c.phi1,c.phi2)-y,F=Math.ceil(E/90),k=new Array(F),X=h,q=d,N=0;N<F;N++){var Q=TC(c.phi1,c.phi2,N/F),K=TC(c.phi1,c.phi2,(N+1)/F),Ae=K-Q,U=4/3*Math.tan(Ae*zi/4),T=[Math.cos(Q*zi)-U*Math.sin(Q*zi),Math.sin(Q*zi)+U*Math.cos(Q*zi)],V=T[0],Y=T[1],ce=[Math.cos(K*zi),Math.sin(K*zi)],he=ce[0],me=ce[1],ge=[he+U*Math.sin(K*zi),me-U*Math.cos(K*zi)],we=ge[0],Be=ge[1];k[N]={relative:c.relative,type:je.CURVE_TO};var ke=function(C,_){var S=Up([C*c.rX,_*c.rY],c.xRot),O=S[0],W=S[1];return[c.cX+O,c.cY+W]};u=ke(V,Y),k[N].x1=u[0],k[N].y1=u[1],w=ke(we,Be),k[N].x2=w[0],k[N].y2=w[1],v=ke(he,me),k[N].x=v[0],k[N].y=v[1],c.relative&&(k[N].x1-=X,k[N].y1-=q,k[N].x2-=X,k[N].y2-=q,k[N].x-=X,k[N].y-=q),X=(x=[k[N].x,k[N].y])[0],q=x[1]}return k}(s,s.relative?0:o,s.relative?0:l):s})},t.ANNOTATE_ARCS=function(){return n(function(s,o,l){return s.relative&&(o=0,l=0),je.ARC===s.type&&Ip(s,o,l),s})},t.CLONE=a,t.CALCULATE_BOUNDS=function(){var s=function(d){var u={};for(var w in d)u[w]=d[w];return u},o=e(),l=A(),c=r(),h=n(function(d,u,w){var v=c(l(o(s(d))));function x(Be){Be>h.maxX&&(h.maxX=Be),Be<h.minX&&(h.minX=Be)}function y(Be){Be>h.maxY&&(h.maxY=Be),Be<h.minY&&(h.minY=Be)}if(v.type&je.DRAWING_COMMANDS&&(x(u),y(w)),v.type&je.HORIZ_LINE_TO&&x(v.x),v.type&je.VERT_LINE_TO&&y(v.y),v.type&je.LINE_TO&&(x(v.x),y(v.y)),v.type&je.CURVE_TO){x(v.x),y(v.y);for(var E=0,F=IC(u,v.x1,v.x2,v.x);E<F.length;E++)0<(we=F[E])&&1>we&&x(LC(u,v.x1,v.x2,v.x,we));for(var k=0,X=IC(w,v.y1,v.y2,v.y);k<X.length;k++)0<(we=X[k])&&1>we&&y(LC(w,v.y1,v.y2,v.y,we))}if(v.type&je.ARC){x(v.x),y(v.y),Ip(v,u,w);for(var q=v.xRot/180*Math.PI,N=Math.cos(q)*v.rX,Q=Math.sin(q)*v.rX,K=-Math.sin(q)*v.rY,Ae=Math.cos(q)*v.rY,U=v.phi1<v.phi2?[v.phi1,v.phi2]:-180>v.phi2?[v.phi2+360,v.phi1+360]:[v.phi2,v.phi1],T=U[0],V=U[1],Y=function(Be){var ke=Be[0],C=Be[1],_=180*Math.atan2(C,ke)/Math.PI;return _<T?_+360:_},ce=0,he=_C(K,-N,0).map(Y);ce<he.length;ce++)(we=he[ce])>T&&we<V&&x(UC(v.cX,N,K,we));for(var me=0,ge=_C(Ae,-Q,0).map(Y);me<ge.length;me++){var we;(we=ge[me])>T&&we<V&&y(UC(v.cY,Q,Ae,we))}}return d});return h.minX=1/0,h.maxX=-1/0,h.minY=1/0,h.maxY=-1/0,h}})(zr||(zr={}));var Zn,NC=function(){function t(){}return t.prototype.round=function(e){return this.transform(zr.ROUND(e))},t.prototype.toAbs=function(){return this.transform(zr.TO_ABS())},t.prototype.toRel=function(){return this.transform(zr.TO_REL())},t.prototype.normalizeHVZ=function(e,r,A){return this.transform(zr.NORMALIZE_HVZ(e,r,A))},t.prototype.normalizeST=function(){return this.transform(zr.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(zr.QT_TO_C())},t.prototype.aToC=function(){return this.transform(zr.A_TO_C())},t.prototype.sanitize=function(e){return this.transform(zr.SANITIZE(e))},t.prototype.translate=function(e,r){return this.transform(zr.TRANSLATE(e,r))},t.prototype.scale=function(e,r){return this.transform(zr.SCALE(e,r))},t.prototype.rotate=function(e,r,A){return this.transform(zr.ROTATE(e,r,A))},t.prototype.matrix=function(e,r,A,n,i,a){return this.transform(zr.MATRIX(e,r,A,n,i,a))},t.prototype.skewX=function(e){return this.transform(zr.SKEW_X(e))},t.prototype.skewY=function(e){return this.transform(zr.SKEW_Y(e))},t.prototype.xSymmetry=function(e){return this.transform(zr.X_AXIS_SYMMETRY(e))},t.prototype.ySymmetry=function(e){return this.transform(zr.Y_AXIS_SYMMETRY(e))},t.prototype.annotateArcs=function(){return this.transform(zr.ANNOTATE_ARCS())},t}(),qq=function(t){return t===" "||t===" "||t==="\r"||t===`
|
|
392
|
+
`},QC=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},Yq=function(t){function e(){var r=t.call(this)||this;return r.curNumber="",r.curCommandType=-1,r.curCommandRelative=!1,r.canParseCommandOrComma=!0,r.curNumberHasExp=!1,r.curNumberHasExpDigits=!1,r.curNumberHasDecimal=!1,r.curArgs=[],r}return SC(e,t),e.prototype.finish=function(r){if(r===void 0&&(r=[]),this.parse(" ",r),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return r},e.prototype.parse=function(r,A){var n=this;A===void 0&&(A=[]);for(var i=function(h){A.push(h),n.curArgs.length=0,n.canParseCommandOrComma=!0},a=0;a<r.length;a++){var s=r[a],o=!(this.curCommandType!==je.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=QC(s)&&(this.curNumber==="0"&&s==="0"||o);if(!QC(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+a);if(this.curCommandType===je.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" at index "'+a+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+a+'"')}this.curArgs.push(c),this.curArgs.length===$q[this.curCommandType]&&(je.HORIZ_LINE_TO===this.curCommandType?i({type:je.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):je.VERT_LINE_TO===this.curCommandType?i({type:je.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===je.MOVE_TO||this.curCommandType===je.LINE_TO||this.curCommandType===je.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),je.MOVE_TO===this.curCommandType&&(this.curCommandType=je.LINE_TO)):this.curCommandType===je.CURVE_TO?i({type:je.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===je.SMOOTH_CURVE_TO?i({type:je.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===je.QUAD_TO?i({type:je.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===je.ARC&&i({type:je.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!qq(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+a+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+a+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=je.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=je.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=je.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=je.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=je.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=je.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=je.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=je.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+a+".");this.curCommandType=je.ARC,this.curCommandRelative=s==="a"}else A.push({type:je.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return A},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(A,n){n===void 0&&(n=[]);for(var i=0,a=Object.getPrototypeOf(this).parse.call(this,A);i<a.length;i++){var s=a[i],o=r(s);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},e}(NC),je=function(t){function e(r){var A=t.call(this)||this;return A.commands=typeof r=="string"?e.parse(r):r,A}return SC(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var r=zr.CALCULATE_BOUNDS();return this.transform(r),r},e.prototype.transform=function(r){for(var A=[],n=0,i=this.commands;n<i.length;n++){var a=r(i[n]);Array.isArray(a)?A.push.apply(A,a):A.push(a)}return this.commands=A,this},e.encode=function(r){return Xq(r)},e.parse=function(r){var A=new Yq,n=[];return A.parse(r,n),A.finish(n),n},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(NC),$q=((Zn={})[je.MOVE_TO]=2,Zn[je.LINE_TO]=2,Zn[je.HORIZ_LINE_TO]=1,Zn[je.VERT_LINE_TO]=1,Zn[je.CLOSE_PATH]=0,Zn[je.QUAD_TO]=4,Zn[je.SMOOTH_QUAD_TO]=2,Zn[je.CURVE_TO]=6,Zn[je.SMOOTH_CURVE_TO]=4,Zn[je.ARC]=7,Zn),Jq=xA,Zq=$n,eY=j0,tY=l4,OC=RegExp.prototype,rY=function(t){var e=t.flags;return e===void 0&&!("flags"in OC)&&!Zq(t,"flags")&&eY(OC,t)?Jq(tY,t):e},AY=J0.PROPER,nY=Bs,iY=LA,kC=Ei,aY=Rr,sY=rY,Lp="toString",oY=RegExp.prototype,DC=oY[Lp],lY=aY(function(){return DC.call({source:"a",flags:"b"})!="/a/b"}),cY=AY&&DC.name!=Lp;(lY||cY)&&nY(RegExp.prototype,Lp,function(){var e=iY(this),r=kC(e.source),A=kC(sY(e));return"/"+r+"/"+A},{unsafe:!0});function Tu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tu=function(e){return typeof e}:Tu=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tu(t)}function fY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var uY=[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],hY=[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 dY(t,e,r,A,n){if(typeof t=="string"&&(t=document.getElementById(t)),!t||Tu(t)!=="object"||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=t.getContext("2d");try{return i.getImageData(e,r,A,n)}catch(a){throw new Error("unable to access image data: "+a)}}function gY(t,e,r,A,n,i){if(!(isNaN(i)||i<1)){i|=0;var a=dY(t,e,r,A,n);a=pY(a,e,r,A,n,i),t.getContext("2d").putImageData(a,e,r)}}function pY(t,e,r,A,n,i){for(var a=t.data,s=2*i+1,o=A-1,l=n-1,c=i+1,h=c*(c+1)/2,d=new PC,u=d,w,v=1;v<s;v++)u=u.next=new PC,v===c&&(w=u);u.next=d;for(var x=null,y=null,E=0,F=0,k=uY[i],X=hY[i],q=0;q<n;q++){u=d;for(var N=a[F],Q=a[F+1],K=a[F+2],Ae=a[F+3],U=0;U<c;U++)u.r=N,u.g=Q,u.b=K,u.a=Ae,u=u.next;for(var T=0,V=0,Y=0,ce=0,he=c*N,me=c*Q,ge=c*K,we=c*Ae,Be=h*N,ke=h*Q,C=h*K,_=h*Ae,S=1;S<c;S++){var O=F+((o<S?o:S)<<2),W=a[O],ie=a[O+1],oe=a[O+2],le=a[O+3],ye=c-S;Be+=(u.r=W)*ye,ke+=(u.g=ie)*ye,C+=(u.b=oe)*ye,_+=(u.a=le)*ye,T+=W,V+=ie,Y+=oe,ce+=le,u=u.next}x=d,y=w;for(var Ne=0;Ne<A;Ne++){var Re=_*k>>X;if(a[F+3]=Re,Re!==0){var Xe=255/Re;a[F]=(Be*k>>X)*Xe,a[F+1]=(ke*k>>X)*Xe,a[F+2]=(C*k>>X)*Xe}else a[F]=a[F+1]=a[F+2]=0;Be-=he,ke-=me,C-=ge,_-=we,he-=x.r,me-=x.g,ge-=x.b,we-=x.a;var qe=Ne+i+1;qe=E+(qe<o?qe:o)<<2,T+=x.r=a[qe],V+=x.g=a[qe+1],Y+=x.b=a[qe+2],ce+=x.a=a[qe+3],Be+=T,ke+=V,C+=Y,_+=ce,x=x.next;var _e=y,re=_e.r,Qe=_e.g,rt=_e.b,Me=_e.a;he+=re,me+=Qe,ge+=rt,we+=Me,T-=re,V-=Qe,Y-=rt,ce-=Me,y=y.next,F+=4}E+=A}for(var We=0;We<A;We++){F=We<<2;var $e=a[F],Je=a[F+1],st=a[F+2],nt=a[F+3],ht=c*$e,mt=c*Je,_t=c*st,Ut=c*nt,dt=h*$e,yt=h*Je,tt=h*st,nr=h*nt;u=d;for(var It=0;It<c;It++)u.r=$e,u.g=Je,u.b=st,u.a=nt,u=u.next;for(var fr=A,Qt=0,Kt=0,qr=0,Pt=0,Er=1;Er<=i;Er++){F=fr+We<<2;var qt=c-Er;dt+=(u.r=$e=a[F])*qt,yt+=(u.g=Je=a[F+1])*qt,tt+=(u.b=st=a[F+2])*qt,nr+=(u.a=nt=a[F+3])*qt,Pt+=$e,Qt+=Je,Kt+=st,qr+=nt,u=u.next,Er<l&&(fr+=A)}F=We,x=d,y=w;for(var rA=0;rA<n;rA++){var bt=F<<2;a[bt+3]=nt=nr*k>>X,nt>0?(nt=255/nt,a[bt]=(dt*k>>X)*nt,a[bt+1]=(yt*k>>X)*nt,a[bt+2]=(tt*k>>X)*nt):a[bt]=a[bt+1]=a[bt+2]=0,dt-=ht,yt-=mt,tt-=_t,nr-=Ut,ht-=x.r,mt-=x.g,_t-=x.b,Ut-=x.a,bt=We+((bt=rA+c)<l?bt:l)*A<<2,dt+=Pt+=x.r=a[bt],yt+=Qt+=x.g=a[bt+1],tt+=Kt+=x.b=a[bt+2],nr+=qr+=x.a=a[bt+3],x=x.next,ht+=$e=y.r,mt+=Je=y.g,_t+=st=y.b,Ut+=nt=y.a,Pt-=$e,Qt-=Je,Kt-=st,qr-=nt,y=y.next,F+=A}}return t}var PC=function t(){fY(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function vY(){var{DOMParser:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(r,A){return new OffscreenCanvas(r,A)},createImage(r){return ji(function*(){var A=yield fetch(r),n=yield A.blob(),i=yield createImageBitmap(n);return i})()}};return(typeof DOMParser<"u"||typeof t>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function mY(t){var{DOMParser:e,canvas:r,fetch:A}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:A,createCanvas:r.createCanvas,createImage:r.loadImage}}var wY=Object.freeze({__proto__:null,offscreen:vY,node:mY});function Fs(t){return t.replace(/(?!\u3000)\s+/gm," ")}function RC(t){return t.replace(/^[\n \t]+/,"")}function MC(t){return t.replace(/[\n \t]+$/,"")}function ZA(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var BY=/^[A-Z-]+$/;function HC(t){return BY.test(t)?t.toLowerCase():t}function Np(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function VC(t){if(!t.startsWith("rgb"))return t;var e=3,r=t.replace(/\d+(\.\d+)?/g,(A,n)=>e--&&n?String(Math.round(parseFloat(A))):A);return r}var xY=/(\[[^\]]+\])/g,yY=/(#[^\s+>~.[:]+)/g,CY=/(\.[^\s+>~.[:]+)/g,EY=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,bY=/(:[\w-]+\([^)]*\))/gi,FY=/(:[^\s+>~.[:]+)/g,SY=/([^\s+>~.[:]+)/g;function Ss(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function KC(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),A=0;return[r,A]=Ss(r,xY),e[1]+=A,[r,A]=Ss(r,yY),e[0]+=A,[r,A]=Ss(r,CY),e[1]+=A,[r,A]=Ss(r,EY),e[2]+=A,[r,A]=Ss(r,bY),e[1]+=A,[r,A]=Ss(r,FY),e[1]+=A,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,A]=Ss(r,SY),e[2]+=A,e.join("")}var _s=1e-8;function Qp(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Uu(t,e){return(t[0]*e[0]+t[1]*e[1])/(Qp(t)*Qp(e))}function Op(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Uu(t,e))}function kp(t){return t*t*t}function Dp(t){return 3*t*t*(1-t)}function Pp(t){return 3*t*(1-t)*(1-t)}function Rp(t){return(1-t)*(1-t)*(1-t)}function Mp(t){return t*t}function Hp(t){return 2*t*(1-t)}function Vp(t){return(1-t)*(1-t)}class pt{constructor(e,r,A){this.document=e,this.name=r,this.value=A,this.isNormalizedColor=!1}static empty(e){return new pt(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:r,name:A}=this;return Fs(this.getString()).trim().split(e).map(n=>new pt(r,A,n))}hasValue(e){var{value:r}=this;return r!==null&&r!==""&&(e||r!==0)&&typeof r<"u"}isString(e){var{value:r}=this,A=typeof r=="string";return!A||!e?A:e.test(r)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,A=parseFloat(r);return this.isString(/%$/)&&(A/=100),A}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=VC(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[A,n]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(A);default:{var a=this.getNumber();return r&&a<1?a*i.computeSize(A):a}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var A=this.getDefinition();if(!A)return null;if(typeof A.createGradient=="function")return A.createGradient(this.document.ctx,e,r);if(typeof A.createPattern=="function"){if(A.getHrefAttribute().hasValue()){var n=A.getAttribute("patternTransform");A=A.getHrefAttribute().getDefinition(),n.hasValue()&&A.getAttribute("patternTransform",!0).setValue(n.value)}return A.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?pt.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),A=r.length,n=0,i=0;i<A&&(r[i]===","&&n++,n!==3);i++);if(e.hasValue()&&this.isString()&&n!==3){var a=new _p(r);a.ok&&(a.alpha=e.getNumber(),r=a.toRGBA())}return new pt(this.document,this.name,r)}}pt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class GC{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,r){this.viewPorts.push({width:e,height:r})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Ur{constructor(e,r){this.x=e,this.y=r}static parse(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[A=r,n=r]=ZA(e);return new Ur(A,n)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[A=r,n=A]=ZA(e);return new Ur(A,n)}static parsePath(e){for(var r=ZA(e),A=r.length,n=[],i=0;i<A;i+=2)n.push(new Ur(r[i],r[i+1]));return n}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:r,y:A}=this,n=r*e[0]+A*e[2]+e[4],i=r*e[1]+A*e[3]+e[5];this.x=n,this.y=i}}class jC{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:r,onMouseMove:A}=this,n=e.ctx.canvas;n.onclick=r,n.onmousemove=A,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:A}=this,{style:n}=e.ctx.canvas;n&&(n.cursor=""),r.forEach((i,a)=>{for(var{run:s}=i,o=A[a];o;)s(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:A,eventElements:n}=this;A.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&r.isPointInPath&&r.isPointInPath(s,o)&&(n[a]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:A,eventElements:n}=this;A.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&r.isPointInBox(s,o)&&(n[a]=e)})}}mapXY(e,r){for(var{window:A,ctx:n}=this.screen,i=new Ur(e,r),a=n.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return A.scrollX&&(i.x+=A.scrollX),A.scrollY&&(i.y+=A.scrollY),i}onClick(e){var{x:r,y:A}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:A,run(n){n.onClick&&n.onClick()}})}onMouseMove(e){var{x:r,y:A}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:A,run(n){n.onMouseMove&&n.onMouseMove()}})}}var WC=typeof window<"u"?window:null,zC=typeof fetch<"u"?fetch.bind(void 0):null;class Bc{constructor(e){var{fetch:r=zC,window:A=WC}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new GC,this.mouse=new jC(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=A,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:A,aspectRatio:n,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:l=0,minY:c=0,refX:h,refY:d,clip:u=!1,clipX:w=0,clipY:v=0}=e,x=Fs(n).replace(/^defer\s/,""),[y,E]=x.split(" "),F=y||"xMidYMid",k=E||"meet",X=i/a,q=s/o,N=Math.min(X,q),Q=Math.max(X,q),K=a,Ae=o;k==="meet"&&(K*=N,Ae*=N),k==="slice"&&(K*=Q,Ae*=Q);var U=new pt(r,"refX",h),T=new pt(r,"refY",d),V=U.hasValue()&&T.hasValue();if(V&&A.translate(-N*U.getPixels("x"),-N*T.getPixels("y")),u){var Y=N*w,ce=N*v;A.beginPath(),A.moveTo(Y,ce),A.lineTo(i,ce),A.lineTo(i,s),A.lineTo(Y,s),A.closePath(),A.clip()}if(!V){var he=k==="meet"&&N===q,me=k==="slice"&&Q===q,ge=k==="meet"&&N===X,we=k==="slice"&&Q===X;F.startsWith("xMid")&&(he||me)&&A.translate(i/2-K/2,0),F.endsWith("YMid")&&(ge||we)&&A.translate(0,s/2-Ae/2),F.startsWith("xMax")&&(he||me)&&A.translate(i-K,0),F.endsWith("YMax")&&(ge||we)&&A.translate(0,s-Ae)}switch(!0){case F==="none":A.scale(X,q);break;case k==="meet":A.scale(N,N);break;case k==="slice":A.scale(Q,Q);break}A.translate(-l,-c)}start(e){var{enableRedraw:r=!1,ignoreMouse:A=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:l,offsetX:c,offsetY:h}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:d,mouse:u}=this,w=1e3/d;if(this.frameDuration=w,this.readyPromise=new Promise(F=>{this.resolveReady=F}),this.isReady()&&this.render(e,i,a,o,l,c,h),!!r){var v=Date.now(),x=v,y=0,E=()=>{v=Date.now(),y=v-x,y>=w&&(x=v-y%w,this.shouldUpdate(n,s)&&(this.render(e,i,a,o,l,c,h),u.runEvents())),this.intervalId=bp(E)};A||u.start(),this.intervalId=bp(E)}}stop(){this.intervalId&&(bp.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:A}=this,n=this.animations.reduce((i,a)=>a.update(A)||i,!1);if(n)return!0}return!!(typeof r=="function"&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,A,n,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:c,ctx:h,isFirstRender:d}=this,u=h.canvas;c.clear(),u.width&&u.height?c.setCurrent(u.width,u.height):c.setCurrent(o,l);var w=e.getStyle("width"),v=e.getStyle("height");!r&&(d||typeof n!="number"&&typeof i!="number")&&(w.hasValue()&&(u.width=w.getPixels("x"),u.style&&(u.style.width="".concat(u.width,"px"))),v.hasValue()&&(u.height=v.getPixels("y"),u.style&&(u.style.height="".concat(u.height,"px"))));var x=u.clientWidth||u.width,y=u.clientHeight||u.height;if(r&&w.hasValue()&&v.hasValue()&&(x=w.getPixels("x"),y=v.getPixels("y")),c.setCurrent(x,y),typeof a=="number"&&e.getAttribute("x",!0).setValue(a),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof n=="number"||typeof i=="number"){var E=ZA(e.getAttribute("viewBox").getString()),F=0,k=0;if(typeof n=="number"){var X=e.getStyle("width");X.hasValue()?F=X.getPixels("x")/n:isNaN(E[2])||(F=E[2]/n)}if(typeof i=="number"){var q=e.getStyle("height");q.hasValue()?k=q.getPixels("y")/i:isNaN(E[3])||(k=E[3]/i)}F||(F=k),k||(k=F),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(i);var N=e.getStyle("transform",!0,!0);N.setValue("".concat(N.getString()," scale(").concat(1/F,", ").concat(1/k,")"))}A||h.clearRect(0,0,x,y),e.render(h),d&&(this.isFirstRender=!1)}}Bc.defaultWindow=WC,Bc.defaultFetch=zC;var{defaultFetch:_Y}=Bc,TY=typeof DOMParser<"u"?DOMParser:null;class Iu{constructor(){var{fetch:e=_Y,DOMParser:r=TY}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return ji(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return ji(function*(){var A=yield r.fetch(e),n=yield A.text();return r.parseFromString(n)})()}}class XC{constructor(e,r){this.type="translate",this.point=null,this.point=Ur.parse(r)}apply(e){var{x:r,y:A}=this.point;e.translate(r||0,A||0)}unapply(e){var{x:r,y:A}=this.point;e.translate(-1*r||0,-1*A||0)}applyToPoint(e){var{x:r,y:A}=this.point;e.applyTransform([1,0,0,1,r||0,A||0])}}class qC{constructor(e,r,A){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=ZA(r);this.angle=new pt(e,"angle",n[0]),this.originX=A[0],this.originY=A[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(e){var{cx:r,cy:A,originX:n,originY:i,angle:a}=this,s=r+n.getPixels("x"),o=A+i.getPixels("y");e.translate(s,o),e.rotate(a.getRadians()),e.translate(-s,-o)}unapply(e){var{cx:r,cy:A,originX:n,originY:i,angle:a}=this,s=r+n.getPixels("x"),o=A+i.getPixels("y");e.translate(s,o),e.rotate(-1*a.getRadians()),e.translate(-s,-o)}applyToPoint(e){var{cx:r,cy:A,angle:n}=this,i=n.getRadians();e.applyTransform([1,0,0,1,r||0,A||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-r||0,-A||0])}}class YC{constructor(e,r,A){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Ur.parseScale(r);(n.x===0||n.y===0)&&(n.x=_s,n.y=_s),this.scale=n,this.originX=A[0],this.originY=A[1]}apply(e){var{scale:{x:r,y:A},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");e.translate(a,s),e.scale(r,A||r),e.translate(-a,-s)}unapply(e){var{scale:{x:r,y:A},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");e.translate(a,s),e.scale(1/r,1/A||r),e.translate(-a,-s)}applyToPoint(e){var{x:r,y:A}=this.scale;e.applyTransform([r||0,0,0,A||0,0,0])}}class Kp{constructor(e,r,A){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ZA(r),this.originX=A[0],this.originY=A[1]}apply(e){var{originX:r,originY:A,matrix:n}=this,i=r.getPixels("x"),a=A.getPixels("y");e.translate(i,a),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-i,-a)}unapply(e){var{originX:r,originY:A,matrix:n}=this,i=n[0],a=n[2],s=n[4],o=n[1],l=n[3],c=n[5],h=0,d=0,u=1,w=1/(i*(l*u-c*d)-a*(o*u-c*h)+s*(o*d-l*h)),v=r.getPixels("x"),x=A.getPixels("y");e.translate(v,x),e.transform(w*(l*u-c*d),w*(c*h-o*u),w*(s*d-a*u),w*(i*u-s*h),w*(a*c-s*l),w*(s*o-i*c)),e.translate(-v,-x)}applyToPoint(e){e.applyTransform(this.matrix)}}class Gp extends Kp{constructor(e,r,A){super(e,r,A),this.type="skew",this.angle=null,this.angle=new pt(e,"angle",r)}}class $C extends Gp{constructor(e,r,A){super(e,r,A),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class JC extends Gp{constructor(e,r,A){super(e,r,A),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function UY(t){return Fs(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function IY(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class La{constructor(e,r,A){this.document=e,this.transforms=[];var n=UY(r);n.forEach(i=>{if(i!=="none"){var[a,s]=IY(i),o=La.transformTypes[a];typeof o<"u"&&this.transforms.push(new o(this.document,s,A))}})}static fromElement(e,r){var A=r.getStyle("transform",!1,!0),[n,i=n]=r.getStyle("transform-origin",!1,!0).split(),a=[n,i];return A.hasValue()?new La(e,A.getString(),a):null}apply(e){for(var{transforms:r}=this,A=r.length,n=0;n<A;n++)r[n].apply(e)}unapply(e){for(var{transforms:r}=this,A=r.length,n=A-1;n>=0;n--)r[n].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,A=r.length,n=0;n<A;n++)r[n].applyToPoint(e)}}La.transformTypes={translate:XC,rotate:qC,scale:YC,matrix:Kp,skewX:$C,skewY:JC};class dr{constructor(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=r,this.captureTextNodes=A,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!r||r.nodeType!==1)){if(Array.from(r.attributes).forEach(s=>{var o=HC(s.nodeName);this.attributes[o]=new pt(e,o,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(s=>s.trim());n.forEach(s=>{if(s){var[o,l]=s.split(":").map(c=>c.trim());this.styles[o]=new pt(e,o,l)}})}var{definitions:i}=e,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(r.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(A&&(s.nodeType===3||s.nodeType===4)){var o=e.createTextNode(s);o.getText().length>0&&this.addChild(o)}})}}getAttribute(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=this.attributes[e];if(!A&&r){var n=new pt(this.document,e,"");return this.attributes[e]=n,n}return A||pt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return pt.empty(this.document)}getStyle(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[e];if(n)return n;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!A){var{parent:a}=this;if(a){var s=a.getStyle(e);if(s!=null&&s.hasValue())return s}}if(r){var o=new pt(this.document,e,"");return this.styles[e]=o,o}return n||pt.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var A=this.getStyle("filter").getDefinition();A&&(this.applyEffects(e),A.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=La.fromElement(this.document,this);r&&r.apply(e);var A=this.getStyle("clip-path",!1,!0);if(A.hasValue()){var n=A.getDefinition();n&&n.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof dr?e:this.document.createElement(e);r.parent=this,dr.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:A}=this;if(typeof A.matches=="function")return A.matches(e);var n=(r=A.getAttribute)===null||r===void 0?void 0:r.call(A,"class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var A in e)if(!A.startsWith("@")&&this.matchesSelector(A)){var n=e[A],i=r[A];if(n)for(var a in n){var s=this.stylesSpecificity[a];typeof s>"u"&&(s="000"),i>=s&&(this.styles[a]=n[a],this.stylesSpecificity[a]=i)}}}removeStyles(e,r){var A=r.reduce((n,i)=>{var a=e.getStyle(i);if(!a.hasValue())return n;var s=a.getString();return a.setValue(""),[...n,[i,s]]},[]);return A}restoreStyles(e,r){r.forEach(A=>{var[n,i]=A;e.getStyle(n,!0).setValue(i)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}dr.ignoreChildTypes=["title"];class ZC extends dr{constructor(e,r,A){super(e,r,A)}}function LY(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function NY(t){return typeof process>"u"?t:t.trim().split(",").map(LY).join(",")}function QY(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function OY(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class NA{constructor(e,r,A,n,i,a){var s=a?typeof a=="string"?NA.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=A||s.fontWeight,this.fontVariant=r||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,A="",n="",i="",a="",s="",o=Fs(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(c=>{switch(!0){case(!l.fontStyle&&NA.styles.includes(c)):c!=="inherit"&&(A=c),l.fontStyle=!0;break;case(!l.fontVariant&&NA.variants.includes(c)):c!=="inherit"&&(n=c),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&NA.weights.includes(c)):c!=="inherit"&&(i=c),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:c!=="inherit"&&([a]=c.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:c!=="inherit"&&(s+=c)}}),new NA(A,n,i,a,s,r)}toString(){return[QY(this.fontStyle),this.fontVariant,OY(this.fontWeight),this.fontSize,NY(this.fontFamily)].join(" ").trim()}}NA.styles="normal|italic|oblique|inherit",NA.variants="normal|small-caps|inherit",NA.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Un{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=A,this.y2=n,this.addPoint(e,r),this.addPoint(A,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,r){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:A,x2:n,y2:i}=e;this.addPoint(r,A),this.addPoint(n,i)}}sumCubic(e,r,A,n,i){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*A+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*i}bezierCurveAdd(e,r,A,n,i){var a=6*r-12*A+6*n,s=-3*r+9*A-9*n+3*i,o=3*A-3*r;if(s===0){if(a===0)return;var l=-o/a;0<l&&l<1&&(e?this.addX(this.sumCubic(l,r,A,n,i)):this.addY(this.sumCubic(l,r,A,n,i)));return}var c=Math.pow(a,2)-4*o*s;if(!(c<0)){var h=(-a+Math.sqrt(c))/(2*s);0<h&&h<1&&(e?this.addX(this.sumCubic(h,r,A,n,i)):this.addY(this.sumCubic(h,r,A,n,i)));var d=(-a-Math.sqrt(c))/(2*s);0<d&&d<1&&(e?this.addX(this.sumCubic(d,r,A,n,i)):this.addY(this.sumCubic(d,r,A,n,i)))}}addBezierCurve(e,r,A,n,i,a,s,o){this.addPoint(e,r),this.addPoint(s,o),this.bezierCurveAdd(!0,e,A,i,s),this.bezierCurveAdd(!1,r,n,a,o)}addQuadraticCurve(e,r,A,n,i,a){var s=e+.6666666666666666*(A-e),o=r+2/3*(n-r),l=s+1/3*(i-e),c=o+1/3*(a-r);this.addBezierCurve(e,r,s,l,o,c,i,a)}isPointInBox(e,r){var{x1:A,y1:n,x2:i,y2:a}=this;return A<=e&&e<=i&&n<=r&&r<=a}}class Tt extends je{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Ur(0,0),this.control=new Ur(0,0),this.current=new Ur(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:r}=this;return e>=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",A=new Ur(this.command[e],this.command[r]);return this.makeAbsolute(A)}getAsControlPoint(e,r){var A=this.getPoint(e,r);return this.control=A,A}getAsCurrentPoint(e,r){var A=this.getPoint(e,r);return this.current=A,A}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==je.CURVE_TO&&e!==je.SMOOTH_CURVE_TO&&e!==je.QUAD_TO&&e!==je.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:A},control:{x:n,y:i}}=this,a=new Ur(2*r-n,2*A-i);return a}makeAbsolute(e){if(this.command.relative){var{x:r,y:A}=this.current;e.x+=r,e.y+=A}return e}addMarker(e,r,A){var{points:n,angles:i}=this;A&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(A)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,A=0;A<r;A++)if(!e[A]){for(var n=A+1;n<r;n++)if(e[n]){e[A]=e[n];break}}return e}}class Na extends dr{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,r=this;r;){var A=r.getStyle("opacity",!1,!0);A.hasValue(!0)&&(e*=A.getNumber()),r=r.parent}return e}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var A=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(A.isUrlDefinition()){var s=A.getFillStyleDefinition(this,n);s&&(e.fillStyle=s)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());var o=A.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(n.hasValue()){var l=new pt(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(e.strokeStyle=c)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var h=i.getString();h!=="inherit"&&(e.strokeStyle=h==="none"?"rgba(0,0,0,0)":h)}if(a.hasValue()){var d=new pt(this.document,"stroke",e.strokeStyle).addOpacity(a).getString();e.strokeStyle=d}var u=this.getStyle("stroke-width");if(u.hasValue()){var w=u.getPixels();e.lineWidth=w||_s}var v=this.getStyle("stroke-linecap"),x=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),E=this.getStyle("stroke-dasharray"),F=this.getStyle("stroke-dashoffset");if(v.hasValue()&&(e.lineCap=v.getString()),x.hasValue()&&(e.lineJoin=x.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),E.hasValue()&&E.getString()!=="none"){var k=ZA(E.getString());typeof e.setLineDash<"u"?e.setLineDash(k):typeof e.webkitLineDash<"u"?e.webkitLineDash=k:typeof e.mozDash<"u"&&!(k.length===1&&k[0]===0)&&(e.mozDash=k);var X=F.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=X:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=X:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=X)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var q=this.getStyle("font"),N=this.getStyle("font-style"),Q=this.getStyle("font-variant"),K=this.getStyle("font-weight"),Ae=this.getStyle("font-size"),U=this.getStyle("font-family"),T=new NA(N.getString(),Q.getString(),K.getString(),Ae.hasValue()?"".concat(Ae.getPixels(!0),"px"):"",U.getString(),NA.parse(q.getString(),e.font));N.setValue(T.fontStyle),Q.setValue(T.fontVariant),K.setValue(T.fontWeight),Ae.setValue(T.fontSize),U.setValue(T.fontFamily),e.font=T.toString(),Ae.isPixels()&&(this.document.emSize=Ae.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Zt extends Na{constructor(e,r,A){super(e,r,A),this.type="path",this.pathParser=null,this.pathParser=new Tt(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,A=new Un;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case Tt.MOVE_TO:this.pathM(e,A);break;case Tt.LINE_TO:this.pathL(e,A);break;case Tt.HORIZ_LINE_TO:this.pathH(e,A);break;case Tt.VERT_LINE_TO:this.pathV(e,A);break;case Tt.CURVE_TO:this.pathC(e,A);break;case Tt.SMOOTH_CURVE_TO:this.pathS(e,A);break;case Tt.QUAD_TO:this.pathQ(e,A);break;case Tt.SMOOTH_QUAD_TO:this.pathT(e,A);break;case Tt.ARC:this.pathA(e,A);break;case Tt.CLOSE_PATH:this.pathZ(e,A);break}return A}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),A=e.getMarkerAngles(),n=r.map((i,a)=>[i,A[a]]);return n}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var A=this.getMarkers();if(A){var n=A.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[l,c]=A[0];o.render(e,l,c)}if(a.isUrlDefinition())for(var h=a.getDefinition(),d=1;d<n;d++){var[u,w]=A[d];h.render(e,u,w)}if(s.isUrlDefinition()){var v=s.getDefinition(),[x,y]=A[n];v.render(e,x,y)}}}static pathM(e){var r=e.getAsCurrentPoint();return e.start=e.current,{point:r}}pathM(e,r){var{pathParser:A}=this,{point:n}=Zt.pathM(A),{x:i,y:a}=n;A.addMarker(n),r.addPoint(i,a),e&&e.moveTo(i,a)}static pathL(e){var{current:r}=e,A=e.getAsCurrentPoint();return{current:r,point:A}}pathL(e,r){var{pathParser:A}=this,{current:n,point:i}=Zt.pathL(A),{x:a,y:s}=i;A.addMarker(i,n),r.addPoint(a,s),e&&e.lineTo(a,s)}static pathH(e){var{current:r,command:A}=e,n=new Ur((A.relative?r.x:0)+A.x,r.y);return e.current=n,{current:r,point:n}}pathH(e,r){var{pathParser:A}=this,{current:n,point:i}=Zt.pathH(A),{x:a,y:s}=i;A.addMarker(i,n),r.addPoint(a,s),e&&e.lineTo(a,s)}static pathV(e){var{current:r,command:A}=e,n=new Ur(r.x,(A.relative?r.y:0)+A.y);return e.current=n,{current:r,point:n}}pathV(e,r){var{pathParser:A}=this,{current:n,point:i}=Zt.pathV(A),{x:a,y:s}=i;A.addMarker(i,n),r.addPoint(a,s),e&&e.lineTo(a,s)}static pathC(e){var{current:r}=e,A=e.getPoint("x1","y1"),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:r,point:A,controlPoint:n,currentPoint:i}}pathC(e,r){var{pathParser:A}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Zt.pathC(A);A.addMarker(s,a,i),r.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(e){var{current:r}=e,A=e.getReflectedControlPoint(),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:r,point:A,controlPoint:n,currentPoint:i}}pathS(e,r){var{pathParser:A}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Zt.pathS(A);A.addMarker(s,a,i),r.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(e){var{current:r}=e,A=e.getAsControlPoint("x1","y1"),n=e.getAsCurrentPoint();return{current:r,controlPoint:A,currentPoint:n}}pathQ(e,r){var{pathParser:A}=this,{current:n,controlPoint:i,currentPoint:a}=Zt.pathQ(A);A.addMarker(a,i,i),r.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(e){var{current:r}=e,A=e.getReflectedControlPoint();e.control=A;var n=e.getAsCurrentPoint();return{current:r,controlPoint:A,currentPoint:n}}pathT(e,r){var{pathParser:A}=this,{current:n,controlPoint:i,currentPoint:a}=Zt.pathT(A);A.addMarker(a,i,i),r.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(e){var{current:r,command:A}=e,{rX:n,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=A,l=a*(Math.PI/180),c=e.getAsCurrentPoint(),h=new Ur(Math.cos(l)*(r.x-c.x)/2+Math.sin(l)*(r.y-c.y)/2,-Math.sin(l)*(r.x-c.x)/2+Math.cos(l)*(r.y-c.y)/2),d=Math.pow(h.x,2)/Math.pow(n,2)+Math.pow(h.y,2)/Math.pow(i,2);d>1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));var u=(s===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(h.y,2)-Math.pow(i,2)*Math.pow(h.x,2))/(Math.pow(n,2)*Math.pow(h.y,2)+Math.pow(i,2)*Math.pow(h.x,2)));isNaN(u)&&(u=0);var w=new Ur(u*n*h.y/i,u*-i*h.x/n),v=new Ur((r.x+c.x)/2+Math.cos(l)*w.x-Math.sin(l)*w.y,(r.y+c.y)/2+Math.sin(l)*w.x+Math.cos(l)*w.y),x=Op([1,0],[(h.x-w.x)/n,(h.y-w.y)/i]),y=[(h.x-w.x)/n,(h.y-w.y)/i],E=[(-h.x-w.x)/n,(-h.y-w.y)/i],F=Op(y,E);return Uu(y,E)<=-1&&(F=Math.PI),Uu(y,E)>=1&&(F=0),{currentPoint:c,rX:n,rY:i,sweepFlag:o,xAxisRotation:l,centp:v,a1:x,ad:F}}pathA(e,r){var{pathParser:A}=this,{currentPoint:n,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:l,a1:c,ad:h}=Zt.pathA(A),d=1-s?1:-1,u=c+d*(h/2),w=new Ur(l.x+i*Math.cos(u),l.y+a*Math.sin(u));if(A.addMarkerAngle(w,u-d*Math.PI/2),A.addMarkerAngle(n,u-d*Math.PI),r.addPoint(n.x,n.y),e&&!isNaN(c)&&!isNaN(h)){var v=i>a?i:a,x=i>a?1:i/a,y=i>a?a/i:1;e.translate(l.x,l.y),e.rotate(o),e.scale(x,y),e.arc(0,0,v,c,c+h,!!(1-s)),e.scale(1/x,1/y),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){Zt.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}}class jp extends Zt{constructor(e,r,A){super(e,r,A),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Xi extends Na{constructor(e,r,A){super(e,r,new.target===Xi?!0:A),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var A=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();A&&(e.textBaseline=A)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((A,n)=>{var i=this.getChildBoundingBox(e,this,this,n);r?r.addBoundingBox(i):r=i}),r}getFontSize(){var{document:e,parent:r}=this,A=NA.parse(e.ctx.font).fontSize,n=r.getStyle("font-size").getNumber(A);return n}getTElementBoundingBox(e){var r=this.getFontSize();return new Un(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,A){var n=r[A],i=null;if(e.isArabic){var a=r.length,s=r[A-1],o=r[A+1],l="isolated";if((A===0||s===" ")&&A<a-1&&o!==" "&&(l="terminal"),A>0&&s!==" "&&A<a-1&&o!==" "&&(l="medial"),A>0&&s!==" "&&(A===a-1||o===" ")&&(l="initial"),typeof e.glyphs[n]<"u"){var c=e.glyphs[n];i=c instanceof jp?c:c[l]}}else i=e.glyphs[n];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var r=e||this.node,A=Array.from(r.parentNode.childNodes),n=A.indexOf(r),i=A.length-1,a=Fs(r.textContent||"");return n===0&&(a=RC(a)),n===i&&(a=MC(a)),a}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((A,n)=>{this.renderChild(e,this,this,n)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:A}=this,n=this.getText(),i=A.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,s=NA.parse(r.ctx.font),o=A.getStyle("font-size").getNumber(s.fontSize),l=A.getStyle("font-style").getString(s.fontStyle),c=o/a,h=i.isRTL?n.split("").reverse().join(""):n,d=ZA(A.getAttribute("dx").getString()),u=h.length,w=0;w<u;w++){var v=this.getGlyph(i,h,w);e.translate(this.x,this.y),e.scale(c,-c);var x=e.lineWidth;e.lineWidth=e.lineWidth*a/o,l==="italic"&&e.transform(1,0,.4,1,0,0),v.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=x,e.scale(1/c,-1/c),e.translate(-this.x,-this.y),this.x+=o*(v.horizAdvX||i.horizAdvX)/a,typeof d[w]<"u"&&!isNaN(d[w])&&(this.x+=d[w])}return}var{x:y,y:E}=this;e.fillStyle&&e.fillText(n,y,E),e.strokeStyle&&e.strokeText(n,y,E)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),A=!1,n=0;r==="start"&&!A||r==="end"&&A?n=e.x-this.minX:r==="end"&&!A||r==="start"&&A?n=e.x-this.maxX:n=e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((r,A)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,A)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,A,n){var i=A.children[n];i.children.length>0?i.children.forEach((a,s)=>{r.adjustChildCoordinatesRecursiveCore(e,r,i,s)}):this.adjustChildCoordinates(e,r,A,n)}adjustChildCoordinates(e,r,A,n){var i=A.children[n];if(typeof i.measureText!="function")return i;e.save(),i.setContext(e,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),l=i.getAttribute("dy"),c=i.getStyle("font-family").getDefinition(),h=!!c&&c.isRTL;n===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var d=i.measureText(e);return h&&(r.x-=d),a.hasValue()?(r.applyAnchoring(),i.x=a.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(r.x+=o.getPixels("x")),i.x=r.x),r.x=i.x,h||(r.x+=d),s.hasValue()?(i.y=s.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(r.y+=l.getPixels("y")),i.y=r.y),r.y=i.y,r.leafTexts.push(i),r.minX=Math.min(r.minX,i.x,i.x+d),r.maxX=Math.max(r.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,r,A,n){var i=A.children[n];if(typeof i.getBoundingBox!="function")return null;var a=i.getBoundingBox(e);return a?(i.children.forEach((s,o)=>{var l=r.getChildBoundingBox(e,r,i,o);a.addBoundingBox(l)}),a):null}renderChild(e,r,A,n){var i=A.children[n];i.render(e),i.children.forEach((a,s)=>{r.renderChild(e,r,i,s)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var A=this.getText(),n=this.measureTargetText(e,A);return this.measureCache=n,n}measureTargetText(e,r){if(!r.length)return 0;var{parent:A}=this,n=A.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?r.split("").reverse().join(""):r,s=ZA(A.getAttribute("dx").getString()),o=a.length,l=0,c=0;c<o;c++){var h=this.getGlyph(n,a,c);l+=(h.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof s[c]<"u"&&!isNaN(s[c])&&(l+=s[c])}return l}if(!e.measureText)return r.length*10;e.save(),this.setContext(e,!0);var{width:d}=e.measureText(r);return this.clearContext(e),e.restore(),d}getInheritedAttribute(e){for(var r=this;r instanceof Xi&&r.isFirstChild();){var A=r.parent.getAttribute(e);if(A.hasValue(!0))return A.getValue("0");r=r.parent}return null}}class xc extends Xi{constructor(e,r,A){super(e,r,new.target===xc?!0:A),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class kY extends xc{constructor(){super(...arguments),this.type="textNode"}}class Po extends Na{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:A}=this,{screen:n,window:i}=A,a=e.canvas;if(n.setDefaults(e),a.style&&typeof e.font<"u"&&i&&typeof i.getComputedStyle<"u"){e.font=i.getComputedStyle(a).getPropertyValue("font");var s=new pt(A,"fontSize",NA.parse(e.font).fontSize);s.hasValue()&&(A.rootEmSize=s.getPixels("y"),A.emSize=A.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:l}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),h=this.getAttribute("refY"),d=this.getAttribute("viewBox"),u=d.hasValue()?ZA(d.getString()):null,w=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",v=0,x=0,y=0,E=0;u&&(v=u[0],x=u[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=v,E=x,v=0,x=0)),n.viewPort.setCurrent(o,l),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),u&&(o=u[2],l=u[3]),A.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:l,minX:v,minY:x,refX:c.getValue(),refY:h.getValue(),clip:w,clipX:y,clipY:E}),u&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),l=i.getNumber(0);if(A)if(typeof A=="string")this.getAttribute("preserveAspectRatio",!0).setValue(A);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),i.setValue(r),a.hasValue()||a.setValue("0 0 ".concat(o||e," ").concat(l||r)),s.hasValue()){var h=this.getStyle("width"),d=this.getStyle("height");h.hasValue()&&h.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(r,"px"))}}}class Wp extends Zt{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),l=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(l=o),s.hasValue()&&!a.hasValue()&&(o=l),o=Math.min(o,n/2),l=Math.min(l,i/2),e){var c=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&n>0&&(e.moveTo(r+o,A),e.lineTo(r+n-o,A),e.bezierCurveTo(r+n-o+c*o,A,r+n,A+l-c*l,r+n,A+l),e.lineTo(r+n,A+i-l),e.bezierCurveTo(r+n,A+i-l+c*l,r+n-o+c*o,A+i,r+n-o,A+i),e.lineTo(r+o,A+i),e.bezierCurveTo(r+o-c*o,A+i,r,A+i-l+c*l,r,A+i-l),e.lineTo(r,A+l),e.bezierCurveTo(r,A+l-c*l,r+o-c*o,A,r+o,A),e.closePath())}return new Un(r,A,r+n,A+i)}getMarkers(){return null}}class eE extends Zt{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),A=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(r,A,n,0,Math.PI*2,!1),e.closePath()),new Un(r-n,A-n,r+n,A+n)}getMarkers(){return null}}class tE extends Zt{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),A=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return e&&A>0&&n>0&&(e.beginPath(),e.moveTo(i+A,a),e.bezierCurveTo(i+A,a+r*n,i+r*A,a+n,i,a+n),e.bezierCurveTo(i-r*A,a+n,i-A,a+r*n,i-A,a),e.bezierCurveTo(i-A,a-r*n,i-r*A,a-n,i,a-n),e.bezierCurveTo(i+r*A,a-n,i+A,a-r*n,i+A,a),e.closePath()),new Un(i-A,a-n,i+A,a+n)}getMarkers(){return null}}class rE extends Zt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Ur(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Ur(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:A},{x:n,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,A),e.lineTo(n,i)),new Un(r,A,n,i)}getMarkers(){var[e,r]=this.getPoints(),A=e.angleTo(r);return[[e,A],[r,A]]}}class zp extends Zt{constructor(e,r,A){super(e,r,A),this.type="polyline",this.points=[],this.points=Ur.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:A,y:n}]=r,i=new Un(A,n);return e&&(e.beginPath(),e.moveTo(A,n)),r.forEach(a=>{var{x:s,y:o}=a;i.addPoint(s,o),e&&e.lineTo(s,o)}),i}getMarkers(){var{points:e}=this,r=e.length-1,A=[];return e.forEach((n,i)=>{i!==r&&A.push([n,n.angleTo(e[i+1])])}),A.length>0&&A.push([e[e.length-1],A[A.length-1][1]]),A}}class AE extends zp{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:A,y:n}]=this.points;return e&&(e.lineTo(A,n),e.closePath()),r}}class nE extends dr{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,A){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new Po(this.document,null);a.attributes.viewBox=new pt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new pt(this.document,"width","".concat(n,"px")),a.attributes.height=new pt(this.document,"height","".concat(i,"px")),a.attributes.transform=new pt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),l=this.getAttribute("x"),c=this.getAttribute("y");l.hasValue()&&c.hasValue()&&o.translate(l.getPixels("x",!0),c.getPixels("y",!0)),A.hasValue()?this.styles["fill-opacity"]=A:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var d=-1;d<=1;d++)o.save(),a.attributes.x=new pt(this.document,"x",h*s.width),a.attributes.y=new pt(this.document,"y",d*s.height),a.render(o),o.restore();var u=e.createPattern(s,"repeat");return u}}class iE extends dr{constructor(){super(...arguments),this.type="marker"}render(e,r,A){if(r){var{x:n,y:i}=r,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,i),a==="auto"&&e.rotate(A),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new Po(this.document,null);o.type=this.type,o.attributes.viewBox=new pt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new pt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new pt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new pt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new pt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new pt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new pt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new pt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),a==="auto"&&e.rotate(-A),e.translate(-n,-i)}}}class aE extends dr{constructor(){super(...arguments),this.type="defs"}render(){}}class Lu extends Na{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new Un;return this.children.forEach(A=>{r.addBoundingBox(A.getBoundingBox(e))}),r}}class Xp extends dr{constructor(e,r,A){super(e,r,A),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(a=>{a.type==="stop"&&n.push(a)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,A){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,a=this.getGradient(e,r);if(!a)return this.addParentOpacity(A,i[i.length-1].color);if(i.forEach(x=>{a.addColorStop(x.offset,this.addParentOpacity(A,x.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=s.screen,[c]=l.viewPorts,h=new Wp(s,null);h.attributes.x=new pt(s,"x",-o/3),h.attributes.y=new pt(s,"y",-o/3),h.attributes.width=new pt(s,"width",o),h.attributes.height=new pt(s,"height",o);var d=new Lu(s,null);d.attributes.transform=new pt(s,"transform",this.getAttribute("gradientTransform").getValue()),d.children=[h];var u=new Po(s,null);u.attributes.x=new pt(s,"x",0),u.attributes.y=new pt(s,"y",0),u.attributes.width=new pt(s,"width",c.width),u.attributes.height=new pt(s,"height",c.height),u.children=[d];var w=s.createCanvas(c.width,c.height),v=w.getContext("2d");return v.fillStyle=a,u.render(v),v.createPattern(w,"no-repeat")}return a}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var A=new pt(this.document,"color",r);return A.addOpacity(e).getColor()}return r}}class sE extends Xp{constructor(e,r,A){super(e,r,A),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var A=this.getGradientUnits()==="objectBoundingBox",n=A?r.getBoundingBox(e):null;if(A&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=A?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=A?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=A?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=A?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:e.createLinearGradient(i,a,s,o)}}class oE extends Xp{constructor(e,r,A){super(e,r,A),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var A=this.getGradientUnits()==="objectBoundingBox",n=r.getBoundingBox(e);if(A&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=A?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=A?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=A?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=A?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=A?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,o,c,i,a,l)}}class lE extends dr{constructor(e,r,A){super(e,r,A),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);a.getString()===""&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=n,this.color=a.getColor()}}class Nu extends dr{constructor(e,r,A){super(e,r,A),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new pt(e,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:A,to:n}=this.getProgress(),i=A.getNumber()+(n.getNumber()-A.getNumber())*r;return e==="%"&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:r}=this,A=this.getProperty();if(this.initialValue||(this.initialValue=A.getString(),this.initialUnits=A.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=A.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,A.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}A.setValue(a),i=!0}return i}getProgress(){var{document:e,values:r}=this,A={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var n=A.progress*(r.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);A.from=new pt(e,"from",parseFloat(r.getValue()[i])),A.to=new pt(e,"to",parseFloat(r.getValue()[a])),A.progress=(n-i)/(a-i)}else A.from=this.from,A.to=this.to;return A}}class cE extends Nu{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:r,to:A}=this.getProgress(),n=new _p(r.getColor()),i=new _p(A.getColor());if(n.ok&&i.ok){var a=n.r+(i.r-n.r)*e,s=n.g+(i.g-n.g)*e,o=n.b+(i.b-n.b)*e;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class fE extends Nu{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:r,to:A}=this.getProgress(),n=ZA(r.getString()),i=ZA(A.getString()),a=n.map((s,o)=>{var l=i[o];return s+(l-s)*e}).join(" ");return a}}class uE extends dr{constructor(e,r,A){super(e,r,A),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=e,{children:i}=this;for(var a of i)switch(a.type){case"font-face":{this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=a;break;case"glyph":{var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class hE extends dr{constructor(e,r,A){super(e,r,A),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class dE extends Zt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class gE extends Xi{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}}class pE extends Xi{constructor(e,r,A){super(e,r,A),this.type="a";var{childNodes:n}=r,i=n[0],a=n.length>0&&Array.from(n).every(s=>s.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:A,y:n}=this,{mouse:i}=r.screen,a=new pt(r,"fontSize",NA.parse(r.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Un(A,n-a.getPixels("y"),A+this.measureText(e),n))}else if(this.children.length>0){var s=new Lu(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function vE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,A)}return r}function Qu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vE(Object(r),!0).forEach(function(A){xp(t,A,r[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach(function(A){Object.defineProperty(t,A,Object.getOwnPropertyDescriptor(r,A))})}return t}class mE extends Xi{constructor(e,r,A){super(e,r,A),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(A=>{var{type:n,points:i}=A;switch(n){case Tt.LINE_TO:e&&e.lineTo(i[0],i[1]);break;case Tt.MOVE_TO:e&&e.moveTo(i[0],i[1]);break;case Tt.CURVE_TO:e&&e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case Tt.QUAD_TO:e&&e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case Tt.ARC:{var[a,s,o,l,c,h,d,u]=i,w=o>l?o:l,v=o>l?1:o/l,x=o>l?l/o:1;e&&(e.translate(a,s),e.rotate(d),e.scale(v,x),e.arc(0,0,w,c,c+h,!!(1-u)),e.scale(1/v,1/x),e.rotate(-d),e.translate(-a,-s));break}case Tt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),A=this.getFontSize(),{glyphInfo:n}=this,i=e.fillStyle;r==="underline"&&e.beginPath(),n.forEach((a,s)=>{var{p0:o,p1:l,rotation:c,text:h}=a;e.save(),e.translate(o.x,o.y),e.rotate(c),e.fillStyle&&e.fillText(h,0,0),e.strokeStyle&&e.strokeText(h,0,0),e.restore(),r==="underline"&&(s===0&&e.moveTo(o.x,o.y+A/8),e.lineTo(l.x,l.y+A/5))}),r==="underline"&&(e.lineWidth=A/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,A,n,i,a,s,o,l){var c=a,h=this.measureText(e,o);o===" "&&r==="justify"&&A<n&&(h+=(n-A)/i),l>-1&&(c+=this.getLetterSpacingAt(l));var d=this.textHeight/20,u=this.getEquidistantPointOnPath(c,d,0),w=this.getEquidistantPointOnPath(c+h,d,0),v={p0:u,p1:w},x=u&&w?Math.atan2(w.y-u.y,w.x-u.x):0;if(s){var y=Math.cos(Math.PI/2+x)*s,E=Math.cos(-x)*s;v.p0=Qu(Qu({},u),{},{x:u.x+y,y:u.y+E}),v.p1=Qu(Qu({},w),{},{x:w.x+y,y:w.y+E})}return c+=h,{offset:c,segment:v,rotation:x}}measureText(e,r){var{measuresCache:A}=this,n=r||this.getText();if(A.has(n))return A.get(n);var i=this.measureTargetText(e,n);return A.set(n,i),i}setTextData(e){if(!this.glyphInfo){var r=this.getText(),A=r.split(""),n=r.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(k=>k.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),c=0;!o.hasValue()||o.getValue()==="inherit"?c=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(c=o.getPixels());var h=[],d=r.length;this.letterSpacingCache=h;for(var u=0;u<d;u++)h.push(typeof i[u]<"u"?i[u]:c);var w=h.reduce((k,X,q)=>q===0?0:k+X||0,0),v=this.measureText(e),x=Math.max(v+w,0);this.textWidth=v,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),E=this.getStyle("startOffset").getNumber(0)*y,F=0;(s==="middle"||s==="center")&&(F=-x/2),(s==="end"||s==="right")&&(F=-x),F+=E,A.forEach((k,X)=>{var{offset:q,segment:N,rotation:Q}=this.findSegmentToFitChar(e,s,x,y,n,F,a,k,X);F=q,!(!N.p0||!N.p1)&&this.glyphInfo.push({text:A[X],p0:N.p0,p1:N.p1,rotation:Q})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:A}=e;for(A.reset();!A.isEnd();){var{current:n}=A,i=n?n.x:0,a=n?n.y:0,s=A.next(),o=s.type,l=[];switch(s.type){case Tt.MOVE_TO:this.pathM(A,l);break;case Tt.LINE_TO:o=this.pathL(A,l);break;case Tt.HORIZ_LINE_TO:o=this.pathH(A,l);break;case Tt.VERT_LINE_TO:o=this.pathV(A,l);break;case Tt.CURVE_TO:this.pathC(A,l);break;case Tt.SMOOTH_CURVE_TO:o=this.pathS(A,l);break;case Tt.QUAD_TO:this.pathQ(A,l);break;case Tt.SMOOTH_QUAD_TO:o=this.pathT(A,l);break;case Tt.ARC:l=this.pathA(A);break;case Tt.CLOSE_PATH:Zt.pathZ(A);break}s.type!==Tt.CLOSE_PATH?r.push({type:o,points:l,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,l)}):r.push({type:Tt.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:A,y:n}=Zt.pathM(e).point;r.push(A,n)}pathL(e,r){var{x:A,y:n}=Zt.pathL(e).point;return r.push(A,n),Tt.LINE_TO}pathH(e,r){var{x:A,y:n}=Zt.pathH(e).point;return r.push(A,n),Tt.LINE_TO}pathV(e,r){var{x:A,y:n}=Zt.pathV(e).point;return r.push(A,n),Tt.LINE_TO}pathC(e,r){var{point:A,controlPoint:n,currentPoint:i}=Zt.pathC(e);r.push(A.x,A.y,n.x,n.y,i.x,i.y)}pathS(e,r){var{point:A,controlPoint:n,currentPoint:i}=Zt.pathS(e);return r.push(A.x,A.y,n.x,n.y,i.x,i.y),Tt.CURVE_TO}pathQ(e,r){var{controlPoint:A,currentPoint:n}=Zt.pathQ(e);r.push(A.x,A.y,n.x,n.y)}pathT(e,r){var{controlPoint:A,currentPoint:n}=Zt.pathT(e);return r.push(A.x,A.y,n.x,n.y),Tt.QUAD_TO}pathA(e){var{rX:r,rY:A,sweepFlag:n,xAxisRotation:i,centp:a,a1:s,ad:o}=Zt.pathA(e);return n===0&&o>0&&(o-=2*Math.PI),n===1&&o<0&&(o+=2*Math.PI),[a.x,a.y,r,A,s,o,i,n]}calcLength(e,r,A,n){var i=0,a=null,s=null,o=0;switch(A){case Tt.LINE_TO:return this.getLineLength(e,r,n[0],n[1]);case Tt.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,r,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,e,r,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Tt.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,r,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,e,r,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Tt.ARC:{i=0;var l=n[4],c=n[5],h=n[4]+c,d=Math.PI/180;if(Math.abs(l-h)<d&&(d=Math.abs(l-h)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),c<0)for(o=l-d;o>h;o-=d)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=l+d;o<h;o+=d)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),i}}return 0}getPointOnLine(e,r,A,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:A,o=(i-A)/(n-r+_s),l=Math.sqrt(e*e/(1+o*o));n<r&&(l*=-1);var c=o*l,h=null;if(n===r)h={x:a,y:s+c};else if((s-A)/(a-r+_s)===o)h={x:a+l,y:s+c};else{var d=0,u=0,w=this.getLineLength(r,A,n,i);if(w<_s)return null;var v=(a-r)*(n-r)+(s-A)*(i-A);v/=w*w,d=r+v*(n-r),u=A+v*(i-A);var x=this.getLineLength(a,s,d,u),y=Math.sqrt(e*e-x*x);l=Math.sqrt(y*y/(1+o*o)),n<r&&(l*=-1),c=o*l,h={x:d+l,y:u+c}}return h}getPointOnPath(e){var r=this.getPathLength(),A=0,n=null;if(e<-5e-5||e-5e-5>r)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||A+a.pathLength+5e-5<e)){A+=a.pathLength;continue}var s=e-A,o=0;switch(a.type){case Tt.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Tt.ARC:{var l=a.points[4],c=a.points[5],h=a.points[4]+c;if(o=l+s/a.pathLength*c,c<0&&o<h||c>=0&&o>h)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break}case Tt.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Tt.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(n)return n;break}return null}getLineLength(e,r,A,n){return Math.sqrt((A-e)*(A-e)+(n-r)*(n-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,A,n,i,a,s,o,l){var c=o*kp(e)+a*Dp(e)+n*Pp(e)+r*Rp(e),h=l*kp(e)+s*Dp(e)+i*Pp(e)+A*Rp(e);return{x:c,y:h}}getPointOnQuadraticBezier(e,r,A,n,i,a,s){var o=a*Mp(e)+n*Hp(e)+r*Vp(e),l=s*Mp(e)+i*Hp(e)+A*Vp(e);return{x:o,y:l}}getPointOnEllipticalArc(e,r,A,n,i,a){var s=Math.cos(a),o=Math.sin(a),l={x:A*Math.cos(i),y:n*Math.sin(i)};return{x:e+(l.x*s-l.y*o),y:r+(l.x*o+l.y*s)}}buildEquidistantCache(e,r){var A=this.getPathLength(),n=r||.25,i=e||A/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=A;s+=n){var o=this.getPointOnPath(s),l=this.getPointOnPath(s+n);!o||!l||(a+=this.getLineLength(o.x,o.y,l.x,l.y),a>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(e,r,A){if(this.buildEquidistantCache(r,A),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var DY=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class wE extends Na{constructor(e,r,A){super(e,r,A),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);e.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(e){var r=this;return ji(function*(){try{var A=yield r.document.createImage(e);r.image=A}catch(n){console.error('Error while loading image "'.concat(e,'":'),n)}r.loaded=!0})()}loadSvg(e){var r=this;return ji(function*(){var A=DY.exec(e);if(A){var n=A[5];A[4]==="base64"?r.image=atob(n):r.image=decodeURIComponent(n)}else try{var i=yield r.document.fetch(e),a=yield i.text();r.image=a}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}r.loaded=!0})()}renderChildren(e){var{document:r,image:A,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!n||!A||!s||!o)){if(e.save(),e.translate(i,a),this.isSvg){var l=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var c=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:c.width,height:o,desiredHeight:c.height}),this.loaded&&(typeof c.complete>"u"||c.complete)&&e.drawImage(c,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),A=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Un(e,r,e+A,r+n)}}class BE extends Na{constructor(){super(...arguments),this.type="symbol"}render(e){}}class xE{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var A=this;return ji(function*(){try{var{document:n}=A,i=yield n.canvg.parser.load(r),a=i.getElementsByTagName("font");Array.from(a).forEach(s=>{var o=n.createElement(s);n.definitions[e]=o})}catch(s){console.error('Error while loading font "'.concat(r,'":'),s)}A.loaded=!0})()}}class qp extends dr{constructor(e,r,A){super(e,r,A),this.type="style";var n=Fs(Array.from(r.childNodes).map(a=>a.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach(a=>{var s=a.trim();if(s){var o=s.split("{"),l=o[0].split(","),c=o[1].split(";");l.forEach(h=>{var d=h.trim();if(d){var u=e.styles[d]||{};if(c.forEach(x=>{var y=x.indexOf(":"),E=x.substr(0,y).trim(),F=x.substr(y+1,x.length-y).trim();E&&F&&(u[E]=new pt(e,E,F))}),e.styles[d]=u,e.stylesSpecificity[d]=KC(d),d==="@font-face"){var w=u["font-family"].getString().replace(/"|'/g,""),v=u.src.getString().split(",");v.forEach(x=>{if(x.indexOf('format("svg")')>0){var y=Np(x);y&&new xE(e).load(w,y)}})}}})}})}}qp.parseExternalUrl=Np;class yE extends Na{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),A=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),A.hasValue()&&e.translate(0,A.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:A}=this;if(A){var n=A;if(A.type==="symbol"&&(n=new Po(r,null),n.attributes.viewBox=new pt(r,"viewBox",A.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new pt(r,"preserveAspectRatio",A.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new pt(r,"overflow",A.getAttribute("overflow").getString()),n.children=A.children,A.styles.opacity=new pt(r,"opacity",this.calculateOpacity())),n.type==="svg"){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new pt(r,"width",i.getString())),a.hasValue()&&(n.attributes.height=new pt(r,"height",a.getString()))}var s=n.parent;n.parent=this,n.render(e),n.parent=s}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return La.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Ou(t,e,r,A,n,i){return t[r*A*4+e*4+i]}function ku(t,e,r,A,n,i,a){t[r*A*4+e*4+i]=a}function Xr(t,e,r){var A=t[e];return A*r}function qi(t,e,r,A){return e+Math.cos(t)*r+Math.sin(t)*A}class Yp extends dr{constructor(e,r,A){super(e,r,A),this.type="feColorMatrix";var n=ZA(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var a=n[0]*Math.PI/180;n=[qi(a,.213,.787,-.213),qi(a,.715,-.715,-.715),qi(a,.072,-.072,.928),0,0,qi(a,.213,-.213,.143),qi(a,.715,.285,.14),qi(a,.072,-.072,-.283),0,0,qi(a,.213,-.213,-.787),qi(a,.715,-.715,.715),qi(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,A,n,i){for(var{includeOpacity:a,matrix:s}=this,o=e.getImageData(0,0,n,i),l=0;l<i;l++)for(var c=0;c<n;c++){var h=Ou(o.data,c,l,n,i,0),d=Ou(o.data,c,l,n,i,1),u=Ou(o.data,c,l,n,i,2),w=Ou(o.data,c,l,n,i,3),v=Xr(s,0,h)+Xr(s,1,d)+Xr(s,2,u)+Xr(s,3,w)+Xr(s,4,1),x=Xr(s,5,h)+Xr(s,6,d)+Xr(s,7,u)+Xr(s,8,w)+Xr(s,9,1),y=Xr(s,10,h)+Xr(s,11,d)+Xr(s,12,u)+Xr(s,13,w)+Xr(s,14,1),E=Xr(s,15,h)+Xr(s,16,d)+Xr(s,17,u)+Xr(s,18,w)+Xr(s,19,1);a&&(v=0,x=0,y=0,E*=w/255),ku(o.data,c,l,n,i,0,v),ku(o.data,c,l,n,i,1,x),ku(o.data,c,l,n,i,2,y),ku(o.data,c,l,n,i,3,E)}e.clearRect(0,0,n,i),e.putImageData(o,0,0)}}class yc extends dr{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:A}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new Un;this.children.forEach(w=>{o.addBoundingBox(w.getBoundingBox(e))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var l=this.removeStyles(r,yc.ignoreStyles),c=A.createCanvas(n+a,i+s),h=c.getContext("2d");A.screen.setDefaults(h),this.renderChildren(h),new Yp(A,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,n+a,i+s);var d=A.createCanvas(n+a,i+s),u=d.getContext("2d");A.screen.setDefaults(u),r.render(u),u.globalCompositeOperation="destination-in",u.fillStyle=h.createPattern(c,"no-repeat"),u.fillRect(0,0,n+a,i+s),e.fillStyle=u.createPattern(d,"no-repeat"),e.fillRect(0,0,n+a,i+s),this.restoreStyles(r,l)}render(e){}}yc.ignoreStyles=["mask","transform","clip-path"];var CE=()=>{};class EE extends dr{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,A=Reflect.getPrototypeOf(e),{beginPath:n,closePath:i}=e;A&&(A.beginPath=CE,A.closePath=CE),Reflect.apply(n,e,[]),this.children.forEach(a=>{if(!(typeof a.path>"u")){var s=typeof a.elementTransform<"u"?a.elementTransform():null;s||(s=La.fromElement(r,a)),s&&s.apply(e),a.path(e),A&&(A.closePath=i),s&&s.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),A&&(A.beginPath=n,A.closePath=i)}render(e){}}class Cc extends dr{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:A,children:n}=this,i=r.getBoundingBox(e);if(i){var a=0,s=0;n.forEach(y=>{var E=y.extraFilterDistance||0;a=Math.max(a,E),s=Math.max(s,E)});var o=Math.floor(i.width),l=Math.floor(i.height),c=o+2*a,h=l+2*s;if(!(c<1||h<1)){var d=Math.floor(i.x),u=Math.floor(i.y),w=this.removeStyles(r,Cc.ignoreStyles),v=A.createCanvas(c,h),x=v.getContext("2d");A.screen.setDefaults(x),x.translate(-d+a,-u+s),r.render(x),n.forEach(y=>{typeof y.apply=="function"&&y.apply(x,0,0,c,h)}),e.drawImage(v,0,0,c,h,d-a,u-s,c,h),this.restoreStyles(r,w)}}}render(e){}}Cc.ignoreStyles=["filter","transform","clip-path"];class bE extends dr{constructor(e,r,A){super(e,r,A),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,A,n,i){}}class FE extends dr{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,A,n,i){}}class SE extends dr{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,A,n,i){}}class _E extends dr{constructor(e,r,A){super(e,r,A),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,A,n,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,l=e.canvas;l.id=a.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),gY(l,r,A,n,i,s),o&&o.removeChild(l)}}class TE extends dr{constructor(){super(...arguments),this.type="title"}}class UE extends dr{constructor(){super(...arguments),this.type="desc"}}var PY={svg:Po,rect:Wp,circle:eE,ellipse:tE,line:rE,polyline:zp,polygon:AE,path:Zt,pattern:nE,marker:iE,defs:aE,linearGradient:sE,radialGradient:oE,stop:lE,animate:Nu,animateColor:cE,animateTransform:fE,font:uE,"font-face":hE,"missing-glyph":dE,glyph:jp,text:Xi,tspan:xc,tref:gE,a:pE,textPath:mE,image:wE,g:Lu,symbol:BE,style:qp,use:yE,mask:yc,clipPath:EE,filter:Cc,feDropShadow:bE,feMorphology:FE,feComposite:SE,feColorMatrix:Yp,feGaussianBlur:_E,title:TE,desc:UE};function IE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,A)}return r}function RY(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IE(Object(r),!0).forEach(function(A){xp(t,A,r[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IE(Object(r)).forEach(function(A){Object.defineProperty(t,A,Object.getOwnPropertyDescriptor(r,A))})}return t}function MY(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function HY(t){return $p.apply(this,arguments)}function $p(){return $p=ji(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((A,n)=>{r.onload=()=>{A(r)},r.onerror=(i,a,s,o,l)=>{n(l)},r.src=t})}),$p.apply(this,arguments)}class Yi{constructor(e){var{rootEmSize:r=12,emSize:A=12,createCanvas:n=Yi.createCanvas,createImage:i=Yi.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=A,this.createCanvas=n,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return typeof r=="boolean"?(A,n)=>e(A,typeof n=="boolean"?n:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),A=Yi.elementTypes[r];return typeof A<"u"?new A(this,e):new ZC(this,e)}createTextNode(e){return new kY(this,e)}setViewBox(e){this.screen.setViewBox(RY({document:this},e))}}Yi.createCanvas=MY,Yi.createImage=HY,Yi.elementTypes=PY;function LE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,A)}return r}function Ts(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?LE(Object(r),!0).forEach(function(A){xp(t,A,r[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LE(Object(r)).forEach(function(A){Object.defineProperty(t,A,Object.getOwnPropertyDescriptor(r,A))})}return t}class Us{constructor(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Iu(A),this.screen=new Bc(e,A),this.options=A;var n=new Yi(this,A),i=n.createDocumentElement(r);this.document=n,this.documentElement=i}static from(e,r){var A=arguments;return ji(function*(){var n=A.length>2&&A[2]!==void 0?A[2]:{},i=new Iu(n),a=yield i.parse(r);return new Us(e,a,n)})()}static fromString(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Iu(A),i=n.parseFromString(r);return new Us(e,i,A)}fork(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Us.from(e,r,Ts(Ts({},this.options),A))}forkString(e,r){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Us.fromString(e,r,Ts(Ts({},this.options),A))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return ji(function*(){var A=e.length>0&&e[0]!==void 0?e[0]:{};r.start(Ts({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},A)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:A,options:n}=this;A.start(r,Ts(Ts({enableRedraw:!0},n),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,A)}}const VY=Object.freeze(Object.defineProperty({__proto__:null,AElement:pE,AnimateColorElement:cE,AnimateElement:Nu,AnimateTransformElement:fE,BoundingBox:Un,CB1:kp,CB2:Dp,CB3:Pp,CB4:Rp,Canvg:Us,CircleElement:eE,ClipPathElement:EE,DefsElement:aE,DescElement:UE,Document:Yi,Element:dr,EllipseElement:tE,FeColorMatrixElement:Yp,FeCompositeElement:SE,FeDropShadowElement:bE,FeGaussianBlurElement:_E,FeMorphologyElement:FE,FilterElement:Cc,Font:NA,FontElement:uE,FontFaceElement:hE,GElement:Lu,GlyphElement:jp,GradientElement:Xp,ImageElement:wE,LineElement:rE,LinearGradientElement:sE,MarkerElement:iE,MaskElement:yc,Matrix:Kp,MissingGlyphElement:dE,Mouse:jC,PSEUDO_ZERO:_s,Parser:Iu,PathElement:Zt,PathParser:Tt,PatternElement:nE,Point:Ur,PolygonElement:AE,PolylineElement:zp,Property:pt,QB1:Mp,QB2:Hp,QB3:Vp,RadialGradientElement:oE,RectElement:Wp,RenderedElement:Na,Rotate:qC,SVGElement:Po,SVGFontLoader:xE,Scale:YC,Screen:Bc,Skew:Gp,SkewX:$C,SkewY:JC,StopElement:lE,StyleElement:qp,SymbolElement:BE,TRefElement:gE,TSpanElement:xc,TextElement:Xi,TextPathElement:mE,TitleElement:TE,Transform:La,Translate:XC,UnknownElement:ZC,UseElement:yE,ViewPort:GC,compressSpaces:Fs,default:Us,getSelectorSpecificity:KC,normalizeAttributeName:HC,normalizeColor:VC,parseExternalUrl:Np,presets:wY,toNumbers:ZA,trimLeft:RC,trimRight:MC,vectorMagnitude:Qp,vectorsAngle:Op,vectorsRatio:Uu},Symbol.toStringTag,{value:"Module"}));sa.VueUiTable=hR,sa.VueUiXy=kD,Object.defineProperty(sa,Symbol.toStringTag,{value:"Module"})});
|