pptxtojson 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,a)}function r(t){return function(){var r=this,n=arguments;return new Promise((function(a,i){var o=t.apply(r,n);function s(t){e(o,a,i,s,u,"next",t)}function u(t){e(o,a,i,s,u,"throw",t)}s(void 0)}))}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var i={exports:{}},o={exports:{}};!function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(o),function(t){var e=o.exports.default;function r(){t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),s=new R(n||[]);return o(i,"_invoke",{value:S(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var p={};function g(){}function b(){}function m(){}var v={};f(v,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==a&&i.call(w,u)&&(v=w);var _=m.prototype=g.prototype=Object.create(v);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,r){function n(a,o,s,u){var l=d(t[a],t,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==e(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,a){n(t,e,r,a)}))}return a=a?a.then(i,i):i()}})}function S(t,e,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return T()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function C(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return b.prototype=m,o(_,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:b,configurable:!0}),b.displayName=f(m,c,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},k(x.prototype),f(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,a,i){void 0===i&&(i=Promise);var o=new x(h(t,e,r,a),i);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),f(_,c,"Generator"),f(_,u,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},n}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(i);var s=i.exports(),u=s;try{regeneratorRuntime=s}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}var l={},c={},f="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,g=!1;function b(){g=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)h[e]=t[e],d[t.charCodeAt(e)]=e;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}function m(t,e,r){for(var n,a,i=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(h[(a=n)>>18&63]+h[a>>12&63]+h[a>>6&63]+h[63&a]);return i.join("")}function v(t){var e;g||b();for(var r=t.length,n=r%3,a="",i=[],o=16383,s=0,u=r-n;s<u;s+=o)i.push(m(t,s,s+o>u?u:s+o));return 1===n?(e=t[r-1],a+=h[e>>2],a+=h[e<<4&63],a+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],a+=h[e>>10],a+=h[e>>4&63],a+=h[e<<2&63],a+="="),i.push(a),i.join("")}function y(t,e,r,n,a){var i,o,s=8*a-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?a-1:0,h=r?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+t[e+f],f+=h,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+t[e+f],f+=h,c-=8);if(0===i)i=1-l;else{if(i===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),i-=l}return(d?-1:1)*o*Math.pow(2,i-n)}function w(t,e,r,n,a,i){var o,s,u,l=8*i-a-1,c=(1<<l)-1,f=c>>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(e*u-1)*Math.pow(2,a),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;t[r+d]=255&s,d+=p,s/=256,a-=8);for(o=o<<a|s,l+=a;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*g}var _={}.toString,k=Array.isArray||function(t){return"[object Array]"==_.call(t)};A.TYPED_ARRAY_SUPPORT=void 0===f.TYPED_ARRAY_SUPPORT||f.TYPED_ARRAY_SUPPORT;var x=S();function S(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function C(t,e){if(S()<e)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=A.prototype:(null===t&&(t=new A(e)),t.length=e),t}function A(t,e,r){if(!(A.TYPED_ARRAY_SUPPORT||this instanceof A))return new A(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return O(this,t)}return E(this,t,e,r)}function E(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);A.TYPED_ARRAY_SUPPORT?(t=e).__proto__=A.prototype:t=T(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!A.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|M(e,r),a=(t=C(t,n)).write(e,r);a!==n&&(t=t.slice(0,a));return t}(t,e,r):function(t,e){if(L(e)){var r=0|P(e.length);return 0===(t=C(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?C(t,0):T(t,e);if("Buffer"===e.type&&k(e.data))return T(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function R(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function O(t,e){if(R(e),t=C(t,e<0?0:0|P(e)),!A.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function T(t,e){var r=e.length<0?0:0|P(e.length);t=C(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function P(t){if(t>=S())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return 0|t}function L(t){return!(null==t||!t._isBuffer)}function M(t,e){if(L(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return it(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ot(t).length;default:if(n)return it(t).length;e=(""+e).toLowerCase(),n=!0}}function I(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return V(this,e,r);case"utf8":case"utf-8":return q(this,e,r);case"ascii":return Y(this,e,r);case"latin1":case"binary":return G(this,e,r);case"base64":return Z(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function D(t,e,r,n,a){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(a)return-1;r=t.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof e&&(e=A.from(e,n)),L(e))return 0===e.length?-1:j(t,e,r,n,a);if("number"==typeof e)return e&=255,A.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):j(t,[e],r,n,a);throw new TypeError("val must be string, number or Buffer")}function j(t,e,r,n,a){var i,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(a){var c=-1;for(i=r;i<s;i++)if(l(t,i)===l(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(l(t,i+h)!==l(e,h)){f=!1;break}if(f)return i}return-1}function z(t,e,r,n){r=Number(r)||0;var a=t.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function F(t,e,r,n){return st(it(e,t.length-r),t,r,n)}function N(t,e,r,n){return st(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function U(t,e,r,n){return N(t,e,r,n)}function H(t,e,r,n){return st(ot(e),t,r,n)}function W(t,e,r,n){return st(function(t,e){for(var r,n,a,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,a=r%256,i.push(a),i.push(n);return i}(e,t.length-r),t,r,n)}function Z(t,e,r){return 0===e&&r===t.length?v(t):v(t.slice(e,r))}function q(t,e,r){r=Math.min(t.length,r);for(var n=[],a=e;a<r;){var i,o,s,u,l=t[a],c=null,f=l>239?4:l>223?3:l>191?2:1;if(a+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[a+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=t[a+1],o=t[a+2],128==(192&i)&&128==(192&o)&&(u=(15&l)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[a+1],o=t[a+2],s=t[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}A.poolSize=8192,A._augment=function(t){return t.__proto__=A.prototype,t},A.from=function(t,e,r){return E(null,t,e,r)},A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&A[Symbol.species]),A.alloc=function(t,e,r){return function(t,e,r,n){return R(e),e<=0?C(t,e):void 0!==r?"string"==typeof n?C(t,e).fill(r,n):C(t,e).fill(r):C(t,e)}(null,t,e,r)},A.allocUnsafe=function(t){return O(null,t)},A.allocUnsafeSlow=function(t){return O(null,t)},A.isBuffer=ut,A.compare=function(t,e){if(!L(t)||!L(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,a=0,i=Math.min(r,n);a<i;++a)if(t[a]!==e[a]){r=t[a],n=e[a];break}return r<n?-1:n<r?1:0},A.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},A.concat=function(t,e){if(!k(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return A.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=A.allocUnsafe(e),a=0;for(r=0;r<t.length;++r){var i=t[r];if(!L(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},A.byteLength=M,A.prototype._isBuffer=!0,A.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)B(this,e,e+1);return this},A.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)B(this,e,e+3),B(this,e+1,e+2);return this},A.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)B(this,e,e+7),B(this,e+1,e+6),B(this,e+2,e+5),B(this,e+3,e+4);return this},A.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?q(this,0,t):I.apply(this,arguments)},A.prototype.equals=function(t){if(!L(t))throw new TypeError("Argument must be a Buffer");return this===t||0===A.compare(this,t)},A.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},A.prototype.compare=function(t,e,r,n,a){if(!L(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),e<0||r>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&e>=r)return 0;if(n>=a)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(i,o),u=this.slice(n,a),l=t.slice(e,r),c=0;c<s;++c)if(u[c]!==l[c]){i=u[c],o=l[c];break}return i<o?-1:o<i?1:0},A.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},A.prototype.indexOf=function(t,e,r){return D(this,t,e,r,!0)},A.prototype.lastIndexOf=function(t,e,r){return D(this,t,e,r,!1)},A.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-e;if((void 0===r||r>a)&&(r=a),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return z(this,t,e,r);case"utf8":case"utf-8":return F(this,t,e,r);case"ascii":return N(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return H(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(t,e,r){var n="";r=Math.min(t.length,r);for(var a=e;a<r;++a)n+=String.fromCharCode(127&t[a]);return n}function G(t,e,r){var n="";r=Math.min(t.length,r);for(var a=e;a<r;++a)n+=String.fromCharCode(t[a]);return n}function V(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=e;i<r;++i)a+=at(t[i]);return a}function K(t,e,r){for(var n=t.slice(e,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}function X(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,r,n,a,i){if(!L(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function J(t,e,r,n){e<0&&(e=65535+e+1);for(var a=0,i=Math.min(t.length-r,2);a<i;++a)t[r+a]=(e&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function Q(t,e,r,n){e<0&&(e=4294967295+e+1);for(var a=0,i=Math.min(t.length-r,4);a<i;++a)t[r+a]=e>>>8*(n?a:3-a)&255}function tt(t,e,r,n,a,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function et(t,e,r,n,a){return a||tt(t,0,r,4),w(t,e,r,n,23,4),r+4}function rt(t,e,r,n,a){return a||tt(t,0,r,8),w(t,e,r,n,52,8),r+8}A.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),A.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=A.prototype;else{var a=e-t;r=new A(a,void 0);for(var i=0;i<a;++i)r[i]=this[i+t]}return r},A.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],a=1,i=0;++i<e&&(a*=256);)n+=this[t+i]*a;return n},A.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t+--e],a=1;e>0&&(a*=256);)n+=this[t+--e]*a;return n},A.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},A.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]<<8},A.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]<<8|this[t+1]},A.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},A.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},A.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],a=1,i=0;++i<e&&(a*=256);)n+=this[t+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*e)),n},A.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=e,a=1,i=this[t+--n];n>0&&(a*=256);)i+=this[t+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*e)),i},A.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},A.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},A.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},A.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),y(this,t,!0,23,4)},A.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),y(this,t,!1,23,4)},A.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),y(this,t,!0,52,8)},A.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),y(this,t,!1,52,8)},A.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[e]=255&t;++i<r&&(a*=256);)this[e+i]=t/a&255;return e+r},A.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[e+a]=255&t;--a>=0&&(i*=256);)this[e+a]=t/i&255;return e+r},A.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,255,0),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},A.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Q(this,t,e,!0),e+4},A.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var a=Math.pow(2,8*r-1);$(this,t,e,r,a-1,-a)}var i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},A.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var a=Math.pow(2,8*r-1);$(this,t,e,r,a-1,-a)}var i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},A.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,127,-128),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},A.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Q(this,t,e,!0),e+4},A.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeFloatLE=function(t,e,r){return et(this,t,e,!0,r)},A.prototype.writeFloatBE=function(t,e,r){return et(this,t,e,!1,r)},A.prototype.writeDoubleLE=function(t,e,r){return rt(this,t,e,!0,r)},A.prototype.writeDoubleBE=function(t,e,r){return rt(this,t,e,!1,r)},A.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var a,i=n-r;if(this===t&&r<e&&e<n)for(a=i-1;a>=0;--a)t[a+e]=this[a+r];else if(i<1e3||!A.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)t[a+e]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},A.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var a=t.charCodeAt(0);a<256&&(t=a)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!A.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=L(t)?t:it(new A(t,n).toString()),s=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};var nt=/[^+\/0-9A-Za-z-_]/g;function at(t){return t<16?"0"+t.toString(16):t.toString(16)}function it(t,e){var r;e=e||1/0;for(var n=t.length,a=null,i=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function ot(t){return function(t){var e,r,n,a,i,o;g||b();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[s-2]?2:"="===t[s-1]?1:0,o=new p(3*s/4-i),n=i>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)a=d[t.charCodeAt(e)]<<18|d[t.charCodeAt(e+1)]<<12|d[t.charCodeAt(e+2)]<<6|d[t.charCodeAt(e+3)],o[u++]=a>>16&255,o[u++]=a>>8&255,o[u++]=255&a;return 2===i?(a=d[t.charCodeAt(e)]<<2|d[t.charCodeAt(e+1)]>>4,o[u++]=255&a):1===i&&(a=d[t.charCodeAt(e)]<<10|d[t.charCodeAt(e+1)]<<4|d[t.charCodeAt(e+2)]>>2,o[u++]=a>>8&255,o[u++]=255&a),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(nt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function st(t,e,r,n){for(var a=0;a<n&&!(a+r>=e.length||a>=t.length);++a)e[a+r]=t[a];return a}function ut(t){return null!=t&&(!!t._isBuffer||lt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&lt(t.slice(0,0))}(t))}function lt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ct=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:x,Buffer:A,SlowBuffer:function(t){return+t!=t&&(t=0),A.alloc(+t)},isBuffer:ut}),ft={};function ht(){throw new Error("setTimeout has not been defined")}function dt(){throw new Error("clearTimeout has not been defined")}var pt=ht,gt=dt;function bt(t){if(pt===setTimeout)return setTimeout(t,0);if((pt===ht||!pt)&&setTimeout)return pt=setTimeout,setTimeout(t,0);try{return pt(t,0)}catch(e){try{return pt.call(null,t,0)}catch(e){return pt.call(this,t,0)}}}"function"==typeof f.setTimeout&&(pt=setTimeout),"function"==typeof f.clearTimeout&&(gt=clearTimeout);var mt,vt=[],yt=!1,wt=-1;function _t(){yt&&mt&&(yt=!1,mt.length?vt=mt.concat(vt):wt=-1,vt.length&&kt())}function kt(){if(!yt){var t=bt(_t);yt=!0;for(var e=vt.length;e;){for(mt=vt,vt=[];++wt<e;)mt&&mt[wt].run();wt=-1,e=vt.length}mt=null,yt=!1,function(t){if(gt===clearTimeout)return clearTimeout(t);if((gt===dt||!gt)&&clearTimeout)return gt=clearTimeout,clearTimeout(t);try{gt(t)}catch(e){try{return gt.call(null,t)}catch(e){return gt.call(this,t)}}}(t)}}function xt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];vt.push(new St(t,e)),1!==vt.length||yt||bt(kt)}function St(t,e){this.fun=t,this.array=e}St.prototype.run=function(){this.fun.apply(null,this.array)};function Ct(){}var At=Ct,Et=Ct,Rt=Ct,Ot=Ct,Tt=Ct,Pt=Ct,Lt=Ct;var Mt=f.performance||{},It=Mt.now||Mt.mozNow||Mt.msNow||Mt.oNow||Mt.webkitNow||function(){return(new Date).getTime()};var Bt=new Date;var Dt={nextTick:xt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:Et,once:Rt,off:Ot,removeListener:Tt,removeAllListeners:Pt,emit:Lt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*It.call(Mt),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Bt)/1e3}},jt={exports:{}};function zt(){}function Ft(){Ft.init.call(this)}function Nt(t){return void 0===t._maxListeners?Ft.defaultMaxListeners:t._maxListeners}function Ut(t,e,r){if(e)t.call(r);else for(var n=t.length,a=Kt(t,n),i=0;i<n;++i)a[i].call(r)}function Ht(t,e,r,n){if(e)t.call(r,n);else for(var a=t.length,i=Kt(t,a),o=0;o<a;++o)i[o].call(r,n)}function Wt(t,e,r,n,a){if(e)t.call(r,n,a);else for(var i=t.length,o=Kt(t,i),s=0;s<i;++s)o[s].call(r,n,a)}function Zt(t,e,r,n,a,i){if(e)t.call(r,n,a,i);else for(var o=t.length,s=Kt(t,o),u=0;u<o;++u)s[u].call(r,n,a,i)}function qt(t,e,r,n){if(e)t.apply(r,n);else for(var a=t.length,i=Kt(t,a),o=0;o<a;++o)i[o].apply(r,n)}function Yt(t,e,r,n){var a,i,o,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),o=i[e]):(i=t._events=new zt,t._eventsCount=0),o){if("function"==typeof o?o=i[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(a=Nt(t))&&a>0&&o.length>a){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else o=i[e]=r,++t._eventsCount;return t}function Gt(t,e,r){var n=!1;function a(){t.removeListener(e,a),n||(n=!0,r.apply(t,arguments))}return a.listener=r,a}function Vt(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Kt(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}zt.prototype=Object.create(null),Ft.EventEmitter=Ft,Ft.usingDomains=!1,Ft.prototype.domain=void 0,Ft.prototype._events=void 0,Ft.prototype._maxListeners=void 0,Ft.defaultMaxListeners=10,Ft.init=function(){this.domain=null,Ft.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new zt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ft.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},Ft.prototype.getMaxListeners=function(){return Nt(this)},Ft.prototype.emit=function(t){var e,r,n,a,i,o,s,u="error"===t;if(o=this._events)u=u&&null==o.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(r=o[t]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:Ut(r,c,this);break;case 2:Ht(r,c,this,arguments[1]);break;case 3:Wt(r,c,this,arguments[1],arguments[2]);break;case 4:Zt(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(n-1),i=1;i<n;i++)a[i-1]=arguments[i];qt(r,c,this,a)}return!0},Ft.prototype.addListener=function(t,e){return Yt(this,t,e,!1)},Ft.prototype.on=Ft.prototype.addListener,Ft.prototype.prependListener=function(t,e){return Yt(this,t,e,!0)},Ft.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Gt(this,t,e)),this},Ft.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Gt(this,t,e)),this},Ft.prototype.removeListener=function(t,e){var r,n,a,i,o;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new zt:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(a=-1,i=r.length;i-- >0;)if(r[i]===e||r[i].listener&&r[i].listener===e){o=r[i].listener,a=i;break}if(a<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new zt,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,a=t.length;n<a;r+=1,n+=1)t[r]=t[n];t.pop()}(r,a);n.removeListener&&this.emit("removeListener",t,o||e)}return this},Ft.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new zt,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new zt:delete r[t]),this;if(0===arguments.length){for(var n,a=Object.keys(r),i=0;i<a.length;++i)"removeListener"!==(n=a[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new zt,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},Ft.prototype.listeners=function(t){var e,r,n=this._events;return r=n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[],r},Ft.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Vt.call(t,e)},Ft.prototype.listenerCount=Vt,Ft.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Xt=Object.freeze({__proto__:null,default:Ft,EventEmitter:Ft}),$t="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},Jt=/%[sdj%]/g;function Qt(t){if(!ge(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ae(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,a=n.length,i=String(t).replace(Jt,(function(t){if("%%"===t)return"%";if(r>=a)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),o=n[r];r<a;o=n[++r])he(o)||!ye(o)?i+=" "+o:i+=" "+ae(o);return i}function te(t,e){if(me(f.process))return function(){return te(t,e).apply(this,arguments)};if(!0===Dt.noDeprecation)return t;var r=!1;return function(){if(!r){if(Dt.throwDeprecation)throw new Error(e);Dt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ee,re={};function ne(t){if(me(ee)&&(ee=Dt.env.NODE_DEBUG||""),t=t.toUpperCase(),!re[t])if(new RegExp("\\b"+t+"\\b","i").test(ee)){re[t]=function(){var e=Qt.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else re[t]=function(){};return re[t]}function ae(t,e){var r={seen:[],stylize:oe};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fe(e)?r.showHidden=e:e&&Te(r,e),me(r.showHidden)&&(r.showHidden=!1),me(r.depth)&&(r.depth=2),me(r.colors)&&(r.colors=!1),me(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ie),se(r,t,r.depth)}function ie(t,e){var r=ae.styles[e];return r?"["+ae.colors[r][0]+"m"+t+"["+ae.colors[r][1]+"m":t}function oe(t,e){return t}function se(t,e,r){if(t.customInspect&&e&&ke(e.inspect)&&e.inspect!==ae&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return ge(n)||(n=se(t,n,r)),n}var a=function(t,e){if(me(e))return t.stylize("undefined","undefined");if(ge(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(pe(e))return t.stylize(""+e,"number");if(fe(e))return t.stylize(""+e,"boolean");if(he(e))return t.stylize("null","null")}(t,e);if(a)return a;var i=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(i);if(t.showHidden&&(i=Object.getOwnPropertyNames(e)),_e(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return ue(e);if(0===i.length){if(ke(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(ve(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(we(e))return t.stylize(Date.prototype.toString.call(e),"date");if(_e(e))return ue(e)}var u,l="",c=!1,f=["{","}"];(ce(e)&&(c=!0,f=["[","]"]),ke(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return ve(e)&&(l=" "+RegExp.prototype.toString.call(e)),we(e)&&(l=" "+Date.prototype.toUTCString.call(e)),_e(e)&&(l=" "+ue(e)),0!==i.length||c&&0!=e.length?r<0?ve(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=c?function(t,e,r,n,a){for(var i=[],o=0,s=e.length;o<s;++o)Pe(e,String(o))?i.push(le(t,e,r,n,String(o),!0)):i.push("");return a.forEach((function(a){a.match(/^\d+$/)||i.push(le(t,e,r,n,a,!0))})),i}(t,e,r,o,i):i.map((function(n){return le(t,e,r,o,n,c)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,l,f)):f[0]+l+f[1]}function ue(t){return"["+Error.prototype.toString.call(t)+"]"}function le(t,e,r,n,a,i){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,a)||{value:e[a]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Pe(n,a)||(o="["+a+"]"),s||(t.seen.indexOf(u.value)<0?(s=he(r)?se(t,u.value,null):se(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),me(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function ce(t){return Array.isArray(t)}function fe(t){return"boolean"==typeof t}function he(t){return null===t}function de(t){return null==t}function pe(t){return"number"==typeof t}function ge(t){return"string"==typeof t}function be(t){return"symbol"==typeof t}function me(t){return void 0===t}function ve(t){return ye(t)&&"[object RegExp]"===Ce(t)}function ye(t){return"object"==typeof t&&null!==t}function we(t){return ye(t)&&"[object Date]"===Ce(t)}function _e(t){return ye(t)&&("[object Error]"===Ce(t)||t instanceof Error)}function ke(t){return"function"==typeof t}function xe(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function Se(t){return ut(t)}function Ce(t){return Object.prototype.toString.call(t)}function Ae(t){return t<10?"0"+t.toString(10):t.toString(10)}ae.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ae.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Re(){var t=new Date,e=[Ae(t.getHours()),Ae(t.getMinutes()),Ae(t.getSeconds())].join(":");return[t.getDate(),Ee[t.getMonth()],e].join(" ")}function Oe(){console.log("%s - %s",Re(),Qt.apply(null,arguments))}function Te(t,e){if(!e||!ye(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Pe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Le={inherits:$t,_extend:Te,log:Oe,isBuffer:Se,isPrimitive:xe,isFunction:ke,isError:_e,isDate:we,isObject:ye,isRegExp:ve,isUndefined:me,isSymbol:be,isString:ge,isNumber:pe,isNullOrUndefined:de,isNull:he,isBoolean:fe,isArray:ce,inspect:ae,deprecate:te,format:Qt,debuglog:ne},Me=Object.freeze({__proto__:null,format:Qt,deprecate:te,debuglog:ne,inspect:ae,isArray:ce,isBoolean:fe,isNull:he,isNullOrUndefined:de,isNumber:pe,isString:ge,isSymbol:be,isUndefined:me,isRegExp:ve,isObject:ye,isDate:we,isError:_e,isFunction:ke,isPrimitive:xe,isBuffer:Se,log:Oe,inherits:$t,_extend:Te,default:Le});function Ie(){this.head=null,this.tail=null,this.length=0}Ie.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Ie.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Ie.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Ie.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ie.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},Ie.prototype.concat=function(t){if(0===this.length)return A.alloc(0);if(1===this.length)return this.head.data;for(var e=A.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var Be=A.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function De(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Be(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ze;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Fe;break;default:return void(this.write=je)}this.charBuffer=new A(6),this.charReceived=0,this.charLength=0}function je(t){return t.toString(this.encoding)}function ze(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Fe(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}De.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((a=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&a<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var a;n=(e+=t.toString(this.encoding,0,n)).length-1;if((a=e.charCodeAt(n))>=55296&&a<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),t.copy(this.charBuffer,0,0,i),e.substring(0,n)}return e},De.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},De.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,a=this.encoding;e+=n.slice(0,r).toString(a)}return e},He.ReadableState=Ue;var Ne=ne("stream");function Ue(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Ie,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new De(t.encoding),this.encoding=t.encoding)}function He(t){if(!(this instanceof He))return new He(t);this._readableState=new Ue(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),Ft.call(this)}function We(t,e,r,n,a){var i=function(t,e){var r=null;ut(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(i)t.emit("error",i);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,qe(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!a){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&a){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||a||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),a||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&qe(t))),function(t,e){e.readingMore||(e.readingMore=!0,xt(Ge,t,e))}(t,e)}else a||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}$t(He,Ft),He.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=A.from(t,e),e=""),We(this,r,t,e,!1)},He.prototype.unshift=function(t){return We(this,this._readableState,t,"",!0)},He.prototype.isPaused=function(){return!1===this._readableState.flowing},He.prototype.setEncoding=function(t){return this._readableState.decoder=new De(t),this._readableState.encoding=t,this};function Ze(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function qe(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Ne("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?xt(Ye,t):Ye(t))}function Ye(t){Ne("emit readable"),t.emit("readable"),Xe(t)}function Ge(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Ne("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Ve(t){Ne("readable nexttick read 0"),t.read(0)}function Ke(t,e){e.reading||(Ne("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Xe(t),e.flowing&&!e.reading&&t.read(0)}function Xe(t){var e=t._readableState;for(Ne("flow",e.flowing);e.flowing&&null!==t.read(););}function $e(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,a=r.data;t-=a.length;for(;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(o===i.length?a+=i:a+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(o));break}++n}return e.length-=n,a}(t,e):function(t,e){var r=A.allocUnsafe(t),n=e.head,a=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(r,r.length-t,0,o),0===(t-=o)){o===i.length?(++a,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(o));break}++a}return e.length-=a,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Je(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,xt(Qe,e,t))}function Qe(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function tr(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function er(){}function rr(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function nr(t,e){Object.defineProperty(this,"buffer",{get:te((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,a=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,a){--e.pendingcb,r?xt(a,n):a(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,a);else{var i=ur(r);i||r.corked||r.bufferProcessing||!r.bufferedRequest||sr(t,r),n?xt(or,t,r,i,a):or(t,r,i,a)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new fr(this)}function ar(t){if(!(this instanceof ar||this instanceof gr))return new ar(t);this._writableState=new nr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),Ft.call(this)}function ir(t,e,r,n,a,i,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(a,e.onwrite):t._write(a,i,e.onwrite),e.sync=!1}function or(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),cr(t,e)}function sr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,a=new Array(n),i=e.corkedRequestsFree;i.entry=r;for(var o=0;r;)a[o]=r,r=r.next,o+=1;ir(t,e,!0,e.length,a,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new fr(e)}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(ir(t,e,!1,e.objectMode?1:s.length,s,u,l),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function ur(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function lr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function cr(t,e){var r=ur(e);return r&&(0===e.pendingcb?(lr(t,e),e.finished=!0,t.emit("finish")):lr(t,e)),r}function fr(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}He.prototype.read=function(t){Ne("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Ne("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Je(this):qe(this),null;if(0===(t=Ze(t,e))&&e.ended)return 0===e.length&&Je(this),null;var n,a=e.needReadable;return Ne("need readable",a),(0===e.length||e.length-t<e.highWaterMark)&&Ne("length less than watermark",a=!0),e.ended||e.reading?Ne("reading or ended",a=!1):a&&(Ne("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ze(r,e))),null===(n=t>0?$e(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Je(this)),null!==n&&this.emit("data",n),n},He.prototype._read=function(t){this.emit("error",new Error("not implemented"))},He.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Ne("pipe count=%d opts=%j",n.pipesCount,e);var a=!e||!1!==e.end?o:l;function i(t){Ne("onunpipe"),t===r&&l()}function o(){Ne("onend"),t.end()}n.endEmitted?xt(a):r.once("end",a),t.on("unpipe",i);var s=function(t){return function(){var e=t._readableState;Ne("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Xe(t))}}(r);t.on("drain",s);var u=!1;function l(){Ne("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",h),t.removeListener("unpipe",i),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",f),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var c=!1;function f(e){Ne("ondata"),c=!1,!1!==t.write(e)||c||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==tr(n.pipes,t))&&!u&&(Ne("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,c=!0),r.pause())}function h(e){var r;Ne("onerror",e),g(),t.removeListener("error",h),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){Ne("onfinish"),t.removeListener("close",d),g()}function g(){Ne("unpipe"),r.unpipe(t)}return r.on("data",f),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(Ne("pipe resume"),r.resume()),t},He.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)r[a].emit("unpipe",this);return this}var i=tr(e.pipes,t);return-1===i||(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},He.prototype.on=function(t,e){var r=Ft.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&qe(this):xt(Ve,this))}return r},He.prototype.addListener=He.prototype.on,He.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ne("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,xt(Ke,t,e))}(this,t)),this},He.prototype.pause=function(){return Ne("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Ne("pause"),this._readableState.flowing=!1,this.emit("pause")),this},He.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var a in t.on("end",(function(){if(Ne("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(a){(Ne("wrapped data"),e.decoder&&(a=e.decoder.write(a)),e.objectMode&&null==a)||(e.objectMode||a&&a.length)&&(n.push(a)||(r=!0,t.pause()))})),t)void 0===this[a]&&"function"==typeof t[a]&&(this[a]=function(e){return function(){return t[e].apply(t,arguments)}}(a));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){Ne("wrapped _read",e),r&&(r=!1,t.resume())},n},He._fromList=$e,ar.WritableState=nr,$t(ar,Ft),nr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},ar.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ar.prototype.write=function(t,e,r){var n=this._writableState,a=!1;return"function"==typeof e&&(r=e,e=null),A.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=er),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),xt(e,r)}(this,r):function(t,e,r,n){var a=!0,i=!1;return null===r?i=new TypeError("May not write null values to stream"):A.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(t.emit("error",i),xt(n,i),a=!1),a}(this,n,t,r)&&(n.pendingcb++,a=function(t,e,r,n,a){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=A.from(e,r));return e}(e,r,n),A.isBuffer(r)&&(n="buffer");var i=e.objectMode?1:r.length;e.length+=i;var o=e.length<e.highWaterMark;o||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new rr(r,n,a),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ir(t,e,!1,i,r,n,a);return o}(this,n,t,e,r)),a},ar.prototype.cork=function(){this._writableState.corked++},ar.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||sr(this,t))},ar.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},ar.prototype._write=function(t,e,r){r(new Error("not implemented"))},ar.prototype._writev=null,ar.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,cr(t,e),r&&(e.finished?xt(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},$t(gr,He);for(var hr=Object.keys(ar.prototype),dr=0;dr<hr.length;dr++){var pr=hr[dr];gr.prototype[pr]||(gr.prototype[pr]=ar.prototype[pr])}function gr(t){if(!(this instanceof gr))return new gr(t);He.call(this,t),ar.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",br)}function br(){this.allowHalfOpen||this._writableState.ended||xt(mr,this)}function mr(t){t.end()}function vr(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var a=n.writecb;if(!a)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);a(e);var i=t._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&t._read(i.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function yr(t){if(!(this instanceof yr))return new yr(t);gr.call(this,t),this._transformState=new vr(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){wr(e,t)})):wr(e)}))}function wr(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function _r(t){if(!(this instanceof _r))return new _r(t);yr.call(this,t)}function kr(){Ft.call(this)}$t(yr,gr),yr.prototype.push=function(t,e){return this._transformState.needTransform=!1,gr.prototype.push.call(this,t,e)},yr.prototype._transform=function(t,e,r){throw new Error("Not implemented")},yr.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},yr.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},$t(_r,yr),_r.prototype._transform=function(t,e,r){r(null,t)},$t(kr,Ft),kr.Readable=He,kr.Writable=ar,kr.Duplex=gr,kr.Transform=yr,kr.PassThrough=_r,kr.Stream=kr,kr.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var i=!1;function o(){i||(i=!0,t.end())}function s(){i||(i=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===Ft.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};var xr,Sr,Cr,Ar=a(Object.freeze({__proto__:null,default:kr,Readable:He,Writable:ar,Duplex:gr,Transform:yr,PassThrough:_r,Stream:kr})),Er={exports:{}};function Rr(){if(xr)return Er.exports;return xr=1,void 0===Dt||!Dt.version||0===Dt.version.indexOf("v0.")||0===Dt.version.indexOf("v1.")&&0!==Dt.version.indexOf("v1.8.")?Er.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return xt(t);case 2:return xt((function(){t.call(null,e)}));case 3:return xt((function(){t.call(null,e,r)}));case 4:return xt((function(){t.call(null,e,r,n)}));default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return xt((function(){t.apply(null,a)}))}}}:Er.exports=Dt,Er.exports}var Or,Tr=a(Xt),Pr={exports:{}};function Lr(){return Or?Pr.exports:(Or=1,Pr.exports=Ar)}var Mr,Ir={exports:{}},Br=a(ct);function Dr(){return Mr||(Mr=1,function(t,e){var r=Br,n=r.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function i(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=i),a(n,i),i.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},i.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var a=n(t);return void 0!==e?"string"==typeof r?a.fill(e,r):a.fill(e):a.fill(0),a},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}(Ir,Ir.exports)),Ir.exports}var jr,zr={};function Fr(){if(jr)return zr;function t(t){return Object.prototype.toString.call(t)}return jr=1,zr.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},zr.isBoolean=function(t){return"boolean"==typeof t},zr.isNull=function(t){return null===t},zr.isNullOrUndefined=function(t){return null==t},zr.isNumber=function(t){return"number"==typeof t},zr.isString=function(t){return"string"==typeof t},zr.isSymbol=function(t){return"symbol"==typeof t},zr.isUndefined=function(t){return void 0===t},zr.isRegExp=function(e){return"[object RegExp]"===t(e)},zr.isObject=function(t){return"object"==typeof t&&null!==t},zr.isDate=function(e){return"[object Date]"===t(e)},zr.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},zr.isFunction=function(t){return"function"==typeof t},zr.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},zr.isBuffer=Br.Buffer.isBuffer,zr}var Nr,Ur,Hr={exports:{}},Wr=a(Me),Zr={exports:{}};function qr(){return Ur||(Ur=1,function(t){try{var e=Wr;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=(Nr||(Nr=1,"function"==typeof Object.create?Zr.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Zr.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Zr.exports)}}(Hr)),Hr.exports}var Yr,Gr,Vr,Kr,Xr,$r,Jr,Qr,tn,en={exports:{}};function rn(){return Yr||(Yr=1,function(t){var e=Dr().Buffer,r=Wr;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var r,n,a,i=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=i,a=s,r.copy(n,a),s+=o.data.length,o=o.next;return i},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})}(en)),en.exports}function nn(){if(Vr)return Gr;Vr=1;var t=Rr();function e(t,e){t.emit("error",e)}return Gr={destroy:function(r,n){var a=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(n?n(r):!r||this._writableState&&this._writableState.errorEmitted||t.nextTick(e,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(r){!n&&r?(t.nextTick(e,a,r),a._writableState&&(a._writableState.errorEmitted=!0)):n&&n(r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},Gr}function an(){if(Jr)return $r;Jr=1;var t=Rr();function e(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var a=n.callback;e.pendingcb--,a(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}$r=p;var r,a=t.nextTick;p.WritableState=d;var i=Object.create(Fr());i.inherits=qr();var o={deprecate:Xr?Kr:(Xr=1,Kr=Wr.deprecate)},s=Lr(),u=Dr().Buffer,l=n.Uint8Array||function(){};var c,f=nn();function h(){}function d(n,i){r=r||on(),n=n||{};var o=i instanceof r;this.objectMode=!!n.objectMode,o&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var s=n.highWaterMark,u=n.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:o&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===n.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),r)!function(e,r,n,a,i){--r.pendingcb,n?(t.nextTick(i,a),t.nextTick(w,e,r),e._writableState.errorEmitted=!0,e.emit("error",a)):(i(a),e._writableState.errorEmitted=!0,e.emit("error",a),w(e,r))}(e,n,i,r,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||m(e,n),i?a(b,e,n,s,o):b(e,n,s,o)}}(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function p(t){if(r=r||on(),!(c.call(p,this)||this instanceof r))return new p(t);this._writableState=new d(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function g(t,e,r,n,a,i,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(a,e.onwrite):t._write(a,i,e.onwrite),e.sync=!1}function b(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),w(t,e)}function m(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var a=r.bufferedRequestCount,i=new Array(a),o=r.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,g(t,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(g(t,r,!1,r.objectMode?1:l.length,l,c,f),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function y(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),w(t,e)}))}function w(e,r){var n=v(r);return n&&(!function(e,r){r.prefinished||r.finalCalled||("function"==typeof e._final?(r.pendingcb++,r.finalCalled=!0,t.nextTick(y,e,r)):(r.prefinished=!0,e.emit("prefinish")))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"))),n}return i.inherits(p,s),d.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(d.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===p&&(t&&t._writableState instanceof d)}})):c=function(t){return t instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(e,r,n){var a,i=this._writableState,o=!1,s=!i.objectMode&&(a=e,u.isBuffer(a)||a instanceof l);return s&&!u.isBuffer(e)&&(e=function(t){return u.from(t)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=h),i.ended?function(e,r){var n=new Error("write after end");e.emit("error",n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,a){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),t.nextTick(a,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(t,e,r,n,a,i){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r));return e}(e,n,a);n!==o&&(r=!0,a="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,a,i);return l}(this,i,s,e,r,n)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||m(this,t))},p.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(e,r,n){var a=this._writableState;"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),a.corked&&(a.corked=1,this.uncork()),a.ending||a.finished||function(e,r,n){r.ending=!0,w(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n));r.ended=!0,e.writable=!1}(this,a,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),p.prototype.destroy=f.destroy,p.prototype._undestroy=f.undestroy,p.prototype._destroy=function(t,e){this.end(),e(t)},$r}function on(){if(tn)return Qr;tn=1;var t=Rr(),e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Qr=u;var r=Object.create(Fr());r.inherits=qr();var n=mn(),a=an();r.inherits(u,n);for(var i=e(a.prototype),o=0;o<i.length;o++){var s=i[o];u.prototype[s]||(u.prototype[s]=a.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||t.nextTick(c,this)}function c(t){t.end()}return Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(e,r){this.push(null),this.end(),t.nextTick(r,e)},Qr}var sn,un,ln,cn,fn,hn,dn,pn,gn={};function bn(){if(sn)return gn;sn=1;var t=Dr().Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(r){var n;switch(this.encoding=function(r){var n=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(r);if("string"!=typeof n&&(t.isEncoding===e||!e(r)))throw new Error("Unknown encoding: "+r);return n||r}(r),this.encoding){case"utf16le":this.text=i,this.end=o,n=4;break;case"utf8":this.fillLast=a,n=4;break;case"base64":this.text=s,this.end=u,n=3;break;default:return this.write=l,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function n(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function i(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function o(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function s(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}return gn.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},r.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},r.prototype.text=function(t,e){var r=function(t,e,r){var a=e.length-1;if(a<r)return 0;var i=n(e[a]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--a<r||-2===i)return 0;if((i=n(e[a]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--a<r||-2===i)return 0;if((i=n(e[a]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var a=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,a),t.toString("utf8",e,a)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},gn}function mn(){if(ln)return un;ln=1;var t=Rr();un=b;var e,r=function(){if(Cr)return Sr;Cr=1;var t={}.toString;return Sr=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();b.ReadableState=g,Tr.EventEmitter;var a=function(t,e){return t.listeners(e).length},i=Lr(),o=Dr().Buffer,s=n.Uint8Array||function(){};var u=Object.create(Fr());u.inherits=qr();var l=Wr,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h=rn(),d=nn();u.inherits(b,i);var p=["error","close","destroy","pause","resume"];function g(t,r){t=t||{};var n=r instanceof(e=e||on());this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=bn().StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function b(t){if(e=e||on(),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function m(t,e,r,n,a){var i,u=t._readableState;null===e?(u.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,_(t)}(t,u)):(a||(i=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof s||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,e)),i?t.emit("error",i):u.objectMode||e&&e.length>0?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?v(t,u,e,!1):x(t,u)):v(t,u,e,!1))):n||(u.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(u)}function v(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&_(t)),x(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=o.from(t,e),e=""),r=!0),m(this,t,e,!1,r)},b.prototype.unshift=function(t){return m(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return f||(f=bn().StringDecoder),this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var y=8388608;function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=y?t=y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function _(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(c("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?t.nextTick(k,e):k(e))}function k(t){c("emit readable"),t.emit("readable"),E(t)}function x(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(S,e,r))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(c("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){c("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(c("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function R(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,a=r.data;t-=a.length;for(;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(o===i.length?a+=i:a+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(o));break}++n}return e.length-=n,a}(t,e):function(t,e){var r=o.allocUnsafe(t),n=e.head,a=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var i=n.data,s=t>i.length?i.length:t;if(i.copy(r,r.length-t,0,s),0===(t-=s)){s===i.length?(++a,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(s));break}++a}return e.length-=a,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,t.nextTick(T,r,e))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}return b.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):_(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,a=e.needReadable;return c("need readable",a),(0===e.length||e.length-t<e.highWaterMark)&&c("length less than watermark",a=!0),e.ended||e.reading?c("reading or ended",a=!1):a&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(r,e))),null===(n=t>0?R(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,n){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,n);var s=(!n||!1!==n.end)&&e!==Dt.stdout&&e!==Dt.stderr?l:v;function u(t,r){c("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",u),i.removeListener("end",l),i.removeListener("end",v),i.removeListener("data",p),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){c("onend"),e.end()}o.endEmitted?t.nextTick(s):i.once("end",s),e.on("unpipe",u);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,E(t))}}(i);e.on("drain",f);var h=!1;var d=!1;function p(t){c("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==P(o.pipes,e))&&!h&&(c("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,d=!0),i.pause())}function g(t){c("onerror",t),v(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),v()}function m(){c("onfinish"),e.removeListener("close",b),v()}function v(){c("unpipe"),i.unpipe(e)}return i.on("data",p),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?r(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(e,"error",g),e.once("close",b),e.once("finish",m),e.emit("pipe",i),o.flowing||(c("pipe resume"),i.resume()),e},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,r);return this}var o=P(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},b.prototype.on=function(e,r){var n=i.prototype.on.call(this,e,r);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var a=this._readableState;a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&_(this):t.nextTick(C,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!0,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(A,e,r))}(this,e)),this},b.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var a in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(e.push(a)||(n=!0,t.pause()))})),t)void 0===this[a]&&"function"==typeof t[a]&&(this[a]=function(e){return function(){return t[e].apply(t,arguments)}}(a));for(var i=0;i<p.length;i++)t.on(p[i],this.emit.bind(this,p[i]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=R,un}function vn(){if(fn)return cn;fn=1,cn=n;var t=on(),e=Object.create(Fr());function r(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);t.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){i(t,e,r)})):i(this,null,null)}function i(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}return e.inherits=qr(),e.inherits(n,t),n.prototype.push=function(e,r){return this._transformState.needTransform=!1,t.prototype.push.call(this,e,r)},n.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},n.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(e,r){var n=this;t.prototype._destroy.call(this,e,(function(t){r(t),n.emit("close")}))},cn}function yn(){return pn||(pn=1,function(t,e){var r=Ar;"disable"===Dt.env.READABLE_STREAM&&r?(t.exports=r,(e=t.exports=r.Readable).Readable=r.Readable,e.Writable=r.Writable,e.Duplex=r.Duplex,e.Transform=r.Transform,e.PassThrough=r.PassThrough,e.Stream=r):((e=t.exports=mn()).Stream=r||e,e.Readable=e,e.Writable=an(),e.Duplex=on(),e.Transform=vn(),e.PassThrough=function(){if(dn)return hn;dn=1,hn=r;var t=vn(),e=Object.create(Fr());function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}return e.inherits=qr(),e.inherits(r,t),r.prototype._transform=function(t,e,r){r(null,t)},hn}())}(jt,jt.exports)),jt.exports}if(ft.base64=!0,ft.array=!0,ft.string=!0,ft.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,ft.nodebuffer=!0,ft.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)ft.blob=!1;else{var wn=new ArrayBuffer(0);try{ft.blob=0===new Blob([wn],{type:"application/zip"}).size}catch(t){try{var _n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);_n.append(wn),ft.blob=0===_n.getBlob("application/zip").size}catch(t){ft.blob=!1}}}try{ft.nodestream=!!yn().Readable}catch(t){ft.nodestream=!1}var kn,xn={};function Sn(){if(kn)return xn;kn=1;var t=Mn(),e=ft,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return xn.encode=function(e){for(var n,a,i,o,s,u,l,c=[],f=0,h=e.length,d=h,p="string"!==t.getTypeOf(e);f<e.length;)d=h-f,p?(n=e[f++],a=f<h?e[f++]:0,i=f<h?e[f++]:0):(n=e.charCodeAt(f++),a=f<h?e.charCodeAt(f++):0,i=f<h?e.charCodeAt(f++):0),o=n>>2,s=(3&n)<<4|a>>4,u=d>1?(15&a)<<2|i>>6:64,l=d>2?63&i:64,c.push(r.charAt(o)+r.charAt(s)+r.charAt(u)+r.charAt(l));return c.join("")},xn.decode=function(t){var n,a,i,o,s,u,l=0,c=0,f="data:";if(t.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var h,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&d--,t.charAt(t.length-2)===r.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=e.uint8array?new Uint8Array(0|d):new Array(0|d);l<t.length;)n=r.indexOf(t.charAt(l++))<<2|(o=r.indexOf(t.charAt(l++)))>>4,a=(15&o)<<4|(s=r.indexOf(t.charAt(l++)))>>2,i=(3&s)<<6|(u=r.indexOf(t.charAt(l++))),h[c++]=n,64!==s&&(h[c++]=a),64!==u&&(h[c++]=i);return h},xn}var Cn,An,En,Rn,On={isNode:!0,newBufferFrom:function(t,e){if(A.from&&A.from!==Uint8Array.from)return A.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new A(t,e)},allocBuffer:function(t){if(A.alloc)return A.alloc(t);var e=new A(t);return e.fill(0),e},isBuffer:function(t){return ut(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};var Tn=null;Tn="undefined"!=typeof Promise?Promise:function(){if(Rn)return En;Rn=1;var t=function(){if(An)return Cn;An=1;var t,e,r=n.MutationObserver||n.WebKitMutationObserver;if(r){var a=0,i=new r(l),o=n.document.createTextNode("");i.observe(o,{characterData:!0}),t=function(){o.data=a=++a%2}}else if(n.setImmediate||void 0===n.MessageChannel)t="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var s=new n.MessageChannel;s.port1.onmessage=l,t=function(){s.port2.postMessage(0)}}var u=[];function l(){var t,r;e=!0;for(var n=u.length;n;){for(r=u,u=[],t=-1;++t<n;)r[t]();n=u.length}e=!1}return Cn=function(r){1!==u.push(r)||e||t()}}();function e(){}var r={},a=["REJECTED"],i=["FULFILLED"],o=["PENDING"];function s(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=o,this.queue=[],this.outcome=void 0,t!==e&&f(this,t)}function u(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function l(e,n,a){t((function(){var t;try{t=n(a)}catch(t){return r.reject(e,t)}t===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,t)}))}function c(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function a(e){n||(n=!0,r.reject(t,e))}function i(e){n||(n=!0,r.resolve(t,e))}var o=h((function(){e(i,a)}));"error"===o.status&&a(o.value)}function h(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}return En=s,s.prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},s.prototype.catch=function(t){return this.then(null,t)},s.prototype.then=function(t,r){if("function"!=typeof t&&this.state===i||"function"!=typeof r&&this.state===a)return this;var n=new this.constructor(e);return this.state!==o?l(n,this.state===i?t:r,this.outcome):this.queue.push(new u(n,t,r)),n},u.prototype.callFulfilled=function(t){r.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){l(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){r.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){l(this.promise,this.onRejected,t)},r.resolve=function(t,e){var n=h(c,e);if("error"===n.status)return r.reject(t,n.value);var a=n.value;if(a)f(t,a);else{t.state=i,t.outcome=e;for(var o=-1,s=t.queue.length;++o<s;)t.queue[o].callFulfilled(e)}return t},r.reject=function(t,e){t.state=a,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},s.resolve=function(t){return t instanceof this?t:r.resolve(new this(e),t)},s.reject=function(t){var n=new this(e);return r.reject(n,t)},s.all=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,i=!1;if(!a)return this.resolve([]);for(var o=new Array(a),s=0,u=-1,l=new this(e);++u<a;)c(t[u],u);return l;function c(t,e){n.resolve(t).then((function(t){o[e]=t,++s!==a||i||(i=!0,r.resolve(l,o))}),(function(t){i||(i=!0,r.reject(l,t))}))}},s.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,i=!1;if(!a)return this.resolve([]);for(var o,s=-1,u=new this(e);++s<a;)o=t[s],n.resolve(o).then((function(t){i||(i=!0,r.resolve(u,t))}),(function(t){i||(i=!0,r.reject(u,t))}));return u},En}();var Pn,Ln={Promise:Tn};function Mn(){return Pn||(Pn=1,function(t){var e=ft,r=Sn(),n=On,a=Ln;function i(t){return t}function o(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(t,e,r){var n=[],a=0,i=t.length;if(i<=r)return String.fromCharCode.apply(null,t);for(;a<i;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(a,Math.min(a+r,i)))):n.push(String.fromCharCode.apply(null,t.subarray(a,Math.min(a+r,i)))),a+=r;return n.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return e.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(t){return!1}}()}};function u(e){var r=65536,n=t.getTypeOf(e),a=!0;if("uint8array"===n?a=s.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=s.applyCanBeUsed.nodebuffer),a)for(;r>1;)try{return s.stringifyByChunk(e,n,r)}catch(t){r=Math.floor(r/2)}return s.stringifyByChar(e)}function l(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}t.applyFromCharCode=u;var c={};c.string={string:i,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return c.string.uint8array(t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,n.allocBuffer(t.length))}},c.array={string:u,array:i,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(t)}},c.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:i,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(new Uint8Array(t))}},c.uint8array={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:i,nodebuffer:function(t){return n.newBufferFrom(t)}},c.nodebuffer={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return c.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:i},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return c[n][e](r)},t.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var a=e[n];"."===a||""===a&&0!==n&&n!==e.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},t.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":e.nodebuffer&&n.isBuffer(t)?"nodebuffer":e.uint8array&&t instanceof Uint8Array?"uint8array":e.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(t){if(!e[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},t.delay=function(t,e,r){setImmediate((function(){t.apply(r||null,e||[])}))},t.inherits=function(t,e){var r=function(){};r.prototype=e.prototype,t.prototype=new r},t.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},t.prepareContent=function(n,i,s,u,l){return a.Promise.resolve(i).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(i){var c,f=t.getTypeOf(i);return f?("arraybuffer"===f?i=t.transformTo("uint8array",i):"string"===f&&(l?i=r.decode(i):s&&!0!==u&&(i=o(c=i,e.uint8array?new Uint8Array(c.length):new Array(c.length)))),i):a.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(c)),c}function In(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}!function(t,e){if(!t.setImmediate){var r,n,a,i,o,s=1,u={},l=!1,c=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){xt((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){a.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,r=function(t){var e=c.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(i="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&d(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(i+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return u[s]=a,r(s),s++},f.clearImmediate=h}function h(t){delete u[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{h(t),l=!1}}}}}("undefined"==typeof self?n:self),In.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}};var Bn=In;!function(t){for(var e=Mn(),r=ft,n=On,a=Bn,i=new Array(256),o=0;o<256;o++)i[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;i[254]=i[254]=1;function s(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}t.utf8encode=function(t){return r.nodebuffer?n.newBufferFrom(t,"utf-8"):function(t){var e,n,a,i,o,s=t.length,u=0;for(i=0;i<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(a-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),o=0,i=0;o<u;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(a-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}(t)},t.utf8decode=function(t){return r.nodebuffer?e.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,n,a,o,s=t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((a=t[r++])<128)u[n++]=a;else if((o=i[a])>4)u[n++]=65533,r+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&r<s;)a=a<<6|63&t[r++],o--;o>1?u[n++]=65533:a<65536?u[n++]=a:(a-=65536,u[n++]=55296|a>>10&1023,u[n++]=56320|1023&a)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),e.applyFromCharCode(u)}(t=e.transformTo(r.uint8array?"uint8array":"array",t))},e.inherits(s,a),s.prototype.processChunk=function(n){var a=e.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=a;(a=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),a.set(o,this.leftOver.length)}else a=this.leftOver.concat(a);this.leftOver=null}var s=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+i[t[r]]>e?r:e}(a),u=a;s!==a.length&&(r.uint8array?(u=a.subarray(0,s),this.leftOver=a.subarray(s,a.length)):(u=a.slice(0,s),this.leftOver=a.slice(s,a.length))),this.push({data:t.utf8decode(u),meta:n.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=s,e.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u}(l);var Dn=Bn,jn=Mn();function zn(t){Dn.call(this,"ConvertWorker to "+t),this.destType=t}jn.inherits(zn,Dn),zn.prototype.processChunk=function(t){this.push({data:jn.transformTo(this.destType,t.data),meta:t.meta})};var Fn,Nn,Un=zn;var Hn=Mn(),Wn=Un,Zn=Bn,qn=Sn(),Yn=Ln,Gn=null;if(ft.nodestream)try{Gn=function(){if(Nn)return Fn;Nn=1;var t=yn().Readable;function e(e,r,n){t.call(this,r),this._helper=e;var a=this;e.on("data",(function(t,e){a.push(t)||a._helper.pause(),n&&n(e)})).on("error",(function(t){a.emit("error",t)})).on("end",(function(){a.push(null)}))}return Mn().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Fn=e}()}catch(t){}function Vn(t,e){return new Yn.Promise((function(r,n){var a=[],i=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",(function(t,r){a.push(t),e&&e(r)})).on("error",(function(t){a=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return Hn.newBlob(Hn.transformTo("arraybuffer",e),r);case"base64":return qn.encode(e);default:return Hn.transformTo(t,e)}}(o,function(t,e){var r,n=0,a=null,i=0;for(r=0;r<e.length;r++)i+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(a=new Uint8Array(i),r=0;r<e.length;r++)a.set(e[r],n),n+=e[r].length;return a;case"nodebuffer":return A.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(i,a),s);r(t)}catch(t){n(t)}a=[]})).resume()}))}function Kn(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,Hn.checkSupport(n),this._worker=t.pipe(new Wn(n)),t.lock()}catch(t){this._worker=new Zn("error"),this._worker.error(t)}}Kn.prototype={accumulate:function(t){return Vn(this,t)},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){Hn.delay(e,arguments,r)})),this},resume:function(){return Hn.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(Hn.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Gn(this,{objectMode:"nodebuffer"!==this._outputType},t)}};var Xn=Kn,$n={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},Jn=Mn(),Qn=Bn;function ta(t){Qn.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=Jn.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}Jn.inherits(ta,Qn),ta.prototype.cleanUp=function(){Qn.prototype.cleanUp.call(this),this.data=null},ta.prototype.resume=function(){return!!Qn.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Jn.delay(this._tickAndRepeat,[],this)),!0)},ta.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Jn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ta.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};var ea=ta,ra=Mn();var na=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var aa=function(t,e){return void 0!==t&&t.length?"string"!==ra.getTypeOf(t)?function(t,e,r,n){var a=na,i=n+r;t^=-1;for(var o=n;o<i;o++)t=t>>>8^a[255&(t^e[o])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var a=na,i=n+r;t^=-1;for(var o=n;o<i;o++)t=t>>>8^a[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length,0):0},ia=Bn,oa=aa;function sa(){ia.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Mn().inherits(sa,ia),sa.prototype.processChunk=function(t){this.streamInfo.crc32=oa(t.data,this.streamInfo.crc32||0),this.push(t)};var ua=sa,la=Mn(),ca=Bn;function fa(t){ca.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}la.inherits(fa,ca),fa.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}ca.prototype.processChunk.call(this,t)};var ha=Ln,da=ea,pa=ua,ga=fa;function ba(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}ba.prototype={getContentWorker:function(){var t=new da(ha.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new ga("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new da(ha.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},ba.createWorkerFrom=function(t,e,r){return t.pipe(new pa).pipe(new ga("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new ga("compressedSize")).withStreamInfo("compression",e)};var ma=ba,va=Xn,ya=ea,wa=l,_a=ma,ka=Bn,xa=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};xa.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(e=e.pipe(new wa.Utf8EncodeWorker)),!a&&n&&(e=e.pipe(new wa.Utf8DecodeWorker))}catch(t){(e=new ka("error")).error(t)}return new va(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof _a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new wa.Utf8EncodeWorker)),_a.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof _a?this._data.getContentWorker():this._data instanceof ka?this._data:new ya(this._data)}};for(var Sa=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ca=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Aa=0;Aa<Sa.length;Aa++)xa.prototype[Sa[Aa]]=Ca;var Ea=xa,Ra={},Oa={},Ta={},Pa={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var a in n)r(n,a)&&(t[a]=n[a])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,a){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),a);else for(var i=0;i<n;i++)t[a+i]=e[r+i]},flattenChunks:function(t){var e,r,n,a,i,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),a=0,e=0,r=t.length;e<r;e++)i=t[e],o.set(i,a),a+=i.length;return o}},a={arraySet:function(t,e,r,n,a){for(var i=0;i<n;i++)t[a+i]=e[r+i]},flattenChunks:function(t){return[].concat.apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(e)}(Pa);var La={},Ma={},Ia={},Ba=Pa;function Da(t){for(var e=t.length;--e>=0;)t[e]=0}var ja=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],za=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Fa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Na=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ua=new Array(576);Da(Ua);var Ha=new Array(60);Da(Ha);var Wa=new Array(512);Da(Wa);var Za=new Array(256);Da(Za);var qa=new Array(29);Da(qa);var Ya,Ga,Va,Ka=new Array(30);function Xa(t,e,r,n,a){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=t&&t.length}function $a(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Ja(t){return t<256?Wa[t]:Wa[256+(t>>>7)]}function Qa(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function ti(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,Qa(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function ei(t,e,r){ti(t,r[2*e],r[2*e+1])}function ri(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function ni(t,e,r){var n,a,i=new Array(16),o=0;for(n=1;n<=15;n++)i[n]=o=o+r[n-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];0!==s&&(t[2*a]=ri(i[s]++,s))}}function ai(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function ii(t){t.bi_valid>8?Qa(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function oi(t,e,r,n){var a=2*e,i=2*r;return t[a]<t[i]||t[a]===t[i]&&n[e]<=n[r]}function si(t,e,r){for(var n=t.heap[r],a=r<<1;a<=t.heap_len&&(a<t.heap_len&&oi(e,t.heap[a+1],t.heap[a],t.depth)&&a++,!oi(e,n,t.heap[a],t.depth));)t.heap[r]=t.heap[a],r=a,a<<=1;t.heap[r]=n}function ui(t,e,r){var n,a,i,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],a=t.pending_buf[t.l_buf+s],s++,0===n?ei(t,a,e):(ei(t,(i=Za[a])+256+1,e),0!==(o=ja[i])&&ti(t,a-=qa[i],o),ei(t,i=Ja(--n),r),0!==(o=za[i])&&ti(t,n-=Ka[i],o))}while(s<t.last_lit);ei(t,256,e)}function li(t,e){var r,n,a,i=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==i[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):i[2*r+1]=0;for(;t.heap_len<2;)i[2*(a=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[a]=0,t.opt_len--,s&&(t.static_len-=o[2*a+1]);for(e.max_code=l,r=t.heap_len>>1;r>=1;r--)si(t,i,r);a=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],si(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,i[2*a]=i[2*r]+i[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,i[2*r+1]=i[2*n+1]=a,t.heap[1]=a++,si(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,a,i,o,s,u=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(i=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(i=p,g++),u[2*n+1]=i,n>l||(t.bl_count[i]++,o=0,n>=d&&(o=h[n-d]),s=u[2*n],t.opt_len+=s*(i+o),f&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(a=t.heap[--r])>l||(u[2*a+1]!==i&&(t.opt_len+=(i-u[2*a+1])*u[2*a],u[2*a+1]=i),n--)}}(t,e),ni(i,l,t.bl_count)}function ci(t,e,r){var n,a,i=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=e[2*(n+1)+1],++s<u&&a===o||(s<l?t.bl_tree[2*a]+=s:0!==a?(a!==i&&t.bl_tree[2*a]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,i=a,0===o?(u=138,l=3):a===o?(u=6,l=3):(u=7,l=4))}function fi(t,e,r){var n,a,i=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(a=o,o=e[2*(n+1)+1],!(++s<u&&a===o)){if(s<l)do{ei(t,a,t.bl_tree)}while(0!=--s);else 0!==a?(a!==i&&(ei(t,a,t.bl_tree),s--),ei(t,16,t.bl_tree),ti(t,s-3,2)):s<=10?(ei(t,17,t.bl_tree),ti(t,s-3,3)):(ei(t,18,t.bl_tree),ti(t,s-11,7));s=0,i=a,0===o?(u=138,l=3):a===o?(u=6,l=3):(u=7,l=4)}}Da(Ka);var hi=!1;function di(t,e,r,n){ti(t,0+(n?1:0),3),function(t,e,r,n){ii(t),n&&(Qa(t,r),Qa(t,~r)),Ba.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}Ia._tr_init=function(t){hi||(!function(){var t,e,r,n,a,i=new Array(16);for(r=0,n=0;n<28;n++)for(qa[n]=r,t=0;t<1<<ja[n];t++)Za[r++]=n;for(Za[r-1]=n,a=0,n=0;n<16;n++)for(Ka[n]=a,t=0;t<1<<za[n];t++)Wa[a++]=n;for(a>>=7;n<30;n++)for(Ka[n]=a<<7,t=0;t<1<<za[n]-7;t++)Wa[256+a++]=n;for(e=0;e<=15;e++)i[e]=0;for(t=0;t<=143;)Ua[2*t+1]=8,t++,i[8]++;for(;t<=255;)Ua[2*t+1]=9,t++,i[9]++;for(;t<=279;)Ua[2*t+1]=7,t++,i[7]++;for(;t<=287;)Ua[2*t+1]=8,t++,i[8]++;for(ni(Ua,287,i),t=0;t<30;t++)Ha[2*t+1]=5,Ha[2*t]=ri(t,5);Ya=new Xa(Ua,ja,257,286,15),Ga=new Xa(Ha,za,0,30,15),Va=new Xa(new Array(0),Fa,0,19,7)}(),hi=!0),t.l_desc=new $a(t.dyn_ltree,Ya),t.d_desc=new $a(t.dyn_dtree,Ga),t.bl_desc=new $a(t.bl_tree,Va),t.bi_buf=0,t.bi_valid=0,ai(t)},Ia._tr_stored_block=di,Ia._tr_flush_block=function(t,e,r,n){var a,i,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),li(t,t.l_desc),li(t,t.d_desc),o=function(t){var e;for(ci(t,t.dyn_ltree,t.l_desc.max_code),ci(t,t.dyn_dtree,t.d_desc.max_code),li(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Na[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=a&&(a=i)):a=i=r+5,r+4<=a&&-1!==e?di(t,e,r,n):4===t.strategy||i===a?(ti(t,2+(n?1:0),3),ui(t,Ua,Ha)):(ti(t,4+(n?1:0),3),function(t,e,r,n){var a;for(ti(t,e-257,5),ti(t,r-1,5),ti(t,n-4,4),a=0;a<n;a++)ti(t,t.bl_tree[2*Na[a]+1],3);fi(t,t.dyn_ltree,e-1),fi(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),ui(t,t.dyn_ltree,t.dyn_dtree)),ai(t),n&&ii(t)},Ia._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(Za[r]+256+1)]++,t.dyn_dtree[2*Ja(e)]++),t.last_lit===t.lit_bufsize-1},Ia._tr_align=function(t){ti(t,2,3),ei(t,256,Ua),function(t){16===t.bi_valid?(Qa(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var pi=function(t,e,r,n){for(var a=65535&t|0,i=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{i=i+(a=a+e[n++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0};var gi=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var bi,mi=function(t,e,r,n){var a=gi,i=n+r;t^=-1;for(var o=n;o<i;o++)t=t>>>8^a[255&(t^e[o])];return-1^t},vi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},yi=Pa,wi=Ia,_i=pi,ki=mi,xi=vi;function Si(t,e){return t.msg=xi[e],e}function Ci(t){return(t<<1)-(t>4?9:0)}function Ai(t){for(var e=t.length;--e>=0;)t[e]=0}function Ei(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(yi.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function Ri(t,e){wi._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ei(t.strm)}function Oi(t,e){t.pending_buf[t.pending++]=e}function Ti(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Pi(t,e){var r,n,a=t.max_chain_length,i=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,l=t.window,c=t.w_mask,f=t.prev,h=t.strstart+258,d=l[i+o-1],p=l[i+o];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[i]&&l[++r]===l[i+1]){i+=2,r++;do{}while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<h);if(n=258-(h-i),i=h-258,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[i+o-1],p=l[i+o]}}}while((e=f[e&c])>u&&0!=--a);return o<=t.lookahead?o:t.lookahead}function Li(t){var e,r,n,a,i,o,s,u,l,c,f=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-262)){yi.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=f?n-f:0}while(--r);e=r=f;do{n=t.prev[--e],t.prev[e]=n>=f?n-f:0}while(--r);a+=f}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,u=t.strstart+t.lookahead,l=a,c=void 0,(c=o.avail_in)>l&&(c=l),r=0===c?0:(o.avail_in-=c,yi.arraySet(s,o.input,o.next_in,c,u),1===o.state.wrap?o.adler=_i(o.adler,s,c,u):2===o.state.wrap&&(o.adler=ki(o.adler,s,c,u)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+3-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function Mi(t,e){for(var r,n;;){if(t.lookahead<262){if(Li(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=Pi(t,r)),t.match_length>=3)if(n=wi._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}function Ii(t,e){for(var r,n,a;;){if(t.lookahead<262){if(Li(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=Pi(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-3,n=wi._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=a&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ri(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=wi._tr_tally(t,0,t.window[t.strstart-1]))&&Ri(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=wi._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}function Bi(t,e,r,n,a){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=a}function Di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new yi.Buf16(1146),this.dyn_dtree=new yi.Buf16(122),this.bl_tree=new yi.Buf16(78),Ai(this.dyn_ltree),Ai(this.dyn_dtree),Ai(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new yi.Buf16(16),this.heap=new yi.Buf16(573),Ai(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new yi.Buf16(573),Ai(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ji(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,wi._tr_init(e),0):Si(t,-2)}function zi(t){var e,r=ji(t);return 0===r&&((e=t.state).window_size=2*e.w_size,Ai(e.head),e.max_lazy_match=bi[e.level].max_lazy,e.good_match=bi[e.level].good_length,e.nice_match=bi[e.level].nice_length,e.max_chain_length=bi[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function Fi(t,e,r,n,a,i){if(!t)return-2;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>9||8!==r||n<8||n>15||e<0||e>9||i<0||i>4)return Si(t,-2);8===n&&(n=9);var s=new Di;return t.state=s,s.strm=t,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new yi.Buf8(2*s.w_size),s.head=new yi.Buf16(s.hash_size),s.prev=new yi.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new yi.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=i,s.method=r,zi(t)}bi=[new Bi(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Li(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ri(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ri(t,!1),t.strm.avail_out),1)})),new Bi(4,4,8,4,Mi),new Bi(4,5,16,8,Mi),new Bi(4,6,32,32,Mi),new Bi(4,4,16,16,Ii),new Bi(8,16,32,32,Ii),new Bi(8,16,128,128,Ii),new Bi(8,32,128,256,Ii),new Bi(32,128,258,1024,Ii),new Bi(32,258,258,4096,Ii)],Ma.deflateInit=function(t,e){return Fi(t,e,8,15,8,0)},Ma.deflateInit2=Fi,Ma.deflateReset=zi,Ma.deflateResetKeep=ji,Ma.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},Ma.deflate=function(t,e){var r,n,a,i;if(!t||!t.state||e>5||e<0)return t?Si(t,-2):-2;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&4!==e)return Si(t,0===t.avail_out?-5:-2);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Oi(n,31),Oi(n,139),Oi(n,8),n.gzhead?(Oi(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Oi(n,255&n.gzhead.time),Oi(n,n.gzhead.time>>8&255),Oi(n,n.gzhead.time>>16&255),Oi(n,n.gzhead.time>>24&255),Oi(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oi(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Oi(n,255&n.gzhead.extra.length),Oi(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ki(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Oi(n,0),Oi(n,0),Oi(n,0),Oi(n,0),Oi(n,0),Oi(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oi(n,3),n.status=113);else{var o=8+(n.w_bits-8<<4)<<8;o|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=113,Ti(n,o),0!==n.strstart&&(Ti(n,t.adler>>>16),Ti(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),Ei(t),a=n.pending,n.pending!==n.pending_buf_size));)Oi(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),Ei(t),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Oi(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),Ei(t),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Oi(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ei(t),n.pending+2<=n.pending_buf_size&&(Oi(n,255&t.adler),Oi(n,t.adler>>8&255),t.adler=0,n.status=113)):n.status=113),0!==n.pending){if(Ei(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Ci(e)<=Ci(r)&&4!==e)return Si(t,-5);if(666===n.status&&0!==t.avail_in)return Si(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(Li(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,i,o=t.window;;){if(t.lookahead<=258){if(Li(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[a=t.strstart-1])===o[++a]&&n===o[++a]&&n===o[++a]){i=t.strstart+258;do{}while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<i);t.match_length=258-(i-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=wi._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}(n,e):bi[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?wi._tr_align(n):5!==e&&(wi._tr_stored_block(n,0,0,!1),3===e&&(Ai(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ei(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Oi(n,255&t.adler),Oi(n,t.adler>>8&255),Oi(n,t.adler>>16&255),Oi(n,t.adler>>24&255),Oi(n,255&t.total_in),Oi(n,t.total_in>>8&255),Oi(n,t.total_in>>16&255),Oi(n,t.total_in>>24&255)):(Ti(n,t.adler>>>16),Ti(n,65535&t.adler)),Ei(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Ma.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?Si(t,-2):(t.state=null,113===e?Si(t,-3):0):-2},Ma.deflateSetDictionary=function(t,e){var r,n,a,i,o,s,u,l,c=e.length;if(!t||!t.state)return-2;if(2===(i=(r=t.state).wrap)||1===i&&42!==r.status||r.lookahead)return-2;for(1===i&&(t.adler=_i(t.adler,e,c,0)),r.wrap=0,c>=r.w_size&&(0===i&&(Ai(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new yi.Buf8(r.w_size),yi.arraySet(l,e,c-r.w_size,r.w_size,0),e=l,c=r.w_size),o=t.avail_in,s=t.next_in,u=t.input,t.avail_in=c,t.next_in=0,t.input=e,Li(r);r.lookahead>=3;){n=r.strstart,a=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=2,Li(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=o,r.wrap=i,0},Ma.deflateInfo="pako deflate (from Nodeca project)";var Ni={},Ui=Pa,Hi=!0,Wi=!0;try{String.fromCharCode.apply(null,[0])}catch(t){Hi=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Wi=!1}for(var Zi=new Ui.Buf8(256),qi=0;qi<256;qi++)Zi[qi]=qi>=252?6:qi>=248?5:qi>=240?4:qi>=224?3:qi>=192?2:1;function Yi(t,e){if(e<65534&&(t.subarray&&Wi||!t.subarray&&Hi))return String.fromCharCode.apply(null,Ui.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}Zi[254]=Zi[254]=1,Ni.string2buf=function(t){var e,r,n,a,i,o=t.length,s=0;for(a=0;a<o;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Ui.Buf8(s),i=0,a=0;i<s;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?e[i++]=r:r<2048?(e[i++]=192|r>>>6,e[i++]=128|63&r):r<65536?(e[i++]=224|r>>>12,e[i++]=128|r>>>6&63,e[i++]=128|63&r):(e[i++]=240|r>>>18,e[i++]=128|r>>>12&63,e[i++]=128|r>>>6&63,e[i++]=128|63&r);return e},Ni.buf2binstring=function(t){return Yi(t,t.length)},Ni.binstring2buf=function(t){for(var e=new Ui.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},Ni.buf2string=function(t,e){var r,n,a,i,o=e||t.length,s=new Array(2*o);for(n=0,r=0;r<o;)if((a=t[r++])<128)s[n++]=a;else if((i=Zi[a])>4)s[n++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;i>1&&r<o;)a=a<<6|63&t[r++],i--;i>1?s[n++]=65533:a<65536?s[n++]=a:(a-=65536,s[n++]=55296|a>>10&1023,s[n++]=56320|1023&a)}return Yi(s,n)},Ni.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Zi[t[r]]>e?r:e};var Gi=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vi=Ma,Ki=Pa,Xi=Ni,$i=vi,Ji=Gi,Qi=Object.prototype.toString;function to(t){if(!(this instanceof to))return new to(t);this.options=Ki.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ji,this.strm.avail_out=0;var r=Vi.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error($i[r]);if(e.header&&Vi.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?Xi.string2buf(e.dictionary):"[object ArrayBuffer]"===Qi.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=Vi.deflateSetDictionary(this.strm,n)))throw new Error($i[r]);this._dict_set=!0}}function eo(t,e){var r=new to(e);if(r.push(t,!0),r.err)throw r.msg||$i[r.err];return r.result}to.prototype.push=function(t,e){var r,n,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=Xi.string2buf(t):"[object ArrayBuffer]"===Qi.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new Ki.Buf8(i),a.next_out=0,a.avail_out=i),1!==(r=Vi.deflate(a,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(Xi.buf2binstring(Ki.shrinkBuf(a.output,a.next_out))):this.onData(Ki.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==r);return 4===n?(r=Vi.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),a.avail_out=0,!0)},to.prototype.onData=function(t){this.chunks.push(t)},to.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ki.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},La.Deflate=to,La.deflate=eo,La.deflateRaw=function(t,e){return(e=e||{}).raw=!0,eo(t,e)},La.gzip=function(t,e){return(e=e||{}).gzip=!0,eo(t,e)};var ro={},no={},ao=Pa,io=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],oo=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],so=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],uo=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],lo=Pa,co=pi,fo=mi,ho=function(t,e){var r,n,a,i,o,s,u,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A;r=t.state,n=t.next_in,C=t.input,a=n+(t.avail_in-5),i=t.next_out,A=t.output,o=i-(e-t.avail_out),s=i+(t.avail_out-257),u=r.dmax,l=r.wsize,c=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,g=r.lencode,b=r.distcode,m=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=g[d&m];e:for(;;){if(d>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))A[i++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=g[(65535&y)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&y,(w&=15)&&(p<w&&(d+=C[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=b[d&v];r:for(;;){if(d>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&y,p<(w&=15)&&(d+=C[n++]<<p,(p+=8)<w&&(d+=C[n++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,k>(w=i-o)){if((w=k-w)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=0,S=h,0===f){if(x+=l-w,w<_){_-=w;do{A[i++]=h[x++]}while(--w);x=i-k,S=A}}else if(f<w){if(x+=l+f-w,(w-=f)<_){_-=w;do{A[i++]=h[x++]}while(--w);if(x=0,f<_){_-=w=f;do{A[i++]=h[x++]}while(--w);x=i-k,S=A}}}else if(x+=f-w,w<_){_-=w;do{A[i++]=h[x++]}while(--w);x=i-k,S=A}for(;_>2;)A[i++]=S[x++],A[i++]=S[x++],A[i++]=S[x++],_-=3;_&&(A[i++]=S[x++],_>1&&(A[i++]=S[x++]))}else{x=i-k;do{A[i++]=A[x++],A[i++]=A[x++],A[i++]=A[x++],_-=3}while(_>2);_&&(A[i++]=A[x++],_>1&&(A[i++]=A[x++]))}break}}break}}while(n<a&&i<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=i,t.avail_in=n<a?a-n+5:5-(n-a),t.avail_out=i<s?s-i+257:257-(i-s),r.hold=d,r.bits=p},po=function(t,e,r,n,a,i,o,s){var u,l,c,f,h,d,p,g,b,m=s.bits,v=0,y=0,w=0,_=0,k=0,x=0,S=0,C=0,A=0,E=0,R=null,O=0,T=new ao.Buf16(16),P=new ao.Buf16(16),L=null,M=0;for(v=0;v<=15;v++)T[v]=0;for(y=0;y<n;y++)T[e[r+y]]++;for(k=m,_=15;_>=1&&0===T[_];_--);if(k>_&&(k=_),0===_)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(w=1;w<_&&0===T[w];w++);for(k<w&&(k=w),C=1,v=1;v<=15;v++)if(C<<=1,(C-=T[v])<0)return-1;if(C>0&&(0===t||1!==_))return-1;for(P[1]=0,v=1;v<15;v++)P[v+1]=P[v]+T[v];for(y=0;y<n;y++)0!==e[r+y]&&(o[P[e[r+y]]++]=y);if(0===t?(R=L=o,d=19):1===t?(R=io,O-=257,L=oo,M-=257,d=256):(R=so,L=uo,d=-1),E=0,y=0,v=w,h=i,x=k,S=0,c=-1,f=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=v-S,o[y]<d?(g=0,b=o[y]):o[y]>d?(g=L[M+o[y]],b=R[O+o[y]]):(g=96,b=0),u=1<<v-S,w=l=1<<x;do{a[h+(E>>S)+(l-=u)]=p<<24|g<<16|b|0}while(0!==l);for(u=1<<v-1;E&u;)u>>=1;if(0!==u?(E&=u-1,E+=u):E=0,y++,0==--T[v]){if(v===_)break;v=e[r+o[y]]}if(v>k&&(E&f)!==c){for(0===S&&(S=k),h+=w,C=1<<(x=v-S);x+S<_&&!((C-=T[x+S])<=0);)x++,C<<=1;if(A+=1<<x,1===t&&A>852||2===t&&A>592)return 1;a[c=E&f]=k<<24|x<<16|h-i|0}}return 0!==E&&(a[h+E]=v-S<<24|64<<16|0),s.bits=k,0};function go(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function bo(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new lo.Buf16(320),this.work=new lo.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function mo(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new lo.Buf32(852),e.distcode=e.distdyn=new lo.Buf32(592),e.sane=1,e.back=-1,0):-2}function vo(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,mo(t)):-2}function yo(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,vo(t))):-2}function wo(t,e){var r,n;return t?(n=new bo,t.state=n,n.window=null,0!==(r=yo(t,e))&&(t.state=null),r):-2}var _o,ko,xo=!0;function So(t){if(xo){var e;for(_o=new lo.Buf32(512),ko=new lo.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(po(1,t.lens,0,288,_o,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;po(2,t.lens,0,32,ko,0,t.work,{bits:5}),xo=!1}t.lencode=_o,t.lenbits=9,t.distcode=ko,t.distbits=5}function Co(t,e,r,n){var a,i=t.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new lo.Buf8(i.wsize)),n>=i.wsize?(lo.arraySet(i.window,e,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>n&&(a=n),lo.arraySet(i.window,e,r-n,a,i.wnext),(n-=a)?(lo.arraySet(i.window,e,r-n,n,0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0}no.inflateReset=vo,no.inflateReset2=yo,no.inflateResetKeep=mo,no.inflateInit=function(t){return wo(t,15)},no.inflateInit2=wo,no.inflate=function(t,e){var r,n,a,i,o,s,u,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A=0,E=new lo.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),o=t.next_out,a=t.output,u=t.avail_out,i=t.next_in,n=t.input,s=t.avail_in,l=r.hold,c=r.bits,f=s,h=u,x=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(2&r.wrap&&35615===l){r.check=0,E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0),l=0,c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&l)){t.msg="unknown compression method",r.mode=30;break}if(c-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&l?10:12,l=0,c=0;break;case 2:for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(r.flags=l,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0)),l=0,c=0,r.mode=3;case 3:for(;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.head&&(r.head.time=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,r.check=fo(r.check,E,4,0)),l=0,c=0,r.mode=4;case 4:for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0)),l=0,c=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0)),l=0,c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),lo.arraySet(r.head.extra,n,i,d,k)),512&r.flags&&(r.check=fo(r.check,n,d,i)),s-=d,i+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;d=0;do{k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=fo(r.check,n,d,i)),s-=d,i+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;d=0;do{k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=fo(r.check,n,d,i)),s-=d,i+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}l=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}t.adler=r.check=go(l),l=0,c=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=i,t.avail_in=s,r.hold=l,r.bits=c,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){l>>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}switch(r.last=1&l,c-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(So(r),r.mode=20,6===e){l>>>=2,c-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;lo.arraySet(a,n,i,d,o),s-=d,i+=d,u-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;c<14;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(r.nlen=257+(31&l),l>>>=5,c-=5,r.ndist=1+(31&l),l>>>=5,c-=5,r.ncode=4+(15&l),l>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.lens[R[r.have++]]=7&l,l>>>=3,c-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=po(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;m=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(v<16)l>>>=b,c-=b,r.lens[r.have++]=v;else{if(16===v){for(C=b+2;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(l>>>=b,c-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&l),l>>>=2,c-=2}else if(17===v){for(C=b+3;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}c-=b,k=0,d=3+(7&(l>>>=b)),l>>>=3,c-=3}else{for(C=b+7;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}c-=b,k=0,d=11+(127&(l>>>=b)),l>>>=7,c-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=po(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=po(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=i,t.avail_in=s,r.hold=l,r.bits=c,ho(t,h),o=t.next_out,a=t.output,u=t.avail_out,i=t.next_in,n=t.input,s=t.avail_in,l=r.hold,c=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;m=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(m&&0==(240&m)){for(y=b,w=m,_=v;m=(A=r.lencode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,v=65535&A,!(y+(b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}l>>>=y,c-=y,r.back+=y}if(l>>>=b,c-=b,r.back+=b,r.length=v,0===m){r.mode=26;break}if(32&m){r.back=-1,r.mode=12;break}if(64&m){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&m,r.mode=22;case 22:if(r.extra){for(C=r.extra;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;m=(A=r.distcode[l&(1<<r.distbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(0==(240&m)){for(y=b,w=m,_=v;m=(A=r.distcode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,v=65535&A,!(y+(b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}l>>>=y,c-=y,r.back+=y}if(l>>>=b,c-=b,r.back+=b,64&m){t.msg="invalid distance code",r.mode=30;break}r.offset=v,r.extra=15&m,r.mode=24;case 24:if(r.extra){for(C=r.extra;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break t;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=a,p=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{a[o++]=g[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;a[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===s)break t;s--,l|=n[i++]<<c,c+=8}if(h-=u,t.total_out+=h,r.total+=h,h&&(t.adler=r.check=r.flags?fo(r.check,a,h,o-h):co(r.check,a,h,o-h)),h=u,(r.flags?l:go(l))!==r.check){t.msg="incorrect data check",r.mode=30;break}l=0,c=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}l=0,c=0}r.mode=29;case 29:x=1;break t;case 30:x=-3;break t;case 31:return-4;default:return-2}return t.next_out=o,t.avail_out=u,t.next_in=i,t.avail_in=s,r.hold=l,r.bits=c,(r.wsize||h!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&Co(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,r.wrap&&h&&(t.adler=r.check=r.flags?fo(r.check,a,h,t.next_out-h):co(r.check,a,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===f&&0===h||4===e)&&0===x&&(x=-5),x},no.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},no.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},no.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&co(1,e,n,0)!==r.check?-3:Co(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},no.inflateInfo="pako inflate (from Nodeca project)";var Ao={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Eo=no,Ro=Pa,Oo=Ni,To=Ao,Po=vi,Lo=Gi,Mo=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Io=Object.prototype.toString;function Bo(t){if(!(this instanceof Bo))return new Bo(t);this.options=Ro.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lo,this.strm.avail_out=0;var r=Eo.inflateInit2(this.strm,e.windowBits);if(r!==To.Z_OK)throw new Error(Po[r]);if(this.header=new Mo,Eo.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Oo.string2buf(e.dictionary):"[object ArrayBuffer]"===Io.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Eo.inflateSetDictionary(this.strm,e.dictionary))!==To.Z_OK))throw new Error(Po[r])}function Do(t,e){var r=new Bo(e);if(r.push(t,!0),r.err)throw r.msg||Po[r.err];return r.result}Bo.prototype.push=function(t,e){var r,n,a,i,o,s=this.strm,u=this.options.chunkSize,l=this.options.dictionary,c=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?To.Z_FINISH:To.Z_NO_FLUSH,"string"==typeof t?s.input=Oo.binstring2buf(t):"[object ArrayBuffer]"===Io.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Ro.Buf8(u),s.next_out=0,s.avail_out=u),(r=Eo.inflate(s,To.Z_NO_FLUSH))===To.Z_NEED_DICT&&l&&(r=Eo.inflateSetDictionary(this.strm,l)),r===To.Z_BUF_ERROR&&!0===c&&(r=To.Z_OK,c=!1),r!==To.Z_STREAM_END&&r!==To.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==To.Z_STREAM_END&&(0!==s.avail_in||n!==To.Z_FINISH&&n!==To.Z_SYNC_FLUSH)||("string"===this.options.to?(a=Oo.utf8border(s.output,s.next_out),i=s.next_out-a,o=Oo.buf2string(s.output,a),s.next_out=i,s.avail_out=u-i,i&&Ro.arraySet(s.output,s.output,a,i,0),this.onData(o)):this.onData(Ro.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==To.Z_STREAM_END);return r===To.Z_STREAM_END&&(n=To.Z_FINISH),n===To.Z_FINISH?(r=Eo.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===To.Z_OK):n!==To.Z_SYNC_FLUSH||(this.onEnd(To.Z_OK),s.avail_out=0,!0)},Bo.prototype.onData=function(t){this.chunks.push(t)},Bo.prototype.onEnd=function(t){t===To.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ro.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},ro.Inflate=Bo,ro.inflate=Do,ro.inflateRaw=function(t,e){return(e=e||{}).raw=!0,Do(t,e)},ro.ungzip=Do;var jo={};(0,Pa.assign)(jo,La,ro,Ao);var zo="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,Fo=jo,No=Mn(),Uo=Bn,Ho=zo?"uint8array":"array";function Wo(t,e){Uo.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}Ta.magic="\b\0",No.inherits(Wo,Uo),Wo.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(No.transformTo(Ho,t.data),!1)},Wo.prototype.flush=function(){Uo.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Wo.prototype.cleanUp=function(){Uo.prototype.cleanUp.call(this),this._pako=null},Wo.prototype._createPako=function(){this._pako=new Fo[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Ta.compressWorker=function(t){return new Wo("Deflate",t)},Ta.uncompressWorker=function(){return new Wo("Inflate",{})};var Zo=Bn;Oa.STORE={magic:"\0\0",compressWorker:function(){return new Zo("STORE compression")},uncompressWorker:function(){return new Zo("STORE decompression")}},Oa.DEFLATE=Ta;var qo={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"},Yo=Mn(),Go=Bn,Vo=l,Ko=aa,Xo=qo,$o=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},Jo=function(t,e,r,n,a,i){var o,s,u=t.file,l=t.compression,c=i!==Vo.utf8encode,f=Yo.transformTo("string",i(u.name)),h=Yo.transformTo("string",Vo.utf8encode(u.name)),d=u.comment,p=Yo.transformTo("string",i(d)),g=Yo.transformTo("string",Vo.utf8encode(d)),b=h.length!==u.name.length,m=g.length!==d.length,v="",y="",w="",_=u.dir,k=u.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(x.crc32=t.crc32,x.compressedSize=t.compressedSize,x.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),c||!b&&!m||(S|=2048);var C,A,E,R=0,O=0;_&&(R|=16),"UNIX"===a?(O=798,R|=(C=u.unixPermissions,A=_,E=C,C||(E=A?16893:33204),(65535&E)<<16)):(O=20,R|=63&(u.dosPermissions||0)),o=k.getUTCHours(),o<<=6,o|=k.getUTCMinutes(),o<<=5,o|=k.getUTCSeconds()/2,s=k.getUTCFullYear()-1980,s<<=4,s|=k.getUTCMonth()+1,s<<=5,s|=k.getUTCDate(),b&&(y=$o(1,1)+$o(Ko(f),4)+h,v+="up"+$o(y.length,2)+y),m&&(w=$o(1,1)+$o(Ko(p),4)+g,v+="uc"+$o(w.length,2)+w);var T="";return T+="\n\0",T+=$o(S,2),T+=l.magic,T+=$o(o,2),T+=$o(s,2),T+=$o(x.crc32,4),T+=$o(x.compressedSize,4),T+=$o(x.uncompressedSize,4),T+=$o(f.length,2),T+=$o(v.length,2),{fileRecord:Xo.LOCAL_FILE_HEADER+T+f+v,dirRecord:Xo.CENTRAL_FILE_HEADER+$o(O,2)+T+$o(p.length,2)+"\0\0\0\0"+$o(R,4)+$o(n,4)+f+v+p}},Qo=function(t){return Xo.DATA_DESCRIPTOR+$o(t.crc32,4)+$o(t.compressedSize,4)+$o(t.uncompressedSize,4)};function ts(t,e,r,n){Go.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Yo.inherits(ts,Go),ts.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,Go.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},ts.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=Jo(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ts.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=Jo(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:Qo(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},ts.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,n=function(t,e,r,n,a){var i=Yo.transformTo("string",a(n));return Xo.CENTRAL_DIRECTORY_END+"\0\0\0\0"+$o(t,2)+$o(t,2)+$o(e,4)+$o(r,4)+$o(i.length,2)+i}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},ts.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ts.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},ts.prototype.resume=function(){return!!Go.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ts.prototype.error=function(t){var e=this._sources;if(!Go.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},ts.prototype.lock=function(){Go.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var es=Oa,rs=ts;Ra.generateWorker=function(t,e,r){var n=new rs(e.streamFiles,r,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,r){a++;var i=function(t,e){var r=t||e,n=es[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),o=r.options.compressionOptions||e.compressionOptions||{},s=r.dir,u=r.date;r._compressWorker(i,o).withStreamInfo("file",{name:t,dir:s,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=a}catch(t){n.error(t)}return n};var ns=Mn(),as=Bn;function is(t,e){as.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}ns.inherits(is,as),is.prototype._bindStream=function(t){var e=this;this._stream=t,t.pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},is.prototype.pause=function(){return!!as.prototype.pause.call(this)&&(this._stream.pause(),!0)},is.prototype.resume=function(){return!!as.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var os=is,ss=l,us=Mn(),ls=Bn,cs=Xn,fs=$n,hs=ma,ds=Ea,ps=Ra,gs=On,bs=os,ms=function(t,e,r){var n,a=us.getTypeOf(e),i=us.extend(r||{},fs);i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(t=ys(t)),i.createFolders&&(n=vs(t))&&ws.call(this,n,!0);var o="string"===a&&!1===i.binary&&!1===i.base64;r&&void 0!==r.binary||(i.binary=!o),(e instanceof hs&&0===e.uncompressedSize||i.dir||!e||0===e.length)&&(i.base64=!1,i.binary=!0,e="",i.compression="STORE",a="string");var s=null;s=e instanceof hs||e instanceof ls?e:gs.isNode&&gs.isStream(e)?new bs(t,e):us.prepareContent(t,e,i.binary,i.optimizedBinaryString,i.base64);var u=new ds(t,s,i);this.files[t]=u},vs=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},ys=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},ws=function(t,e){return e=void 0!==e?e:fs.createFolders,t=ys(t),this.files[t]||ms.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function _s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var ks={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},file:function(t,e,r){if(1===arguments.length){if(_s(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var a=this.files[this.root+t];return a&&!a.dir?a:null}return t=this.root+t,ms.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(_s(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=ws.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=us.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:ss.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");us.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";e=ps.generateWorker(this,r,n)}catch(t){(e=new ls("error")).error(t)}return new cs(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}},xs=ks,Ss=Mn();function Cs(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}Cs.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return Ss.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}};var As=Cs,Es=As;function Rs(t){Es.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}Mn().inherits(Rs,Es),Rs.prototype.byteAt=function(t){return this.data[this.zero+t]},Rs.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),a=t.charCodeAt(3),i=this.length-4;i>=0;--i)if(this.data[i]===e&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},Rs.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),a=t.charCodeAt(3),i=this.readData(4);return e===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},Rs.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Os=Rs,Ts=As;function Ps(t){Ts.call(this,t)}Mn().inherits(Ps,Ts),Ps.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},Ps.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},Ps.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},Ps.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Ls=Ps,Ms=Os;function Is(t){Ms.call(this,t)}Mn().inherits(Is,Ms),Is.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Bs=Is,Ds=Bs;function js(t){Ds.call(this,t)}Mn().inherits(js,Ds),js.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var zs=js,Fs=Mn(),Ns=ft,Us=Os,Hs=Ls,Ws=zs,Zs=Bs,qs=function(t){var e=Fs.getTypeOf(t);return Fs.checkSupport(e),"string"!==e||Ns.uint8array?"nodebuffer"===e?new Ws(t):Ns.uint8array?new Zs(Fs.transformTo("uint8array",t)):new Us(Fs.transformTo("array",t)):new Hs(t)},Ys=qs,Gs=Mn(),Vs=ma,Ks=aa,Xs=l,$s=Oa,Js=ft;function Qs(t,e){this.options=t,this.loadOptions=e}Qs.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(e=function(t){for(var e in $s)if(Object.prototype.hasOwnProperty.call($s,e)&&$s[e].magic===t)return $s[e];return null}(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+Gs.pretty(this.compressionMethod)+" unknown (inner file : "+Gs.transformTo("string",this.fileName)+")");this.decompressed=new Vs(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=Ys(this.extraFields[1].value);this.uncompressedSize===Gs.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===Gs.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===Gs.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===Gs.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<a;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(a)},handleUTF8:function(){var t=Js.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Xs.utf8decode(this.fileName),this.fileCommentStr=Xs.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Gs.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=Gs.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileName)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileComment)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null}};var tu=Qs,eu=qs,ru=Mn(),nu=qo,au=tu,iu=ft;function ou(t){this.files=[],this.loadOptions=t}ou.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ru.pretty(e)+", expected "+ru.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=iu.uint8array?"uint8array":"array",r=ru.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(nu.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(nu.CENTRAL_FILE_HEADER);)(t=new au({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(nu.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,nu.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(t);var e=t;if(this.checkSignature(nu.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ru.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ru.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ru.MAX_VALUE_16BITS||this.centralDirRecords===ru.MAX_VALUE_16BITS||this.centralDirSize===ru.MAX_VALUE_32BITS||this.centralDirOffset===ru.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,nu.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(n>0)this.isSignature(e,nu.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=eu(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var su=ou,uu=Mn(),lu=Ln,cu=l,fu=su,hu=ua,du=On;function pu(t){return new lu.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new hu);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}function gu(){if(!(this instanceof gu))return new gu;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new gu;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}gu.prototype=xs,gu.prototype.loadAsync=function(t,e){var r=this;return e=uu.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:cu.utf8decode}),du.isNode&&du.isStream(t)?lu.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):uu.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new fu(e);return r.load(t),r})).then((function(t){var r=[lu.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var a=0;a<n.length;a++)r.push(pu(n[a]));return lu.Promise.all(r)})).then((function(t){for(var n=t.shift(),a=n.files,i=0;i<a.length;i++){var o=a[i],s=o.fileNameStr,u=uu.resolve(o.fileNameStr);r.file(u,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:e.createFolders}),o.dir||(r.file(u).unsafeOriginalName=s)}return n.zipComment.length&&(r.comment=n.zipComment),r}))},gu.support=ft,gu.defaults=$n,gu.version="3.10.1",gu.loadAsync=function(t,e){return(new gu).loadAsync(t,e)},gu.external=Ln;var bu=gu;function mu(t){return mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(t)}function vu(t,e){var r=(e=e||{}).pos||0,n=!!e.keepComments,a=!!e.keepWhitespace,i="<".charCodeAt(0),o=">".charCodeAt(0),s="-".charCodeAt(0),u="/".charCodeAt(0),l="!".charCodeAt(0),c="'".charCodeAt(0),f='"'.charCodeAt(0),h="[".charCodeAt(0),d="]".charCodeAt(0);function p(e){for(var c=[];t[r];)if(t.charCodeAt(r)==i){if(t.charCodeAt(r+1)===u){var f=r+2;if(r=t.indexOf(">",r),-1==t.substring(f,r).indexOf(e)){var p=t.substring(0,r).split("\n");throw new Error("Unexpected close tag\nLine: "+(p.length-1)+"\nColumn: "+(p[p.length-1].length+1)+"\nChar: "+t[r])}return r+1&&(r+=1),c}if(t.charCodeAt(r+1)===l){if(t.charCodeAt(r+2)==s){const e=r;for(;-1!==r&&(t.charCodeAt(r)!==o||t.charCodeAt(r-1)!=s||t.charCodeAt(r-2)!=s||-1==r);)r=t.indexOf(">",r+1);-1===r&&(r=t.length),n&&c.push(t.substring(e,r+1))}else{if(t.charCodeAt(r+2)===h&&t.charCodeAt(r+8)===h&&"cdata"===t.substr(r+3,5).toLowerCase()){var b=t.indexOf("]]>",r);-1==b?(c.push(t.substr(r+9)),r=t.length):(c.push(t.substring(r+9,b)),r=b+3);continue}{const e=r+1;r+=2;for(var m=!1;(t.charCodeAt(r)!==o||!0===m)&&t[r];)t.charCodeAt(r)===h?m=!0:!0===m&&t.charCodeAt(r)===d&&(m=!1),r++;c.push(t.substring(e,r))}}r++;continue}var y=v();c.push(y),"?"===y.tagName[0]&&(c.push(...y.children),y.children=[])}else{var w=g();if(a)w.length>0&&c.push(w);else{var _=w.trim();_.length>0&&c.push(_)}r++}return c}function g(){var e=r;return-2===(r=t.indexOf("<",r)-1)&&(r=t.length),t.slice(e,r+1)}function b(){for(var e=r;-1==="\r\n\t>/= ".indexOf(t[r])&&t[r];)r++;return t.slice(e,r)}var m=e.noChildNodes||["img","br","input","meta","link","hr"];function v(){r++;const e=b(),n={};let a=[];for(;t.charCodeAt(r)!==o&&t[r];){var i=t.charCodeAt(r);if(i>64&&i<91||i>96&&i<123){for(var s=b(),l=t.charCodeAt(r);l&&l!==c&&l!==f&&!(l>64&&l<91||l>96&&l<123)&&l!==o;)r++,l=t.charCodeAt(r);if(l===c||l===f){var h=y();if(-1===r)return{tagName:e,attributes:n,children:a}}else h=null,r--;n[s]=h}r++}if(t.charCodeAt(r-1)!==u)if("script"==e){var d=r+1;r=t.indexOf("<\/script>",r),a=[t.slice(d,r)],r+=9}else if("style"==e){d=r+1;r=t.indexOf("</style>",r),a=[t.slice(d,r)],r+=8}else-1===m.indexOf(e)?(r++,a=p(e)):r++;else r++;return{tagName:e,attributes:n,children:a}}function y(){var e=t[r],n=r+1;return r=t.indexOf(e,n),t.slice(n,r)}var w,_=null;if(void 0!==e.attrValue){e.attrName=e.attrName||"id";for(_=[];-1!==(w=void 0,w=new RegExp("\\s"+e.attrName+"\\s*=['\"]"+e.attrValue+"['\"]").exec(t),r=w?w.index:-1);)-1!==(r=t.lastIndexOf("<",r))&&_.push(v()),t=t.substr(r),r=0}else _=e.parseNode?v():p("");return e.filter&&(_=wu(_,e.filter)),e.simplify?yu(Array.isArray(_)?_:[_]):(e.setPos&&(_.pos=r),_)}function yu(t){var e={};if(!t.length)return"";if(1===t.length&&"string"==typeof t[0])return t[0];for(var r in t.forEach((function(t){if("object"==typeof t){e[t.tagName]||(e[t.tagName]=[]);var r=yu(t.children);e[t.tagName].push(r),Object.keys(t.attributes).length&&"string"!=typeof r&&(r._attributes=t.attributes)}})),e)1==e[r].length&&(e[r]=e[r][0]);return e}function wu(t,e,r=0,n=""){var a=[];return t.forEach((function(t,i){if("object"==typeof t&&e(t,i,r,n)&&a.push(t),t.children){var o=wu(t.children,e,r+1,(n?n+".":"")+i+"."+t.tagName);a=a.concat(o)}})),a}function _u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ku(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ku(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function ku(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Su(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?xu(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=0;function Au(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(!t.length)return r;if(1===t.length&&"string"==typeof t[0])return Object.keys(e).length?{attrs:Su({order:Cu++},e),value:t[0]}:t[0];var n,a=_u(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if("object"!==mu(i))return;if("?xml"!==i.tagName){r[i.tagName]||(r[i.tagName]=[]);var o=Au(i.children||[],i.attributes);"object"===mu(o)&&(o.attrs?o.attrs.order=Cu++:o.attrs={order:Cu++}),Object.keys(i.attributes||{}).length&&(o.attrs=Su(Su({},o.attrs),i.attributes)),r[i.tagName].push(o)}}}catch(t){a.e(t)}finally{a.f()}for(var s in r)1===r[s].length&&(r[s]=r[s][0]);return r}function Eu(t,e){return Ru.apply(this,arguments)}function Ru(){return(Ru=r(u.mark((function t(e,r){var n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.file(r).async("string");case 3:return n=t.sent,t.abrupt("return",Au(vu(n)));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function Ou(t){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(t)}var Tu=/^\s+/,Pu=/\s+$/;function Lu(t,e){if(e=e||{},(t=t||"")instanceof Lu)return t;if(!(this instanceof Lu))return new Lu(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Tu,"").replace(Pu,"").toLowerCase();var e,r=!1;if(Ku[t])t=Ku[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=ul.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=ul.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=ul.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=ul.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=ul.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=ul.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=ul.hex8.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),a:al(e[4]),format:r?"name":"hex8"};if(e=ul.hex6.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),format:r?"name":"hex"};if(e=ul.hex4.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),a:al(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=ul.hex3.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==Ou(t)&&(ll(t.r)&&ll(t.g)&&ll(t.b)?(u=t.r,l=t.g,c=t.b,e={r:255*Ju(u,255),g:255*Ju(l,255),b:255*Ju(c,255)},o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):ll(t.h)&&ll(t.s)&&ll(t.v)?(n=rl(t.s),a=rl(t.v),e=function(t,e,r){t=6*Ju(t,360),e=Ju(e,100),r=Ju(r,100);var n=Math.floor(t),a=t-n,i=r*(1-e),o=r*(1-a*e),s=r*(1-(1-a)*e),u=n%6;return{r:255*[r,o,i,i,s,r][u],g:255*[s,r,r,o,i,i][u],b:255*[i,i,s,r,r,o][u]}}(t.h,n,a),o=!0,s="hsv"):ll(t.h)&&ll(t.s)&&ll(t.l)&&(n=rl(t.s),i=rl(t.l),e=function(t,e,r){var n,a,i;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=Ju(t,360),e=Ju(e,100),r=Ju(r,100),0===e)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),a=o(u,s,t),i=o(u,s,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(t.h,n,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));var u,l,c;return r=$u(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function Mu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,a,i=Math.max(t,e,r),o=Math.min(t,e,r),s=(i+o)/2;if(i==o)n=a=0;else{var u=i-o;switch(a=s>.5?u/(2-i-o):u/(i+o),i){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:a,l:s}}function Iu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,a,i=Math.max(t,e,r),o=Math.min(t,e,r),s=i,u=i-o;if(a=0===i?0:u/i,i==o)n=0;else{switch(i){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:a,v:s}}function Bu(t,e,r,n){var a=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Du(t,e,r,n){return[el(nl(n)),el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))].join("")}function ju(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.s-=e/100,r.s=Qu(r.s),Lu(r)}function zu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.s+=e/100,r.s=Qu(r.s),Lu(r)}function Fu(t){return Lu(t).desaturate(100)}function Nu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.l+=e/100,r.l=Qu(r.l),Lu(r)}function Uu(t,e){e=0===e?0:e||10;var r=Lu(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),Lu(r)}function Hu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.l-=e/100,r.l=Qu(r.l),Lu(r)}function Wu(t,e){var r=Lu(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Lu(r)}function Zu(t){var e=Lu(t).toHsl();return e.h=(e.h+180)%360,Lu(e)}function qu(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Lu(t).toHsl(),n=[Lu(t)],a=360/e,i=1;i<e;i++)n.push(Lu({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function Yu(t){var e=Lu(t).toHsl(),r=e.h;return[Lu(t),Lu({h:(r+72)%360,s:e.s,l:e.l}),Lu({h:(r+216)%360,s:e.s,l:e.l})]}function Gu(t,e,r){e=e||6,r=r||30;var n=Lu(t).toHsl(),a=360/r,i=[Lu(t)];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(Lu(n));return i}function Vu(t,e){e=e||6;for(var r=Lu(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(Lu({h:n,s:a,v:i})),i=(i+s)%1;return o}Lu.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=$u(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Iu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Iu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Mu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Mu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Bu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,a){var i=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16)),el(nl(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Ju(this._r,255))+"%",g:Math.round(100*Ju(this._g,255))+"%",b:Math.round(100*Ju(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%)":"rgba("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Xu[Bu(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Du(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=Lu(t);r="#"+Du(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Lu(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Nu,arguments)},brighten:function(){return this._applyModification(Uu,arguments)},darken:function(){return this._applyModification(Hu,arguments)},desaturate:function(){return this._applyModification(ju,arguments)},saturate:function(){return this._applyModification(zu,arguments)},greyscale:function(){return this._applyModification(Fu,arguments)},spin:function(){return this._applyModification(Wu,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Gu,arguments)},complement:function(){return this._applyCombination(Zu,arguments)},monochromatic:function(){return this._applyCombination(Vu,arguments)},splitcomplement:function(){return this._applyCombination(Yu,arguments)},triad:function(){return this._applyCombination(qu,[3])},tetrad:function(){return this._applyCombination(qu,[4])}},Lu.fromRatio=function(t,e){if("object"==Ou(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:rl(t[n]));t=r}return Lu(t,e)},Lu.equals=function(t,e){return!(!t||!e)&&Lu(t).toRgbString()==Lu(e).toRgbString()},Lu.random=function(){return Lu.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Lu.mix=function(t,e,r){r=0===r?0:r||50;var n=Lu(t).toRgb(),a=Lu(e).toRgb(),i=r/100;return Lu({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},Lu.readability=function(t,e){var r=Lu(t),n=Lu(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Lu.isReadable=function(t,e,r){var n,a,i=Lu.readability(t,e);switch(a=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},Lu.mostReadable=function(t,e,r){var n,a,i,o,s=null,u=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=Lu.readability(t,e[l]))>u&&(u=n,s=Lu(e[l]));return Lu.isReadable(t,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,Lu.mostReadable(t,["#fff","#000"],r))};var Ku=Lu.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Xu=Lu.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Ku);function $u(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ju(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Qu(t){return Math.min(1,Math.max(0,t))}function tl(t){return parseInt(t,16)}function el(t){return 1==t.length?"0"+t:""+t}function rl(t){return t<=1&&(t=100*t+"%"),t}function nl(t){return Math.round(255*parseFloat(t)).toString(16)}function al(t){return tl(t)/255}var il,ol,sl,ul=(ol="[\\s|\\(]+("+(il="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+il+")[,|\\s]+("+il+")\\s*\\)?",sl="[\\s|\\(]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")\\s*\\)?",{CSS_UNIT:new RegExp(il),rgb:new RegExp("rgb"+ol),rgba:new RegExp("rgba"+sl),hsl:new RegExp("hsl"+ol),hsla:new RegExp("hsla"+sl),hsv:new RegExp("hsv"+ol),hsva:new RegExp("hsva"+sl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ll(t){return!!ul.CSS_UNIT.exec(t)}function cl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return fl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function fl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hl(t){for(var e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),a=n.byteLength,i=a%3,o=a-i,s="",u=0;u<o;u+=3)s+=r[(16515072&(e=n[u]<<16|n[u+1]<<8|n[u+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1===i?s+=r[(252&(e=n[o]))>>2]+r[(3&e)<<4]+"==":2===i&&(s+=r[(64512&(e=n[o]<<8|n[o+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),s}function dl(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function pl(t,e){if(!t)return t;var r="";if(t.constructor===Array)for(var n=0;n<t.length;n++)r+=e(t[n],n);else r+=e(t,0);return r}function gl(t,e){if(!t)return t;var r,n=cl(e);try{for(n.s();!(r=n.n()).done;){if(!(t=t[r.value]))return t}}catch(t){n.e(t)}finally{n.f()}return t}function bl(t){return t?Math.round(t/6e4):0}function ml(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.replace(/[&<>"']/g,(function(t){return e[t]}))}function vl(t){var e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}function yl(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}function wl(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function _l(t){if(!DOMParser)return!0;var e=(new DOMParser).parseFromString(t,"text/html");return""!==(e.body.textContent||e.body.innerText).trim()}function kl(t,e,r,n){var a,i;if(r)i=r;else{var o=gl(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);i=o||((o=gl(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||gl(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"]))}var s=t.substr(2);if("phClr"===s&&n)a=n;else{if(i)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+i[s]}else switch(t){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}var u=gl(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(a=gl(u,["a:srgbClr","attrs","val"]))&&u&&(a=gl(u,["a:sysClr","attrs","lastClr"]))}return a}function xl(t,e,r){var n=gl(t,["p:spPr","a:ln"]);if(!n){var a=gl(t,["p:style","a:lnRef"]);if(a){var i=gl(a,["attrs","idx"]);n=r.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(i)-1]}}n||(n=t);var o=gl(n,["a:noFill"])?0:parseInt(gl(n,["attrs","w"]))/12700;isNaN(o)&&(o=n||"obj"!==e?0:1);var s=gl(n,["a:solidFill","a:srgbClr","attrs","val"]);if(!s){var u=gl(n,["a:solidFill","a:schemeClr"]);s=kl("a:"+gl(u,["attrs","val"]),r)}if(!s){var l=gl(t,["p:style","a:lnRef","a:schemeClr"]);if(s=kl("a:"+gl(l,["attrs","val"]),r)){var c=gl(l,["a:shade","attrs","val"]);if(c){c=parseInt(c)/1e5;var f=Lu("#"+s).toHsl();s=Lu({h:f.h,s:f.s,l:f.l*c,a:f.a}).toHex()}}}s=s?"#".concat(s):"#000000";var h="solid",d="0";switch(gl(n,["a:prstDash","attrs","val"])){case"solid":h="solid",d="0";break;case"dash":h="dashed",d="5";break;case"dashDot":h="dashed",d="5, 5, 1, 5";break;case"dot":h="dotted",d="1, 5";break;case"lgDash":h="dashed",d="10, 5";break;case"lgDashDotDot":h="dotted",d="10, 5, 1, 5, 1, 5";break;case"sysDash":h="dashed",d="5, 2";break;case"sysDashDot":h="dotted",d="5, 2, 1, 5";break;case"sysDashDotDot":h="dotted",d="5, 2, 1, 5, 1, 5";break;case"sysDot":h="dotted",d="2, 5"}return{borderColor:s,borderWidth:o,borderType:h,strokeDasharray:d}}function Sl(t,e,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(e-t)*r+t:r<3?e:r<4?(e-t)*(4-r)+t:t}function Cl(t,e,r){var n=Lu(t).toHsl();e>=1&&(e=1);var a=n.l*e+(1-e);return r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}function Al(t){var e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function El(t,e,r){return Rl.apply(this,arguments)}function Rl(){return Rl=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r["a:blip"].attrs["r:embed"],"slideBg"===e||"slide"===e?o=gl(n,["slideResObj",i,"target"]):"slideLayoutBg"===e?o=gl(n,["layoutResObj",i,"target"]):"slideMasterBg"===e?o=gl(n,["masterResObj",i,"target"]):"themeBg"===e?o=gl(n,["themeResObj",i,"target"]):"diagramBg"===e&&(o=gl(n,["diagramResObj",i,"target"])),o){t.next=4;break}return t.abrupt("return",o);case 4:if(a=gl(n,["loaded-images",o])){t.next=18;break}if(o=ml(o),"xml"!==(s=o.split(".").pop())){t.next=10;break}return t.abrupt("return",void 0);case 10:return t.next=12,n.zip.file(o).async("arraybuffer");case 12:l=t.sent,c=vl(s),a="data:".concat(c,";base64,").concat(hl(l)),(f=n["loaded-images"]||{})[o]=a,n["loaded-images"]=f;case 18:return t.abrupt("return",a);case 19:case"end":return t.stop()}}),t)}))),Rl.apply(this,arguments)}function Ol(t){var e=gl(t["a:blip"],["a:alphaModFix","attrs"]),r=1;return e&&e.amt&&""!==e.amt&&(r=parseInt(e.amt)/1e5),r}function Tl(t,e,r){return Pl.apply(this,arguments)}function Pl(){return(Pl=r(u.mark((function t(e,r,n){var a,i,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,El(r,e["a:blipFill"],n);case 2:return a=t.sent,i=e["a:blipFill"]["a:blip"],o=gl(i,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&""!==o.amt&&(s=parseInt(o.amt)/1e5),t.abrupt("return",{picBase64:a,opacity:s});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ll(t,e){for(var r=t["a:gsLst"]["a:gs"],n=[],a=0;a<r.length;a++){var i=zl(r[a],void 0,void 0,e),o=gl(r[a],["attrs","pos"]);n[a]={pos:o?o/1e3+"%":"",color:i}}var s=t["a:lin"],u=0,l="line";if(s)u=bl(s.attrs.ang);else{var c=t["a:path"];c&&c.attrs&&c.attrs.path&&(l=c.attrs.path)}return{rot:u,path:l,colors:n.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}function Ml(t,e,r,n){if(t){for(var a=t["a:gradFill"],i=a["a:gsLst"]["a:gs"],o=[],s=0;s<i.length;s++){var u=zl(i[s],r["p:sldMaster"]["p:clrMap"].attrs,e,n),l=gl(i[s],["attrs","pos"]);o[s]={pos:l?l/1e3+"%":"",color:u}}var c=a["a:lin"],f=0,h="line";if(c)f=bl(c.attrs.ang)+0;else{var d=a["a:path"];d&&d.attrs&&d.attrs.path&&(h=d.attrs.path)}return{rot:f,path:h,colors:o.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}return e?-1===e.indexOf("#")?"#".concat(e):e:null}function Il(t){return Bl.apply(this,arguments)}function Bl(){return Bl=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,at,it,ot,st,ut,lt;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.slideContent,n=e.slideLayoutContent,a=e.slideMasterContent,i=gl(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=gl(r,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",l="color",!i){t.next=29;break}if("SOLID_FILL"!==(c=Al(i))){t.next=17;break}f=i["a:solidFill"],(d=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?h=d:(p=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),h=p||gl(a,["p:sldMaster","p:clrMap","attrs"])),g=zl(f,h,void 0,e),s=g,t.next=27;break;case 17:if("GRADIENT_FILL"!==c){t.next=22;break}"string"==typeof(b=Ml(i,void 0,a,e))?s=b:b&&(s=b,l="gradient"),t.next=27;break;case 22:if("PIC_FILL"!==c){t.next=27;break}return t.next=25,Tl(i,"slideBg",e);case 25:s=t.sent,l="image";case 27:t.next=142;break;case 29:if(!o){t.next=37;break}(v=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?m=v:(y=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),m=y||gl(a,["p:sldMaster","p:clrMap","attrs"])),w=zl(o,m,void 0,e),(_=Number(o.attrs.idx))>1e3&&(k=_-1e3,x=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],S=[],Object.keys(x).forEach((function(t){var e=x[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),S.push(n)}else{var a={};a[t]=e,e.attrs&&(a.idex=e.attrs.order,a.attrs={order:e.attrs.order}),S.push(a)}})),(C=S.slice(0)).sort((function(t,e){return t.idex-e.idex})),A=C[k-1],"SOLID_FILL"===(E=Al(A))?(R=A["a:solidFill"],O=zl(R,m,void 0,e),s=O):"GRADIENT_FILL"===E&&("string"==typeof(T=Ml(A,w,a,e))?s=T:T&&(s=T,l="gradient"))),t.next=142;break;case 37:if(i=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),L=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),P=L||gl(a,["p:sldMaster","p:clrMap","attrs"]),!i){t.next=61;break}if("SOLID_FILL"!==(M=Al(i))){t.next=49;break}I=i["a:solidFill"],B=zl(I,P,void 0,e),s=B,t.next=59;break;case 49:if("GRADIENT_FILL"!==M){t.next=54;break}"string"==typeof(D=Ml(i,void 0,a,e))?s=D:D&&(s=D,l="gradient"),t.next=59;break;case 54:if("PIC_FILL"!==M){t.next=59;break}return t.next=57,Tl(i,"slideLayoutBg",e);case 57:s=t.sent,l="image";case 59:t.next=142;break;case 61:if(!o){t.next=91;break}if(j=zl(o,P,void 0,e),!((z=Number(o.attrs.idx))>1e3)){t.next=89;break}if(F=z-1e3,N=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],U=[],Object.keys(N).forEach((function(t){var e=N[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),U.push(n)}else{var a={};a[t]=e,e.attrs&&(a.idex=e.attrs.order,a.attrs={order:e.attrs.order}),U.push(a)}})),(H=U.slice(0)).sort((function(t,e){return t.idex-e.idex})),W=H[F-1],"SOLID_FILL"!==(Z=Al(W))){t.next=79;break}q=W["a:solidFill"],Y=zl(q,P,void 0,e),s=Y,t.next=89;break;case 79:if("GRADIENT_FILL"!==Z){t.next=84;break}"string"==typeof(G=Ml(W,j,a,e))?s=G:G&&(s=G,l="gradient"),t.next=89;break;case 84:if("PIC_FILL"!==Z){t.next=89;break}return t.next=87,Tl(W,"themeBg",e);case 87:s=t.sent,l="image";case 89:t.next=142;break;case 91:if(i=gl(a,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=gl(a,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),V=gl(a,["p:sldMaster","p:clrMap","attrs"]),!i){t.next=114;break}if("SOLID_FILL"!==(K=Al(i))){t.next=102;break}X=i["a:solidFill"],$=zl(X,V,void 0,e),s=$,t.next=112;break;case 102:if("GRADIENT_FILL"!==K){t.next=107;break}"string"==typeof(J=Ml(i,void 0,a,e))?s=J:J&&(s=J,l="gradient"),t.next=112;break;case 107:if("PIC_FILL"!==K){t.next=112;break}return t.next=110,Tl(i,"slideMasterBg",e);case 110:s=t.sent,l="image";case 112:t.next=142;break;case 114:if(!o){t.next=142;break}if(Q=zl(o,V,void 0,e),!((tt=Number(o.attrs.idx))>1e3)){t.next=142;break}if(et=tt-1e3,rt=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],nt=[],Object.keys(rt).forEach((function(t){var e=rt[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),nt.push(n)}else{var a={};a[t]=e,e.attrs&&(a.idex=e.attrs.order,a.attrs={order:e.attrs.order}),nt.push(a)}})),(at=nt.slice(0)).sort((function(t,e){return t.idex-e.idex})),it=at[et-1],"SOLID_FILL"!==(ot=Al(it))){t.next=132;break}st=it["a:solidFill"],ut=zl(st,P,void 0,e),s=ut,t.next=142;break;case 132:if("GRADIENT_FILL"!==ot){t.next=137;break}"string"==typeof(lt=Ml(it,Q,a,e))?s=lt:lt&&(s=lt,l="gradient"),t.next=142;break;case 137:if("PIC_FILL"!==ot){t.next=142;break}return t.next=140,Tl(it,"themeBg",e);case 140:s=t.sent,l="image";case 142:return t.abrupt("return",{type:l,value:s});case 143:case"end":return t.stop()}}),t)}))),Bl.apply(this,arguments)}function Dl(t,e,r,n,a){return jl.apply(this,arguments)}function jl(){return jl=r(u.mark((function t(e,r,n,a,i){var o,s,l,c,f,h,d,p,g,b,m;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=Al(gl(e,["p:spPr"])),s="color",l="","NO_FILL"!==o){t.next=7;break}return t.abrupt("return",n?"none":"");case 7:if("SOLID_FILL"!==o){t.next=13;break}c=e["p:spPr"]["a:solidFill"],l=zl(c,void 0,void 0,a),s="color",t.next=27;break;case 13:if("GRADIENT_FILL"!==o){t.next=19;break}f=e["p:spPr"]["a:gradFill"],l=Ll(f,a),s="gradient",t.next=27;break;case 19:if("PIC_FILL"!==o){t.next=27;break}return h=e["p:spPr"]["a:blipFill"],t.next=23,El(i,h,a);case 23:d=t.sent,p=Ol(h),l={picBase64:d,opacity:p},s="image";case 27:if(l||(g=gl(e,["p:style","a:fillRef"]),l=zl(g,void 0,void 0,a),s="color"),l||!r){t.next=39;break}if(!gl(e,["p:spPr","a:grpFill"])){t.next=37;break}if(!(b=r["p:grpSpPr"])){t.next=35;break}return m={"p:spPr":b},t.abrupt("return",Dl(m,e,n,a,i));case 35:t.next=39;break;case 37:if("NO_FILL"!==o){t.next=39;break}return t.abrupt("return",n?"none":"");case 39:return t.abrupt("return",{type:s,value:l});case 40:case"end":return t.stop()}}),t)}))),jl.apply(this,arguments)}function zl(t,e,r,n){if(!t)return"";var a,i,o,s="";if(t["a:srgbClr"])s=gl(a=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"]){s=kl("a:"+gl(a=t["a:schemeClr"],["attrs","val"]),n,e,r)||""}else if(t["a:scrgbClr"]){var u=(a=t["a:scrgbClr"]).attrs,l=-1!==u.r.indexOf("%")?u.r.split("%").shift():u.r,c=-1!==u.g.indexOf("%")?u.g.split("%").shift():u.g,f=-1!==u.b.indexOf("%")?u.b.split("%").shift():u.b;s=wl(Number(l)/100*255)+wl(Number(c)/100*255)+wl(Number(f)/100*255)}else if(t["a:prstClr"]){var h=gl(a=t["a:prstClr"],["attrs","val"]);-1!==(o=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].indexOf(h))&&(i=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][o]),s=i}else if(t["a:hslClr"]){var d=(a=t["a:hslClr"]).attrs,p=function(t,e,r){var n,a=2*r-(n=r<=.5?r*(e+1):r+e-r*e);return{r:255*Sl(a,n,2+(t/=60)),g:255*Sl(a,n,t),b:255*Sl(a,n,t-2)}}(Number(d.hue)/1e5,Number(-1!==d.sat.indexOf("%")?d.sat.split("%").shift():d.sat)/100,Number(-1!==d.lum.indexOf("%")?d.lum.split("%").shift():d.lum)/100);s=wl(p.r)+wl(p.g)+wl(p.b)}else if(t["a:sysClr"]){var g=gl(a=t["a:sysClr"],["attrs","lastClr"]);g&&(s=g)}var b=!1,m=parseInt(gl(a,["a:alpha","attrs","val"]))/1e5;if(!isNaN(m)){var v=Lu(s);v.setAlpha(m),s=v.toHex8(),b=!0}var y=parseInt(gl(a,["a:hueMod","attrs","val"]))/1e5;isNaN(y)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=n.h*e;return a>=360&&(a-=360),r?Lu({h:a,s:n.s,l:n.l,a:n.a}).toHex8():Lu({h:a,s:n.s,l:n.l,a:n.a}).toHex()}(s,y,b));var w=parseInt(gl(a,["a:lumMod","attrs","val"]))/1e5;isNaN(w)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=n.l*e;return a>=1&&(a=1),r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}(s,w,b));var _=parseInt(gl(a,["a:lumOff","attrs","val"]))/1e5;isNaN(_)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=e+n.l;return a>=1?r?Lu({h:n.h,s:n.s,l:1,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:1,a:n.a}).toHex():r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}(s,_,b));var k=parseInt(gl(a,["a:satMod","attrs","val"]))/1e5;isNaN(k)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=n.s*e;return a>=1&&(a=1),r?Lu({h:n.h,s:a,l:n.l,a:n.a}).toHex8():Lu({h:n.h,s:a,l:n.l,a:n.a}).toHex()}(s,k,b));var x=parseInt(gl(a,["a:shade","attrs","val"]))/1e5;isNaN(x)||(s=function(t,e,r){var n=Lu(t).toHsl();e>=1&&(e=1);var a=Math.min(n.l*e,1);return r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}(s,x,b));var S=parseInt(gl(a,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(s=Cl(s,S,b)),s&&-1===s.indexOf("#")&&(s="#"+s),s}function Fl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Nl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function Nl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ul(t,e){t.constructor!==Array&&(t=[t]);var r,n=[],a=Fl(t);try{for(a.s();!(r=a.n()).done;){var i=r.value,o=gl(i,["c:spPr","a:solidFill","a:schemeClr"]);o||(o=gl(i,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),o||(o=gl(i,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));var s=gl(o,["attrs","val"]);if(s){s=gl(e.themeContent,["a:theme","a:themeElements","a:clrScheme","a:".concat(s),"a:srgbClr","attrs","val"]);var u=gl(o,["a:tint","attrs","val"])/1e5;s&&!isNaN(u)&&(s=Cl(s,u))}else s=gl(i,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);s&&(s="#"+s),n.push(s)}}catch(t){a.e(t)}finally{a.f()}return n}function Hl(t){var e=[];if(!t)return e;if(t["c:xVal"]){var r=[];pl(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r),r=[],pl(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r)}else pl(t,(function(t,r){var n=[],a=gl(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,i={};return gl(t,["c:cat","c:strRef","c:strCache","c:pt"])?pl(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],(function(t){return i[t.attrs.idx]=t["c:v"],""})):gl(t,["c:cat","c:numRef","c:numCache","c:pt"])&&pl(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return i[t.attrs.idx]=t["c:v"],""})),gl(t,["c:val","c:numRef","c:numCache","c:pt"])&&pl(t["c:val"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return n.push({x:t.attrs.idx,y:parseFloat(t["c:v"])}),""})),e.push({key:a,values:n,xlabels:i}),""}));return e}function Wl(t,e){var r=null;for(var n in t)switch(n){case"c:lineChart":r={type:"lineChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"]),marker:!!t[n]["c:marker"]};break;case"c:line3DChart":r={type:"line3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"])};break;case"c:barChart":r={type:"barChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"]),barDir:gl(t[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":r={type:"bar3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"]),barDir:gl(t[n],["c:barDir","attrs","val"])};break;case"c:pieChart":r={type:"pieChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"]["c:dPt"],e)};break;case"c:pie3DChart":r={type:"pie3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"]["c:dPt"],e)};break;case"c:doughnutChart":r={type:"doughnutChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"]["c:dPt"],e),holeSize:gl(t[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":r={type:"areaChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":r={type:"area3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":r={type:"scatterChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),style:gl(t[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":r={type:"bubbleChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e)};break;case"c:radarChart":r={type:"radarChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),style:gl(t[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":r={type:"surfaceChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e)};break;case"c:surface3DChart":r={type:"surface3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e)};break;case"c:stockChart":r={type:"stockChart",data:Hl(t[n]["c:ser"]),colors:[]}}return r}function Zl(t,e,r,n){var a=gl(t,["a:pPr","attrs","algn"]);if(a||(a=gl(e,["a:pPr","attrs","algn"])),!a)if("title"===r||"ctrTitle"===r||"subTitle"===r){var i=1,o=gl(e,["a:pPr","attrs","lvl"]);o&&(i=parseInt(o)+1);var s="a:lvl"+i+"pPr";(a=gl(n,["slideLayoutTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(a=gl(n,["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"])),a||(a=gl(n,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),a||"subTitle"!==r||(a=gl(n,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else a=gl(n,"body"===r?["slideMasterTextStyles","p:bodyStyle","a:lvl1pPr","attrs","algn"]:["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle","a:lvl1pPr","attrs","algn"]);var u="left";if(a)switch(a){case"l":u="left";break;case"r":u="right";break;case"ctr":u="center";break;case"just":case"dist":u="justify";break;default:u="inherit"}return u}function ql(t,e,r){var n=gl(t,["p:txBody","a:bodyPr","attrs","anchor"]);return n||(n=gl(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(n=gl(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(n="t"),"ctr"===n?"mid":"b"===n?"down":"up"}var Yl=72/914400;function Gl(t,e,r){var n;return t?n=t["a:off"].attrs:e?n=e["a:off"].attrs:r&&(n=r["a:off"].attrs),n?{top:parseInt(n.y)*Yl,left:parseInt(n.x)*Yl}:{top:0,left:0}}function Vl(t,e,r){var n;return t?n=t["a:ext"].attrs:e?n=e["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n?{width:parseInt(n.cx)*Yl,height:parseInt(n.cy)*Yl}:{width:0,height:0}}function Kl(t,e){var r=zl(t,void 0,void 0,e),n=t.attrs,a=n.dir?parseInt(n.dir)/6e4:0,i=parseInt(n.dist)*Yl,o=n.blurRad?parseInt(n.blurRad)*Yl:"",s=i*Math.sin(a*Math.PI/180);return{h:i*Math.cos(a*Math.PI/180),v:s,blur:o,color:r}}function Xl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return $l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $l(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function $l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jl(t,e,r,n,a){if(!t)return"";var i,o="",s=gl(e,["p:style","a:fontRef"]),u=t["a:p"],l="",c=Xl(u.constructor===Array?u:[u]);try{for(c.s();!(i=c.n()).done;){var f=i.value,h=f["a:r"],d=f["a:fld"],p=f["a:br"];h&&(h=h.constructor===Array?h:[h],d&&(d=d.constructor===Array?d:[d],h=h.concat(d)),p&&((p=p.constructor===Array?p:[p]).forEach((function(t){return t.type="br"})),p.length>1&&p.shift(),(h=h.concat(p)).sort((function(t,e){return!t.attrs||!e.attrs||t.attrs.order-e.attrs.order}))));var g=Zl(f,e,n,a),b=Ql(f);if(b?(l?l&&l!==b&&(o+="</".concat(l,">"),o+="<".concat(b,">"),l=b):(o+="<".concat(b,">"),l=b),o+='<li style="text-align: '.concat(g,';">')):(l&&(o+="</".concat(l,">"),l=""),o+='<p style="text-align: '.concat(g,';">')),h){var m,v=Xl(h);try{for(v.s();!(m=v.n()).done;){o+=tc(m.value,f,t,s,r,n,a)}}catch(t){v.e(t)}finally{v.f()}}else o+=tc(f,e,t,s,r,n,a);o+=b?"</li>":"</p>"}}catch(t){c.e(t)}finally{c.f()}return o}function Ql(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function tc(t,e,r,n,a,i,o){var s=r["a:lstStyle"],u=o.slideMasterTextStyles,l=1,c=gl(e["a:pPr"],["attrs","lvl"]);void 0!==c&&(l=parseInt(c)+1);var f=t["a:t"];"string"!=typeof f&&(f=gl(t,["a:fld","a:t"])),"string"!=typeof f&&(f="&nbsp;");var h="",d=function(t,e,r,n,a,i){var o,s=gl(t,["a:rPr"]);if(s&&"SOLID_FILL"===Al(s)&&(o=zl(s["a:solidFill"],void 0,void 0,i)),!o&&gl(r,["a:lvl"+a+"pPr","a:defRPr"])){var u=gl(r,["a:lvl"+a+"pPr","a:defRPr"]);"SOLID_FILL"===Al(u)&&(o=zl(u["a:solidFill"],void 0,void 0,i))}if(!o){var l=gl(e,["p:style","a:fontRef"]);l&&(o=zl(l,void 0,void 0,i)),!o&&n&&(o=zl(n,void 0,void 0,i))}return o||""}(t,e,s,n,l,o),p=function(t,e,r,n){var a,i;if(gl(t,["a:rPr","attrs","sz"])&&(a=gl(t,["a:rPr","attrs","sz"])/100),isNaN(a)||!a){var o=gl(e,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);a=parseInt(o)/100}return!isNaN(a)&&a||("title"===r||"subTitle"===r||"ctrTitle"===r?i=gl(n,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"body"===r?i=gl(n,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"dt"===r||"sldNum"===r?i="1200":r||(i=gl(n,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),i&&(a=parseInt(i)/100)),gl(t,["a:rPr","attrs","baseline"])&&!isNaN(a)&&(a-=10),(a=isNaN(a)||!a?18:a)+"pt"}(t,a,i,u),g=function(t,e,r){var n=gl(t,["a:rPr","a:latin","attrs","typeface"]);if(!n){var a=gl(r.themeContent,["a:theme","a:themeElements","a:fontScheme"]);n=gl(a,"title"===e||"subTitle"===e||"ctrTitle"===e?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return n||""}(t,i,o),b=function(t){return"1"===gl(t,["a:rPr","attrs","b"])?"bold":""}(t),m=function(t){return"1"===gl(t,["a:rPr","attrs","i"])?"italic":""}(t),v=function(t){return"sng"===gl(t,["a:rPr","attrs","u"])?"underline":""}(t),y=function(t){return"sngStrike"===gl(t,["a:rPr","attrs","strike"])?"line-through":""}(t),w=function(t){var e=gl(t,["a:rPr","attrs","spc"]);return e?parseInt(e)/100+"pt":""}(t),_=function(t,e){var r=gl(t,["a:rPr","a:effectLst","a:outerShdw"]);if(r){var n=Kl(r,e);if(n){var a=n.h,i=n.v,o=n.blur,s=n.color;if(!isNaN(i)&&!isNaN(a))return a+"pt "+i+"pt "+(o?o+"pt":"")+" "+s}}return""}(t,o),k=function(t){var e=gl(t,["a:rPr","attrs","baseline"]);return e?parseInt(e)>0?"super":"sub":""}(t);d&&(h+="color: ".concat(d,";")),p&&(h+="font-size: ".concat(p,";")),g&&(h+="font-family: ".concat(g,";")),b&&(h+="font-weight: ".concat(b,";")),m&&(h+="font-style: ".concat(m,";")),v&&(h+="text-decoration: ".concat(v,";")),y&&(h+="text-decoration-line: ".concat(y,";")),w&&(h+="letter-spacing: ".concat(w,";")),k&&(h+="vertical-align: ".concat(k,";")),_&&(h+="text-shadow: ".concat(_,";"));var x=gl(t,["a:rPr","a:hlinkClick","attrs","r:id"]);if(x){var S=o.slideResObj[x].target;return'<span style="'.concat(h,'"><a href="').concat(S,'" target="_blank">').concat(f.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</a></span>")}return'<span style="'.concat(h,'">').concat(f.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</span>")}function ec(t,e,r,n,a,i,o){var s,u=a;if(i>=a)for(;u<=i;){var l=u*(Math.PI/180),c=t+Math.cos(l)*r,f=e+Math.sin(l)*n;u===a&&(s=" M"+c+" "+f),s+=" L"+c+" "+f,u++}else for(;u>i;){var h=u*(Math.PI/180),d=t+Math.cos(h)*r,p=e+Math.sin(h)*n;u===a&&(s=" M "+d+" "+p),s+=" L "+d+" "+p,u--}return s+=o?" z":""}function rc(t,e,r){var n=gl(t,["a:pathLst"]),a=gl(n,["a:path"]);Array.isArray(a)&&(a=a.shift());var i=parseInt(a.attrs.w),o=parseInt(a.attrs.h),s=0===i?0:1/i*e,u=0===o?0:1/o*r,l="",c=gl(a,["a:moveTo"]),f=a["a:lnTo"],h=a["a:cubicBezTo"],d=a["a:arcTo"],p=gl(a,["a:close"]);Array.isArray(c)||(c=[c]);var g=[];if(c.length>0){if(Object.keys(c).forEach((function(t){var e=c[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,a=r.y,i=r.order;g.push({type:"movto",x:n,y:a,order:i})}))})),f&&Object.keys(f).forEach((function(t){var e=f[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,a=r.y,i=r.order;g.push({type:"lnto",x:n,y:a,order:i})}))})),h){var b=[];Array.isArray(h)||(h=[h]),Object.keys(h).forEach((function(t){b.push(h[t]["a:pt"])})),b.forEach((function(t){var e=[];t.forEach((function(t){var r={x:t.attrs.x,y:t.attrs.y};e.push(r)}));var r=t[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:e,order:r})}))}if(d){var m=d.attrs,v=m.order,y=m.hR,w=m.wR,_=m.stAng,k=m.swAng,x=0,S=0,C=gl(d,["a:pt","attrs"]);C&&(x=C.x,S=C.y),g.push({type:"arcTo",hR:y,wR:w,stAng:_,swAng:k,shftX:x,shftY:S,order:v})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach((function(){g.push({type:"close",order:1/0})}))),g.sort((function(t,e){return t.order-e.order}));for(var A=0;A<g.length;){if("movto"===g[A].type)l+=" M"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u;else if("lnto"===g[A].type){l+=" L"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u}else if("cubicBezTo"===g[A].type){l+=" C"+parseInt(g[A].cubBzPt[0].x)*s+","+parseInt(g[A].cubBzPt[0].y)*u+" "+parseInt(g[A].cubBzPt[1].x)*s+","+parseInt(g[A].cubBzPt[1].y)*u+" "+parseInt(g[A].cubBzPt[2].x)*s+","+parseInt(g[A].cubBzPt[2].y)*u}else if("arcTo"===g[A].type){var E=parseInt(g[A].hR)*s,R=parseInt(g[A].wR)*u,O=parseInt(g[A].stAng)/6e4;l+=ec(R,E,R,E,O,O+parseInt(g[A].swAng)/6e4,!1)}else"close"===g[A].type&&(l+="z");A++}}return l}function nc(t,e){var r={};if(t["a:bottom"]){var n=xl({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);r.bottom=n}if(t["a:top"]){var a=xl({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);r.top=a}if(t["a:right"]){var i=xl({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);r.right=i}if(t["a:left"]){var o=xl({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);r.left=o}return r}function ac(t,e,r,n){return ic.apply(this,arguments)}function ic(){return(ic=r(u.mark((function t(e,r,n,a){var i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=gl(e,["attrs","rowSpan"]),o=gl(e,["attrs","gridSpan"]),s=gl(e,["attrs","vMerge"]),l=gl(e,["attrs","hMerge"]),!(d=gl(e,["a:tcPr"]))){t.next=11;break}return p={"p:spPr":d},t.next=9,Dl(p,void 0,!1,a,"slide");case 9:(g=t.sent)&&"color"===g.type&&g.value&&(c=g.value);case 11:return c||(n&&(b=gl(r,[n,"a:tcStyle","a:fill","a:solidFill"])),b&&(c=zl(b,void 0,void 0,a))),n&&(m=gl(r,[n,"a:tcTxStyle"])),m&&(f=zl(m,void 0,void 0,a),"on"===gl(m,["attrs","b"])&&(h=!0)),(v=gl(e,["a:tcPr","a:lnB"]))||(n&&(v=gl(r[n],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),v||(v=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"]))),(y=gl(e,["a:tcPr","a:lnT"]))||(n&&(y=gl(r[n],["a:tcStyle","a:tcBdr","a:top","a:ln"])),y||(y=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"]))),(w=gl(e,["a:tcPr","a:lnL"]))||(n&&(w=gl(r[n],["a:tcStyle","a:tcBdr","a:left","a:ln"])),w||(w=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"]))),(_=gl(e,["a:tcPr","a:lnR"]))||(n&&(_=gl(r[n],["a:tcStyle","a:tcBdr","a:right","a:ln"])),_||(_=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"]))),k={},v&&(k.bottom=xl(v,void 0,a)),y&&(k.top=xl(y,void 0,a)),w&&(k.left=xl(w,void 0,a)),_&&(k.right=xl(_,void 0,a)),t.abrupt("return",{fillColor:c,fontColor:f,fontBold:h,borders:k,rowSpan:i?+i:void 0,colSpan:o?+o:void 0,vMerge:s?+s:void 0,hMerge:l?+l:void 0});case 28:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function oc(t,e,r,n,a){var i,o,s;if(n&&n["a:wholeTbl"]){var u=gl(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(u){var l=zl(u,void 0,void 0,a);l&&(i=l)}var c=gl(n,["a:wholeTbl","a:tcTxStyle"]);if(c){var f=zl(c,void 0,void 0,a);f&&(o=f),"on"===gl(c,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){var h=gl(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(h){var d=zl(h,void 0,void 0,a);d&&(i=d)}var p=gl(n,["a:firstRow","a:tcTxStyle"]);if(p){var g=zl(p,void 0,void 0,a);g&&(o=g),"on"===gl(p,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(i="",e%2==0&&n["a:band2H"]){var b=gl(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(b){var m=zl(b,void 0,void 0,a);m&&(i=m)}var v=gl(n,["a:band2H","a:tcTxStyle"]);if(v){var y=zl(v,void 0,void 0,a);y&&(o=y)}"on"===gl(v,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){var w=gl(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=zl(w,void 0,void 0,a);_&&(i=_)}var k=gl(n,["a:band1H","a:tcTxStyle"]);if(k){var x=zl(k,void 0,void 0,a);x&&(o=x),"on"===gl(k,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){var S=gl(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(S){var C=zl(S,void 0,void 0,a);C&&(i=C)}var A=gl(n,["a:lastRow","a:tcTxStyle"]);if(A){var E=zl(A,void 0,void 0,a);E&&(o=E),"on"===gl(A,["attrs","b"])&&(s=!0)}}return{fillColor:i,fontColor:o,fontBold:s}}function sc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uc(t){return function(t){if(Array.isArray(t))return sc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return sc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lc(t){var e=[];return"object"!==mu(t)||(t["m:oMath"]&&(e=e.concat(t["m:oMath"])),Object.values(t).forEach((function(t){(Array.isArray(t)||"object"===mu(t))&&(e=e.concat(lc(t)))}))),e}function cc(t,e){var r=fc(t["m:e"]),n=fc(t["m:lim"]);return"low"===e?"".concat(r,"_{").concat(n,"}"):"".concat(r,"^{").concat(n,"}")}function fc(t){if(!t)return"";if(Array.isArray(t))return t.map((function(t){return fc(t)})).join("");for(var e=[],r=Object.keys(t),n=function(){var r=i[a];Array.isArray(t[r])?e.push.apply(e,uc(t[r].map((function(t){return{key:r,value:t}})))):e.push({key:r,value:t[r]})},a=0,i=r;a<i.length;a++)n();return e.sort((function(t,e){var r=0;"m:r"===t.key&&t.value&&t.value["a:rPr"]?r=t.value["a:rPr"].attrs.order:t.value["".concat(t.key,"Pr")]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&(r=t.value["".concat(t.key,"Pr")]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]["a:rPr"].attrs.order);var n=0;return"m:r"===e.key&&e.value&&e.value["a:rPr"]?n=e.value["a:rPr"].attrs.order:e.value["".concat(e.key,"Pr")]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&(n=e.value["".concat(e.key,"Pr")]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]["a:rPr"].attrs.order),r-n})),e.map((function(t){var e,r,n,a,i,o,s,u,l,c,f,h,d,p,g,b,m,v=t.key,y=t.value;return"m:f"===v?(r=fc((e=y)["m:num"]),n=fc(e["m:den"]),"\\frac{".concat(r,"}{").concat(n,"}")):"m:sSup"===v?(i=fc((a=y)["m:e"]),o=fc(a["m:sup"]),"".concat(i,"^{").concat(o,"}")):"m:sSub"===v?function(t){var e=fc(t["m:e"]),r=fc(t["m:sub"]);return"".concat(e,"_{").concat(r,"}")}(y):"m:rad"===v?(u=fc((s=y)["m:deg"]),l=fc(s["m:e"]),u?"\\sqrt[".concat(u,"]{").concat(l,"}"):"\\sqrt{".concat(l,"}")):"m:nary"===v?function(t){var e=gl(t,["m:naryPr","m:chr","attrs","m:val"])||"∫",r=fc(t["m:sub"]),n=fc(t["m:sup"]),a=fc(t["m:e"]);return"".concat(e,"_{").concat(r,"}^{").concat(n,"}{").concat(a,"}")}(y):"m:limLow"===v?cc(y,"low"):"m:limUpp"===v?cc(y,"upp"):"m:d"===v?function(t){var e=gl(t,["m:dPr","m:begChr","attrs","m:val"]),r=gl(t,["m:dPr","m:endChr","attrs","m:val"]);e||r||(e="(",r=")"),e&&r&&(e="\\left".concat(e),r="\\right".concat(r));var n=fc(t["m:e"]);return"".concat(e).concat(n).concat(r)}(y):"m:func"===v?(f=fc((c=y)["m:fName"]),h=fc(c["m:e"]),"\\".concat(f,"{").concat(h,"}")):"m:groupChr"===v?(p=gl(d=y,["m:groupChrPr","m:chr","attrs","m:val"]),g=fc(d["m:e"]),"".concat(p).concat(g).concat(p)):"m:eqArr"===v?(b=y["m:e"].map((function(t){return fc(t)})).join(" \\\\ "),"\\begin{cases} ".concat(b," \\end{cases}")):"m:bar"===v?function(t){var e=fc(t["m:e"]);return"top"===gl(t,["m:barPr","m:pos","attrs","m:val"])?"\\overline{".concat(e,"}"):"\\underline{".concat(e,"}")}(y):"m:acc"===v?function(t){var e=gl(t,["m:accPr","m:chr","attrs","m:val"])||"^",r=fc(t["m:e"]);switch(e){case"́":return"\\acute{".concat(r,"}");case"̀":return"\\grave{".concat(r,"}");case"̂":return"\\hat{".concat(r,"}");case"̃":return"\\tilde{".concat(r,"}");case"̄":return"\\bar{".concat(r,"}");case"̆":return"\\breve{".concat(r,"}");case"̇":return"\\dot{".concat(r,"}");case"̈":return"\\ddot{".concat(r,"}");case"̊":return"\\mathring{".concat(r,"}");case"̋":return"\\H{".concat(r,"}");case"̌":return"\\check{".concat(r,"}");case"̧":return"\\c{".concat(r,"}");default:return"\\".concat(e,"{").concat(r,"}")}}(y):"m:borderBox"===v?function(t){var e=fc(t["m:e"]);return"\\boxed{".concat(e,"}")}(y):"m:m"===v?(m=y["m:mr"].map((function(t){return t["m:e"].map((function(t){return fc(t)})).join(" & ")})),"\\begin{matrix} ".concat(m.join(" \\\\ ")," \\end{matrix}")):"m:r"===v?fc(y):"m:t"===v?y:""})).join("")}function hc(t){return t.replaceAll(/&lt;/g,"<").replaceAll(/&gt;/g,">").replaceAll(/&amp;/g,"&").replaceAll(/&apos;/g,"'").replaceAll(/&quot;/g,'"')}function dc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pc(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?dc(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return bc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bc(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function bc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mc(t){return vc.apply(this,arguments)}function vc(){return(vc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d,p,g,b;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,bu.loadAsync(e);case 3:return n=t.sent,t.next=6,yc(n);case 6:return a=t.sent,t.next=9,_c(n);case 9:return i=t.sent,o=i.width,s=i.height,l=i.defaultTextStyle,t.next=15,xc(n);case 15:c=t.sent,f=c.themeContent,h=c.themeColors,d=gc(a.slides),t.prev=19,d.s();case 21:if((p=d.n()).done){t.next=29;break}return g=p.value,t.next=25,Cc(n,g,f,l);case 25:b=t.sent,r.push(b);case 27:t.next=21;break;case 29:t.next=34;break;case 31:t.prev=31,t.t0=t.catch(19),d.e(t.t0);case 34:return t.prev=34,d.f(),t.finish(34);case 37:return t.abrupt("return",{slides:r,themeColors:h,size:{width:o,height:s}});case 38:case"end":return t.stop()}}),t,null,[[19,31,34,37]])})))).apply(this,arguments)}function yc(t){return wc.apply(this,arguments)}function wc(){return(wc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"[Content_Types].xml");case 2:r=t.sent,n=r.Types.Override,a=[],i=[],o=gc(n),t.prev=7,o.s();case 9:if((s=o.n()).done){t.next=20;break}l=s.value,t.t0=l.attrs.ContentType,t.next="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"===t.t0?14:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"===t.t0?16:18;break;case 14:return a.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 16:return i.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 18:t.next=9;break;case 20:t.next=25;break;case 22:t.prev=22,t.t1=t.catch(7),o.e(t.t1);case 25:return t.prev=25,o.f(),t.finish(25);case 28:return c=function(t,e){return+/(\d+)\.xml/.exec(t)[1]-+/(\d+)\.xml/.exec(e)[1]},a=a.sort(c),i=i.sort(c),t.abrupt("return",{slides:a,slideLayouts:i});case 32:case"end":return t.stop()}}),t,null,[[7,22,25,28]])})))).apply(this,arguments)}function _c(t){return kc.apply(this,arguments)}function kc(){return(kc=r(u.mark((function t(e){var r,n,a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/presentation.xml");case 2:return r=t.sent,n=r["p:presentation"]["p:sldSz"].attrs,a=r["p:presentation"]["p:defaultTextStyle"],t.abrupt("return",{width:parseInt(n.cx)*Yl,height:parseInt(n.cy)*Yl,defaultTextStyle:a});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xc(t){return Sc.apply(this,arguments)}function Sc(){return Sc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/_rels/presentation.xml.rels");case 2:if(r=t.sent,(n=r.Relationships.Relationship).constructor!==Array){t.next=25;break}i=gc(n),t.prev=6,i.s();case 8:if((o=i.n()).done){t.next=15;break}if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"!==(s=o.value).attrs.Type){t.next=13;break}return a=s.attrs.Target,t.abrupt("break",15);case 13:t.next=8;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),i.e(t.t0);case 20:return t.prev=20,i.f(),t.finish(20);case 23:t.next=26;break;case 25:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(a=n.attrs.Target);case 26:return t.next=28,Eu(e,"ppt/"+a);case 28:if(l=t.sent,c=[],!(f=gl(l,["a:theme","a:themeElements","a:clrScheme"]))){t.next=41;break}h=1;case 33:if(!(h<=6)){t.next=41;break}if(void 0!==f["a:accent".concat(h)]){t.next=36;break}return t.abrupt("break",41);case 36:(d=gl(f,["a:accent".concat(h),"a:srgbClr","attrs","val"]))&&c.push("#"+d);case 38:h++,t.next=33;break;case 41:return t.abrupt("return",{themeContent:l,themeColors:c});case 42:case"end":return t.stop()}}),t,null,[[6,17,20,23]])}))),Sc.apply(this,arguments)}function Cc(t,e,r,n){return Ac.apply(this,arguments)}function Ac(){return Ac=r(u.mark((function t(e,r,n,a){var i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,at,it,ot,st,ut,lt,ct;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.replace("slides/slide","slides/_rels/slide")+".rels",t.next=3,Eu(e,i);case 3:o=t.sent,(s=o.Relationships.Relationship).constructor!==Array&&(s=[s]),l="",c="",f="",h="",d="",p={},g={},b={},m={},v={},y=gc(s),t.prev=17,y.s();case 19:if((w=y.n()).done){t.next=34;break}_=w.value,t.t0=_.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"===t.t0?24:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"===t.t0?26:"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"===t.t0?28:("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"===t.t0||t.t0,31);break;case 24:return c=_.attrs.Target.replace("../","ppt/"),t.abrupt("break",32);case 26:return l=_.attrs.Target.replace("../","ppt/"),t.abrupt("break",32);case 28:return d=_.attrs.Target.replace("../","ppt/"),p[_.attrs.Id]={type:_.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:_.attrs.Target.replace("../","ppt/")},t.abrupt("break",32);case 31:p[_.attrs.Id]={type:_.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:_.attrs.Target.replace("../","ppt/")};case 32:t.next=19;break;case 34:t.next=39;break;case 36:t.prev=36,t.t1=t.catch(17),y.e(t.t1);case 39:return t.prev=39,y.f(),t.finish(39);case 42:return t.next=44,Eu(e,l);case 44:return k=t.sent,x=Ec(k),t.next=48,Eu(e,c);case 48:return S=t.sent,t.next=51,Tc(S);case 51:return C=t.sent,A=c.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",t.next=55,Eu(e,A);case 55:E=t.sent,(s=E.Relationships.Relationship).constructor!==Array&&(s=[s]),R=gc(s),t.prev=59,R.s();case 61:if((O=R.n()).done){t.next=71;break}T=O.value,t.t2=T.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"===t.t2?66:68;break;case 66:return f=T.attrs.Target.replace("../","ppt/"),t.abrupt("break",69);case 68:g[T.attrs.Id]={type:T.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:T.attrs.Target.replace("../","ppt/")};case 69:t.next=61;break;case 71:t.next=76;break;case 73:t.prev=73,t.t3=t.catch(59),R.e(t.t3);case 76:return t.prev=76,R.f(),t.finish(76);case 79:return t.next=81,Eu(e,f);case 81:return P=t.sent,L=gl(P,["p:sldMaster","p:txStyles"]),M=Tc(P),I=f.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",t.next=87,Eu(e,I);case 87:B=t.sent,(s=B.Relationships.Relationship).constructor!==Array&&(s=[s]),D=gc(s),t.prev=91,D.s();case 93:if((j=D.n()).done){t.next=103;break}z=j.value,t.t4=z.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.t4?98:100;break;case 98:return h=z.attrs.Target.replace("../","ppt/"),t.abrupt("break",101);case 100:b[z.attrs.Id]={type:z.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:z.attrs.Target.replace("../","ppt/")};case 101:t.next=93;break;case 103:t.next=108;break;case 105:t.prev=105,t.t5=t.catch(91),D.e(t.t5);case 108:return t.prev=108,D.f(),t.finish(108);case 111:if(!h){t.next=118;break}return F=h.split("/").pop(),N=h.replace(F,"_rels/"+F)+".rels",t.next=116,Eu(e,N);case 116:if((U=t.sent)&&(s=U.Relationships.Relationship)){s.constructor!==Array&&(s=[s]),H=gc(s);try{for(H.s();!(W=H.n()).done;)Z=W.value,m[Z.attrs.Id]={type:Z.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:Z.attrs.Target.replace("../","ppt/")}}catch(t){H.e(t)}finally{H.f()}}case 118:if(q={},!d){t.next=130;break}return Y=d.split("/").pop(),G=d.replace(Y,"_rels/"+Y)+".rels",t.next=124,Eu(e,d);case 124:return(q=t.sent)&&(V=JSON.stringify(q).replace(/dsp:/g,"p:"),q=JSON.parse(V)),t.next=128,Eu(e,G);case 128:if(K=t.sent){(s=K.Relationships.Relationship).constructor!==Array&&(s=[s]),X=gc(s);try{for(X.s();!($=X.n()).done;)J=$.value,v[J.attrs.Id]={type:J.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:J.attrs.Target.replace("../","ppt/")}}catch(t){X.e(t)}finally{X.f()}}case 130:return t.next=132,Eu(e,"ppt/tableStyles.xml");case 132:return Q=t.sent,t.next=135,Eu(e,r);case 135:return tt=t.sent,et=tt["p:sld"]["p:cSld"]["p:spTree"],rt={zip:e,slideLayoutContent:S,slideLayoutTables:C,slideMasterContent:P,slideMasterTables:M,slideContent:tt,tableStyles:Q,slideResObj:p,slideMasterTextStyles:L,layoutResObj:g,masterResObj:b,themeContent:n,themeResObj:m,digramFileContent:q,diagramResObj:v,defaultTextStyle:a},t.next=140,Rc(rt);case 140:return nt=t.sent,t.next=143,Il(rt);case 143:at=t.sent,it=[],t.t6=u.keys(et);case 146:if((t.t7=t.t6()).done){t.next=170;break}ot=t.t7.value,et[ot].constructor!==Array&&(et[ot]=[et[ot]]),st=gc(et[ot]),t.prev=150,st.s();case 152:if((ut=st.n()).done){t.next=160;break}return lt=ut.value,t.next=156,Pc(ot,lt,et,rt,"slide");case 156:(ct=t.sent)&&it.push(ct);case 158:t.next=152;break;case 160:t.next=165;break;case 162:t.prev=162,t.t8=t.catch(150),st.e(t.t8);case 165:return t.prev=165,st.f(),t.finish(165);case 168:t.next=146;break;case 170:return t.abrupt("return",{fill:at,elements:it,layoutElements:nt,note:x});case 171:case"end":return t.stop()}}),t,null,[[17,36,39,42],[59,73,76,79],[91,105,108,111],[150,162,165,168]])}))),Ac.apply(this,arguments)}function Ec(t){var e="",r=gl(t,["p:notes","p:cSld","p:spTree","p:sp"]);if(!r)return"";r.constructor!==Array&&(r=[r]);var n,a=gc(r);try{for(a.s();!(n=a.n()).done;){var i=gl(n.value,["p:txBody","a:p","a:r"]);if(i){i.constructor!==Array&&(i=[i]);var o,s=gc(i);try{for(s.s();!(o=s.n()).done;){var u=gl(o.value,["a:t"]);u&&"string"==typeof u&&(e+=u)}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){a.e(t)}finally{a.f()}return e}function Rc(t){return Oc.apply(this,arguments)}function Oc(){return Oc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d,p,g,b;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=[],n=e.slideLayoutContent,a=e.slideMasterContent,i=gl(n,["p:sldLayout","p:cSld","p:spTree"]),o=gl(a,["p:sldMaster","p:cSld","p:spTree"]),s=gl(n,["p:sldLayout","attrs","showMasterSp"]),!i){t.next=32;break}t.t0=u.keys(i);case 8:if((t.t1=t.t0()).done){t.next=32;break}if(l=t.t1.value,i[l].constructor!==Array){t.next=24;break}c=0;case 12:if(!(c<i[l].length)){t.next=22;break}if(gl(i[l][c],["p:nvSpPr","p:nvPr","p:ph"])){t.next=19;break}return t.next=17,Pc(l,i[l][c],i,e,"slideLayoutBg");case 17:(f=t.sent)&&r.push(f);case 19:c++,t.next=12;break;case 22:t.next=30;break;case 24:if(gl(i[l],["p:nvSpPr","p:nvPr","p:ph"])){t.next=30;break}return t.next=28,Pc(l,i[l],i,e,"slideLayoutBg");case 28:(h=t.sent)&&r.push(h);case 30:t.next=8;break;case 32:if(!o||"0"===s){t.next=58;break}t.t2=u.keys(o);case 34:if((t.t3=t.t2()).done){t.next=58;break}if(d=t.t3.value,o[d].constructor!==Array){t.next=50;break}p=0;case 38:if(!(p<o[d].length)){t.next=48;break}if(gl(o[d][p],["p:nvSpPr","p:nvPr","p:ph"])){t.next=45;break}return t.next=43,Pc(d,o[d][p],o,e,"slideMasterBg");case 43:(g=t.sent)&&r.push(g);case 45:p++,t.next=38;break;case 48:t.next=56;break;case 50:if(gl(o[d],["p:nvSpPr","p:nvPr","p:ph"])){t.next=56;break}return t.next=54,Pc(d,o[d],o,e,"slideMasterBg");case 54:(b=t.sent)&&r.push(b);case 56:t.next=34;break;case 58:return t.abrupt("return",r);case 59:case"end":return t.stop()}}),t)}))),Oc.apply(this,arguments)}function Tc(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],r={},n={},a={};for(var i in e)if("p:nvGrpSpPr"!==i&&"p:grpSpPr"!==i){var o=e[i];if(o.constructor===Array){var s,u=gc(o);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=l["p:nvSpPr"],f=gl(c,["p:cNvPr","attrs","id"]),h=gl(c,["p:nvPr","p:ph","attrs","idx"]),d=gl(c,["p:nvPr","p:ph","attrs","type"]);f&&(r[f]=l),h&&(n[h]=l),d&&(a[d]=l)}}catch(t){u.e(t)}finally{u.f()}}else{var p=o["p:nvSpPr"],g=gl(p,["p:cNvPr","attrs","id"]),b=gl(p,["p:nvPr","p:ph","attrs","idx"]),m=gl(p,["p:nvPr","p:ph","attrs","type"]);g&&(r[g]=o),b&&(n[b]=o),m&&(a[m]=o)}}return{idTable:r,idxTable:n,typeTable:a}}function Pc(t,e,r,n,a){return Lc.apply(this,arguments)}function Lc(){return(Lc=r(u.mark((function t(e,r,n,a,i){var o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e,t.next="p:sp"===t.t0?3:"p:cxnSp"===t.t0?7:"p:pic"===t.t0?11:"p:graphicFrame"===t.t0?15:"p:grpSp"===t.t0?19:"mc:AlternateContent"===t.t0?23:34;break;case 3:return t.next=5,jc(r,n,a,i);case 5:return o=t.sent,t.abrupt("break",34);case 7:return t.next=9,Fc(r,n,a,i);case 9:return o=t.sent,t.abrupt("break",34);case 11:return t.next=13,Wc(r,a,i);case 13:return o=t.sent,t.abrupt("break",34);case 15:return t.next=17,qc(r,a,i);case 17:return o=t.sent,t.abrupt("break",34);case 19:return t.next=21,Bc(r,a,i);case 21:return o=t.sent,t.abrupt("break",34);case 23:if(!gl(r,["mc:Fallback","p:grpSpPr","a:xfrm"])){t.next=29;break}return t.next=26,Bc(gl(r,["mc:Fallback"]),a,i);case 26:o=t.sent,t.next=33;break;case 29:if(!gl(r,["mc:Choice"])){t.next=33;break}return t.next=32,Mc(r,a,i);case 32:o=t.sent;case 33:return t.abrupt("break",34);case 34:return t.abrupt("return",o);case 35:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mc(t,e,r){return Ic.apply(this,arguments)}function Ic(){return Ic=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f,h,d,p,g,b,m,v;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=gl(e,["mc:Choice"]),i=gl(e,["mc:Fallback"]),o=e.attrs.order,s=gl(a,["p:sp","p:spPr","a:xfrm"]),l=Gl(s,void 0,void 0),c=l.top,f=l.left,h=Vl(s,void 0,void 0),d=h.width,p=h.height,g=lc(a)[0],b=hc(fc(g)),m=gl(i,["p:sp","p:spPr","a:blipFill"]),t.next=11,El(n,m,r);case 11:return v=t.sent,t.abrupt("return",{type:"math",top:c,left:f,width:d,height:p,latex:b,picBase64:v,order:o});case 13:case"end":return t.stop()}}),t)}))),Ic.apply(this,arguments)}function Bc(t,e,r){return Dc.apply(this,arguments)}function Dc(){return Dc=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.attrs.order,i=gl(e,["p:grpSpPr","a:xfrm"])){t.next=4;break}return t.abrupt("return",null);case 4:o=parseInt(i["a:off"].attrs.x)*Yl,s=parseInt(i["a:off"].attrs.y)*Yl,l=parseInt(i["a:chOff"].attrs.x)*Yl,c=parseInt(i["a:chOff"].attrs.y)*Yl,f=parseInt(i["a:ext"].attrs.cx)*Yl,h=parseInt(i["a:ext"].attrs.cy)*Yl,d=parseInt(i["a:chExt"].attrs.cx)*Yl,p=parseInt(i["a:chExt"].attrs.cy)*Yl,g="1"===gl(i,["attrs","flipV"]),b="1"===gl(i,["attrs","flipH"]),(m=gl(i,["attrs","rot"])||0)&&(m=bl(m)),v=f/d,y=h/p,w=[],t.t0=u.keys(e);case 20:if((t.t1=t.t0()).done){t.next=50;break}if(_=t.t1.value,e[_].constructor!==Array){t.next=44;break}k=gc(e[_]),t.prev=24,k.s();case 26:if((x=k.n()).done){t.next=34;break}return S=x.value,t.next=30,Pc(_,S,e,r,n);case 30:(C=t.sent)&&w.push(C);case 32:t.next=26;break;case 34:t.next=39;break;case 36:t.prev=36,t.t2=t.catch(24),k.e(t.t2);case 39:return t.prev=39,k.f(),t.finish(39);case 42:t.next=48;break;case 44:return t.next=46,Pc(_,e[_],e,r,n);case 46:(A=t.sent)&&w.push(A);case 48:t.next=20;break;case 50:return t.abrupt("return",{type:"group",top:s,left:o,width:f,height:h,rotate:m,order:a,isFlipV:g,isFlipH:b,elements:w.map((function(t){return pc(pc({},t),{},{left:(t.left-l)*v,top:(t.top-c)*y,width:t.width*v,height:t.height*y})}))});case 51:case"end":return t.stop()}}),t,null,[[24,36,39,42]])}))),Dc.apply(this,arguments)}function jc(t,e,r,n){return zc.apply(this,arguments)}function zc(){return zc=r(u.mark((function t(e,r,n,a){var i,o,s,l,c,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=gl(e,["p:nvSpPr","p:cNvPr","attrs","name"]),o=gl(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=gl(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),l=gl(e,["attrs","order"]),s?(c=n.slideLayoutTables.typeTable[s],f=n.slideMasterTables.typeTable[s]):o&&(c=n.slideLayoutTables.idxTable[o],f=n.slideMasterTables.idxTable[o]),s||"1"===gl(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])&&(s="text"),s||(s=gl(c,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=gl(f,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s="diagramBg"===a?"diagram":"obj"),t.next=11,Uc(e,r,c,f,i,s,l,n,a);case 11:return t.abrupt("return",t.sent);case 12:case"end":return t.stop()}}),t)}))),zc.apply(this,arguments)}function Fc(t,e,r,n){return Nc.apply(this,arguments)}function Nc(){return Nc=r(u.mark((function t(e,r,n,a){var i,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,o=void 0===e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:e["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,s=e.attrs.order,t.next=5,Uc(e,r,void 0,void 0,i,o,s,n,a);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),Nc.apply(this,arguments)}function Uc(t,e,r,n,a,i,o,s,u){return Hc.apply(this,arguments)}function Hc(){return Hc=r(u.mark((function t(e,r,n,a,i,o,s,l,c){var f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=gl(e,f=["p:spPr","a:xfrm"]),d=gl(n,f),p=gl(a,f),g=gl(e,["p:spPr","a:prstGeom","attrs","prst"]),b=gl(e,["p:spPr","a:custGeom"]),m=Gl(h,d,p),v=m.top,y=m.left,w=Vl(h,d,p),_=w.width,k=w.height,x="1"===gl(h,["attrs","flipV"]),S="1"===gl(h,["attrs","flipH"]),C=bl(gl(h,["attrs","rot"])),(A=gl(e,["p:txXfrm"]))?(R=gl(A,["attrs","rot"]))&&(E=bl(R)+90):E=C,O="",e["p:txBody"]&&(O=Jl(e["p:txBody"],e,n,o,l)),T=xl(e,o,l),P=T.borderColor,L=T.borderWidth,M=T.borderType,I=T.strokeDasharray,t.next=18,Dl(e,r,void 0,l,c);case 18:if(t.t0=t.sent,t.t0){t.next=21;break}t.t0="";case 21:if(B=t.t0,(j=gl(e,["p:spPr","a:effectLst","a:outerShdw"]))&&(D=Kl(j,l)),z=ql(e,n,a),F="eaVert"===gl(e,["p:txBody","a:bodyPr","attrs","vert"]),N={left:y,top:v,width:_,height:k,borderColor:P,borderWidth:L,borderType:M,borderStrokeDasharray:I,fill:B,content:O,isFlipV:x,isFlipH:S,rotate:C,vAlign:z,name:i,order:s},D&&(N.shadow=D),!b||"diagram"===o){t.next=35;break}return U=gl(h,["a:ext","attrs"]),H=parseInt(U.cx)*Yl,W=parseInt(U.cy)*Yl,Z=rc(b,H,W),N.content&&!_l(N.content)&&(N.content=""),t.abrupt("return",pc(pc({},N),{},{type:"shape",shapType:"custom",path:Z}));case 35:if(!g||"obj"!==o&&o){t.next=38;break}return N.content&&!_l(N.content)&&(N.content=""),t.abrupt("return",pc(pc({},N),{},{type:"shape",shapType:g}));case 38:return t.abrupt("return",pc(pc({},N),{},{type:"text",isVertical:F,rotate:E}));case 39:case"end":return t.stop()}}),t)}))),Hc.apply(this,arguments)}function Wc(t,e,r){return Zc.apply(this,arguments)}function Zc(){return Zc=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="slideMasterBg"===n?r.masterResObj:"slideLayoutBg"===n?r.layoutResObj:r.slideResObj,i=e.attrs.order,o=e["p:blipFill"]["a:blip"].attrs["r:embed"],s=a[o].target,l=dl(s).toLowerCase(),c=r.zip,t.next=8,c.file(s).async("arraybuffer");case 8:if(f=t.sent,h=e["p:spPr"]["a:xfrm"],d=vl(l),p=Gl(h,void 0,void 0),g=p.top,b=p.left,m=Vl(h,void 0,void 0),v=m.width,y=m.height,w="data:".concat(d,";base64,").concat(hl(f)),_="1"===gl(h,["attrs","flipV"]),k="1"===gl(h,["attrs","flipH"]),x=0,(S=gl(e,["p:spPr","a:xfrm","attrs","rot"]))&&(x=bl(S)),C=gl(e,["p:nvPicPr","p:nvPr","a:videoFile"]),L=!1,!C){t.next=36;break}if(A=C.attrs["r:link"],!yl(E=a[A].target)){t.next=29;break}E=ml(E),L=!0,t.next=36;break;case 29:if("mp4"!==(R=dl(E).toLowerCase())&&"webm"!==R&&"ogg"!==R){t.next=36;break}return t.next=33,c.file(E).async("arraybuffer");case 33:T=t.sent,O=vl(R),P=URL.createObjectURL(new Blob([T],{type:O}));case 36:if(!(M=gl(e,["p:nvPicPr","p:nvPr","a:audioFile"]))){t.next=46;break}if(I=M.attrs["r:link"],B=a[I].target,"mp3"!==(D=dl(B).toLowerCase())&&"wav"!==D&&"ogg"!==D){t.next=46;break}return t.next=44,c.file(B).async("arraybuffer");case 44:j=t.sent,z=URL.createObjectURL(new Blob([j]));case 46:if(!C||L){t.next=48;break}return t.abrupt("return",{type:"video",top:g,left:b,width:v,height:y,rotate:x,blob:P,order:i});case 48:if(!C||!L){t.next=50;break}return t.abrupt("return",{type:"video",top:g,left:b,width:v,height:y,rotate:x,src:E,order:i});case 50:if(!M){t.next=52;break}return t.abrupt("return",{type:"audio",top:g,left:b,width:v,height:y,rotate:x,blob:z,order:i});case 52:return(N=gl(e,["p:blipFill","a:srcRect","attrs"]))&&(N.t||N.b||N.l||N.r)&&(F={},N.t&&(F.t=N.t/1e3),N.b&&(F.b=N.b/1e3),N.l&&(F.l=N.l/1e3),N.r&&(F.r=N.r/1e3)),U=gl(e,["p:spPr","a:prstGeom","attrs","prst"])||"rect",H=xl(e,void 0,r),W=H.borderColor,Z=H.borderWidth,q=H.borderType,Y=H.strokeDasharray,t.abrupt("return",{type:"image",top:g,left:b,width:v,height:y,rotate:x,src:w,isFlipV:_,isFlipH:k,order:i,rect:F,geom:U,borderColor:W,borderWidth:Z,borderType:q,borderStrokeDasharray:Y});case 57:case"end":return t.stop()}}),t)}))),Zc.apply(this,arguments)}function qc(t,e,r){return Yc.apply(this,arguments)}function Yc(){return Yc=r(u.mark((function t(e,r,n){var a,i,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=gl(e,["a:graphic","a:graphicData","attrs","uri"]),t.t0=a,t.next="http://schemas.openxmlformats.org/drawingml/2006/table"===t.t0?4:"http://schemas.openxmlformats.org/drawingml/2006/chart"===t.t0?8:"http://schemas.openxmlformats.org/drawingml/2006/diagram"===t.t0?12:"http://schemas.openxmlformats.org/presentationml/2006/ole"===t.t0?16:23;break;case 4:return t.next=6,Gc(e,r);case 6:return i=t.sent,t.abrupt("break",23);case 8:return t.next=10,Kc(e,r);case 10:return i=t.sent,t.abrupt("break",23);case 12:return t.next=14,$c(e,r);case 14:return i=t.sent,t.abrupt("break",23);case 16:if((o=gl(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))||(o=gl(e,["a:graphic","a:graphicData","p:oleObj"])),!o){t.next=22;break}return t.next=21,Bc(o,r,n);case 21:i=t.sent;case 22:return t.abrupt("break",23);case 23:return t.abrupt("return",i);case 24:case"end":return t.stop()}}),t)}))),Yc.apply(this,arguments)}function Gc(t,e){return Vc.apply(this,arguments)}function Vc(){return Vc=r(u.mark((function t(e,r){var n,a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,at,it;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.attrs.order,a=gl(e,["a:graphic","a:graphicData","a:tbl"]),i=gl(e,["p:xfrm"]),o=Gl(i,void 0,void 0),s=o.top,l=o.left,c=Vl(i,void 0,void 0),f=c.width,h=c.height,d=gl(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),(p=gl(e,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"])).constructor!==Array&&(p=[p]),g=[],p){b=gc(p);try{for(b.s();!(m=b.n()).done;)v=m.value,y=gl(v,["attrs","w"])||0,w=parseInt(y)*Yl,g.push(w)}catch(t){b.e(t)}finally{b.f()}}if(_=d.attrs?d.attrs.firstRow:void 0,k=d.attrs?d.attrs.firstCol:void 0,x=d.attrs?d.attrs.lastRow:void 0,S=d.attrs?d.attrs.lastCol:void 0,C=d.attrs?d.attrs.bandRow:void 0,A=d.attrs?d.attrs.bandCol:void 0,E={isFrstRowAttr:_&&"1"===_?1:0,isFrstColAttr:k&&"1"===k?1:0,isLstRowAttr:x&&"1"===x?1:0,isLstColAttr:S&&"1"===S?1:0,isBandRowAttr:C&&"1"===C?1:0,isBandColAttr:A&&"1"===A?1:0},(O=d["a:tableStyleId"])&&(T=r.tableStyles["a:tblStyleLst"]["a:tblStyle"]))if(T.constructor===Array)for(P=0;P<T.length;P++)T[P].attrs.styleId===O&&(R=T[P]);else T.attrs.styleId===O&&(R=T);R&&(R.tblStylAttrObj=E),L={},M=gl(R,["a:wholeTbl","a:tcStyle"]),(I=gl(M,["a:tcBdr"]))&&(L=nc(I,r)),B="",(D=gl(R,["a:tblBg","a:fillRef"]))&&(B=zl(D,void 0,void 0,r)),void 0===D&&(D=gl(R,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),B=zl(D,void 0,void 0,r)),(j=a["a:tr"]).constructor!==Array&&(j=[j]),z=[],F=[],N=0;case 33:if(!(N<j.length)){t.next=88;break}if(U=j[N],H=gl(j[N],["attrs","h"])||0,W=parseInt(H)*Yl,F.push(W),Z=oc(j,N,E,R,r),q=Z.fillColor,Y=Z.fontColor,G=Z.fontBold,V=U["a:tc"],K=[],V.constructor!==Array){t.next=67;break}X=0;case 43:if(!(X<V.length)){t.next=65;break}return $=V[X],J=void 0,0===X&&1===E.isFrstColAttr?(J="a:firstCol",1===E.isLstRowAttr&&N===j.length-1&&gl(R,["a:seCell"])?J="a:seCell":1===E.isFrstRowAttr&&0===N&&gl(R,["a:neCell"])&&(J="a:neCell")):!(X>0&&1===E.isBandColAttr)||1===E.isFrstColAttr&&0===N||1===E.isLstRowAttr&&N===j.length-1||X===V.length-1||X%2!=0&&(void 0===gl(R,["a:band2V"])?gl(R,["a:band1V"])&&(J="a:band2V"):J="a:band2V"),X===V.length-1&&1===E.isLstColAttr&&(J="a:lastCol",1===E.isLstRowAttr&&N===j.length-1&&gl(R,["a:swCell"])?J="a:swCell":1===E.isFrstRowAttr&&0===N&&gl(R,["a:nwCell"])&&(J="a:nwCell")),Q=Jl($["a:txBody"],$,void 0,void 0,r),t.next=51,ac($,R,J,r);case 51:tt=t.sent,et={text:Q},tt.rowSpan&&(et.rowSpan=tt.rowSpan),tt.colSpan&&(et.colSpan=tt.colSpan),tt.vMerge&&(et.vMerge=tt.vMerge),tt.hMerge&&(et.hMerge=tt.hMerge),(tt.fontBold||G)&&(et.fontBold=tt.fontBold||G),(tt.fontColor||Y)&&(et.fontColor=tt.fontColor||Y),(tt.fillColor||q||B)&&(et.fillColor=tt.fillColor||q||B),tt.borders&&(et.borders=tt.borders),K.push(et);case 62:X++,t.next=43;break;case 65:t.next=84;break;case 67:return rt=void 0,1===E.isFrstColAttr&&1!==E.isLstRowAttr?rt="a:firstCol":1===E.isBandColAttr&&1!==E.isLstRowAttr&&(gl(R,["a:band2V"])||gl(R,["a:band1V"]))&&(rt="a:band2V"),1===E.isLstColAttr&&1!==E.isLstRowAttr&&(rt="a:lastCol"),nt=Jl(V["a:txBody"],V,void 0,void 0,r),t.next=73,ac(V,R,rt,r);case 73:at=t.sent,it={text:nt},at.rowSpan&&(it.rowSpan=at.rowSpan),at.colSpan&&(it.colSpan=at.colSpan),at.vMerge&&(it.vMerge=at.vMerge),at.hMerge&&(it.hMerge=at.hMerge),(at.fontBold||G)&&(it.fontBold=at.fontBold||G),(at.fontColor||Y)&&(it.fontColor=at.fontColor||Y),(at.fillColor||q||B)&&(it.fillColor=at.fillColor||q||B),at.borders&&(it.borders=at.borders),K.push(it);case 84:z.push(K);case 85:N++,t.next=33;break;case 88:return t.abrupt("return",{type:"table",top:s,left:l,width:f,height:h,data:z,order:n,borders:L,rowHeights:F,colWidths:g});case 89:case"end":return t.stop()}}),t)}))),Vc.apply(this,arguments)}function Kc(t,e){return Xc.apply(this,arguments)}function Xc(){return Xc=r(u.mark((function t(e,r){var n,a,i,o,s,l,c,f,h,d,p,g,b,m;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.attrs.order,a=gl(e,["p:xfrm"]),i=Gl(a,void 0,void 0),o=i.top,s=i.left,l=Vl(a,void 0,void 0),c=l.width,f=l.height,h=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],(d=gl(r.slideResObj,[h,"target"]))||(d=gl(r.layoutResObj,[h,"target"])),d||(d=gl(r.masterResObj,[h,"target"])),d){t.next=10;break}return t.abrupt("return",{});case 10:return t.next=12,Eu(r.zip,d);case 12:if(p=t.sent,g=gl(p,["c:chartSpace","c:chart","c:plotArea"]),b=Wl(g,r)){t.next=17;break}return t.abrupt("return",{});case 17:return m={type:"chart",top:o,left:s,width:c,height:f,data:b.data,colors:b.colors,chartType:b.type,order:n},void 0!==b.marker&&(m.marker=b.marker),void 0!==b.barDir&&(m.barDir=b.barDir),void 0!==b.holeSize&&(m.holeSize=b.holeSize),void 0!==b.grouping&&(m.grouping=b.grouping),void 0!==b.style&&(m.style=b.style),t.abrupt("return",m);case 24:case"end":return t.stop()}}),t)}))),Xc.apply(this,arguments)}function $c(t,e){return Jc.apply(this,arguments)}function Jc(){return Jc=r(u.mark((function t(e,r){var n,a,i,o,s,l,c,f,h,d,p,g,b,m;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.attrs.order,a=gl(e,["p:xfrm"]),i=Gl(a,void 0,void 0),o=i.left,s=i.top,l=Vl(a,void 0,void 0),c=l.width,f=l.height,h=gl(r.digramFileContent,["p:drawing","p:spTree","p:sp"]),d=[],!h){t.next=26;break}p=gc(h),t.prev=8,p.s();case 10:if((g=p.n()).done){t.next=18;break}return b=g.value,t.next=14,jc(b,e,r,"diagramBg");case 14:(m=t.sent)&&d.push(m);case 16:t.next=10;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(8),p.e(t.t0);case 23:return t.prev=23,p.f(),t.finish(23);case 26:return t.abrupt("return",{type:"diagram",left:o,top:s,width:c,height:f,elements:d,order:n});case 27:case"end":return t.stop()}}),t,null,[[8,20,23,26]])}))),Jc.apply(this,arguments)}export{mc as parse};
1
+ function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,a)}function r(t){return function(){var r=this,n=arguments;return new Promise((function(a,i){var o=t.apply(r,n);function s(t){e(o,a,i,s,u,"next",t)}function u(t){e(o,a,i,s,u,"throw",t)}s(void 0)}))}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var i={exports:{}},o={exports:{}};!function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(o),function(t){var e=o.exports.default;function r(){t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),s=new R(n||[]);return o(i,"_invoke",{value:S(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var p={};function g(){}function b(){}function m(){}var v={};f(v,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==a&&i.call(w,u)&&(v=w);var _=m.prototype=g.prototype=Object.create(v);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,r){function n(a,o,s,u){var l=d(t[a],t,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==e(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,a){n(t,e,r,a)}))}return a=a?a.then(i,i):i()}})}function S(t,e,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return T()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function C(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return b.prototype=m,o(_,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:b,configurable:!0}),b.displayName=f(m,c,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},k(x.prototype),f(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,a,i){void 0===i&&(i=Promise);var o=new x(h(t,e,r,a),i);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),f(_,c,"Generator"),f(_,u,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},n}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(i);var s=i.exports(),u=s;try{regeneratorRuntime=s}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}var l={},c={},f="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h=[],d=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,g=!1;function b(){g=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)h[e]=t[e],d[t.charCodeAt(e)]=e;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63}function m(t,e,r){for(var n,a,i=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(h[(a=n)>>18&63]+h[a>>12&63]+h[a>>6&63]+h[63&a]);return i.join("")}function v(t){var e;g||b();for(var r=t.length,n=r%3,a="",i=[],o=16383,s=0,u=r-n;s<u;s+=o)i.push(m(t,s,s+o>u?u:s+o));return 1===n?(e=t[r-1],a+=h[e>>2],a+=h[e<<4&63],a+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],a+=h[e>>10],a+=h[e>>4&63],a+=h[e<<2&63],a+="="),i.push(a),i.join("")}function y(t,e,r,n,a){var i,o,s=8*a-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?a-1:0,h=r?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+t[e+f],f+=h,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+t[e+f],f+=h,c-=8);if(0===i)i=1-l;else{if(i===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),i-=l}return(d?-1:1)*o*Math.pow(2,i-n)}function w(t,e,r,n,a,i){var o,s,u,l=8*i-a-1,c=(1<<l)-1,f=c>>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(e*u-1)*Math.pow(2,a),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;t[r+d]=255&s,d+=p,s/=256,a-=8);for(o=o<<a|s,l+=a;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*g}var _={}.toString,k=Array.isArray||function(t){return"[object Array]"==_.call(t)};A.TYPED_ARRAY_SUPPORT=void 0===f.TYPED_ARRAY_SUPPORT||f.TYPED_ARRAY_SUPPORT;var x=S();function S(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function C(t,e){if(S()<e)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=A.prototype:(null===t&&(t=new A(e)),t.length=e),t}function A(t,e,r){if(!(A.TYPED_ARRAY_SUPPORT||this instanceof A))return new A(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return O(this,t)}return E(this,t,e,r)}function E(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);A.TYPED_ARRAY_SUPPORT?(t=e).__proto__=A.prototype:t=T(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!A.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|M(e,r),a=(t=C(t,n)).write(e,r);a!==n&&(t=t.slice(0,a));return t}(t,e,r):function(t,e){if(L(e)){var r=0|P(e.length);return 0===(t=C(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?C(t,0):T(t,e);if("Buffer"===e.type&&k(e.data))return T(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function R(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function O(t,e){if(R(e),t=C(t,e<0?0:0|P(e)),!A.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function T(t,e){var r=e.length<0?0:0|P(e.length);t=C(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function P(t){if(t>=S())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return 0|t}function L(t){return!(null==t||!t._isBuffer)}function M(t,e){if(L(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return it(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ot(t).length;default:if(n)return it(t).length;e=(""+e).toLowerCase(),n=!0}}function I(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return V(this,e,r);case"utf8":case"utf-8":return q(this,e,r);case"ascii":return Y(this,e,r);case"latin1":case"binary":return G(this,e,r);case"base64":return Z(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function B(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function D(t,e,r,n,a){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(a)return-1;r=t.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof e&&(e=A.from(e,n)),L(e))return 0===e.length?-1:j(t,e,r,n,a);if("number"==typeof e)return e&=255,A.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):j(t,[e],r,n,a);throw new TypeError("val must be string, number or Buffer")}function j(t,e,r,n,a){var i,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(a){var c=-1;for(i=r;i<s;i++)if(l(t,i)===l(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(l(t,i+h)!==l(e,h)){f=!1;break}if(f)return i}return-1}function z(t,e,r,n){r=Number(r)||0;var a=t.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[r+o]=s}return o}function F(t,e,r,n){return st(it(e,t.length-r),t,r,n)}function N(t,e,r,n){return st(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function U(t,e,r,n){return N(t,e,r,n)}function H(t,e,r,n){return st(ot(e),t,r,n)}function W(t,e,r,n){return st(function(t,e){for(var r,n,a,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,a=r%256,i.push(a),i.push(n);return i}(e,t.length-r),t,r,n)}function Z(t,e,r){return 0===e&&r===t.length?v(t):v(t.slice(e,r))}function q(t,e,r){r=Math.min(t.length,r);for(var n=[],a=e;a<r;){var i,o,s,u,l=t[a],c=null,f=l>239?4:l>223?3:l>191?2:1;if(a+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[a+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=t[a+1],o=t[a+2],128==(192&i)&&128==(192&o)&&(u=(15&l)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[a+1],o=t[a+2],s=t[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}A.poolSize=8192,A._augment=function(t){return t.__proto__=A.prototype,t},A.from=function(t,e,r){return E(null,t,e,r)},A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&A[Symbol.species]),A.alloc=function(t,e,r){return function(t,e,r,n){return R(e),e<=0?C(t,e):void 0!==r?"string"==typeof n?C(t,e).fill(r,n):C(t,e).fill(r):C(t,e)}(null,t,e,r)},A.allocUnsafe=function(t){return O(null,t)},A.allocUnsafeSlow=function(t){return O(null,t)},A.isBuffer=ut,A.compare=function(t,e){if(!L(t)||!L(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,a=0,i=Math.min(r,n);a<i;++a)if(t[a]!==e[a]){r=t[a],n=e[a];break}return r<n?-1:n<r?1:0},A.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},A.concat=function(t,e){if(!k(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return A.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=A.allocUnsafe(e),a=0;for(r=0;r<t.length;++r){var i=t[r];if(!L(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},A.byteLength=M,A.prototype._isBuffer=!0,A.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)B(this,e,e+1);return this},A.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)B(this,e,e+3),B(this,e+1,e+2);return this},A.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)B(this,e,e+7),B(this,e+1,e+6),B(this,e+2,e+5),B(this,e+3,e+4);return this},A.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?q(this,0,t):I.apply(this,arguments)},A.prototype.equals=function(t){if(!L(t))throw new TypeError("Argument must be a Buffer");return this===t||0===A.compare(this,t)},A.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},A.prototype.compare=function(t,e,r,n,a){if(!L(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),e<0||r>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&e>=r)return 0;if(n>=a)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(i,o),u=this.slice(n,a),l=t.slice(e,r),c=0;c<s;++c)if(u[c]!==l[c]){i=u[c],o=l[c];break}return i<o?-1:o<i?1:0},A.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},A.prototype.indexOf=function(t,e,r){return D(this,t,e,r,!0)},A.prototype.lastIndexOf=function(t,e,r){return D(this,t,e,r,!1)},A.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-e;if((void 0===r||r>a)&&(r=a),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return z(this,t,e,r);case"utf8":case"utf-8":return F(this,t,e,r);case"ascii":return N(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return H(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(t,e,r){var n="";r=Math.min(t.length,r);for(var a=e;a<r;++a)n+=String.fromCharCode(127&t[a]);return n}function G(t,e,r){var n="";r=Math.min(t.length,r);for(var a=e;a<r;++a)n+=String.fromCharCode(t[a]);return n}function V(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=e;i<r;++i)a+=at(t[i]);return a}function K(t,e,r){for(var n=t.slice(e,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}function X(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function $(t,e,r,n,a,i){if(!L(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function J(t,e,r,n){e<0&&(e=65535+e+1);for(var a=0,i=Math.min(t.length-r,2);a<i;++a)t[r+a]=(e&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function Q(t,e,r,n){e<0&&(e=4294967295+e+1);for(var a=0,i=Math.min(t.length-r,4);a<i;++a)t[r+a]=e>>>8*(n?a:3-a)&255}function tt(t,e,r,n,a,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function et(t,e,r,n,a){return a||tt(t,0,r,4),w(t,e,r,n,23,4),r+4}function rt(t,e,r,n,a){return a||tt(t,0,r,8),w(t,e,r,n,52,8),r+8}A.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),A.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=A.prototype;else{var a=e-t;r=new A(a,void 0);for(var i=0;i<a;++i)r[i]=this[i+t]}return r},A.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],a=1,i=0;++i<e&&(a*=256);)n+=this[t+i]*a;return n},A.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t+--e],a=1;e>0&&(a*=256);)n+=this[t+--e]*a;return n},A.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},A.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]<<8},A.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]<<8|this[t+1]},A.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},A.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},A.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=this[t],a=1,i=0;++i<e&&(a*=256);)n+=this[t+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*e)),n},A.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||X(t,e,this.length);for(var n=e,a=1,i=this[t+--n];n>0&&(a*=256);)i+=this[t+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*e)),i},A.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},A.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},A.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},A.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},A.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),y(this,t,!0,23,4)},A.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),y(this,t,!1,23,4)},A.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),y(this,t,!0,52,8)},A.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),y(this,t,!1,52,8)},A.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[e]=255&t;++i<r&&(a*=256);)this[e+i]=t/a&255;return e+r},A.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||$(this,t,e,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[e+a]=255&t;--a>=0&&(i*=256);)this[e+a]=t/i&255;return e+r},A.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,255,0),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},A.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Q(this,t,e,!0),e+4},A.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var a=Math.pow(2,8*r-1);$(this,t,e,r,a-1,-a)}var i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},A.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var a=Math.pow(2,8*r-1);$(this,t,e,r,a-1,-a)}var i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},A.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,1,127,-128),A.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},A.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},A.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},A.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Q(this,t,e,!0),e+4},A.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||$(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),A.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Q(this,t,e,!1),e+4},A.prototype.writeFloatLE=function(t,e,r){return et(this,t,e,!0,r)},A.prototype.writeFloatBE=function(t,e,r){return et(this,t,e,!1,r)},A.prototype.writeDoubleLE=function(t,e,r){return rt(this,t,e,!0,r)},A.prototype.writeDoubleBE=function(t,e,r){return rt(this,t,e,!1,r)},A.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var a,i=n-r;if(this===t&&r<e&&e<n)for(a=i-1;a>=0;--a)t[a+e]=this[a+r];else if(i<1e3||!A.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)t[a+e]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},A.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var a=t.charCodeAt(0);a<256&&(t=a)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!A.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=L(t)?t:it(new A(t,n).toString()),s=o.length;for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};var nt=/[^+\/0-9A-Za-z-_]/g;function at(t){return t<16?"0"+t.toString(16):t.toString(16)}function it(t,e){var r;e=e||1/0;for(var n=t.length,a=null,i=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function ot(t){return function(t){var e,r,n,a,i,o;g||b();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===t[s-2]?2:"="===t[s-1]?1:0,o=new p(3*s/4-i),n=i>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)a=d[t.charCodeAt(e)]<<18|d[t.charCodeAt(e+1)]<<12|d[t.charCodeAt(e+2)]<<6|d[t.charCodeAt(e+3)],o[u++]=a>>16&255,o[u++]=a>>8&255,o[u++]=255&a;return 2===i?(a=d[t.charCodeAt(e)]<<2|d[t.charCodeAt(e+1)]>>4,o[u++]=255&a):1===i&&(a=d[t.charCodeAt(e)]<<10|d[t.charCodeAt(e+1)]<<4|d[t.charCodeAt(e+2)]>>2,o[u++]=a>>8&255,o[u++]=255&a),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(nt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function st(t,e,r,n){for(var a=0;a<n&&!(a+r>=e.length||a>=t.length);++a)e[a+r]=t[a];return a}function ut(t){return null!=t&&(!!t._isBuffer||lt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&lt(t.slice(0,0))}(t))}function lt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ct=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:x,Buffer:A,SlowBuffer:function(t){return+t!=t&&(t=0),A.alloc(+t)},isBuffer:ut}),ft={};function ht(){throw new Error("setTimeout has not been defined")}function dt(){throw new Error("clearTimeout has not been defined")}var pt=ht,gt=dt;function bt(t){if(pt===setTimeout)return setTimeout(t,0);if((pt===ht||!pt)&&setTimeout)return pt=setTimeout,setTimeout(t,0);try{return pt(t,0)}catch(e){try{return pt.call(null,t,0)}catch(e){return pt.call(this,t,0)}}}"function"==typeof f.setTimeout&&(pt=setTimeout),"function"==typeof f.clearTimeout&&(gt=clearTimeout);var mt,vt=[],yt=!1,wt=-1;function _t(){yt&&mt&&(yt=!1,mt.length?vt=mt.concat(vt):wt=-1,vt.length&&kt())}function kt(){if(!yt){var t=bt(_t);yt=!0;for(var e=vt.length;e;){for(mt=vt,vt=[];++wt<e;)mt&&mt[wt].run();wt=-1,e=vt.length}mt=null,yt=!1,function(t){if(gt===clearTimeout)return clearTimeout(t);if((gt===dt||!gt)&&clearTimeout)return gt=clearTimeout,clearTimeout(t);try{gt(t)}catch(e){try{return gt.call(null,t)}catch(e){return gt.call(this,t)}}}(t)}}function xt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];vt.push(new St(t,e)),1!==vt.length||yt||bt(kt)}function St(t,e){this.fun=t,this.array=e}St.prototype.run=function(){this.fun.apply(null,this.array)};function Ct(){}var At=Ct,Et=Ct,Rt=Ct,Ot=Ct,Tt=Ct,Pt=Ct,Lt=Ct;var Mt=f.performance||{},It=Mt.now||Mt.mozNow||Mt.msNow||Mt.oNow||Mt.webkitNow||function(){return(new Date).getTime()};var Bt=new Date;var Dt={nextTick:xt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:Et,once:Rt,off:Ot,removeListener:Tt,removeAllListeners:Pt,emit:Lt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*It.call(Mt),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Bt)/1e3}},jt={exports:{}};function zt(){}function Ft(){Ft.init.call(this)}function Nt(t){return void 0===t._maxListeners?Ft.defaultMaxListeners:t._maxListeners}function Ut(t,e,r){if(e)t.call(r);else for(var n=t.length,a=Kt(t,n),i=0;i<n;++i)a[i].call(r)}function Ht(t,e,r,n){if(e)t.call(r,n);else for(var a=t.length,i=Kt(t,a),o=0;o<a;++o)i[o].call(r,n)}function Wt(t,e,r,n,a){if(e)t.call(r,n,a);else for(var i=t.length,o=Kt(t,i),s=0;s<i;++s)o[s].call(r,n,a)}function Zt(t,e,r,n,a,i){if(e)t.call(r,n,a,i);else for(var o=t.length,s=Kt(t,o),u=0;u<o;++u)s[u].call(r,n,a,i)}function qt(t,e,r,n){if(e)t.apply(r,n);else for(var a=t.length,i=Kt(t,a),o=0;o<a;++o)i[o].apply(r,n)}function Yt(t,e,r,n){var a,i,o,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=t._events)?(i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),o=i[e]):(i=t._events=new zt,t._eventsCount=0),o){if("function"==typeof o?o=i[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(a=Nt(t))&&a>0&&o.length>a){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else o=i[e]=r,++t._eventsCount;return t}function Gt(t,e,r){var n=!1;function a(){t.removeListener(e,a),n||(n=!0,r.apply(t,arguments))}return a.listener=r,a}function Vt(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Kt(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}zt.prototype=Object.create(null),Ft.EventEmitter=Ft,Ft.usingDomains=!1,Ft.prototype.domain=void 0,Ft.prototype._events=void 0,Ft.prototype._maxListeners=void 0,Ft.defaultMaxListeners=10,Ft.init=function(){this.domain=null,Ft.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new zt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ft.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},Ft.prototype.getMaxListeners=function(){return Nt(this)},Ft.prototype.emit=function(t){var e,r,n,a,i,o,s,u="error"===t;if(o=this._events)u=u&&null==o.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(r=o[t]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:Ut(r,c,this);break;case 2:Ht(r,c,this,arguments[1]);break;case 3:Wt(r,c,this,arguments[1],arguments[2]);break;case 4:Zt(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(n-1),i=1;i<n;i++)a[i-1]=arguments[i];qt(r,c,this,a)}return!0},Ft.prototype.addListener=function(t,e){return Yt(this,t,e,!1)},Ft.prototype.on=Ft.prototype.addListener,Ft.prototype.prependListener=function(t,e){return Yt(this,t,e,!0)},Ft.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Gt(this,t,e)),this},Ft.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Gt(this,t,e)),this},Ft.prototype.removeListener=function(t,e){var r,n,a,i,o;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new zt:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(a=-1,i=r.length;i-- >0;)if(r[i]===e||r[i].listener&&r[i].listener===e){o=r[i].listener,a=i;break}if(a<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new zt,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,a=t.length;n<a;r+=1,n+=1)t[r]=t[n];t.pop()}(r,a);n.removeListener&&this.emit("removeListener",t,o||e)}return this},Ft.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new zt,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new zt:delete r[t]),this;if(0===arguments.length){for(var n,a=Object.keys(r),i=0;i<a.length;++i)"removeListener"!==(n=a[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new zt,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},Ft.prototype.listeners=function(t){var e,r,n=this._events;return r=n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[],r},Ft.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Vt.call(t,e)},Ft.prototype.listenerCount=Vt,Ft.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Xt=Object.freeze({__proto__:null,default:Ft,EventEmitter:Ft}),$t="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},Jt=/%[sdj%]/g;function Qt(t){if(!ge(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ae(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,a=n.length,i=String(t).replace(Jt,(function(t){if("%%"===t)return"%";if(r>=a)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),o=n[r];r<a;o=n[++r])he(o)||!ye(o)?i+=" "+o:i+=" "+ae(o);return i}function te(t,e){if(me(f.process))return function(){return te(t,e).apply(this,arguments)};if(!0===Dt.noDeprecation)return t;var r=!1;return function(){if(!r){if(Dt.throwDeprecation)throw new Error(e);Dt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ee,re={};function ne(t){if(me(ee)&&(ee=Dt.env.NODE_DEBUG||""),t=t.toUpperCase(),!re[t])if(new RegExp("\\b"+t+"\\b","i").test(ee)){re[t]=function(){var e=Qt.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else re[t]=function(){};return re[t]}function ae(t,e){var r={seen:[],stylize:oe};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fe(e)?r.showHidden=e:e&&Te(r,e),me(r.showHidden)&&(r.showHidden=!1),me(r.depth)&&(r.depth=2),me(r.colors)&&(r.colors=!1),me(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ie),se(r,t,r.depth)}function ie(t,e){var r=ae.styles[e];return r?"["+ae.colors[r][0]+"m"+t+"["+ae.colors[r][1]+"m":t}function oe(t,e){return t}function se(t,e,r){if(t.customInspect&&e&&ke(e.inspect)&&e.inspect!==ae&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return ge(n)||(n=se(t,n,r)),n}var a=function(t,e){if(me(e))return t.stylize("undefined","undefined");if(ge(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(pe(e))return t.stylize(""+e,"number");if(fe(e))return t.stylize(""+e,"boolean");if(he(e))return t.stylize("null","null")}(t,e);if(a)return a;var i=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(i);if(t.showHidden&&(i=Object.getOwnPropertyNames(e)),_e(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return ue(e);if(0===i.length){if(ke(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(ve(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(we(e))return t.stylize(Date.prototype.toString.call(e),"date");if(_e(e))return ue(e)}var u,l="",c=!1,f=["{","}"];(ce(e)&&(c=!0,f=["[","]"]),ke(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return ve(e)&&(l=" "+RegExp.prototype.toString.call(e)),we(e)&&(l=" "+Date.prototype.toUTCString.call(e)),_e(e)&&(l=" "+ue(e)),0!==i.length||c&&0!=e.length?r<0?ve(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=c?function(t,e,r,n,a){for(var i=[],o=0,s=e.length;o<s;++o)Pe(e,String(o))?i.push(le(t,e,r,n,String(o),!0)):i.push("");return a.forEach((function(a){a.match(/^\d+$/)||i.push(le(t,e,r,n,a,!0))})),i}(t,e,r,o,i):i.map((function(n){return le(t,e,r,o,n,c)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,l,f)):f[0]+l+f[1]}function ue(t){return"["+Error.prototype.toString.call(t)+"]"}function le(t,e,r,n,a,i){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,a)||{value:e[a]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Pe(n,a)||(o="["+a+"]"),s||(t.seen.indexOf(u.value)<0?(s=he(r)?se(t,u.value,null):se(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),me(o)){if(i&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function ce(t){return Array.isArray(t)}function fe(t){return"boolean"==typeof t}function he(t){return null===t}function de(t){return null==t}function pe(t){return"number"==typeof t}function ge(t){return"string"==typeof t}function be(t){return"symbol"==typeof t}function me(t){return void 0===t}function ve(t){return ye(t)&&"[object RegExp]"===Ce(t)}function ye(t){return"object"==typeof t&&null!==t}function we(t){return ye(t)&&"[object Date]"===Ce(t)}function _e(t){return ye(t)&&("[object Error]"===Ce(t)||t instanceof Error)}function ke(t){return"function"==typeof t}function xe(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function Se(t){return ut(t)}function Ce(t){return Object.prototype.toString.call(t)}function Ae(t){return t<10?"0"+t.toString(10):t.toString(10)}ae.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ae.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Re(){var t=new Date,e=[Ae(t.getHours()),Ae(t.getMinutes()),Ae(t.getSeconds())].join(":");return[t.getDate(),Ee[t.getMonth()],e].join(" ")}function Oe(){console.log("%s - %s",Re(),Qt.apply(null,arguments))}function Te(t,e){if(!e||!ye(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Pe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Le={inherits:$t,_extend:Te,log:Oe,isBuffer:Se,isPrimitive:xe,isFunction:ke,isError:_e,isDate:we,isObject:ye,isRegExp:ve,isUndefined:me,isSymbol:be,isString:ge,isNumber:pe,isNullOrUndefined:de,isNull:he,isBoolean:fe,isArray:ce,inspect:ae,deprecate:te,format:Qt,debuglog:ne},Me=Object.freeze({__proto__:null,format:Qt,deprecate:te,debuglog:ne,inspect:ae,isArray:ce,isBoolean:fe,isNull:he,isNullOrUndefined:de,isNumber:pe,isString:ge,isSymbol:be,isUndefined:me,isRegExp:ve,isObject:ye,isDate:we,isError:_e,isFunction:ke,isPrimitive:xe,isBuffer:Se,log:Oe,inherits:$t,_extend:Te,default:Le});function Ie(){this.head=null,this.tail=null,this.length=0}Ie.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Ie.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Ie.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Ie.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ie.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},Ie.prototype.concat=function(t){if(0===this.length)return A.alloc(0);if(1===this.length)return this.head.data;for(var e=A.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var Be=A.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function De(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Be(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ze;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Fe;break;default:return void(this.write=je)}this.charBuffer=new A(6),this.charReceived=0,this.charLength=0}function je(t){return t.toString(this.encoding)}function ze(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Fe(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}De.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((a=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&a<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var a;n=(e+=t.toString(this.encoding,0,n)).length-1;if((a=e.charCodeAt(n))>=55296&&a<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),t.copy(this.charBuffer,0,0,i),e.substring(0,n)}return e},De.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},De.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,a=this.encoding;e+=n.slice(0,r).toString(a)}return e},He.ReadableState=Ue;var Ne=ne("stream");function Ue(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Ie,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new De(t.encoding),this.encoding=t.encoding)}function He(t){if(!(this instanceof He))return new He(t);this._readableState=new Ue(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),Ft.call(this)}function We(t,e,r,n,a){var i=function(t,e){var r=null;ut(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(i)t.emit("error",i);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,qe(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!a){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&a){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||a||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),a||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,a?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&qe(t))),function(t,e){e.readingMore||(e.readingMore=!0,xt(Ge,t,e))}(t,e)}else a||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}$t(He,Ft),He.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=A.from(t,e),e=""),We(this,r,t,e,!1)},He.prototype.unshift=function(t){return We(this,this._readableState,t,"",!0)},He.prototype.isPaused=function(){return!1===this._readableState.flowing},He.prototype.setEncoding=function(t){return this._readableState.decoder=new De(t),this._readableState.encoding=t,this};function Ze(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function qe(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Ne("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?xt(Ye,t):Ye(t))}function Ye(t){Ne("emit readable"),t.emit("readable"),Xe(t)}function Ge(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Ne("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Ve(t){Ne("readable nexttick read 0"),t.read(0)}function Ke(t,e){e.reading||(Ne("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Xe(t),e.flowing&&!e.reading&&t.read(0)}function Xe(t){var e=t._readableState;for(Ne("flow",e.flowing);e.flowing&&null!==t.read(););}function $e(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,a=r.data;t-=a.length;for(;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(o===i.length?a+=i:a+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(o));break}++n}return e.length-=n,a}(t,e):function(t,e){var r=A.allocUnsafe(t),n=e.head,a=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(r,r.length-t,0,o),0===(t-=o)){o===i.length?(++a,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(o));break}++a}return e.length-=a,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Je(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,xt(Qe,e,t))}function Qe(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function tr(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function er(){}function rr(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function nr(t,e){Object.defineProperty(this,"buffer",{get:te((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof gr&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,a=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,a){--e.pendingcb,r?xt(a,n):a(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,a);else{var i=ur(r);i||r.corked||r.bufferProcessing||!r.bufferedRequest||sr(t,r),n?xt(or,t,r,i,a):or(t,r,i,a)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new fr(this)}function ar(t){if(!(this instanceof ar||this instanceof gr))return new ar(t);this._writableState=new nr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),Ft.call(this)}function ir(t,e,r,n,a,i,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(a,e.onwrite):t._write(a,i,e.onwrite),e.sync=!1}function or(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),cr(t,e)}function sr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,a=new Array(n),i=e.corkedRequestsFree;i.entry=r;for(var o=0;r;)a[o]=r,r=r.next,o+=1;ir(t,e,!0,e.length,a,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new fr(e)}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(ir(t,e,!1,e.objectMode?1:s.length,s,u,l),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function ur(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function lr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function cr(t,e){var r=ur(e);return r&&(0===e.pendingcb?(lr(t,e),e.finished=!0,t.emit("finish")):lr(t,e)),r}function fr(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}He.prototype.read=function(t){Ne("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Ne("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Je(this):qe(this),null;if(0===(t=Ze(t,e))&&e.ended)return 0===e.length&&Je(this),null;var n,a=e.needReadable;return Ne("need readable",a),(0===e.length||e.length-t<e.highWaterMark)&&Ne("length less than watermark",a=!0),e.ended||e.reading?Ne("reading or ended",a=!1):a&&(Ne("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ze(r,e))),null===(n=t>0?$e(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Je(this)),null!==n&&this.emit("data",n),n},He.prototype._read=function(t){this.emit("error",new Error("not implemented"))},He.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Ne("pipe count=%d opts=%j",n.pipesCount,e);var a=!e||!1!==e.end?o:l;function i(t){Ne("onunpipe"),t===r&&l()}function o(){Ne("onend"),t.end()}n.endEmitted?xt(a):r.once("end",a),t.on("unpipe",i);var s=function(t){return function(){var e=t._readableState;Ne("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Xe(t))}}(r);t.on("drain",s);var u=!1;function l(){Ne("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",h),t.removeListener("unpipe",i),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",f),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var c=!1;function f(e){Ne("ondata"),c=!1,!1!==t.write(e)||c||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==tr(n.pipes,t))&&!u&&(Ne("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,c=!0),r.pause())}function h(e){var r;Ne("onerror",e),g(),t.removeListener("error",h),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){Ne("onfinish"),t.removeListener("close",d),g()}function g(){Ne("unpipe"),r.unpipe(t)}return r.on("data",f),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(Ne("pipe resume"),r.resume()),t},He.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<n;a++)r[a].emit("unpipe",this);return this}var i=tr(e.pipes,t);return-1===i||(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},He.prototype.on=function(t,e){var r=Ft.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&qe(this):xt(Ve,this))}return r},He.prototype.addListener=He.prototype.on,He.prototype.resume=function(){var t=this._readableState;return t.flowing||(Ne("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,xt(Ke,t,e))}(this,t)),this},He.prototype.pause=function(){return Ne("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Ne("pause"),this._readableState.flowing=!1,this.emit("pause")),this},He.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var a in t.on("end",(function(){if(Ne("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(a){(Ne("wrapped data"),e.decoder&&(a=e.decoder.write(a)),e.objectMode&&null==a)||(e.objectMode||a&&a.length)&&(n.push(a)||(r=!0,t.pause()))})),t)void 0===this[a]&&"function"==typeof t[a]&&(this[a]=function(e){return function(){return t[e].apply(t,arguments)}}(a));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){Ne("wrapped _read",e),r&&(r=!1,t.resume())},n},He._fromList=$e,ar.WritableState=nr,$t(ar,Ft),nr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},ar.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ar.prototype.write=function(t,e,r){var n=this._writableState,a=!1;return"function"==typeof e&&(r=e,e=null),A.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=er),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),xt(e,r)}(this,r):function(t,e,r,n){var a=!0,i=!1;return null===r?i=new TypeError("May not write null values to stream"):A.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(t.emit("error",i),xt(n,i),a=!1),a}(this,n,t,r)&&(n.pendingcb++,a=function(t,e,r,n,a){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=A.from(e,r));return e}(e,r,n),A.isBuffer(r)&&(n="buffer");var i=e.objectMode?1:r.length;e.length+=i;var o=e.length<e.highWaterMark;o||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new rr(r,n,a),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ir(t,e,!1,i,r,n,a);return o}(this,n,t,e,r)),a},ar.prototype.cork=function(){this._writableState.corked++},ar.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||sr(this,t))},ar.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},ar.prototype._write=function(t,e,r){r(new Error("not implemented"))},ar.prototype._writev=null,ar.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,cr(t,e),r&&(e.finished?xt(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},$t(gr,He);for(var hr=Object.keys(ar.prototype),dr=0;dr<hr.length;dr++){var pr=hr[dr];gr.prototype[pr]||(gr.prototype[pr]=ar.prototype[pr])}function gr(t){if(!(this instanceof gr))return new gr(t);He.call(this,t),ar.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",br)}function br(){this.allowHalfOpen||this._writableState.ended||xt(mr,this)}function mr(t){t.end()}function vr(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var a=n.writecb;if(!a)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);a(e);var i=t._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&t._read(i.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function yr(t){if(!(this instanceof yr))return new yr(t);gr.call(this,t),this._transformState=new vr(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){wr(e,t)})):wr(e)}))}function wr(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function _r(t){if(!(this instanceof _r))return new _r(t);yr.call(this,t)}function kr(){Ft.call(this)}$t(yr,gr),yr.prototype.push=function(t,e){return this._transformState.needTransform=!1,gr.prototype.push.call(this,t,e)},yr.prototype._transform=function(t,e,r){throw new Error("Not implemented")},yr.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},yr.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},$t(_r,yr),_r.prototype._transform=function(t,e,r){r(null,t)},$t(kr,Ft),kr.Readable=He,kr.Writable=ar,kr.Duplex=gr,kr.Transform=yr,kr.PassThrough=_r,kr.Stream=kr,kr.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var i=!1;function o(){i||(i=!0,t.end())}function s(){i||(i=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===Ft.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};var xr,Sr,Cr,Ar=a(Object.freeze({__proto__:null,default:kr,Readable:He,Writable:ar,Duplex:gr,Transform:yr,PassThrough:_r,Stream:kr})),Er={exports:{}};function Rr(){if(xr)return Er.exports;return xr=1,void 0===Dt||!Dt.version||0===Dt.version.indexOf("v0.")||0===Dt.version.indexOf("v1.")&&0!==Dt.version.indexOf("v1.8.")?Er.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return xt(t);case 2:return xt((function(){t.call(null,e)}));case 3:return xt((function(){t.call(null,e,r)}));case 4:return xt((function(){t.call(null,e,r,n)}));default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return xt((function(){t.apply(null,a)}))}}}:Er.exports=Dt,Er.exports}var Or,Tr=a(Xt),Pr={exports:{}};function Lr(){return Or?Pr.exports:(Or=1,Pr.exports=Ar)}var Mr,Ir={exports:{}},Br=a(ct);function Dr(){return Mr||(Mr=1,function(t,e){var r=Br,n=r.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function i(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=i),a(n,i),i.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},i.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var a=n(t);return void 0!==e?"string"==typeof r?a.fill(e,r):a.fill(e):a.fill(0),a},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}(Ir,Ir.exports)),Ir.exports}var jr,zr={};function Fr(){if(jr)return zr;function t(t){return Object.prototype.toString.call(t)}return jr=1,zr.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},zr.isBoolean=function(t){return"boolean"==typeof t},zr.isNull=function(t){return null===t},zr.isNullOrUndefined=function(t){return null==t},zr.isNumber=function(t){return"number"==typeof t},zr.isString=function(t){return"string"==typeof t},zr.isSymbol=function(t){return"symbol"==typeof t},zr.isUndefined=function(t){return void 0===t},zr.isRegExp=function(e){return"[object RegExp]"===t(e)},zr.isObject=function(t){return"object"==typeof t&&null!==t},zr.isDate=function(e){return"[object Date]"===t(e)},zr.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},zr.isFunction=function(t){return"function"==typeof t},zr.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},zr.isBuffer=Br.Buffer.isBuffer,zr}var Nr,Ur,Hr={exports:{}},Wr=a(Me),Zr={exports:{}};function qr(){return Ur||(Ur=1,function(t){try{var e=Wr;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=(Nr||(Nr=1,"function"==typeof Object.create?Zr.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Zr.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Zr.exports)}}(Hr)),Hr.exports}var Yr,Gr,Vr,Kr,Xr,$r,Jr,Qr,tn,en={exports:{}};function rn(){return Yr||(Yr=1,function(t){var e=Dr().Buffer,r=Wr;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var r,n,a,i=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=i,a=s,r.copy(n,a),s+=o.data.length,o=o.next;return i},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})}(en)),en.exports}function nn(){if(Vr)return Gr;Vr=1;var t=Rr();function e(t,e){t.emit("error",e)}return Gr={destroy:function(r,n){var a=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(n?n(r):!r||this._writableState&&this._writableState.errorEmitted||t.nextTick(e,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,(function(r){!n&&r?(t.nextTick(e,a,r),a._writableState&&(a._writableState.errorEmitted=!0)):n&&n(r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},Gr}function an(){if(Jr)return $r;Jr=1;var t=Rr();function e(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var a=n.callback;e.pendingcb--,a(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}$r=p;var r,a=t.nextTick;p.WritableState=d;var i=Object.create(Fr());i.inherits=qr();var o={deprecate:Xr?Kr:(Xr=1,Kr=Wr.deprecate)},s=Lr(),u=Dr().Buffer,l=n.Uint8Array||function(){};var c,f=nn();function h(){}function d(n,i){r=r||on(),n=n||{};var o=i instanceof r;this.objectMode=!!n.objectMode,o&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var s=n.highWaterMark,u=n.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:o&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===n.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),r)!function(e,r,n,a,i){--r.pendingcb,n?(t.nextTick(i,a),t.nextTick(w,e,r),e._writableState.errorEmitted=!0,e.emit("error",a)):(i(a),e._writableState.errorEmitted=!0,e.emit("error",a),w(e,r))}(e,n,i,r,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||m(e,n),i?a(b,e,n,s,o):b(e,n,s,o)}}(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function p(t){if(r=r||on(),!(c.call(p,this)||this instanceof r))return new p(t);this._writableState=new d(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function g(t,e,r,n,a,i,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(a,e.onwrite):t._write(a,i,e.onwrite),e.sync=!1}function b(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),w(t,e)}function m(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var a=r.bufferedRequestCount,i=new Array(a),o=r.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,g(t,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(g(t,r,!1,r.objectMode?1:l.length,l,c,f),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function y(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),w(t,e)}))}function w(e,r){var n=v(r);return n&&(!function(e,r){r.prefinished||r.finalCalled||("function"==typeof e._final?(r.pendingcb++,r.finalCalled=!0,t.nextTick(y,e,r)):(r.prefinished=!0,e.emit("prefinish")))}(e,r),0===r.pendingcb&&(r.finished=!0,e.emit("finish"))),n}return i.inherits(p,s),d.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(d.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===p&&(t&&t._writableState instanceof d)}})):c=function(t){return t instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(e,r,n){var a,i=this._writableState,o=!1,s=!i.objectMode&&(a=e,u.isBuffer(a)||a instanceof l);return s&&!u.isBuffer(e)&&(e=function(t){return u.from(t)}(e)),"function"==typeof r&&(n=r,r=null),s?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=h),i.ended?function(e,r){var n=new Error("write after end");e.emit("error",n),t.nextTick(r,n)}(this,n):(s||function(e,r,n,a){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),t.nextTick(a,o),i=!1),i}(this,i,e,n))&&(i.pendingcb++,o=function(t,e,r,n,a,i){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r));return e}(e,n,a);n!==o&&(r=!0,a="buffer",n=o)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,a,i);return l}(this,i,s,e,r,n)),o},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||m(this,t))},p.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(e,r,n){var a=this._writableState;"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),a.corked&&(a.corked=1,this.uncork()),a.ending||a.finished||function(e,r,n){r.ending=!0,w(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n));r.ended=!0,e.writable=!1}(this,a,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),p.prototype.destroy=f.destroy,p.prototype._undestroy=f.undestroy,p.prototype._destroy=function(t,e){this.end(),e(t)},$r}function on(){if(tn)return Qr;tn=1;var t=Rr(),e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Qr=u;var r=Object.create(Fr());r.inherits=qr();var n=mn(),a=an();r.inherits(u,n);for(var i=e(a.prototype),o=0;o<i.length;o++){var s=i[o];u.prototype[s]||(u.prototype[s]=a.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||t.nextTick(c,this)}function c(t){t.end()}return Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(e,r){this.push(null),this.end(),t.nextTick(r,e)},Qr}var sn,un,ln,cn,fn,hn,dn,pn,gn={};function bn(){if(sn)return gn;sn=1;var t=Dr().Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(r){var n;switch(this.encoding=function(r){var n=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(r);if("string"!=typeof n&&(t.isEncoding===e||!e(r)))throw new Error("Unknown encoding: "+r);return n||r}(r),this.encoding){case"utf16le":this.text=i,this.end=o,n=4;break;case"utf8":this.fillLast=a,n=4;break;case"base64":this.text=s,this.end=u,n=3;break;default:return this.write=l,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function n(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function i(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function o(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function s(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}return gn.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},r.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},r.prototype.text=function(t,e){var r=function(t,e,r){var a=e.length-1;if(a<r)return 0;var i=n(e[a]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--a<r||-2===i)return 0;if((i=n(e[a]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--a<r||-2===i)return 0;if((i=n(e[a]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var a=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,a),t.toString("utf8",e,a)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},gn}function mn(){if(ln)return un;ln=1;var t=Rr();un=b;var e,r=function(){if(Cr)return Sr;Cr=1;var t={}.toString;return Sr=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();b.ReadableState=g,Tr.EventEmitter;var a=function(t,e){return t.listeners(e).length},i=Lr(),o=Dr().Buffer,s=n.Uint8Array||function(){};var u=Object.create(Fr());u.inherits=qr();var l=Wr,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h=rn(),d=nn();u.inherits(b,i);var p=["error","close","destroy","pause","resume"];function g(t,r){t=t||{};var n=r instanceof(e=e||on());this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=bn().StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function b(t){if(e=e||on(),!(this instanceof b))return new b(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function m(t,e,r,n,a){var i,u=t._readableState;null===e?(u.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,_(t)}(t,u)):(a||(i=function(t,e){var r;n=e,o.isBuffer(n)||n instanceof s||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(u,e)),i?t.emit("error",i):u.objectMode||e&&e.length>0?("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===o.prototype||(e=function(t){return o.from(t)}(e)),n?u.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,u,e,!0):u.ended?t.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(e=u.decoder.write(e),u.objectMode||0!==e.length?v(t,u,e,!1):x(t,u)):v(t,u,e,!1))):n||(u.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(u)}function v(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&_(t)),x(t,e)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=d.destroy,b.prototype._undestroy=d.undestroy,b.prototype._destroy=function(t,e){this.push(null),e(t)},b.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=o.from(t,e),e=""),r=!0),m(this,t,e,!1,r)},b.prototype.unshift=function(t){return m(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return f||(f=bn().StringDecoder),this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var y=8388608;function w(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=y?t=y:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function _(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(c("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?t.nextTick(k,e):k(e))}function k(t){c("emit readable"),t.emit("readable"),E(t)}function x(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(S,e,r))}function S(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(c("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){c("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(c("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function R(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,a=r.data;t-=a.length;for(;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(o===i.length?a+=i:a+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(o));break}++n}return e.length-=n,a}(t,e):function(t,e){var r=o.allocUnsafe(t),n=e.head,a=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var i=n.data,s=t>i.length?i.length:t;if(i.copy(r,r.length-t,0,s),0===(t-=s)){s===i.length?(++a,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(s));break}++a}return e.length-=a,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function O(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,t.nextTick(T,r,e))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}return b.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):_(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&O(this),null;var n,a=e.needReadable;return c("need readable",a),(0===e.length||e.length-t<e.highWaterMark)&&c("length less than watermark",a=!0),e.ended||e.reading?c("reading or ended",a=!1):a&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=w(r,e))),null===(n=t>0?R(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&O(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,n){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,c("pipe count=%d opts=%j",o.pipesCount,n);var s=(!n||!1!==n.end)&&e!==Dt.stdout&&e!==Dt.stderr?l:v;function u(t,r){c("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",u),i.removeListener("end",l),i.removeListener("end",v),i.removeListener("data",p),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){c("onend"),e.end()}o.endEmitted?t.nextTick(s):i.once("end",s),e.on("unpipe",u);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,E(t))}}(i);e.on("drain",f);var h=!1;var d=!1;function p(t){c("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==P(o.pipes,e))&&!h&&(c("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,d=!0),i.pause())}function g(t){c("onerror",t),v(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),v()}function m(){c("onfinish"),e.removeListener("close",b),v()}function v(){c("unpipe"),i.unpipe(e)}return i.on("data",p),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?r(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(e,"error",g),e.once("close",b),e.once("finish",m),e.emit("pipe",i),o.flowing||(c("pipe resume"),i.resume()),e},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,r);return this}var o=P(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},b.prototype.on=function(e,r){var n=i.prototype.on.call(this,e,r);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var a=this._readableState;a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&_(this):t.nextTick(C,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!0,function(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(A,e,r))}(this,e)),this},b.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var a in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(a){(c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(e.push(a)||(n=!0,t.pause()))})),t)void 0===this[a]&&"function"==typeof t[a]&&(this[a]=function(e){return function(){return t[e].apply(t,arguments)}}(a));for(var i=0;i<p.length;i++)t.on(p[i],this.emit.bind(this,p[i]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=R,un}function vn(){if(fn)return cn;fn=1,cn=n;var t=on(),e=Object.create(Fr());function r(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function n(e){if(!(this instanceof n))return new n(e);t.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){i(t,e,r)})):i(this,null,null)}function i(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}return e.inherits=qr(),e.inherits(n,t),n.prototype.push=function(e,r){return this._transformState.needTransform=!1,t.prototype.push.call(this,e,r)},n.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},n.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},n.prototype._destroy=function(e,r){var n=this;t.prototype._destroy.call(this,e,(function(t){r(t),n.emit("close")}))},cn}function yn(){return pn||(pn=1,function(t,e){var r=Ar;"disable"===Dt.env.READABLE_STREAM&&r?(t.exports=r,(e=t.exports=r.Readable).Readable=r.Readable,e.Writable=r.Writable,e.Duplex=r.Duplex,e.Transform=r.Transform,e.PassThrough=r.PassThrough,e.Stream=r):((e=t.exports=mn()).Stream=r||e,e.Readable=e,e.Writable=an(),e.Duplex=on(),e.Transform=vn(),e.PassThrough=function(){if(dn)return hn;dn=1,hn=r;var t=vn(),e=Object.create(Fr());function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}return e.inherits=qr(),e.inherits(r,t),r.prototype._transform=function(t,e,r){r(null,t)},hn}())}(jt,jt.exports)),jt.exports}if(ft.base64=!0,ft.array=!0,ft.string=!0,ft.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,ft.nodebuffer=!0,ft.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)ft.blob=!1;else{var wn=new ArrayBuffer(0);try{ft.blob=0===new Blob([wn],{type:"application/zip"}).size}catch(t){try{var _n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);_n.append(wn),ft.blob=0===_n.getBlob("application/zip").size}catch(t){ft.blob=!1}}}try{ft.nodestream=!!yn().Readable}catch(t){ft.nodestream=!1}var kn,xn={};function Sn(){if(kn)return xn;kn=1;var t=Mn(),e=ft,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return xn.encode=function(e){for(var n,a,i,o,s,u,l,c=[],f=0,h=e.length,d=h,p="string"!==t.getTypeOf(e);f<e.length;)d=h-f,p?(n=e[f++],a=f<h?e[f++]:0,i=f<h?e[f++]:0):(n=e.charCodeAt(f++),a=f<h?e.charCodeAt(f++):0,i=f<h?e.charCodeAt(f++):0),o=n>>2,s=(3&n)<<4|a>>4,u=d>1?(15&a)<<2|i>>6:64,l=d>2?63&i:64,c.push(r.charAt(o)+r.charAt(s)+r.charAt(u)+r.charAt(l));return c.join("")},xn.decode=function(t){var n,a,i,o,s,u,l=0,c=0,f="data:";if(t.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var h,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&d--,t.charAt(t.length-2)===r.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=e.uint8array?new Uint8Array(0|d):new Array(0|d);l<t.length;)n=r.indexOf(t.charAt(l++))<<2|(o=r.indexOf(t.charAt(l++)))>>4,a=(15&o)<<4|(s=r.indexOf(t.charAt(l++)))>>2,i=(3&s)<<6|(u=r.indexOf(t.charAt(l++))),h[c++]=n,64!==s&&(h[c++]=a),64!==u&&(h[c++]=i);return h},xn}var Cn,An,En,Rn,On={isNode:!0,newBufferFrom:function(t,e){if(A.from&&A.from!==Uint8Array.from)return A.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new A(t,e)},allocBuffer:function(t){if(A.alloc)return A.alloc(t);var e=new A(t);return e.fill(0),e},isBuffer:function(t){return ut(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};var Tn=null;Tn="undefined"!=typeof Promise?Promise:function(){if(Rn)return En;Rn=1;var t=function(){if(An)return Cn;An=1;var t,e,r=n.MutationObserver||n.WebKitMutationObserver;if(r){var a=0,i=new r(l),o=n.document.createTextNode("");i.observe(o,{characterData:!0}),t=function(){o.data=a=++a%2}}else if(n.setImmediate||void 0===n.MessageChannel)t="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var s=new n.MessageChannel;s.port1.onmessage=l,t=function(){s.port2.postMessage(0)}}var u=[];function l(){var t,r;e=!0;for(var n=u.length;n;){for(r=u,u=[],t=-1;++t<n;)r[t]();n=u.length}e=!1}return Cn=function(r){1!==u.push(r)||e||t()}}();function e(){}var r={},a=["REJECTED"],i=["FULFILLED"],o=["PENDING"];function s(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=o,this.queue=[],this.outcome=void 0,t!==e&&f(this,t)}function u(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function l(e,n,a){t((function(){var t;try{t=n(a)}catch(t){return r.reject(e,t)}t===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,t)}))}function c(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function a(e){n||(n=!0,r.reject(t,e))}function i(e){n||(n=!0,r.resolve(t,e))}var o=h((function(){e(i,a)}));"error"===o.status&&a(o.value)}function h(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}return En=s,s.prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},s.prototype.catch=function(t){return this.then(null,t)},s.prototype.then=function(t,r){if("function"!=typeof t&&this.state===i||"function"!=typeof r&&this.state===a)return this;var n=new this.constructor(e);return this.state!==o?l(n,this.state===i?t:r,this.outcome):this.queue.push(new u(n,t,r)),n},u.prototype.callFulfilled=function(t){r.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){l(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){r.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){l(this.promise,this.onRejected,t)},r.resolve=function(t,e){var n=h(c,e);if("error"===n.status)return r.reject(t,n.value);var a=n.value;if(a)f(t,a);else{t.state=i,t.outcome=e;for(var o=-1,s=t.queue.length;++o<s;)t.queue[o].callFulfilled(e)}return t},r.reject=function(t,e){t.state=a,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},s.resolve=function(t){return t instanceof this?t:r.resolve(new this(e),t)},s.reject=function(t){var n=new this(e);return r.reject(n,t)},s.all=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,i=!1;if(!a)return this.resolve([]);for(var o=new Array(a),s=0,u=-1,l=new this(e);++u<a;)c(t[u],u);return l;function c(t,e){n.resolve(t).then((function(t){o[e]=t,++s!==a||i||(i=!0,r.resolve(l,o))}),(function(t){i||(i=!0,r.reject(l,t))}))}},s.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,i=!1;if(!a)return this.resolve([]);for(var o,s=-1,u=new this(e);++s<a;)o=t[s],n.resolve(o).then((function(t){i||(i=!0,r.resolve(u,t))}),(function(t){i||(i=!0,r.reject(u,t))}));return u},En}();var Pn,Ln={Promise:Tn};function Mn(){return Pn||(Pn=1,function(t){var e=ft,r=Sn(),n=On,a=Ln;function i(t){return t}function o(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(t,e,r){var n=[],a=0,i=t.length;if(i<=r)return String.fromCharCode.apply(null,t);for(;a<i;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(a,Math.min(a+r,i)))):n.push(String.fromCharCode.apply(null,t.subarray(a,Math.min(a+r,i)))),a+=r;return n.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return e.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return e.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(t){return!1}}()}};function u(e){var r=65536,n=t.getTypeOf(e),a=!0;if("uint8array"===n?a=s.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=s.applyCanBeUsed.nodebuffer),a)for(;r>1;)try{return s.stringifyByChunk(e,n,r)}catch(t){r=Math.floor(r/2)}return s.stringifyByChar(e)}function l(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}t.applyFromCharCode=u;var c={};c.string={string:i,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return c.string.uint8array(t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,n.allocBuffer(t.length))}},c.array={string:u,array:i,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(t)}},c.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:i,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(new Uint8Array(t))}},c.uint8array={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:i,nodebuffer:function(t){return n.newBufferFrom(t)}},c.nodebuffer={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return c.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:i},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return c[n][e](r)},t.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var a=e[n];"."===a||""===a&&0!==n&&n!==e.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},t.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":e.nodebuffer&&n.isBuffer(t)?"nodebuffer":e.uint8array&&t instanceof Uint8Array?"uint8array":e.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(t){if(!e[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},t.delay=function(t,e,r){setImmediate((function(){t.apply(r||null,e||[])}))},t.inherits=function(t,e){var r=function(){};r.prototype=e.prototype,t.prototype=new r},t.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},t.prepareContent=function(n,i,s,u,l){return a.Promise.resolve(i).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(i){var c,f=t.getTypeOf(i);return f?("arraybuffer"===f?i=t.transformTo("uint8array",i):"string"===f&&(l?i=r.decode(i):s&&!0!==u&&(i=o(c=i,e.uint8array?new Uint8Array(c.length):new Array(c.length)))),i):a.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(c)),c}function In(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}!function(t,e){if(!t.setImmediate){var r,n,a,i,o,s=1,u={},l=!1,c=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){xt((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){a.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,r=function(t){var e=c.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(i="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&d(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(i+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return u[s]=a,r(s),s++},f.clearImmediate=h}function h(t){delete u[t]}function d(t){if(l)setTimeout(d,0,t);else{var e=u[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{h(t),l=!1}}}}}("undefined"==typeof self?n:self),In.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}};var Bn=In;!function(t){for(var e=Mn(),r=ft,n=On,a=Bn,i=new Array(256),o=0;o<256;o++)i[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;i[254]=i[254]=1;function s(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}t.utf8encode=function(t){return r.nodebuffer?n.newBufferFrom(t,"utf-8"):function(t){var e,n,a,i,o,s=t.length,u=0;for(i=0;i<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(a-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),o=0,i=0;o<u;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(a-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}(t)},t.utf8decode=function(t){return r.nodebuffer?e.transformTo("nodebuffer",t).toString("utf-8"):function(t){var r,n,a,o,s=t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((a=t[r++])<128)u[n++]=a;else if((o=i[a])>4)u[n++]=65533,r+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&r<s;)a=a<<6|63&t[r++],o--;o>1?u[n++]=65533:a<65536?u[n++]=a:(a-=65536,u[n++]=55296|a>>10&1023,u[n++]=56320|1023&a)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),e.applyFromCharCode(u)}(t=e.transformTo(r.uint8array?"uint8array":"array",t))},e.inherits(s,a),s.prototype.processChunk=function(n){var a=e.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=a;(a=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),a.set(o,this.leftOver.length)}else a=this.leftOver.concat(a);this.leftOver=null}var s=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+i[t[r]]>e?r:e}(a),u=a;s!==a.length&&(r.uint8array?(u=a.subarray(0,s),this.leftOver=a.subarray(s,a.length)):(u=a.slice(0,s),this.leftOver=a.slice(s,a.length))),this.push({data:t.utf8decode(u),meta:n.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=s,e.inherits(u,a),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u}(l);var Dn=Bn,jn=Mn();function zn(t){Dn.call(this,"ConvertWorker to "+t),this.destType=t}jn.inherits(zn,Dn),zn.prototype.processChunk=function(t){this.push({data:jn.transformTo(this.destType,t.data),meta:t.meta})};var Fn,Nn,Un=zn;var Hn=Mn(),Wn=Un,Zn=Bn,qn=Sn(),Yn=Ln,Gn=null;if(ft.nodestream)try{Gn=function(){if(Nn)return Fn;Nn=1;var t=yn().Readable;function e(e,r,n){t.call(this,r),this._helper=e;var a=this;e.on("data",(function(t,e){a.push(t)||a._helper.pause(),n&&n(e)})).on("error",(function(t){a.emit("error",t)})).on("end",(function(){a.push(null)}))}return Mn().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Fn=e}()}catch(t){}function Vn(t,e){return new Yn.Promise((function(r,n){var a=[],i=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",(function(t,r){a.push(t),e&&e(r)})).on("error",(function(t){a=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return Hn.newBlob(Hn.transformTo("arraybuffer",e),r);case"base64":return qn.encode(e);default:return Hn.transformTo(t,e)}}(o,function(t,e){var r,n=0,a=null,i=0;for(r=0;r<e.length;r++)i+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(a=new Uint8Array(i),r=0;r<e.length;r++)a.set(e[r],n),n+=e[r].length;return a;case"nodebuffer":return A.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(i,a),s);r(t)}catch(t){n(t)}a=[]})).resume()}))}function Kn(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,Hn.checkSupport(n),this._worker=t.pipe(new Wn(n)),t.lock()}catch(t){this._worker=new Zn("error"),this._worker.error(t)}}Kn.prototype={accumulate:function(t){return Vn(this,t)},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){Hn.delay(e,arguments,r)})),this},resume:function(){return Hn.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(Hn.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Gn(this,{objectMode:"nodebuffer"!==this._outputType},t)}};var Xn=Kn,$n={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},Jn=Mn(),Qn=Bn;function ta(t){Qn.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=Jn.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}Jn.inherits(ta,Qn),ta.prototype.cleanUp=function(){Qn.prototype.cleanUp.call(this),this.data=null},ta.prototype.resume=function(){return!!Qn.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Jn.delay(this._tickAndRepeat,[],this)),!0)},ta.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Jn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ta.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};var ea=ta,ra=Mn();var na=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var aa=function(t,e){return void 0!==t&&t.length?"string"!==ra.getTypeOf(t)?function(t,e,r,n){var a=na,i=n+r;t^=-1;for(var o=n;o<i;o++)t=t>>>8^a[255&(t^e[o])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var a=na,i=n+r;t^=-1;for(var o=n;o<i;o++)t=t>>>8^a[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length,0):0},ia=Bn,oa=aa;function sa(){ia.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Mn().inherits(sa,ia),sa.prototype.processChunk=function(t){this.streamInfo.crc32=oa(t.data,this.streamInfo.crc32||0),this.push(t)};var ua=sa,la=Mn(),ca=Bn;function fa(t){ca.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}la.inherits(fa,ca),fa.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}ca.prototype.processChunk.call(this,t)};var ha=Ln,da=ea,pa=ua,ga=fa;function ba(t,e,r,n,a){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=a}ba.prototype={getContentWorker:function(){var t=new da(ha.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new ga("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new da(ha.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},ba.createWorkerFrom=function(t,e,r){return t.pipe(new pa).pipe(new ga("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new ga("compressedSize")).withStreamInfo("compression",e)};var ma=ba,va=Xn,ya=ea,wa=l,_a=ma,ka=Bn,xa=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};xa.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(e=e.pipe(new wa.Utf8EncodeWorker)),!a&&n&&(e=e.pipe(new wa.Utf8DecodeWorker))}catch(t){(e=new ka("error")).error(t)}return new va(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof _a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new wa.Utf8EncodeWorker)),_a.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof _a?this._data.getContentWorker():this._data instanceof ka?this._data:new ya(this._data)}};for(var Sa=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ca=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Aa=0;Aa<Sa.length;Aa++)xa.prototype[Sa[Aa]]=Ca;var Ea=xa,Ra={},Oa={},Ta={},Pa={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var a in n)r(n,a)&&(t[a]=n[a])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,a){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),a);else for(var i=0;i<n;i++)t[a+i]=e[r+i]},flattenChunks:function(t){var e,r,n,a,i,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),a=0,e=0,r=t.length;e<r;e++)i=t[e],o.set(i,a),a+=i.length;return o}},a={arraySet:function(t,e,r,n,a){for(var i=0;i<n;i++)t[a+i]=e[r+i]},flattenChunks:function(t){return[].concat.apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(e)}(Pa);var La={},Ma={},Ia={},Ba=Pa;function Da(t){for(var e=t.length;--e>=0;)t[e]=0}var ja=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],za=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Fa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Na=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ua=new Array(576);Da(Ua);var Ha=new Array(60);Da(Ha);var Wa=new Array(512);Da(Wa);var Za=new Array(256);Da(Za);var qa=new Array(29);Da(qa);var Ya,Ga,Va,Ka=new Array(30);function Xa(t,e,r,n,a){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=t&&t.length}function $a(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Ja(t){return t<256?Wa[t]:Wa[256+(t>>>7)]}function Qa(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function ti(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,Qa(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function ei(t,e,r){ti(t,r[2*e],r[2*e+1])}function ri(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function ni(t,e,r){var n,a,i=new Array(16),o=0;for(n=1;n<=15;n++)i[n]=o=o+r[n-1]<<1;for(a=0;a<=e;a++){var s=t[2*a+1];0!==s&&(t[2*a]=ri(i[s]++,s))}}function ai(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function ii(t){t.bi_valid>8?Qa(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function oi(t,e,r,n){var a=2*e,i=2*r;return t[a]<t[i]||t[a]===t[i]&&n[e]<=n[r]}function si(t,e,r){for(var n=t.heap[r],a=r<<1;a<=t.heap_len&&(a<t.heap_len&&oi(e,t.heap[a+1],t.heap[a],t.depth)&&a++,!oi(e,n,t.heap[a],t.depth));)t.heap[r]=t.heap[a],r=a,a<<=1;t.heap[r]=n}function ui(t,e,r){var n,a,i,o,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],a=t.pending_buf[t.l_buf+s],s++,0===n?ei(t,a,e):(ei(t,(i=Za[a])+256+1,e),0!==(o=ja[i])&&ti(t,a-=qa[i],o),ei(t,i=Ja(--n),r),0!==(o=za[i])&&ti(t,n-=Ka[i],o))}while(s<t.last_lit);ei(t,256,e)}function li(t,e){var r,n,a,i=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<u;r++)0!==i[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):i[2*r+1]=0;for(;t.heap_len<2;)i[2*(a=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[a]=0,t.opt_len--,s&&(t.static_len-=o[2*a+1]);for(e.max_code=l,r=t.heap_len>>1;r>=1;r--)si(t,i,r);a=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],si(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,i[2*a]=i[2*r]+i[2*n],t.depth[a]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,i[2*r+1]=i[2*n+1]=a,t.heap[1]=a++,si(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,a,i,o,s,u=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(i=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(i=p,g++),u[2*n+1]=i,n>l||(t.bl_count[i]++,o=0,n>=d&&(o=h[n-d]),s=u[2*n],t.opt_len+=s*(i+o),f&&(t.static_len+=s*(c[2*n+1]+o)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(a=t.heap[--r])>l||(u[2*a+1]!==i&&(t.opt_len+=(i-u[2*a+1])*u[2*a],u[2*a+1]=i),n--)}}(t,e),ni(i,l,t.bl_count)}function ci(t,e,r){var n,a,i=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=e[2*(n+1)+1],++s<u&&a===o||(s<l?t.bl_tree[2*a]+=s:0!==a?(a!==i&&t.bl_tree[2*a]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,i=a,0===o?(u=138,l=3):a===o?(u=6,l=3):(u=7,l=4))}function fi(t,e,r){var n,a,i=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(a=o,o=e[2*(n+1)+1],!(++s<u&&a===o)){if(s<l)do{ei(t,a,t.bl_tree)}while(0!=--s);else 0!==a?(a!==i&&(ei(t,a,t.bl_tree),s--),ei(t,16,t.bl_tree),ti(t,s-3,2)):s<=10?(ei(t,17,t.bl_tree),ti(t,s-3,3)):(ei(t,18,t.bl_tree),ti(t,s-11,7));s=0,i=a,0===o?(u=138,l=3):a===o?(u=6,l=3):(u=7,l=4)}}Da(Ka);var hi=!1;function di(t,e,r,n){ti(t,0+(n?1:0),3),function(t,e,r,n){ii(t),n&&(Qa(t,r),Qa(t,~r)),Ba.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}Ia._tr_init=function(t){hi||(!function(){var t,e,r,n,a,i=new Array(16);for(r=0,n=0;n<28;n++)for(qa[n]=r,t=0;t<1<<ja[n];t++)Za[r++]=n;for(Za[r-1]=n,a=0,n=0;n<16;n++)for(Ka[n]=a,t=0;t<1<<za[n];t++)Wa[a++]=n;for(a>>=7;n<30;n++)for(Ka[n]=a<<7,t=0;t<1<<za[n]-7;t++)Wa[256+a++]=n;for(e=0;e<=15;e++)i[e]=0;for(t=0;t<=143;)Ua[2*t+1]=8,t++,i[8]++;for(;t<=255;)Ua[2*t+1]=9,t++,i[9]++;for(;t<=279;)Ua[2*t+1]=7,t++,i[7]++;for(;t<=287;)Ua[2*t+1]=8,t++,i[8]++;for(ni(Ua,287,i),t=0;t<30;t++)Ha[2*t+1]=5,Ha[2*t]=ri(t,5);Ya=new Xa(Ua,ja,257,286,15),Ga=new Xa(Ha,za,0,30,15),Va=new Xa(new Array(0),Fa,0,19,7)}(),hi=!0),t.l_desc=new $a(t.dyn_ltree,Ya),t.d_desc=new $a(t.dyn_dtree,Ga),t.bl_desc=new $a(t.bl_tree,Va),t.bi_buf=0,t.bi_valid=0,ai(t)},Ia._tr_stored_block=di,Ia._tr_flush_block=function(t,e,r,n){var a,i,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),li(t,t.l_desc),li(t,t.d_desc),o=function(t){var e;for(ci(t,t.dyn_ltree,t.l_desc.max_code),ci(t,t.dyn_dtree,t.d_desc.max_code),li(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Na[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(i=t.static_len+3+7>>>3)<=a&&(a=i)):a=i=r+5,r+4<=a&&-1!==e?di(t,e,r,n):4===t.strategy||i===a?(ti(t,2+(n?1:0),3),ui(t,Ua,Ha)):(ti(t,4+(n?1:0),3),function(t,e,r,n){var a;for(ti(t,e-257,5),ti(t,r-1,5),ti(t,n-4,4),a=0;a<n;a++)ti(t,t.bl_tree[2*Na[a]+1],3);fi(t,t.dyn_ltree,e-1),fi(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),ui(t,t.dyn_ltree,t.dyn_dtree)),ai(t),n&&ii(t)},Ia._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(Za[r]+256+1)]++,t.dyn_dtree[2*Ja(e)]++),t.last_lit===t.lit_bufsize-1},Ia._tr_align=function(t){ti(t,2,3),ei(t,256,Ua),function(t){16===t.bi_valid?(Qa(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var pi=function(t,e,r,n){for(var a=65535&t|0,i=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{i=i+(a=a+e[n++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0};var gi=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var bi,mi=function(t,e,r,n){var a=gi,i=n+r;t^=-1;for(var o=n;o<i;o++)t=t>>>8^a[255&(t^e[o])];return-1^t},vi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},yi=Pa,wi=Ia,_i=pi,ki=mi,xi=vi;function Si(t,e){return t.msg=xi[e],e}function Ci(t){return(t<<1)-(t>4?9:0)}function Ai(t){for(var e=t.length;--e>=0;)t[e]=0}function Ei(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(yi.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function Ri(t,e){wi._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ei(t.strm)}function Oi(t,e){t.pending_buf[t.pending++]=e}function Ti(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Pi(t,e){var r,n,a=t.max_chain_length,i=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,l=t.window,c=t.w_mask,f=t.prev,h=t.strstart+258,d=l[i+o-1],p=l[i+o];t.prev_length>=t.good_match&&(a>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[i]&&l[++r]===l[i+1]){i+=2,r++;do{}while(l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&l[++i]===l[++r]&&i<h);if(n=258-(h-i),i=h-258,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[i+o-1],p=l[i+o]}}}while((e=f[e&c])>u&&0!=--a);return o<=t.lookahead?o:t.lookahead}function Li(t){var e,r,n,a,i,o,s,u,l,c,f=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-262)){yi.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=f?n-f:0}while(--r);e=r=f;do{n=t.prev[--e],t.prev[e]=n>=f?n-f:0}while(--r);a+=f}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,u=t.strstart+t.lookahead,l=a,c=void 0,(c=o.avail_in)>l&&(c=l),r=0===c?0:(o.avail_in-=c,yi.arraySet(s,o.input,o.next_in,c,u),1===o.state.wrap?o.adler=_i(o.adler,s,c,u):2===o.state.wrap&&(o.adler=ki(o.adler,s,c,u)),o.next_in+=c,o.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+3-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function Mi(t,e){for(var r,n;;){if(t.lookahead<262){if(Li(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=Pi(t,r)),t.match_length>=3)if(n=wi._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}function Ii(t,e){for(var r,n,a;;){if(t.lookahead<262){if(Li(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=Pi(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-3,n=wi._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=a&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ri(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=wi._tr_tally(t,0,t.window[t.strstart-1]))&&Ri(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=wi._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}function Bi(t,e,r,n,a){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=a}function Di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new yi.Buf16(1146),this.dyn_dtree=new yi.Buf16(122),this.bl_tree=new yi.Buf16(78),Ai(this.dyn_ltree),Ai(this.dyn_dtree),Ai(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new yi.Buf16(16),this.heap=new yi.Buf16(573),Ai(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new yi.Buf16(573),Ai(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ji(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,wi._tr_init(e),0):Si(t,-2)}function zi(t){var e,r=ji(t);return 0===r&&((e=t.state).window_size=2*e.w_size,Ai(e.head),e.max_lazy_match=bi[e.level].max_lazy,e.good_match=bi[e.level].good_length,e.nice_match=bi[e.level].nice_length,e.max_chain_length=bi[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function Fi(t,e,r,n,a,i){if(!t)return-2;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>9||8!==r||n<8||n>15||e<0||e>9||i<0||i>4)return Si(t,-2);8===n&&(n=9);var s=new Di;return t.state=s,s.strm=t,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new yi.Buf8(2*s.w_size),s.head=new yi.Buf16(s.hash_size),s.prev=new yi.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new yi.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=i,s.method=r,zi(t)}bi=[new Bi(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Li(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ri(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ri(t,!1),t.strm.avail_out),1)})),new Bi(4,4,8,4,Mi),new Bi(4,5,16,8,Mi),new Bi(4,6,32,32,Mi),new Bi(4,4,16,16,Ii),new Bi(8,16,32,32,Ii),new Bi(8,16,128,128,Ii),new Bi(8,32,128,256,Ii),new Bi(32,128,258,1024,Ii),new Bi(32,258,258,4096,Ii)],Ma.deflateInit=function(t,e){return Fi(t,e,8,15,8,0)},Ma.deflateInit2=Fi,Ma.deflateReset=zi,Ma.deflateResetKeep=ji,Ma.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},Ma.deflate=function(t,e){var r,n,a,i;if(!t||!t.state||e>5||e<0)return t?Si(t,-2):-2;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&4!==e)return Si(t,0===t.avail_out?-5:-2);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Oi(n,31),Oi(n,139),Oi(n,8),n.gzhead?(Oi(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Oi(n,255&n.gzhead.time),Oi(n,n.gzhead.time>>8&255),Oi(n,n.gzhead.time>>16&255),Oi(n,n.gzhead.time>>24&255),Oi(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oi(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Oi(n,255&n.gzhead.extra.length),Oi(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=ki(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Oi(n,0),Oi(n,0),Oi(n,0),Oi(n,0),Oi(n,0),Oi(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Oi(n,3),n.status=113);else{var o=8+(n.w_bits-8<<4)<<8;o|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=113,Ti(n,o),0!==n.strstart&&(Ti(n,t.adler>>>16),Ti(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),Ei(t),a=n.pending,n.pending!==n.pending_buf_size));)Oi(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),Ei(t),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Oi(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),Ei(t),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Oi(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>a&&(t.adler=ki(t.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ei(t),n.pending+2<=n.pending_buf_size&&(Oi(n,255&t.adler),Oi(n,t.adler>>8&255),t.adler=0,n.status=113)):n.status=113),0!==n.pending){if(Ei(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Ci(e)<=Ci(r)&&4!==e)return Si(t,-5);if(666===n.status&&0!==t.avail_in)return Si(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&666!==n.status){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(Li(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,a,i,o=t.window;;){if(t.lookahead<=258){if(Li(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[a=t.strstart-1])===o[++a]&&n===o[++a]&&n===o[++a]){i=t.strstart+258;do{}while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<i);t.match_length=258-(i-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=wi._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=wi._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ri(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ri(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ri(t,!1),0===t.strm.avail_out)?1:2}(n,e):bi[n.level].func(n,e);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?wi._tr_align(n):5!==e&&(wi._tr_stored_block(n,0,0,!1),3===e&&(Ai(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Ei(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Oi(n,255&t.adler),Oi(n,t.adler>>8&255),Oi(n,t.adler>>16&255),Oi(n,t.adler>>24&255),Oi(n,255&t.total_in),Oi(n,t.total_in>>8&255),Oi(n,t.total_in>>16&255),Oi(n,t.total_in>>24&255)):(Ti(n,t.adler>>>16),Ti(n,65535&t.adler)),Ei(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Ma.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?Si(t,-2):(t.state=null,113===e?Si(t,-3):0):-2},Ma.deflateSetDictionary=function(t,e){var r,n,a,i,o,s,u,l,c=e.length;if(!t||!t.state)return-2;if(2===(i=(r=t.state).wrap)||1===i&&42!==r.status||r.lookahead)return-2;for(1===i&&(t.adler=_i(t.adler,e,c,0)),r.wrap=0,c>=r.w_size&&(0===i&&(Ai(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new yi.Buf8(r.w_size),yi.arraySet(l,e,c-r.w_size,r.w_size,0),e=l,c=r.w_size),o=t.avail_in,s=t.next_in,u=t.input,t.avail_in=c,t.next_in=0,t.input=e,Li(r);r.lookahead>=3;){n=r.strstart,a=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--a);r.strstart=n,r.lookahead=2,Li(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=o,r.wrap=i,0},Ma.deflateInfo="pako deflate (from Nodeca project)";var Ni={},Ui=Pa,Hi=!0,Wi=!0;try{String.fromCharCode.apply(null,[0])}catch(t){Hi=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Wi=!1}for(var Zi=new Ui.Buf8(256),qi=0;qi<256;qi++)Zi[qi]=qi>=252?6:qi>=248?5:qi>=240?4:qi>=224?3:qi>=192?2:1;function Yi(t,e){if(e<65534&&(t.subarray&&Wi||!t.subarray&&Hi))return String.fromCharCode.apply(null,Ui.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}Zi[254]=Zi[254]=1,Ni.string2buf=function(t){var e,r,n,a,i,o=t.length,s=0;for(a=0;a<o;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Ui.Buf8(s),i=0,a=0;i<s;a++)55296==(64512&(r=t.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?e[i++]=r:r<2048?(e[i++]=192|r>>>6,e[i++]=128|63&r):r<65536?(e[i++]=224|r>>>12,e[i++]=128|r>>>6&63,e[i++]=128|63&r):(e[i++]=240|r>>>18,e[i++]=128|r>>>12&63,e[i++]=128|r>>>6&63,e[i++]=128|63&r);return e},Ni.buf2binstring=function(t){return Yi(t,t.length)},Ni.binstring2buf=function(t){for(var e=new Ui.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},Ni.buf2string=function(t,e){var r,n,a,i,o=e||t.length,s=new Array(2*o);for(n=0,r=0;r<o;)if((a=t[r++])<128)s[n++]=a;else if((i=Zi[a])>4)s[n++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;i>1&&r<o;)a=a<<6|63&t[r++],i--;i>1?s[n++]=65533:a<65536?s[n++]=a:(a-=65536,s[n++]=55296|a>>10&1023,s[n++]=56320|1023&a)}return Yi(s,n)},Ni.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+Zi[t[r]]>e?r:e};var Gi=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vi=Ma,Ki=Pa,Xi=Ni,$i=vi,Ji=Gi,Qi=Object.prototype.toString;function to(t){if(!(this instanceof to))return new to(t);this.options=Ki.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ji,this.strm.avail_out=0;var r=Vi.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error($i[r]);if(e.header&&Vi.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?Xi.string2buf(e.dictionary):"[object ArrayBuffer]"===Qi.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=Vi.deflateSetDictionary(this.strm,n)))throw new Error($i[r]);this._dict_set=!0}}function eo(t,e){var r=new to(e);if(r.push(t,!0),r.err)throw r.msg||$i[r.err];return r.result}to.prototype.push=function(t,e){var r,n,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=Xi.string2buf(t):"[object ArrayBuffer]"===Qi.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new Ki.Buf8(i),a.next_out=0,a.avail_out=i),1!==(r=Vi.deflate(a,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(Xi.buf2binstring(Ki.shrinkBuf(a.output,a.next_out))):this.onData(Ki.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==r);return 4===n?(r=Vi.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),a.avail_out=0,!0)},to.prototype.onData=function(t){this.chunks.push(t)},to.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ki.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},La.Deflate=to,La.deflate=eo,La.deflateRaw=function(t,e){return(e=e||{}).raw=!0,eo(t,e)},La.gzip=function(t,e){return(e=e||{}).gzip=!0,eo(t,e)};var ro={},no={},ao=Pa,io=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],oo=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],so=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],uo=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],lo=Pa,co=pi,fo=mi,ho=function(t,e){var r,n,a,i,o,s,u,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A;r=t.state,n=t.next_in,C=t.input,a=n+(t.avail_in-5),i=t.next_out,A=t.output,o=i-(e-t.avail_out),s=i+(t.avail_out-257),u=r.dmax,l=r.wsize,c=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,g=r.lencode,b=r.distcode,m=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=g[d&m];e:for(;;){if(d>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))A[i++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=g[(65535&y)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&y,(w&=15)&&(p<w&&(d+=C[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=b[d&v];r:for(;;){if(d>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&y,p<(w&=15)&&(d+=C[n++]<<p,(p+=8)<w&&(d+=C[n++]<<p,p+=8)),(k+=d&(1<<w)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,k>(w=i-o)){if((w=k-w)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=0,S=h,0===f){if(x+=l-w,w<_){_-=w;do{A[i++]=h[x++]}while(--w);x=i-k,S=A}}else if(f<w){if(x+=l+f-w,(w-=f)<_){_-=w;do{A[i++]=h[x++]}while(--w);if(x=0,f<_){_-=w=f;do{A[i++]=h[x++]}while(--w);x=i-k,S=A}}}else if(x+=f-w,w<_){_-=w;do{A[i++]=h[x++]}while(--w);x=i-k,S=A}for(;_>2;)A[i++]=S[x++],A[i++]=S[x++],A[i++]=S[x++],_-=3;_&&(A[i++]=S[x++],_>1&&(A[i++]=S[x++]))}else{x=i-k;do{A[i++]=A[x++],A[i++]=A[x++],A[i++]=A[x++],_-=3}while(_>2);_&&(A[i++]=A[x++],_>1&&(A[i++]=A[x++]))}break}}break}}while(n<a&&i<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=i,t.avail_in=n<a?a-n+5:5-(n-a),t.avail_out=i<s?s-i+257:257-(i-s),r.hold=d,r.bits=p},po=function(t,e,r,n,a,i,o,s){var u,l,c,f,h,d,p,g,b,m=s.bits,v=0,y=0,w=0,_=0,k=0,x=0,S=0,C=0,A=0,E=0,R=null,O=0,T=new ao.Buf16(16),P=new ao.Buf16(16),L=null,M=0;for(v=0;v<=15;v++)T[v]=0;for(y=0;y<n;y++)T[e[r+y]]++;for(k=m,_=15;_>=1&&0===T[_];_--);if(k>_&&(k=_),0===_)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(w=1;w<_&&0===T[w];w++);for(k<w&&(k=w),C=1,v=1;v<=15;v++)if(C<<=1,(C-=T[v])<0)return-1;if(C>0&&(0===t||1!==_))return-1;for(P[1]=0,v=1;v<15;v++)P[v+1]=P[v]+T[v];for(y=0;y<n;y++)0!==e[r+y]&&(o[P[e[r+y]]++]=y);if(0===t?(R=L=o,d=19):1===t?(R=io,O-=257,L=oo,M-=257,d=256):(R=so,L=uo,d=-1),E=0,y=0,v=w,h=i,x=k,S=0,c=-1,f=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=v-S,o[y]<d?(g=0,b=o[y]):o[y]>d?(g=L[M+o[y]],b=R[O+o[y]]):(g=96,b=0),u=1<<v-S,w=l=1<<x;do{a[h+(E>>S)+(l-=u)]=p<<24|g<<16|b|0}while(0!==l);for(u=1<<v-1;E&u;)u>>=1;if(0!==u?(E&=u-1,E+=u):E=0,y++,0==--T[v]){if(v===_)break;v=e[r+o[y]]}if(v>k&&(E&f)!==c){for(0===S&&(S=k),h+=w,C=1<<(x=v-S);x+S<_&&!((C-=T[x+S])<=0);)x++,C<<=1;if(A+=1<<x,1===t&&A>852||2===t&&A>592)return 1;a[c=E&f]=k<<24|x<<16|h-i|0}}return 0!==E&&(a[h+E]=v-S<<24|64<<16|0),s.bits=k,0};function go(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function bo(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new lo.Buf16(320),this.work=new lo.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function mo(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new lo.Buf32(852),e.distcode=e.distdyn=new lo.Buf32(592),e.sane=1,e.back=-1,0):-2}function vo(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,mo(t)):-2}function yo(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,vo(t))):-2}function wo(t,e){var r,n;return t?(n=new bo,t.state=n,n.window=null,0!==(r=yo(t,e))&&(t.state=null),r):-2}var _o,ko,xo=!0;function So(t){if(xo){var e;for(_o=new lo.Buf32(512),ko=new lo.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(po(1,t.lens,0,288,_o,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;po(2,t.lens,0,32,ko,0,t.work,{bits:5}),xo=!1}t.lencode=_o,t.lenbits=9,t.distcode=ko,t.distbits=5}function Co(t,e,r,n){var a,i=t.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new lo.Buf8(i.wsize)),n>=i.wsize?(lo.arraySet(i.window,e,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>n&&(a=n),lo.arraySet(i.window,e,r-n,a,i.wnext),(n-=a)?(lo.arraySet(i.window,e,r-n,n,0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0}no.inflateReset=vo,no.inflateReset2=yo,no.inflateResetKeep=mo,no.inflateInit=function(t){return wo(t,15)},no.inflateInit2=wo,no.inflate=function(t,e){var r,n,a,i,o,s,u,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A=0,E=new lo.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),o=t.next_out,a=t.output,u=t.avail_out,i=t.next_in,n=t.input,s=t.avail_in,l=r.hold,c=r.bits,f=s,h=u,x=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(2&r.wrap&&35615===l){r.check=0,E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0),l=0,c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&l)){t.msg="unknown compression method",r.mode=30;break}if(c-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&l?10:12,l=0,c=0;break;case 2:for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(r.flags=l,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0)),l=0,c=0,r.mode=3;case 3:for(;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.head&&(r.head.time=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,r.check=fo(r.check,E,4,0)),l=0,c=0,r.mode=4;case 4:for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0)),l=0,c=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=fo(r.check,E,2,0)),l=0,c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),lo.arraySet(r.head.extra,n,i,d,k)),512&r.flags&&(r.check=fo(r.check,n,d,i)),s-=d,i+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;d=0;do{k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=fo(r.check,n,d,i)),s-=d,i+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;d=0;do{k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=fo(r.check,n,d,i)),s-=d,i+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;c<16;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}l=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}t.adler=r.check=go(l),l=0,c=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=i,t.avail_in=s,r.hold=l,r.bits=c,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){l>>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}switch(r.last=1&l,c-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(So(r),r.mode=20,6===e){l>>>=2,c-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,c=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;lo.arraySet(a,n,i,d,o),s-=d,i+=d,u-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;c<14;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(r.nlen=257+(31&l),l>>>=5,c-=5,r.ndist=1+(31&l),l>>>=5,c-=5,r.ncode=4+(15&l),l>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.lens[R[r.have++]]=7&l,l>>>=3,c-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=po(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;m=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(v<16)l>>>=b,c-=b,r.lens[r.have++]=v;else{if(16===v){for(C=b+2;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(l>>>=b,c-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&l),l>>>=2,c-=2}else if(17===v){for(C=b+3;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}c-=b,k=0,d=3+(7&(l>>>=b)),l>>>=3,c-=3}else{for(C=b+7;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}c-=b,k=0,d=11+(127&(l>>>=b)),l>>>=7,c-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=po(1,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=po(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=i,t.avail_in=s,r.hold=l,r.bits=c,ho(t,h),o=t.next_out,a=t.output,u=t.avail_out,i=t.next_in,n=t.input,s=t.avail_in,l=r.hold,c=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;m=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(m&&0==(240&m)){for(y=b,w=m,_=v;m=(A=r.lencode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,v=65535&A,!(y+(b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}l>>>=y,c-=y,r.back+=y}if(l>>>=b,c-=b,r.back+=b,r.length=v,0===m){r.mode=26;break}if(32&m){r.back=-1,r.mode=12;break}if(64&m){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&m,r.mode=22;case 22:if(r.extra){for(C=r.extra;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;m=(A=r.distcode[l&(1<<r.distbits)-1])>>>16&255,v=65535&A,!((b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(0==(240&m)){for(y=b,w=m,_=v;m=(A=r.distcode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,v=65535&A,!(y+(b=A>>>24)<=c);){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}l>>>=y,c-=y,r.back+=y}if(l>>>=b,c-=b,r.back+=b,64&m){t.msg="invalid distance code",r.mode=30;break}r.offset=v,r.extra=15&m,r.mode=24;case 24:if(r.extra){for(C=r.extra;c<C;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break t;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=a,p=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{a[o++]=g[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;a[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===s)break t;s--,l|=n[i++]<<c,c+=8}if(h-=u,t.total_out+=h,r.total+=h,h&&(t.adler=r.check=r.flags?fo(r.check,a,h,o-h):co(r.check,a,h,o-h)),h=u,(r.flags?l:go(l))!==r.check){t.msg="incorrect data check",r.mode=30;break}l=0,c=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break t;s--,l+=n[i++]<<c,c+=8}if(l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}l=0,c=0}r.mode=29;case 29:x=1;break t;case 30:x=-3;break t;case 31:return-4;default:return-2}return t.next_out=o,t.avail_out=u,t.next_in=i,t.avail_in=s,r.hold=l,r.bits=c,(r.wsize||h!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&Co(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,r.wrap&&h&&(t.adler=r.check=r.flags?fo(r.check,a,h,t.next_out-h):co(r.check,a,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===f&&0===h||4===e)&&0===x&&(x=-5),x},no.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},no.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},no.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&co(1,e,n,0)!==r.check?-3:Co(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},no.inflateInfo="pako inflate (from Nodeca project)";var Ao={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Eo=no,Ro=Pa,Oo=Ni,To=Ao,Po=vi,Lo=Gi,Mo=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Io=Object.prototype.toString;function Bo(t){if(!(this instanceof Bo))return new Bo(t);this.options=Ro.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lo,this.strm.avail_out=0;var r=Eo.inflateInit2(this.strm,e.windowBits);if(r!==To.Z_OK)throw new Error(Po[r]);if(this.header=new Mo,Eo.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Oo.string2buf(e.dictionary):"[object ArrayBuffer]"===Io.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Eo.inflateSetDictionary(this.strm,e.dictionary))!==To.Z_OK))throw new Error(Po[r])}function Do(t,e){var r=new Bo(e);if(r.push(t,!0),r.err)throw r.msg||Po[r.err];return r.result}Bo.prototype.push=function(t,e){var r,n,a,i,o,s=this.strm,u=this.options.chunkSize,l=this.options.dictionary,c=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?To.Z_FINISH:To.Z_NO_FLUSH,"string"==typeof t?s.input=Oo.binstring2buf(t):"[object ArrayBuffer]"===Io.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Ro.Buf8(u),s.next_out=0,s.avail_out=u),(r=Eo.inflate(s,To.Z_NO_FLUSH))===To.Z_NEED_DICT&&l&&(r=Eo.inflateSetDictionary(this.strm,l)),r===To.Z_BUF_ERROR&&!0===c&&(r=To.Z_OK,c=!1),r!==To.Z_STREAM_END&&r!==To.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==To.Z_STREAM_END&&(0!==s.avail_in||n!==To.Z_FINISH&&n!==To.Z_SYNC_FLUSH)||("string"===this.options.to?(a=Oo.utf8border(s.output,s.next_out),i=s.next_out-a,o=Oo.buf2string(s.output,a),s.next_out=i,s.avail_out=u-i,i&&Ro.arraySet(s.output,s.output,a,i,0),this.onData(o)):this.onData(Ro.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==To.Z_STREAM_END);return r===To.Z_STREAM_END&&(n=To.Z_FINISH),n===To.Z_FINISH?(r=Eo.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===To.Z_OK):n!==To.Z_SYNC_FLUSH||(this.onEnd(To.Z_OK),s.avail_out=0,!0)},Bo.prototype.onData=function(t){this.chunks.push(t)},Bo.prototype.onEnd=function(t){t===To.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ro.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},ro.Inflate=Bo,ro.inflate=Do,ro.inflateRaw=function(t,e){return(e=e||{}).raw=!0,Do(t,e)},ro.ungzip=Do;var jo={};(0,Pa.assign)(jo,La,ro,Ao);var zo="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,Fo=jo,No=Mn(),Uo=Bn,Ho=zo?"uint8array":"array";function Wo(t,e){Uo.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}Ta.magic="\b\0",No.inherits(Wo,Uo),Wo.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(No.transformTo(Ho,t.data),!1)},Wo.prototype.flush=function(){Uo.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Wo.prototype.cleanUp=function(){Uo.prototype.cleanUp.call(this),this._pako=null},Wo.prototype._createPako=function(){this._pako=new Fo[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Ta.compressWorker=function(t){return new Wo("Deflate",t)},Ta.uncompressWorker=function(){return new Wo("Inflate",{})};var Zo=Bn;Oa.STORE={magic:"\0\0",compressWorker:function(){return new Zo("STORE compression")},uncompressWorker:function(){return new Zo("STORE decompression")}},Oa.DEFLATE=Ta;var qo={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\b"},Yo=Mn(),Go=Bn,Vo=l,Ko=aa,Xo=qo,$o=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},Jo=function(t,e,r,n,a,i){var o,s,u=t.file,l=t.compression,c=i!==Vo.utf8encode,f=Yo.transformTo("string",i(u.name)),h=Yo.transformTo("string",Vo.utf8encode(u.name)),d=u.comment,p=Yo.transformTo("string",i(d)),g=Yo.transformTo("string",Vo.utf8encode(d)),b=h.length!==u.name.length,m=g.length!==d.length,v="",y="",w="",_=u.dir,k=u.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(x.crc32=t.crc32,x.compressedSize=t.compressedSize,x.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),c||!b&&!m||(S|=2048);var C,A,E,R=0,O=0;_&&(R|=16),"UNIX"===a?(O=798,R|=(C=u.unixPermissions,A=_,E=C,C||(E=A?16893:33204),(65535&E)<<16)):(O=20,R|=63&(u.dosPermissions||0)),o=k.getUTCHours(),o<<=6,o|=k.getUTCMinutes(),o<<=5,o|=k.getUTCSeconds()/2,s=k.getUTCFullYear()-1980,s<<=4,s|=k.getUTCMonth()+1,s<<=5,s|=k.getUTCDate(),b&&(y=$o(1,1)+$o(Ko(f),4)+h,v+="up"+$o(y.length,2)+y),m&&(w=$o(1,1)+$o(Ko(p),4)+g,v+="uc"+$o(w.length,2)+w);var T="";return T+="\n\0",T+=$o(S,2),T+=l.magic,T+=$o(o,2),T+=$o(s,2),T+=$o(x.crc32,4),T+=$o(x.compressedSize,4),T+=$o(x.uncompressedSize,4),T+=$o(f.length,2),T+=$o(v.length,2),{fileRecord:Xo.LOCAL_FILE_HEADER+T+f+v,dirRecord:Xo.CENTRAL_FILE_HEADER+$o(O,2)+T+$o(p.length,2)+"\0\0\0\0"+$o(R,4)+$o(n,4)+f+v+p}},Qo=function(t){return Xo.DATA_DESCRIPTOR+$o(t.crc32,4)+$o(t.compressedSize,4)+$o(t.uncompressedSize,4)};function ts(t,e,r,n){Go.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Yo.inherits(ts,Go),ts.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,Go.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},ts.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=Jo(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ts.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=Jo(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:Qo(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},ts.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,n=function(t,e,r,n,a){var i=Yo.transformTo("string",a(n));return Xo.CENTRAL_DIRECTORY_END+"\0\0\0\0"+$o(t,2)+$o(t,2)+$o(e,4)+$o(r,4)+$o(i.length,2)+i}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},ts.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ts.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},ts.prototype.resume=function(){return!!Go.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ts.prototype.error=function(t){var e=this._sources;if(!Go.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},ts.prototype.lock=function(){Go.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var es=Oa,rs=ts;Ra.generateWorker=function(t,e,r){var n=new rs(e.streamFiles,r,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,r){a++;var i=function(t,e){var r=t||e,n=es[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),o=r.options.compressionOptions||e.compressionOptions||{},s=r.dir,u=r.date;r._compressWorker(i,o).withStreamInfo("file",{name:t,dir:s,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=a}catch(t){n.error(t)}return n};var ns=Mn(),as=Bn;function is(t,e){as.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}ns.inherits(is,as),is.prototype._bindStream=function(t){var e=this;this._stream=t,t.pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},is.prototype.pause=function(){return!!as.prototype.pause.call(this)&&(this._stream.pause(),!0)},is.prototype.resume=function(){return!!as.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var os=is,ss=l,us=Mn(),ls=Bn,cs=Xn,fs=$n,hs=ma,ds=Ea,ps=Ra,gs=On,bs=os,ms=function(t,e,r){var n,a=us.getTypeOf(e),i=us.extend(r||{},fs);i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(t=ys(t)),i.createFolders&&(n=vs(t))&&ws.call(this,n,!0);var o="string"===a&&!1===i.binary&&!1===i.base64;r&&void 0!==r.binary||(i.binary=!o),(e instanceof hs&&0===e.uncompressedSize||i.dir||!e||0===e.length)&&(i.base64=!1,i.binary=!0,e="",i.compression="STORE",a="string");var s=null;s=e instanceof hs||e instanceof ls?e:gs.isNode&&gs.isStream(e)?new bs(t,e):us.prepareContent(t,e,i.binary,i.optimizedBinaryString,i.base64);var u=new ds(t,s,i);this.files[t]=u},vs=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},ys=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},ws=function(t,e){return e=void 0!==e?e:fs.createFolders,t=ys(t),this.files[t]||ms.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function _s(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var ks={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},file:function(t,e,r){if(1===arguments.length){if(_s(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var a=this.files[this.root+t];return a&&!a.dir?a:null}return t=this.root+t,ms.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(_s(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=ws.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=us.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:ss.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");us.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";e=ps.generateWorker(this,r,n)}catch(t){(e=new ls("error")).error(t)}return new cs(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}},xs=ks,Ss=Mn();function Cs(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}Cs.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return Ss.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}};var As=Cs,Es=As;function Rs(t){Es.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}Mn().inherits(Rs,Es),Rs.prototype.byteAt=function(t){return this.data[this.zero+t]},Rs.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),a=t.charCodeAt(3),i=this.length-4;i>=0;--i)if(this.data[i]===e&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},Rs.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),a=t.charCodeAt(3),i=this.readData(4);return e===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},Rs.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Os=Rs,Ts=As;function Ps(t){Ts.call(this,t)}Mn().inherits(Ps,Ts),Ps.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},Ps.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},Ps.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},Ps.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Ls=Ps,Ms=Os;function Is(t){Ms.call(this,t)}Mn().inherits(Is,Ms),Is.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var Bs=Is,Ds=Bs;function js(t){Ds.call(this,t)}Mn().inherits(js,Ds),js.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e};var zs=js,Fs=Mn(),Ns=ft,Us=Os,Hs=Ls,Ws=zs,Zs=Bs,qs=function(t){var e=Fs.getTypeOf(t);return Fs.checkSupport(e),"string"!==e||Ns.uint8array?"nodebuffer"===e?new Ws(t):Ns.uint8array?new Zs(Fs.transformTo("uint8array",t)):new Us(Fs.transformTo("array",t)):new Hs(t)},Ys=qs,Gs=Mn(),Vs=ma,Ks=aa,Xs=l,$s=Oa,Js=ft;function Qs(t,e){this.options=t,this.loadOptions=e}Qs.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(e=function(t){for(var e in $s)if(Object.prototype.hasOwnProperty.call($s,e)&&$s[e].magic===t)return $s[e];return null}(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+Gs.pretty(this.compressionMethod)+" unknown (inner file : "+Gs.transformTo("string",this.fileName)+")");this.decompressed=new Vs(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=Ys(this.extraFields[1].value);this.uncompressedSize===Gs.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===Gs.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===Gs.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===Gs.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,a=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<a;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(a)},handleUTF8:function(){var t=Js.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Xs.utf8decode(this.fileName),this.fileCommentStr=Xs.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Gs.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=Gs.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileName)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=Ys(t.value);return 1!==e.readInt(1)||Ks(this.fileComment)!==e.readInt(4)?null:Xs.utf8decode(e.readData(t.length-5))}return null}};var tu=Qs,eu=qs,ru=Mn(),nu=qo,au=tu,iu=ft;function ou(t){this.files=[],this.loadOptions=t}ou.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ru.pretty(e)+", expected "+ru.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=iu.uint8array?"uint8array":"array",r=ru.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(nu.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(nu.CENTRAL_FILE_HEADER);)(t=new au({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(nu.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,nu.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(t);var e=t;if(this.checkSignature(nu.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ru.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ru.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ru.MAX_VALUE_16BITS||this.centralDirRecords===ru.MAX_VALUE_16BITS||this.centralDirSize===ru.MAX_VALUE_32BITS||this.centralDirOffset===ru.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,nu.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(nu.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(n>0)this.isSignature(e,nu.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=eu(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var su=ou,uu=Mn(),lu=Ln,cu=l,fu=su,hu=ua,du=On;function pu(t){return new lu.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new hu);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}function gu(){if(!(this instanceof gu))return new gu;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new gu;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}gu.prototype=xs,gu.prototype.loadAsync=function(t,e){var r=this;return e=uu.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:cu.utf8decode}),du.isNode&&du.isStream(t)?lu.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):uu.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new fu(e);return r.load(t),r})).then((function(t){var r=[lu.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var a=0;a<n.length;a++)r.push(pu(n[a]));return lu.Promise.all(r)})).then((function(t){for(var n=t.shift(),a=n.files,i=0;i<a.length;i++){var o=a[i],s=o.fileNameStr,u=uu.resolve(o.fileNameStr);r.file(u,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:e.createFolders}),o.dir||(r.file(u).unsafeOriginalName=s)}return n.zipComment.length&&(r.comment=n.zipComment),r}))},gu.support=ft,gu.defaults=$n,gu.version="3.10.1",gu.loadAsync=function(t,e){return(new gu).loadAsync(t,e)},gu.external=Ln;var bu=gu;function mu(t){return mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(t)}function vu(t,e){var r=(e=e||{}).pos||0,n=!!e.keepComments,a=!!e.keepWhitespace,i="<".charCodeAt(0),o=">".charCodeAt(0),s="-".charCodeAt(0),u="/".charCodeAt(0),l="!".charCodeAt(0),c="'".charCodeAt(0),f='"'.charCodeAt(0),h="[".charCodeAt(0),d="]".charCodeAt(0);function p(e){for(var c=[];t[r];)if(t.charCodeAt(r)==i){if(t.charCodeAt(r+1)===u){var f=r+2;if(r=t.indexOf(">",r),-1==t.substring(f,r).indexOf(e)){var p=t.substring(0,r).split("\n");throw new Error("Unexpected close tag\nLine: "+(p.length-1)+"\nColumn: "+(p[p.length-1].length+1)+"\nChar: "+t[r])}return r+1&&(r+=1),c}if(t.charCodeAt(r+1)===l){if(t.charCodeAt(r+2)==s){const e=r;for(;-1!==r&&(t.charCodeAt(r)!==o||t.charCodeAt(r-1)!=s||t.charCodeAt(r-2)!=s||-1==r);)r=t.indexOf(">",r+1);-1===r&&(r=t.length),n&&c.push(t.substring(e,r+1))}else{if(t.charCodeAt(r+2)===h&&t.charCodeAt(r+8)===h&&"cdata"===t.substr(r+3,5).toLowerCase()){var b=t.indexOf("]]>",r);-1==b?(c.push(t.substr(r+9)),r=t.length):(c.push(t.substring(r+9,b)),r=b+3);continue}{const e=r+1;r+=2;for(var m=!1;(t.charCodeAt(r)!==o||!0===m)&&t[r];)t.charCodeAt(r)===h?m=!0:!0===m&&t.charCodeAt(r)===d&&(m=!1),r++;c.push(t.substring(e,r))}}r++;continue}var y=v();c.push(y),"?"===y.tagName[0]&&(c.push(...y.children),y.children=[])}else{var w=g();if(a)w.length>0&&c.push(w);else{var _=w.trim();_.length>0&&c.push(_)}r++}return c}function g(){var e=r;return-2===(r=t.indexOf("<",r)-1)&&(r=t.length),t.slice(e,r+1)}function b(){for(var e=r;-1==="\r\n\t>/= ".indexOf(t[r])&&t[r];)r++;return t.slice(e,r)}var m=e.noChildNodes||["img","br","input","meta","link","hr"];function v(){r++;const e=b(),n={};let a=[];for(;t.charCodeAt(r)!==o&&t[r];){var i=t.charCodeAt(r);if(i>64&&i<91||i>96&&i<123){for(var s=b(),l=t.charCodeAt(r);l&&l!==c&&l!==f&&!(l>64&&l<91||l>96&&l<123)&&l!==o;)r++,l=t.charCodeAt(r);if(l===c||l===f){var h=y();if(-1===r)return{tagName:e,attributes:n,children:a}}else h=null,r--;n[s]=h}r++}if(t.charCodeAt(r-1)!==u)if("script"==e){var d=r+1;r=t.indexOf("<\/script>",r),a=[t.slice(d,r)],r+=9}else if("style"==e){d=r+1;r=t.indexOf("</style>",r),a=[t.slice(d,r)],r+=8}else-1===m.indexOf(e)?(r++,a=p(e)):r++;else r++;return{tagName:e,attributes:n,children:a}}function y(){var e=t[r],n=r+1;return r=t.indexOf(e,n),t.slice(n,r)}var w,_=null;if(void 0!==e.attrValue){e.attrName=e.attrName||"id";for(_=[];-1!==(w=void 0,w=new RegExp("\\s"+e.attrName+"\\s*=['\"]"+e.attrValue+"['\"]").exec(t),r=w?w.index:-1);)-1!==(r=t.lastIndexOf("<",r))&&_.push(v()),t=t.substr(r),r=0}else _=e.parseNode?v():p("");return e.filter&&(_=wu(_,e.filter)),e.simplify?yu(Array.isArray(_)?_:[_]):(e.setPos&&(_.pos=r),_)}function yu(t){var e={};if(!t.length)return"";if(1===t.length&&"string"==typeof t[0])return t[0];for(var r in t.forEach((function(t){if("object"==typeof t){e[t.tagName]||(e[t.tagName]=[]);var r=yu(t.children);e[t.tagName].push(r),Object.keys(t.attributes).length&&"string"!=typeof r&&(r._attributes=t.attributes)}})),e)1==e[r].length&&(e[r]=e[r][0]);return e}function wu(t,e,r=0,n=""){var a=[];return t.forEach((function(t,i){if("object"==typeof t&&e(t,i,r,n)&&a.push(t),t.children){var o=wu(t.children,e,r+1,(n?n+".":"")+i+"."+t.tagName);a=a.concat(o)}})),a}function _u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ku(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ku(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function ku(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Su(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?xu(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cu=0;function Au(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(!t.length)return r;if(1===t.length&&"string"==typeof t[0])return Object.keys(e).length?{attrs:Su({order:Cu++},e),value:t[0]}:t[0];var n,a=_u(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if("object"!==mu(i))return;if("?xml"!==i.tagName){r[i.tagName]||(r[i.tagName]=[]);var o=Au(i.children||[],i.attributes);"object"===mu(o)&&(o.attrs?o.attrs.order=Cu++:o.attrs={order:Cu++}),Object.keys(i.attributes||{}).length&&(o.attrs=Su(Su({},o.attrs),i.attributes)),r[i.tagName].push(o)}}}catch(t){a.e(t)}finally{a.f()}for(var s in r)1===r[s].length&&(r[s]=r[s][0]);return r}function Eu(t,e){return Ru.apply(this,arguments)}function Ru(){return(Ru=r(u.mark((function t(e,r){var n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.file(r).async("string");case 3:return n=t.sent,t.abrupt("return",Au(vu(n)));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function Ou(t){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(t)}var Tu=/^\s+/,Pu=/\s+$/;function Lu(t,e){if(e=e||{},(t=t||"")instanceof Lu)return t;if(!(this instanceof Lu))return new Lu(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Tu,"").replace(Pu,"").toLowerCase();var e,r=!1;if(Ku[t])t=Ku[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=ul.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=ul.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=ul.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=ul.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=ul.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=ul.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=ul.hex8.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),a:al(e[4]),format:r?"name":"hex8"};if(e=ul.hex6.exec(t))return{r:tl(e[1]),g:tl(e[2]),b:tl(e[3]),format:r?"name":"hex"};if(e=ul.hex4.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),a:al(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=ul.hex3.exec(t))return{r:tl(e[1]+""+e[1]),g:tl(e[2]+""+e[2]),b:tl(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==Ou(t)&&(ll(t.r)&&ll(t.g)&&ll(t.b)?(u=t.r,l=t.g,c=t.b,e={r:255*Ju(u,255),g:255*Ju(l,255),b:255*Ju(c,255)},o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):ll(t.h)&&ll(t.s)&&ll(t.v)?(n=rl(t.s),a=rl(t.v),e=function(t,e,r){t=6*Ju(t,360),e=Ju(e,100),r=Ju(r,100);var n=Math.floor(t),a=t-n,i=r*(1-e),o=r*(1-a*e),s=r*(1-(1-a)*e),u=n%6;return{r:255*[r,o,i,i,s,r][u],g:255*[s,r,r,o,i,i][u],b:255*[i,i,s,r,r,o][u]}}(t.h,n,a),o=!0,s="hsv"):ll(t.h)&&ll(t.s)&&ll(t.l)&&(n=rl(t.s),i=rl(t.l),e=function(t,e,r){var n,a,i;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=Ju(t,360),e=Ju(e,100),r=Ju(r,100),0===e)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),a=o(u,s,t),i=o(u,s,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(t.h,n,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));var u,l,c;return r=$u(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function Mu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,a,i=Math.max(t,e,r),o=Math.min(t,e,r),s=(i+o)/2;if(i==o)n=a=0;else{var u=i-o;switch(a=s>.5?u/(2-i-o):u/(i+o),i){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:a,l:s}}function Iu(t,e,r){t=Ju(t,255),e=Ju(e,255),r=Ju(r,255);var n,a,i=Math.max(t,e,r),o=Math.min(t,e,r),s=i,u=i-o;if(a=0===i?0:u/i,i==o)n=0;else{switch(i){case t:n=(e-r)/u+(e<r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:a,v:s}}function Bu(t,e,r,n){var a=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Du(t,e,r,n){return[el(nl(n)),el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16))].join("")}function ju(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.s-=e/100,r.s=Qu(r.s),Lu(r)}function zu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.s+=e/100,r.s=Qu(r.s),Lu(r)}function Fu(t){return Lu(t).desaturate(100)}function Nu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.l+=e/100,r.l=Qu(r.l),Lu(r)}function Uu(t,e){e=0===e?0:e||10;var r=Lu(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),Lu(r)}function Hu(t,e){e=0===e?0:e||10;var r=Lu(t).toHsl();return r.l-=e/100,r.l=Qu(r.l),Lu(r)}function Wu(t,e){var r=Lu(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Lu(r)}function Zu(t){var e=Lu(t).toHsl();return e.h=(e.h+180)%360,Lu(e)}function qu(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Lu(t).toHsl(),n=[Lu(t)],a=360/e,i=1;i<e;i++)n.push(Lu({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function Yu(t){var e=Lu(t).toHsl(),r=e.h;return[Lu(t),Lu({h:(r+72)%360,s:e.s,l:e.l}),Lu({h:(r+216)%360,s:e.s,l:e.l})]}function Gu(t,e,r){e=e||6,r=r||30;var n=Lu(t).toHsl(),a=360/r,i=[Lu(t)];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(Lu(n));return i}function Vu(t,e){e=e||6;for(var r=Lu(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(Lu({h:n,s:a,v:i})),i=(i+s)%1;return o}Lu.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=$u(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Iu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Iu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Mu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Mu(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Bu(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,a){var i=[el(Math.round(t).toString(16)),el(Math.round(e).toString(16)),el(Math.round(r).toString(16)),el(nl(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Ju(this._r,255))+"%",g:Math.round(100*Ju(this._g,255))+"%",b:Math.round(100*Ju(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%)":"rgba("+Math.round(100*Ju(this._r,255))+"%, "+Math.round(100*Ju(this._g,255))+"%, "+Math.round(100*Ju(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Xu[Bu(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Du(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=Lu(t);r="#"+Du(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Lu(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Nu,arguments)},brighten:function(){return this._applyModification(Uu,arguments)},darken:function(){return this._applyModification(Hu,arguments)},desaturate:function(){return this._applyModification(ju,arguments)},saturate:function(){return this._applyModification(zu,arguments)},greyscale:function(){return this._applyModification(Fu,arguments)},spin:function(){return this._applyModification(Wu,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(Gu,arguments)},complement:function(){return this._applyCombination(Zu,arguments)},monochromatic:function(){return this._applyCombination(Vu,arguments)},splitcomplement:function(){return this._applyCombination(Yu,arguments)},triad:function(){return this._applyCombination(qu,[3])},tetrad:function(){return this._applyCombination(qu,[4])}},Lu.fromRatio=function(t,e){if("object"==Ou(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:rl(t[n]));t=r}return Lu(t,e)},Lu.equals=function(t,e){return!(!t||!e)&&Lu(t).toRgbString()==Lu(e).toRgbString()},Lu.random=function(){return Lu.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Lu.mix=function(t,e,r){r=0===r?0:r||50;var n=Lu(t).toRgb(),a=Lu(e).toRgb(),i=r/100;return Lu({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},Lu.readability=function(t,e){var r=Lu(t),n=Lu(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Lu.isReadable=function(t,e,r){var n,a,i=Lu.readability(t,e);switch(a=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},Lu.mostReadable=function(t,e,r){var n,a,i,o,s=null,u=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=Lu.readability(t,e[l]))>u&&(u=n,s=Lu(e[l]));return Lu.isReadable(t,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,Lu.mostReadable(t,["#fff","#000"],r))};var Ku=Lu.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Xu=Lu.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(Ku);function $u(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ju(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Qu(t){return Math.min(1,Math.max(0,t))}function tl(t){return parseInt(t,16)}function el(t){return 1==t.length?"0"+t:""+t}function rl(t){return t<=1&&(t=100*t+"%"),t}function nl(t){return Math.round(255*parseFloat(t)).toString(16)}function al(t){return tl(t)/255}var il,ol,sl,ul=(ol="[\\s|\\(]+("+(il="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+il+")[,|\\s]+("+il+")\\s*\\)?",sl="[\\s|\\(]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")[,|\\s]+("+il+")\\s*\\)?",{CSS_UNIT:new RegExp(il),rgb:new RegExp("rgb"+ol),rgba:new RegExp("rgba"+sl),hsl:new RegExp("hsl"+ol),hsla:new RegExp("hsla"+sl),hsv:new RegExp("hsv"+ol),hsva:new RegExp("hsva"+sl),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ll(t){return!!ul.CSS_UNIT.exec(t)}function cl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return fl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function fl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hl(t){for(var e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),a=n.byteLength,i=a%3,o=a-i,s="",u=0;u<o;u+=3)s+=r[(16515072&(e=n[u]<<16|n[u+1]<<8|n[u+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1===i?s+=r[(252&(e=n[o]))>>2]+r[(3&e)<<4]+"==":2===i&&(s+=r[(64512&(e=n[o]<<8|n[o+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),s}function dl(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function pl(t,e){if(!t)return t;var r="";if(t.constructor===Array)for(var n=0;n<t.length;n++)r+=e(t[n],n);else r+=e(t,0);return r}function gl(t,e){if(!t)return t;var r,n=cl(e);try{for(n.s();!(r=n.n()).done;){if(!(t=t[r.value]))return t}}catch(t){n.e(t)}finally{n.f()}return t}function bl(t){return t?Math.round(t/6e4):0}function ml(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.replace(/[&<>"']/g,(function(t){return e[t]}))}function vl(t){var e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}function yl(t){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(t)}function wl(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function _l(t){if(!DOMParser)return!0;var e=(new DOMParser).parseFromString(t,"text/html");return""!==(e.body.textContent||e.body.innerText).trim()}function kl(t,e,r,n){var a,i;if(r)i=r;else{var o=gl(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);i=o||((o=gl(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||gl(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"]))}var s=t.substr(2);if("phClr"===s&&n)a=n;else{if(i)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+i[s]}else switch(t){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}var u=gl(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(a=gl(u,["a:srgbClr","attrs","val"]))&&u&&(a=gl(u,["a:sysClr","attrs","lastClr"]))}return a}function xl(t,e,r){var n=gl(t,["p:spPr","a:ln"]);if(!n){var a=gl(t,["p:style","a:lnRef"]);if(a){var i=gl(a,["attrs","idx"]);n=r.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(i)-1]}}n||(n=t);var o=gl(n,["a:noFill"])?0:parseInt(gl(n,["attrs","w"]))/12700;isNaN(o)&&(o=n||"obj"!==e?0:1);var s=gl(n,["a:solidFill","a:srgbClr","attrs","val"]);if(!s){var u=gl(n,["a:solidFill","a:schemeClr"]);s=kl("a:"+gl(u,["attrs","val"]),r)}if(!s){var l=gl(t,["p:style","a:lnRef","a:schemeClr"]);if(s=kl("a:"+gl(l,["attrs","val"]),r)){var c=gl(l,["a:shade","attrs","val"]);if(c){c=parseInt(c)/1e5;var f=Lu("#"+s).toHsl();s=Lu({h:f.h,s:f.s,l:f.l*c,a:f.a}).toHex()}}}s=s?"#".concat(s):"#000000";var h="solid",d="0";switch(gl(n,["a:prstDash","attrs","val"])){case"solid":h="solid",d="0";break;case"dash":h="dashed",d="5";break;case"dashDot":h="dashed",d="5, 5, 1, 5";break;case"dot":h="dotted",d="1, 5";break;case"lgDash":h="dashed",d="10, 5";break;case"lgDashDotDot":h="dotted",d="10, 5, 1, 5, 1, 5";break;case"sysDash":h="dashed",d="5, 2";break;case"sysDashDot":h="dotted",d="5, 2, 1, 5";break;case"sysDashDotDot":h="dotted",d="5, 2, 1, 5, 1, 5";break;case"sysDot":h="dotted",d="2, 5"}return{borderColor:s,borderWidth:o,borderType:h,strokeDasharray:d}}function Sl(t,e,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(e-t)*r+t:r<3?e:r<4?(e-t)*(4-r)+t:t}function Cl(t,e,r){var n=Lu(t).toHsl();e>=1&&(e=1);var a=n.l*e+(1-e);return r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}function Al(t){var e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function El(t,e,r){return Rl.apply(this,arguments)}function Rl(){return Rl=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r["a:blip"].attrs["r:embed"],"slideBg"===e||"slide"===e?o=gl(n,["slideResObj",i,"target"]):"slideLayoutBg"===e?o=gl(n,["layoutResObj",i,"target"]):"slideMasterBg"===e?o=gl(n,["masterResObj",i,"target"]):"themeBg"===e?o=gl(n,["themeResObj",i,"target"]):"diagramBg"===e&&(o=gl(n,["diagramResObj",i,"target"])),o){t.next=4;break}return t.abrupt("return",o);case 4:if(a=gl(n,["loaded-images",o])){t.next=18;break}if(o=ml(o),"xml"!==(s=o.split(".").pop())){t.next=10;break}return t.abrupt("return",void 0);case 10:return t.next=12,n.zip.file(o).async("arraybuffer");case 12:l=t.sent,c=vl(s),a="data:".concat(c,";base64,").concat(hl(l)),(f=n["loaded-images"]||{})[o]=a,n["loaded-images"]=f;case 18:return t.abrupt("return",a);case 19:case"end":return t.stop()}}),t)}))),Rl.apply(this,arguments)}function Ol(t){var e=gl(t["a:blip"],["a:alphaModFix","attrs"]),r=1;return e&&e.amt&&""!==e.amt&&(r=parseInt(e.amt)/1e5),r}function Tl(t,e,r){return Pl.apply(this,arguments)}function Pl(){return(Pl=r(u.mark((function t(e,r,n){var a,i,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,El(r,e["a:blipFill"],n);case 2:return a=t.sent,i=e["a:blipFill"]["a:blip"],o=gl(i,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&""!==o.amt&&(s=parseInt(o.amt)/1e5),t.abrupt("return",{picBase64:a,opacity:s});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ll(t,e){for(var r=t["a:gsLst"]["a:gs"],n=[],a=0;a<r.length;a++){var i=zl(r[a],void 0,void 0,e),o=gl(r[a],["attrs","pos"]);n[a]={pos:o?o/1e3+"%":"",color:i}}var s=t["a:lin"],u=0,l="line";if(s)u=bl(s.attrs.ang);else{var c=t["a:path"];c&&c.attrs&&c.attrs.path&&(l=c.attrs.path)}return{rot:u,path:l,colors:n.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}function Ml(t,e,r,n){if(t){for(var a=t["a:gradFill"],i=a["a:gsLst"]["a:gs"],o=[],s=0;s<i.length;s++){var u=zl(i[s],r["p:sldMaster"]["p:clrMap"].attrs,e,n),l=gl(i[s],["attrs","pos"]);o[s]={pos:l?l/1e3+"%":"",color:u}}var c=a["a:lin"],f=0,h="line";if(c)f=bl(c.attrs.ang)+0;else{var d=a["a:path"];d&&d.attrs&&d.attrs.path&&(h=d.attrs.path)}return{rot:f,path:h,colors:o.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}return e?-1===e.indexOf("#")?"#".concat(e):e:null}function Il(t){return Bl.apply(this,arguments)}function Bl(){return Bl=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,at,it,ot,st,ut,lt;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.slideContent,n=e.slideLayoutContent,a=e.slideMasterContent,i=gl(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=gl(r,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",l="color",!i){t.next=29;break}if("SOLID_FILL"!==(c=Al(i))){t.next=17;break}f=i["a:solidFill"],(d=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?h=d:(p=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),h=p||gl(a,["p:sldMaster","p:clrMap","attrs"])),g=zl(f,h,void 0,e),s=g,t.next=27;break;case 17:if("GRADIENT_FILL"!==c){t.next=22;break}"string"==typeof(b=Ml(i,void 0,a,e))?s=b:b&&(s=b,l="gradient"),t.next=27;break;case 22:if("PIC_FILL"!==c){t.next=27;break}return t.next=25,Tl(i,"slideBg",e);case 25:s=t.sent,l="image";case 27:t.next=142;break;case 29:if(!o){t.next=37;break}(v=gl(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?m=v:(y=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),m=y||gl(a,["p:sldMaster","p:clrMap","attrs"])),w=zl(o,m,void 0,e),(_=Number(o.attrs.idx))>1e3&&(k=_-1e3,x=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],S=[],Object.keys(x).forEach((function(t){var e=x[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),S.push(n)}else{var a={};a[t]=e,e.attrs&&(a.idex=e.attrs.order,a.attrs={order:e.attrs.order}),S.push(a)}})),(C=S.slice(0)).sort((function(t,e){return t.idex-e.idex})),A=C[k-1],"SOLID_FILL"===(E=Al(A))?(R=A["a:solidFill"],O=zl(R,m,void 0,e),s=O):"GRADIENT_FILL"===E&&("string"==typeof(T=Ml(A,w,a,e))?s=T:T&&(s=T,l="gradient"))),t.next=142;break;case 37:if(i=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=gl(n,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),L=gl(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),P=L||gl(a,["p:sldMaster","p:clrMap","attrs"]),!i){t.next=61;break}if("SOLID_FILL"!==(M=Al(i))){t.next=49;break}I=i["a:solidFill"],B=zl(I,P,void 0,e),s=B,t.next=59;break;case 49:if("GRADIENT_FILL"!==M){t.next=54;break}"string"==typeof(D=Ml(i,void 0,a,e))?s=D:D&&(s=D,l="gradient"),t.next=59;break;case 54:if("PIC_FILL"!==M){t.next=59;break}return t.next=57,Tl(i,"slideLayoutBg",e);case 57:s=t.sent,l="image";case 59:t.next=142;break;case 61:if(!o){t.next=91;break}if(j=zl(o,P,void 0,e),!((z=Number(o.attrs.idx))>1e3)){t.next=89;break}if(F=z-1e3,N=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],U=[],Object.keys(N).forEach((function(t){var e=N[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),U.push(n)}else{var a={};a[t]=e,e.attrs&&(a.idex=e.attrs.order,a.attrs={order:e.attrs.order}),U.push(a)}})),(H=U.slice(0)).sort((function(t,e){return t.idex-e.idex})),W=H[F-1],"SOLID_FILL"!==(Z=Al(W))){t.next=79;break}q=W["a:solidFill"],Y=zl(q,P,void 0,e),s=Y,t.next=89;break;case 79:if("GRADIENT_FILL"!==Z){t.next=84;break}"string"==typeof(G=Ml(W,j,a,e))?s=G:G&&(s=G,l="gradient"),t.next=89;break;case 84:if("PIC_FILL"!==Z){t.next=89;break}return t.next=87,Tl(W,"themeBg",e);case 87:s=t.sent,l="image";case 89:t.next=142;break;case 91:if(i=gl(a,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=gl(a,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),V=gl(a,["p:sldMaster","p:clrMap","attrs"]),!i){t.next=114;break}if("SOLID_FILL"!==(K=Al(i))){t.next=102;break}X=i["a:solidFill"],$=zl(X,V,void 0,e),s=$,t.next=112;break;case 102:if("GRADIENT_FILL"!==K){t.next=107;break}"string"==typeof(J=Ml(i,void 0,a,e))?s=J:J&&(s=J,l="gradient"),t.next=112;break;case 107:if("PIC_FILL"!==K){t.next=112;break}return t.next=110,Tl(i,"slideMasterBg",e);case 110:s=t.sent,l="image";case 112:t.next=142;break;case 114:if(!o){t.next=142;break}if(Q=zl(o,V,void 0,e),!((tt=Number(o.attrs.idx))>1e3)){t.next=142;break}if(et=tt-1e3,rt=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],nt=[],Object.keys(rt).forEach((function(t){var e=rt[t];if("attrs"!==t)if(e.constructor===Array)for(var r=0;r<e.length;r++){var n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),nt.push(n)}else{var a={};a[t]=e,e.attrs&&(a.idex=e.attrs.order,a.attrs={order:e.attrs.order}),nt.push(a)}})),(at=nt.slice(0)).sort((function(t,e){return t.idex-e.idex})),it=at[et-1],"SOLID_FILL"!==(ot=Al(it))){t.next=132;break}st=it["a:solidFill"],ut=zl(st,P,void 0,e),s=ut,t.next=142;break;case 132:if("GRADIENT_FILL"!==ot){t.next=137;break}"string"==typeof(lt=Ml(it,Q,a,e))?s=lt:lt&&(s=lt,l="gradient"),t.next=142;break;case 137:if("PIC_FILL"!==ot){t.next=142;break}return t.next=140,Tl(it,"themeBg",e);case 140:s=t.sent,l="image";case 142:return t.abrupt("return",{type:l,value:s});case 143:case"end":return t.stop()}}),t)}))),Bl.apply(this,arguments)}function Dl(t,e,r,n,a){return jl.apply(this,arguments)}function jl(){return jl=r(u.mark((function t(e,r,n,a,i){var o,s,l,c,f,h,d,p,g,b,m;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=Al(gl(e,["p:spPr"])),s="color",l="","NO_FILL"!==o){t.next=7;break}return t.abrupt("return",n?"none":"");case 7:if("SOLID_FILL"!==o){t.next=13;break}c=e["p:spPr"]["a:solidFill"],l=zl(c,void 0,void 0,a),s="color",t.next=27;break;case 13:if("GRADIENT_FILL"!==o){t.next=19;break}f=e["p:spPr"]["a:gradFill"],l=Ll(f,a),s="gradient",t.next=27;break;case 19:if("PIC_FILL"!==o){t.next=27;break}return h=e["p:spPr"]["a:blipFill"],t.next=23,El(i,h,a);case 23:d=t.sent,p=Ol(h),l={picBase64:d,opacity:p},s="image";case 27:if(l||(g=gl(e,["p:style","a:fillRef"]),l=zl(g,void 0,void 0,a),s="color"),l||!r){t.next=39;break}if(!gl(e,["p:spPr","a:grpFill"])){t.next=37;break}if(!(b=r["p:grpSpPr"])){t.next=35;break}return m={"p:spPr":b},t.abrupt("return",Dl(m,e,n,a,i));case 35:t.next=39;break;case 37:if("NO_FILL"!==o){t.next=39;break}return t.abrupt("return",n?"none":"");case 39:return t.abrupt("return",{type:s,value:l});case 40:case"end":return t.stop()}}),t)}))),jl.apply(this,arguments)}function zl(t,e,r,n){if(!t)return"";var a,i,o,s="";if(t["a:srgbClr"])s=gl(a=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"]){s=kl("a:"+gl(a=t["a:schemeClr"],["attrs","val"]),n,e,r)||""}else if(t["a:scrgbClr"]){var u=(a=t["a:scrgbClr"]).attrs,l=-1!==u.r.indexOf("%")?u.r.split("%").shift():u.r,c=-1!==u.g.indexOf("%")?u.g.split("%").shift():u.g,f=-1!==u.b.indexOf("%")?u.b.split("%").shift():u.b;s=wl(Number(l)/100*255)+wl(Number(c)/100*255)+wl(Number(f)/100*255)}else if(t["a:prstClr"]){var h=gl(a=t["a:prstClr"],["attrs","val"]);-1!==(o=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].indexOf(h))&&(i=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][o]),s=i}else if(t["a:hslClr"]){var d=(a=t["a:hslClr"]).attrs,p=function(t,e,r){var n,a=2*r-(n=r<=.5?r*(e+1):r+e-r*e);return{r:255*Sl(a,n,2+(t/=60)),g:255*Sl(a,n,t),b:255*Sl(a,n,t-2)}}(Number(d.hue)/1e5,Number(-1!==d.sat.indexOf("%")?d.sat.split("%").shift():d.sat)/100,Number(-1!==d.lum.indexOf("%")?d.lum.split("%").shift():d.lum)/100);s=wl(p.r)+wl(p.g)+wl(p.b)}else if(t["a:sysClr"]){var g=gl(a=t["a:sysClr"],["attrs","lastClr"]);g&&(s=g)}var b=!1,m=parseInt(gl(a,["a:alpha","attrs","val"]))/1e5;if(!isNaN(m)){var v=Lu(s);v.setAlpha(m),s=v.toHex8(),b=!0}var y=parseInt(gl(a,["a:hueMod","attrs","val"]))/1e5;isNaN(y)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=n.h*e;return a>=360&&(a-=360),r?Lu({h:a,s:n.s,l:n.l,a:n.a}).toHex8():Lu({h:a,s:n.s,l:n.l,a:n.a}).toHex()}(s,y,b));var w=parseInt(gl(a,["a:lumMod","attrs","val"]))/1e5;isNaN(w)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=n.l*e;return a>=1&&(a=1),r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}(s,w,b));var _=parseInt(gl(a,["a:lumOff","attrs","val"]))/1e5;isNaN(_)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=e+n.l;return a>=1?r?Lu({h:n.h,s:n.s,l:1,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:1,a:n.a}).toHex():r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}(s,_,b));var k=parseInt(gl(a,["a:satMod","attrs","val"]))/1e5;isNaN(k)||(s=function(t,e,r){var n=Lu(t).toHsl(),a=n.s*e;return a>=1&&(a=1),r?Lu({h:n.h,s:a,l:n.l,a:n.a}).toHex8():Lu({h:n.h,s:a,l:n.l,a:n.a}).toHex()}(s,k,b));var x=parseInt(gl(a,["a:shade","attrs","val"]))/1e5;isNaN(x)||(s=function(t,e,r){var n=Lu(t).toHsl();e>=1&&(e=1);var a=Math.min(n.l*e,1);return r?Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex8():Lu({h:n.h,s:n.s,l:a,a:n.a}).toHex()}(s,x,b));var S=parseInt(gl(a,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(s=Cl(s,S,b)),s&&-1===s.indexOf("#")&&(s="#"+s),s}function Fl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Nl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function Nl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ul(t,e){t.constructor!==Array&&(t=[t]);var r,n=[],a=Fl(t);try{for(a.s();!(r=a.n()).done;){var i=r.value,o=gl(i,["c:spPr","a:solidFill","a:schemeClr"]);o||(o=gl(i,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),o||(o=gl(i,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));var s=gl(o,["attrs","val"]);if(s){s=gl(e.themeContent,["a:theme","a:themeElements","a:clrScheme","a:".concat(s),"a:srgbClr","attrs","val"]);var u=gl(o,["a:tint","attrs","val"])/1e5;s&&!isNaN(u)&&(s=Cl(s,u))}else s=gl(i,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);s&&(s="#"+s),n.push(s)}}catch(t){a.e(t)}finally{a.f()}return n}function Hl(t){var e=[];if(!t)return e;if(t["c:xVal"]){var r=[];pl(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r),r=[],pl(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r)}else pl(t,(function(t,r){var n=[],a=gl(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,i={};return gl(t,["c:cat","c:strRef","c:strCache","c:pt"])?pl(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],(function(t){return i[t.attrs.idx]=t["c:v"],""})):gl(t,["c:cat","c:numRef","c:numCache","c:pt"])&&pl(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return i[t.attrs.idx]=t["c:v"],""})),gl(t,["c:val","c:numRef","c:numCache","c:pt"])&&pl(t["c:val"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return n.push({x:t.attrs.idx,y:parseFloat(t["c:v"])}),""})),e.push({key:a,values:n,xlabels:i}),""}));return e}function Wl(t,e){var r=null;for(var n in t)switch(n){case"c:lineChart":r={type:"lineChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"]),marker:!!t[n]["c:marker"]};break;case"c:line3DChart":r={type:"line3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"])};break;case"c:barChart":r={type:"barChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"]),barDir:gl(t[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":r={type:"bar3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"]),barDir:gl(t[n],["c:barDir","attrs","val"])};break;case"c:pieChart":r={type:"pieChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"]["c:dPt"],e)};break;case"c:pie3DChart":r={type:"pie3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"]["c:dPt"],e)};break;case"c:doughnutChart":r={type:"doughnutChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"]["c:dPt"],e),holeSize:gl(t[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":r={type:"areaChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":r={type:"area3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),grouping:gl(t[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":r={type:"scatterChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),style:gl(t[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":r={type:"bubbleChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e)};break;case"c:radarChart":r={type:"radarChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e),style:gl(t[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":r={type:"surfaceChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e)};break;case"c:surface3DChart":r={type:"surface3DChart",data:Hl(t[n]["c:ser"]),colors:Ul(t[n]["c:ser"],e)};break;case"c:stockChart":r={type:"stockChart",data:Hl(t[n]["c:ser"]),colors:[]}}return r}function Zl(t,e,r,n){var a=gl(t,["a:pPr","attrs","algn"]);if(a||(a=gl(e,["a:pPr","attrs","algn"])),!a)if("title"===r||"ctrTitle"===r||"subTitle"===r){var i=1,o=gl(e,["a:pPr","attrs","lvl"]);o&&(i=parseInt(o)+1);var s="a:lvl"+i+"pPr";(a=gl(n,["slideLayoutTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(a=gl(n,["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"])),a||(a=gl(n,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),a||"subTitle"!==r||(a=gl(n,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else a=gl(n,"body"===r?["slideMasterTextStyles","p:bodyStyle","a:lvl1pPr","attrs","algn"]:["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle","a:lvl1pPr","attrs","algn"]);var u="left";if(a)switch(a){case"l":u="left";break;case"r":u="right";break;case"ctr":u="center";break;case"just":case"dist":u="justify";break;default:u="inherit"}return u}function ql(t,e,r){var n=gl(t,["p:txBody","a:bodyPr","attrs","anchor"]);return n||(n=gl(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(n=gl(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(n="t"),"ctr"===n?"mid":"b"===n?"down":"up"}var Yl=72/914400;function Gl(t,e,r){var n;return t?n=t["a:off"].attrs:e?n=e["a:off"].attrs:r&&(n=r["a:off"].attrs),n?{top:parseInt(n.y)*Yl,left:parseInt(n.x)*Yl}:{top:0,left:0}}function Vl(t,e,r){var n;return t?n=t["a:ext"].attrs:e?n=e["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n?{width:parseInt(n.cx)*Yl,height:parseInt(n.cy)*Yl}:{width:0,height:0}}function Kl(t,e){var r=zl(t,void 0,void 0,e),n=t.attrs,a=n.dir?parseInt(n.dir)/6e4:0,i=n.dist?parseInt(n.dist)*Yl:0,o=n.blurRad?parseInt(n.blurRad)*Yl:"",s=i*Math.sin(a*Math.PI/180);return{h:i*Math.cos(a*Math.PI/180),v:s,blur:o,color:r}}function Xl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return $l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $l(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function $l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jl(t,e,r,n,a){if(!t)return"";var i,o="",s=gl(e,["p:style","a:fontRef"]),u=t["a:p"],l="",c=Xl(u.constructor===Array?u:[u]);try{for(c.s();!(i=c.n()).done;){var f=i.value,h=f["a:r"],d=f["a:fld"],p=f["a:br"];h&&(h=h.constructor===Array?h:[h],d&&(d=d.constructor===Array?d:[d],h=h.concat(d)),p&&((p=p.constructor===Array?p:[p]).forEach((function(t){return t.type="br"})),p.length>1&&p.shift(),(h=h.concat(p)).sort((function(t,e){return!t.attrs||!e.attrs||t.attrs.order-e.attrs.order}))));var g=Zl(f,e,n,a),b=Ql(f);if(b?(l?l&&l!==b&&(o+="</".concat(l,">"),o+="<".concat(b,">"),l=b):(o+="<".concat(b,">"),l=b),o+='<li style="text-align: '.concat(g,';">')):(l&&(o+="</".concat(l,">"),l=""),o+='<p style="text-align: '.concat(g,';">')),h){var m,v=Xl(h);try{for(v.s();!(m=v.n()).done;){o+=tc(m.value,f,t,s,r,n,a)}}catch(t){v.e(t)}finally{v.f()}}else o+=tc(f,e,t,s,r,n,a);o+=b?"</li>":"</p>"}}catch(t){c.e(t)}finally{c.f()}return o}function Ql(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function tc(t,e,r,n,a,i,o){var s=r["a:lstStyle"],u=o.slideMasterTextStyles,l=1,c=gl(e["a:pPr"],["attrs","lvl"]);void 0!==c&&(l=parseInt(c)+1);var f=t["a:t"];"string"!=typeof f&&(f=gl(t,["a:fld","a:t"])),"string"!=typeof f&&(f="&nbsp;");var h="",d=function(t,e,r,n,a,i){var o,s=gl(t,["a:rPr"]);if(s&&"SOLID_FILL"===Al(s)&&(o=zl(s["a:solidFill"],void 0,void 0,i)),!o&&gl(r,["a:lvl"+a+"pPr","a:defRPr"])){var u=gl(r,["a:lvl"+a+"pPr","a:defRPr"]);"SOLID_FILL"===Al(u)&&(o=zl(u["a:solidFill"],void 0,void 0,i))}if(!o){var l=gl(e,["p:style","a:fontRef"]);l&&(o=zl(l,void 0,void 0,i)),!o&&n&&(o=zl(n,void 0,void 0,i))}return o||""}(t,e,s,n,l,o),p=function(t,e,r,n){var a,i;if(gl(t,["a:rPr","attrs","sz"])&&(a=gl(t,["a:rPr","attrs","sz"])/100),isNaN(a)||!a){var o=gl(e,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);a=parseInt(o)/100}return!isNaN(a)&&a||("title"===r||"subTitle"===r||"ctrTitle"===r?i=gl(n,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"body"===r?i=gl(n,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"dt"===r||"sldNum"===r?i="1200":r||(i=gl(n,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),i&&(a=parseInt(i)/100)),gl(t,["a:rPr","attrs","baseline"])&&!isNaN(a)&&(a-=10),(a=isNaN(a)||!a?18:a)+"pt"}(t,a,i,u),g=function(t,e,r){var n=gl(t,["a:rPr","a:latin","attrs","typeface"]);if(!n){var a=gl(r.themeContent,["a:theme","a:themeElements","a:fontScheme"]);n=gl(a,"title"===e||"subTitle"===e||"ctrTitle"===e?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return n||""}(t,i,o),b=function(t){return"1"===gl(t,["a:rPr","attrs","b"])?"bold":""}(t),m=function(t){return"1"===gl(t,["a:rPr","attrs","i"])?"italic":""}(t),v=function(t){return"sng"===gl(t,["a:rPr","attrs","u"])?"underline":""}(t),y=function(t){return"sngStrike"===gl(t,["a:rPr","attrs","strike"])?"line-through":""}(t),w=function(t){var e=gl(t,["a:rPr","attrs","spc"]);return e?parseInt(e)/100+"pt":""}(t),_=function(t,e){var r=gl(t,["a:rPr","a:effectLst","a:outerShdw"]);if(r){var n=Kl(r,e);if(n){var a=n.h,i=n.v,o=n.blur,s=n.color;if(!isNaN(i)&&!isNaN(a))return a+"pt "+i+"pt "+(o?o+"pt":"")+" "+s}}return""}(t,o),k=function(t){var e=gl(t,["a:rPr","attrs","baseline"]);return e?parseInt(e)>0?"super":"sub":""}(t);d&&(h+="color: ".concat(d,";")),p&&(h+="font-size: ".concat(p,";")),g&&(h+="font-family: ".concat(g,";")),b&&(h+="font-weight: ".concat(b,";")),m&&(h+="font-style: ".concat(m,";")),v&&(h+="text-decoration: ".concat(v,";")),y&&(h+="text-decoration-line: ".concat(y,";")),w&&(h+="letter-spacing: ".concat(w,";")),k&&(h+="vertical-align: ".concat(k,";")),_&&(h+="text-shadow: ".concat(_,";"));var x=gl(t,["a:rPr","a:hlinkClick","attrs","r:id"]);if(x){var S=o.slideResObj[x].target;return'<span style="'.concat(h,'"><a href="').concat(S,'" target="_blank">').concat(f.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</a></span>")}return'<span style="'.concat(h,'">').concat(f.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;"),"</span>")}function ec(t,e,r,n,a,i,o){var s,u=a;if(i>=a)for(;u<=i;){var l=u*(Math.PI/180),c=t+Math.cos(l)*r,f=e+Math.sin(l)*n;u===a&&(s=" M"+c+" "+f),s+=" L"+c+" "+f,u++}else for(;u>i;){var h=u*(Math.PI/180),d=t+Math.cos(h)*r,p=e+Math.sin(h)*n;u===a&&(s=" M "+d+" "+p),s+=" L "+d+" "+p,u--}return s+=o?" z":""}function rc(t,e,r){var n=gl(t,["a:pathLst"]),a=gl(n,["a:path"]);Array.isArray(a)&&(a=a.shift());var i=parseInt(a.attrs.w),o=parseInt(a.attrs.h),s=0===i?0:1/i*e,u=0===o?0:1/o*r,l="",c=gl(a,["a:moveTo"]),f=a["a:lnTo"],h=a["a:cubicBezTo"],d=a["a:arcTo"],p=gl(a,["a:close"]);Array.isArray(c)||(c=[c]);var g=[];if(c.length>0){if(Object.keys(c).forEach((function(t){var e=c[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,a=r.y,i=r.order;g.push({type:"movto",x:n,y:a,order:i})}))})),f&&Object.keys(f).forEach((function(t){var e=f[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,a=r.y,i=r.order;g.push({type:"lnto",x:n,y:a,order:i})}))})),h){var b=[];Array.isArray(h)||(h=[h]),Object.keys(h).forEach((function(t){b.push(h[t]["a:pt"])})),b.forEach((function(t){var e=[];t.forEach((function(t){var r={x:t.attrs.x,y:t.attrs.y};e.push(r)}));var r=t[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:e,order:r})}))}if(d){var m=d.attrs,v=m.order,y=m.hR,w=m.wR,_=m.stAng,k=m.swAng,x=0,S=0,C=gl(d,["a:pt","attrs"]);C&&(x=C.x,S=C.y),g.push({type:"arcTo",hR:y,wR:w,stAng:_,swAng:k,shftX:x,shftY:S,order:v})}p&&(Array.isArray(p)||(p=[p]),Object.keys(p).forEach((function(){g.push({type:"close",order:1/0})}))),g.sort((function(t,e){return t.order-e.order}));for(var A=0;A<g.length;){if("movto"===g[A].type)l+=" M"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u;else if("lnto"===g[A].type){l+=" L"+parseInt(g[A].x)*s+","+parseInt(g[A].y)*u}else if("cubicBezTo"===g[A].type){l+=" C"+parseInt(g[A].cubBzPt[0].x)*s+","+parseInt(g[A].cubBzPt[0].y)*u+" "+parseInt(g[A].cubBzPt[1].x)*s+","+parseInt(g[A].cubBzPt[1].y)*u+" "+parseInt(g[A].cubBzPt[2].x)*s+","+parseInt(g[A].cubBzPt[2].y)*u}else if("arcTo"===g[A].type){var E=parseInt(g[A].hR)*s,R=parseInt(g[A].wR)*u,O=parseInt(g[A].stAng)/6e4;l+=ec(R,E,R,E,O,O+parseInt(g[A].swAng)/6e4,!1)}else"close"===g[A].type&&(l+="z");A++}}return l}function nc(t,e){var r={};if(t["a:bottom"]){var n=xl({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);r.bottom=n}if(t["a:top"]){var a=xl({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);r.top=a}if(t["a:right"]){var i=xl({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);r.right=i}if(t["a:left"]){var o=xl({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);r.left=o}return r}function ac(t,e,r,n){return ic.apply(this,arguments)}function ic(){return(ic=r(u.mark((function t(e,r,n,a){var i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=gl(e,["attrs","rowSpan"]),o=gl(e,["attrs","gridSpan"]),s=gl(e,["attrs","vMerge"]),l=gl(e,["attrs","hMerge"]),!(d=gl(e,["a:tcPr"]))){t.next=11;break}return p={"p:spPr":d},t.next=9,Dl(p,void 0,!1,a,"slide");case 9:(g=t.sent)&&"color"===g.type&&g.value&&(c=g.value);case 11:return c||(n&&(b=gl(r,[n,"a:tcStyle","a:fill","a:solidFill"])),b&&(c=zl(b,void 0,void 0,a))),n&&(m=gl(r,[n,"a:tcTxStyle"])),m&&(f=zl(m,void 0,void 0,a),"on"===gl(m,["attrs","b"])&&(h=!0)),(v=gl(e,["a:tcPr","a:lnB"]))||(n&&(v=gl(r[n],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),v||(v=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"]))),(y=gl(e,["a:tcPr","a:lnT"]))||(n&&(y=gl(r[n],["a:tcStyle","a:tcBdr","a:top","a:ln"])),y||(y=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"]))),(w=gl(e,["a:tcPr","a:lnL"]))||(n&&(w=gl(r[n],["a:tcStyle","a:tcBdr","a:left","a:ln"])),w||(w=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"]))),(_=gl(e,["a:tcPr","a:lnR"]))||(n&&(_=gl(r[n],["a:tcStyle","a:tcBdr","a:right","a:ln"])),_||(_=gl(r,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"]))),k={},v&&(k.bottom=xl(v,void 0,a)),y&&(k.top=xl(y,void 0,a)),w&&(k.left=xl(w,void 0,a)),_&&(k.right=xl(_,void 0,a)),t.abrupt("return",{fillColor:c,fontColor:f,fontBold:h,borders:k,rowSpan:i?+i:void 0,colSpan:o?+o:void 0,vMerge:s?+s:void 0,hMerge:l?+l:void 0});case 28:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function oc(t,e,r,n,a){var i,o,s;if(n&&n["a:wholeTbl"]){var u=gl(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(u){var l=zl(u,void 0,void 0,a);l&&(i=l)}var c=gl(n,["a:wholeTbl","a:tcTxStyle"]);if(c){var f=zl(c,void 0,void 0,a);f&&(o=f),"on"===gl(c,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){var h=gl(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(h){var d=zl(h,void 0,void 0,a);d&&(i=d)}var p=gl(n,["a:firstRow","a:tcTxStyle"]);if(p){var g=zl(p,void 0,void 0,a);g&&(o=g),"on"===gl(p,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(i="",e%2==0&&n["a:band2H"]){var b=gl(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(b){var m=zl(b,void 0,void 0,a);m&&(i=m)}var v=gl(n,["a:band2H","a:tcTxStyle"]);if(v){var y=zl(v,void 0,void 0,a);y&&(o=y)}"on"===gl(v,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){var w=gl(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=zl(w,void 0,void 0,a);_&&(i=_)}var k=gl(n,["a:band1H","a:tcTxStyle"]);if(k){var x=zl(k,void 0,void 0,a);x&&(o=x),"on"===gl(k,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){var S=gl(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(S){var C=zl(S,void 0,void 0,a);C&&(i=C)}var A=gl(n,["a:lastRow","a:tcTxStyle"]);if(A){var E=zl(A,void 0,void 0,a);E&&(o=E),"on"===gl(A,["attrs","b"])&&(s=!0)}}return{fillColor:i,fontColor:o,fontBold:s}}function sc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uc(t){return function(t){if(Array.isArray(t))return sc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return sc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lc(t){var e=[];return"object"!==mu(t)||(t["m:oMath"]&&(e=e.concat(t["m:oMath"])),Object.values(t).forEach((function(t){(Array.isArray(t)||"object"===mu(t))&&(e=e.concat(lc(t)))}))),e}function cc(t,e){var r=fc(t["m:e"]),n=fc(t["m:lim"]);return"low"===e?"".concat(r,"_{").concat(n,"}"):"".concat(r,"^{").concat(n,"}")}function fc(t){if(!t)return"";if(Array.isArray(t))return t.map((function(t){return fc(t)})).join("");for(var e=[],r=Object.keys(t),n=function(){var r=i[a];Array.isArray(t[r])?e.push.apply(e,uc(t[r].map((function(t){return{key:r,value:t}})))):e.push({key:r,value:t[r]})},a=0,i=r;a<i.length;a++)n();return e.sort((function(t,e){var r=0;"m:r"===t.key&&t.value&&t.value["a:rPr"]?r=t.value["a:rPr"].attrs.order:t.value["".concat(t.key,"Pr")]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&(r=t.value["".concat(t.key,"Pr")]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&t.value["".concat(t.key,"Pr")]["m:ctrlPr"]["a:rPr"].attrs.order);var n=0;return"m:r"===e.key&&e.value&&e.value["a:rPr"]?n=e.value["a:rPr"].attrs.order:e.value["".concat(e.key,"Pr")]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&(n=e.value["".concat(e.key,"Pr")]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]["a:rPr"]&&e.value["".concat(e.key,"Pr")]["m:ctrlPr"]["a:rPr"].attrs.order),r-n})),e.map((function(t){var e,r,n,a,i,o,s,u,l,c,f,h,d,p,g,b,m,v=t.key,y=t.value;return"m:f"===v?(r=fc((e=y)["m:num"]),n=fc(e["m:den"]),"\\frac{".concat(r,"}{").concat(n,"}")):"m:sSup"===v?(i=fc((a=y)["m:e"]),o=fc(a["m:sup"]),"".concat(i,"^{").concat(o,"}")):"m:sSub"===v?function(t){var e=fc(t["m:e"]),r=fc(t["m:sub"]);return"".concat(e,"_{").concat(r,"}")}(y):"m:rad"===v?(u=fc((s=y)["m:deg"]),l=fc(s["m:e"]),u?"\\sqrt[".concat(u,"]{").concat(l,"}"):"\\sqrt{".concat(l,"}")):"m:nary"===v?function(t){var e=gl(t,["m:naryPr","m:chr","attrs","m:val"])||"∫",r=fc(t["m:sub"]),n=fc(t["m:sup"]),a=fc(t["m:e"]);return"".concat(e,"_{").concat(r,"}^{").concat(n,"}{").concat(a,"}")}(y):"m:limLow"===v?cc(y,"low"):"m:limUpp"===v?cc(y,"upp"):"m:d"===v?function(t){var e=gl(t,["m:dPr","m:begChr","attrs","m:val"]),r=gl(t,["m:dPr","m:endChr","attrs","m:val"]);e||r||(e="(",r=")"),e&&r&&(e="\\left".concat(e),r="\\right".concat(r));var n=fc(t["m:e"]);return"".concat(e).concat(n).concat(r)}(y):"m:func"===v?(f=fc((c=y)["m:fName"]),h=fc(c["m:e"]),"\\".concat(f,"{").concat(h,"}")):"m:groupChr"===v?(p=gl(d=y,["m:groupChrPr","m:chr","attrs","m:val"]),g=fc(d["m:e"]),"".concat(p).concat(g).concat(p)):"m:eqArr"===v?(b=y["m:e"].map((function(t){return fc(t)})).join(" \\\\ "),"\\begin{cases} ".concat(b," \\end{cases}")):"m:bar"===v?function(t){var e=fc(t["m:e"]);return"top"===gl(t,["m:barPr","m:pos","attrs","m:val"])?"\\overline{".concat(e,"}"):"\\underline{".concat(e,"}")}(y):"m:acc"===v?function(t){var e=gl(t,["m:accPr","m:chr","attrs","m:val"])||"^",r=fc(t["m:e"]);switch(e){case"́":return"\\acute{".concat(r,"}");case"̀":return"\\grave{".concat(r,"}");case"̂":return"\\hat{".concat(r,"}");case"̃":return"\\tilde{".concat(r,"}");case"̄":return"\\bar{".concat(r,"}");case"̆":return"\\breve{".concat(r,"}");case"̇":return"\\dot{".concat(r,"}");case"̈":return"\\ddot{".concat(r,"}");case"̊":return"\\mathring{".concat(r,"}");case"̋":return"\\H{".concat(r,"}");case"̌":return"\\check{".concat(r,"}");case"̧":return"\\c{".concat(r,"}");default:return"\\".concat(e,"{").concat(r,"}")}}(y):"m:borderBox"===v?function(t){var e=fc(t["m:e"]);return"\\boxed{".concat(e,"}")}(y):"m:m"===v?(m=y["m:mr"].map((function(t){return t["m:e"].map((function(t){return fc(t)})).join(" & ")})),"\\begin{matrix} ".concat(m.join(" \\\\ ")," \\end{matrix}")):"m:r"===v?fc(y):"m:t"===v?y:""})).join("")}function hc(t){return t.replaceAll(/&lt;/g,"<").replaceAll(/&gt;/g,">").replaceAll(/&amp;/g,"&").replaceAll(/&apos;/g,"'").replaceAll(/&quot;/g,'"')}function dc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pc(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?dc(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return bc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bc(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function bc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mc(t){return vc.apply(this,arguments)}function vc(){return(vc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d,p,g,b;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,bu.loadAsync(e);case 3:return n=t.sent,t.next=6,yc(n);case 6:return a=t.sent,t.next=9,_c(n);case 9:return i=t.sent,o=i.width,s=i.height,l=i.defaultTextStyle,t.next=15,xc(n);case 15:c=t.sent,f=c.themeContent,h=c.themeColors,d=gc(a.slides),t.prev=19,d.s();case 21:if((p=d.n()).done){t.next=29;break}return g=p.value,t.next=25,Cc(n,g,f,l);case 25:b=t.sent,r.push(b);case 27:t.next=21;break;case 29:t.next=34;break;case 31:t.prev=31,t.t0=t.catch(19),d.e(t.t0);case 34:return t.prev=34,d.f(),t.finish(34);case 37:return t.abrupt("return",{slides:r,themeColors:h,size:{width:o,height:s}});case 38:case"end":return t.stop()}}),t,null,[[19,31,34,37]])})))).apply(this,arguments)}function yc(t){return wc.apply(this,arguments)}function wc(){return(wc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"[Content_Types].xml");case 2:r=t.sent,n=r.Types.Override,a=[],i=[],o=gc(n),t.prev=7,o.s();case 9:if((s=o.n()).done){t.next=20;break}l=s.value,t.t0=l.attrs.ContentType,t.next="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"===t.t0?14:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"===t.t0?16:18;break;case 14:return a.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 16:return i.push(l.attrs.PartName.substr(1)),t.abrupt("break",18);case 18:t.next=9;break;case 20:t.next=25;break;case 22:t.prev=22,t.t1=t.catch(7),o.e(t.t1);case 25:return t.prev=25,o.f(),t.finish(25);case 28:return c=function(t,e){return+/(\d+)\.xml/.exec(t)[1]-+/(\d+)\.xml/.exec(e)[1]},a=a.sort(c),i=i.sort(c),t.abrupt("return",{slides:a,slideLayouts:i});case 32:case"end":return t.stop()}}),t,null,[[7,22,25,28]])})))).apply(this,arguments)}function _c(t){return kc.apply(this,arguments)}function kc(){return(kc=r(u.mark((function t(e){var r,n,a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/presentation.xml");case 2:return r=t.sent,n=r["p:presentation"]["p:sldSz"].attrs,a=r["p:presentation"]["p:defaultTextStyle"],t.abrupt("return",{width:parseInt(n.cx)*Yl,height:parseInt(n.cy)*Yl,defaultTextStyle:a});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xc(t){return Sc.apply(this,arguments)}function Sc(){return Sc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Eu(e,"ppt/_rels/presentation.xml.rels");case 2:if(r=t.sent,(n=r.Relationships.Relationship).constructor!==Array){t.next=25;break}i=gc(n),t.prev=6,i.s();case 8:if((o=i.n()).done){t.next=15;break}if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"!==(s=o.value).attrs.Type){t.next=13;break}return a=s.attrs.Target,t.abrupt("break",15);case 13:t.next=8;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(6),i.e(t.t0);case 20:return t.prev=20,i.f(),t.finish(20);case 23:t.next=26;break;case 25:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(a=n.attrs.Target);case 26:return t.next=28,Eu(e,"ppt/"+a);case 28:if(l=t.sent,c=[],!(f=gl(l,["a:theme","a:themeElements","a:clrScheme"]))){t.next=41;break}h=1;case 33:if(!(h<=6)){t.next=41;break}if(void 0!==f["a:accent".concat(h)]){t.next=36;break}return t.abrupt("break",41);case 36:(d=gl(f,["a:accent".concat(h),"a:srgbClr","attrs","val"]))&&c.push("#"+d);case 38:h++,t.next=33;break;case 41:return t.abrupt("return",{themeContent:l,themeColors:c});case 42:case"end":return t.stop()}}),t,null,[[6,17,20,23]])}))),Sc.apply(this,arguments)}function Cc(t,e,r,n){return Ac.apply(this,arguments)}function Ac(){return Ac=r(u.mark((function t(e,r,n,a){var i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,at,it,ot,st,ut,lt,ct;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.replace("slides/slide","slides/_rels/slide")+".rels",t.next=3,Eu(e,i);case 3:o=t.sent,(s=o.Relationships.Relationship).constructor!==Array&&(s=[s]),l="",c="",f="",h="",d="",p={},g={},b={},m={},v={},y=gc(s),t.prev=17,y.s();case 19:if((w=y.n()).done){t.next=34;break}_=w.value,t.t0=_.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"===t.t0?24:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"===t.t0?26:"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"===t.t0?28:("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"===t.t0||t.t0,31);break;case 24:return c=_.attrs.Target.replace("../","ppt/"),t.abrupt("break",32);case 26:return l=_.attrs.Target.replace("../","ppt/"),t.abrupt("break",32);case 28:return d=_.attrs.Target.replace("../","ppt/"),p[_.attrs.Id]={type:_.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:_.attrs.Target.replace("../","ppt/")},t.abrupt("break",32);case 31:p[_.attrs.Id]={type:_.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:_.attrs.Target.replace("../","ppt/")};case 32:t.next=19;break;case 34:t.next=39;break;case 36:t.prev=36,t.t1=t.catch(17),y.e(t.t1);case 39:return t.prev=39,y.f(),t.finish(39);case 42:return t.next=44,Eu(e,l);case 44:return k=t.sent,x=Ec(k),t.next=48,Eu(e,c);case 48:return S=t.sent,t.next=51,Tc(S);case 51:return C=t.sent,A=c.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",t.next=55,Eu(e,A);case 55:E=t.sent,(s=E.Relationships.Relationship).constructor!==Array&&(s=[s]),R=gc(s),t.prev=59,R.s();case 61:if((O=R.n()).done){t.next=71;break}T=O.value,t.t2=T.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"===t.t2?66:68;break;case 66:return f=T.attrs.Target.replace("../","ppt/"),t.abrupt("break",69);case 68:g[T.attrs.Id]={type:T.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:T.attrs.Target.replace("../","ppt/")};case 69:t.next=61;break;case 71:t.next=76;break;case 73:t.prev=73,t.t3=t.catch(59),R.e(t.t3);case 76:return t.prev=76,R.f(),t.finish(76);case 79:return t.next=81,Eu(e,f);case 81:return P=t.sent,L=gl(P,["p:sldMaster","p:txStyles"]),M=Tc(P),I=f.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",t.next=87,Eu(e,I);case 87:B=t.sent,(s=B.Relationships.Relationship).constructor!==Array&&(s=[s]),D=gc(s),t.prev=91,D.s();case 93:if((j=D.n()).done){t.next=103;break}z=j.value,t.t4=z.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.t4?98:100;break;case 98:return h=z.attrs.Target.replace("../","ppt/"),t.abrupt("break",101);case 100:b[z.attrs.Id]={type:z.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:z.attrs.Target.replace("../","ppt/")};case 101:t.next=93;break;case 103:t.next=108;break;case 105:t.prev=105,t.t5=t.catch(91),D.e(t.t5);case 108:return t.prev=108,D.f(),t.finish(108);case 111:if(!h){t.next=118;break}return F=h.split("/").pop(),N=h.replace(F,"_rels/"+F)+".rels",t.next=116,Eu(e,N);case 116:if((U=t.sent)&&(s=U.Relationships.Relationship)){s.constructor!==Array&&(s=[s]),H=gc(s);try{for(H.s();!(W=H.n()).done;)Z=W.value,m[Z.attrs.Id]={type:Z.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:Z.attrs.Target.replace("../","ppt/")}}catch(t){H.e(t)}finally{H.f()}}case 118:if(q={},!d){t.next=130;break}return Y=d.split("/").pop(),G=d.replace(Y,"_rels/"+Y)+".rels",t.next=124,Eu(e,d);case 124:return(q=t.sent)&&(V=JSON.stringify(q).replace(/dsp:/g,"p:"),q=JSON.parse(V)),t.next=128,Eu(e,G);case 128:if(K=t.sent){(s=K.Relationships.Relationship).constructor!==Array&&(s=[s]),X=gc(s);try{for(X.s();!($=X.n()).done;)J=$.value,v[J.attrs.Id]={type:J.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:J.attrs.Target.replace("../","ppt/")}}catch(t){X.e(t)}finally{X.f()}}case 130:return t.next=132,Eu(e,"ppt/tableStyles.xml");case 132:return Q=t.sent,t.next=135,Eu(e,r);case 135:return tt=t.sent,et=tt["p:sld"]["p:cSld"]["p:spTree"],rt={zip:e,slideLayoutContent:S,slideLayoutTables:C,slideMasterContent:P,slideMasterTables:M,slideContent:tt,tableStyles:Q,slideResObj:p,slideMasterTextStyles:L,layoutResObj:g,masterResObj:b,themeContent:n,themeResObj:m,digramFileContent:q,diagramResObj:v,defaultTextStyle:a},t.next=140,Rc(rt);case 140:return nt=t.sent,t.next=143,Il(rt);case 143:at=t.sent,it=[],t.t6=u.keys(et);case 146:if((t.t7=t.t6()).done){t.next=170;break}ot=t.t7.value,et[ot].constructor!==Array&&(et[ot]=[et[ot]]),st=gc(et[ot]),t.prev=150,st.s();case 152:if((ut=st.n()).done){t.next=160;break}return lt=ut.value,t.next=156,Pc(ot,lt,et,rt,"slide");case 156:(ct=t.sent)&&it.push(ct);case 158:t.next=152;break;case 160:t.next=165;break;case 162:t.prev=162,t.t8=t.catch(150),st.e(t.t8);case 165:return t.prev=165,st.f(),t.finish(165);case 168:t.next=146;break;case 170:return t.abrupt("return",{fill:at,elements:it,layoutElements:nt,note:x});case 171:case"end":return t.stop()}}),t,null,[[17,36,39,42],[59,73,76,79],[91,105,108,111],[150,162,165,168]])}))),Ac.apply(this,arguments)}function Ec(t){var e="",r=gl(t,["p:notes","p:cSld","p:spTree","p:sp"]);if(!r)return"";r.constructor!==Array&&(r=[r]);var n,a=gc(r);try{for(a.s();!(n=a.n()).done;){var i=gl(n.value,["p:txBody","a:p","a:r"]);if(i){i.constructor!==Array&&(i=[i]);var o,s=gc(i);try{for(s.s();!(o=s.n()).done;){var u=gl(o.value,["a:t"]);u&&"string"==typeof u&&(e+=u)}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){a.e(t)}finally{a.f()}return e}function Rc(t){return Oc.apply(this,arguments)}function Oc(){return Oc=r(u.mark((function t(e){var r,n,a,i,o,s,l,c,f,h,d,p,g,b;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=[],n=e.slideLayoutContent,a=e.slideMasterContent,i=gl(n,["p:sldLayout","p:cSld","p:spTree"]),o=gl(a,["p:sldMaster","p:cSld","p:spTree"]),s=gl(n,["p:sldLayout","attrs","showMasterSp"]),!i){t.next=32;break}t.t0=u.keys(i);case 8:if((t.t1=t.t0()).done){t.next=32;break}if(l=t.t1.value,i[l].constructor!==Array){t.next=24;break}c=0;case 12:if(!(c<i[l].length)){t.next=22;break}if(gl(i[l][c],["p:nvSpPr","p:nvPr","p:ph"])){t.next=19;break}return t.next=17,Pc(l,i[l][c],i,e,"slideLayoutBg");case 17:(f=t.sent)&&r.push(f);case 19:c++,t.next=12;break;case 22:t.next=30;break;case 24:if(gl(i[l],["p:nvSpPr","p:nvPr","p:ph"])){t.next=30;break}return t.next=28,Pc(l,i[l],i,e,"slideLayoutBg");case 28:(h=t.sent)&&r.push(h);case 30:t.next=8;break;case 32:if(!o||"0"===s){t.next=58;break}t.t2=u.keys(o);case 34:if((t.t3=t.t2()).done){t.next=58;break}if(d=t.t3.value,o[d].constructor!==Array){t.next=50;break}p=0;case 38:if(!(p<o[d].length)){t.next=48;break}if(gl(o[d][p],["p:nvSpPr","p:nvPr","p:ph"])){t.next=45;break}return t.next=43,Pc(d,o[d][p],o,e,"slideMasterBg");case 43:(g=t.sent)&&r.push(g);case 45:p++,t.next=38;break;case 48:t.next=56;break;case 50:if(gl(o[d],["p:nvSpPr","p:nvPr","p:ph"])){t.next=56;break}return t.next=54,Pc(d,o[d],o,e,"slideMasterBg");case 54:(b=t.sent)&&r.push(b);case 56:t.next=34;break;case 58:return t.abrupt("return",r);case 59:case"end":return t.stop()}}),t)}))),Oc.apply(this,arguments)}function Tc(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],r={},n={},a={};for(var i in e)if("p:nvGrpSpPr"!==i&&"p:grpSpPr"!==i){var o=e[i];if(o.constructor===Array){var s,u=gc(o);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=l["p:nvSpPr"],f=gl(c,["p:cNvPr","attrs","id"]),h=gl(c,["p:nvPr","p:ph","attrs","idx"]),d=gl(c,["p:nvPr","p:ph","attrs","type"]);f&&(r[f]=l),h&&(n[h]=l),d&&(a[d]=l)}}catch(t){u.e(t)}finally{u.f()}}else{var p=o["p:nvSpPr"],g=gl(p,["p:cNvPr","attrs","id"]),b=gl(p,["p:nvPr","p:ph","attrs","idx"]),m=gl(p,["p:nvPr","p:ph","attrs","type"]);g&&(r[g]=o),b&&(n[b]=o),m&&(a[m]=o)}}return{idTable:r,idxTable:n,typeTable:a}}function Pc(t,e,r,n,a){return Lc.apply(this,arguments)}function Lc(){return(Lc=r(u.mark((function t(e,r,n,a,i){var o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=e,t.next="p:sp"===t.t0?3:"p:cxnSp"===t.t0?7:"p:pic"===t.t0?11:"p:graphicFrame"===t.t0?15:"p:grpSp"===t.t0?19:"mc:AlternateContent"===t.t0?23:34;break;case 3:return t.next=5,jc(r,n,a,i);case 5:return o=t.sent,t.abrupt("break",34);case 7:return t.next=9,Fc(r,n,a,i);case 9:return o=t.sent,t.abrupt("break",34);case 11:return t.next=13,Wc(r,a,i);case 13:return o=t.sent,t.abrupt("break",34);case 15:return t.next=17,qc(r,a,i);case 17:return o=t.sent,t.abrupt("break",34);case 19:return t.next=21,Bc(r,a,i);case 21:return o=t.sent,t.abrupt("break",34);case 23:if(!gl(r,["mc:Fallback","p:grpSpPr","a:xfrm"])){t.next=29;break}return t.next=26,Bc(gl(r,["mc:Fallback"]),a,i);case 26:o=t.sent,t.next=33;break;case 29:if(!gl(r,["mc:Choice"])){t.next=33;break}return t.next=32,Mc(r,a,i);case 32:o=t.sent;case 33:return t.abrupt("break",34);case 34:return t.abrupt("return",o);case 35:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mc(t,e,r){return Ic.apply(this,arguments)}function Ic(){return Ic=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f,h,d,p,g,b,m,v;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=gl(e,["mc:Choice"]),i=gl(e,["mc:Fallback"]),o=e.attrs.order,s=gl(a,["p:sp","p:spPr","a:xfrm"]),l=Gl(s,void 0,void 0),c=l.top,f=l.left,h=Vl(s,void 0,void 0),d=h.width,p=h.height,g=lc(a)[0],b=hc(fc(g)),m=gl(i,["p:sp","p:spPr","a:blipFill"]),t.next=11,El(n,m,r);case 11:return v=t.sent,t.abrupt("return",{type:"math",top:c,left:f,width:d,height:p,latex:b,picBase64:v,order:o});case 13:case"end":return t.stop()}}),t)}))),Ic.apply(this,arguments)}function Bc(t,e,r){return Dc.apply(this,arguments)}function Dc(){return Dc=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.attrs.order,i=gl(e,["p:grpSpPr","a:xfrm"])){t.next=4;break}return t.abrupt("return",null);case 4:o=parseInt(i["a:off"].attrs.x)*Yl,s=parseInt(i["a:off"].attrs.y)*Yl,l=parseInt(i["a:chOff"].attrs.x)*Yl,c=parseInt(i["a:chOff"].attrs.y)*Yl,f=parseInt(i["a:ext"].attrs.cx)*Yl,h=parseInt(i["a:ext"].attrs.cy)*Yl,d=parseInt(i["a:chExt"].attrs.cx)*Yl,p=parseInt(i["a:chExt"].attrs.cy)*Yl,g="1"===gl(i,["attrs","flipV"]),b="1"===gl(i,["attrs","flipH"]),(m=gl(i,["attrs","rot"])||0)&&(m=bl(m)),v=f/d,y=h/p,w=[],t.t0=u.keys(e);case 20:if((t.t1=t.t0()).done){t.next=50;break}if(_=t.t1.value,e[_].constructor!==Array){t.next=44;break}k=gc(e[_]),t.prev=24,k.s();case 26:if((x=k.n()).done){t.next=34;break}return S=x.value,t.next=30,Pc(_,S,e,r,n);case 30:(C=t.sent)&&w.push(C);case 32:t.next=26;break;case 34:t.next=39;break;case 36:t.prev=36,t.t2=t.catch(24),k.e(t.t2);case 39:return t.prev=39,k.f(),t.finish(39);case 42:t.next=48;break;case 44:return t.next=46,Pc(_,e[_],e,r,n);case 46:(A=t.sent)&&w.push(A);case 48:t.next=20;break;case 50:return t.abrupt("return",{type:"group",top:s,left:o,width:f,height:h,rotate:m,order:a,isFlipV:g,isFlipH:b,elements:w.map((function(t){return pc(pc({},t),{},{left:(t.left-l)*v,top:(t.top-c)*y,width:t.width*v,height:t.height*y})}))});case 51:case"end":return t.stop()}}),t,null,[[24,36,39,42]])}))),Dc.apply(this,arguments)}function jc(t,e,r,n){return zc.apply(this,arguments)}function zc(){return zc=r(u.mark((function t(e,r,n,a){var i,o,s,l,c,f;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=gl(e,["p:nvSpPr","p:cNvPr","attrs","name"]),o=gl(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=gl(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),l=gl(e,["attrs","order"]),s?(c=n.slideLayoutTables.typeTable[s],f=n.slideMasterTables.typeTable[s]):o&&(c=n.slideLayoutTables.idxTable[o],f=n.slideMasterTables.idxTable[o]),s||"1"===gl(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])&&(s="text"),s||(s=gl(c,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=gl(f,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s="diagramBg"===a?"diagram":"obj"),t.next=11,Uc(e,r,c,f,i,s,l,n,a);case 11:return t.abrupt("return",t.sent);case 12:case"end":return t.stop()}}),t)}))),zc.apply(this,arguments)}function Fc(t,e,r,n){return Nc.apply(this,arguments)}function Nc(){return Nc=r(u.mark((function t(e,r,n,a){var i,o,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,o=void 0===e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:e["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,s=e.attrs.order,t.next=5,Uc(e,r,void 0,void 0,i,o,s,n,a);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),Nc.apply(this,arguments)}function Uc(t,e,r,n,a,i,o,s,u){return Hc.apply(this,arguments)}function Hc(){return Hc=r(u.mark((function t(e,r,n,a,i,o,s,l,c){var f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=gl(e,f=["p:spPr","a:xfrm"]),d=gl(n,f),p=gl(a,f),g=gl(e,["p:spPr","a:prstGeom","attrs","prst"]),b=gl(e,["p:spPr","a:custGeom"]),m=Gl(h,d,p),v=m.top,y=m.left,w=Vl(h,d,p),_=w.width,k=w.height,x="1"===gl(h,["attrs","flipV"]),S="1"===gl(h,["attrs","flipH"]),C=bl(gl(h,["attrs","rot"])),(A=gl(e,["p:txXfrm"]))?(R=gl(A,["attrs","rot"]))&&(E=bl(R)+90):E=C,O="",e["p:txBody"]&&(O=Jl(e["p:txBody"],e,n,o,l)),T=xl(e,o,l),P=T.borderColor,L=T.borderWidth,M=T.borderType,I=T.strokeDasharray,t.next=18,Dl(e,r,void 0,l,c);case 18:if(t.t0=t.sent,t.t0){t.next=21;break}t.t0="";case 21:if(B=t.t0,(j=gl(e,["p:spPr","a:effectLst","a:outerShdw"]))&&(D=Kl(j,l)),z=ql(e,n,a),F="eaVert"===gl(e,["p:txBody","a:bodyPr","attrs","vert"]),N={left:y,top:v,width:_,height:k,borderColor:P,borderWidth:L,borderType:M,borderStrokeDasharray:I,fill:B,content:O,isFlipV:x,isFlipH:S,rotate:C,vAlign:z,name:i,order:s},D&&(N.shadow=D),U=N.content&&_l(N.content),!b||"diagram"===o){t.next=36;break}return H=gl(h,["a:ext","attrs"]),W=parseInt(H.cx)*Yl,Z=parseInt(H.cy)*Yl,q=rc(b,W,Z),U||(N.content=""),t.abrupt("return",pc(pc({},N),{},{type:"shape",shapType:"custom",path:q}));case 36:if(!g||"obj"!==o&&o&&"rect"===g){t.next=39;break}return U||(N.content=""),t.abrupt("return",pc(pc({},N),{},{type:"shape",shapType:g}));case 39:if(!g||U||!B&&!L){t.next=41;break}return t.abrupt("return",pc(pc({},N),{},{type:"shape",content:"",shapType:g}));case 41:return t.abrupt("return",pc(pc({},N),{},{type:"text",isVertical:F,rotate:E}));case 42:case"end":return t.stop()}}),t)}))),Hc.apply(this,arguments)}function Wc(t,e,r){return Zc.apply(this,arguments)}function Zc(){return Zc=r(u.mark((function t(e,r,n){var a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="slideMasterBg"===n?r.masterResObj:"slideLayoutBg"===n?r.layoutResObj:r.slideResObj,i=e.attrs.order,o=e["p:blipFill"]["a:blip"].attrs["r:embed"],s=a[o].target,l=dl(s).toLowerCase(),c=r.zip,t.next=8,c.file(s).async("arraybuffer");case 8:if(f=t.sent,h=e["p:spPr"]["a:xfrm"],d=vl(l),p=Gl(h,void 0,void 0),g=p.top,b=p.left,m=Vl(h,void 0,void 0),v=m.width,y=m.height,w="data:".concat(d,";base64,").concat(hl(f)),_="1"===gl(h,["attrs","flipV"]),k="1"===gl(h,["attrs","flipH"]),x=0,(S=gl(e,["p:spPr","a:xfrm","attrs","rot"]))&&(x=bl(S)),C=gl(e,["p:nvPicPr","p:nvPr","a:videoFile"]),L=!1,!C){t.next=36;break}if(A=C.attrs["r:link"],!yl(E=a[A].target)){t.next=29;break}E=ml(E),L=!0,t.next=36;break;case 29:if("mp4"!==(R=dl(E).toLowerCase())&&"webm"!==R&&"ogg"!==R){t.next=36;break}return t.next=33,c.file(E).async("arraybuffer");case 33:T=t.sent,O=vl(R),P=URL.createObjectURL(new Blob([T],{type:O}));case 36:if(!(M=gl(e,["p:nvPicPr","p:nvPr","a:audioFile"]))){t.next=46;break}if(I=M.attrs["r:link"],B=a[I].target,"mp3"!==(D=dl(B).toLowerCase())&&"wav"!==D&&"ogg"!==D){t.next=46;break}return t.next=44,c.file(B).async("arraybuffer");case 44:j=t.sent,z=URL.createObjectURL(new Blob([j]));case 46:if(!C||L){t.next=48;break}return t.abrupt("return",{type:"video",top:g,left:b,width:v,height:y,rotate:x,blob:P,order:i});case 48:if(!C||!L){t.next=50;break}return t.abrupt("return",{type:"video",top:g,left:b,width:v,height:y,rotate:x,src:E,order:i});case 50:if(!M){t.next=52;break}return t.abrupt("return",{type:"audio",top:g,left:b,width:v,height:y,rotate:x,blob:z,order:i});case 52:return(N=gl(e,["p:blipFill","a:srcRect","attrs"]))&&(N.t||N.b||N.l||N.r)&&(F={},N.t&&(F.t=N.t/1e3),N.b&&(F.b=N.b/1e3),N.l&&(F.l=N.l/1e3),N.r&&(F.r=N.r/1e3)),U=gl(e,["p:spPr","a:prstGeom","attrs","prst"])||"rect",H=xl(e,void 0,r),W=H.borderColor,Z=H.borderWidth,q=H.borderType,Y=H.strokeDasharray,t.abrupt("return",{type:"image",top:g,left:b,width:v,height:y,rotate:x,src:w,isFlipV:_,isFlipH:k,order:i,rect:F,geom:U,borderColor:W,borderWidth:Z,borderType:q,borderStrokeDasharray:Y});case 57:case"end":return t.stop()}}),t)}))),Zc.apply(this,arguments)}function qc(t,e,r){return Yc.apply(this,arguments)}function Yc(){return Yc=r(u.mark((function t(e,r,n){var a,i,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=gl(e,["a:graphic","a:graphicData","attrs","uri"]),t.t0=a,t.next="http://schemas.openxmlformats.org/drawingml/2006/table"===t.t0?4:"http://schemas.openxmlformats.org/drawingml/2006/chart"===t.t0?8:"http://schemas.openxmlformats.org/drawingml/2006/diagram"===t.t0?12:"http://schemas.openxmlformats.org/presentationml/2006/ole"===t.t0?16:23;break;case 4:return t.next=6,Gc(e,r);case 6:return i=t.sent,t.abrupt("break",23);case 8:return t.next=10,Kc(e,r);case 10:return i=t.sent,t.abrupt("break",23);case 12:return t.next=14,$c(e,r);case 14:return i=t.sent,t.abrupt("break",23);case 16:if((o=gl(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))||(o=gl(e,["a:graphic","a:graphicData","p:oleObj"])),!o){t.next=22;break}return t.next=21,Bc(o,r,n);case 21:i=t.sent;case 22:return t.abrupt("break",23);case 23:return t.abrupt("return",i);case 24:case"end":return t.stop()}}),t)}))),Yc.apply(this,arguments)}function Gc(t,e){return Vc.apply(this,arguments)}function Vc(){return Vc=r(u.mark((function t(e,r){var n,a,i,o,s,l,c,f,h,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,O,T,P,L,M,I,B,D,j,z,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,at,it;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.attrs.order,a=gl(e,["a:graphic","a:graphicData","a:tbl"]),i=gl(e,["p:xfrm"]),o=Gl(i,void 0,void 0),s=o.top,l=o.left,c=Vl(i,void 0,void 0),f=c.width,h=c.height,d=gl(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),(p=gl(e,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"])).constructor!==Array&&(p=[p]),g=[],p){b=gc(p);try{for(b.s();!(m=b.n()).done;)v=m.value,y=gl(v,["attrs","w"])||0,w=parseInt(y)*Yl,g.push(w)}catch(t){b.e(t)}finally{b.f()}}if(_=d.attrs?d.attrs.firstRow:void 0,k=d.attrs?d.attrs.firstCol:void 0,x=d.attrs?d.attrs.lastRow:void 0,S=d.attrs?d.attrs.lastCol:void 0,C=d.attrs?d.attrs.bandRow:void 0,A=d.attrs?d.attrs.bandCol:void 0,E={isFrstRowAttr:_&&"1"===_?1:0,isFrstColAttr:k&&"1"===k?1:0,isLstRowAttr:x&&"1"===x?1:0,isLstColAttr:S&&"1"===S?1:0,isBandRowAttr:C&&"1"===C?1:0,isBandColAttr:A&&"1"===A?1:0},(O=d["a:tableStyleId"])&&(T=r.tableStyles["a:tblStyleLst"]["a:tblStyle"]))if(T.constructor===Array)for(P=0;P<T.length;P++)T[P].attrs.styleId===O&&(R=T[P]);else T.attrs.styleId===O&&(R=T);R&&(R.tblStylAttrObj=E),L={},M=gl(R,["a:wholeTbl","a:tcStyle"]),(I=gl(M,["a:tcBdr"]))&&(L=nc(I,r)),B="",(D=gl(R,["a:tblBg","a:fillRef"]))&&(B=zl(D,void 0,void 0,r)),void 0===D&&(D=gl(R,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),B=zl(D,void 0,void 0,r)),(j=a["a:tr"]).constructor!==Array&&(j=[j]),z=[],F=[],N=0;case 33:if(!(N<j.length)){t.next=88;break}if(U=j[N],H=gl(j[N],["attrs","h"])||0,W=parseInt(H)*Yl,F.push(W),Z=oc(j,N,E,R,r),q=Z.fillColor,Y=Z.fontColor,G=Z.fontBold,V=U["a:tc"],K=[],V.constructor!==Array){t.next=67;break}X=0;case 43:if(!(X<V.length)){t.next=65;break}return $=V[X],J=void 0,0===X&&1===E.isFrstColAttr?(J="a:firstCol",1===E.isLstRowAttr&&N===j.length-1&&gl(R,["a:seCell"])?J="a:seCell":1===E.isFrstRowAttr&&0===N&&gl(R,["a:neCell"])&&(J="a:neCell")):!(X>0&&1===E.isBandColAttr)||1===E.isFrstColAttr&&0===N||1===E.isLstRowAttr&&N===j.length-1||X===V.length-1||X%2!=0&&(void 0===gl(R,["a:band2V"])?gl(R,["a:band1V"])&&(J="a:band2V"):J="a:band2V"),X===V.length-1&&1===E.isLstColAttr&&(J="a:lastCol",1===E.isLstRowAttr&&N===j.length-1&&gl(R,["a:swCell"])?J="a:swCell":1===E.isFrstRowAttr&&0===N&&gl(R,["a:nwCell"])&&(J="a:nwCell")),Q=Jl($["a:txBody"],$,void 0,void 0,r),t.next=51,ac($,R,J,r);case 51:tt=t.sent,et={text:Q},tt.rowSpan&&(et.rowSpan=tt.rowSpan),tt.colSpan&&(et.colSpan=tt.colSpan),tt.vMerge&&(et.vMerge=tt.vMerge),tt.hMerge&&(et.hMerge=tt.hMerge),(tt.fontBold||G)&&(et.fontBold=tt.fontBold||G),(tt.fontColor||Y)&&(et.fontColor=tt.fontColor||Y),(tt.fillColor||q||B)&&(et.fillColor=tt.fillColor||q||B),tt.borders&&(et.borders=tt.borders),K.push(et);case 62:X++,t.next=43;break;case 65:t.next=84;break;case 67:return rt=void 0,1===E.isFrstColAttr&&1!==E.isLstRowAttr?rt="a:firstCol":1===E.isBandColAttr&&1!==E.isLstRowAttr&&(gl(R,["a:band2V"])||gl(R,["a:band1V"]))&&(rt="a:band2V"),1===E.isLstColAttr&&1!==E.isLstRowAttr&&(rt="a:lastCol"),nt=Jl(V["a:txBody"],V,void 0,void 0,r),t.next=73,ac(V,R,rt,r);case 73:at=t.sent,it={text:nt},at.rowSpan&&(it.rowSpan=at.rowSpan),at.colSpan&&(it.colSpan=at.colSpan),at.vMerge&&(it.vMerge=at.vMerge),at.hMerge&&(it.hMerge=at.hMerge),(at.fontBold||G)&&(it.fontBold=at.fontBold||G),(at.fontColor||Y)&&(it.fontColor=at.fontColor||Y),(at.fillColor||q||B)&&(it.fillColor=at.fillColor||q||B),at.borders&&(it.borders=at.borders),K.push(it);case 84:z.push(K);case 85:N++,t.next=33;break;case 88:return t.abrupt("return",{type:"table",top:s,left:l,width:f,height:h,data:z,order:n,borders:L,rowHeights:F,colWidths:g});case 89:case"end":return t.stop()}}),t)}))),Vc.apply(this,arguments)}function Kc(t,e){return Xc.apply(this,arguments)}function Xc(){return Xc=r(u.mark((function t(e,r){var n,a,i,o,s,l,c,f,h,d,p,g,b,m;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.attrs.order,a=gl(e,["p:xfrm"]),i=Gl(a,void 0,void 0),o=i.top,s=i.left,l=Vl(a,void 0,void 0),c=l.width,f=l.height,h=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],(d=gl(r.slideResObj,[h,"target"]))||(d=gl(r.layoutResObj,[h,"target"])),d||(d=gl(r.masterResObj,[h,"target"])),d){t.next=10;break}return t.abrupt("return",{});case 10:return t.next=12,Eu(r.zip,d);case 12:if(p=t.sent,g=gl(p,["c:chartSpace","c:chart","c:plotArea"]),b=Wl(g,r)){t.next=17;break}return t.abrupt("return",{});case 17:return m={type:"chart",top:o,left:s,width:c,height:f,data:b.data,colors:b.colors,chartType:b.type,order:n},void 0!==b.marker&&(m.marker=b.marker),void 0!==b.barDir&&(m.barDir=b.barDir),void 0!==b.holeSize&&(m.holeSize=b.holeSize),void 0!==b.grouping&&(m.grouping=b.grouping),void 0!==b.style&&(m.style=b.style),t.abrupt("return",m);case 24:case"end":return t.stop()}}),t)}))),Xc.apply(this,arguments)}function $c(t,e){return Jc.apply(this,arguments)}function Jc(){return Jc=r(u.mark((function t(e,r){var n,a,i,o,s,l,c,f,h,d,p,g,b,m;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.attrs.order,a=gl(e,["p:xfrm"]),i=Gl(a,void 0,void 0),o=i.left,s=i.top,l=Vl(a,void 0,void 0),c=l.width,f=l.height,h=gl(r.digramFileContent,["p:drawing","p:spTree","p:sp"]),d=[],!h){t.next=26;break}p=gc(h),t.prev=8,p.s();case 10:if((g=p.n()).done){t.next=18;break}return b=g.value,t.next=14,jc(b,e,r,"diagramBg");case 14:(m=t.sent)&&d.push(m);case 16:t.next=10;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(8),p.e(t.t0);case 23:return t.prev=23,p.f(),t.finish(23);case 26:return t.abrupt("return",{type:"diagram",left:o,top:s,width:c,height:f,elements:d,order:n});case 27:case"end":return t.stop()}}),t,null,[[8,20,23,26]])}))),Jc.apply(this,arguments)}export{mc as parse};
2
2
  //# sourceMappingURL=index.js.map