pptxtojson 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/fill.js +3 -3
- package/src/fontStyle.js +25 -3
- package/src/pptxtojson.js +5 -1
- package/src/table.js +1 -1
- package/src/text.js +12 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).pptxtojson={})}(this,(function(t){"use strict";function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function r(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function s(t){r(o,i,a,s,u,"next",t)}function u(t){r(o,i,a,s,u,"throw",t)}s(void 0)}))}}var i="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 o={exports:{}},s={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}(s),function(t){var e=s.exports.default;function r(){t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},i=Object.prototype,a=i.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",f=s.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=c;var p={};function g(){}function b(){}function m(){}var v={};h(v,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(T([])));w&&w!==i&&a.call(w,u)&&(v=w);var _=m.prototype=g.prototype=Object.create(v);function k(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,r){function n(i,o,s,u){var l=d(t[i],t,o);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==e(h)&&a.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(h).then((function(t){f.value=t,s(f)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,i){n(t,e,r,i)}))}return i=i?i.then(a,a):a()}})}function S(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return O()}for(r.method=i,r.arg=a;;){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 i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(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 T(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(a.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:O}}function O(){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=h(m,f,"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,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},k(x.prototype),h(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,i,a){void 0===a&&(a=Promise);var o=new x(c(t,e,r,i),a);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),h(_,f,"Generator"),h(_,u,(function(){return this})),h(_,"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=T,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)&&a.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 i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.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 i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(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}(o);var u=o.exports(),l=u;try{regeneratorRuntime=u}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=u:Function("r","regeneratorRuntime = r")(u)}var f={},h={},c="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},d=[],p=[],g="undefined"!=typeof Uint8Array?Uint8Array:Array,b=!1;function m(){b=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)d[e]=t[e],p[t.charCodeAt(e)]=e;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63}function v(t,e,r){for(var n,i,a=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a.push(d[(i=n)>>18&63]+d[i>>12&63]+d[i>>6&63]+d[63&i]);return a.join("")}function y(t){var e;b||m();for(var r=t.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(v(t,s,s+o>u?u:s+o));return 1===n?(e=t[r-1],i+=d[e>>2],i+=d[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=d[e>>10],i+=d[e>>4&63],i+=d[e<<2&63],i+="="),a.push(i),a.join("")}function w(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=256*a+t[e+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+h],h+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=l}return(d?-1:1)*o*Math.pow(2,a-n)}function _(t,e,r,n,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,h=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-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=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?c/u:c*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=f?(s=0,o=f):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*g}var k={}.toString,x=Array.isArray||function(t){return"[object Array]"==k.call(t)};E.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT;var S=C();function C(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(t,e){if(C()<e)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=E.prototype:(null===t&&(t=new E(e)),t.length=e),t}function E(t,e,r){if(!(E.TYPED_ARRAY_SUPPORT||this instanceof E))return new E(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 R(this,t,e,r)}function R(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);E.TYPED_ARRAY_SUPPORT?(t=e).__proto__=E.prototype:t=M(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!E.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|P(e,r),i=(t=A(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(I(e)){var r=0|L(e.length);return 0===(t=A(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?A(t,0):M(t,e);if("Buffer"===e.type&&x(e.data))return M(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function T(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(T(e),t=A(t,e<0?0:0|L(e)),!E.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function M(t,e){var r=e.length<0?0:0|L(e.length);t=A(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function L(t){if(t>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return 0|t}function I(t){return!(null==t||!t._isBuffer)}function P(t,e){if(I(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 st(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ut(t).length;default:if(n)return st(t).length;e=(""+e).toLowerCase(),n=!0}}function B(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 X(this,e,r);case"utf8":case"utf-8":return Y(this,e,r);case"ascii":return V(this,e,r);case"latin1":case"binary":return K(this,e,r);case"base64":return q(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function z(t,e,r,n,i){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=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=E.from(e,n)),I(e))return 0===e.length?-1:j(t,e,r,n,i);if("number"==typeof e)return e&=255,E.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):j(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function j(t,e,r,n,i){var a,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(i){var f=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,c=0;c<u;c++)if(l(t,a+c)!==l(e,c)){h=!1;break}if(h)return a}return-1}function N(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/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 lt(st(e,t.length-r),t,r,n)}function U(t,e,r,n){return lt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function H(t,e,r,n){return U(t,e,r,n)}function W(t,e,r,n){return lt(ut(e),t,r,n)}function Z(t,e,r,n){return lt(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function q(t,e,r){return 0===e&&r===t.length?y(t):y(t.slice(e,r))}function Y(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,l=t[i],f=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(f=l);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=G)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=G));return r}(n)}E.poolSize=8192,E._augment=function(t){return t.__proto__=E.prototype,t},E.from=function(t,e,r){return R(null,t,e,r)},E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&E[Symbol.species]),E.alloc=function(t,e,r){return function(t,e,r,n){return T(e),e<=0?A(t,e):void 0!==r?"string"==typeof n?A(t,e).fill(r,n):A(t,e).fill(r):A(t,e)}(null,t,e,r)},E.allocUnsafe=function(t){return O(null,t)},E.allocUnsafeSlow=function(t){return O(null,t)},E.isBuffer=ft,E.compare=function(t,e){if(!I(t)||!I(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},E.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}},E.concat=function(t,e){if(!x(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return E.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=E.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!I(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},E.byteLength=P,E.prototype._isBuffer=!0,E.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)D(this,e,e+1);return this},E.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)D(this,e,e+3),D(this,e+1,e+2);return this},E.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)D(this,e,e+7),D(this,e+1,e+6),D(this,e+2,e+5),D(this,e+3,e+4);return this},E.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):B.apply(this,arguments)},E.prototype.equals=function(t){if(!I(t))throw new TypeError("Argument must be a Buffer");return this===t||0===E.compare(this,t)},E.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+">"},E.prototype.compare=function(t,e,r,n,i){if(!I(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===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=t.slice(e,r),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},E.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},E.prototype.indexOf=function(t,e,r){return z(this,t,e,r,!0)},E.prototype.lastIndexOf=function(t,e,r){return z(this,t,e,r,!1)},E.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 i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return N(this,t,e,r);case"utf8":case"utf-8":return F(this,t,e,r);case"ascii":return U(this,t,e,r);case"latin1":case"binary":return H(this,t,e,r);case"base64":return W(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;function V(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function K(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function X(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=ot(t[a]);return i}function $(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function J(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 Q(t,e,r,n,i,a){if(!I(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function tt(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function et(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function rt(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function nt(t,e,r,n,i){return i||rt(t,0,r,4),_(t,e,r,n,23,4),r+4}function it(t,e,r,n,i){return i||rt(t,0,r,8),_(t,e,r,n,52,8),r+8}E.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),E.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=E.prototype;else{var i=e-t;r=new E(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},E.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},E.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},E.prototype.readUInt8=function(t,e){return e||J(t,1,this.length),this[t]},E.prototype.readUInt16LE=function(t,e){return e||J(t,2,this.length),this[t]|this[t+1]<<8},E.prototype.readUInt16BE=function(t,e){return e||J(t,2,this.length),this[t]<<8|this[t+1]},E.prototype.readUInt32LE=function(t,e){return e||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},E.prototype.readUInt32BE=function(t,e){return e||J(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},E.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},E.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},E.prototype.readInt8=function(t,e){return e||J(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},E.prototype.readInt16LE=function(t,e){e||J(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},E.prototype.readInt16BE=function(t,e){e||J(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},E.prototype.readInt32LE=function(t,e){return e||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},E.prototype.readInt32BE=function(t,e){return e||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},E.prototype.readFloatLE=function(t,e){return e||J(t,4,this.length),w(this,t,!0,23,4)},E.prototype.readFloatBE=function(t,e){return e||J(t,4,this.length),w(this,t,!1,23,4)},E.prototype.readDoubleLE=function(t,e){return e||J(t,8,this.length),w(this,t,!0,52,8)},E.prototype.readDoubleBE=function(t,e){return e||J(t,8,this.length),w(this,t,!1,52,8)},E.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Q(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},E.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Q(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},E.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,1,255,0),E.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},E.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):tt(this,t,e,!0),e+2},E.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):tt(this,t,e,!1),e+2},E.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):et(this,t,e,!0),e+4},E.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):et(this,t,e,!1),e+4},E.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Q(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},E.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Q(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},E.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,1,127,-128),E.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},E.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):tt(this,t,e,!0),e+2},E.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):tt(this,t,e,!1),e+2},E.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):et(this,t,e,!0),e+4},E.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):et(this,t,e,!1),e+4},E.prototype.writeFloatLE=function(t,e,r){return nt(this,t,e,!0,r)},E.prototype.writeFloatBE=function(t,e,r){return nt(this,t,e,!1,r)},E.prototype.writeDoubleLE=function(t,e,r){return it(this,t,e,!0,r)},E.prototype.writeDoubleBE=function(t,e,r){return it(this,t,e,!1,r)},E.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 i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!E.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},E.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 i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!E.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 a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=I(t)?t:st(new E(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var at=/[^+\/0-9A-Za-z-_]/g;function ot(t){return t<16?"0"+t.toString(16):t.toString(16)}function st(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ut(t){return function(t){var e,r,n,i,a,o;b||m();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===t[s-2]?2:"="===t[s-1]?1:0,o=new g(3*s/4-a),n=a>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=p[t.charCodeAt(e)]<<18|p[t.charCodeAt(e+1)]<<12|p[t.charCodeAt(e+2)]<<6|p[t.charCodeAt(e+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===a?(i=p[t.charCodeAt(e)]<<2|p[t.charCodeAt(e+1)]>>4,o[u++]=255&i):1===a&&(i=p[t.charCodeAt(e)]<<10|p[t.charCodeAt(e+1)]<<4|p[t.charCodeAt(e+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(at,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function lt(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function ft(t){return null!=t&&(!!t._isBuffer||ht(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&ht(t.slice(0,0))}(t))}function ht(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ct=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:S,Buffer:E,SlowBuffer:function(t){return+t!=t&&(t=0),E.alloc(+t)},isBuffer:ft}),dt={};function pt(){throw new Error("setTimeout has not been defined")}function gt(){throw new Error("clearTimeout has not been defined")}var bt=pt,mt=gt;function vt(t){if(bt===setTimeout)return setTimeout(t,0);if((bt===pt||!bt)&&setTimeout)return bt=setTimeout,setTimeout(t,0);try{return bt(t,0)}catch(e){try{return bt.call(null,t,0)}catch(e){return bt.call(this,t,0)}}}"function"==typeof c.setTimeout&&(bt=setTimeout),"function"==typeof c.clearTimeout&&(mt=clearTimeout);var yt,wt=[],_t=!1,kt=-1;function xt(){_t&&yt&&(_t=!1,yt.length?wt=yt.concat(wt):kt=-1,wt.length&&St())}function St(){if(!_t){var t=vt(xt);_t=!0;for(var e=wt.length;e;){for(yt=wt,wt=[];++kt<e;)yt&&yt[kt].run();kt=-1,e=wt.length}yt=null,_t=!1,function(t){if(mt===clearTimeout)return clearTimeout(t);if((mt===gt||!mt)&&clearTimeout)return mt=clearTimeout,clearTimeout(t);try{mt(t)}catch(e){try{return mt.call(null,t)}catch(e){return mt.call(this,t)}}}(t)}}function Ct(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];wt.push(new At(t,e)),1!==wt.length||_t||vt(St)}function At(t,e){this.fun=t,this.array=e}At.prototype.run=function(){this.fun.apply(null,this.array)};function Et(){}var Rt=Et,Tt=Et,Ot=Et,Mt=Et,Lt=Et,It=Et,Pt=Et;var Bt=c.performance||{},Dt=Bt.now||Bt.mozNow||Bt.msNow||Bt.oNow||Bt.webkitNow||function(){return(new Date).getTime()};var zt=new Date;var jt={nextTick:Ct,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Rt,addListener:Tt,once:Ot,off:Mt,removeListener:Lt,removeAllListeners:It,emit:Pt,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*Dt.call(Bt),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-zt)/1e3}},Nt={exports:{}};function Ft(){}function Ut(){Ut.init.call(this)}function Ht(t){return void 0===t._maxListeners?Ut.defaultMaxListeners:t._maxListeners}function Wt(t,e,r){if(e)t.call(r);else for(var n=t.length,i=$t(t,n),a=0;a<n;++a)i[a].call(r)}function Zt(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=$t(t,i),o=0;o<i;++o)a[o].call(r,n)}function qt(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=$t(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function Yt(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=$t(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function Gt(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=$t(t,i),o=0;o<i;++o)a[o].apply(r,n)}function Vt(t,e,r,n){var i,a,o,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=new Ft,t._eventsCount=0),o){if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=Ht(t))&&i>0&&o.length>i){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=a[e]=r,++t._eventsCount;return t}function Kt(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function Xt(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 $t(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}Ft.prototype=Object.create(null),Ut.EventEmitter=Ut,Ut.usingDomains=!1,Ut.prototype.domain=void 0,Ut.prototype._events=void 0,Ut.prototype._maxListeners=void 0,Ut.defaultMaxListeners=10,Ut.init=function(){this.domain=null,Ut.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Ft,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ut.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},Ut.prototype.getMaxListeners=function(){return Ht(this)},Ut.prototype.emit=function(t){var e,r,n,i,a,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 f="function"==typeof r;switch(n=arguments.length){case 1:Wt(r,f,this);break;case 2:Zt(r,f,this,arguments[1]);break;case 3:qt(r,f,this,arguments[1],arguments[2]);break;case 4:Yt(r,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];Gt(r,f,this,i)}return!0},Ut.prototype.addListener=function(t,e){return Vt(this,t,e,!1)},Ut.prototype.on=Ut.prototype.addListener,Ut.prototype.prependListener=function(t,e){return Vt(this,t,e,!0)},Ut.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Kt(this,t,e)),this},Ut.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Kt(this,t,e)),this},Ut.prototype.removeListener=function(t,e){var r,n,i,a,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 Ft:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,a=r.length;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new Ft,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i);n.removeListener&&this.emit("removeListener",t,o||e)}return this},Ut.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new Ft,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new Ft:delete r[t]),this;if(0===arguments.length){for(var n,i=Object.keys(r),a=0;a<i.length;++a)"removeListener"!==(n=i[a])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new Ft,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},Ut.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},Ut.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Xt.call(t,e)},Ut.prototype.listenerCount=Xt,Ut.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Jt=Object.freeze({__proto__:null,default:Ut,EventEmitter:Ut}),Qt="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},te=/%[sdj%]/g;function ee(t){if(!me(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(oe(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(te,(function(t){if("%%"===t)return"%";if(r>=i)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<i;o=n[++r])pe(o)||!_e(o)?a+=" "+o:a+=" "+oe(o);return a}function re(t,e){if(ye(c.process))return function(){return re(t,e).apply(this,arguments)};if(!0===jt.noDeprecation)return t;var r=!1;return function(){if(!r){if(jt.throwDeprecation)throw new Error(e);jt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ne,ie={};function ae(t){if(ye(ne)&&(ne=jt.env.NODE_DEBUG||""),t=t.toUpperCase(),!ie[t])if(new RegExp("\\b"+t+"\\b","i").test(ne)){ie[t]=function(){var e=ee.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else ie[t]=function(){};return ie[t]}function oe(t,e){var r={seen:[],stylize:ue};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),de(e)?r.showHidden=e:e&&Le(r,e),ye(r.showHidden)&&(r.showHidden=!1),ye(r.depth)&&(r.depth=2),ye(r.colors)&&(r.colors=!1),ye(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=se),le(r,t,r.depth)}function se(t,e){var r=oe.styles[e];return r?"["+oe.colors[r][0]+"m"+t+"["+oe.colors[r][1]+"m":t}function ue(t,e){return t}function le(t,e,r){if(t.customInspect&&e&&Se(e.inspect)&&e.inspect!==oe&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return me(n)||(n=le(t,n,r)),n}var i=function(t,e){if(ye(e))return t.stylize("undefined","undefined");if(me(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(be(e))return t.stylize(""+e,"number");if(de(e))return t.stylize(""+e,"boolean");if(pe(e))return t.stylize("null","null")}(t,e);if(i)return i;var a=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),xe(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return fe(e);if(0===a.length){if(Se(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(we(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(ke(e))return t.stylize(Date.prototype.toString.call(e),"date");if(xe(e))return fe(e)}var u,l="",f=!1,h=["{","}"];(ce(e)&&(f=!0,h=["[","]"]),Se(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return we(e)&&(l=" "+RegExp.prototype.toString.call(e)),ke(e)&&(l=" "+Date.prototype.toUTCString.call(e)),xe(e)&&(l=" "+fe(e)),0!==a.length||f&&0!=e.length?r<0?we(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=f?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)Ie(e,String(o))?a.push(he(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(he(t,e,r,n,i,!0))})),a}(t,e,r,o,a):a.map((function(n){return he(t,e,r,o,n,f)})),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,h)):h[0]+l+h[1]}function fe(t){return"["+Error.prototype.toString.call(t)+"]"}function he(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Ie(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=pe(r)?le(t,u.value,null):le(t,u.value,r-1)).indexOf("\n")>-1&&(s=a?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")),ye(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).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 de(t){return"boolean"==typeof t}function pe(t){return null===t}function ge(t){return null==t}function be(t){return"number"==typeof t}function me(t){return"string"==typeof t}function ve(t){return"symbol"==typeof t}function ye(t){return void 0===t}function we(t){return _e(t)&&"[object RegExp]"===Ee(t)}function _e(t){return"object"==typeof t&&null!==t}function ke(t){return _e(t)&&"[object Date]"===Ee(t)}function xe(t){return _e(t)&&("[object Error]"===Ee(t)||t instanceof Error)}function Se(t){return"function"==typeof t}function Ce(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function Ae(t){return ft(t)}function Ee(t){return Object.prototype.toString.call(t)}function Re(t){return t<10?"0"+t.toString(10):t.toString(10)}oe.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]},oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oe(){var t=new Date,e=[Re(t.getHours()),Re(t.getMinutes()),Re(t.getSeconds())].join(":");return[t.getDate(),Te[t.getMonth()],e].join(" ")}function Me(){console.log("%s - %s",Oe(),ee.apply(null,arguments))}function Le(t,e){if(!e||!_e(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Ie(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Pe={inherits:Qt,_extend:Le,log:Me,isBuffer:Ae,isPrimitive:Ce,isFunction:Se,isError:xe,isDate:ke,isObject:_e,isRegExp:we,isUndefined:ye,isSymbol:ve,isString:me,isNumber:be,isNullOrUndefined:ge,isNull:pe,isBoolean:de,isArray:ce,inspect:oe,deprecate:re,format:ee,debuglog:ae},Be=Object.freeze({__proto__:null,format:ee,deprecate:re,debuglog:ae,inspect:oe,isArray:ce,isBoolean:de,isNull:pe,isNullOrUndefined:ge,isNumber:be,isString:me,isSymbol:ve,isUndefined:ye,isRegExp:we,isObject:_e,isDate:ke,isError:xe,isFunction:Se,isPrimitive:Ce,isBuffer:Ae,log:Me,inherits:Qt,_extend:Le,default:Pe});function De(){this.head=null,this.tail=null,this.length=0}De.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},De.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},De.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}},De.prototype.clear=function(){this.head=this.tail=null,this.length=0},De.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},De.prototype.concat=function(t){if(0===this.length)return E.alloc(0);if(1===this.length)return this.head.data;for(var e=E.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var ze=E.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 je(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!ze(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=Fe;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ue;break;default:return void(this.write=Ne)}this.charBuffer=new E(6),this.charReceived=0,this.charLength=0}function Ne(t){return t.toString(this.encoding)}function Fe(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Ue(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}je.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),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=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 i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,n)}return e},je.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},je.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},Ze.ReadableState=We;var He=ae("stream");function We(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof vr&&(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 De,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 je(t.encoding),this.encoding=t.encoding)}function Ze(t){if(!(this instanceof Ze))return new Ze(t);this._readableState=new We(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),Ut.call(this)}function qe(t,e,r,n,i){var a=function(t,e){var r=null;ft(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(a)t.emit("error",a);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,Ve(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(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,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ve(t))),function(t,e){e.readingMore||(e.readingMore=!0,Ct(Xe,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}Qt(Ze,Ut),Ze.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=E.from(t,e),e=""),qe(this,r,t,e,!1)},Ze.prototype.unshift=function(t){return qe(this,this._readableState,t,"",!0)},Ze.prototype.isPaused=function(){return!1===this._readableState.flowing},Ze.prototype.setEncoding=function(t){return this._readableState.decoder=new je(t),this._readableState.encoding=t,this};var Ye=8388608;function Ge(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>=Ye?t=Ye:(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 Ve(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(He("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ct(Ke,t):Ke(t))}function Ke(t){He("emit readable"),t.emit("readable"),Qe(t)}function Xe(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(He("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function $e(t){He("readable nexttick read 0"),t.read(0)}function Je(t,e){e.reading||(He("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Qe(t),e.flowing&&!e.reading&&t.read(0)}function Qe(t){var e=t._readableState;for(He("flow",e.flowing);e.flowing&&null!==t.read(););}function tr(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,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=E.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function er(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ct(rr,e,t))}function rr(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function nr(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function ir(){}function ar(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function or(t,e){Object.defineProperty(this,"buffer",{get:re((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof vr&&(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 i=!1===t.decodeStrings;this.decodeStrings=!i,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,i=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,i){--e.pendingcb,r?Ct(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var a=hr(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||fr(t,r),n?Ct(lr,t,r,a,i):lr(t,r,a,i)}}(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 pr(this)}function sr(t){if(!(this instanceof sr||this instanceof vr))return new sr(t);this._writableState=new or(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),Ut.call(this)}function ur(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function lr(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),dr(t,e)}function fr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0;r;)i[o]=r,r=r.next,o+=1;ur(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new pr(e)}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(ur(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 hr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function cr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function dr(t,e){var r=hr(e);return r&&(0===e.pendingcb?(cr(t,e),e.finished=!0,t.emit("finish")):cr(t,e)),r}function pr(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Ze.prototype.read=function(t){He("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 He("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?er(this):Ve(this),null;if(0===(t=Ge(t,e))&&e.ended)return 0===e.length&&er(this),null;var n,i=e.needReadable;return He("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&He("length less than watermark",i=!0),e.ended||e.reading?He("reading or ended",i=!1):i&&(He("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ge(r,e))),null===(n=t>0?tr(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&er(this)),null!==n&&this.emit("data",n),n},Ze.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Ze.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,He("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?o:l;function a(t){He("onunpipe"),t===r&&l()}function o(){He("onend"),t.end()}n.endEmitted?Ct(i):r.once("end",i),t.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;He("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Qe(t))}}(r);t.on("drain",s);var u=!1;function l(){He("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",c),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var f=!1;function h(e){He("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==nr(n.pipes,t))&&!u&&(He("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function c(e){var r;He("onerror",e),g(),t.removeListener("error",c),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){He("onfinish"),t.removeListener("close",d),g()}function g(){He("unpipe"),r.unpipe(t)}return r.on("data",h),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",c),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(He("pipe resume"),r.resume()),t},Ze.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 i=0;i<n;i++)r[i].emit("unpipe",this);return this}var a=nr(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Ze.prototype.on=function(t,e){var r=Ut.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&&Ve(this):Ct($e,this))}return r},Ze.prototype.addListener=Ze.prototype.on,Ze.prototype.resume=function(){var t=this._readableState;return t.flowing||(He("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ct(Je,t,e))}(this,t)),this},Ze.prototype.pause=function(){return He("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(He("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ze.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(He("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(He("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));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){He("wrapped _read",e),r&&(r=!1,t.resume())},n},Ze._fromList=tr,sr.WritableState=or,Qt(sr,Ut),or.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},sr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},sr.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),E.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=ir),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),Ct(e,r)}(this,r):function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):E.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),Ct(n,a),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=E.from(e,r));return e}(e,r,n),E.isBuffer(r)&&(n="buffer");var a=e.objectMode?1:r.length;e.length+=a;var o=e.length<e.highWaterMark;o||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new ar(r,n,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ur(t,e,!1,a,r,n,i);return o}(this,n,t,e,r)),i},sr.prototype.cork=function(){this._writableState.corked++},sr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||fr(this,t))},sr.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},sr.prototype._write=function(t,e,r){r(new Error("not implemented"))},sr.prototype._writev=null,sr.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,dr(t,e),r&&(e.finished?Ct(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Qt(vr,Ze);for(var gr=Object.keys(sr.prototype),br=0;br<gr.length;br++){var mr=gr[br];vr.prototype[mr]||(vr.prototype[mr]=sr.prototype[mr])}function vr(t){if(!(this instanceof vr))return new vr(t);Ze.call(this,t),sr.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",yr)}function yr(){this.allowHalfOpen||this._writableState.ended||Ct(wr,this)}function wr(t){t.end()}function _r(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&t._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function kr(t){if(!(this instanceof kr))return new kr(t);vr.call(this,t),this._transformState=new _r(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){xr(e,t)})):xr(e)}))}function xr(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 Sr(t){if(!(this instanceof Sr))return new Sr(t);kr.call(this,t)}function Cr(){Ut.call(this)}Qt(kr,vr),kr.prototype.push=function(t,e){return this._transformState.needTransform=!1,vr.prototype.push.call(this,t,e)},kr.prototype._transform=function(t,e,r){throw new Error("Not implemented")},kr.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},kr.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},Qt(Sr,kr),Sr.prototype._transform=function(t,e,r){r(null,t)},Qt(Cr,Ut),Cr.Readable=Ze,Cr.Writable=sr,Cr.Duplex=vr,Cr.Transform=kr,Cr.PassThrough=Sr,Cr.Stream=Cr,Cr.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===Ut.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",i),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 Ar,Er,Rr,Tr=a(Object.freeze({__proto__:null,default:Cr,Readable:Ze,Writable:sr,Duplex:vr,Transform:kr,PassThrough:Sr,Stream:Cr})),Or={exports:{}};function Mr(){if(Ar)return Or.exports;return Ar=1,void 0===jt||!jt.version||0===jt.version.indexOf("v0.")||0===jt.version.indexOf("v1.")&&0!==jt.version.indexOf("v1.8.")?Or.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return Ct(t);case 2:return Ct((function(){t.call(null,e)}));case 3:return Ct((function(){t.call(null,e,r)}));case 4:return Ct((function(){t.call(null,e,r,n)}));default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return Ct((function(){t.apply(null,i)}))}}}:Or.exports=jt,Or.exports}var Lr,Ir=a(Jt),Pr={exports:{}};function Br(){return Lr||(Lr=1,function(t){t.exports=Tr}(Pr)),Pr.exports}var Dr,zr={exports:{}},jr=a(ct);function Nr(){return Dr||(Dr=1,function(t,e){var r=jr,n=r.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(n,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}(zr,zr.exports)),zr.exports}var Fr,Ur={};function Hr(){if(Fr)return Ur;function t(t){return Object.prototype.toString.call(t)}return Fr=1,Ur.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},Ur.isBoolean=function(t){return"boolean"==typeof t},Ur.isNull=function(t){return null===t},Ur.isNullOrUndefined=function(t){return null==t},Ur.isNumber=function(t){return"number"==typeof t},Ur.isString=function(t){return"string"==typeof t},Ur.isSymbol=function(t){return"symbol"==typeof t},Ur.isUndefined=function(t){return void 0===t},Ur.isRegExp=function(e){return"[object RegExp]"===t(e)},Ur.isObject=function(t){return"object"==typeof t&&null!==t},Ur.isDate=function(e){return"[object Date]"===t(e)},Ur.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},Ur.isFunction=function(t){return"function"==typeof t},Ur.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},Ur.isBuffer=jr.Buffer.isBuffer,Ur}var Wr,Zr,qr={exports:{}},Yr=a(Be),Gr={exports:{}};function Vr(){return Zr||(Zr=1,function(t){try{var e=Yr;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=(Wr||(Wr=1,"function"==typeof Object.create?Gr.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Gr.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Gr.exports)}}(qr)),qr.exports}var Kr,Xr,$r,Jr,Qr,tn,en,rn,nn,an={exports:{}};function on(){return Kr||(Kr=1,function(t){var e=Nr().Buffer,r=Yr;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,i,a=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=a,i=s,r.copy(n,i),s+=o.data.length,o=o.next;return a},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})}(an)),an.exports}function sn(){if($r)return Xr;$r=1;var t=Mr();function e(t,e){t.emit("error",e)}return Xr={destroy:function(r,n){var i=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||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,i,r),i._writableState&&(i._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)}},Xr}function un(){if(en)return tn;en=1;var t=Mr();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 i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}tn=p;var r,n=t.nextTick;p.WritableState=d;var a=Object.create(Hr());a.inherits=Vr();var o={deprecate:Qr?Jr:(Qr=1,Jr=Yr.deprecate)},s=Br(),u=Nr().Buffer,l=i.Uint8Array||function(){};var f,h=sn();function c(){}function d(i,a){r=r||ln(),i=i||{};var o=a instanceof r;this.objectMode=!!i.objectMode,o&&(this.objectMode=this.objectMode||!!i.writableObjectMode);var s=i.highWaterMark,u=i.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 f=!1===i.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=i.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 i=e._writableState,a=i.sync,o=i.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),r)!function(e,r,n,i,a){--r.pendingcb,n?(t.nextTick(a,i),t.nextTick(w,e,r),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,r))}(e,i,a,r,o);else{var s=v(i);s||i.corked||i.bufferProcessing||!i.bufferedRequest||m(e,i),a?n(b,e,i,s,o):b(e,i,s,o)}}(a,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||ln(),!(f.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,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,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 i=r.bufferedRequestCount,a=new Array(i),o=r.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)a[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;a.allBuffers=u,g(t,r,!0,r.length,a,"",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,f=n.encoding,h=n.callback;if(g(t,r,!1,r.objectMode?1:l.length,l,f,h),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 a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===p&&(t&&t._writableState instanceof d)}})):f=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 i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,u.isBuffer(i)||i 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=a.defaultEncoding),"function"!=typeof n&&(n=c),a.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,i){var a=!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(i,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(t,e,r,n,i,a){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,i);n!==o&&(r=!0,i="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 f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,a);return l}(this,a,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 i=this._writableState;"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),i.corked&&(i.corked=1,this.uncork()),i.ending||i.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,i,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=h.destroy,p.prototype._undestroy=h.undestroy,p.prototype._destroy=function(t,e){this.end(),e(t)},tn}function ln(){if(nn)return rn;nn=1;var t=Mr(),e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};rn=u;var r=Object.create(Hr());r.inherits=Vr();var n=wn(),i=un();r.inherits(u,n);for(var a=e(i.prototype),o=0;o<a.length;o++){var s=a[o];u.prototype[s]||(u.prototype[s]=i.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),i.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(f,this)}function f(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)},rn}var fn,hn,cn,dn,pn,gn,bn,mn,vn={};function yn(){if(fn)return vn;fn=1;var t=Nr().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=a,this.end=o,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=s,this.end=u,n=3;break;default:return this.write=l,void(this.end=f)}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 i(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 a(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 f(t){return t&&t.length?this.write(t):""}return vn.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 i=e.length-1;if(i<r)return 0;var a=n(e[i]);if(a>=0)return a>0&&(t.lastNeed=a-1),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(t.lastNeed=a-2),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(2===a?a=0:t.lastNeed=a-3),a;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},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},vn}function wn(){if(cn)return hn;cn=1;var t=Mr();hn=b;var e,r=function(){if(Rr)return Er;Rr=1;var t={}.toString;return Er=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();b.ReadableState=g,Ir.EventEmitter;var n=function(t,e){return t.listeners(e).length},a=Br(),o=Nr().Buffer,s=i.Uint8Array||function(){};var u=Object.create(Hr());u.inherits=Vr();var l=Yr,f=void 0;f=l&&l.debuglog?l.debuglog("stream"):function(){};var h,c=on(),d=sn();u.inherits(b,a);var p=["error","close","destroy","pause","resume"];function g(t,r){t=t||{};var n=r instanceof(e=e||ln());this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,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&&(h||(h=yn().StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(e=e||ln(),!(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)),a.call(this)}function m(t,e,r,n,i){var a,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)):(i||(a=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)),a?t.emit("error",a):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 h||(h=yn().StringDecoder),this._readableState.decoder=new h(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||(f("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?t.nextTick(k,e):k(e))}function k(t){f("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&&(f("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){f("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(f("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(f("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,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=o.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,s),0===(t-=s)){s===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(s));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function T(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(O,r,e))}function O(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function M(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){f("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 f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):_(this),null;if(0===(t=w(t,e))&&e.ended)return 0===e.length&&T(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("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&&T(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,i){var a=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,f("pipe count=%d opts=%j",o.pipesCount,i);var s=(!i||!1!==i.end)&&e!==jt.stdout&&e!==jt.stderr?l:v;function u(t,r){f("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",u),a.removeListener("end",l),a.removeListener("end",v),a.removeListener("data",p),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function l(){f("onend"),e.end()}o.endEmitted?t.nextTick(s):a.once("end",s),e.on("unpipe",u);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&n(t,"data")&&(e.flowing=!0,E(t))}}(a);e.on("drain",h);var c=!1;var d=!1;function p(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!c&&(f("false write response, pause",a._readableState.awaitDrain),a._readableState.awaitDrain++,d=!0),a.pause())}function g(t){f("onerror",t),v(),e.removeListener("error",g),0===n(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),v()}function m(){f("onfinish"),e.removeListener("close",b),v()}function v(){f("unpipe"),a.unpipe(e)}return a.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",a),o.flowing||(f("pipe resume"),a.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,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=M(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=a.prototype.on.call(this,e,r);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.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||(f("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 f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<p.length;a++)t.on(p[a],this.emit.bind(this,p[a]));return this._read=function(e){f("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,hn}function _n(){if(pn)return dn;pn=1,dn=n;var t=ln(),e=Object.create(Hr());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 i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.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",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){a(t,e,r)})):a(this,null,null)}function a(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=Vr(),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 i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.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")}))},dn}function kn(){return mn||(mn=1,function(t,e){var r=Tr;"disable"===jt.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=wn()).Stream=r||e,e.Readable=e,e.Writable=un(),e.Duplex=ln(),e.Transform=_n(),e.PassThrough=function(){if(bn)return gn;bn=1,gn=r;var t=_n(),e=Object.create(Hr());function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}return e.inherits=Vr(),e.inherits(r,t),r.prototype._transform=function(t,e,r){r(null,t)},gn}())}(Nt,Nt.exports)),Nt.exports}if(dt.base64=!0,dt.array=!0,dt.string=!0,dt.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,dt.nodebuffer=!0,dt.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)dt.blob=!1;else{var xn=new ArrayBuffer(0);try{dt.blob=0===new Blob([xn],{type:"application/zip"}).size}catch(t){try{var Sn=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Sn.append(xn),dt.blob=0===Sn.getBlob("application/zip").size}catch(t){dt.blob=!1}}}try{dt.nodestream=!!kn().Readable}catch(t){dt.nodestream=!1}var Cn,An={};function En(){if(Cn)return An;Cn=1;var t=Dn(),e=dt,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return An.encode=function(e){for(var n,i,a,o,s,u,l,f=[],h=0,c=e.length,d=c,p="string"!==t.getTypeOf(e);h<e.length;)d=c-h,p?(n=e[h++],i=h<c?e[h++]:0,a=h<c?e[h++]:0):(n=e.charCodeAt(h++),i=h<c?e.charCodeAt(h++):0,a=h<c?e.charCodeAt(h++):0),o=n>>2,s=(3&n)<<4|i>>4,u=d>1?(15&i)<<2|a>>6:64,l=d>2?63&a:64,f.push(r.charAt(o)+r.charAt(s)+r.charAt(u)+r.charAt(l));return f.join("")},An.decode=function(t){var n,i,a,o,s,u,l=0,f=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var c,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(c=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,i=(15&o)<<4|(s=r.indexOf(t.charAt(l++)))>>2,a=(3&s)<<6|(u=r.indexOf(t.charAt(l++))),c[f++]=n,64!==s&&(c[f++]=i),64!==u&&(c[f++]=a);return c},An}var Rn,Tn,On,Mn,Ln={isNode:!0,newBufferFrom:function(t,e){if(E.from&&E.from!==Uint8Array.from)return E.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new E(t,e)},allocBuffer:function(t){if(E.alloc)return E.alloc(t);var e=new E(t);return e.fill(0),e},isBuffer:function(t){return ft(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};var In=null;In="undefined"!=typeof Promise?Promise:function(){if(Mn)return On;Mn=1;var t=function(){if(Tn)return Rn;Tn=1;var t,e,r=i.MutationObserver||i.WebKitMutationObserver;if(r){var n=0,a=new r(l),o=i.document.createTextNode("");a.observe(o,{characterData:!0}),t=function(){o.data=n=++n%2}}else if(i.setImmediate||void 0===i.MessageChannel)t="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var t=i.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},i.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var s=new i.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 Rn=function(r){1!==u.push(r)||e||t()}}();function e(){}var r={},n=["REJECTED"],a=["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&&h(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,i){t((function(){var t;try{t=n(i)}catch(t){return r.reject(e,t)}t===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,t)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function h(t,e){var n=!1;function i(e){n||(n=!0,r.reject(t,e))}function a(e){n||(n=!0,r.resolve(t,e))}var o=c((function(){e(a,i)}));"error"===o.status&&i(o.value)}function c(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}return On=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===a||"function"!=typeof r&&this.state===n)return this;var i=new this.constructor(e);return this.state!==o?l(i,this.state===a?t:r,this.outcome):this.queue.push(new u(i,t,r)),i},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=c(f,e);if("error"===n.status)return r.reject(t,n.value);var i=n.value;if(i)h(t,i);else{t.state=a,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=n,t.outcome=e;for(var r=-1,i=t.queue.length;++r<i;)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 i=t.length,a=!1;if(!i)return this.resolve([]);for(var o=new Array(i),s=0,u=-1,l=new this(e);++u<i;)f(t[u],u);return l;function f(t,e){n.resolve(t).then((function(t){o[e]=t,++s!==i||a||(a=!0,r.resolve(l,o))}),(function(t){a||(a=!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 i=t.length,a=!1;if(!i)return this.resolve([]);for(var o,s=-1,u=new this(e);++s<i;)o=t[s],n.resolve(o).then((function(t){a||(a=!0,r.resolve(u,t))}),(function(t){a||(a=!0,r.reject(u,t))}));return u},On}();var Pn,Bn={Promise:In};function Dn(){return Pn||(Pn=1,function(t){var e=dt,r=En(),n=Ln,i=Bn;function a(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=[],i=0,a=t.length;if(a<=r)return String.fromCharCode.apply(null,t);for(;i<a;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,a)))),i+=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),i=!0;if("uint8array"===n?i=s.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=s.applyCanBeUsed.nodebuffer),i)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 f={};f.string={string:a,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,n.allocBuffer(t.length))}},f.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(t)}},f.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return n.newBufferFrom(t)}},f.nodebuffer={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:a},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return f[n][e](r)},t.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var i=e[n];"."===i||""===i&&0!==n&&n!==e.length-1||(".."===i?r.pop():r.push(i))}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,a,s,u,l){return i.Promise.resolve(a).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new i.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(a){var f,h=t.getTypeOf(a);return h?("arraybuffer"===h?a=t.transformTo("uint8array",a):"string"===h&&(l?a=r.decode(a):s&&!0!==u&&(a=o(f=a,e.uint8array?new Uint8Array(f.length):new Array(f.length)))),a):i.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(h)),h}function zn(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,i,a,o,s=1,u={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){Ct((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?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,r=function(t){var e=f.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)}:(a="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(a+e,"*")}),h.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 i={callback:t,args:e};return u[s]=i,r(s),s++},h.clearImmediate=c}function c(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{c(t),l=!1}}}}}("undefined"==typeof self?i:self),zn.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 jn=zn;!function(t){for(var e=Dn(),r=dt,n=Ln,i=jn,a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;function s(){i.call(this,"utf-8 decode"),this.leftOver=null}function u(){i.call(this,"utf-8 encode")}t.utf8encode=function(t){return r.nodebuffer?n.newBufferFrom(t,"utf-8"):function(t){var e,n,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),o=0,a=0;o<u;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),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,i,o,s=t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}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,i),s.prototype.processChunk=function(n){var i=e.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);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+a[t[r]]>e?r:e}(i),u=i;s!==i.length&&(r.uint8array?(u=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(u=i.slice(0,s),this.leftOver=i.slice(s,i.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,i),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u}(f);var Nn=jn,Fn=Dn();function Un(t){Nn.call(this,"ConvertWorker to "+t),this.destType=t}Fn.inherits(Un,Nn),Un.prototype.processChunk=function(t){this.push({data:Fn.transformTo(this.destType,t.data),meta:t.meta})};var Hn,Wn,Zn=Un;var qn=Dn(),Yn=Zn,Gn=jn,Vn=En(),Kn=Bn,Xn=null;if(dt.nodestream)try{Xn=function(){if(Wn)return Hn;Wn=1;var t=kn().Readable;function e(e,r,n){t.call(this,r),this._helper=e;var i=this;e.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}return Dn().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Hn=e}()}catch(t){}function $n(t,e){return new Kn.Promise((function(r,n){var i=[],a=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return qn.newBlob(qn.transformTo("arraybuffer",e),r);case"base64":return Vn.encode(e);default:return qn.transformTo(t,e)}}(o,function(t,e){var r,n=0,i=null,a=0;for(r=0;r<e.length;r++)a+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(a),r=0;r<e.length;r++)i.set(e[r],n),n+=e[r].length;return i;case"nodebuffer":return E.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,i),s);r(t)}catch(t){n(t)}i=[]})).resume()}))}function Jn(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,qn.checkSupport(n),this._worker=t.pipe(new Yn(n)),t.lock()}catch(t){this._worker=new Gn("error"),this._worker.error(t)}}Jn.prototype={accumulate:function(t){return $n(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(){qn.delay(e,arguments,r)})),this},resume:function(){return qn.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(qn.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Xn(this,{objectMode:"nodebuffer"!==this._outputType},t)}};var Qn=Jn,ti={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},ei=Dn(),ri=jn;function ni(t){ri.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=ei.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}ei.inherits(ni,ri),ni.prototype.cleanUp=function(){ri.prototype.cleanUp.call(this),this.data=null},ni.prototype.resume=function(){return!!ri.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,ei.delay(this._tickAndRepeat,[],this)),!0)},ni.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(ei.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ni.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 ii=ni,ai=Dn();var oi=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 si=function(t,e){return void 0!==t&&t.length?"string"!==ai.getTypeOf(t)?function(t,e,r,n){var i=oi,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var i=oi,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length,0):0},ui=jn,li=si;function fi(){ui.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Dn().inherits(fi,ui),fi.prototype.processChunk=function(t){this.streamInfo.crc32=li(t.data,this.streamInfo.crc32||0),this.push(t)};var hi=fi,ci=Dn(),di=jn;function pi(t){di.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}ci.inherits(pi,di),pi.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}di.prototype.processChunk.call(this,t)};var gi=Bn,bi=ii,mi=hi,vi=pi;function yi(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}yi.prototype={getContentWorker:function(){var t=new bi(gi.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new vi("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 bi(gi.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},yi.createWorkerFrom=function(t,e,r){return t.pipe(new mi).pipe(new vi("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new vi("compressedSize")).withStreamInfo("compression",e)};var wi=yi,_i=Qn,ki=ii,xi=f,Si=wi,Ci=jn,Ai=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}};Ai.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 i=!this._dataBinary;i&&!n&&(e=e.pipe(new xi.Utf8EncodeWorker)),!i&&n&&(e=e.pipe(new xi.Utf8DecodeWorker))}catch(t){(e=new Ci("error")).error(t)}return new _i(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 Si&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xi.Utf8EncodeWorker)),Si.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof Si?this._data.getContentWorker():this._data instanceof Ci?this._data:new ki(this._data)}};for(var Ei=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ri=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ti=0;Ti<Ei.length;Ti++)Ai.prototype[Ei[Ti]]=Ri;var Oi=Ai,Mi={},Li={},Ii={},Pi={};!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 i in n)r(n,i)&&(t[i]=n[i])}}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,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},i={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},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,i))},t.setTyped(e)}(Pi);var Bi={},Di={},zi={},ji=Pi;function Ni(t){for(var e=t.length;--e>=0;)t[e]=0}var Fi=256,Ui=286,Hi=30,Wi=15,Zi=[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],qi=[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],Yi=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vi=new Array(576);Ni(Vi);var Ki=new Array(60);Ni(Ki);var Xi=new Array(512);Ni(Xi);var $i=new Array(256);Ni($i);var Ji=new Array(29);Ni(Ji);var Qi,ta,ea,ra=new Array(Hi);function na(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function ia(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function aa(t){return t<256?Xi[t]:Xi[256+(t>>>7)]}function oa(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function sa(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,oa(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 ua(t,e,r){sa(t,r[2*e],r[2*e+1])}function la(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function fa(t,e,r){var n,i,a=new Array(16),o=0;for(n=1;n<=Wi;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=la(a[s]++,s))}}function ha(t){var e;for(e=0;e<Ui;e++)t.dyn_ltree[2*e]=0;for(e=0;e<Hi;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 ca(t){t.bi_valid>8?oa(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 da(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function pa(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&da(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!da(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function ga(t,e,r){var n,i,a,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],i=t.pending_buf[t.l_buf+s],s++,0===n?ua(t,i,e):(ua(t,(a=$i[i])+Fi+1,e),0!==(o=Zi[a])&&sa(t,i-=Ji[a],o),ua(t,a=aa(--n),r),0!==(o=qi[a])&&sa(t,n-=ra[a],o))}while(s<t.last_lit);ua(t,256,e)}function ba(t,e){var r,n,i,a=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!==a[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=l,r=t.heap_len>>1;r>=1;r--)pa(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pa(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,pa(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,l=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(a=0;a<=Wi;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(a=p,g++),u[2*n+1]=a,n>l||(t.bl_count[a]++,o=0,n>=d&&(o=c[n-d]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(f[2*n+1]+o)));if(0!==g){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>l||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),fa(a,l,t.bl_count)}function ma(t,e,r){var n,i,a=-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++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function va(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<l)do{ua(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(ua(t,i,t.bl_tree),s--),ua(t,16,t.bl_tree),sa(t,s-3,2)):s<=10?(ua(t,17,t.bl_tree),sa(t,s-3,3)):(ua(t,18,t.bl_tree),sa(t,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}Ni(ra);var ya=!1;function wa(t,e,r,n){sa(t,0+(n?1:0),3),function(t,e,r,n){ca(t),n&&(oa(t,r),oa(t,~r)),ji.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}zi._tr_init=function(t){ya||(!function(){var t,e,r,n,i,a=new Array(16);for(r=0,n=0;n<28;n++)for(Ji[n]=r,t=0;t<1<<Zi[n];t++)$i[r++]=n;for($i[r-1]=n,i=0,n=0;n<16;n++)for(ra[n]=i,t=0;t<1<<qi[n];t++)Xi[i++]=n;for(i>>=7;n<Hi;n++)for(ra[n]=i<<7,t=0;t<1<<qi[n]-7;t++)Xi[256+i++]=n;for(e=0;e<=Wi;e++)a[e]=0;for(t=0;t<=143;)Vi[2*t+1]=8,t++,a[8]++;for(;t<=255;)Vi[2*t+1]=9,t++,a[9]++;for(;t<=279;)Vi[2*t+1]=7,t++,a[7]++;for(;t<=287;)Vi[2*t+1]=8,t++,a[8]++;for(fa(Vi,287,a),t=0;t<Hi;t++)Ki[2*t+1]=5,Ki[2*t]=la(t,5);Qi=new na(Vi,Zi,257,Ui,Wi),ta=new na(Ki,qi,0,Hi,Wi),ea=new na(new Array(0),Yi,0,19,7)}(),ya=!0),t.l_desc=new ia(t.dyn_ltree,Qi),t.d_desc=new ia(t.dyn_dtree,ta),t.bl_desc=new ia(t.bl_tree,ea),t.bi_buf=0,t.bi_valid=0,ha(t)},zi._tr_stored_block=wa,zi._tr_flush_block=function(t,e,r,n){var i,a,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<Fi;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),ba(t,t.l_desc),ba(t,t.d_desc),o=function(t){var e;for(ma(t,t.dyn_ltree,t.l_desc.max_code),ma(t,t.dyn_dtree,t.d_desc.max_code),ba(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Gi[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?wa(t,e,r,n):4===t.strategy||a===i?(sa(t,2+(n?1:0),3),ga(t,Vi,Ki)):(sa(t,4+(n?1:0),3),function(t,e,r,n){var i;for(sa(t,e-257,5),sa(t,r-1,5),sa(t,n-4,4),i=0;i<n;i++)sa(t,t.bl_tree[2*Gi[i]+1],3);va(t,t.dyn_ltree,e-1),va(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),ga(t,t.dyn_ltree,t.dyn_dtree)),ha(t),n&&ca(t)},zi._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*($i[r]+Fi+1)]++,t.dyn_dtree[2*aa(e)]++),t.last_lit===t.lit_bufsize-1},zi._tr_align=function(t){sa(t,2,3),ua(t,256,Vi),function(t){16===t.bi_valid?(oa(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 _a=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0};var ka=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 xa,Sa=function(t,e,r,n){var i=ka,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t},Ca={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"},Aa=Pi,Ea=zi,Ra=_a,Ta=Sa,Oa=Ca,Ma=-2,La=258,Ia=262,Pa=103,Ba=113,Da=666;function za(t,e){return t.msg=Oa[e],e}function ja(t){return(t<<1)-(t>4?9:0)}function Na(t){for(var e=t.length;--e>=0;)t[e]=0}function Fa(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(Aa.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 Ua(t,e){Ea._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Fa(t.strm)}function Ha(t,e){t.pending_buf[t.pending++]=e}function Wa(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Za(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Ia?t.strstart-(t.w_size-Ia):0,l=t.window,f=t.w_mask,h=t.prev,c=t.strstart+La,d=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<c);if(n=La-(c-a),a=c-La,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[a+o-1],p=l[a+o]}}}while((e=h[e&f])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function qa(t){var e,r,n,i,a,o,s,u,l,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-Ia)){Aa.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=h?n-h:0}while(--r);e=r=h;do{n=t.prev[--e],t.prev[e]=n>=h?n-h:0}while(--r);i+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,u=t.strstart+t.lookahead,l=i,f=void 0,(f=o.avail_in)>l&&(f=l),r=0===f?0:(o.avail_in-=f,Aa.arraySet(s,o.input,o.next_in,f,u),1===o.state.wrap?o.adler=Ra(o.adler,s,f,u):2===o.state.wrap&&(o.adler=Ta(o.adler,s,f,u)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<Ia&&0!==t.strm.avail_in)}function Ya(t,e){for(var r,n;;){if(t.lookahead<Ia){if(qa(t),t.lookahead<Ia&&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-Ia&&(t.match_length=Za(t,r)),t.match_length>=3)if(n=Ea._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=Ea._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}function Ga(t,e){for(var r,n,i;;){if(t.lookahead<Ia){if(qa(t),t.lookahead<Ia&&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-Ia&&(t.match_length=Za(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){i=t.strstart+t.lookahead-3,n=Ea._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<=i&&(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&&(Ua(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=Ea._tr_tally(t,0,t.window[t.strstart-1]))&&Ua(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=Ea._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}function Va(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function Ka(){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 Aa.Buf16(1146),this.dyn_dtree=new Aa.Buf16(122),this.bl_tree=new Aa.Buf16(78),Na(this.dyn_ltree),Na(this.dyn_dtree),Na(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Aa.Buf16(16),this.heap=new Aa.Buf16(573),Na(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Aa.Buf16(573),Na(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 Xa(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:Ba,t.adler=2===e.wrap?0:1,e.last_flush=0,Ea._tr_init(e),0):za(t,Ma)}function $a(t){var e,r=Xa(t);return 0===r&&((e=t.state).window_size=2*e.w_size,Na(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[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 Ja(t,e,r,n,i,a){if(!t)return Ma;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return za(t,Ma);8===n&&(n=9);var s=new Ka;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=i+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 Aa.Buf8(2*s.w_size),s.head=new Aa.Buf16(s.hash_size),s.prev=new Aa.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Aa.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=r,$a(t)}xa=[new Va(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(qa(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,Ua(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Ia&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ua(t,!1),t.strm.avail_out),1)})),new Va(4,4,8,4,Ya),new Va(4,5,16,8,Ya),new Va(4,6,32,32,Ya),new Va(4,4,16,16,Ga),new Va(8,16,32,32,Ga),new Va(8,16,128,128,Ga),new Va(8,32,128,256,Ga),new Va(32,128,258,1024,Ga),new Va(32,258,258,4096,Ga)],Di.deflateInit=function(t,e){return Ja(t,e,8,15,8,0)},Di.deflateInit2=Ja,Di.deflateReset=$a,Di.deflateResetKeep=Xa,Di.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?Ma:(t.state.gzhead=e,0):Ma},Di.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||e>5||e<0)return t?za(t,Ma):Ma;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===Da&&4!==e)return za(t,0===t.avail_out?-5:Ma);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Ha(n,31),Ha(n,139),Ha(n,8),n.gzhead?(Ha(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)),Ha(n,255&n.gzhead.time),Ha(n,n.gzhead.time>>8&255),Ha(n,n.gzhead.time>>16&255),Ha(n,n.gzhead.time>>24&255),Ha(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Ha(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ha(n,255&n.gzhead.extra.length),Ha(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=Ta(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Ha(n,0),Ha(n,0),Ha(n,0),Ha(n,0),Ha(n,0),Ha(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Ha(n,3),n.status=Ba);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=Ba,Wa(n,o),0!==n.strstart&&(Wa(n,t.adler>>>16),Wa(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=Ta(t.adler,n.pending_buf,n.pending-i,i)),Fa(t),i=n.pending,n.pending!==n.pending_buf_size));)Ha(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=Ta(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Ta(t.adler,n.pending_buf,n.pending-i,i)),Fa(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Ha(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=Ta(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Ta(t.adler,n.pending_buf,n.pending-i,i)),Fa(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Ha(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=Ta(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=Pa)}else n.status=Pa;if(n.status===Pa&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Fa(t),n.pending+2<=n.pending_buf_size&&(Ha(n,255&t.adler),Ha(n,t.adler>>8&255),t.adler=0,n.status=Ba)):n.status=Ba),0!==n.pending){if(Fa(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&ja(e)<=ja(r)&&4!==e)return za(t,-5);if(n.status===Da&&0!==t.avail_in)return za(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==Da){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(qa(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=Ea._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,a,o=t.window;;){if(t.lookahead<=La){if(qa(t),t.lookahead<=La&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+La;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=La-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=Ea._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Ea._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}(n,e):xa[n.level].func(n,e);if(3!==s&&4!==s||(n.status=Da),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?Ea._tr_align(n):5!==e&&(Ea._tr_stored_block(n,0,0,!1),3===e&&(Na(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Fa(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Ha(n,255&t.adler),Ha(n,t.adler>>8&255),Ha(n,t.adler>>16&255),Ha(n,t.adler>>24&255),Ha(n,255&t.total_in),Ha(n,t.total_in>>8&255),Ha(n,t.total_in>>16&255),Ha(n,t.total_in>>24&255)):(Wa(n,t.adler>>>16),Wa(n,65535&t.adler)),Fa(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Di.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Pa&&e!==Ba&&e!==Da?za(t,Ma):(t.state=null,e===Ba?za(t,-3):0):Ma},Di.deflateSetDictionary=function(t,e){var r,n,i,a,o,s,u,l,f=e.length;if(!t||!t.state)return Ma;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return Ma;for(1===a&&(t.adler=Ra(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(Na(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new Aa.Buf8(r.w_size),Aa.arraySet(l,e,f-r.w_size,r.w_size,0),e=l,f=r.w_size),o=t.avail_in,s=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,qa(r);r.lookahead>=3;){n=r.strstart,i=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(--i);r.strstart=n,r.lookahead=2,qa(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=a,0},Di.deflateInfo="pako deflate (from Nodeca project)";var Qa={},to=Pi,eo=!0,ro=!0;try{String.fromCharCode.apply(null,[0])}catch(t){eo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){ro=!1}for(var no=new to.Buf8(256),io=0;io<256;io++)no[io]=io>=252?6:io>=248?5:io>=240?4:io>=224?3:io>=192?2:1;function ao(t,e){if(e<65534&&(t.subarray&&ro||!t.subarray&&eo))return String.fromCharCode.apply(null,to.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}no[254]=no[254]=1,Qa.string2buf=function(t){var e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new to.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},Qa.buf2binstring=function(t){return ao(t,t.length)},Qa.binstring2buf=function(t){for(var e=new to.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},Qa.buf2string=function(t,e){var r,n,i,a,o=e||t.length,s=new Array(2*o);for(n=0,r=0;r<o;)if((i=t[r++])<128)s[n++]=i;else if((a=no[i])>4)s[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<o;)i=i<<6|63&t[r++],a--;a>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return ao(s,n)},Qa.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+no[t[r]]>e?r:e};var oo=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},so=Di,uo=Pi,lo=Qa,fo=Ca,ho=oo,co=Object.prototype.toString;function po(t){if(!(this instanceof po))return new po(t);this.options=uo.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 ho,this.strm.avail_out=0;var r=so.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(fo[r]);if(e.header&&so.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?lo.string2buf(e.dictionary):"[object ArrayBuffer]"===co.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=so.deflateSetDictionary(this.strm,n)))throw new Error(fo[r]);this._dict_set=!0}}function go(t,e){var r=new po(e);if(r.push(t,!0),r.err)throw r.msg||fo[r.err];return r.result}po.prototype.push=function(t,e){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=lo.string2buf(t):"[object ArrayBuffer]"===co.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new uo.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=so.deflate(i,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(lo.buf2binstring(uo.shrinkBuf(i.output,i.next_out))):this.onData(uo.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=so.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),i.avail_out=0,!0)},po.prototype.onData=function(t){this.chunks.push(t)},po.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=uo.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Bi.Deflate=po,Bi.deflate=go,Bi.deflateRaw=function(t,e){return(e=e||{}).raw=!0,go(t,e)},Bi.gzip=function(t,e){return(e=e||{}).gzip=!0,go(t,e)};var bo={},mo={},vo=Pi,yo=15,wo=[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],_o=[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],ko=[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],xo=[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],So=Pi,Co=_a,Ao=Sa,Eo=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A;r=t.state,n=t.next_in,C=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,l=r.wsize,f=r.whave,h=r.wnext,c=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[a++]=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=a-o)){if((w=k-w)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=0,S=c,0===h){if(x+=l-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}else if(h<w){if(x+=l+h-w,(w-=h)<_){_-=w;do{A[a++]=c[x++]}while(--w);if(x=0,h<_){_-=w=h;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}}else if(x+=h-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}for(;_>2;)A[a++]=S[x++],A[a++]=S[x++],A[a++]=S[x++],_-=3;_&&(A[a++]=S[x++],_>1&&(A[a++]=S[x++]))}else{x=a-k;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],_-=3}while(_>2);_&&(A[a++]=A[x++],_>1&&(A[a++]=A[x++]))}break}}break}}while(n<i&&a<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p},Ro=function(t,e,r,n,i,a,o,s){var u,l,f,h,c,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,T=0,O=new vo.Buf16(16),M=new vo.Buf16(16),L=null,I=0;for(v=0;v<=yo;v++)O[v]=0;for(y=0;y<n;y++)O[e[r+y]]++;for(k=m,_=yo;_>=1&&0===O[_];_--);if(k>_&&(k=_),0===_)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<_&&0===O[w];w++);for(k<w&&(k=w),C=1,v=1;v<=yo;v++)if(C<<=1,(C-=O[v])<0)return-1;if(C>0&&(0===t||1!==_))return-1;for(M[1]=0,v=1;v<yo;v++)M[v+1]=M[v]+O[v];for(y=0;y<n;y++)0!==e[r+y]&&(o[M[e[r+y]]++]=y);if(0===t?(R=L=o,d=19):1===t?(R=wo,T-=257,L=_o,I-=257,d=256):(R=ko,L=xo,d=-1),E=0,y=0,v=w,c=a,x=k,S=0,f=-1,h=(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[I+o[y]],b=R[T+o[y]]):(g=96,b=0),u=1<<v-S,w=l=1<<x;do{i[c+(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==--O[v]){if(v===_)break;v=e[r+o[y]]}if(v>k&&(E&h)!==f){for(0===S&&(S=k),c+=w,C=1<<(x=v-S);x+S<_&&!((C-=O[x+S])<=0);)x++,C<<=1;if(A+=1<<x,1===t&&A>852||2===t&&A>592)return 1;i[f=E&h]=k<<24|x<<16|c-a|0}}return 0!==E&&(i[c+E]=v-S<<24|64<<16|0),s.bits=k,0},To=-2,Oo=12,Mo=30;function Lo(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Io(){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 So.Buf16(320),this.work=new So.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Po(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 So.Buf32(852),e.distcode=e.distdyn=new So.Buf32(592),e.sane=1,e.back=-1,0):To}function Bo(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,Po(t)):To}function Do(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)?To:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Bo(t))):To}function zo(t,e){var r,n;return t?(n=new Io,t.state=n,n.window=null,0!==(r=Do(t,e))&&(t.state=null),r):To}var jo,No,Fo=!0;function Uo(t){if(Fo){var e;for(jo=new So.Buf32(512),No=new So.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(Ro(1,t.lens,0,288,jo,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ro(2,t.lens,0,32,No,0,t.work,{bits:5}),Fo=!1}t.lencode=jo,t.lenbits=9,t.distcode=No,t.distbits=5}function Ho(t,e,r,n){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new So.Buf8(a.wsize)),n>=a.wsize?(So.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),So.arraySet(a.window,e,r-n,i,a.wnext),(n-=i)?(So.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}mo.inflateReset=Bo,mo.inflateReset2=Do,mo.inflateResetKeep=Po,mo.inflateInit=function(t){return zo(t,15)},mo.inflateInit2=zo,mo.inflate=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A=0,E=new So.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 To;(r=t.state).mode===Oo&&(r.mode=13),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,h=s,c=u,x=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(2&r.wrap&&35615===l){r.check=0,E[0]=255&l,E[1]=l>>>8&255,r.check=Ao(r.check,E,2,0),l=0,f=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=Mo;break}if(8!=(15&l)){t.msg="unknown compression method",r.mode=Mo;break}if(f-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=Mo;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&l?10:Oo,l=0,f=0;break;case 2:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.flags=l,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=Mo;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=Mo;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=Ao(r.check,E,2,0)),l=0,f=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=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=Ao(r.check,E,4,0)),l=0,f=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=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=Ao(r.check,E,2,0)),l=0,f=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=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=Ao(r.check,E,2,0)),l=0,f=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)),So.arraySet(r.head.extra,n,a,d,k)),512&r.flags&&(r.check=Ao(r.check,n,d,a)),s-=d,a+=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[a+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=Ao(r.check,n,d,a)),s-=d,a+=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[a+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=Ao(r.check,n,d,a)),s-=d,a+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=Mo;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Oo;break;case 10:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}t.adler=r.check=Lo(l),l=0,f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,2;t.adler=r.check=1,r.mode=Oo;case Oo:if(5===e||6===e)break t;case 13:if(r.last){l>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}switch(r.last=1&l,f-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(Uo(r),r.mode=20,6===e){l>>>=2,f-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=Mo}l>>>=2,f-=2;break;case 14:for(l>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Mo;break}if(r.length=65535&l,l=0,f=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;So.arraySet(i,n,a,d,o),s-=d,a+=d,u-=d,o+=d,r.length-=d;break}r.mode=Oo;break;case 17:for(;f<14;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.nlen=257+(31&l),l>>>=5,f-=5,r.ndist=1+(31&l),l>>>=5,f-=5,r.ncode=4+(15&l),l>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Mo;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.lens[R[r.have++]]=7&l,l>>>=3,f-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=Ro(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=Mo;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)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(v<16)l>>>=b,f-=b,r.lens[r.have++]=v;else{if(16===v){for(C=b+2;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l>>>=b,f-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=Mo;break}k=r.lens[r.have-1],d=3+(3&l),l>>>=2,f-=2}else if(17===v){for(C=b+3;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=3+(7&(l>>>=b)),l>>>=3,f-=3}else{for(C=b+7;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=11+(127&(l>>>=b)),l>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Mo;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===Mo)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=Mo;break}if(r.lenbits=9,S={bits:r.lenbits},x=Ro(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=Mo;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=Ro(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=Mo;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=a,t.avail_in=s,r.hold=l,r.bits=f,Eo(t,c),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,r.mode===Oo&&(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)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=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)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,r.length=v,0===m){r.mode=26;break}if(32&m){r.back=-1,r.mode=Oo;break}if(64&m){t.msg="invalid literal/length code",r.mode=Mo;break}r.extra=15&m,r.mode=22;case 22:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=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)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=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)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,64&m){t.msg="invalid distance code",r.mode=Mo;break}r.offset=v,r.extra=15&m,r.mode=24;case 24:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Mo;break}r.mode=25;case 25:if(0===u)break t;if(d=c-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Mo;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=i,p=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[o++]=g[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break t;s--,l|=n[a++]<<f,f+=8}if(c-=u,t.total_out+=c,r.total+=c,c&&(t.adler=r.check=r.flags?Ao(r.check,i,c,o-c):Co(r.check,i,c,o-c)),c=u,(r.flags?l:Lo(l))!==r.check){t.msg="incorrect data check",r.mode=Mo;break}l=0,f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=Mo;break}l=0,f=0}r.mode=29;case 29:x=1;break t;case Mo:x=-3;break t;case 31:return-4;default:return To}return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,(r.wsize||c!==t.avail_out&&r.mode<Mo&&(r.mode<27||4!==e))&&Ho(t,t.output,t.next_out,c-t.avail_out),h-=t.avail_in,c-=t.avail_out,t.total_in+=h,t.total_out+=c,r.total+=c,r.wrap&&c&&(t.adler=r.check=r.flags?Ao(r.check,i,c,t.next_out-c):Co(r.check,i,c,t.next_out-c)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Oo?128:0)+(20===r.mode||15===r.mode?256:0),(0===h&&0===c||4===e)&&0===x&&(x=-5),x},mo.inflateEnd=function(t){if(!t||!t.state)return To;var e=t.state;return e.window&&(e.window=null),t.state=null,0},mo.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?To:(r.head=e,e.done=!1,0):To},mo.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?To:11===r.mode&&Co(1,e,n,0)!==r.check?-3:Ho(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):To},mo.inflateInfo="pako inflate (from Nodeca project)";var Wo={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 Zo=mo,qo=Pi,Yo=Qa,Go=Wo,Vo=Ca,Ko=oo,Xo=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},$o=Object.prototype.toString;function Jo(t){if(!(this instanceof Jo))return new Jo(t);this.options=qo.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 Ko,this.strm.avail_out=0;var r=Zo.inflateInit2(this.strm,e.windowBits);if(r!==Go.Z_OK)throw new Error(Vo[r]);if(this.header=new Xo,Zo.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Yo.string2buf(e.dictionary):"[object ArrayBuffer]"===$o.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Zo.inflateSetDictionary(this.strm,e.dictionary))!==Go.Z_OK))throw new Error(Vo[r])}function Qo(t,e){var r=new Jo(e);if(r.push(t,!0),r.err)throw r.msg||Vo[r.err];return r.result}Jo.prototype.push=function(t,e){var r,n,i,a,o,s=this.strm,u=this.options.chunkSize,l=this.options.dictionary,f=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?Go.Z_FINISH:Go.Z_NO_FLUSH,"string"==typeof t?s.input=Yo.binstring2buf(t):"[object ArrayBuffer]"===$o.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 qo.Buf8(u),s.next_out=0,s.avail_out=u),(r=Zo.inflate(s,Go.Z_NO_FLUSH))===Go.Z_NEED_DICT&&l&&(r=Zo.inflateSetDictionary(this.strm,l)),r===Go.Z_BUF_ERROR&&!0===f&&(r=Go.Z_OK,f=!1),r!==Go.Z_STREAM_END&&r!==Go.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==Go.Z_STREAM_END&&(0!==s.avail_in||n!==Go.Z_FINISH&&n!==Go.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Yo.utf8border(s.output,s.next_out),a=s.next_out-i,o=Yo.buf2string(s.output,i),s.next_out=a,s.avail_out=u-a,a&&qo.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(qo.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(f=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==Go.Z_STREAM_END);return r===Go.Z_STREAM_END&&(n=Go.Z_FINISH),n===Go.Z_FINISH?(r=Zo.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Go.Z_OK):n!==Go.Z_SYNC_FLUSH||(this.onEnd(Go.Z_OK),s.avail_out=0,!0)},Jo.prototype.onData=function(t){this.chunks.push(t)},Jo.prototype.onEnd=function(t){t===Go.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=qo.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},bo.Inflate=Jo,bo.inflate=Qo,bo.inflateRaw=function(t,e){return(e=e||{}).raw=!0,Qo(t,e)},bo.ungzip=Qo;var ts={};(0,Pi.assign)(ts,Bi,bo,Wo);var es="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,rs=ts,ns=Dn(),is=jn,as=es?"uint8array":"array";function os(t,e){is.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}Ii.magic="\b\0",ns.inherits(os,is),os.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(ns.transformTo(as,t.data),!1)},os.prototype.flush=function(){is.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},os.prototype.cleanUp=function(){is.prototype.cleanUp.call(this),this._pako=null},os.prototype._createPako=function(){this._pako=new rs[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Ii.compressWorker=function(t){return new os("Deflate",t)},Ii.uncompressWorker=function(){return new os("Inflate",{})};var ss=jn;Li.STORE={magic:"\0\0",compressWorker:function(){return new ss("STORE compression")},uncompressWorker:function(){return new ss("STORE decompression")}},Li.DEFLATE=Ii;var us={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"},ls=Dn(),fs=jn,hs=f,cs=si,ds=us,ps=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},gs=function(t,e,r,n,i,a){var o,s,u=t.file,l=t.compression,f=a!==hs.utf8encode,h=ls.transformTo("string",a(u.name)),c=ls.transformTo("string",hs.utf8encode(u.name)),d=u.comment,p=ls.transformTo("string",a(d)),g=ls.transformTo("string",hs.utf8encode(d)),b=c.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),f||!b&&!m||(S|=2048);var C,A,E,R=0,T=0;_&&(R|=16),"UNIX"===i?(T=798,R|=(C=u.unixPermissions,A=_,E=C,C||(E=A?16893:33204),(65535&E)<<16)):(T=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=ps(1,1)+ps(cs(h),4)+c,v+="up"+ps(y.length,2)+y),m&&(w=ps(1,1)+ps(cs(p),4)+g,v+="uc"+ps(w.length,2)+w);var O="";return O+="\n\0",O+=ps(S,2),O+=l.magic,O+=ps(o,2),O+=ps(s,2),O+=ps(x.crc32,4),O+=ps(x.compressedSize,4),O+=ps(x.uncompressedSize,4),O+=ps(h.length,2),O+=ps(v.length,2),{fileRecord:ds.LOCAL_FILE_HEADER+O+h+v,dirRecord:ds.CENTRAL_FILE_HEADER+ps(T,2)+O+ps(p.length,2)+"\0\0\0\0"+ps(R,4)+ps(n,4)+h+v+p}},bs=function(t){return ds.DATA_DESCRIPTOR+ps(t.crc32,4)+ps(t.compressedSize,4)+ps(t.uncompressedSize,4)};function ms(t,e,r,n){fs.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=[]}ls.inherits(ms,fs),ms.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,fs.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},ms.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=gs(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ms.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=gs(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:bs(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},ms.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,i){var a=ls.transformTo("string",i(n));return ds.CENTRAL_DIRECTORY_END+"\0\0\0\0"+ps(t,2)+ps(t,2)+ps(e,4)+ps(r,4)+ps(a.length,2)+a}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},ms.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ms.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},ms.prototype.resume=function(){return!!fs.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ms.prototype.error=function(t){var e=this._sources;if(!fs.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},ms.prototype.lock=function(){fs.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var vs=Li,ys=ms;Mi.generateWorker=function(t,e,r){var n=new ys(e.streamFiles,r,e.platform,e.encodeFileName),i=0;try{t.forEach((function(t,r){i++;var a=function(t,e){var r=t||e,n=vs[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(a,o).withStreamInfo("file",{name:t,dir:s,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(t){n.error(t)}return n};var ws=Dn(),_s=jn;function ks(t,e){_s.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}ws.inherits(ks,_s),ks.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()}))},ks.prototype.pause=function(){return!!_s.prototype.pause.call(this)&&(this._stream.pause(),!0)},ks.prototype.resume=function(){return!!_s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var xs=ks,Ss=f,Cs=Dn(),As=jn,Es=Qn,Rs=ti,Ts=wi,Os=Oi,Ms=Mi,Ls=Ln,Is=xs,Ps=function(t,e,r){var n,i=Cs.getTypeOf(e),a=Cs.extend(r||{},Rs);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=Ds(t)),a.createFolders&&(n=Bs(t))&&zs.call(this,n,!0);var o="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!o),(e instanceof Ts&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",i="string");var s=null;s=e instanceof Ts||e instanceof As?e:Ls.isNode&&Ls.isStream(e)?new Is(t,e):Cs.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var u=new Os(t,s,a);this.files[t]=u},Bs=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},Ds=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},zs=function(t,e){return e=void 0!==e?e:Rs.createFolders,t=Ds(t),this.files[t]||Ps.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function js(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var Ns={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(js(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,Ps.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(js(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=zs.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=Cs.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.");Cs.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=Ms.generateWorker(this,r,n)}catch(t){(e=new As("error")).error(t)}return new Es(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)}},Fs=Ns,Us=Dn();function Hs(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}Hs.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 Us.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 Ws=Hs,Zs=Ws;function qs(t){Zs.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}Dn().inherits(qs,Zs),qs.prototype.byteAt=function(t){return this.data[this.zero+t]},qs.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===e&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},qs.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},qs.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 Ys=qs,Gs=Ws;function Vs(t){Gs.call(this,t)}Dn().inherits(Vs,Gs),Vs.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},Vs.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},Vs.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},Vs.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 Ks=Vs,Xs=Ys;function $s(t){Xs.call(this,t)}Dn().inherits($s,Xs),$s.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 Js=$s,Qs=Js;function tu(t){Qs.call(this,t)}Dn().inherits(tu,Qs),tu.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 eu=tu,ru=Dn(),nu=dt,iu=Ys,au=Ks,ou=eu,su=Js,uu=function(t){var e=ru.getTypeOf(t);return ru.checkSupport(e),"string"!==e||nu.uint8array?"nodebuffer"===e?new ou(t):nu.uint8array?new su(ru.transformTo("uint8array",t)):new iu(ru.transformTo("array",t)):new au(t)},lu=uu,fu=Dn(),hu=wi,cu=si,du=f,pu=Li,gu=dt;function bu(t,e){this.options=t,this.loadOptions=e}bu.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 pu)if(Object.prototype.hasOwnProperty.call(pu,e)&&pu[e].magic===t)return pu[e];return null}(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+fu.pretty(this.compressionMethod)+" unknown (inner file : "+fu.transformTo("string",this.fileName)+")");this.decompressed=new hu(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=lu(this.extraFields[1].value);this.uncompressedSize===fu.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===fu.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===fu.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===fu.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(i)},handleUTF8:function(){var t=gu.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=du.utf8decode(this.fileName),this.fileCommentStr=du.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=fu.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=fu.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=lu(t.value);return 1!==e.readInt(1)||cu(this.fileName)!==e.readInt(4)?null:du.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=lu(t.value);return 1!==e.readInt(1)||cu(this.fileComment)!==e.readInt(4)?null:du.utf8decode(e.readData(t.length-5))}return null}};var mu=bu,vu=uu,yu=Dn(),wu=us,_u=mu,ku=dt;function xu(t){this.files=[],this.loadOptions=t}xu.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 ("+yu.pretty(e)+", expected "+yu.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=ku.uint8array?"uint8array":"array",r=yu.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(wu.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(wu.CENTRAL_FILE_HEADER);)(t=new _u({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(wu.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,wu.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(wu.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===yu.MAX_VALUE_16BITS||this.diskWithCentralDirStart===yu.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===yu.MAX_VALUE_16BITS||this.centralDirRecords===yu.MAX_VALUE_16BITS||this.centralDirSize===yu.MAX_VALUE_32BITS||this.centralDirOffset===yu.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(wu.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(wu.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,wu.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(wu.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(wu.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,wu.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=vu(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var Su=xu,Cu=Dn(),Au=Bn,Eu=f,Ru=Su,Tu=hi,Ou=Ln;function Mu(t){return new Au.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new Tu);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 Lu(){if(!(this instanceof Lu))return new Lu;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 Lu;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}Lu.prototype=Fs,Lu.prototype.loadAsync=function(t,e){var r=this;return e=Cu.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Eu.utf8decode}),Ou.isNode&&Ou.isStream(t)?Au.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Cu.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new Ru(e);return r.load(t),r})).then((function(t){var r=[Au.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(Mu(n[i]));return Au.Promise.all(r)})).then((function(t){for(var n=t.shift(),i=n.files,a=0;a<i.length;a++){var o=i[a],s=o.fileNameStr,u=Cu.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}))},Lu.support=dt,Lu.defaults=ti,Lu.version="3.10.1",Lu.loadAsync=function(t,e){return(new Lu).loadAsync(t,e)},Lu.external=Bn;var Iu=Lu;function Pu(t){return Pu="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},Pu(t)}function Bu(t,e){var r=(e=e||{}).pos||0,n=!!e.keepComments,i=!!e.keepWhitespace,a="<".charCodeAt(0),o=">".charCodeAt(0),s="-".charCodeAt(0),u="/".charCodeAt(0),l="!".charCodeAt(0),f="'".charCodeAt(0),h='"'.charCodeAt(0),c="[".charCodeAt(0),d="]".charCodeAt(0);function p(e){for(var f=[];t[r];)if(t.charCodeAt(r)==a){if(t.charCodeAt(r+1)===u){var h=r+2;if(r=t.indexOf(">",r),-1==t.substring(h,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),f}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&&f.push(t.substring(e,r+1))}else{if(t.charCodeAt(r+2)===c&&t.charCodeAt(r+8)===c&&"cdata"===t.substr(r+3,5).toLowerCase()){var b=t.indexOf("]]>",r);-1==b?(f.push(t.substr(r+9)),r=t.length):(f.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)===c?m=!0:!0===m&&t.charCodeAt(r)===d&&(m=!1),r++;f.push(t.substring(e,r))}}r++;continue}var y=v();f.push(y),"?"===y.tagName[0]&&(f.push(...y.children),y.children=[])}else{var w=g();if(i)w.length>0&&f.push(w);else{var _=w.trim();_.length>0&&f.push(_)}r++}return f}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 i=[];for(;t.charCodeAt(r)!==o&&t[r];){var a=t.charCodeAt(r);if(a>64&&a<91||a>96&&a<123){for(var s=b(),l=t.charCodeAt(r);l&&l!==f&&l!==h&&!(l>64&&l<91||l>96&&l<123)&&l!==o;)r++,l=t.charCodeAt(r);if(l===f||l===h){var c=y();if(-1===r)return{tagName:e,attributes:n,children:i}}else c=null,r--;n[s]=c}r++}if(t.charCodeAt(r-1)!==u)if("script"==e){var d=r+1;r=t.indexOf("<\/script>",r),i=[t.slice(d,r)],r+=9}else if("style"==e){d=r+1;r=t.indexOf("</style>",r),i=[t.slice(d,r)],r+=8}else-1===m.indexOf(e)?(r++,i=p(e)):r++;else r++;return{tagName:e,attributes:n,children:i}}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&&(_=zu(_,e.filter)),e.simplify?Du(Array.isArray(_)?_:[_]):(e.setPos&&(_.pos=r),_)}function Du(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=Du(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 zu(t,e,r=0,n=""){var i=[];return t.forEach((function(t,a){if("object"==typeof t&&e(t,a,r,n)&&i.push(t),t.children){var o=zu(t.children,e,r+1,(n?n+".":"")+a+"."+t.tagName);i=i.concat(o)}})),i}function ju(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 Nu(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 Nu(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Nu(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 Fu(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 Uu(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Fu(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Hu=0;function Wu(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:Uu({order:Hu++},e),value:t[0]}:t[0];var n,i=ju(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("object"!==Pu(a))return;if("?xml"!==a.tagName){r[a.tagName]||(r[a.tagName]=[]);var o=Wu(a.children||[],a.attributes);r[a.tagName].push(o),Object.keys(a.attributes).length&&(o.attrs=Uu({order:Hu++},a.attributes))}}}catch(t){i.e(t)}finally{i.f()}for(var s in r)1===r[s].length&&(r[s]=r[s][0]);return r}function Zu(t,e){return qu.apply(this,arguments)}function qu(){return(qu=n(l.mark((function t(e,r){var n;return l.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",Wu(Bu(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 Yu(t){return Yu="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},Yu(t)}var Gu=/^\s+/,Vu=/\s+$/;function Ku(t,e){if(e=e||{},(t=t||"")instanceof Ku)return t;if(!(this instanceof Ku))return new Ku(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Gu,"").replace(Vu,"").toLowerCase();var e,r=!1;if(cl[t])t=cl[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=Cl.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=Cl.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=Cl.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=Cl.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=Cl.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=Cl.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=Cl.hex8.exec(t))return{r:ml(e[1]),g:ml(e[2]),b:ml(e[3]),a:_l(e[4]),format:r?"name":"hex8"};if(e=Cl.hex6.exec(t))return{r:ml(e[1]),g:ml(e[2]),b:ml(e[3]),format:r?"name":"hex"};if(e=Cl.hex4.exec(t))return{r:ml(e[1]+""+e[1]),g:ml(e[2]+""+e[2]),b:ml(e[3]+""+e[3]),a:_l(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=Cl.hex3.exec(t))return{r:ml(e[1]+""+e[1]),g:ml(e[2]+""+e[2]),b:ml(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==Yu(t)&&(Al(t.r)&&Al(t.g)&&Al(t.b)?(u=t.r,l=t.g,f=t.b,e={r:255*gl(u,255),g:255*gl(l,255),b:255*gl(f,255)},o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):Al(t.h)&&Al(t.s)&&Al(t.v)?(n=yl(t.s),i=yl(t.v),e=function(t,e,r){t=6*gl(t,360),e=gl(e,100),r=gl(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,s,r][u],g:255*[s,r,r,o,a,a][u],b:255*[a,a,s,r,r,o][u]}}(t.h,n,i),o=!0,s="hsv"):Al(t.h)&&Al(t.s)&&Al(t.l)&&(n=yl(t.s),a=yl(t.l),e=function(t,e,r){var n,i,a;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=gl(t,360),e=gl(e,100),r=gl(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(t.h,n,a),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));var u,l,f;return r=pl(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 Xu(t,e,r){t=gl(t,255),e=gl(e,255),r=gl(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){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:i,l:s}}function $u(t,e,r){t=gl(t,255),e=gl(e,255),r=gl(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){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:i,v:s}}function Ju(t,e,r,n){var i=[vl(Math.round(t).toString(16)),vl(Math.round(e).toString(16)),vl(Math.round(r).toString(16))];return n&&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[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Qu(t,e,r,n){return[vl(wl(n)),vl(Math.round(t).toString(16)),vl(Math.round(e).toString(16)),vl(Math.round(r).toString(16))].join("")}function tl(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.s-=e/100,r.s=bl(r.s),Ku(r)}function el(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.s+=e/100,r.s=bl(r.s),Ku(r)}function rl(t){return Ku(t).desaturate(100)}function nl(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.l+=e/100,r.l=bl(r.l),Ku(r)}function il(t,e){e=0===e?0:e||10;var r=Ku(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))),Ku(r)}function al(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.l-=e/100,r.l=bl(r.l),Ku(r)}function ol(t,e){var r=Ku(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Ku(r)}function sl(t){var e=Ku(t).toHsl();return e.h=(e.h+180)%360,Ku(e)}function ul(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Ku(t).toHsl(),n=[Ku(t)],i=360/e,a=1;a<e;a++)n.push(Ku({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function ll(t){var e=Ku(t).toHsl(),r=e.h;return[Ku(t),Ku({h:(r+72)%360,s:e.s,l:e.l}),Ku({h:(r+216)%360,s:e.s,l:e.l})]}function fl(t,e,r){e=e||6,r=r||30;var n=Ku(t).toHsl(),i=360/r,a=[Ku(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(Ku(n));return a}function hl(t,e){e=e||6;for(var r=Ku(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(Ku({h:n,s:i,v:a})),a=(a+s)%1;return o}Ku.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=pl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=$u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=$u(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=Xu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Xu(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 Ju(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[vl(Math.round(t).toString(16)),vl(Math.round(e).toString(16)),vl(Math.round(r).toString(16)),vl(wl(n))];if(i&&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[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.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*gl(this._r,255))+"%",g:Math.round(100*gl(this._g,255))+"%",b:Math.round(100*gl(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*gl(this._r,255))+"%, "+Math.round(100*gl(this._g,255))+"%, "+Math.round(100*gl(this._b,255))+"%)":"rgba("+Math.round(100*gl(this._r,255))+"%, "+Math.round(100*gl(this._g,255))+"%, "+Math.round(100*gl(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(dl[Ju(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Qu(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=Ku(t);r="#"+Qu(i._r,i._g,i._b,i._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 Ku(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(nl,arguments)},brighten:function(){return this._applyModification(il,arguments)},darken:function(){return this._applyModification(al,arguments)},desaturate:function(){return this._applyModification(tl,arguments)},saturate:function(){return this._applyModification(el,arguments)},greyscale:function(){return this._applyModification(rl,arguments)},spin:function(){return this._applyModification(ol,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(fl,arguments)},complement:function(){return this._applyCombination(sl,arguments)},monochromatic:function(){return this._applyCombination(hl,arguments)},splitcomplement:function(){return this._applyCombination(ll,arguments)},triad:function(){return this._applyCombination(ul,[3])},tetrad:function(){return this._applyCombination(ul,[4])}},Ku.fromRatio=function(t,e){if("object"==Yu(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:yl(t[n]));t=r}return Ku(t,e)},Ku.equals=function(t,e){return!(!t||!e)&&Ku(t).toRgbString()==Ku(e).toRgbString()},Ku.random=function(){return Ku.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Ku.mix=function(t,e,r){r=0===r?0:r||50;var n=Ku(t).toRgb(),i=Ku(e).toRgb(),a=r/100;return Ku({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},Ku.readability=function(t,e){var r=Ku(t),n=Ku(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Ku.isReadable=function(t,e,r){var n,i,a=Ku.readability(t,e);switch(i=!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":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},Ku.mostReadable=function(t,e,r){var n,i,a,o,s=null,u=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=Ku.readability(t,e[l]))>u&&(u=n,s=Ku(e[l]));return Ku.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,Ku.mostReadable(t,["#fff","#000"],r))};var cl=Ku.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"},dl=Ku.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(cl);function pl(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function gl(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 bl(t){return Math.min(1,Math.max(0,t))}function ml(t){return parseInt(t,16)}function vl(t){return 1==t.length?"0"+t:""+t}function yl(t){return t<=1&&(t=100*t+"%"),t}function wl(t){return Math.round(255*parseFloat(t)).toString(16)}function _l(t){return ml(t)/255}var kl,xl,Sl,Cl=(xl="[\\s|\\(]+("+(kl="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+kl+")[,|\\s]+("+kl+")\\s*\\)?",Sl="[\\s|\\(]+("+kl+")[,|\\s]+("+kl+")[,|\\s]+("+kl+")[,|\\s]+("+kl+")\\s*\\)?",{CSS_UNIT:new RegExp(kl),rgb:new RegExp("rgb"+xl),rgba:new RegExp("rgba"+Sl),hsl:new RegExp("hsl"+xl),hsla:new RegExp("hsla"+Sl),hsv:new RegExp("hsv"+xl),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 Al(t){return!!Cl.CSS_UNIT.exec(t)}function El(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 Rl(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 Rl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Rl(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 Tl(t){for(var e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),i=n.byteLength,a=i%3,o=i-a,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===a?s+=r[(252&(e=n[o]))>>2]+r[(3&e)<<4]+"==":2===a&&(s+=r[(64512&(e=n[o]<<8|n[o+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),s}function Ol(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function Ml(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 Ll(t,e){if(e.constructor!==Array)throw Error("Error of path type! path is not array.");if(!t)return t;var r,n=El(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 Il(t){return t?Math.round(t/6e4):0}function Pl(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,(function(t){return e[t]}))}function Bl(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 Dl(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 zl(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function jl(t,e,r,n){var i,a;if(r)a=r;else{var o=Ll(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=o||((o=Ll(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||Ll(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"]))}var s=t.substr(2);if("phClr"===s&&n)i=n;else{if(a)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+a[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=Ll(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(i=Ll(u,["a:srgbClr","attrs","val"]))&&u&&(i=Ll(u,["a:sysClr","attrs","lastClr"]))}return i}function Nl(t,e,r){var n=t["p:spPr"]["a:ln"],i=parseInt(Ll(n,["attrs","w"]))/12700;isNaN(i)&&(i=n||"obj"!==e?0:1);var a=Ll(n,["a:solidFill","a:srgbClr","attrs","val"]);if(!a){var o=Ll(n,["a:solidFill","a:schemeClr"]);a=jl("a:"+Ll(o,["attrs","val"]),r)}if(!a){var s=Ll(t,["p:style","a:lnRef","a:schemeClr"]);if(a=jl("a:"+Ll(s,["attrs","val"]),r)){var u=Ll(s,["a:shade","attrs","val"]);if(u){u=parseInt(u)/1e5;var l=Ku("#"+a).toHsl();a=Ku({h:l.h,s:l.s,l:l.l*u,a:l.a}).toHex()}}}a=a?"#".concat(a):"#000";var f="solid",h="0";switch(Ll(n,["a:prstDash","attrs","val"])){case"solid":f="solid",h="0";break;case"dash":f="dashed",h="5";break;case"dashDot":f="dashed",h="5, 5, 1, 5";break;case"dot":f="dotted",h="1, 5";break;case"lgDash":f="dashed",h="10, 5";break;case"lgDashDotDot":f="dotted",h="10, 5, 1, 5, 1, 5";break;case"sysDash":f="dashed",h="5, 2";break;case"sysDashDot":f="dotted",h="5, 2, 1, 5";break;case"sysDashDotDot":f="dotted",h="5, 2, 1, 5, 1, 5";break;case"sysDot":f="dotted",h="2, 5"}return{borderColor:a,borderWidth:i,borderType:f,strokeDasharray:h}}function Fl(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 Ul(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 Hl(t,e,r){return Wl.apply(this,arguments)}function Wl(){return Wl=n(l.mark((function t(e,r,n){var i,a,o,s,u,f;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r["a:blip"].attrs["r:embed"],"slideBg"===e||"slide"===e?o=Ll(n,["slideResObj",a,"target"]):"slideLayoutBg"===e?o=Ll(n,["layoutResObj",a,"target"]):"slideMasterBg"===e?o=Ll(n,["masterResObj",a,"target"]):"themeBg"===e?o=Ll(n,["themeResObj",a,"target"]):"diagramBg"===e&&(o=Ll(n,["diagramResObj",a,"target"])),o){t.next=4;break}return t.abrupt("return",o);case 4:if(i=Ll(n,["loaded-images",o])){t.next=15;break}if(o=Pl(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:u=t.sent,f=Bl(s),i="data:".concat(f,";base64,").concat(Tl(u));case 15:return t.abrupt("return",i);case 16:case"end":return t.stop()}}),t)}))),Wl.apply(this,arguments)}function Zl(t,e,r){return ql.apply(this,arguments)}function ql(){return(ql=n(l.mark((function t(e,r,n){var i,a,o,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hl(r,e["a:blipFill"],n);case 2:return i=t.sent,a=e["a:blipFill"]["a:blip"],o=Ll(a,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&""!==o.amt&&(s=parseInt(o.amt)/1e5),t.abrupt("return",{picBase64:i,opacity:s});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yl(t,e,r,n){if(t){for(var i=t["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[],s=0;s<a.length;s++){var u=Xl(a[s],r["p:sldMaster"]["p:clrMap"].attrs,e,n),l=Ll(a[s],["attrs","pos"]);o[s]={pos:l?l/1e3+"%":"",color:u}}var f=i["a:lin"],h=90;return f&&(h=Il(f.attrs.ang),h+=90),{rot:h,colors:o.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}return e?-1===e.indexOf("#")?"#".concat(e):e:null}function Gl(t){return Vl.apply(this,arguments)}function Vl(){return Vl=n(l.mark((function t(e){var r,n,i,a,o,s,u,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,T,O,M,L,I,P,B,D,z,j,N,F,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st,ut,lt;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.slideContent,n=e.slideLayoutContent,i=e.slideMasterContent,a=Ll(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=Ll(r,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",u="color",!a){t.next=29;break}if("SOLID_FILL"!==(f=Ul(a))){t.next=17;break}h=a["a:solidFill"],(d=Ll(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?c=d:(p=Ll(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=p||Ll(i,["p:sldMaster","p:clrMap","attrs"])),g=Xl(h,c,void 0,e),s=g,t.next=27;break;case 17:if("GRADIENT_FILL"!==f){t.next=22;break}"string"==typeof(b=Yl(a,void 0,i,e))?s=b:b&&(s=b,u="gradient"),t.next=27;break;case 22:if("PIC_FILL"!==f){t.next=27;break}return t.next=25,Zl(a,"slideBg",e);case 25:s=t.sent,u="image";case 27:t.next=142;break;case 29:if(!o){t.next=37;break}(v=Ll(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?m=v:(y=Ll(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),m=y||Ll(i,["p:sldMaster","p:clrMap","attrs"])),w=Xl(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 i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),S.push(i)}})),(C=S.slice(0)).sort((function(t,e){return t.idex-e.idex})),A=C[k-1],"SOLID_FILL"===(E=Ul(A))?(R=A["a:solidFill"],T=Xl(R,m,void 0,e),s=T):"GRADIENT_FILL"===E&&("string"==typeof(O=Yl(A,w,i,e))?s=O:O&&(s=O,u="gradient"))),t.next=142;break;case 37:if(a=Ll(n,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=Ll(n,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),L=Ll(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),M=L||Ll(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=61;break}if("SOLID_FILL"!==(I=Ul(a))){t.next=49;break}P=a["a:solidFill"],B=Xl(P,M,void 0,e),s=B,t.next=59;break;case 49:if("GRADIENT_FILL"!==I){t.next=54;break}"string"==typeof(D=Yl(a,void 0,i,e))?s=D:D&&(s=D,u="gradient"),t.next=59;break;case 54:if("PIC_FILL"!==I){t.next=59;break}return t.next=57,Zl(a,"slideLayoutBg",e);case 57:s=t.sent,u="image";case 59:t.next=142;break;case 61:if(!o){t.next=91;break}if(z=Xl(o,M,void 0,e),!((j=Number(o.attrs.idx))>1e3)){t.next=89;break}if(N=j-1e3,F=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],U=[],Object.keys(F).forEach((function(t){var e=F[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 i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),U.push(i)}})),(H=U.slice(0)).sort((function(t,e){return t.idex-e.idex})),W=H[N-1],"SOLID_FILL"!==(Z=Ul(W))){t.next=79;break}q=W["a:solidFill"],Y=Xl(q,M,void 0,e),s=Y,t.next=89;break;case 79:if("GRADIENT_FILL"!==Z){t.next=84;break}"string"==typeof(G=Yl(W,z,i,e))?s=G:G&&(s=G,u="gradient"),t.next=89;break;case 84:if("PIC_FILL"!==Z){t.next=89;break}return t.next=87,Zl(W,"themeBg",e);case 87:s=t.sent,u="image";case 89:t.next=142;break;case 91:if(a=Ll(i,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=Ll(i,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),V=Ll(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=114;break}if("SOLID_FILL"!==(K=Ul(a))){t.next=102;break}X=a["a:solidFill"],$=Xl(X,V,void 0,e),s=$,t.next=112;break;case 102:if("GRADIENT_FILL"!==K){t.next=107;break}"string"==typeof(J=Yl(a,void 0,i,e))?s=J:J&&(s=J,u="gradient"),t.next=112;break;case 107:if("PIC_FILL"!==K){t.next=112;break}return t.next=110,Zl(a,"slideMasterBg",e);case 110:s=t.sent,u="image";case 112:t.next=142;break;case 114:if(!o){t.next=142;break}if(Q=Xl(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 i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),nt.push(i)}})),(it=nt.slice(0)).sort((function(t,e){return t.idex-e.idex})),at=it[et-1],"SOLID_FILL"!==(ot=Ul(at))){t.next=132;break}st=at["a:solidFill"],ut=Xl(st,M,void 0,e),s=ut,t.next=142;break;case 132:if("GRADIENT_FILL"!==ot){t.next=137;break}"string"==typeof(lt=Yl(at,Q,i,e))?s=lt:lt&&(s=lt,u="gradient"),t.next=142;break;case 137:if("PIC_FILL"!==ot){t.next=142;break}return t.next=140,Zl(at,"themeBg",e);case 140:s=t.sent,u="image";case 142:return t.abrupt("return",{type:u,value:s});case 143:case"end":return t.stop()}}),t)}))),Vl.apply(this,arguments)}function Kl(t,e,r){if(Ll(t,["p:spPr","a:noFill"]))return e?"none":"";var n;(n||(n=Ll(t,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),n)||(n=jl("a:"+Ll(t,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),r));n||(n=jl("a:"+Ll(t,["p:style","a:fillRef","a:schemeClr","attrs","val"]),r));if(n){n="#".concat(n);var i=parseInt(Ll(t,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]))/1e5,a=parseInt(Ll(t,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(i)&&(i=1),isNaN(a)&&(a=0);var o=Ku(n).toHsl(),s=o.l*i+a;return Ku({h:o.h,s:o.s,l:s,a:o.a}).toHexString()}return e?"none":n}function Xl(t,e,r,n){if(!t)return t;var i,a,o,s="#ffffff";if(t["a:srgbClr"])s=Ll(i=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"]){s=jl("a:"+Ll(i=t["a:schemeClr"],["attrs","val"]),n,e,r)||"#ffffff"}else if(t["a:scrgbClr"]){var u=(i=t["a:scrgbClr"]).attrs,l=-1!==u.r.indexOf("%")?u.r.split("%").shift():u.r,f=-1!==u.g.indexOf("%")?u.g.split("%").shift():u.g,h=-1!==u.b.indexOf("%")?u.b.split("%").shift():u.b;s=zl(Number(l)/100*255)+zl(Number(f)/100*255)+zl(Number(h)/100*255)}else if(t["a:prstClr"]){var c=Ll(i=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(c))&&(a=["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=a}else if(t["a:hslClr"]){var d=(i=t["a:hslClr"]).attrs,p=function(t,e,r){var n,i=2*r-(n=r<=.5?r*(e+1):r+e-r*e);return{r:255*Fl(i,n,2+(t/=60)),g:255*Fl(i,n,t),b:255*Fl(i,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=zl(p.r)+zl(p.g)+zl(p.b)}else if(t["a:sysClr"]){var g=Ll(i=t["a:sysClr"],["attrs","lastClr"]);g&&(s=g)}var b=!1,m=parseInt(Ll(i,["a:alpha","attrs","val"]))/1e5;if(!isNaN(m)){var v=Ku(s);v.setAlpha(m),s=v.toHex8(),b=!0}var y=parseInt(Ll(i,["a:hueMod","attrs","val"]))/1e5;isNaN(y)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=n.h*e;return i>=360&&(i-=360),r?Ku({h:i,s:n.s,l:n.l,a:n.a}).toHex8():Ku({h:i,s:n.s,l:n.l,a:n.a}).toHex()}(s,y,b));var w=parseInt(Ll(i,["a:lumMod","attrs","val"]))/1e5;isNaN(w)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=n.l*e;return i>=1&&(i=1),r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,w,b));var _=parseInt(Ll(i,["a:lumOff","attrs","val"]))/1e5;isNaN(_)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=e+n.l;return i>=1?r?Ku({h:n.h,s:n.s,l:1,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:1,a:n.a}).toHex():r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,_,b));var k=parseInt(Ll(i,["a:satMod","attrs","val"]))/1e5;isNaN(k)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=n.s*e;return i>=1&&(i=1),r?Ku({h:n.h,s:i,l:n.l,a:n.a}).toHex8():Ku({h:n.h,s:i,l:n.l,a:n.a}).toHex()}(s,k,b));var x=parseInt(Ll(i,["a:shade","attrs","val"]))/1e5;isNaN(x)||(s=function(t,e,r){var n=Ku(t).toHsl();e>=1&&(e=1);var i=Math.min(n.l*e,1);return r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,x,b));var S=parseInt(Ll(i,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(s=function(t,e,r){var n=Ku(t).toHsl();e>=1&&(e=1);var i=n.l*e+(1-e);return r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,S,b)),s&&-1===s.indexOf("#")&&(s="#"+s),s}function $l(t){var e=[];if(!t)return e;if(t["c:xVal"]){var r=[];Ml(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r),r=[],Ml(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r)}else Ml(t,(function(t,r){var n=[],i=Ll(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return Ll(t,["c:cat","c:strRef","c:strCache","c:pt"])?Ml(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})):Ll(t,["c:cat","c:numRef","c:numCache","c:pt"])&&Ml(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})),Ll(t,["c:val","c:numRef","c:numCache","c:pt"])&&Ml(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:i,values:n,xlabels:a}),""}));return e}function Jl(t){var e=null;for(var r in t)switch(r){case"c:lineChart":e={type:"lineChart",data:$l(t[r]["c:ser"]),grouping:Ll(t[r],["c:grouping","attrs","val"]),marker:!!t[r]["c:marker"]};break;case"c:line3DChart":e={type:"line3DChart",data:$l(t[r]["c:ser"]),grouping:Ll(t[r],["c:grouping","attrs","val"])};break;case"c:barChart":e={type:"barChart",data:$l(t[r]["c:ser"]),grouping:Ll(t[r],["c:grouping","attrs","val"]),barDir:Ll(t[r],["c:barDir","attrs","val"])};break;case"c:bar3DChart":e={type:"bar3DChart",data:$l(t[r]["c:ser"]),grouping:Ll(t[r],["c:grouping","attrs","val"]),barDir:Ll(t[r],["c:barDir","attrs","val"])};break;case"c:pieChart":e={type:"pieChart",data:$l(t[r]["c:ser"])};break;case"c:pie3DChart":e={type:"pie3DChart",data:$l(t[r]["c:ser"])};break;case"c:doughnutChart":e={type:"doughnutChart",data:$l(t[r]["c:ser"]),holeSize:Ll(t[r],["c:holeSize","attrs","val"])};break;case"c:areaChart":e={type:"areaChart",data:$l(t[r]["c:ser"]),grouping:Ll(t[r],["c:grouping","attrs","val"])};break;case"c:area3DChart":e={type:"area3DChart",data:$l(t[r]["c:ser"]),grouping:Ll(t[r],["c:grouping","attrs","val"])};break;case"c:scatterChart":e={type:"scatterChart",data:$l(t[r]["c:ser"]),style:Ll(t[r],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":e={type:"bubbleChart",data:$l(t[r]["c:ser"])};break;case"c:radarChart":e={type:"radarChart",data:$l(t[r]["c:ser"]),style:Ll(t[r],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":e={type:"surfaceChart",data:$l(t[r]["c:ser"])};break;case"c:surface3DChart":e={type:"surface3DChart",data:$l(t[r]["c:ser"])};break;case"c:stockChart":e={type:"stockChart",data:$l(t[r]["c:ser"])}}return e}function Ql(t,e,r,n){var i=Ll(t,["a:pPr","attrs","algn"]);if(i||(i=Ll(e,["a:pPr","attrs","algn"])),!i)if("title"===r||"ctrTitle"===r||"subTitle"===r){var a=1,o=Ll(e,["a:pPr","attrs","lvl"]);o&&(a=parseInt(o)+1);var s="a:lvl"+a+"pPr";(i=Ll(n,["slideLayoutTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(i=Ll(n,["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"])),i||(i=Ll(n,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),i||"subTitle"!==r||(i=Ll(n,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else i=Ll(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(i)switch(i){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}var tf=72/914400;function ef(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)*tf,left:parseInt(n.x)*tf}:{top:0,left:0}}function rf(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)*tf,height:parseInt(n.cy)*tf}:{width:0,height:0}}function nf(t,e){var r=Xl(t,void 0,void 0,e),n=t.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=parseInt(n.dist)*tf,o=n.blurRad?parseInt(n.blurRad)*tf:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function af(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 of(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 of(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function of(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 sf(t,e,r,n,i){if(!t)return"";var a,o="",s=t["a:p"],u="",l=af(s.constructor===Array?s:[s]);try{for(l.s();!(a=l.n()).done;){var f=a.value,h=f["a:r"],c=f["a:fld"],d=f["a:br"];h&&(h=h.constructor===Array?h:[h],c&&(c=c.constructor===Array?c:[c],h=h.concat(c)),d&&((d=d.constructor===Array?d:[d]).forEach((function(t){return t.type="br"})),d.length>1&&d.shift(),(h=h.concat(d)).sort((function(t,e){return!t.attrs||!e.attrs||t.attrs.order-e.attrs.order}))));var p=Ql(f,e,n,i),g=uf(f);if(g?(u?u&&u!==g&&(o+="</".concat(u,">"),o+="<".concat(g,">"),u=g):(o+="<".concat(g,">"),u=g),o+='<li style="text-align: '.concat(p,';">')):(u&&(o+="</".concat(u,">"),u=""),o+='<p style="text-align: '.concat(p,';">')),h){var b,m=af(h);try{for(m.s();!(b=m.n()).done;){o+=lf(b.value,r,n,i)}}catch(t){m.e(t)}finally{m.f()}}else o+=lf(f,r,n,i);o+=g?"</li>":"</p>"}}catch(t){l.e(t)}finally{l.f()}return o}function uf(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function lf(t,e,r,n){var i=n.slideMasterTextStyles,a=t["a:t"];"string"!=typeof a&&(a=Ll(t,["a:fld","a:t"])),"string"!=typeof a&&(a=" ");var o="",s=function(t){var e=Ll(t,["a:rPr","a:solidFill","a:srgbClr","attrs","val"]);return e?"#".concat(e):""}(t),u=function(t,e,r,n){var i,a;if(Ll(t,["a:rPr","attrs","sz"])&&(i=Ll(t,["a:rPr","attrs","sz"])/100),isNaN(i)||!i){var o=Ll(e,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);i=parseInt(o)/100}return!isNaN(i)&&i||("title"===r||"subTitle"===r||"ctrTitle"===r?a=Ll(n,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"body"===r?a=Ll(n,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"dt"===r||"sldNum"===r?a="1200":r||(a=Ll(n,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),a&&(i=parseInt(a)/100)),Ll(t,["a:rPr","attrs","baseline"])&&!isNaN(i)&&(i-=10),(i=isNaN(i)||!i?18:i)+"pt"}(t,e,r,i),l=function(t,e,r){var n=Ll(t,["a:rPr","a:latin","attrs","typeface"]);if(!n){var i=Ll(r.themeContent,["a:theme","a:themeElements","a:fontScheme"]);n=Ll(i,"title"===e||"subTitle"===e||"ctrTitle"===e?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return n||""}(t,r,n),f=function(t){return"1"===Ll(t,["a:rPr","attrs","b"])?"bold":""}(t),h=function(t){return"1"===Ll(t,["a:rPr","attrs","i"])?"italic":""}(t),c=function(t){return"sng"===Ll(t,["a:rPr","attrs","u"])?"underline":""}(t),d=function(t){return"sngStrike"===Ll(t,["a:rPr","attrs","strike"])?"line-through":""}(t),p=function(t){var e=Ll(t,["a:rPr","attrs","spc"]);return e?parseInt(e)/100+"pt":""}(t),g=function(t,e){var r=Ll(t,["a:rPr","a:effectLst","a:outerShdw"]);if(r){var n=nf(r,e);if(n){var i=n.h,a=n.v,o=n.blur,s=n.color;if(!isNaN(a)&&!isNaN(i))return i+"pt "+a+"pt "+(o?o+"pt":"")+" "+s}}return""}(t,n),b=function(t){var e=Ll(t,["a:rPr","attrs","baseline"]);return e?parseInt(e)>0?"super":"sub":""}(t);s&&(o+="color: ".concat(s,";")),u&&(o+="font-size: ".concat(u,";")),l&&(o+="font-family: ".concat(l,";")),f&&(o+="font-weight: ".concat(f,";")),h&&(o+="font-style: ".concat(h,";")),c&&(o+="text-decoration: ".concat(c,";")),d&&(o+="text-decoration-line: ".concat(d,";")),p&&(o+="letter-spacing: ".concat(p,";")),b&&(o+="vertical-align: ".concat(b,";")),g&&(o+="text-shadow: ".concat(g,";"));var m=Ll(t,["a:rPr","a:hlinkClick","attrs","r:id"]);if(m){var v=n.slideResObj[m].target;return'<span style="'.concat(o,'"><a href="').concat(v,'" target="_blank">').concat(a.replace(/\t/g," ").replace(/\s/g," "),"</a></span>")}return'<span style="'.concat(o,'">').concat(a.replace(/\t/g," ").replace(/\s/g," "),"</span>")}function ff(t,e,r,n,i,a,o){var s,u=i;if(a>=i)for(;u<=a;){var l=u*(Math.PI/180),f=t+Math.cos(l)*r,h=e+Math.sin(l)*n;u===i&&(s=" M"+f+" "+h),s+=" L"+f+" "+h,u++}else for(;u>a;){var c=u*(Math.PI/180),d=t+Math.cos(c)*r,p=e+Math.sin(c)*n;u===i&&(s=" M "+d+" "+p),s+=" L "+d+" "+p,u--}return s+=o?" z":""}function hf(t,e,r,n){var i,a,o,s,u,l=Ll(t,["attrs","rowSpan"]),f=Ll(t,["attrs","gridSpan"]),h=Ll(t,["attrs","vMerge"]),c=Ll(t,["attrs","hMerge"]),d=Ll(t,["a:tcPr"]);d&&(i=Kl({"p:spPr":d},void 0,n));i||(r&&(s=Ll(e,[r,"a:tcStyle","a:fill","a:solidFill"])),s&&(i=Xl(s,void 0,void 0,n)));return r&&(u=Ll(e,[r,"a:tcTxStyle"])),u&&(a=Xl(u,void 0,void 0,n),"on"===Ll(u,["attrs","b"])&&(o=!0)),{fillColor:i,fontColor:a,fontBold:o,rowSpan:l?+l:void 0,colSpan:f?+f:void 0,vMerge:h?+h:void 0,hMerge:c?+c:void 0}}function cf(t,e,r,n,i){var a,o,s;if(n&&n["a:wholeTbl"]){var u=Ll(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(u){var l=Xl(u,void 0,void 0,i);l&&(a=l)}var f=Ll(n,["a:wholeTbl","a:tcTxStyle"]);if(f){var h=Xl(f,void 0,void 0,i);h&&(o=h),"on"===Ll(f,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){var c=Ll(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(c){var d=Xl(c,void 0,void 0,i);d&&(a=d)}var p=Ll(n,["a:firstRow","a:tcTxStyle"]);if(p){var g=Xl(p,void 0,void 0,i);g&&(o=g),"on"===Ll(p,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(a="",e%2==0&&n["a:band2H"]){var b=Ll(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(b){var m=Xl(b,void 0,void 0,i);m&&(a=m)}var v=Ll(n,["a:band2H","a:tcTxStyle"]);if(v){var y=Xl(v,void 0,void 0,i);y&&(o=y)}"on"===Ll(v,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){var w=Ll(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=Xl(w,void 0,void 0,i);_&&(a=_)}var k=Ll(n,["a:band1H","a:tcTxStyle"]);if(k){var x=Xl(k,void 0,void 0,i);x&&(o=x),"on"===Ll(k,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){var S=Ll(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(S){var C=Xl(S,void 0,void 0,i);C&&(a=C)}var A=Ll(n,["a:lastRow","a:tcTxStyle"]);if(A){var E=Xl(A,void 0,void 0,i);E&&(o=E),"on"===Ll(A,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}function df(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 pf(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?df(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gf(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 bf(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 bf(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function bf(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 mf(){return(mf=n(l.mark((function t(e){var r,n,i,a,o,s,u,f,h,c,d,p;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,Iu.loadAsync(e);case 3:return n=t.sent,t.next=6,vf(n);case 6:return i=t.sent,t.next=9,wf(n);case 9:return a=t.sent,o=a.width,s=a.height,u=a.defaultTextStyle,t.next=15,kf(n);case 15:f=t.sent,h=gf(i.slides),t.prev=17,h.s();case 19:if((c=h.n()).done){t.next=27;break}return d=c.value,t.next=23,Sf(n,d,f,u);case 23:p=t.sent,r.push(p);case 25:t.next=19;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(17),h.e(t.t0);case 32:return t.prev=32,h.f(),t.finish(32);case 35:return t.abrupt("return",{slides:r,size:{width:o,height:s}});case 36:case"end":return t.stop()}}),t,null,[[17,29,32,35]])})))).apply(this,arguments)}function vf(t){return yf.apply(this,arguments)}function yf(){return(yf=n(l.mark((function t(e){var r,n,i,a,o,s,u,f;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zu(e,"[Content_Types].xml");case 2:r=t.sent,n=r.Types.Override,i=[],a=[],o=gf(n),t.prev=7,o.s();case 9:if((s=o.n()).done){t.next=20;break}u=s.value,t.t0=u.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 i.push(u.attrs.PartName.substr(1)),t.abrupt("break",18);case 16:return a.push(u.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 f=function(t,e){return+/(\d+)\.xml/.exec(t)[1]-+/(\d+)\.xml/.exec(e)[1]},i=i.sort(f),a=a.sort(f),t.abrupt("return",{slides:i,slideLayouts:a});case 32:case"end":return t.stop()}}),t,null,[[7,22,25,28]])})))).apply(this,arguments)}function wf(t){return _f.apply(this,arguments)}function _f(){return(_f=n(l.mark((function t(e){var r,n,i;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zu(e,"ppt/presentation.xml");case 2:return r=t.sent,n=r["p:presentation"]["p:sldSz"].attrs,i=r["p:presentation"]["p:defaultTextStyle"],t.abrupt("return",{width:parseInt(n.cx)*tf,height:parseInt(n.cy)*tf,defaultTextStyle:i});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function kf(t){return xf.apply(this,arguments)}function xf(){return(xf=n(l.mark((function t(e){var r,n,i,a,o,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zu(e,"ppt/_rels/presentation.xml.rels");case 2:if(r=t.sent,(n=r.Relationships.Relationship).constructor!==Array){t.next=25;break}a=gf(n),t.prev=6,a.s();case 8:if((o=a.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 i=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),a.e(t.t0);case 20:return t.prev=20,a.f(),t.finish(20);case 23:t.next=26;break;case 25:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(i=n.attrs.Target);case 26:if(i){t.next=28;break}throw Error("Can't open theme file.");case 28:return t.next=30,Zu(e,"ppt/"+i);case 30:return t.abrupt("return",t.sent);case 31:case"end":return t.stop()}}),t,null,[[6,17,20,23]])})))).apply(this,arguments)}function Sf(t,e,r,n){return Cf.apply(this,arguments)}function Cf(){return Cf=n(l.mark((function t(e,r,n,i){var a,o,s,u,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,T,O,M,L,I,P,B,D,z,j,N,F,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r.replace("slides/slide","slides/_rels/slide")+".rels",t.next=3,Zu(e,a);case 3:if(o=t.sent,s=o.Relationships.Relationship,u="",f="",h={},s.constructor!==Array){t.next=35;break}c=gf(s),t.prev=10,c.s();case 12:if((d=c.n()).done){t.next=25;break}p=d.value,t.t0=p.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"===t.t0?17:"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"===t.t0?19:("http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"===t.t0||t.t0,22);break;case 17:return u=p.attrs.Target.replace("../","ppt/"),t.abrupt("break",23);case 19:return f=p.attrs.Target.replace("../","ppt/"),h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")},t.abrupt("break",23);case 22:h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")};case 23:t.next=12;break;case 25:t.next=30;break;case 27:t.prev=27,t.t1=t.catch(10),c.e(t.t1);case 30:return t.prev=30,c.f(),t.finish(30);case 33:t.next=36;break;case 35:u=s.attrs.Target.replace("../","ppt/");case 36:return t.next=38,Zu(e,u);case 38:return g=t.sent,t.next=41,Af(g);case 41:return b=t.sent,m=u.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",t.next=45,Zu(e,m);case 45:if(v=t.sent,s=v.Relationships.Relationship,y="",w={},s.constructor!==Array){t.next=73;break}_=gf(s),t.prev=51,_.s();case 53:if((k=_.n()).done){t.next=63;break}x=k.value,t.t2=x.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"===t.t2?58:60;break;case 58:return y=x.attrs.Target.replace("../","ppt/"),t.abrupt("break",61);case 60:w[x.attrs.Id]={type:x.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:x.attrs.Target.replace("../","ppt/")};case 61:t.next=53;break;case 63:t.next=68;break;case 65:t.prev=65,t.t3=t.catch(51),_.e(t.t3);case 68:return t.prev=68,_.f(),t.finish(68);case 71:t.next=74;break;case 73:y=s.attrs.Target.replace("../","ppt/");case 74:return t.next=76,Zu(e,y);case 76:return S=t.sent,C=Ll(S,["p:sldMaster","p:txStyles"]),A=Af(S),E=y.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",t.next=82,Zu(e,E);case 82:if(R=t.sent,s=R.Relationships.Relationship,T="",O={},s.constructor!==Array){t.next=109;break}M=gf(s),t.prev=88,M.s();case 90:if((L=M.n()).done){t.next=99;break}I=L.value,t.t4=I.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.t4?95:96;break;case 95:return t.abrupt("break",97);case 96:O[I.attrs.Id]={type:I.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:I.attrs.Target.replace("../","ppt/")};case 97:t.next=90;break;case 99:t.next=104;break;case 101:t.prev=101,t.t5=t.catch(88),M.e(t.t5);case 104:return t.prev=104,M.f(),t.finish(104);case 107:t.next=110;break;case 109:T=s.attrs.Target.replace("../","ppt/");case 110:if(P={},!T){t.next=118;break}return B=T.split("/").pop(),D=T.replace(B,"_rels/"+B)+".rels",t.next=116,Zu(e,D);case 116:if((z=t.sent)&&(s=z.Relationships.Relationship))if(s.constructor===Array){j=gf(s);try{for(j.s();!(N=j.n()).done;)F=N.value,P[F.attrs.Id]={type:F.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:F.attrs.Target.replace("../","ppt/")}}catch(t){j.e(t)}finally{j.f()}}else P[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 118:if(U={},H={},!f){t.next=131;break}return W=f.split("/").pop(),Z=f.replace(W,"_rels/"+W)+".rels",t.next=125,Zu(e,f);case 125:return(H=t.sent)&&H&&H&&(q=(q=JSON.stringify(H)).replace(/dsp:/g,"p:"),H=JSON.parse(q)),t.next=129,Zu(e,Z);case 129:if(Y=t.sent)if((s=Y.Relationships.Relationship).constructor===Array){G=gf(s);try{for(G.s();!(V=G.n()).done;)K=V.value,U[K.attrs.Id]={type:K.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:K.attrs.Target.replace("../","ppt/")}}catch(t){G.e(t)}finally{G.f()}}else U[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 131:return t.next=133,Zu(e,"ppt/tableStyles.xml");case 133:return X=t.sent,t.next=136,Zu(e,r);case 136:return $=t.sent,J=$["p:sld"]["p:cSld"]["p:spTree"],Q={zip:e,slideLayoutContent:g,slideLayoutTables:b,slideMasterContent:S,slideMasterTables:A,slideContent:$,tableStyles:X,slideResObj:h,slideMasterTextStyles:C,layoutResObj:w,masterResObj:O,themeContent:n,themeResObj:P,digramFileContent:H,diagramResObj:U,defaultTextStyle:i},t.next=141,Gl(Q);case 141:tt=t.sent,et=[],t.t6=l.keys(J);case 144:if((t.t7=t.t6()).done){t.next=174;break}if(rt=t.t7.value,J[rt].constructor!==Array){t.next=168;break}nt=gf(J[rt]),t.prev=148,nt.s();case 150:if((it=nt.n()).done){t.next=158;break}return at=it.value,t.next=154,Ef(rt,at,Q,"slide");case 154:(ot=t.sent)&&et.push(ot);case 156:t.next=150;break;case 158:t.next=163;break;case 160:t.prev=160,t.t8=t.catch(148),nt.e(t.t8);case 163:return t.prev=163,nt.f(),t.finish(163);case 166:t.next=172;break;case 168:return t.next=170,Ef(rt,J[rt],Q,"slide");case 170:(st=t.sent)&&et.push(st);case 172:t.next=144;break;case 174:return t.abrupt("return",{fill:tt,elements:et});case 175:case"end":return t.stop()}}),t,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])}))),Cf.apply(this,arguments)}function Af(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],r={},n={},i={};for(var a in e)if("p:nvGrpSpPr"!==a&&"p:grpSpPr"!==a){var o=e[a];if(o.constructor===Array){var s,u=gf(o);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l["p:nvSpPr"],h=Ll(f,["p:cNvPr","attrs","id"]),c=Ll(f,["p:nvPr","p:ph","attrs","idx"]),d=Ll(f,["p:nvPr","p:ph","attrs","type"]);h&&(r[h]=l),c&&(n[c]=l),d&&(i[d]=l)}}catch(t){u.e(t)}finally{u.f()}}else{var p=o["p:nvSpPr"],g=Ll(p,["p:cNvPr","attrs","id"]),b=Ll(p,["p:nvPr","p:ph","attrs","idx"]),m=Ll(p,["p:nvPr","p:ph","attrs","type"]);g&&(r[g]=o),b&&(n[b]=o),m&&(i[m]=o)}}return{idTable:r,idxTable:n,typeTable:i}}function Ef(t,e,r,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=n(l.mark((function t(e,r,n,i){var a;return l.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?5:"p:pic"===t.t0?7:"p:graphicFrame"===t.t0?9:"p:grpSp"===t.t0?13:"mc:AlternateContent"===t.t0?17:21;break;case 3:return a=Mf(r,n,i),t.abrupt("break",21);case 5:return a=Lf(r,n),t.abrupt("break",21);case 7:return a=Pf(r,n,i),t.abrupt("break",21);case 9:return t.next=11,Df(r,n,i);case 11:case 15:case 19:return a=t.sent,t.abrupt("break",21);case 13:return t.next=15,Tf(r,n,i);case 17:return t.next=19,Tf(Ll(r,["mc:Fallback"]),n,i);case 21:return t.abrupt("return",a);case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Tf(t,e,r){return Of.apply(this,arguments)}function Of(){return Of=n(l.mark((function t(e,r,n){var i,a,o,s,u,f,h,c,d,p,g,b,m,v,y,w,_,k;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=Ll(e,["p:grpSpPr","a:xfrm"])){t.next=3;break}return t.abrupt("return",null);case 3:a=parseInt(i["a:off"].attrs.x)*tf,o=parseInt(i["a:off"].attrs.y)*tf,s=parseInt(i["a:chOff"].attrs.x)*tf,u=parseInt(i["a:chOff"].attrs.y)*tf,f=parseInt(i["a:ext"].attrs.cx)*tf,h=parseInt(i["a:ext"].attrs.cy)*tf,c=parseInt(i["a:chExt"].attrs.cx)*tf,d=parseInt(i["a:chExt"].attrs.cy)*tf,p=f/c,g=h/d,b=[],t.t0=l.keys(e);case 15:if((t.t1=t.t0()).done){t.next=45;break}if(m=t.t1.value,e[m].constructor!==Array){t.next=39;break}v=gf(e[m]),t.prev=19,v.s();case 21:if((y=v.n()).done){t.next=29;break}return w=y.value,t.next=25,Ef(m,w,r,n);case 25:(_=t.sent)&&b.push(_);case 27:t.next=21;break;case 29:t.next=34;break;case 31:t.prev=31,t.t2=t.catch(19),v.e(t.t2);case 34:return t.prev=34,v.f(),t.finish(34);case 37:t.next=43;break;case 39:return t.next=41,Ef(m,e[m],r,n);case 41:(k=t.sent)&&b.push(k);case 43:t.next=15;break;case 45:return t.abrupt("return",{type:"group",top:o,left:a,width:f,height:h,elements:b.map((function(t){return pf(pf({},t),{},{left:(t.left-s)*p,top:(t.top-u)*g,width:t.width*p,height:t.height*g})}))});case 46:case"end":return t.stop()}}),t,null,[[19,31,34,37]])}))),Of.apply(this,arguments)}function Mf(t,e,r){var n,i,a=Ll(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=Ll(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=Ll(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);(s?(n=e.slideLayoutTables.typeTable[s],i=e.slideMasterTables.typeTable[s]):o&&(n=e.slideLayoutTables.idxTable[o],i=e.slideMasterTables.idxTable[o]),s)||"1"===Ll(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])&&(s="text");return s||(s=Ll(n,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=Ll(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s="diagramBg"===r?"diagram":"obj"),If(t,n,i,a,s,e)}function Lf(t,e){return If(t,void 0,void 0,t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,void 0===t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,e)}function If(t,e,r,n,i,a){var o,s=["p:spPr","a:xfrm"],u=Ll(t,s),l=Ll(e,s),f=Ll(r,s),h=Ll(t,["p:spPr","a:prstGeom","attrs","prst"]),c=Ll(t,["p:spPr","a:custGeom"]),d=ef(u,l,f),p=d.top,g=d.left,b=rf(u,l,f),m=b.width,v=b.height,y="1"===Ll(u,["attrs","flipV"]),w="1"===Ll(u,["attrs","flipH"]),_=Il(Ll(u,["attrs","rot"])),k=Ll(t,["p:txXfrm"]);if(k){var x=Ll(k,["attrs","rot"]);x&&(o=Il(x)+90)}else o=_;var S="";t["p:txBody"]&&(S=sf(t["p:txBody"],t,e,i,a));var C,A=Nl(t,i,a),E=A.borderColor,R=A.borderWidth,T=A.borderType,O=A.strokeDasharray,M=Kl(t,void 0,a)||"",L=Ll(t,["p:spPr","a:effectLst","a:outerShdw"]);L&&(C=nf(L,a));var I=function(t,e,r){var n=Ll(t,["p:txBody","a:bodyPr","attrs","anchor"]);return n||(n=Ll(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(n=Ll(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(n="t"),"ctr"===n?"mid":"b"===n?"down":"up"}(t,e,r),P="eaVert"===Ll(t,["p:txBody","a:bodyPr","attrs","vert"]),B={left:g,top:p,width:m,height:v,borderColor:E,borderWidth:R,borderType:T,borderStrokeDasharray:O,fillColor:M,content:S,isFlipV:y,isFlipH:w,rotate:_,vAlign:I,name:n};if(C&&(B.shadow=C),c&&"diagram"!==i){var D=Ll(u,["a:ext","attrs"]),z=function(t,e,r){var n=Ll(t,["a:pathLst"]),i=Ll(n,["a:path"]);Array.isArray(i)&&(i=i.pop());var a=parseInt(i.attrs.w),o=parseInt(i.attrs.h),s=0===a?0:1/a*e,u=0===o?0:1/o*r,l="",f=Ll(i,["a:moveTo"]),h=i["a:lnTo"],c=i["a:cubicBezTo"],d=i["a:arcTo"],p=Ll(i,["a:close"]);Array.isArray(f)||(f=[f]);var g=[];if(f.length>0){if(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,i=r.y,a=r.order;g.push({type:"movto",x:n,y:i,order:a})}))})),h&&Object.keys(h).forEach((function(t){var e=h[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})}))})),c){var b=[];Array.isArray(c)||(c=[c]),Object.keys(c).forEach((function(t){b.push(c[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=Ll(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,T=parseInt(g[A].stAng)/6e4;l+=ff(R,E,R,E,T,T+parseInt(g[A].swAng)/6e4,!1)}else"close"===g[A].type&&(l+="z");A++}}return l}(c,parseInt(D.cx)*tf,parseInt(D.cy)*tf);return pf(pf({},B),{},{type:"shape",shapType:"custom",path:z})}return pf(pf({},B),{},!h||"obj"!==i&&i?{type:"text",isVertical:P,rotate:o}:{type:"shape",shapType:h})}function Pf(t,e,r){return Bf.apply(this,arguments)}function Bf(){return Bf=n(l.mark((function t(e,r,n){var i,a,o,s,u,f,h,c,d,p,g,b,m,v,y,w,_,k,x,S,C,A,E,R,T,O,M,L,I,P,B,D,z;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="slideMasterBg"===n?r.masterResObj:"slideLayoutBg"===n?r.layoutResObj:r.slideResObj,a=e["p:blipFill"]["a:blip"].attrs["r:embed"],o=i[a].target,s=Ol(o).toLowerCase(),u=r.zip,t.next=7,u.file(o).async("arraybuffer");case 7:if(f=t.sent,h=e["p:spPr"]["a:xfrm"],c=Bl(s),d=ef(h,void 0,void 0),p=d.top,g=d.left,b=rf(h,void 0,void 0),m=b.width,v=b.height,y="data:".concat(c,";base64,").concat(Tl(f)),w="1"===Ll(h,["attrs","flipV"]),_="1"===Ll(h,["attrs","flipH"]),k=0,(x=Ll(e,["p:spPr","a:xfrm","attrs","rot"]))&&(k=Il(x)),S=Ll(e,["p:nvPicPr","p:nvPr","a:videoFile"]),M=!1,!S){t.next=35;break}if(C=S.attrs["r:link"],!Dl(A=i[C].target)){t.next=28;break}A=Pl(A),M=!0,t.next=35;break;case 28:if("mp4"!==(E=Ol(A).toLowerCase())&&"webm"!==E&&"ogg"!==E){t.next=35;break}return t.next=32,u.file(A).async("arraybuffer");case 32:T=t.sent,R=Bl(E),O=URL.createObjectURL(new Blob([T],{type:R}));case 35:if(!(L=Ll(e,["p:nvPicPr","p:nvPr","a:audioFile"]))){t.next=45;break}if(I=L.attrs["r:link"],P=i[I].target,"mp3"!==(B=Ol(P).toLowerCase())&&"wav"!==B&&"ogg"!==B){t.next=45;break}return t.next=43,u.file(P).async("arraybuffer");case 43:D=t.sent,z=URL.createObjectURL(new Blob([D]));case 45:if(!S||M){t.next=47;break}return t.abrupt("return",{type:"video",top:p,left:g,width:m,height:v,rotate:k,blob:O});case 47:if(!S||!M){t.next=49;break}return t.abrupt("return",{type:"video",top:p,left:g,width:m,height:v,rotate:k,src:A});case 49:if(!L){t.next=51;break}return t.abrupt("return",{type:"audio",top:p,left:g,width:m,height:v,rotate:k,blob:z});case 51:return t.abrupt("return",{type:"image",top:p,left:g,width:m,height:v,rotate:k,src:y,isFlipV:w,isFlipH:_});case 52:case"end":return t.stop()}}),t)}))),Bf.apply(this,arguments)}function Df(t,e,r){return zf.apply(this,arguments)}function zf(){return zf=n(l.mark((function t(e,r,n){var i,a,o;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=Ll(e,["a:graphic","a:graphicData","attrs","uri"]),t.t0=i,t.next="http://schemas.openxmlformats.org/drawingml/2006/table"===t.t0?4:"http://schemas.openxmlformats.org/drawingml/2006/chart"===t.t0?6:"http://schemas.openxmlformats.org/drawingml/2006/diagram"===t.t0?10:"http://schemas.openxmlformats.org/presentationml/2006/ole"===t.t0?12:15;break;case 4:return a=jf(e,r),t.abrupt("break",15);case 6:return t.next=8,Nf(e,r);case 8:return a=t.sent,t.abrupt("break",15);case 10:return a=Uf(e,r),t.abrupt("break",15);case 12:return(o=Ll(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))?Tf(o,r,n):o=Ll(e,["a:graphic","a:graphicData","p:oleObj"]),t.abrupt("break",15);case 15:return t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),zf.apply(this,arguments)}function jf(t,e){var r,n,i=Ll(t,["a:graphic","a:graphicData","a:tbl"]),a=Ll(t,["p:xfrm"]),o=ef(a,void 0,void 0),s=o.top,u=o.left,l=rf(a,void 0,void 0),f=l.width,h=l.height,c=Ll(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),d=c.attrs?c.attrs.firstRow:void 0,p=c.attrs?c.attrs.firstCol:void 0,g=c.attrs?c.attrs.lastRow:void 0,b=c.attrs?c.attrs.lastCol:void 0,m=c.attrs?c.attrs.bandRow:void 0,v=c.attrs?c.attrs.bandCol:void 0,y={isFrstRowAttr:d&&"1"===d?1:0,isFrstColAttr:p&&"1"===p?1:0,isLstRowAttr:g&&"1"===g?1:0,isLstColAttr:b&&"1"===b?1:0,isBandRowAttr:m&&"1"===m?1:0,isBandColAttr:v&&"1"===v?1:0},w=c["a:tableStyleId"];if(w){var _=e.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(_)if(_.constructor===Array)for(var k=0;k<_.length;k++)_[k].attrs.styleId===w&&(r=_[k]);else _.attrs.styleId===w&&(r=_)}r&&(r.tblStylAttrObj=y);var x=Ll(r,["a:wholeTbl","a:tcStyle"]),S=Ll(x,["a:tcBdr"]);if(S){var C=function(t,e){var r={};if(t["a:bottom"]){var n=Nl({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);r.bottom=n}if(t["a:top"]){var i=Nl({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);r.top=i}if(t["a:right"]){var a=Nl({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);r.right=a}if(t["a:left"]){var o=Nl({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);r.left=o}return r}(S,e);C&&(n=C.bottom||C.left||C.right||C.top)}var A="",E=Ll(r,["a:tblBg","a:fillRef"]);E&&(A=Xl(E,void 0,void 0,e)),void 0===E&&(A=Xl(E=Ll(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,e));var R=i["a:tr"];R.constructor!==Array&&(R=[R]);for(var T=[],O=0;O<R.length;O++){var M=R[O],L=cf(R,O,y,r,e),I=L.fillColor,P=L.fontColor,B=L.fontBold,D=M["a:tc"],z=[];if(D.constructor===Array)for(var j=0;j<D.length;j++){var N=D[j],F=void 0;if(0===j&&1===y.isFrstColAttr)F="a:firstCol",1===y.isLstRowAttr&&O===R.length-1&&Ll(r,["a:seCell"])?F="a:seCell":1===y.isFrstRowAttr&&0===O&&Ll(r,["a:neCell"])&&(F="a:neCell");else if(j>0&&1===y.isBandColAttr&&(1!==y.isFrstColAttr||0!==O)&&(1!==y.isLstRowAttr||O!==R.length-1)&&j!==D.length-1&&j%2!=0){var U=Ll(r,["a:band2V"]);void 0===U?(U=Ll(r,["a:band1V"]))&&(F="a:band2V"):F="a:band2V"}j===D.length-1&&1===y.isLstColAttr&&(F="a:lastCol",1===y.isLstRowAttr&&O===R.length-1&&Ll(r,["a:swCell"])?F="a:swCell":1===y.isFrstRowAttr&&0===O&&Ll(r,["a:nwCell"])&&(F="a:nwCell"));var H=sf(N["a:txBody"],N,void 0,void 0,e),W=hf(N,r,F,e),Z={text:H};W.rowSpan&&(Z.rowSpan=W.rowSpan),W.colSpan&&(Z.colSpan=W.colSpan),W.vMerge&&(Z.vMerge=W.vMerge),W.hMerge&&(Z.hMerge=W.hMerge),(W.fontBold||B)&&(Z.fontBold=W.fontBold||B),(W.fontColor||P)&&(Z.fontColor=W.fontColor||P),(W.fillColor||I||A)&&(Z.fillColor=W.fillColor||I||A),z.push(Z)}else{var q=void 0;if(1===y.isFrstColAttr&&1!==y.isLstRowAttr)q="a:firstCol";else if(1===y.isBandColAttr&&1!==y.isLstRowAttr){var Y=Ll(r,["a:band2V"]);(Y||(Y=Ll(r,["a:band1V"])))&&(q="a:band2V")}1===y.isLstColAttr&&1!==y.isLstRowAttr&&(q="a:lastCol");var G=sf(D["a:txBody"],D,void 0,void 0,e),V=hf(D,r,q,e),K={text:G};V.rowSpan&&(K.rowSpan=V.rowSpan),V.colSpan&&(K.colSpan=V.colSpan),V.vMerge&&(K.vMerge=V.vMerge),V.hMerge&&(K.hMerge=V.hMerge),(V.fontBold||B)&&(K.fontBold=V.fontBold||B),(V.fontColor||P)&&(K.fontColor=V.fontColor||P),(V.fillColor||I||A)&&(K.fillColor=V.fillColor||I||A),z.push(K)}T.push(z)}return pf({type:"table",top:s,left:u,width:f,height:h,data:T},n||{})}function Nf(t,e){return Ff.apply(this,arguments)}function Ff(){return Ff=n(l.mark((function t(e,r){var n,i,a,o,s,u,f,h,c,d,p,g,b;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Ll(e,["p:xfrm"]),i=ef(n,void 0,void 0),a=i.top,o=i.left,s=rf(n,void 0,void 0),u=s.width,f=s.height,h=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=r.slideResObj[h].target,t.next=7,Zu(r.zip,c);case 7:if(d=t.sent,p=Ll(d,["c:chartSpace","c:chart","c:plotArea"]),g=Jl(p)){t.next=12;break}return t.abrupt("return",{});case 12:return b={type:"chart",top:a,left:o,width:u,height:f,data:g.data,chartType:g.type},void 0!==g.marker&&(b.marker=g.marker),void 0!==g.barDir&&(b.barDir=g.barDir),void 0!==g.holeSize&&(b.holeSize=g.holeSize),void 0!==g.grouping&&(b.grouping=g.grouping),void 0!==g.style&&(b.style=g.style),t.abrupt("return",b);case 19:case"end":return t.stop()}}),t)}))),Ff.apply(this,arguments)}function Uf(t,e){var r=Ll(t,["p:xfrm"]),n=ef(r,void 0,void 0),i=n.left,a=n.top,o=rf(r,void 0,void 0),s=o.width,u=o.height,l=Ll(e.digramFileContent,["p:drawing","p:spTree","p:sp"]),f=[];if(l){var h,c=gf(l);try{for(c.s();!(h=c.n()).done;){var d=Mf(h.value,e,"diagramBg");d&&f.push(d)}}catch(t){c.e(t)}finally{c.f()}}return{type:"diagram",left:i,top:a,width:s,height:u,elements:f}}t.parse=function(t){return mf.apply(this,arguments)}}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).pptxtojson={})}(this,(function(t){"use strict";function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function r(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function s(t){r(o,i,a,s,u,"next",t)}function u(t){r(o,i,a,s,u,"throw",t)}s(void 0)}))}}var i="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 o={exports:{}},s={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}(s),function(t){var e=s.exports.default;function r(){t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},i=Object.prototype,a=i.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",f=s.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new R(n||[]);return o(a,"_invoke",{value:S(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=c;var p={};function g(){}function b(){}function v(){}var m={};h(m,u,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==i&&a.call(w,u)&&(m=w);var _=v.prototype=g.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,r){function n(i,o,s,u){var l=d(t[i],t,o);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==e(h)&&a.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(h).then((function(t){f.value=t,s(f)}),(function(t){return n("throw",t,s,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,i){n(t,e,r,i)}))}return i=i?i.then(a,a):a()}})}function S(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return T()}for(r.method=i,r.arg=a;;){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 i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(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(a.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=v,o(_,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:b,configurable:!0}),b.displayName=h(v,f,"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,v):(t.__proto__=v,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},k(x.prototype),h(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,i,a){void 0===a&&(a=Promise);var o=new x(c(t,e,r,i),a);return n.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(_),h(_,f,"Generator"),h(_,u,(function(){return this})),h(_,"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)&&a.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 i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.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 i=n.arg;E(r)}return i}}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}(o);var u=o.exports(),l=u;try{regeneratorRuntime=u}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=u:Function("r","regeneratorRuntime = r")(u)}var f={},h={},c="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},d=[],p=[],g="undefined"!=typeof Uint8Array?Uint8Array:Array,b=!1;function v(){b=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)d[e]=t[e],p[t.charCodeAt(e)]=e;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63}function m(t,e,r){for(var n,i,a=[],o=e;o<r;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a.push(d[(i=n)>>18&63]+d[i>>12&63]+d[i>>6&63]+d[63&i]);return a.join("")}function y(t){var e;b||v();for(var r=t.length,n=r%3,i="",a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(m(t,s,s+o>u?u:s+o));return 1===n?(e=t[r-1],i+=d[e>>2],i+=d[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=d[e>>10],i+=d[e>>4&63],i+=d[e<<2&63],i+="="),a.push(i),a.join("")}function w(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,f=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=256*a+t[e+h],h+=c,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+h],h+=c,f-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=l}return(d?-1:1)*o*Math.pow(2,a-n)}function _(t,e,r,n,i,a){var o,s,u,l=8*a-i-1,f=(1<<l)-1,h=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-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=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+h>=1?c/u:c*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=f?(s=0,o=f):o+h>=1?(s=(e*u-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[r+d]=255&o,d+=p,o/=256,l-=8);t[r+d-p]|=128*g}var k={}.toString,x=Array.isArray||function(t){return"[object Array]"==k.call(t)};E.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT;var S=C();function C(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(t,e){if(C()<e)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=E.prototype:(null===t&&(t=new E(e)),t.length=e),t}function E(t,e,r){if(!(E.TYPED_ARRAY_SUPPORT||this instanceof E))return new E(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 T(this,t)}return R(this,t,e,r)}function R(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);E.TYPED_ARRAY_SUPPORT?(t=e).__proto__=E.prototype:t=L(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!E.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|P(e,r),i=(t=A(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(I(e)){var r=0|M(e.length);return 0===(t=A(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?A(t,0):L(t,e);if("Buffer"===e.type&&x(e.data))return L(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function O(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 T(t,e){if(O(e),t=A(t,e<0?0:0|M(e)),!E.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function L(t,e){var r=e.length<0?0:0|M(e.length);t=A(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function M(t){if(t>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return 0|t}function I(t){return!(null==t||!t._isBuffer)}function P(t,e){if(I(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 st(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ut(t).length;default:if(n)return st(t).length;e=(""+e).toLowerCase(),n=!0}}function B(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 X(this,e,r);case"utf8":case"utf-8":return Y(this,e,r);case"ascii":return V(this,e,r);case"latin1":case"binary":return K(this,e,r);case"base64":return q(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function z(t,e,r,n,i){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=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=E.from(e,n)),I(e))return 0===e.length?-1:j(t,e,r,n,i);if("number"==typeof e)return e&=255,E.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):j(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function j(t,e,r,n,i){var a,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(i){var f=-1;for(a=r;a<s;a++)if(l(t,a)===l(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else-1!==f&&(a-=a-f),f=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var h=!0,c=0;c<u;c++)if(l(t,a+c)!==l(e,c)){h=!1;break}if(h)return a}return-1}function F(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/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 N(t,e,r,n){return lt(st(e,t.length-r),t,r,n)}function U(t,e,r,n){return lt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function H(t,e,r,n){return U(t,e,r,n)}function W(t,e,r,n){return lt(ut(e),t,r,n)}function Z(t,e,r,n){return lt(function(t,e){for(var r,n,i,a=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function q(t,e,r){return 0===e&&r===t.length?y(t):y(t.slice(e,r))}function Y(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,l=t[i],f=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(f=l);break;case 2:128==(192&(a=t[i+1]))&&(u=(31&l)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,h=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=h}return function(t){var e=t.length;if(e<=G)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=G));return r}(n)}E.poolSize=8192,E._augment=function(t){return t.__proto__=E.prototype,t},E.from=function(t,e,r){return R(null,t,e,r)},E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&E[Symbol.species]),E.alloc=function(t,e,r){return function(t,e,r,n){return O(e),e<=0?A(t,e):void 0!==r?"string"==typeof n?A(t,e).fill(r,n):A(t,e).fill(r):A(t,e)}(null,t,e,r)},E.allocUnsafe=function(t){return T(null,t)},E.allocUnsafeSlow=function(t){return T(null,t)},E.isBuffer=ft,E.compare=function(t,e){if(!I(t)||!I(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},E.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}},E.concat=function(t,e){if(!x(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return E.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=E.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!I(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},E.byteLength=P,E.prototype._isBuffer=!0,E.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)D(this,e,e+1);return this},E.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)D(this,e,e+3),D(this,e+1,e+2);return this},E.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)D(this,e,e+7),D(this,e+1,e+6),D(this,e+2,e+5),D(this,e+3,e+4);return this},E.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):B.apply(this,arguments)},E.prototype.equals=function(t){if(!I(t))throw new TypeError("Argument must be a Buffer");return this===t||0===E.compare(this,t)},E.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+">"},E.prototype.compare=function(t,e,r,n,i){if(!I(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===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=t.slice(e,r),f=0;f<s;++f)if(u[f]!==l[f]){a=u[f],o=l[f];break}return a<o?-1:o<a?1:0},E.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},E.prototype.indexOf=function(t,e,r){return z(this,t,e,r,!0)},E.prototype.lastIndexOf=function(t,e,r){return z(this,t,e,r,!1)},E.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 i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return F(this,t,e,r);case"utf8":case"utf-8":return N(this,t,e,r);case"ascii":return U(this,t,e,r);case"latin1":case"binary":return H(this,t,e,r);case"base64":return W(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;function V(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function K(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function X(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=ot(t[a]);return i}function $(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function J(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 Q(t,e,r,n,i,a){if(!I(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function tt(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-r,2);i<a;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function et(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-r,4);i<a;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function rt(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function nt(t,e,r,n,i){return i||rt(t,0,r,4),_(t,e,r,n,23,4),r+4}function it(t,e,r,n,i){return i||rt(t,0,r,8),_(t,e,r,n,52,8),r+8}E.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),E.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=E.prototype;else{var i=e-t;r=new E(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},E.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},E.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},E.prototype.readUInt8=function(t,e){return e||J(t,1,this.length),this[t]},E.prototype.readUInt16LE=function(t,e){return e||J(t,2,this.length),this[t]|this[t+1]<<8},E.prototype.readUInt16BE=function(t,e){return e||J(t,2,this.length),this[t]<<8|this[t+1]},E.prototype.readUInt32LE=function(t,e){return e||J(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},E.prototype.readUInt32BE=function(t,e){return e||J(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},E.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},E.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||J(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},E.prototype.readInt8=function(t,e){return e||J(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},E.prototype.readInt16LE=function(t,e){e||J(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},E.prototype.readInt16BE=function(t,e){e||J(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},E.prototype.readInt32LE=function(t,e){return e||J(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},E.prototype.readInt32BE=function(t,e){return e||J(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},E.prototype.readFloatLE=function(t,e){return e||J(t,4,this.length),w(this,t,!0,23,4)},E.prototype.readFloatBE=function(t,e){return e||J(t,4,this.length),w(this,t,!1,23,4)},E.prototype.readDoubleLE=function(t,e){return e||J(t,8,this.length),w(this,t,!0,52,8)},E.prototype.readDoubleBE=function(t,e){return e||J(t,8,this.length),w(this,t,!1,52,8)},E.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Q(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},E.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Q(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},E.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,1,255,0),E.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},E.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):tt(this,t,e,!0),e+2},E.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):tt(this,t,e,!1),e+2},E.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):et(this,t,e,!0),e+4},E.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):et(this,t,e,!1),e+4},E.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Q(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},E.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Q(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},E.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,1,127,-128),E.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},E.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):tt(this,t,e,!0),e+2},E.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):tt(this,t,e,!1),e+2},E.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):et(this,t,e,!0),e+4},E.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Q(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),E.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):et(this,t,e,!1),e+4},E.prototype.writeFloatLE=function(t,e,r){return nt(this,t,e,!0,r)},E.prototype.writeFloatBE=function(t,e,r){return nt(this,t,e,!1,r)},E.prototype.writeDoubleLE=function(t,e,r){return it(this,t,e,!0,r)},E.prototype.writeDoubleBE=function(t,e,r){return it(this,t,e,!1,r)},E.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 i,a=n-r;if(this===t&&r<e&&e<n)for(i=a-1;i>=0;--i)t[i+e]=this[i+r];else if(a<1e3||!E.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},E.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 i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!E.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 a;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var o=I(t)?t:st(new E(t,n).toString()),s=o.length;for(a=0;a<r-e;++a)this[a+e]=o[a%s]}return this};var at=/[^+\/0-9A-Za-z-_]/g;function ot(t){return t<16?"0"+t.toString(16):t.toString(16)}function st(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ut(t){return function(t){var e,r,n,i,a,o;b||v();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===t[s-2]?2:"="===t[s-1]?1:0,o=new g(3*s/4-a),n=a>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=p[t.charCodeAt(e)]<<18|p[t.charCodeAt(e+1)]<<12|p[t.charCodeAt(e+2)]<<6|p[t.charCodeAt(e+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===a?(i=p[t.charCodeAt(e)]<<2|p[t.charCodeAt(e+1)]>>4,o[u++]=255&i):1===a&&(i=p[t.charCodeAt(e)]<<10|p[t.charCodeAt(e+1)]<<4|p[t.charCodeAt(e+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(at,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function lt(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function ft(t){return null!=t&&(!!t._isBuffer||ht(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&ht(t.slice(0,0))}(t))}function ht(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ct=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:S,Buffer:E,SlowBuffer:function(t){return+t!=t&&(t=0),E.alloc(+t)},isBuffer:ft}),dt={};function pt(){throw new Error("setTimeout has not been defined")}function gt(){throw new Error("clearTimeout has not been defined")}var bt=pt,vt=gt;function mt(t){if(bt===setTimeout)return setTimeout(t,0);if((bt===pt||!bt)&&setTimeout)return bt=setTimeout,setTimeout(t,0);try{return bt(t,0)}catch(e){try{return bt.call(null,t,0)}catch(e){return bt.call(this,t,0)}}}"function"==typeof c.setTimeout&&(bt=setTimeout),"function"==typeof c.clearTimeout&&(vt=clearTimeout);var yt,wt=[],_t=!1,kt=-1;function xt(){_t&&yt&&(_t=!1,yt.length?wt=yt.concat(wt):kt=-1,wt.length&&St())}function St(){if(!_t){var t=mt(xt);_t=!0;for(var e=wt.length;e;){for(yt=wt,wt=[];++kt<e;)yt&&yt[kt].run();kt=-1,e=wt.length}yt=null,_t=!1,function(t){if(vt===clearTimeout)return clearTimeout(t);if((vt===gt||!vt)&&clearTimeout)return vt=clearTimeout,clearTimeout(t);try{vt(t)}catch(e){try{return vt.call(null,t)}catch(e){return vt.call(this,t)}}}(t)}}function Ct(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];wt.push(new At(t,e)),1!==wt.length||_t||mt(St)}function At(t,e){this.fun=t,this.array=e}At.prototype.run=function(){this.fun.apply(null,this.array)};function Et(){}var Rt=Et,Ot=Et,Tt=Et,Lt=Et,Mt=Et,It=Et,Pt=Et;var Bt=c.performance||{},Dt=Bt.now||Bt.mozNow||Bt.msNow||Bt.oNow||Bt.webkitNow||function(){return(new Date).getTime()};var zt=new Date;var jt={nextTick:Ct,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Rt,addListener:Ot,once:Tt,off:Lt,removeListener:Mt,removeAllListeners:It,emit:Pt,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*Dt.call(Bt),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-zt)/1e3}},Ft={exports:{}};function Nt(){}function Ut(){Ut.init.call(this)}function Ht(t){return void 0===t._maxListeners?Ut.defaultMaxListeners:t._maxListeners}function Wt(t,e,r){if(e)t.call(r);else for(var n=t.length,i=$t(t,n),a=0;a<n;++a)i[a].call(r)}function Zt(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=$t(t,i),o=0;o<i;++o)a[o].call(r,n)}function qt(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=$t(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function Yt(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=$t(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function Gt(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=$t(t,i),o=0;o<i;++o)a[o].apply(r,n)}function Vt(t,e,r,n){var i,a,o,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=new Nt,t._eventsCount=0),o){if("function"==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=Ht(t))&&i>0&&o.length>i){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=a[e]=r,++t._eventsCount;return t}function Kt(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function Xt(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 $t(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}Nt.prototype=Object.create(null),Ut.EventEmitter=Ut,Ut.usingDomains=!1,Ut.prototype.domain=void 0,Ut.prototype._events=void 0,Ut.prototype._maxListeners=void 0,Ut.defaultMaxListeners=10,Ut.init=function(){this.domain=null,Ut.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Nt,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ut.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},Ut.prototype.getMaxListeners=function(){return Ht(this)},Ut.prototype.emit=function(t){var e,r,n,i,a,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 f="function"==typeof r;switch(n=arguments.length){case 1:Wt(r,f,this);break;case 2:Zt(r,f,this,arguments[1]);break;case 3:qt(r,f,this,arguments[1],arguments[2]);break;case 4:Yt(r,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),a=1;a<n;a++)i[a-1]=arguments[a];Gt(r,f,this,i)}return!0},Ut.prototype.addListener=function(t,e){return Vt(this,t,e,!1)},Ut.prototype.on=Ut.prototype.addListener,Ut.prototype.prependListener=function(t,e){return Vt(this,t,e,!0)},Ut.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,Kt(this,t,e)),this},Ut.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,Kt(this,t,e)),this},Ut.prototype.removeListener=function(t,e){var r,n,i,a,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 Nt:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,a=r.length;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){o=r[a].listener,i=a;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new Nt,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i);n.removeListener&&this.emit("removeListener",t,o||e)}return this},Ut.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new Nt,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new Nt:delete r[t]),this;if(0===arguments.length){for(var n,i=Object.keys(r),a=0;a<i.length;++a)"removeListener"!==(n=i[a])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new Nt,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},Ut.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},Ut.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):Xt.call(t,e)},Ut.prototype.listenerCount=Xt,Ut.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Jt=Object.freeze({__proto__:null,default:Ut,EventEmitter:Ut}),Qt="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},te=/%[sdj%]/g;function ee(t){if(!ve(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(oe(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(te,(function(t){if("%%"===t)return"%";if(r>=i)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<i;o=n[++r])pe(o)||!_e(o)?a+=" "+o:a+=" "+oe(o);return a}function re(t,e){if(ye(c.process))return function(){return re(t,e).apply(this,arguments)};if(!0===jt.noDeprecation)return t;var r=!1;return function(){if(!r){if(jt.throwDeprecation)throw new Error(e);jt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ne,ie={};function ae(t){if(ye(ne)&&(ne=jt.env.NODE_DEBUG||""),t=t.toUpperCase(),!ie[t])if(new RegExp("\\b"+t+"\\b","i").test(ne)){ie[t]=function(){var e=ee.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else ie[t]=function(){};return ie[t]}function oe(t,e){var r={seen:[],stylize:ue};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),de(e)?r.showHidden=e:e&&Me(r,e),ye(r.showHidden)&&(r.showHidden=!1),ye(r.depth)&&(r.depth=2),ye(r.colors)&&(r.colors=!1),ye(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=se),le(r,t,r.depth)}function se(t,e){var r=oe.styles[e];return r?"["+oe.colors[r][0]+"m"+t+"["+oe.colors[r][1]+"m":t}function ue(t,e){return t}function le(t,e,r){if(t.customInspect&&e&&Se(e.inspect)&&e.inspect!==oe&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return ve(n)||(n=le(t,n,r)),n}var i=function(t,e){if(ye(e))return t.stylize("undefined","undefined");if(ve(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(be(e))return t.stylize(""+e,"number");if(de(e))return t.stylize(""+e,"boolean");if(pe(e))return t.stylize("null","null")}(t,e);if(i)return i;var a=Object.keys(e),o=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),xe(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return fe(e);if(0===a.length){if(Se(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(we(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(ke(e))return t.stylize(Date.prototype.toString.call(e),"date");if(xe(e))return fe(e)}var u,l="",f=!1,h=["{","}"];(ce(e)&&(f=!0,h=["[","]"]),Se(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return we(e)&&(l=" "+RegExp.prototype.toString.call(e)),ke(e)&&(l=" "+Date.prototype.toUTCString.call(e)),xe(e)&&(l=" "+fe(e)),0!==a.length||f&&0!=e.length?r<0?we(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=f?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)Ie(e,String(o))?a.push(he(t,e,r,n,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(he(t,e,r,n,i,!0))})),a}(t,e,r,o,a):a.map((function(n){return he(t,e,r,o,n,f)})),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,h)):h[0]+l+h[1]}function fe(t){return"["+Error.prototype.toString.call(t)+"]"}function he(t,e,r,n,i,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Ie(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=pe(r)?le(t,u.value,null):le(t,u.value,r-1)).indexOf("\n")>-1&&(s=a?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")),ye(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).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 de(t){return"boolean"==typeof t}function pe(t){return null===t}function ge(t){return null==t}function be(t){return"number"==typeof t}function ve(t){return"string"==typeof t}function me(t){return"symbol"==typeof t}function ye(t){return void 0===t}function we(t){return _e(t)&&"[object RegExp]"===Ee(t)}function _e(t){return"object"==typeof t&&null!==t}function ke(t){return _e(t)&&"[object Date]"===Ee(t)}function xe(t){return _e(t)&&("[object Error]"===Ee(t)||t instanceof Error)}function Se(t){return"function"==typeof t}function Ce(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function Ae(t){return ft(t)}function Ee(t){return Object.prototype.toString.call(t)}function Re(t){return t<10?"0"+t.toString(10):t.toString(10)}oe.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]},oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Oe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Te(){var t=new Date,e=[Re(t.getHours()),Re(t.getMinutes()),Re(t.getSeconds())].join(":");return[t.getDate(),Oe[t.getMonth()],e].join(" ")}function Le(){console.log("%s - %s",Te(),ee.apply(null,arguments))}function Me(t,e){if(!e||!_e(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Ie(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Pe={inherits:Qt,_extend:Me,log:Le,isBuffer:Ae,isPrimitive:Ce,isFunction:Se,isError:xe,isDate:ke,isObject:_e,isRegExp:we,isUndefined:ye,isSymbol:me,isString:ve,isNumber:be,isNullOrUndefined:ge,isNull:pe,isBoolean:de,isArray:ce,inspect:oe,deprecate:re,format:ee,debuglog:ae},Be=Object.freeze({__proto__:null,format:ee,deprecate:re,debuglog:ae,inspect:oe,isArray:ce,isBoolean:de,isNull:pe,isNullOrUndefined:ge,isNumber:be,isString:ve,isSymbol:me,isUndefined:ye,isRegExp:we,isObject:_e,isDate:ke,isError:xe,isFunction:Se,isPrimitive:Ce,isBuffer:Ae,log:Le,inherits:Qt,_extend:Me,default:Pe});function De(){this.head=null,this.tail=null,this.length=0}De.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},De.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},De.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}},De.prototype.clear=function(){this.head=this.tail=null,this.length=0},De.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},De.prototype.concat=function(t){if(0===this.length)return E.alloc(0);if(1===this.length)return this.head.data;for(var e=E.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var ze=E.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 je(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!ze(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=Ne;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ue;break;default:return void(this.write=Fe)}this.charBuffer=new E(6),this.charReceived=0,this.charLength=0}function Fe(t){return t.toString(this.encoding)}function Ne(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Ue(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}je.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),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=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 i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,n)}return e},je.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},je.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},Ze.ReadableState=We;var He=ae("stream");function We(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof mr&&(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 De,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 je(t.encoding),this.encoding=t.encoding)}function Ze(t){if(!(this instanceof Ze))return new Ze(t);this._readableState=new We(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),Ut.call(this)}function qe(t,e,r,n,i){var a=function(t,e){var r=null;ft(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(a)t.emit("error",a);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,Ve(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(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,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ve(t))),function(t,e){e.readingMore||(e.readingMore=!0,Ct(Xe,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}Qt(Ze,Ut),Ze.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=E.from(t,e),e=""),qe(this,r,t,e,!1)},Ze.prototype.unshift=function(t){return qe(this,this._readableState,t,"",!0)},Ze.prototype.isPaused=function(){return!1===this._readableState.flowing},Ze.prototype.setEncoding=function(t){return this._readableState.decoder=new je(t),this._readableState.encoding=t,this};var Ye=8388608;function Ge(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>=Ye?t=Ye:(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 Ve(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(He("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ct(Ke,t):Ke(t))}function Ke(t){He("emit readable"),t.emit("readable"),Qe(t)}function Xe(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(He("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function $e(t){He("readable nexttick read 0"),t.read(0)}function Je(t,e){e.reading||(He("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Qe(t),e.flowing&&!e.reading&&t.read(0)}function Qe(t){var e=t._readableState;for(He("flow",e.flowing);e.flowing&&null!==t.read(););}function tr(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,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=E.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,o=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,o),0===(t-=o)){o===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function er(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ct(rr,e,t))}function rr(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function nr(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function ir(){}function ar(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function or(t,e){Object.defineProperty(this,"buffer",{get:re((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof mr&&(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 i=!1===t.decodeStrings;this.decodeStrings=!i,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,i=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,i){--e.pendingcb,r?Ct(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var a=hr(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||fr(t,r),n?Ct(lr,t,r,a,i):lr(t,r,a,i)}}(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 pr(this)}function sr(t){if(!(this instanceof sr||this instanceof mr))return new sr(t);this._writableState=new or(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),Ut.call(this)}function ur(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function lr(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),dr(t,e)}function fr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var o=0;r;)i[o]=r,r=r.next,o+=1;ur(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new pr(e)}else{for(;r;){var s=r.chunk,u=r.encoding,l=r.callback;if(ur(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 hr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function cr(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function dr(t,e){var r=hr(e);return r&&(0===e.pendingcb?(cr(t,e),e.finished=!0,t.emit("finish")):cr(t,e)),r}function pr(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Ze.prototype.read=function(t){He("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 He("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?er(this):Ve(this),null;if(0===(t=Ge(t,e))&&e.ended)return 0===e.length&&er(this),null;var n,i=e.needReadable;return He("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&He("length less than watermark",i=!0),e.ended||e.reading?He("reading or ended",i=!1):i&&(He("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ge(r,e))),null===(n=t>0?tr(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&er(this)),null!==n&&this.emit("data",n),n},Ze.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Ze.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,He("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?o:l;function a(t){He("onunpipe"),t===r&&l()}function o(){He("onend"),t.end()}n.endEmitted?Ct(i):r.once("end",i),t.on("unpipe",a);var s=function(t){return function(){var e=t._readableState;He("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Qe(t))}}(r);t.on("drain",s);var u=!1;function l(){He("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",c),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",l),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var f=!1;function h(e){He("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==nr(n.pipes,t))&&!u&&(He("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function c(e){var r;He("onerror",e),g(),t.removeListener("error",c),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){He("onfinish"),t.removeListener("close",d),g()}function g(){He("unpipe"),r.unpipe(t)}return r.on("data",h),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",c),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(He("pipe resume"),r.resume()),t},Ze.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 i=0;i<n;i++)r[i].emit("unpipe",this);return this}var a=nr(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Ze.prototype.on=function(t,e){var r=Ut.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&&Ve(this):Ct($e,this))}return r},Ze.prototype.addListener=Ze.prototype.on,Ze.prototype.resume=function(){var t=this._readableState;return t.flowing||(He("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ct(Je,t,e))}(this,t)),this},Ze.prototype.pause=function(){return He("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(He("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ze.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(He("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(He("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));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){He("wrapped _read",e),r&&(r=!1,t.resume())},n},Ze._fromList=tr,sr.WritableState=or,Qt(sr,Ut),or.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},sr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},sr.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),E.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=ir),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),Ct(e,r)}(this,r):function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):E.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),Ct(n,a),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=E.from(e,r));return e}(e,r,n),E.isBuffer(r)&&(n="buffer");var a=e.objectMode?1:r.length;e.length+=a;var o=e.length<e.highWaterMark;o||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new ar(r,n,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ur(t,e,!1,a,r,n,i);return o}(this,n,t,e,r)),i},sr.prototype.cork=function(){this._writableState.corked++},sr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||fr(this,t))},sr.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},sr.prototype._write=function(t,e,r){r(new Error("not implemented"))},sr.prototype._writev=null,sr.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,dr(t,e),r&&(e.finished?Ct(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Qt(mr,Ze);for(var gr=Object.keys(sr.prototype),br=0;br<gr.length;br++){var vr=gr[br];mr.prototype[vr]||(mr.prototype[vr]=sr.prototype[vr])}function mr(t){if(!(this instanceof mr))return new mr(t);Ze.call(this,t),sr.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",yr)}function yr(){this.allowHalfOpen||this._writableState.ended||Ct(wr,this)}function wr(t){t.end()}function _r(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&t._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function kr(t){if(!(this instanceof kr))return new kr(t);mr.call(this,t),this._transformState=new _r(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){xr(e,t)})):xr(e)}))}function xr(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 Sr(t){if(!(this instanceof Sr))return new Sr(t);kr.call(this,t)}function Cr(){Ut.call(this)}Qt(kr,mr),kr.prototype.push=function(t,e){return this._transformState.needTransform=!1,mr.prototype.push.call(this,t,e)},kr.prototype._transform=function(t,e,r){throw new Error("Not implemented")},kr.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},kr.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},Qt(Sr,kr),Sr.prototype._transform=function(t,e,r){r(null,t)},Qt(Cr,Ut),Cr.Readable=Ze,Cr.Writable=sr,Cr.Duplex=mr,Cr.Transform=kr,Cr.PassThrough=Sr,Cr.Stream=Cr,Cr.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===Ut.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),t.removeListener("drain",i),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 Ar,Er,Rr,Or=a(Object.freeze({__proto__:null,default:Cr,Readable:Ze,Writable:sr,Duplex:mr,Transform:kr,PassThrough:Sr,Stream:Cr})),Tr={exports:{}};function Lr(){if(Ar)return Tr.exports;return Ar=1,void 0===jt||!jt.version||0===jt.version.indexOf("v0.")||0===jt.version.indexOf("v1.")&&0!==jt.version.indexOf("v1.8.")?Tr.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return Ct(t);case 2:return Ct((function(){t.call(null,e)}));case 3:return Ct((function(){t.call(null,e,r)}));case 4:return Ct((function(){t.call(null,e,r,n)}));default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return Ct((function(){t.apply(null,i)}))}}}:Tr.exports=jt,Tr.exports}var Mr,Ir=a(Jt),Pr={exports:{}};function Br(){return Mr||(Mr=1,function(t){t.exports=Or}(Pr)),Pr.exports}var Dr,zr={exports:{}},jr=a(ct);function Fr(){return Dr||(Dr=1,function(t,e){var r=jr,n=r.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return n(t,e,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(n,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof r?i.fill(e,r):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}}(zr,zr.exports)),zr.exports}var Nr,Ur={};function Hr(){if(Nr)return Ur;function t(t){return Object.prototype.toString.call(t)}return Nr=1,Ur.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},Ur.isBoolean=function(t){return"boolean"==typeof t},Ur.isNull=function(t){return null===t},Ur.isNullOrUndefined=function(t){return null==t},Ur.isNumber=function(t){return"number"==typeof t},Ur.isString=function(t){return"string"==typeof t},Ur.isSymbol=function(t){return"symbol"==typeof t},Ur.isUndefined=function(t){return void 0===t},Ur.isRegExp=function(e){return"[object RegExp]"===t(e)},Ur.isObject=function(t){return"object"==typeof t&&null!==t},Ur.isDate=function(e){return"[object Date]"===t(e)},Ur.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},Ur.isFunction=function(t){return"function"==typeof t},Ur.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},Ur.isBuffer=jr.Buffer.isBuffer,Ur}var Wr,Zr,qr={exports:{}},Yr=a(Be),Gr={exports:{}};function Vr(){return Zr||(Zr=1,function(t){try{var e=Yr;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=(Wr||(Wr=1,"function"==typeof Object.create?Gr.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Gr.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),Gr.exports)}}(qr)),qr.exports}var Kr,Xr,$r,Jr,Qr,tn,en,rn,nn,an={exports:{}};function on(){return Kr||(Kr=1,function(t){var e=Fr().Buffer,r=Yr;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,i,a=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=a,i=s,r.copy(n,i),s+=o.data.length,o=o.next;return a},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})}(an)),an.exports}function sn(){if($r)return Xr;$r=1;var t=Lr();function e(t,e){t.emit("error",e)}return Xr={destroy:function(r,n){var i=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||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,i,r),i._writableState&&(i._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)}},Xr}function un(){if(en)return tn;en=1;var t=Lr();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 i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}tn=p;var r,n=t.nextTick;p.WritableState=d;var a=Object.create(Hr());a.inherits=Vr();var o={deprecate:Qr?Jr:(Qr=1,Jr=Yr.deprecate)},s=Br(),u=Fr().Buffer,l=i.Uint8Array||function(){};var f,h=sn();function c(){}function d(i,a){r=r||ln(),i=i||{};var o=a instanceof r;this.objectMode=!!i.objectMode,o&&(this.objectMode=this.objectMode||!!i.writableObjectMode);var s=i.highWaterMark,u=i.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 f=!1===i.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=i.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 i=e._writableState,a=i.sync,o=i.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(i),r)!function(e,r,n,i,a){--r.pendingcb,n?(t.nextTick(a,i),t.nextTick(w,e,r),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,r))}(e,i,a,r,o);else{var s=m(i);s||i.corked||i.bufferProcessing||!i.bufferedRequest||v(e,i),a?n(b,e,i,s,o):b(e,i,s,o)}}(a,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||ln(),!(f.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,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,a,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 v(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var i=r.bufferedRequestCount,a=new Array(i),o=r.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)a[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;a.allBuffers=u,g(t,r,!0,r.length,a,"",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,f=n.encoding,h=n.callback;if(g(t,r,!1,r.objectMode?1:l.length,l,f,h),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function m(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=m(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 a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===p&&(t&&t._writableState instanceof d)}})):f=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 i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,u.isBuffer(i)||i 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=a.defaultEncoding),"function"!=typeof n&&(n=c),a.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,i){var a=!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(i,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(t,e,r,n,i,a){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,i);n!==o&&(r=!0,i="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 f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,s,n,i,a);return l}(this,a,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||v(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 i=this._writableState;"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),i.corked&&(i.corked=1,this.uncork()),i.ending||i.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,i,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=h.destroy,p.prototype._undestroy=h.undestroy,p.prototype._destroy=function(t,e){this.end(),e(t)},tn}function ln(){if(nn)return rn;nn=1;var t=Lr(),e=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};rn=u;var r=Object.create(Hr());r.inherits=Vr();var n=wn(),i=un();r.inherits(u,n);for(var a=e(i.prototype),o=0;o<a.length;o++){var s=a[o];u.prototype[s]||(u.prototype[s]=i.prototype[s])}function u(t){if(!(this instanceof u))return new u(t);n.call(this,t),i.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(f,this)}function f(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)},rn}var fn,hn,cn,dn,pn,gn,bn,vn,mn={};function yn(){if(fn)return mn;fn=1;var t=Fr().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=a,this.end=o,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=s,this.end=u,n=3;break;default:return this.write=l,void(this.end=f)}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 i(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 a(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 f(t){return t&&t.length?this.write(t):""}return mn.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 i=e.length-1;if(i<r)return 0;var a=n(e[i]);if(a>=0)return a>0&&(t.lastNeed=a-1),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(t.lastNeed=a-2),a;if(--i<r||-2===a)return 0;if((a=n(e[i]))>=0)return a>0&&(2===a?a=0:t.lastNeed=a-3),a;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},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},mn}function wn(){if(cn)return hn;cn=1;var t=Lr();hn=b;var e,r=function(){if(Rr)return Er;Rr=1;var t={}.toString;return Er=Array.isArray||function(e){return"[object Array]"==t.call(e)}}();b.ReadableState=g,Ir.EventEmitter;var n=function(t,e){return t.listeners(e).length},a=Br(),o=Fr().Buffer,s=i.Uint8Array||function(){};var u=Object.create(Hr());u.inherits=Vr();var l=Yr,f=void 0;f=l&&l.debuglog?l.debuglog("stream"):function(){};var h,c=on(),d=sn();u.inherits(b,a);var p=["error","close","destroy","pause","resume"];function g(t,r){t=t||{};var n=r instanceof(e=e||ln());this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,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&&(h||(h=yn().StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(e=e||ln(),!(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)),a.call(this)}function v(t,e,r,n,i){var a,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)):(i||(a=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)),a?t.emit("error",a):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")):m(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?m(t,u,e,!1):x(t,u)):m(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 m(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),v(this,t,e,!1,r)},b.prototype.unshift=function(t){return v(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){return h||(h=yn().StringDecoder),this._readableState.decoder=new h(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||(f("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?t.nextTick(k,e):k(e))}function k(t){f("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&&(f("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function C(t){f("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(f("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(f("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,i=r.data;t-=i.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=o.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(a.copy(r,r.length-t,0,s),0===(t-=s)){s===a.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(s));break}++i}return e.length-=i,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 L(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){f("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 f("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,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",i=!0),e.ended||e.reading?f("reading or ended",i=!1):i&&(f("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,i){var a=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,f("pipe count=%d opts=%j",o.pipesCount,i);var s=(!i||!1!==i.end)&&e!==jt.stdout&&e!==jt.stderr?l:m;function u(t,r){f("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",u),a.removeListener("end",l),a.removeListener("end",m),a.removeListener("data",p),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function l(){f("onend"),e.end()}o.endEmitted?t.nextTick(s):a.once("end",s),e.on("unpipe",u);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&n(t,"data")&&(e.flowing=!0,E(t))}}(a);e.on("drain",h);var c=!1;var d=!1;function p(t){f("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!c&&(f("false write response, pause",a._readableState.awaitDrain),a._readableState.awaitDrain++,d=!0),a.pause())}function g(t){f("onerror",t),m(),e.removeListener("error",g),0===n(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),m()}function v(){f("onfinish"),e.removeListener("close",b),m()}function m(){f("unpipe"),a.unpipe(e)}return a.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",v),e.emit("pipe",a),o.flowing||(f("pipe resume"),a.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,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=L(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=a.prototype.on.call(this,e,r);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.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||(f("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 f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<p.length;a++)t.on(p[a],this.emit.bind(this,p[a]));return this._read=function(e){f("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,hn}function _n(){if(pn)return dn;pn=1,dn=n;var t=ln(),e=Object.create(Hr());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 i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.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",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){a(t,e,r)})):a(this,null,null)}function a(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=Vr(),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 i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.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")}))},dn}function kn(){return vn||(vn=1,function(t,e){var r=Or;"disable"===jt.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=wn()).Stream=r||e,e.Readable=e,e.Writable=un(),e.Duplex=ln(),e.Transform=_n(),e.PassThrough=function(){if(bn)return gn;bn=1,gn=r;var t=_n(),e=Object.create(Hr());function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}return e.inherits=Vr(),e.inherits(r,t),r.prototype._transform=function(t,e,r){r(null,t)},gn}())}(Ft,Ft.exports)),Ft.exports}if(dt.base64=!0,dt.array=!0,dt.string=!0,dt.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,dt.nodebuffer=!0,dt.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)dt.blob=!1;else{var xn=new ArrayBuffer(0);try{dt.blob=0===new Blob([xn],{type:"application/zip"}).size}catch(t){try{var Sn=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Sn.append(xn),dt.blob=0===Sn.getBlob("application/zip").size}catch(t){dt.blob=!1}}}try{dt.nodestream=!!kn().Readable}catch(t){dt.nodestream=!1}var Cn,An={};function En(){if(Cn)return An;Cn=1;var t=Dn(),e=dt,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return An.encode=function(e){for(var n,i,a,o,s,u,l,f=[],h=0,c=e.length,d=c,p="string"!==t.getTypeOf(e);h<e.length;)d=c-h,p?(n=e[h++],i=h<c?e[h++]:0,a=h<c?e[h++]:0):(n=e.charCodeAt(h++),i=h<c?e.charCodeAt(h++):0,a=h<c?e.charCodeAt(h++):0),o=n>>2,s=(3&n)<<4|i>>4,u=d>1?(15&i)<<2|a>>6:64,l=d>2?63&a:64,f.push(r.charAt(o)+r.charAt(s)+r.charAt(u)+r.charAt(l));return f.join("")},An.decode=function(t){var n,i,a,o,s,u,l=0,f=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var c,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(c=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,i=(15&o)<<4|(s=r.indexOf(t.charAt(l++)))>>2,a=(3&s)<<6|(u=r.indexOf(t.charAt(l++))),c[f++]=n,64!==s&&(c[f++]=i),64!==u&&(c[f++]=a);return c},An}var Rn,On,Tn,Ln,Mn={isNode:!0,newBufferFrom:function(t,e){if(E.from&&E.from!==Uint8Array.from)return E.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new E(t,e)},allocBuffer:function(t){if(E.alloc)return E.alloc(t);var e=new E(t);return e.fill(0),e},isBuffer:function(t){return ft(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}};var In=null;In="undefined"!=typeof Promise?Promise:function(){if(Ln)return Tn;Ln=1;var t=function(){if(On)return Rn;On=1;var t,e,r=i.MutationObserver||i.WebKitMutationObserver;if(r){var n=0,a=new r(l),o=i.document.createTextNode("");a.observe(o,{characterData:!0}),t=function(){o.data=n=++n%2}}else if(i.setImmediate||void 0===i.MessageChannel)t="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var t=i.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},i.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var s=new i.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 Rn=function(r){1!==u.push(r)||e||t()}}();function e(){}var r={},n=["REJECTED"],a=["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&&h(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,i){t((function(){var t;try{t=n(i)}catch(t){return r.reject(e,t)}t===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,t)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function h(t,e){var n=!1;function i(e){n||(n=!0,r.reject(t,e))}function a(e){n||(n=!0,r.resolve(t,e))}var o=c((function(){e(a,i)}));"error"===o.status&&i(o.value)}function c(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}return Tn=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===a||"function"!=typeof r&&this.state===n)return this;var i=new this.constructor(e);return this.state!==o?l(i,this.state===a?t:r,this.outcome):this.queue.push(new u(i,t,r)),i},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=c(f,e);if("error"===n.status)return r.reject(t,n.value);var i=n.value;if(i)h(t,i);else{t.state=a,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=n,t.outcome=e;for(var r=-1,i=t.queue.length;++r<i;)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 i=t.length,a=!1;if(!i)return this.resolve([]);for(var o=new Array(i),s=0,u=-1,l=new this(e);++u<i;)f(t[u],u);return l;function f(t,e){n.resolve(t).then((function(t){o[e]=t,++s!==i||a||(a=!0,r.resolve(l,o))}),(function(t){a||(a=!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 i=t.length,a=!1;if(!i)return this.resolve([]);for(var o,s=-1,u=new this(e);++s<i;)o=t[s],n.resolve(o).then((function(t){a||(a=!0,r.resolve(u,t))}),(function(t){a||(a=!0,r.reject(u,t))}));return u},Tn}();var Pn,Bn={Promise:In};function Dn(){return Pn||(Pn=1,function(t){var e=dt,r=En(),n=Mn,i=Bn;function a(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=[],i=0,a=t.length;if(a<=r)return String.fromCharCode.apply(null,t);for(;i<a;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,a)))),i+=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),i=!0;if("uint8array"===n?i=s.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=s.applyCanBeUsed.nodebuffer),i)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 f={};f.string={string:a,array:function(t){return o(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return o(t,new Uint8Array(t.length))},nodebuffer:function(t){return o(t,n.allocBuffer(t.length))}},f.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(t)}},f.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return l(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return n.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return n.newBufferFrom(t)}},f.nodebuffer={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:a},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return f[n][e](r)},t.resolve=function(t){for(var e=t.split("/"),r=[],n=0;n<e.length;n++){var i=e[n];"."===i||""===i&&0!==n&&n!==e.length-1||(".."===i?r.pop():r.push(i))}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,a,s,u,l){return i.Promise.resolve(a).then((function(t){return e.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new i.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(a){var f,h=t.getTypeOf(a);return h?("arraybuffer"===h?a=t.transformTo("uint8array",a):"string"===h&&(l?a=r.decode(a):s&&!0!==u&&(a=o(f=a,e.uint8array?new Uint8Array(f.length):new Array(f.length)))),a):i.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}}(h)),h}function zn(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,i,a,o,s=1,u={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){Ct((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?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,r=function(t){var e=f.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)}:(a="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),r=function(e){t.postMessage(a+e,"*")}),h.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 i={callback:t,args:e};return u[s]=i,r(s),s++},h.clearImmediate=c}function c(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{c(t),l=!1}}}}}("undefined"==typeof self?i:self),zn.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 jn=zn;!function(t){for(var e=Dn(),r=dt,n=Mn,i=jn,a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;function s(){i.call(this,"utf-8 decode"),this.leftOver=null}function u(){i.call(this,"utf-8 encode")}t.utf8encode=function(t){return r.nodebuffer?n.newBufferFrom(t,"utf-8"):function(t){var e,n,i,a,o,s=t.length,u=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),o=0,a=0;o<u;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),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,i,o,s=t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}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,i),s.prototype.processChunk=function(n){var i=e.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);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+a[t[r]]>e?r:e}(i),u=i;s!==i.length&&(r.uint8array?(u=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(u=i.slice(0,s),this.leftOver=i.slice(s,i.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,i),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u}(f);var Fn=jn,Nn=Dn();function Un(t){Fn.call(this,"ConvertWorker to "+t),this.destType=t}Nn.inherits(Un,Fn),Un.prototype.processChunk=function(t){this.push({data:Nn.transformTo(this.destType,t.data),meta:t.meta})};var Hn,Wn,Zn=Un;var qn=Dn(),Yn=Zn,Gn=jn,Vn=En(),Kn=Bn,Xn=null;if(dt.nodestream)try{Xn=function(){if(Wn)return Hn;Wn=1;var t=kn().Readable;function e(e,r,n){t.call(this,r),this._helper=e;var i=this;e.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}return Dn().inherits(e,t),e.prototype._read=function(){this._helper.resume()},Hn=e}()}catch(t){}function $n(t,e){return new Kn.Promise((function(r,n){var i=[],a=t._internalType,o=t._outputType,s=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return qn.newBlob(qn.transformTo("arraybuffer",e),r);case"base64":return Vn.encode(e);default:return qn.transformTo(t,e)}}(o,function(t,e){var r,n=0,i=null,a=0;for(r=0;r<e.length;r++)a+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(a),r=0;r<e.length;r++)i.set(e[r],n),n+=e[r].length;return i;case"nodebuffer":return E.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,i),s);r(t)}catch(t){n(t)}i=[]})).resume()}))}function Jn(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,qn.checkSupport(n),this._worker=t.pipe(new Yn(n)),t.lock()}catch(t){this._worker=new Gn("error"),this._worker.error(t)}}Jn.prototype={accumulate:function(t){return $n(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(){qn.delay(e,arguments,r)})),this},resume:function(){return qn.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(qn.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new Xn(this,{objectMode:"nodebuffer"!==this._outputType},t)}};var Qn=Jn,ti={base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null},ei=Dn(),ri=jn;function ni(t){ri.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=ei.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}ei.inherits(ni,ri),ni.prototype.cleanUp=function(){ri.prototype.cleanUp.call(this),this.data=null},ni.prototype.resume=function(){return!!ri.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,ei.delay(this._tickAndRepeat,[],this)),!0)},ni.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(ei.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},ni.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 ii=ni,ai=Dn();var oi=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 si=function(t,e){return void 0!==t&&t.length?"string"!==ai.getTypeOf(t)?function(t,e,r,n){var i=oi,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}(0|e,t,t.length,0):function(t,e,r,n){var i=oi,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length,0):0},ui=jn,li=si;function fi(){ui.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Dn().inherits(fi,ui),fi.prototype.processChunk=function(t){this.streamInfo.crc32=li(t.data,this.streamInfo.crc32||0),this.push(t)};var hi=fi,ci=Dn(),di=jn;function pi(t){di.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}ci.inherits(pi,di),pi.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}di.prototype.processChunk.call(this,t)};var gi=Bn,bi=ii,vi=hi,mi=pi;function yi(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}yi.prototype={getContentWorker:function(){var t=new bi(gi.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new mi("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 bi(gi.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},yi.createWorkerFrom=function(t,e,r){return t.pipe(new vi).pipe(new mi("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new mi("compressedSize")).withStreamInfo("compression",e)};var wi=yi,_i=Qn,ki=ii,xi=f,Si=wi,Ci=jn,Ai=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}};Ai.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 i=!this._dataBinary;i&&!n&&(e=e.pipe(new xi.Utf8EncodeWorker)),!i&&n&&(e=e.pipe(new xi.Utf8DecodeWorker))}catch(t){(e=new Ci("error")).error(t)}return new _i(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 Si&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xi.Utf8EncodeWorker)),Si.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof Si?this._data.getContentWorker():this._data instanceof Ci?this._data:new ki(this._data)}};for(var Ei=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ri=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Oi=0;Oi<Ei.length;Oi++)Ai.prototype[Ei[Oi]]=Ri;var Ti=Ai,Li={},Mi={},Ii={},Pi={};!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 i in n)r(n,i)&&(t[i]=n[i])}}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,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,o;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(o=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],o.set(a,i),i+=a.length;return o}},i={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},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,i))},t.setTyped(e)}(Pi);var Bi={},Di={},zi={},ji=Pi;function Fi(t){for(var e=t.length;--e>=0;)t[e]=0}var Ni=256,Ui=286,Hi=30,Wi=15,Zi=[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],qi=[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],Yi=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vi=new Array(576);Fi(Vi);var Ki=new Array(60);Fi(Ki);var Xi=new Array(512);Fi(Xi);var $i=new Array(256);Fi($i);var Ji=new Array(29);Fi(Ji);var Qi,ta,ea,ra=new Array(Hi);function na(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function ia(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function aa(t){return t<256?Xi[t]:Xi[256+(t>>>7)]}function oa(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function sa(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,oa(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 ua(t,e,r){sa(t,r[2*e],r[2*e+1])}function la(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function fa(t,e,r){var n,i,a=new Array(16),o=0;for(n=1;n<=Wi;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=la(a[s]++,s))}}function ha(t){var e;for(e=0;e<Ui;e++)t.dyn_ltree[2*e]=0;for(e=0;e<Hi;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 ca(t){t.bi_valid>8?oa(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 da(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function pa(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&da(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!da(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function ga(t,e,r){var n,i,a,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],i=t.pending_buf[t.l_buf+s],s++,0===n?ua(t,i,e):(ua(t,(a=$i[i])+Ni+1,e),0!==(o=Zi[a])&&sa(t,i-=Ji[a],o),ua(t,a=aa(--n),r),0!==(o=qi[a])&&sa(t,n-=ra[a],o))}while(s<t.last_lit);ua(t,256,e)}function ba(t,e){var r,n,i,a=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!==a[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=l,r=t.heap_len>>1;r>=1;r--)pa(t,a,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pa(t,a,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,a[2*i]=a[2*r]+a[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,a[2*r+1]=a[2*n+1]=i,t.heap[1]=i++,pa(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,a,o,s,u=e.dyn_tree,l=e.max_code,f=e.stat_desc.static_tree,h=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(a=0;a<=Wi;a++)t.bl_count[a]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(a=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(a=p,g++),u[2*n+1]=a,n>l||(t.bl_count[a]++,o=0,n>=d&&(o=c[n-d]),s=u[2*n],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(f[2*n+1]+o)));if(0!==g){do{for(a=p-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(n=t.bl_count[a];0!==n;)(i=t.heap[--r])>l||(u[2*i+1]!==a&&(t.opt_len+=(a-u[2*i+1])*u[2*i],u[2*i+1]=a),n--)}}(t,e),fa(a,l,t.bl_count)}function va(t,e,r){var n,i,a=-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++)i=o,o=e[2*(n+1)+1],++s<u&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function ma(t,e,r){var n,i,a=-1,o=e[1],s=0,u=7,l=4;for(0===o&&(u=138,l=3),n=0;n<=r;n++)if(i=o,o=e[2*(n+1)+1],!(++s<u&&i===o)){if(s<l)do{ua(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(ua(t,i,t.bl_tree),s--),ua(t,16,t.bl_tree),sa(t,s-3,2)):s<=10?(ua(t,17,t.bl_tree),sa(t,s-3,3)):(ua(t,18,t.bl_tree),sa(t,s-11,7));s=0,a=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}Fi(ra);var ya=!1;function wa(t,e,r,n){sa(t,0+(n?1:0),3),function(t,e,r,n){ca(t),n&&(oa(t,r),oa(t,~r)),ji.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}zi._tr_init=function(t){ya||(!function(){var t,e,r,n,i,a=new Array(16);for(r=0,n=0;n<28;n++)for(Ji[n]=r,t=0;t<1<<Zi[n];t++)$i[r++]=n;for($i[r-1]=n,i=0,n=0;n<16;n++)for(ra[n]=i,t=0;t<1<<qi[n];t++)Xi[i++]=n;for(i>>=7;n<Hi;n++)for(ra[n]=i<<7,t=0;t<1<<qi[n]-7;t++)Xi[256+i++]=n;for(e=0;e<=Wi;e++)a[e]=0;for(t=0;t<=143;)Vi[2*t+1]=8,t++,a[8]++;for(;t<=255;)Vi[2*t+1]=9,t++,a[9]++;for(;t<=279;)Vi[2*t+1]=7,t++,a[7]++;for(;t<=287;)Vi[2*t+1]=8,t++,a[8]++;for(fa(Vi,287,a),t=0;t<Hi;t++)Ki[2*t+1]=5,Ki[2*t]=la(t,5);Qi=new na(Vi,Zi,257,Ui,Wi),ta=new na(Ki,qi,0,Hi,Wi),ea=new na(new Array(0),Yi,0,19,7)}(),ya=!0),t.l_desc=new ia(t.dyn_ltree,Qi),t.d_desc=new ia(t.dyn_dtree,ta),t.bl_desc=new ia(t.bl_tree,ea),t.bi_buf=0,t.bi_valid=0,ha(t)},zi._tr_stored_block=wa,zi._tr_flush_block=function(t,e,r,n){var i,a,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<Ni;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),ba(t,t.l_desc),ba(t,t.d_desc),o=function(t){var e;for(va(t,t.dyn_ltree,t.l_desc.max_code),va(t,t.dyn_dtree,t.d_desc.max_code),ba(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Gi[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?wa(t,e,r,n):4===t.strategy||a===i?(sa(t,2+(n?1:0),3),ga(t,Vi,Ki)):(sa(t,4+(n?1:0),3),function(t,e,r,n){var i;for(sa(t,e-257,5),sa(t,r-1,5),sa(t,n-4,4),i=0;i<n;i++)sa(t,t.bl_tree[2*Gi[i]+1],3);ma(t,t.dyn_ltree,e-1),ma(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),ga(t,t.dyn_ltree,t.dyn_dtree)),ha(t),n&&ca(t)},zi._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*($i[r]+Ni+1)]++,t.dyn_dtree[2*aa(e)]++),t.last_lit===t.lit_bufsize-1},zi._tr_align=function(t){sa(t,2,3),ua(t,256,Vi),function(t){16===t.bi_valid?(oa(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 _a=function(t,e,r,n){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{a=a+(i=i+e[n++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0};var ka=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 xa,Sa=function(t,e,r,n){var i=ka,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^i[255&(t^e[o])];return-1^t},Ca={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"},Aa=Pi,Ea=zi,Ra=_a,Oa=Sa,Ta=Ca,La=-2,Ma=258,Ia=262,Pa=103,Ba=113,Da=666;function za(t,e){return t.msg=Ta[e],e}function ja(t){return(t<<1)-(t>4?9:0)}function Fa(t){for(var e=t.length;--e>=0;)t[e]=0}function Na(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(Aa.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 Ua(t,e){Ea._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Na(t.strm)}function Ha(t,e){t.pending_buf[t.pending++]=e}function Wa(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Za(t,e){var r,n,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-Ia?t.strstart-(t.w_size-Ia):0,l=t.window,f=t.w_mask,h=t.prev,c=t.strstart+Ma,d=l[a+o-1],p=l[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(r=e)+o]===p&&l[r+o-1]===d&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<c);if(n=Ma-(c-a),a=c-Ma,n>o){if(t.match_start=e,o=n,n>=s)break;d=l[a+o-1],p=l[a+o]}}}while((e=h[e&f])>u&&0!=--i);return o<=t.lookahead?o:t.lookahead}function qa(t){var e,r,n,i,a,o,s,u,l,f,h=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-Ia)){Aa.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=h?n-h:0}while(--r);e=r=h;do{n=t.prev[--e],t.prev[e]=n>=h?n-h:0}while(--r);i+=h}if(0===t.strm.avail_in)break;if(o=t.strm,s=t.window,u=t.strstart+t.lookahead,l=i,f=void 0,(f=o.avail_in)>l&&(f=l),r=0===f?0:(o.avail_in-=f,Aa.arraySet(s,o.input,o.next_in,f,u),1===o.state.wrap?o.adler=Ra(o.adler,s,f,u):2===o.state.wrap&&(o.adler=Oa(o.adler,s,f,u)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<Ia&&0!==t.strm.avail_in)}function Ya(t,e){for(var r,n;;){if(t.lookahead<Ia){if(qa(t),t.lookahead<Ia&&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-Ia&&(t.match_length=Za(t,r)),t.match_length>=3)if(n=Ea._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=Ea._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}function Ga(t,e){for(var r,n,i;;){if(t.lookahead<Ia){if(qa(t),t.lookahead<Ia&&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-Ia&&(t.match_length=Za(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){i=t.strstart+t.lookahead-3,n=Ea._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<=i&&(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&&(Ua(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=Ea._tr_tally(t,0,t.window[t.strstart-1]))&&Ua(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=Ea._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}function Va(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function Ka(){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 Aa.Buf16(1146),this.dyn_dtree=new Aa.Buf16(122),this.bl_tree=new Aa.Buf16(78),Fa(this.dyn_ltree),Fa(this.dyn_dtree),Fa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Aa.Buf16(16),this.heap=new Aa.Buf16(573),Fa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Aa.Buf16(573),Fa(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 Xa(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:Ba,t.adler=2===e.wrap?0:1,e.last_flush=0,Ea._tr_init(e),0):za(t,La)}function $a(t){var e,r=Xa(t);return 0===r&&((e=t.state).window_size=2*e.w_size,Fa(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[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 Ja(t,e,r,n,i,a){if(!t)return La;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return za(t,La);8===n&&(n=9);var s=new Ka;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=i+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 Aa.Buf8(2*s.w_size),s.head=new Aa.Buf16(s.hash_size),s.prev=new Aa.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Aa.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=a,s.method=r,$a(t)}xa=[new Va(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(qa(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,Ua(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Ia&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ua(t,!1),t.strm.avail_out),1)})),new Va(4,4,8,4,Ya),new Va(4,5,16,8,Ya),new Va(4,6,32,32,Ya),new Va(4,4,16,16,Ga),new Va(8,16,32,32,Ga),new Va(8,16,128,128,Ga),new Va(8,32,128,256,Ga),new Va(32,128,258,1024,Ga),new Va(32,258,258,4096,Ga)],Di.deflateInit=function(t,e){return Ja(t,e,8,15,8,0)},Di.deflateInit2=Ja,Di.deflateReset=$a,Di.deflateResetKeep=Xa,Di.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?La:(t.state.gzhead=e,0):La},Di.deflate=function(t,e){var r,n,i,a;if(!t||!t.state||e>5||e<0)return t?za(t,La):La;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===Da&&4!==e)return za(t,0===t.avail_out?-5:La);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Ha(n,31),Ha(n,139),Ha(n,8),n.gzhead?(Ha(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)),Ha(n,255&n.gzhead.time),Ha(n,n.gzhead.time>>8&255),Ha(n,n.gzhead.time>>16&255),Ha(n,n.gzhead.time>>24&255),Ha(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Ha(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ha(n,255&n.gzhead.extra.length),Ha(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=Oa(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Ha(n,0),Ha(n,0),Ha(n,0),Ha(n,0),Ha(n,0),Ha(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Ha(n,3),n.status=Ba);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=Ba,Wa(n,o),0!==n.strstart&&(Wa(n,t.adler>>>16),Wa(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=Oa(t.adler,n.pending_buf,n.pending-i,i)),Na(t),i=n.pending,n.pending!==n.pending_buf_size));)Ha(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=Oa(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Oa(t.adler,n.pending_buf,n.pending-i,i)),Na(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Ha(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=Oa(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=Oa(t.adler,n.pending_buf,n.pending-i,i)),Na(t),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Ha(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(t.adler=Oa(t.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=Pa)}else n.status=Pa;if(n.status===Pa&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Na(t),n.pending+2<=n.pending_buf_size&&(Ha(n,255&t.adler),Ha(n,t.adler>>8&255),t.adler=0,n.status=Ba)):n.status=Ba),0!==n.pending){if(Na(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&ja(e)<=ja(r)&&4!==e)return za(t,-5);if(n.status===Da&&0!==t.avail_in)return za(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==Da){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(qa(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=Ea._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,a,o=t.window;;){if(t.lookahead<=Ma){if(qa(t),t.lookahead<=Ma&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=t.strstart+Ma;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);t.match_length=Ma-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=Ea._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Ea._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Ua(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ua(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ua(t,!1),0===t.strm.avail_out)?1:2}(n,e):xa[n.level].func(n,e);if(3!==s&&4!==s||(n.status=Da),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?Ea._tr_align(n):5!==e&&(Ea._tr_stored_block(n,0,0,!1),3===e&&(Fa(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Na(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Ha(n,255&t.adler),Ha(n,t.adler>>8&255),Ha(n,t.adler>>16&255),Ha(n,t.adler>>24&255),Ha(n,255&t.total_in),Ha(n,t.total_in>>8&255),Ha(n,t.total_in>>16&255),Ha(n,t.total_in>>24&255)):(Wa(n,t.adler>>>16),Wa(n,65535&t.adler)),Na(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Di.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Pa&&e!==Ba&&e!==Da?za(t,La):(t.state=null,e===Ba?za(t,-3):0):La},Di.deflateSetDictionary=function(t,e){var r,n,i,a,o,s,u,l,f=e.length;if(!t||!t.state)return La;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return La;for(1===a&&(t.adler=Ra(t.adler,e,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(Fa(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new Aa.Buf8(r.w_size),Aa.arraySet(l,e,f-r.w_size,r.w_size,0),e=l,f=r.w_size),o=t.avail_in,s=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,qa(r);r.lookahead>=3;){n=r.strstart,i=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(--i);r.strstart=n,r.lookahead=2,qa(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=a,0},Di.deflateInfo="pako deflate (from Nodeca project)";var Qa={},to=Pi,eo=!0,ro=!0;try{String.fromCharCode.apply(null,[0])}catch(t){eo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){ro=!1}for(var no=new to.Buf8(256),io=0;io<256;io++)no[io]=io>=252?6:io>=248?5:io>=240?4:io>=224?3:io>=192?2:1;function ao(t,e){if(e<65534&&(t.subarray&&ro||!t.subarray&&eo))return String.fromCharCode.apply(null,to.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}no[254]=no[254]=1,Qa.string2buf=function(t){var e,r,n,i,a,o=t.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new to.Buf8(s),a=0,i=0;a<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},Qa.buf2binstring=function(t){return ao(t,t.length)},Qa.binstring2buf=function(t){for(var e=new to.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},Qa.buf2string=function(t,e){var r,n,i,a,o=e||t.length,s=new Array(2*o);for(n=0,r=0;r<o;)if((i=t[r++])<128)s[n++]=i;else if((a=no[i])>4)s[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&r<o;)i=i<<6|63&t[r++],a--;a>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return ao(s,n)},Qa.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+no[t[r]]>e?r:e};var oo=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},so=Di,uo=Pi,lo=Qa,fo=Ca,ho=oo,co=Object.prototype.toString;function po(t){if(!(this instanceof po))return new po(t);this.options=uo.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 ho,this.strm.avail_out=0;var r=so.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(fo[r]);if(e.header&&so.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?lo.string2buf(e.dictionary):"[object ArrayBuffer]"===co.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=so.deflateSetDictionary(this.strm,n)))throw new Error(fo[r]);this._dict_set=!0}}function go(t,e){var r=new po(e);if(r.push(t,!0),r.err)throw r.msg||fo[r.err];return r.result}po.prototype.push=function(t,e){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=lo.string2buf(t):"[object ArrayBuffer]"===co.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new uo.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=so.deflate(i,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(lo.buf2binstring(uo.shrinkBuf(i.output,i.next_out))):this.onData(uo.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=so.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),i.avail_out=0,!0)},po.prototype.onData=function(t){this.chunks.push(t)},po.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=uo.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Bi.Deflate=po,Bi.deflate=go,Bi.deflateRaw=function(t,e){return(e=e||{}).raw=!0,go(t,e)},Bi.gzip=function(t,e){return(e=e||{}).gzip=!0,go(t,e)};var bo={},vo={},mo=Pi,yo=15,wo=[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],_o=[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],ko=[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],xo=[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],So=Pi,Co=_a,Ao=Sa,Eo=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A;r=t.state,n=t.next_in,C=t.input,i=n+(t.avail_in-5),a=t.next_out,A=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),u=r.dmax,l=r.wsize,f=r.whave,h=r.wnext,c=r.window,d=r.hold,p=r.bits,g=r.lencode,b=r.distcode,v=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do{p<15&&(d+=C[n++]<<p,p+=8,d+=C[n++]<<p,p+=8),y=g[d&v];e:for(;;){if(d>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))A[a++]=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&m];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=a-o)){if((w=k-w)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=0,S=c,0===h){if(x+=l-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}else if(h<w){if(x+=l+h-w,(w-=h)<_){_-=w;do{A[a++]=c[x++]}while(--w);if(x=0,h<_){_-=w=h;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}}}else if(x+=h-w,w<_){_-=w;do{A[a++]=c[x++]}while(--w);x=a-k,S=A}for(;_>2;)A[a++]=S[x++],A[a++]=S[x++],A[a++]=S[x++],_-=3;_&&(A[a++]=S[x++],_>1&&(A[a++]=S[x++]))}else{x=a-k;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],_-=3}while(_>2);_&&(A[a++]=A[x++],_>1&&(A[a++]=A[x++]))}break}}break}}while(n<i&&a<s);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p},Ro=function(t,e,r,n,i,a,o,s){var u,l,f,h,c,d,p,g,b,v=s.bits,m=0,y=0,w=0,_=0,k=0,x=0,S=0,C=0,A=0,E=0,R=null,O=0,T=new mo.Buf16(16),L=new mo.Buf16(16),M=null,I=0;for(m=0;m<=yo;m++)T[m]=0;for(y=0;y<n;y++)T[e[r+y]]++;for(k=v,_=yo;_>=1&&0===T[_];_--);if(k>_&&(k=_),0===_)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(w=1;w<_&&0===T[w];w++);for(k<w&&(k=w),C=1,m=1;m<=yo;m++)if(C<<=1,(C-=T[m])<0)return-1;if(C>0&&(0===t||1!==_))return-1;for(L[1]=0,m=1;m<yo;m++)L[m+1]=L[m]+T[m];for(y=0;y<n;y++)0!==e[r+y]&&(o[L[e[r+y]]++]=y);if(0===t?(R=M=o,d=19):1===t?(R=wo,O-=257,M=_o,I-=257,d=256):(R=ko,M=xo,d=-1),E=0,y=0,m=w,c=a,x=k,S=0,f=-1,h=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=m-S,o[y]<d?(g=0,b=o[y]):o[y]>d?(g=M[I+o[y]],b=R[O+o[y]]):(g=96,b=0),u=1<<m-S,w=l=1<<x;do{i[c+(E>>S)+(l-=u)]=p<<24|g<<16|b|0}while(0!==l);for(u=1<<m-1;E&u;)u>>=1;if(0!==u?(E&=u-1,E+=u):E=0,y++,0==--T[m]){if(m===_)break;m=e[r+o[y]]}if(m>k&&(E&h)!==f){for(0===S&&(S=k),c+=w,C=1<<(x=m-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;i[f=E&h]=k<<24|x<<16|c-a|0}}return 0!==E&&(i[c+E]=m-S<<24|64<<16|0),s.bits=k,0},Oo=-2,To=12,Lo=30;function Mo(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Io(){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 So.Buf16(320),this.work=new So.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Po(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 So.Buf32(852),e.distcode=e.distdyn=new So.Buf32(592),e.sane=1,e.back=-1,0):Oo}function Bo(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,Po(t)):Oo}function Do(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)?Oo:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,Bo(t))):Oo}function zo(t,e){var r,n;return t?(n=new Io,t.state=n,n.window=null,0!==(r=Do(t,e))&&(t.state=null),r):Oo}var jo,Fo,No=!0;function Uo(t){if(No){var e;for(jo=new So.Buf32(512),Fo=new So.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(Ro(1,t.lens,0,288,jo,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ro(2,t.lens,0,32,Fo,0,t.work,{bits:5}),No=!1}t.lencode=jo,t.lenbits=9,t.distcode=Fo,t.distbits=5}function Ho(t,e,r,n){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new So.Buf8(a.wsize)),n>=a.wsize?(So.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>n&&(i=n),So.arraySet(a.window,e,r-n,i,a.wnext),(n-=i)?(So.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}vo.inflateReset=Bo,vo.inflateReset2=Do,vo.inflateResetKeep=Po,vo.inflateInit=function(t){return zo(t,15)},vo.inflateInit2=zo,vo.inflate=function(t,e){var r,n,i,a,o,s,u,l,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A=0,E=new So.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 Oo;(r=t.state).mode===To&&(r.mode=13),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,h=s,c=u,x=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(2&r.wrap&&35615===l){r.check=0,E[0]=255&l,E[1]=l>>>8&255,r.check=Ao(r.check,E,2,0),l=0,f=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=Lo;break}if(8!=(15&l)){t.msg="unknown compression method",r.mode=Lo;break}if(f-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=Lo;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&l?10:To,l=0,f=0;break;case 2:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.flags=l,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=Lo;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=Lo;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(E[0]=255&l,E[1]=l>>>8&255,r.check=Ao(r.check,E,2,0)),l=0,f=0,r.mode=3;case 3:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=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=Ao(r.check,E,4,0)),l=0,f=0,r.mode=4;case 4:for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=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=Ao(r.check,E,2,0)),l=0,f=0,r.mode=5;case 5:if(1024&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=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=Ao(r.check,E,2,0)),l=0,f=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)),So.arraySet(r.head.extra,n,a,d,k)),512&r.flags&&(r.check=Ao(r.check,n,d,a)),s-=d,a+=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[a+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=Ao(r.check,n,d,a)),s-=d,a+=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[a+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&r.flags&&(r.check=Ao(r.check,n,d,a)),s-=d,a+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;f<16;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(65535&r.check)){t.msg="header crc mismatch",r.mode=Lo;break}l=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=To;break;case 10:for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}t.adler=r.check=Mo(l),l=0,f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,2;t.adler=r.check=1,r.mode=To;case To:if(5===e||6===e)break t;case 13:if(r.last){l>>>=7&f,f-=7&f,r.mode=27;break}for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}switch(r.last=1&l,f-=1,3&(l>>>=1)){case 0:r.mode=14;break;case 1:if(Uo(r),r.mode=20,6===e){l>>>=2,f-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=Lo}l>>>=2,f-=2;break;case 14:for(l>>>=7&f,f-=7&f;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=Lo;break}if(r.length=65535&l,l=0,f=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;So.arraySet(i,n,a,d,o),s-=d,a+=d,u-=d,o+=d,r.length-=d;break}r.mode=To;break;case 17:for(;f<14;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(r.nlen=257+(31&l),l>>>=5,f-=5,r.ndist=1+(31&l),l>>>=5,f-=5,r.ncode=4+(15&l),l>>>=4,f-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=Lo;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;f<3;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.lens[R[r.have++]]=7&l,l>>>=3,f-=3}for(;r.have<19;)r.lens[R[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=Ro(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=Lo;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,m=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(m<16)l>>>=b,f-=b,r.lens[r.have++]=m;else{if(16===m){for(C=b+2;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l>>>=b,f-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=Lo;break}k=r.lens[r.have-1],d=3+(3&l),l>>>=2,f-=2}else if(17===m){for(C=b+3;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=3+(7&(l>>>=b)),l>>>=3,f-=3}else{for(C=b+7;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}f-=b,k=0,d=11+(127&(l>>>=b)),l>>>=7,f-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=Lo;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===Lo)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=Lo;break}if(r.lenbits=9,S={bits:r.lenbits},x=Ro(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=Lo;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=Ro(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=Lo;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=a,t.avail_in=s,r.hold=l,r.bits=f,Eo(t,c),o=t.next_out,i=t.output,u=t.avail_out,a=t.next_in,n=t.input,s=t.avail_in,l=r.hold,f=r.bits,r.mode===To&&(r.back=-1);break}for(r.back=0;v=(A=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,m=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(v&&0==(240&v)){for(y=b,w=v,_=m;v=(A=r.lencode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,m=65535&A,!(y+(b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,r.length=m,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=To;break}if(64&v){t.msg="invalid literal/length code",r.mode=Lo;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(A=r.distcode[l&(1<<r.distbits)-1])>>>16&255,m=65535&A,!((b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(0==(240&v)){for(y=b,w=v,_=m;v=(A=r.distcode[_+((l&(1<<y+w)-1)>>y)])>>>16&255,m=65535&A,!(y+(b=A>>>24)<=f);){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}l>>>=y,f-=y,r.back+=y}if(l>>>=b,f-=b,r.back+=b,64&v){t.msg="invalid distance code",r.mode=Lo;break}r.offset=m,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(C=r.extra;f<C;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=Lo;break}r.mode=25;case 25:if(0===u)break t;if(d=c-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=Lo;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=i,p=o-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[o++]=g[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[o++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;f<32;){if(0===s)break t;s--,l|=n[a++]<<f,f+=8}if(c-=u,t.total_out+=c,r.total+=c,c&&(t.adler=r.check=r.flags?Ao(r.check,i,c,o-c):Co(r.check,i,c,o-c)),c=u,(r.flags?l:Mo(l))!==r.check){t.msg="incorrect data check",r.mode=Lo;break}l=0,f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;f<32;){if(0===s)break t;s--,l+=n[a++]<<f,f+=8}if(l!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=Lo;break}l=0,f=0}r.mode=29;case 29:x=1;break t;case Lo:x=-3;break t;case 31:return-4;default:return Oo}return t.next_out=o,t.avail_out=u,t.next_in=a,t.avail_in=s,r.hold=l,r.bits=f,(r.wsize||c!==t.avail_out&&r.mode<Lo&&(r.mode<27||4!==e))&&Ho(t,t.output,t.next_out,c-t.avail_out),h-=t.avail_in,c-=t.avail_out,t.total_in+=h,t.total_out+=c,r.total+=c,r.wrap&&c&&(t.adler=r.check=r.flags?Ao(r.check,i,c,t.next_out-c):Co(r.check,i,c,t.next_out-c)),t.data_type=r.bits+(r.last?64:0)+(r.mode===To?128:0)+(20===r.mode||15===r.mode?256:0),(0===h&&0===c||4===e)&&0===x&&(x=-5),x},vo.inflateEnd=function(t){if(!t||!t.state)return Oo;var e=t.state;return e.window&&(e.window=null),t.state=null,0},vo.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?Oo:(r.head=e,e.done=!1,0):Oo},vo.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?Oo:11===r.mode&&Co(1,e,n,0)!==r.check?-3:Ho(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):Oo},vo.inflateInfo="pako inflate (from Nodeca project)";var Wo={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 Zo=vo,qo=Pi,Yo=Qa,Go=Wo,Vo=Ca,Ko=oo,Xo=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},$o=Object.prototype.toString;function Jo(t){if(!(this instanceof Jo))return new Jo(t);this.options=qo.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 Ko,this.strm.avail_out=0;var r=Zo.inflateInit2(this.strm,e.windowBits);if(r!==Go.Z_OK)throw new Error(Vo[r]);if(this.header=new Xo,Zo.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Yo.string2buf(e.dictionary):"[object ArrayBuffer]"===$o.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Zo.inflateSetDictionary(this.strm,e.dictionary))!==Go.Z_OK))throw new Error(Vo[r])}function Qo(t,e){var r=new Jo(e);if(r.push(t,!0),r.err)throw r.msg||Vo[r.err];return r.result}Jo.prototype.push=function(t,e){var r,n,i,a,o,s=this.strm,u=this.options.chunkSize,l=this.options.dictionary,f=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?Go.Z_FINISH:Go.Z_NO_FLUSH,"string"==typeof t?s.input=Yo.binstring2buf(t):"[object ArrayBuffer]"===$o.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 qo.Buf8(u),s.next_out=0,s.avail_out=u),(r=Zo.inflate(s,Go.Z_NO_FLUSH))===Go.Z_NEED_DICT&&l&&(r=Zo.inflateSetDictionary(this.strm,l)),r===Go.Z_BUF_ERROR&&!0===f&&(r=Go.Z_OK,f=!1),r!==Go.Z_STREAM_END&&r!==Go.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==Go.Z_STREAM_END&&(0!==s.avail_in||n!==Go.Z_FINISH&&n!==Go.Z_SYNC_FLUSH)||("string"===this.options.to?(i=Yo.utf8border(s.output,s.next_out),a=s.next_out-i,o=Yo.buf2string(s.output,i),s.next_out=a,s.avail_out=u-a,a&&qo.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(qo.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(f=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==Go.Z_STREAM_END);return r===Go.Z_STREAM_END&&(n=Go.Z_FINISH),n===Go.Z_FINISH?(r=Zo.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Go.Z_OK):n!==Go.Z_SYNC_FLUSH||(this.onEnd(Go.Z_OK),s.avail_out=0,!0)},Jo.prototype.onData=function(t){this.chunks.push(t)},Jo.prototype.onEnd=function(t){t===Go.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=qo.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},bo.Inflate=Jo,bo.inflate=Qo,bo.inflateRaw=function(t,e){return(e=e||{}).raw=!0,Qo(t,e)},bo.ungzip=Qo;var ts={};(0,Pi.assign)(ts,Bi,bo,Wo);var es="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,rs=ts,ns=Dn(),is=jn,as=es?"uint8array":"array";function os(t,e){is.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}Ii.magic="\b\0",ns.inherits(os,is),os.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(ns.transformTo(as,t.data),!1)},os.prototype.flush=function(){is.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},os.prototype.cleanUp=function(){is.prototype.cleanUp.call(this),this._pako=null},os.prototype._createPako=function(){this._pako=new rs[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Ii.compressWorker=function(t){return new os("Deflate",t)},Ii.uncompressWorker=function(){return new os("Inflate",{})};var ss=jn;Mi.STORE={magic:"\0\0",compressWorker:function(){return new ss("STORE compression")},uncompressWorker:function(){return new ss("STORE decompression")}},Mi.DEFLATE=Ii;var us={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"},ls=Dn(),fs=jn,hs=f,cs=si,ds=us,ps=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},gs=function(t,e,r,n,i,a){var o,s,u=t.file,l=t.compression,f=a!==hs.utf8encode,h=ls.transformTo("string",a(u.name)),c=ls.transformTo("string",hs.utf8encode(u.name)),d=u.comment,p=ls.transformTo("string",a(d)),g=ls.transformTo("string",hs.utf8encode(d)),b=c.length!==u.name.length,v=g.length!==d.length,m="",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),f||!b&&!v||(S|=2048);var C,A,E,R=0,O=0;_&&(R|=16),"UNIX"===i?(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=ps(1,1)+ps(cs(h),4)+c,m+="up"+ps(y.length,2)+y),v&&(w=ps(1,1)+ps(cs(p),4)+g,m+="uc"+ps(w.length,2)+w);var T="";return T+="\n\0",T+=ps(S,2),T+=l.magic,T+=ps(o,2),T+=ps(s,2),T+=ps(x.crc32,4),T+=ps(x.compressedSize,4),T+=ps(x.uncompressedSize,4),T+=ps(h.length,2),T+=ps(m.length,2),{fileRecord:ds.LOCAL_FILE_HEADER+T+h+m,dirRecord:ds.CENTRAL_FILE_HEADER+ps(O,2)+T+ps(p.length,2)+"\0\0\0\0"+ps(R,4)+ps(n,4)+h+m+p}},bs=function(t){return ds.DATA_DESCRIPTOR+ps(t.crc32,4)+ps(t.compressedSize,4)+ps(t.uncompressedSize,4)};function vs(t,e,r,n){fs.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=[]}ls.inherits(vs,fs),vs.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,fs.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},vs.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=gs(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},vs.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=gs(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:bs(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},vs.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,i){var a=ls.transformTo("string",i(n));return ds.CENTRAL_DIRECTORY_END+"\0\0\0\0"+ps(t,2)+ps(t,2)+ps(e,4)+ps(r,4)+ps(a.length,2)+a}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},vs.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},vs.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},vs.prototype.resume=function(){return!!fs.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},vs.prototype.error=function(t){var e=this._sources;if(!fs.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},vs.prototype.lock=function(){fs.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()};var ms=Mi,ys=vs;Li.generateWorker=function(t,e,r){var n=new ys(e.streamFiles,r,e.platform,e.encodeFileName),i=0;try{t.forEach((function(t,r){i++;var a=function(t,e){var r=t||e,n=ms[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(a,o).withStreamInfo("file",{name:t,dir:s,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(t){n.error(t)}return n};var ws=Dn(),_s=jn;function ks(t,e){_s.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}ws.inherits(ks,_s),ks.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()}))},ks.prototype.pause=function(){return!!_s.prototype.pause.call(this)&&(this._stream.pause(),!0)},ks.prototype.resume=function(){return!!_s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)};var xs=ks,Ss=f,Cs=Dn(),As=jn,Es=Qn,Rs=ti,Os=wi,Ts=Ti,Ls=Li,Ms=Mn,Is=xs,Ps=function(t,e,r){var n,i=Cs.getTypeOf(e),a=Cs.extend(r||{},Rs);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=Ds(t)),a.createFolders&&(n=Bs(t))&&zs.call(this,n,!0);var o="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!o),(e instanceof Os&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",i="string");var s=null;s=e instanceof Os||e instanceof As?e:Ms.isNode&&Ms.isStream(e)?new Is(t,e):Cs.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var u=new Ts(t,s,a);this.files[t]=u},Bs=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},Ds=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},zs=function(t,e){return e=void 0!==e?e:Rs.createFolders,t=Ds(t),this.files[t]||Ps.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function js(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var Fs={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(js(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,Ps.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(js(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=zs.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=Cs.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.");Cs.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=Ls.generateWorker(this,r,n)}catch(t){(e=new As("error")).error(t)}return new Es(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)}},Ns=Fs,Us=Dn();function Hs(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}Hs.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 Us.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 Ws=Hs,Zs=Ws;function qs(t){Zs.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}Dn().inherits(qs,Zs),qs.prototype.byteAt=function(t){return this.data[this.zero+t]},qs.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===e&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},qs.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},qs.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 Ys=qs,Gs=Ws;function Vs(t){Gs.call(this,t)}Dn().inherits(Vs,Gs),Vs.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},Vs.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},Vs.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},Vs.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 Ks=Vs,Xs=Ys;function $s(t){Xs.call(this,t)}Dn().inherits($s,Xs),$s.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 Js=$s,Qs=Js;function tu(t){Qs.call(this,t)}Dn().inherits(tu,Qs),tu.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 eu=tu,ru=Dn(),nu=dt,iu=Ys,au=Ks,ou=eu,su=Js,uu=function(t){var e=ru.getTypeOf(t);return ru.checkSupport(e),"string"!==e||nu.uint8array?"nodebuffer"===e?new ou(t):nu.uint8array?new su(ru.transformTo("uint8array",t)):new iu(ru.transformTo("array",t)):new au(t)},lu=uu,fu=Dn(),hu=wi,cu=si,du=f,pu=Mi,gu=dt;function bu(t,e){this.options=t,this.loadOptions=e}bu.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 pu)if(Object.prototype.hasOwnProperty.call(pu,e)&&pu[e].magic===t)return pu[e];return null}(this.compressionMethod),null===e)throw new Error("Corrupted zip : compression "+fu.pretty(this.compressionMethod)+" unknown (inner file : "+fu.transformTo("string",this.fileName)+")");this.decompressed=new hu(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=lu(this.extraFields[1].value);this.uncompressedSize===fu.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===fu.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===fu.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===fu.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n};t.setIndex(i)},handleUTF8:function(){var t=gu.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=du.utf8decode(this.fileName),this.fileCommentStr=du.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=fu.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=fu.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=lu(t.value);return 1!==e.readInt(1)||cu(this.fileName)!==e.readInt(4)?null:du.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=lu(t.value);return 1!==e.readInt(1)||cu(this.fileComment)!==e.readInt(4)?null:du.utf8decode(e.readData(t.length-5))}return null}};var vu=bu,mu=uu,yu=Dn(),wu=us,_u=vu,ku=dt;function xu(t){this.files=[],this.loadOptions=t}xu.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 ("+yu.pretty(e)+", expected "+yu.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=ku.uint8array?"uint8array":"array",r=yu.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(wu.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(wu.CENTRAL_FILE_HEADER);)(t=new _u({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(wu.CENTRAL_DIRECTORY_END);if(t<0)throw!this.isSignature(0,wu.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(wu.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===yu.MAX_VALUE_16BITS||this.diskWithCentralDirStart===yu.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===yu.MAX_VALUE_16BITS||this.centralDirRecords===yu.MAX_VALUE_16BITS||this.centralDirSize===yu.MAX_VALUE_32BITS||this.centralDirOffset===yu.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(wu.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(wu.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,wu.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(wu.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(wu.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,wu.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=mu(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var Su=xu,Cu=Dn(),Au=Bn,Eu=f,Ru=Su,Ou=hi,Tu=Mn;function Lu(t){return new Au.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new Ou);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 Mu(){if(!(this instanceof Mu))return new Mu;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 Mu;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}Mu.prototype=Ns,Mu.prototype.loadAsync=function(t,e){var r=this;return e=Cu.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Eu.utf8decode}),Tu.isNode&&Tu.isStream(t)?Au.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Cu.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new Ru(e);return r.load(t),r})).then((function(t){var r=[Au.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(Lu(n[i]));return Au.Promise.all(r)})).then((function(t){for(var n=t.shift(),i=n.files,a=0;a<i.length;a++){var o=i[a],s=o.fileNameStr,u=Cu.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}))},Mu.support=dt,Mu.defaults=ti,Mu.version="3.10.1",Mu.loadAsync=function(t,e){return(new Mu).loadAsync(t,e)},Mu.external=Bn;var Iu=Mu;function Pu(t){return Pu="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},Pu(t)}function Bu(t,e){var r=(e=e||{}).pos||0,n=!!e.keepComments,i=!!e.keepWhitespace,a="<".charCodeAt(0),o=">".charCodeAt(0),s="-".charCodeAt(0),u="/".charCodeAt(0),l="!".charCodeAt(0),f="'".charCodeAt(0),h='"'.charCodeAt(0),c="[".charCodeAt(0),d="]".charCodeAt(0);function p(e){for(var f=[];t[r];)if(t.charCodeAt(r)==a){if(t.charCodeAt(r+1)===u){var h=r+2;if(r=t.indexOf(">",r),-1==t.substring(h,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),f}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&&f.push(t.substring(e,r+1))}else{if(t.charCodeAt(r+2)===c&&t.charCodeAt(r+8)===c&&"cdata"===t.substr(r+3,5).toLowerCase()){var b=t.indexOf("]]>",r);-1==b?(f.push(t.substr(r+9)),r=t.length):(f.push(t.substring(r+9,b)),r=b+3);continue}{const e=r+1;r+=2;for(var v=!1;(t.charCodeAt(r)!==o||!0===v)&&t[r];)t.charCodeAt(r)===c?v=!0:!0===v&&t.charCodeAt(r)===d&&(v=!1),r++;f.push(t.substring(e,r))}}r++;continue}var y=m();f.push(y),"?"===y.tagName[0]&&(f.push(...y.children),y.children=[])}else{var w=g();if(i)w.length>0&&f.push(w);else{var _=w.trim();_.length>0&&f.push(_)}r++}return f}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 v=e.noChildNodes||["img","br","input","meta","link","hr"];function m(){r++;const e=b(),n={};let i=[];for(;t.charCodeAt(r)!==o&&t[r];){var a=t.charCodeAt(r);if(a>64&&a<91||a>96&&a<123){for(var s=b(),l=t.charCodeAt(r);l&&l!==f&&l!==h&&!(l>64&&l<91||l>96&&l<123)&&l!==o;)r++,l=t.charCodeAt(r);if(l===f||l===h){var c=y();if(-1===r)return{tagName:e,attributes:n,children:i}}else c=null,r--;n[s]=c}r++}if(t.charCodeAt(r-1)!==u)if("script"==e){var d=r+1;r=t.indexOf("<\/script>",r),i=[t.slice(d,r)],r+=9}else if("style"==e){d=r+1;r=t.indexOf("</style>",r),i=[t.slice(d,r)],r+=8}else-1===v.indexOf(e)?(r++,i=p(e)):r++;else r++;return{tagName:e,attributes:n,children:i}}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(m()),t=t.substr(r),r=0}else _=e.parseNode?m():p("");return e.filter&&(_=zu(_,e.filter)),e.simplify?Du(Array.isArray(_)?_:[_]):(e.setPos&&(_.pos=r),_)}function Du(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=Du(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 zu(t,e,r=0,n=""){var i=[];return t.forEach((function(t,a){if("object"==typeof t&&e(t,a,r,n)&&i.push(t),t.children){var o=zu(t.children,e,r+1,(n?n+".":"")+a+"."+t.tagName);i=i.concat(o)}})),i}function ju(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 Fu(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 Fu(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Fu(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 Nu(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 Uu(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Nu(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Hu=0;function Wu(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:Uu({order:Hu++},e),value:t[0]}:t[0];var n,i=ju(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("object"!==Pu(a))return;if("?xml"!==a.tagName){r[a.tagName]||(r[a.tagName]=[]);var o=Wu(a.children||[],a.attributes);r[a.tagName].push(o),Object.keys(a.attributes).length&&(o.attrs=Uu({order:Hu++},a.attributes))}}}catch(t){i.e(t)}finally{i.f()}for(var s in r)1===r[s].length&&(r[s]=r[s][0]);return r}function Zu(t,e){return qu.apply(this,arguments)}function qu(){return(qu=n(l.mark((function t(e,r){var n;return l.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",Wu(Bu(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 Yu(t){return Yu="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},Yu(t)}var Gu=/^\s+/,Vu=/\s+$/;function Ku(t,e){if(e=e||{},(t=t||"")instanceof Ku)return t;if(!(this instanceof Ku))return new Ku(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(Gu,"").replace(Vu,"").toLowerCase();var e,r=!1;if(cl[t])t=cl[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=Cl.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=Cl.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=Cl.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=Cl.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=Cl.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=Cl.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=Cl.hex8.exec(t))return{r:vl(e[1]),g:vl(e[2]),b:vl(e[3]),a:_l(e[4]),format:r?"name":"hex8"};if(e=Cl.hex6.exec(t))return{r:vl(e[1]),g:vl(e[2]),b:vl(e[3]),format:r?"name":"hex"};if(e=Cl.hex4.exec(t))return{r:vl(e[1]+""+e[1]),g:vl(e[2]+""+e[2]),b:vl(e[3]+""+e[3]),a:_l(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=Cl.hex3.exec(t))return{r:vl(e[1]+""+e[1]),g:vl(e[2]+""+e[2]),b:vl(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==Yu(t)&&(Al(t.r)&&Al(t.g)&&Al(t.b)?(u=t.r,l=t.g,f=t.b,e={r:255*gl(u,255),g:255*gl(l,255),b:255*gl(f,255)},o=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):Al(t.h)&&Al(t.s)&&Al(t.v)?(n=yl(t.s),i=yl(t.v),e=function(t,e,r){t=6*gl(t,360),e=gl(e,100),r=gl(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,s,r][u],g:255*[s,r,r,o,a,a][u],b:255*[a,a,s,r,r,o][u]}}(t.h,n,i),o=!0,s="hsv"):Al(t.h)&&Al(t.s)&&Al(t.l)&&(n=yl(t.s),a=yl(t.l),e=function(t,e,r){var n,i,a;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=gl(t,360),e=gl(e,100),r=gl(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),i=o(u,s,t),a=o(u,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(t.h,n,a),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a));var u,l,f;return r=pl(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 Xu(t,e,r){t=gl(t,255),e=gl(e,255),r=gl(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=(a+o)/2;if(a==o)n=i=0;else{var u=a-o;switch(i=s>.5?u/(2-a-o):u/(a+o),a){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:i,l:s}}function $u(t,e,r){t=gl(t,255),e=gl(e,255),r=gl(r,255);var n,i,a=Math.max(t,e,r),o=Math.min(t,e,r),s=a,u=a-o;if(i=0===a?0:u/a,a==o)n=0;else{switch(a){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:i,v:s}}function Ju(t,e,r,n){var i=[ml(Math.round(t).toString(16)),ml(Math.round(e).toString(16)),ml(Math.round(r).toString(16))];return n&&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[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Qu(t,e,r,n){return[ml(wl(n)),ml(Math.round(t).toString(16)),ml(Math.round(e).toString(16)),ml(Math.round(r).toString(16))].join("")}function tl(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.s-=e/100,r.s=bl(r.s),Ku(r)}function el(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.s+=e/100,r.s=bl(r.s),Ku(r)}function rl(t){return Ku(t).desaturate(100)}function nl(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.l+=e/100,r.l=bl(r.l),Ku(r)}function il(t,e){e=0===e?0:e||10;var r=Ku(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))),Ku(r)}function al(t,e){e=0===e?0:e||10;var r=Ku(t).toHsl();return r.l-=e/100,r.l=bl(r.l),Ku(r)}function ol(t,e){var r=Ku(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Ku(r)}function sl(t){var e=Ku(t).toHsl();return e.h=(e.h+180)%360,Ku(e)}function ul(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Ku(t).toHsl(),n=[Ku(t)],i=360/e,a=1;a<e;a++)n.push(Ku({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function ll(t){var e=Ku(t).toHsl(),r=e.h;return[Ku(t),Ku({h:(r+72)%360,s:e.s,l:e.l}),Ku({h:(r+216)%360,s:e.s,l:e.l})]}function fl(t,e,r){e=e||6,r=r||30;var n=Ku(t).toHsl(),i=360/r,a=[Ku(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(Ku(n));return a}function hl(t,e){e=e||6;for(var r=Ku(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(Ku({h:n,s:i,v:a})),a=(a+s)%1;return o}Ku.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=pl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=$u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=$u(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=Xu(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Xu(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 Ju(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var a=[ml(Math.round(t).toString(16)),ml(Math.round(e).toString(16)),ml(Math.round(r).toString(16)),ml(wl(n))];if(i&&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[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.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*gl(this._r,255))+"%",g:Math.round(100*gl(this._g,255))+"%",b:Math.round(100*gl(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*gl(this._r,255))+"%, "+Math.round(100*gl(this._g,255))+"%, "+Math.round(100*gl(this._b,255))+"%)":"rgba("+Math.round(100*gl(this._r,255))+"%, "+Math.round(100*gl(this._g,255))+"%, "+Math.round(100*gl(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(dl[Ju(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+Qu(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=Ku(t);r="#"+Qu(i._r,i._g,i._b,i._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 Ku(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(nl,arguments)},brighten:function(){return this._applyModification(il,arguments)},darken:function(){return this._applyModification(al,arguments)},desaturate:function(){return this._applyModification(tl,arguments)},saturate:function(){return this._applyModification(el,arguments)},greyscale:function(){return this._applyModification(rl,arguments)},spin:function(){return this._applyModification(ol,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(fl,arguments)},complement:function(){return this._applyCombination(sl,arguments)},monochromatic:function(){return this._applyCombination(hl,arguments)},splitcomplement:function(){return this._applyCombination(ll,arguments)},triad:function(){return this._applyCombination(ul,[3])},tetrad:function(){return this._applyCombination(ul,[4])}},Ku.fromRatio=function(t,e){if("object"==Yu(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:yl(t[n]));t=r}return Ku(t,e)},Ku.equals=function(t,e){return!(!t||!e)&&Ku(t).toRgbString()==Ku(e).toRgbString()},Ku.random=function(){return Ku.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Ku.mix=function(t,e,r){r=0===r?0:r||50;var n=Ku(t).toRgb(),i=Ku(e).toRgb(),a=r/100;return Ku({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},Ku.readability=function(t,e){var r=Ku(t),n=Ku(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Ku.isReadable=function(t,e,r){var n,i,a=Ku.readability(t,e);switch(i=!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":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},Ku.mostReadable=function(t,e,r){var n,i,a,o,s=null,u=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var l=0;l<e.length;l++)(n=Ku.readability(t,e[l]))>u&&(u=n,s=Ku(e[l]));return Ku.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,Ku.mostReadable(t,["#fff","#000"],r))};var cl=Ku.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"},dl=Ku.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(cl);function pl(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function gl(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 bl(t){return Math.min(1,Math.max(0,t))}function vl(t){return parseInt(t,16)}function ml(t){return 1==t.length?"0"+t:""+t}function yl(t){return t<=1&&(t=100*t+"%"),t}function wl(t){return Math.round(255*parseFloat(t)).toString(16)}function _l(t){return vl(t)/255}var kl,xl,Sl,Cl=(xl="[\\s|\\(]+("+(kl="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+kl+")[,|\\s]+("+kl+")\\s*\\)?",Sl="[\\s|\\(]+("+kl+")[,|\\s]+("+kl+")[,|\\s]+("+kl+")[,|\\s]+("+kl+")\\s*\\)?",{CSS_UNIT:new RegExp(kl),rgb:new RegExp("rgb"+xl),rgba:new RegExp("rgba"+Sl),hsl:new RegExp("hsl"+xl),hsla:new RegExp("hsla"+Sl),hsv:new RegExp("hsv"+xl),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 Al(t){return!!Cl.CSS_UNIT.exec(t)}function El(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 Rl(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 Rl(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Rl(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 Ol(t){for(var e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),i=n.byteLength,a=i%3,o=i-a,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===a?s+=r[(252&(e=n[o]))>>2]+r[(3&e)<<4]+"==":2===a&&(s+=r[(64512&(e=n[o]<<8|n[o+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),s}function Tl(t){return t.substr(2+(~-t.lastIndexOf(".")>>>0))}function Ll(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 Ml(t,e){if(e.constructor!==Array)throw Error("Error of path type! path is not array.");if(!t)return t;var r,n=El(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 Il(t){return t?Math.round(t/6e4):0}function Pl(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,(function(t){return e[t]}))}function Bl(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 Dl(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 zl(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function jl(t,e,r,n){var i,a;if(r)a=r;else{var o=Ml(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=o||((o=Ml(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||Ml(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"]))}var s=t.substr(2);if("phClr"===s&&n)i=n;else{if(a)switch(s){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+a[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=Ml(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);!(i=Ml(u,["a:srgbClr","attrs","val"]))&&u&&(i=Ml(u,["a:sysClr","attrs","lastClr"]))}return i}function Fl(t,e,r){var n=t["p:spPr"]["a:ln"],i=parseInt(Ml(n,["attrs","w"]))/12700;isNaN(i)&&(i=n||"obj"!==e?0:1);var a=Ml(n,["a:solidFill","a:srgbClr","attrs","val"]);if(!a){var o=Ml(n,["a:solidFill","a:schemeClr"]);a=jl("a:"+Ml(o,["attrs","val"]),r)}if(!a){var s=Ml(t,["p:style","a:lnRef","a:schemeClr"]);if(a=jl("a:"+Ml(s,["attrs","val"]),r)){var u=Ml(s,["a:shade","attrs","val"]);if(u){u=parseInt(u)/1e5;var l=Ku("#"+a).toHsl();a=Ku({h:l.h,s:l.s,l:l.l*u,a:l.a}).toHex()}}}a=a?"#".concat(a):"#000";var f="solid",h="0";switch(Ml(n,["a:prstDash","attrs","val"])){case"solid":f="solid",h="0";break;case"dash":f="dashed",h="5";break;case"dashDot":f="dashed",h="5, 5, 1, 5";break;case"dot":f="dotted",h="1, 5";break;case"lgDash":f="dashed",h="10, 5";break;case"lgDashDotDot":f="dotted",h="10, 5, 1, 5, 1, 5";break;case"sysDash":f="dashed",h="5, 2";break;case"sysDashDot":f="dotted",h="5, 2, 1, 5";break;case"sysDashDotDot":f="dotted",h="5, 2, 1, 5, 1, 5";break;case"sysDot":f="dotted",h="2, 5"}return{borderColor:a,borderWidth:i,borderType:f,strokeDasharray:h}}function Nl(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 Ul(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 Hl(t,e,r){return Wl.apply(this,arguments)}function Wl(){return Wl=n(l.mark((function t(e,r,n){var i,a,o,s,u,f;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r["a:blip"].attrs["r:embed"],"slideBg"===e||"slide"===e?o=Ml(n,["slideResObj",a,"target"]):"slideLayoutBg"===e?o=Ml(n,["layoutResObj",a,"target"]):"slideMasterBg"===e?o=Ml(n,["masterResObj",a,"target"]):"themeBg"===e?o=Ml(n,["themeResObj",a,"target"]):"diagramBg"===e&&(o=Ml(n,["diagramResObj",a,"target"])),o){t.next=4;break}return t.abrupt("return",o);case 4:if(i=Ml(n,["loaded-images",o])){t.next=15;break}if(o=Pl(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:u=t.sent,f=Bl(s),i="data:".concat(f,";base64,").concat(Ol(u));case 15:return t.abrupt("return",i);case 16:case"end":return t.stop()}}),t)}))),Wl.apply(this,arguments)}function Zl(t,e,r){return ql.apply(this,arguments)}function ql(){return(ql=n(l.mark((function t(e,r,n){var i,a,o,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hl(r,e["a:blipFill"],n);case 2:return i=t.sent,a=e["a:blipFill"]["a:blip"],o=Ml(a,["a:alphaModFix","attrs"]),s=1,o&&o.amt&&""!==o.amt&&(s=parseInt(o.amt)/1e5),t.abrupt("return",{picBase64:i,opacity:s});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yl(t,e,r,n){if(t){for(var i=t["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[],s=0;s<a.length;s++){var u=Xl(a[s],r["p:sldMaster"]["p:clrMap"].attrs,e,n),l=Ml(a[s],["attrs","pos"]);o[s]={pos:l?l/1e3+"%":"",color:u}}var f=i["a:lin"],h=90;return f&&(h=Il(f.attrs.ang),h+=90),{rot:h,colors:o.sort((function(t,e){return parseInt(t.pos)-parseInt(e.pos)}))}}return e?-1===e.indexOf("#")?"#".concat(e):e:null}function Gl(t){return Vl.apply(this,arguments)}function Vl(){return Vl=n(l.mark((function t(e){var r,n,i,a,o,s,u,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A,E,R,O,T,L,M,I,P,B,D,z,j,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st,ut,lt;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.slideContent,n=e.slideLayoutContent,i=e.slideMasterContent,a=Ml(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=Ml(r,["p:sld","p:cSld","p:bg","p:bgRef"]),s="#fff",u="color",!a){t.next=29;break}if("SOLID_FILL"!==(f=Ul(a))){t.next=17;break}h=a["a:solidFill"],(d=Ml(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?c=d:(p=Ml(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=p||Ml(i,["p:sldMaster","p:clrMap","attrs"])),g=Xl(h,c,void 0,e),s=g,t.next=27;break;case 17:if("GRADIENT_FILL"!==f){t.next=22;break}"string"==typeof(b=Yl(a,void 0,i,e))?s=b:b&&(s=b,u="gradient"),t.next=27;break;case 22:if("PIC_FILL"!==f){t.next=27;break}return t.next=25,Zl(a,"slideBg",e);case 25:s=t.sent,u="image";case 27:t.next=142;break;case 29:if(!o){t.next=37;break}(m=Ml(r,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]))?v=m:(y=Ml(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),v=y||Ml(i,["p:sldMaster","p:clrMap","attrs"])),w=Xl(o,v,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 i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),S.push(i)}})),(C=S.slice(0)).sort((function(t,e){return t.idex-e.idex})),A=C[k-1],"SOLID_FILL"===(E=Ul(A))?(R=A["a:solidFill"],O=Xl(R,v,void 0,e),s=O):"GRADIENT_FILL"===E&&("string"==typeof(T=Yl(A,w,i,e))?s=T:T&&(s=T,u="gradient"))),t.next=142;break;case 37:if(a=Ml(n,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),o=Ml(n,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),M=Ml(n,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]),L=M||Ml(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=61;break}if("SOLID_FILL"!==(I=Ul(a))){t.next=49;break}P=a["a:solidFill"],B=Xl(P,L,void 0,e),s=B,t.next=59;break;case 49:if("GRADIENT_FILL"!==I){t.next=54;break}"string"==typeof(D=Yl(a,void 0,i,e))?s=D:D&&(s=D,u="gradient"),t.next=59;break;case 54:if("PIC_FILL"!==I){t.next=59;break}return t.next=57,Zl(a,"slideLayoutBg",e);case 57:s=t.sent,u="image";case 59:t.next=142;break;case 61:if(!o){t.next=91;break}if(z=Xl(o,L,void 0,e),!((j=Number(o.attrs.idx))>1e3)){t.next=89;break}if(F=j-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 i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),U.push(i)}})),(H=U.slice(0)).sort((function(t,e){return t.idex-e.idex})),W=H[F-1],"SOLID_FILL"!==(Z=Ul(W))){t.next=79;break}q=W["a:solidFill"],Y=Xl(q,L,void 0,e),s=Y,t.next=89;break;case 79:if("GRADIENT_FILL"!==Z){t.next=84;break}"string"==typeof(G=Yl(W,z,i,e))?s=G:G&&(s=G,u="gradient"),t.next=89;break;case 84:if("PIC_FILL"!==Z){t.next=89;break}return t.next=87,Zl(W,"themeBg",e);case 87:s=t.sent,u="image";case 89:t.next=142;break;case 91:if(a=Ml(i,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),o=Ml(i,["p:sldMaster","p:cSld","p:bg","p:bgRef"]),V=Ml(i,["p:sldMaster","p:clrMap","attrs"]),!a){t.next=114;break}if("SOLID_FILL"!==(K=Ul(a))){t.next=102;break}X=a["a:solidFill"],$=Xl(X,V,void 0,e),s=$,t.next=112;break;case 102:if("GRADIENT_FILL"!==K){t.next=107;break}"string"==typeof(J=Yl(a,void 0,i,e))?s=J:J&&(s=J,u="gradient"),t.next=112;break;case 107:if("PIC_FILL"!==K){t.next=112;break}return t.next=110,Zl(a,"slideMasterBg",e);case 110:s=t.sent,u="image";case 112:t.next=142;break;case 114:if(!o){t.next=142;break}if(Q=Xl(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 i={};i[t]=e,e.attrs&&(i.idex=e.attrs.order,i.attrs={order:e.attrs.order}),nt.push(i)}})),(it=nt.slice(0)).sort((function(t,e){return t.idex-e.idex})),at=it[et-1],"SOLID_FILL"!==(ot=Ul(at))){t.next=132;break}st=at["a:solidFill"],ut=Xl(st,L,void 0,e),s=ut,t.next=142;break;case 132:if("GRADIENT_FILL"!==ot){t.next=137;break}"string"==typeof(lt=Yl(at,Q,i,e))?s=lt:lt&&(s=lt,u="gradient"),t.next=142;break;case 137:if("PIC_FILL"!==ot){t.next=142;break}return t.next=140,Zl(at,"themeBg",e);case 140:s=t.sent,u="image";case 142:return t.abrupt("return",{type:u,value:s});case 143:case"end":return t.stop()}}),t)}))),Vl.apply(this,arguments)}function Kl(t,e,r){if(Ml(t,["p:spPr","a:noFill"]))return e?"none":"";var n;(n||(n=Ml(t,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),n)||(n=jl("a:"+Ml(t,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),r));n||(n=jl("a:"+Ml(t,["p:style","a:fillRef","a:schemeClr","attrs","val"]),r));if(n){n="#".concat(n);var i=parseInt(Ml(t,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]))/1e5,a=parseInt(Ml(t,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(i)&&(i=1),isNaN(a)&&(a=0);var o=Ku(n).toHsl(),s=o.l*i+a;return Ku({h:o.h,s:o.s,l:s,a:o.a}).toHexString()}return e?"none":n}function Xl(t,e,r,n){if(!t)return"";var i,a,o,s="";if(t["a:srgbClr"])s=Ml(i=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"]){s=jl("a:"+Ml(i=t["a:schemeClr"],["attrs","val"]),n,e,r)||""}else if(t["a:scrgbClr"]){var u=(i=t["a:scrgbClr"]).attrs,l=-1!==u.r.indexOf("%")?u.r.split("%").shift():u.r,f=-1!==u.g.indexOf("%")?u.g.split("%").shift():u.g,h=-1!==u.b.indexOf("%")?u.b.split("%").shift():u.b;s=zl(Number(l)/100*255)+zl(Number(f)/100*255)+zl(Number(h)/100*255)}else if(t["a:prstClr"]){var c=Ml(i=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(c))&&(a=["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=a}else if(t["a:hslClr"]){var d=(i=t["a:hslClr"]).attrs,p=function(t,e,r){var n,i=2*r-(n=r<=.5?r*(e+1):r+e-r*e);return{r:255*Nl(i,n,2+(t/=60)),g:255*Nl(i,n,t),b:255*Nl(i,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=zl(p.r)+zl(p.g)+zl(p.b)}else if(t["a:sysClr"]){var g=Ml(i=t["a:sysClr"],["attrs","lastClr"]);g&&(s=g)}var b=!1,v=parseInt(Ml(i,["a:alpha","attrs","val"]))/1e5;if(!isNaN(v)){var m=Ku(s);m.setAlpha(v),s=m.toHex8(),b=!0}var y=parseInt(Ml(i,["a:hueMod","attrs","val"]))/1e5;isNaN(y)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=n.h*e;return i>=360&&(i-=360),r?Ku({h:i,s:n.s,l:n.l,a:n.a}).toHex8():Ku({h:i,s:n.s,l:n.l,a:n.a}).toHex()}(s,y,b));var w=parseInt(Ml(i,["a:lumMod","attrs","val"]))/1e5;isNaN(w)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=n.l*e;return i>=1&&(i=1),r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,w,b));var _=parseInt(Ml(i,["a:lumOff","attrs","val"]))/1e5;isNaN(_)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=e+n.l;return i>=1?r?Ku({h:n.h,s:n.s,l:1,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:1,a:n.a}).toHex():r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,_,b));var k=parseInt(Ml(i,["a:satMod","attrs","val"]))/1e5;isNaN(k)||(s=function(t,e,r){var n=Ku(t).toHsl(),i=n.s*e;return i>=1&&(i=1),r?Ku({h:n.h,s:i,l:n.l,a:n.a}).toHex8():Ku({h:n.h,s:i,l:n.l,a:n.a}).toHex()}(s,k,b));var x=parseInt(Ml(i,["a:shade","attrs","val"]))/1e5;isNaN(x)||(s=function(t,e,r){var n=Ku(t).toHsl();e>=1&&(e=1);var i=Math.min(n.l*e,1);return r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,x,b));var S=parseInt(Ml(i,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(s=function(t,e,r){var n=Ku(t).toHsl();e>=1&&(e=1);var i=n.l*e+(1-e);return r?Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex8():Ku({h:n.h,s:n.s,l:i,a:n.a}).toHex()}(s,S,b)),s&&-1===s.indexOf("#")&&(s="#"+s),s}function $l(t){var e=[];if(!t)return e;if(t["c:xVal"]){var r=[];Ll(t["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r),r=[],Ll(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return r.push(parseFloat(t["c:v"])),""})),e.push(r)}else Ll(t,(function(t,r){var n=[],i=Ml(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return Ml(t,["c:cat","c:strRef","c:strCache","c:pt"])?Ll(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})):Ml(t,["c:cat","c:numRef","c:numCache","c:pt"])&&Ll(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],(function(t){return a[t.attrs.idx]=t["c:v"],""})),Ml(t,["c:val","c:numRef","c:numCache","c:pt"])&&Ll(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:i,values:n,xlabels:a}),""}));return e}function Jl(t){var e=null;for(var r in t)switch(r){case"c:lineChart":e={type:"lineChart",data:$l(t[r]["c:ser"]),grouping:Ml(t[r],["c:grouping","attrs","val"]),marker:!!t[r]["c:marker"]};break;case"c:line3DChart":e={type:"line3DChart",data:$l(t[r]["c:ser"]),grouping:Ml(t[r],["c:grouping","attrs","val"])};break;case"c:barChart":e={type:"barChart",data:$l(t[r]["c:ser"]),grouping:Ml(t[r],["c:grouping","attrs","val"]),barDir:Ml(t[r],["c:barDir","attrs","val"])};break;case"c:bar3DChart":e={type:"bar3DChart",data:$l(t[r]["c:ser"]),grouping:Ml(t[r],["c:grouping","attrs","val"]),barDir:Ml(t[r],["c:barDir","attrs","val"])};break;case"c:pieChart":e={type:"pieChart",data:$l(t[r]["c:ser"])};break;case"c:pie3DChart":e={type:"pie3DChart",data:$l(t[r]["c:ser"])};break;case"c:doughnutChart":e={type:"doughnutChart",data:$l(t[r]["c:ser"]),holeSize:Ml(t[r],["c:holeSize","attrs","val"])};break;case"c:areaChart":e={type:"areaChart",data:$l(t[r]["c:ser"]),grouping:Ml(t[r],["c:grouping","attrs","val"])};break;case"c:area3DChart":e={type:"area3DChart",data:$l(t[r]["c:ser"]),grouping:Ml(t[r],["c:grouping","attrs","val"])};break;case"c:scatterChart":e={type:"scatterChart",data:$l(t[r]["c:ser"]),style:Ml(t[r],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":e={type:"bubbleChart",data:$l(t[r]["c:ser"])};break;case"c:radarChart":e={type:"radarChart",data:$l(t[r]["c:ser"]),style:Ml(t[r],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":e={type:"surfaceChart",data:$l(t[r]["c:ser"])};break;case"c:surface3DChart":e={type:"surface3DChart",data:$l(t[r]["c:ser"])};break;case"c:stockChart":e={type:"stockChart",data:$l(t[r]["c:ser"])}}return e}function Ql(t,e,r,n){var i=Ml(t,["a:pPr","attrs","algn"]);if(i||(i=Ml(e,["a:pPr","attrs","algn"])),!i)if("title"===r||"ctrTitle"===r||"subTitle"===r){var a=1,o=Ml(e,["a:pPr","attrs","lvl"]);o&&(a=parseInt(o)+1);var s="a:lvl"+a+"pPr";(i=Ml(n,["slideLayoutTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"]))||(i=Ml(n,["slideMasterTables","typeTable",r,"p:txBody","a:lstStyle",s,"attrs","algn"])),i||(i=Ml(n,["slideMasterTextStyles","p:titleStyle",s,"attrs","algn"])),i||"subTitle"!==r||(i=Ml(n,["slideMasterTextStyles","p:bodyStyle",s,"attrs","algn"]))}else i=Ml(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(i)switch(i){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}var tf=72/914400;function ef(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)*tf,left:parseInt(n.x)*tf}:{top:0,left:0}}function rf(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)*tf,height:parseInt(n.cy)*tf}:{width:0,height:0}}function nf(t,e){var r=Xl(t,void 0,void 0,e),n=t.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=parseInt(n.dist)*tf,o=n.blurRad?parseInt(n.blurRad)*tf:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function af(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 of(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 of(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function of(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 sf(t,e,r,n,i){if(!t)return"";var a,o="",s=Ml(e,["p:style","a:fontRef"]),u=t["a:p"],l="",f=af(u.constructor===Array?u:[u]);try{for(f.s();!(a=f.n()).done;){var h=a.value,c=h["a:r"],d=h["a:fld"],p=h["a:br"];c&&(c=c.constructor===Array?c:[c],d&&(d=d.constructor===Array?d:[d],c=c.concat(d)),p&&((p=p.constructor===Array?p:[p]).forEach((function(t){return t.type="br"})),p.length>1&&p.shift(),(c=c.concat(p)).sort((function(t,e){return!t.attrs||!e.attrs||t.attrs.order-e.attrs.order}))));var g=Ql(h,e,n,i),b=uf(h);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,';">')),c){var v,m=af(c);try{for(m.s();!(v=m.n()).done;){o+=lf(v.value,h,t,s,r,n,i)}}catch(t){m.e(t)}finally{m.f()}}else o+=lf(h,e,t,s,r,n,i);o+=b?"</li>":"</p>"}}catch(t){f.e(t)}finally{f.f()}return o}function uf(t){var e=t["a:pPr"];return e?e["a:buChar"]?"ul":e["a:buAutoNum"]?"ol":"":""}function lf(t,e,r,n,i,a,o){var s=r["a:lstStyle"],u=o.slideMasterTextStyles,l=1,f=Ml(e["a:pPr"],["attrs","lvl"]);void 0!==f&&(l=parseInt(f)+1);var h=t["a:t"];"string"!=typeof h&&(h=Ml(t,["a:fld","a:t"])),"string"!=typeof h&&(h=" ");var c="",d=function(t,e,r,n,i,a){var o,s=Ml(t,["a:rPr"]);if(s&&"SOLID_FILL"===Ul(s)&&(o=Xl(s["a:solidFill"],void 0,void 0,a)),!o&&Ml(r,["a:lvl"+i+"pPr","a:defRPr"])){var u=Ml(r,["a:lvl"+i+"pPr","a:defRPr"]);"SOLID_FILL"===Ul(u)&&(o=Xl(u["a:solidFill"],void 0,void 0,a))}if(!o){var l=Ml(e,["p:style","a:fontRef"]);l&&(o=Xl(l,void 0,void 0,a)),!o&&n&&(o=Xl(n,void 0,void 0,a))}return o||""}(t,e,s,n,l,o),p=function(t,e,r,n){var i,a;if(Ml(t,["a:rPr","attrs","sz"])&&(i=Ml(t,["a:rPr","attrs","sz"])/100),isNaN(i)||!i){var o=Ml(e,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);i=parseInt(o)/100}return!isNaN(i)&&i||("title"===r||"subTitle"===r||"ctrTitle"===r?a=Ml(n,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"body"===r?a=Ml(n,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):"dt"===r||"sldNum"===r?a="1200":r||(a=Ml(n,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),a&&(i=parseInt(a)/100)),Ml(t,["a:rPr","attrs","baseline"])&&!isNaN(i)&&(i-=10),(i=isNaN(i)||!i?18:i)+"pt"}(t,i,a,u),g=function(t,e,r){var n=Ml(t,["a:rPr","a:latin","attrs","typeface"]);if(!n){var i=Ml(r.themeContent,["a:theme","a:themeElements","a:fontScheme"]);n=Ml(i,"title"===e||"subTitle"===e||"ctrTitle"===e?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return n||""}(t,a,o),b=function(t){return"1"===Ml(t,["a:rPr","attrs","b"])?"bold":""}(t),v=function(t){return"1"===Ml(t,["a:rPr","attrs","i"])?"italic":""}(t),m=function(t){return"sng"===Ml(t,["a:rPr","attrs","u"])?"underline":""}(t),y=function(t){return"sngStrike"===Ml(t,["a:rPr","attrs","strike"])?"line-through":""}(t),w=function(t){var e=Ml(t,["a:rPr","attrs","spc"]);return e?parseInt(e)/100+"pt":""}(t),_=function(t,e){var r=Ml(t,["a:rPr","a:effectLst","a:outerShdw"]);if(r){var n=nf(r,e);if(n){var i=n.h,a=n.v,o=n.blur,s=n.color;if(!isNaN(a)&&!isNaN(i))return i+"pt "+a+"pt "+(o?o+"pt":"")+" "+s}}return""}(t,o),k=function(t){var e=Ml(t,["a:rPr","attrs","baseline"]);return e?parseInt(e)>0?"super":"sub":""}(t);d&&(c+="color: ".concat(d,";")),p&&(c+="font-size: ".concat(p,";")),g&&(c+="font-family: ".concat(g,";")),b&&(c+="font-weight: ".concat(b,";")),v&&(c+="font-style: ".concat(v,";")),m&&(c+="text-decoration: ".concat(m,";")),y&&(c+="text-decoration-line: ".concat(y,";")),w&&(c+="letter-spacing: ".concat(w,";")),k&&(c+="vertical-align: ".concat(k,";")),_&&(c+="text-shadow: ".concat(_,";"));var x=Ml(t,["a:rPr","a:hlinkClick","attrs","r:id"]);if(x){var S=o.slideResObj[x].target;return'<span style="'.concat(c,'"><a href="').concat(S,'" target="_blank">').concat(h.replace(/\t/g," ").replace(/\s/g," "),"</a></span>")}return'<span style="'.concat(c,'">').concat(h.replace(/\t/g," ").replace(/\s/g," "),"</span>")}function ff(t,e,r,n,i,a,o){var s,u=i;if(a>=i)for(;u<=a;){var l=u*(Math.PI/180),f=t+Math.cos(l)*r,h=e+Math.sin(l)*n;u===i&&(s=" M"+f+" "+h),s+=" L"+f+" "+h,u++}else for(;u>a;){var c=u*(Math.PI/180),d=t+Math.cos(c)*r,p=e+Math.sin(c)*n;u===i&&(s=" M "+d+" "+p),s+=" L "+d+" "+p,u--}return s+=o?" z":""}function hf(t,e,r,n){var i,a,o,s,u,l=Ml(t,["attrs","rowSpan"]),f=Ml(t,["attrs","gridSpan"]),h=Ml(t,["attrs","vMerge"]),c=Ml(t,["attrs","hMerge"]),d=Ml(t,["a:tcPr"]);d&&(i=Kl({"p:spPr":d},void 0,n));i||(r&&(s=Ml(e,[r,"a:tcStyle","a:fill","a:solidFill"])),s&&(i=Xl(s,void 0,void 0,n)));return r&&(u=Ml(e,[r,"a:tcTxStyle"])),u&&(a=Xl(u,void 0,void 0,n),"on"===Ml(u,["attrs","b"])&&(o=!0)),{fillColor:i,fontColor:a,fontBold:o,rowSpan:l?+l:void 0,colSpan:f?+f:void 0,vMerge:h?+h:void 0,hMerge:c?+c:void 0}}function cf(t,e,r,n,i){var a,o,s;if(n&&n["a:wholeTbl"]){var u=Ml(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(u){var l=Xl(u,void 0,void 0,i);l&&(a=l)}var f=Ml(n,["a:wholeTbl","a:tcTxStyle"]);if(f){var h=Xl(f,void 0,void 0,i);h&&(o=h),"on"===Ml(f,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){var c=Ml(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(c){var d=Xl(c,void 0,void 0,i);d&&(a=d)}var p=Ml(n,["a:firstRow","a:tcTxStyle"]);if(p){var g=Xl(p,void 0,void 0,i);g&&(o=g),"on"===Ml(p,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(a="",e%2==0&&n["a:band2H"]){var b=Ml(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(b){var v=Xl(b,void 0,void 0,i);v&&(a=v)}var m=Ml(n,["a:band2H","a:tcTxStyle"]);if(m){var y=Xl(m,void 0,void 0,i);y&&(o=y)}"on"===Ml(m,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){var w=Ml(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(w){var _=Xl(w,void 0,void 0,i);_&&(a=_)}var k=Ml(n,["a:band1H","a:tcTxStyle"]);if(k){var x=Xl(k,void 0,void 0,i);x&&(o=x),"on"===Ml(k,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){var S=Ml(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(S){var C=Xl(S,void 0,void 0,i);C&&(a=C)}var A=Ml(n,["a:lastRow","a:tcTxStyle"]);if(A){var E=Xl(A,void 0,void 0,i);E&&(o=E),"on"===Ml(A,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}function df(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 pf(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?df(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gf(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 bf(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 bf(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,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,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function bf(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 vf(){return(vf=n(l.mark((function t(e){var r,n,i,a,o,s,u,f,h,c,d,p;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,Iu.loadAsync(e);case 3:return n=t.sent,t.next=6,mf(n);case 6:return i=t.sent,t.next=9,wf(n);case 9:return a=t.sent,o=a.width,s=a.height,u=a.defaultTextStyle,t.next=15,kf(n);case 15:f=t.sent,h=gf(i.slides),t.prev=17,h.s();case 19:if((c=h.n()).done){t.next=27;break}return d=c.value,t.next=23,Sf(n,d,f,u);case 23:p=t.sent,r.push(p);case 25:t.next=19;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(17),h.e(t.t0);case 32:return t.prev=32,h.f(),t.finish(32);case 35:return t.abrupt("return",{slides:r,size:{width:o,height:s}});case 36:case"end":return t.stop()}}),t,null,[[17,29,32,35]])})))).apply(this,arguments)}function mf(t){return yf.apply(this,arguments)}function yf(){return(yf=n(l.mark((function t(e){var r,n,i,a,o,s,u,f;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zu(e,"[Content_Types].xml");case 2:r=t.sent,n=r.Types.Override,i=[],a=[],o=gf(n),t.prev=7,o.s();case 9:if((s=o.n()).done){t.next=20;break}u=s.value,t.t0=u.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 i.push(u.attrs.PartName.substr(1)),t.abrupt("break",18);case 16:return a.push(u.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 f=function(t,e){return+/(\d+)\.xml/.exec(t)[1]-+/(\d+)\.xml/.exec(e)[1]},i=i.sort(f),a=a.sort(f),t.abrupt("return",{slides:i,slideLayouts:a});case 32:case"end":return t.stop()}}),t,null,[[7,22,25,28]])})))).apply(this,arguments)}function wf(t){return _f.apply(this,arguments)}function _f(){return(_f=n(l.mark((function t(e){var r,n,i;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zu(e,"ppt/presentation.xml");case 2:return r=t.sent,n=r["p:presentation"]["p:sldSz"].attrs,i=r["p:presentation"]["p:defaultTextStyle"],t.abrupt("return",{width:parseInt(n.cx)*tf,height:parseInt(n.cy)*tf,defaultTextStyle:i});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function kf(t){return xf.apply(this,arguments)}function xf(){return(xf=n(l.mark((function t(e){var r,n,i,a,o,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zu(e,"ppt/_rels/presentation.xml.rels");case 2:if(r=t.sent,(n=r.Relationships.Relationship).constructor!==Array){t.next=25;break}a=gf(n),t.prev=6,a.s();case 8:if((o=a.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 i=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),a.e(t.t0);case 20:return t.prev=20,a.f(),t.finish(20);case 23:t.next=26;break;case 25:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(i=n.attrs.Target);case 26:if(i){t.next=28;break}throw Error("Can't open theme file.");case 28:return t.next=30,Zu(e,"ppt/"+i);case 30:return t.abrupt("return",t.sent);case 31:case"end":return t.stop()}}),t,null,[[6,17,20,23]])})))).apply(this,arguments)}function Sf(t,e,r,n){return Cf.apply(this,arguments)}function Cf(){return Cf=n(l.mark((function t(e,r,n,i){var a,o,s,u,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A,E,R,O,T,L,M,I,P,B,D,z,j,F,N,U,H,W,Z,q,Y,G,V,K,X,$,J,Q,tt,et,rt,nt,it,at,ot,st;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r.replace("slides/slide","slides/_rels/slide")+".rels",t.next=3,Zu(e,a);case 3:if(o=t.sent,s=o.Relationships.Relationship,u="",f="",h={},s.constructor!==Array){t.next=35;break}c=gf(s),t.prev=10,c.s();case 12:if((d=c.n()).done){t.next=25;break}p=d.value,t.t0=p.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"===t.t0?17:"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"===t.t0?19:("http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"===t.t0||"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"===t.t0||t.t0,22);break;case 17:return u=p.attrs.Target.replace("../","ppt/"),t.abrupt("break",23);case 19:return f=p.attrs.Target.replace("../","ppt/"),h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")},t.abrupt("break",23);case 22:h[p.attrs.Id]={type:p.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:p.attrs.Target.replace("../","ppt/")};case 23:t.next=12;break;case 25:t.next=30;break;case 27:t.prev=27,t.t1=t.catch(10),c.e(t.t1);case 30:return t.prev=30,c.f(),t.finish(30);case 33:t.next=36;break;case 35:u=s.attrs.Target.replace("../","ppt/");case 36:return t.next=38,Zu(e,u);case 38:return g=t.sent,t.next=41,Af(g);case 41:return b=t.sent,v=u.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",t.next=45,Zu(e,v);case 45:if(m=t.sent,s=m.Relationships.Relationship,y="",w={},s.constructor!==Array){t.next=73;break}_=gf(s),t.prev=51,_.s();case 53:if((k=_.n()).done){t.next=63;break}x=k.value,t.t2=x.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"===t.t2?58:60;break;case 58:return y=x.attrs.Target.replace("../","ppt/"),t.abrupt("break",61);case 60:w[x.attrs.Id]={type:x.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:x.attrs.Target.replace("../","ppt/")};case 61:t.next=53;break;case 63:t.next=68;break;case 65:t.prev=65,t.t3=t.catch(51),_.e(t.t3);case 68:return t.prev=68,_.f(),t.finish(68);case 71:t.next=74;break;case 73:y=s.attrs.Target.replace("../","ppt/");case 74:return t.next=76,Zu(e,y);case 76:return S=t.sent,C=Ml(S,["p:sldMaster","p:txStyles"]),A=Af(S),E=y.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",t.next=82,Zu(e,E);case 82:if(R=t.sent,s=R.Relationships.Relationship,O="",T={},s.constructor!==Array){t.next=109;break}L=gf(s),t.prev=88,L.s();case 90:if((M=L.n()).done){t.next=99;break}I=M.value,t.t4=I.attrs.Type,t.next="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.t4?95:96;break;case 95:return t.abrupt("break",97);case 96:T[I.attrs.Id]={type:I.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:I.attrs.Target.replace("../","ppt/")};case 97:t.next=90;break;case 99:t.next=104;break;case 101:t.prev=101,t.t5=t.catch(88),L.e(t.t5);case 104:return t.prev=104,L.f(),t.finish(104);case 107:t.next=110;break;case 109:O=s.attrs.Target.replace("../","ppt/");case 110:if(P={},!O){t.next=118;break}return B=O.split("/").pop(),D=O.replace(B,"_rels/"+B)+".rels",t.next=116,Zu(e,D);case 116:if((z=t.sent)&&(s=z.Relationships.Relationship))if(s.constructor===Array){j=gf(s);try{for(j.s();!(F=j.n()).done;)N=F.value,P[N.attrs.Id]={type:N.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:N.attrs.Target.replace("../","ppt/")}}catch(t){j.e(t)}finally{j.f()}}else P[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 118:if(U={},H={},!f){t.next=131;break}return W=f.split("/").pop(),Z=f.replace(W,"_rels/"+W)+".rels",t.next=125,Zu(e,f);case 125:return(H=t.sent)&&H&&H&&(q=(q=JSON.stringify(H)).replace(/dsp:/g,"p:"),H=JSON.parse(q)),t.next=129,Zu(e,Z);case 129:if(Y=t.sent)if((s=Y.Relationships.Relationship).constructor===Array){G=gf(s);try{for(G.s();!(V=G.n()).done;)K=V.value,U[K.attrs.Id]={type:K.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:K.attrs.Target.replace("../","ppt/")}}catch(t){G.e(t)}finally{G.f()}}else U[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 131:return t.next=133,Zu(e,"ppt/tableStyles.xml");case 133:return X=t.sent,t.next=136,Zu(e,r);case 136:return $=t.sent,J=$["p:sld"]["p:cSld"]["p:spTree"],Q={zip:e,slideLayoutContent:g,slideLayoutTables:b,slideMasterContent:S,slideMasterTables:A,slideContent:$,tableStyles:X,slideResObj:h,slideMasterTextStyles:C,layoutResObj:w,masterResObj:T,themeContent:n,themeResObj:P,digramFileContent:H,diagramResObj:U,defaultTextStyle:i},t.next=141,Gl(Q);case 141:tt=t.sent,et=[],t.t6=l.keys(J);case 144:if((t.t7=t.t6()).done){t.next=174;break}if(rt=t.t7.value,J[rt].constructor!==Array){t.next=168;break}nt=gf(J[rt]),t.prev=148,nt.s();case 150:if((it=nt.n()).done){t.next=158;break}return at=it.value,t.next=154,Ef(rt,at,Q,"slide");case 154:(ot=t.sent)&&et.push(ot);case 156:t.next=150;break;case 158:t.next=163;break;case 160:t.prev=160,t.t8=t.catch(148),nt.e(t.t8);case 163:return t.prev=163,nt.f(),t.finish(163);case 166:t.next=172;break;case 168:return t.next=170,Ef(rt,J[rt],Q,"slide");case 170:(st=t.sent)&&et.push(st);case 172:t.next=144;break;case 174:return t.abrupt("return",{fill:tt,elements:et});case 175:case"end":return t.stop()}}),t,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])}))),Cf.apply(this,arguments)}function Af(t){var e=t[Object.keys(t)[0]]["p:cSld"]["p:spTree"],r={},n={},i={};for(var a in e)if("p:nvGrpSpPr"!==a&&"p:grpSpPr"!==a){var o=e[a];if(o.constructor===Array){var s,u=gf(o);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l["p:nvSpPr"],h=Ml(f,["p:cNvPr","attrs","id"]),c=Ml(f,["p:nvPr","p:ph","attrs","idx"]),d=Ml(f,["p:nvPr","p:ph","attrs","type"]);h&&(r[h]=l),c&&(n[c]=l),d&&(i[d]=l)}}catch(t){u.e(t)}finally{u.f()}}else{var p=o["p:nvSpPr"],g=Ml(p,["p:cNvPr","attrs","id"]),b=Ml(p,["p:nvPr","p:ph","attrs","idx"]),v=Ml(p,["p:nvPr","p:ph","attrs","type"]);g&&(r[g]=o),b&&(n[b]=o),v&&(i[v]=o)}}return{idTable:r,idxTable:n,typeTable:i}}function Ef(t,e,r,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=n(l.mark((function t(e,r,n,i){var a;return l.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?5:"p:pic"===t.t0?7:"p:graphicFrame"===t.t0?9:"p:grpSp"===t.t0?13:"mc:AlternateContent"===t.t0?17:21;break;case 3:return a=Lf(r,n,i),t.abrupt("break",21);case 5:return a=Mf(r,n),t.abrupt("break",21);case 7:return a=Pf(r,n,i),t.abrupt("break",21);case 9:return t.next=11,Df(r,n,i);case 11:case 15:case 19:return a=t.sent,t.abrupt("break",21);case 13:return t.next=15,Of(r,n,i);case 17:return t.next=19,Of(Ml(r,["mc:Fallback"]),n,i);case 21:return t.abrupt("return",a);case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Of(t,e,r){return Tf.apply(this,arguments)}function Tf(){return Tf=n(l.mark((function t(e,r,n){var i,a,o,s,u,f,h,c,d,p,g,b,v,m,y,w,_,k,x;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=Ml(e,["p:grpSpPr","a:xfrm"])){t.next=3;break}return t.abrupt("return",null);case 3:a=parseInt(i["a:off"].attrs.x)*tf,o=parseInt(i["a:off"].attrs.y)*tf,s=parseInt(i["a:chOff"].attrs.x)*tf,u=parseInt(i["a:chOff"].attrs.y)*tf,f=parseInt(i["a:ext"].attrs.cx)*tf,h=parseInt(i["a:ext"].attrs.cy)*tf,c=parseInt(i["a:chExt"].attrs.cx)*tf,d=parseInt(i["a:chExt"].attrs.cy)*tf,(p=Ml(i,["attrs","rot"])||0)&&(p=Il(p)),g=f/c,b=h/d,v=[],t.t0=l.keys(e);case 17:if((t.t1=t.t0()).done){t.next=47;break}if(m=t.t1.value,e[m].constructor!==Array){t.next=41;break}y=gf(e[m]),t.prev=21,y.s();case 23:if((w=y.n()).done){t.next=31;break}return _=w.value,t.next=27,Ef(m,_,r,n);case 27:(k=t.sent)&&v.push(k);case 29:t.next=23;break;case 31:t.next=36;break;case 33:t.prev=33,t.t2=t.catch(21),y.e(t.t2);case 36:return t.prev=36,y.f(),t.finish(36);case 39:t.next=45;break;case 41:return t.next=43,Ef(m,e[m],r,n);case 43:(x=t.sent)&&v.push(x);case 45:t.next=17;break;case 47:return t.abrupt("return",{type:"group",top:o,left:a,width:f,height:h,rotate:p,elements:v.map((function(t){return pf(pf({},t),{},{left:(t.left-s)*g,top:(t.top-u)*b,width:t.width*g,height:t.height*b})}))});case 48:case"end":return t.stop()}}),t,null,[[21,33,36,39]])}))),Tf.apply(this,arguments)}function Lf(t,e,r){var n,i,a=Ml(t,["p:nvSpPr","p:cNvPr","attrs","name"]),o=Ml(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),s=Ml(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);(s?(n=e.slideLayoutTables.typeTable[s],i=e.slideMasterTables.typeTable[s]):o&&(n=e.slideLayoutTables.idxTable[o],i=e.slideMasterTables.idxTable[o]),s)||"1"===Ml(t,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])&&(s="text");return s||(s=Ml(n,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s=Ml(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),s||(s="diagramBg"===r?"diagram":"obj"),If(t,n,i,a,s,e)}function Mf(t,e){return If(t,void 0,void 0,t["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,void 0===t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:t["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,e)}function If(t,e,r,n,i,a){var o,s=["p:spPr","a:xfrm"],u=Ml(t,s),l=Ml(e,s),f=Ml(r,s),h=Ml(t,["p:spPr","a:prstGeom","attrs","prst"]),c=Ml(t,["p:spPr","a:custGeom"]),d=ef(u,l,f),p=d.top,g=d.left,b=rf(u,l,f),v=b.width,m=b.height,y="1"===Ml(u,["attrs","flipV"]),w="1"===Ml(u,["attrs","flipH"]),_=Il(Ml(u,["attrs","rot"])),k=Ml(t,["p:txXfrm"]);if(k){var x=Ml(k,["attrs","rot"]);x&&(o=Il(x)+90)}else o=_;var S="";t["p:txBody"]&&(S=sf(t["p:txBody"],t,e,i,a));var C,A=Fl(t,i,a),E=A.borderColor,R=A.borderWidth,O=A.borderType,T=A.strokeDasharray,L=Kl(t,void 0,a)||"",M=Ml(t,["p:spPr","a:effectLst","a:outerShdw"]);M&&(C=nf(M,a));var I=function(t,e,r){var n=Ml(t,["p:txBody","a:bodyPr","attrs","anchor"]);return n||(n=Ml(e,["p:txBody","a:bodyPr","attrs","anchor"]))||(n=Ml(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(n="t"),"ctr"===n?"mid":"b"===n?"down":"up"}(t,e,r),P="eaVert"===Ml(t,["p:txBody","a:bodyPr","attrs","vert"]),B={left:g,top:p,width:v,height:m,borderColor:E,borderWidth:R,borderType:O,borderStrokeDasharray:T,fillColor:L,content:S,isFlipV:y,isFlipH:w,rotate:_,vAlign:I,name:n};if(C&&(B.shadow=C),c&&"diagram"!==i){var D=Ml(u,["a:ext","attrs"]),z=function(t,e,r){var n=Ml(t,["a:pathLst"]),i=Ml(n,["a:path"]);Array.isArray(i)&&(i=i.pop());var a=parseInt(i.attrs.w),o=parseInt(i.attrs.h),s=0===a?0:1/a*e,u=0===o?0:1/o*r,l="",f=Ml(i,["a:moveTo"]),h=i["a:lnTo"],c=i["a:cubicBezTo"],d=i["a:arcTo"],p=Ml(i,["a:close"]);Array.isArray(f)||(f=[f]);var g=[];if(f.length>0){if(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,i=r.y,a=r.order;g.push({type:"movto",x:n,y:i,order:a})}))})),h&&Object.keys(h).forEach((function(t){var e=h[t]["a:pt"];e&&Object.keys(e).forEach((function(t){var r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})}))})),c){var b=[];Array.isArray(c)||(c=[c]),Object.keys(c).forEach((function(t){b.push(c[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 v=d.attrs,m=v.order,y=v.hR,w=v.wR,_=v.stAng,k=v.swAng,x=0,S=0,C=Ml(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:m})}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+=ff(R,E,R,E,O,O+parseInt(g[A].swAng)/6e4,!1)}else"close"===g[A].type&&(l+="z");A++}}return l}(c,parseInt(D.cx)*tf,parseInt(D.cy)*tf);return pf(pf({},B),{},{type:"shape",shapType:"custom",path:z})}return pf(pf({},B),{},!h||"obj"!==i&&i?{type:"text",isVertical:P,rotate:o}:{type:"shape",shapType:h})}function Pf(t,e,r){return Bf.apply(this,arguments)}function Bf(){return Bf=n(l.mark((function t(e,r,n){var i,a,o,s,u,f,h,c,d,p,g,b,v,m,y,w,_,k,x,S,C,A,E,R,O,T,L,M,I,P,B,D,z;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="slideMasterBg"===n?r.masterResObj:"slideLayoutBg"===n?r.layoutResObj:r.slideResObj,a=e["p:blipFill"]["a:blip"].attrs["r:embed"],o=i[a].target,s=Tl(o).toLowerCase(),u=r.zip,t.next=7,u.file(o).async("arraybuffer");case 7:if(f=t.sent,h=e["p:spPr"]["a:xfrm"],c=Bl(s),d=ef(h,void 0,void 0),p=d.top,g=d.left,b=rf(h,void 0,void 0),v=b.width,m=b.height,y="data:".concat(c,";base64,").concat(Ol(f)),w="1"===Ml(h,["attrs","flipV"]),_="1"===Ml(h,["attrs","flipH"]),k=0,(x=Ml(e,["p:spPr","a:xfrm","attrs","rot"]))&&(k=Il(x)),S=Ml(e,["p:nvPicPr","p:nvPr","a:videoFile"]),L=!1,!S){t.next=35;break}if(C=S.attrs["r:link"],!Dl(A=i[C].target)){t.next=28;break}A=Pl(A),L=!0,t.next=35;break;case 28:if("mp4"!==(E=Tl(A).toLowerCase())&&"webm"!==E&&"ogg"!==E){t.next=35;break}return t.next=32,u.file(A).async("arraybuffer");case 32:O=t.sent,R=Bl(E),T=URL.createObjectURL(new Blob([O],{type:R}));case 35:if(!(M=Ml(e,["p:nvPicPr","p:nvPr","a:audioFile"]))){t.next=45;break}if(I=M.attrs["r:link"],P=i[I].target,"mp3"!==(B=Tl(P).toLowerCase())&&"wav"!==B&&"ogg"!==B){t.next=45;break}return t.next=43,u.file(P).async("arraybuffer");case 43:D=t.sent,z=URL.createObjectURL(new Blob([D]));case 45:if(!S||L){t.next=47;break}return t.abrupt("return",{type:"video",top:p,left:g,width:v,height:m,rotate:k,blob:T});case 47:if(!S||!L){t.next=49;break}return t.abrupt("return",{type:"video",top:p,left:g,width:v,height:m,rotate:k,src:A});case 49:if(!M){t.next=51;break}return t.abrupt("return",{type:"audio",top:p,left:g,width:v,height:m,rotate:k,blob:z});case 51:return t.abrupt("return",{type:"image",top:p,left:g,width:v,height:m,rotate:k,src:y,isFlipV:w,isFlipH:_});case 52:case"end":return t.stop()}}),t)}))),Bf.apply(this,arguments)}function Df(t,e,r){return zf.apply(this,arguments)}function zf(){return zf=n(l.mark((function t(e,r,n){var i,a,o;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=Ml(e,["a:graphic","a:graphicData","attrs","uri"]),t.t0=i,t.next="http://schemas.openxmlformats.org/drawingml/2006/table"===t.t0?4:"http://schemas.openxmlformats.org/drawingml/2006/chart"===t.t0?6:"http://schemas.openxmlformats.org/drawingml/2006/diagram"===t.t0?10:"http://schemas.openxmlformats.org/presentationml/2006/ole"===t.t0?12:15;break;case 4:return a=jf(e,r),t.abrupt("break",15);case 6:return t.next=8,Ff(e,r);case 8:return a=t.sent,t.abrupt("break",15);case 10:return a=Uf(e,r),t.abrupt("break",15);case 12:return(o=Ml(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]))?Of(o,r,n):o=Ml(e,["a:graphic","a:graphicData","p:oleObj"]),t.abrupt("break",15);case 15:return t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),zf.apply(this,arguments)}function jf(t,e){var r,n,i=Ml(t,["a:graphic","a:graphicData","a:tbl"]),a=Ml(t,["p:xfrm"]),o=ef(a,void 0,void 0),s=o.top,u=o.left,l=rf(a,void 0,void 0),f=l.width,h=l.height,c=Ml(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),d=c.attrs?c.attrs.firstRow:void 0,p=c.attrs?c.attrs.firstCol:void 0,g=c.attrs?c.attrs.lastRow:void 0,b=c.attrs?c.attrs.lastCol:void 0,v=c.attrs?c.attrs.bandRow:void 0,m=c.attrs?c.attrs.bandCol:void 0,y={isFrstRowAttr:d&&"1"===d?1:0,isFrstColAttr:p&&"1"===p?1:0,isLstRowAttr:g&&"1"===g?1:0,isLstColAttr:b&&"1"===b?1:0,isBandRowAttr:v&&"1"===v?1:0,isBandColAttr:m&&"1"===m?1:0},w=c["a:tableStyleId"];if(w){var _=e.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(_)if(_.constructor===Array)for(var k=0;k<_.length;k++)_[k].attrs.styleId===w&&(r=_[k]);else _.attrs.styleId===w&&(r=_)}r&&(r.tblStylAttrObj=y);var x=Ml(r,["a:wholeTbl","a:tcStyle"]),S=Ml(x,["a:tcBdr"]);if(S){var C=function(t,e){var r={};if(t["a:bottom"]){var n=Fl({"p:spPr":{"a:ln":t["a:bottom"]["a:ln"]}},void 0,e);r.bottom=n}if(t["a:top"]){var i=Fl({"p:spPr":{"a:ln":t["a:top"]["a:ln"]}},void 0,e);r.top=i}if(t["a:right"]){var a=Fl({"p:spPr":{"a:ln":t["a:right"]["a:ln"]}},void 0,e);r.right=a}if(t["a:left"]){var o=Fl({"p:spPr":{"a:ln":t["a:left"]["a:ln"]}},void 0,e);r.left=o}return r}(S,e);C&&(n=C.bottom||C.left||C.right||C.top)}var A="",E=Ml(r,["a:tblBg","a:fillRef"]);E&&(A=Xl(E,void 0,void 0,e)),void 0===E&&(A=Xl(E=Ml(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,e));var R=i["a:tr"];R.constructor!==Array&&(R=[R]);for(var O=[],T=0;T<R.length;T++){var L=R[T],M=cf(R,T,y,r,e),I=M.fillColor,P=M.fontColor,B=M.fontBold,D=L["a:tc"],z=[];if(D.constructor===Array)for(var j=0;j<D.length;j++){var F=D[j],N=void 0;if(0===j&&1===y.isFrstColAttr)N="a:firstCol",1===y.isLstRowAttr&&T===R.length-1&&Ml(r,["a:seCell"])?N="a:seCell":1===y.isFrstRowAttr&&0===T&&Ml(r,["a:neCell"])&&(N="a:neCell");else if(j>0&&1===y.isBandColAttr&&(1!==y.isFrstColAttr||0!==T)&&(1!==y.isLstRowAttr||T!==R.length-1)&&j!==D.length-1&&j%2!=0){var U=Ml(r,["a:band2V"]);void 0===U?(U=Ml(r,["a:band1V"]))&&(N="a:band2V"):N="a:band2V"}j===D.length-1&&1===y.isLstColAttr&&(N="a:lastCol",1===y.isLstRowAttr&&T===R.length-1&&Ml(r,["a:swCell"])?N="a:swCell":1===y.isFrstRowAttr&&0===T&&Ml(r,["a:nwCell"])&&(N="a:nwCell"));var H=sf(F["a:txBody"],F,void 0,void 0,e),W=hf(F,r,N,e),Z={text:H};W.rowSpan&&(Z.rowSpan=W.rowSpan),W.colSpan&&(Z.colSpan=W.colSpan),W.vMerge&&(Z.vMerge=W.vMerge),W.hMerge&&(Z.hMerge=W.hMerge),(W.fontBold||B)&&(Z.fontBold=W.fontBold||B),(W.fontColor||P)&&(Z.fontColor=W.fontColor||P),(W.fillColor||I||A)&&(Z.fillColor=W.fillColor||I||A),z.push(Z)}else{var q=void 0;if(1===y.isFrstColAttr&&1!==y.isLstRowAttr)q="a:firstCol";else if(1===y.isBandColAttr&&1!==y.isLstRowAttr){var Y=Ml(r,["a:band2V"]);(Y||(Y=Ml(r,["a:band1V"])))&&(q="a:band2V")}1===y.isLstColAttr&&1!==y.isLstRowAttr&&(q="a:lastCol");var G=sf(D["a:txBody"],D,void 0,void 0,e),V=hf(D,r,q,e),K={text:G};V.rowSpan&&(K.rowSpan=V.rowSpan),V.colSpan&&(K.colSpan=V.colSpan),V.vMerge&&(K.vMerge=V.vMerge),V.hMerge&&(K.hMerge=V.hMerge),(V.fontBold||B)&&(K.fontBold=V.fontBold||B),(V.fontColor||P)&&(K.fontColor=V.fontColor||P),(V.fillColor||I||A)&&(K.fillColor=V.fillColor||I||A),z.push(K)}O.push(z)}return pf({type:"table",top:s,left:u,width:f,height:h,data:O},n||{})}function Ff(t,e){return Nf.apply(this,arguments)}function Nf(){return Nf=n(l.mark((function t(e,r){var n,i,a,o,s,u,f,h,c,d,p,g,b;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Ml(e,["p:xfrm"]),i=ef(n,void 0,void 0),a=i.top,o=i.left,s=rf(n,void 0,void 0),u=s.width,f=s.height,h=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=r.slideResObj[h].target,t.next=7,Zu(r.zip,c);case 7:if(d=t.sent,p=Ml(d,["c:chartSpace","c:chart","c:plotArea"]),g=Jl(p)){t.next=12;break}return t.abrupt("return",{});case 12:return b={type:"chart",top:a,left:o,width:u,height:f,data:g.data,chartType:g.type},void 0!==g.marker&&(b.marker=g.marker),void 0!==g.barDir&&(b.barDir=g.barDir),void 0!==g.holeSize&&(b.holeSize=g.holeSize),void 0!==g.grouping&&(b.grouping=g.grouping),void 0!==g.style&&(b.style=g.style),t.abrupt("return",b);case 19:case"end":return t.stop()}}),t)}))),Nf.apply(this,arguments)}function Uf(t,e){var r=Ml(t,["p:xfrm"]),n=ef(r,void 0,void 0),i=n.left,a=n.top,o=rf(r,void 0,void 0),s=o.width,u=o.height,l=Ml(e.digramFileContent,["p:drawing","p:spTree","p:sp"]),f=[];if(l){var h,c=gf(l);try{for(c.s();!(h=c.n()).done;){var d=Lf(h.value,e,"diagramBg");d&&f.push(d)}}catch(t){c.e(t)}finally{c.f()}}return{type:"diagram",left:i,top:a,width:s,height:u,elements:f}}t.parse=function(t){return vf.apply(this,arguments)}}));
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|