/*! wmf.js (C) 2020-present SheetJS LLC -- https://sheetjs.com */ module.exports=function(r){var i={};function a(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,a),e.l=!0,e.exports}return a.m=r,a.c=i,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(r,i,function(t){return e[t]}.bind(null,i));return r},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=2)}([function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r,c=!("undefined"==typeof Buffer||"undefined"==typeof process||void 0===process.versions||!process.versions.node);if(s.has_buf=c,s.Buffer_from=r,"undefined"!=typeof Buffer){var i=!Buffer.from;if(!i)try{Buffer.from("foo","utf8")}catch(t){i=!0}s.Buffer_from=r=i?function(t,e){return e?new Buffer(t,e):new Buffer(t)}:Buffer.from.bind(Buffer),Buffer.alloc||(Buffer.alloc=function(t){return new Buffer(t)}),Buffer.allocUnsafe||(Buffer.allocUnsafe=function(t){return new Buffer(t)})}s.new_raw_buf=function(t){return c?Buffer.alloc(t):new Array(t)},s.new_unsafe_buf=function(t){return c?Buffer.allocUnsafe(t):new Array(t)},s._chr=function(t){return String.fromCharCode(t)},s.chr0=/\u0000/g,s.chr1=/[\u0001-\u0006]/g;var u,a,l=function(t,e){return t[e]},d=function(t,e){return 256*t[e+1]+t[e]},_=function(t,e){var r=256*t[e+1]+t[e];return r<32768?r:-1*(65535-r+1)},p=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},E=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},g=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]},b=function(t,e,r){for(var i=[],a=e;a>>7),i=((127&t[e+7])<<4)+(t[e+6]>>>4&15),a=15&t[e+6],s=5;0<=s;--s)a=256*a+t[e+s];return 2047==i?0==a?1/0*r:NaN:(0==i?i=-1022:(i-=1023,a+=Math.pow(2,52)),r*Math.pow(2,i-52)*a)}(t,e)}var m=y,k=B;function O(t,e){var r,i,a,s,n,f="",h=0,o=[];switch(e){case"dbcs":if(n=this.l,c&&Buffer.isBuffer(this))f=this.slice(this.l,this.l+2*t).toString("utf16le");else for(s=0;s>>8&255;l=2*e.length}else if("sbcs"===r){for(e=e.replace(/[^\x00-\x7F]/g,"_"),d=0;d!=e.length;++d)this[this.l+d]=255&e.charCodeAt(d);l=e.length}else{if("hex"===r){for(;d>8}for(;this.l<_;)this[this.l++]=0;return this}if("number"==typeof e)switch(t){case 1:l=1,this[this.l]=255&e;break;case 2:l=2,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e;break;case 3:l=3,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e,e>>>=8,this[this.l+2]=255&e;break;case 4:l=4,f=e,h=(n=this).l,n[h]=255&f,n[h+1]=f>>>8&255,n[h+2]=f>>>16&255,n[h+3]=f>>>24&255;break;case 8:if(l=8,"f"===r){!function(t,e,r){var i=(e<0||1/e==-1/0?1:0)<<7,a=0,s=0,n=i?-e:e;isFinite(n)?0==n?a=s=0:(a=Math.floor(Math.log(n)/Math.LN2),s=n*Math.pow(2,52-a),a<=-1023&&(!isFinite(s)||s>4|i}(this,e,this.l);break}case 16:break;case-4:l=4,a=e,s=(i=this).l,i[s]=255&a,i[s+1]=a>>8&255,i[s+2]=a>>16&255,i[s+3]=a>>24&255}}return this.l+=l,this}function I(t,e){var r=v(this,this.l,t.length>>1);if(r!==t)throw new Error(e+"Expected "+t+" saw "+r);this.l+=t.length>>1}s.WriteShift=x,s.CheckField=I;function F(t,e){t.l=e,t.read_shift=O,t.chk=I,t.write_shift=x}s.prep_blob=F;s.new_buf=function(t){var e=s.new_raw_buf(t);return F(e,0),e};var N=function(t){for(var e=!0,r=0;r>8),w=t.read_shift(4),A=t.read_shift(2,"i"),y=t.read_shift(2,"i");C||(t.l+=2);var B=t.read_shift(2,"i"),m=t.read_shift(2,"i"),k=t.read_shift(2,"i"),O={t:"cpy",src:[[y,m],[A,B]],dst:[t.read_shift(2,"i"),k],rop:w,s:Object.assign({},u)};if(C){var x=tt(t.slice(t.l,d));O.data=x}e.push(O);break;case 2881:C=r!=3+(i>>8),w=t.read_shift(4);var I=t.read_shift(2,"i"),F=t.read_shift(2,"i");A=t.read_shift(2,"i"),y=t.read_shift(2,"i");C||(t.l+=2);var N=t.read_shift(2,"i"),R=t.read_shift(2,"i");k=t.read_shift(2,"i"),O={t:"str",src:[[y,F],[A,I]],dst:[[t.read_shift(2,"i"),R],[k,N]],rop:w,s:Object.assign({},u)};if(C){x=tt(t.slice(t.l,d));O.data=x}e.push(O);break;case 2610:var L=t.read_shift(2),P=t.read_shift(2),D=t.read_shift(2);6&t.read_shift(2)&&(t.l+=8);var j=t.read_shift(D,"cpstr");t.l,e.push({t:"text",v:j,p:[P,L],s:Object.assign({},u)});break;case 805:case 804:for(var H=t.read_shift(2),W=[],U=0;U>8&255).toString(16).padStart(2,"0")+(t>>16&255).toString(16).padStart(2,"0")},n.set_ctx_state=function(t,e){if(e){var r="";if(e.Font){e.Font.Italic&&(r+=" italic"),e.Font.Weight&&(r+=" "+(700==e.Font.Weight?"bold":400==e.Font.Weight?"":e.Font.Weight)),e.Font.Height<0?r+=" "+-e.Font.Height+"px":0