wiki/static/js/excalidraw-assets/vendor-881ef50682618d9bd3d3.js

2 lines
52 KiB
JavaScript

/*! For license information please see vendor-881ef50682618d9bd3d3.js.LICENSE.txt */
(self.webpackChunkExcalidraw=self.webpackChunkExcalidraw||[]).push([[736],{6233:function(t,e){var a;a=function(t){t.version="0.3.0";var e=function(){for(var t=0,e=new Array(256),a=0;256!=a;++a)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=a)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[a]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}(),a="undefined"!=typeof Buffer;function n(t){for(var a=-1,n=0,i=t.length-7;n<i;)a=(a=(a=(a=(a=(a=(a=(a=a>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])];for(;n<i+7;)a=a>>>8^e[255&(a^t[n++])];return-1^a}t.table=e,t.bstr=function(t){if(t.length>32768&&a)return n(new Buffer(t));for(var i=-1,r=t.length-1,s=0;s<r;)i=e[255&(i^t.charCodeAt(s++))]^i>>>8,i=e[255&(i^t.charCodeAt(s++))]^i>>>8;return s===r&&(i=i>>>8^e[255&(i^t.charCodeAt(s))]),-1^i},t.buf=function(t){if(t.length>1e4)return n(t);for(var a=-1,i=0,r=t.length-3;i<r;)a=(a=(a=(a=a>>>8^e[255&(a^t[i++])])>>>8^e[255&(a^t[i++])])>>>8^e[255&(a^t[i++])])>>>8^e[255&(a^t[i++])];for(;i<r+3;)a=a>>>8^e[255&(a^t[i++])];return-1^a},t.str=function(t){for(var a,n,i=-1,r=0,s=t.length;r<s;)(a=t.charCodeAt(r++))<128?i=i>>>8^e[255&(i^a)]:a<2048?i=(i=i>>>8^e[255&(i^(192|a>>6&31))])>>>8^e[255&(i^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),n=1023&t.charCodeAt(r++),i=(i=(i=(i=i>>>8^e[255&(i^(240|a>>8&7))])>>>8^e[255&(i^(128|a>>2&63))])>>>8^e[255&(i^(128|n>>6&15|3&a))])>>>8^e[255&(i^(128|63&n))]):i=(i=(i=i>>>8^e[255&(i^(224|a>>12&15))])>>>8^e[255&(i^(128|a>>6&63))])>>>8^e[255&(i^(128|63&a))];return-1^i}},"undefined"==typeof DO_NOT_EXPORT_CRC?a(e):a({})},2744:function(t,e,a){"use strict";var n={};(0,a(9187).assign)(n,a(4395),a(578),a(2684)),t.exports=n},4395:function(t,e,a){"use strict";var n=a(7651),i=a(9187),r=a(8592),s=a(5604),o=a(249),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.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 o,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==a)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?r.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(a=n.deflateSetDictionary(this.strm,d)))throw new Error(s[a]);this._dict_set=!0}}function d(t,e){var a=new h(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}h.prototype.push=function(t,e){var a,s,o=this.strm,h=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=r.string2buf(t):"[object ArrayBuffer]"===l.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(h),o.next_out=0,o.avail_out=h),1!==(a=n.deflate(o,s))&&0!==a)return this.onEnd(a),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(r.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==s||(this.onEnd(0),o.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},578:function(t,e,a){"use strict";var n=a(7823),i=a(9187),r=a(8592),s=a(2684),o=a(5604),l=a(249),h=a(9968),d=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.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 l,this.strm.avail_out=0;var a=n.inflateInit2(this.strm,e.windowBits);if(a!==s.Z_OK)throw new Error(o[a]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=r.string2buf(e.dictionary):"[object ArrayBuffer]"===d.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(o[a])}function u(t,e){var a=new f(e);if(a.push(t,!0),a.err)throw a.msg||o[a.err];return a.result}f.prototype.push=function(t,e){var a,o,l,h,f,u=this.strm,c=this.options.chunkSize,_=this.options.dictionary,w=!1;if(this.ended)return!1;o=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?u.input=r.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new i.Buf8(c),u.next_out=0,u.avail_out=c),(a=n.inflate(u,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&_&&(a=n.inflateSetDictionary(this.strm,_)),a===s.Z_BUF_ERROR&&!0===w&&(a=s.Z_OK,w=!1),a!==s.Z_STREAM_END&&a!==s.Z_OK)return this.onEnd(a),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&a!==s.Z_STREAM_END&&(0!==u.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(u.output,u.next_out),h=u.next_out-l,f=r.buf2string(u.output,l),u.next_out=h,u.avail_out=c-h,h&&i.arraySet(u.output,u.output,l,h,0),this.onData(f)):this.onData(i.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(w=!0)}while((u.avail_in>0||0===u.avail_out)&&a!==s.Z_STREAM_END);return a===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(a=n.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),u.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=f,e.inflate=u,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},e.ungzip=u},9187:function(t,e){"use strict";var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var i in a)n(a,i)&&(t[i]=a[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,a,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),i);else for(var r=0;r<n;r++)t[i+r]=e[a+r]},flattenChunks:function(t){var e,a,n,i,r,s;for(n=0,e=0,a=t.length;e<a;e++)n+=t[e].length;for(s=new Uint8Array(n),i=0,e=0,a=t.length;e<a;e++)r=t[e],s.set(r,i),i+=r.length;return s}},r={arraySet:function(t,e,a,n,i){for(var r=0;r<n;r++)t[i+r]=e[a+r]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,r))},e.setTyped(a)},8592:function(t,e,a){"use strict";var n=a(9187),i=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){r=!1}for(var s=new n.Buf8(256),o=0;o<256;o++)s[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&r||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a}s[254]=s[254]=1,e.string2buf=function(t){var e,a,i,r,s,o=t.length,l=0;for(r=0;r<o;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<o&&56320==(64512&(i=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(i-56320),r++),l+=a<128?1:a<2048?2:a<65536?3:4;for(e=new n.Buf8(l),s=0,r=0;s<l;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<o&&56320==(64512&(i=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(i-56320),r++),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,i=e.length;a<i;a++)e[a]=t.charCodeAt(a);return e},e.buf2string=function(t,e){var a,n,i,r,o=e||t.length,h=new Array(2*o);for(n=0,a=0;a<o;)if((i=t[a++])<128)h[n++]=i;else if((r=s[i])>4)h[n++]=65533,a+=r-1;else{for(i&=2===r?31:3===r?15:7;r>1&&a<o;)i=i<<6|63&t[a++],r--;r>1?h[n++]=65533:i<65536?h[n++]=i:(i-=65536,h[n++]=55296|i>>10&1023,h[n++]=56320|1023&i)}return l(h,n)},e.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+s[t[a]]>e?a:e}},3693:function(t){"use strict";t.exports=function(t,e,a,n){for(var i=65535&t|0,r=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{r=r+(i=i+e[n++]|0)|0}while(--s);i%=65521,r%=65521}return i|r<<16|0}},2684:function(t){"use strict";t.exports={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}},8464:function(t){"use strict";var e=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();t.exports=function(t,a,n,i){var r=e,s=i+n;t^=-1;for(var o=i;o<s;o++)t=t>>>8^r[255&(t^a[o])];return-1^t}},7651:function(t,e,a){"use strict";var n,i=a(9187),r=a(8676),s=a(3693),o=a(8464),l=a(5604),h=-2,d=258,f=262,u=103,c=113,_=666;function w(t,e){return t.msg=l[e],e}function g(t){return(t<<1)-(t>4?9:0)}function p(t){for(var e=t.length;--e>=0;)t[e]=0}function m(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(i.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function b(t,e){r._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function k(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function y(t,e){var a,n,i=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-f?t.strstart-(t.w_size-f):0,h=t.window,u=t.w_mask,c=t.prev,_=t.strstart+d,w=h[r+s-1],g=h[r+s];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(a=e)+s]===g&&h[a+s-1]===w&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do{}while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&r<_);if(n=d-(_-r),r=_-d,n>s){if(t.match_start=e,s=n,n>=o)break;w=h[r+s-1],g=h[r+s]}}}while((e=c[e&u])>l&&0!=--i);return s<=t.lookahead?s:t.lookahead}function x(t){var e,a,n,r,l,h,d,u,c,_,w=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=w+(w-f)){i.arraySet(t.window,t.window,w,w,0),t.match_start-=w,t.strstart-=w,t.block_start-=w,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=w?n-w:0}while(--a);e=a=w;do{n=t.prev[--e],t.prev[e]=n>=w?n-w:0}while(--a);r+=w}if(0===t.strm.avail_in)break;if(h=t.strm,d=t.window,u=t.strstart+t.lookahead,c=r,_=void 0,(_=h.avail_in)>c&&(_=c),a=0===_?0:(h.avail_in-=_,i.arraySet(d,h.input,h.next_in,_,u),1===h.state.wrap?h.adler=s(h.adler,d,_,u):2===h.state.wrap&&(h.adler=o(h.adler,d,_,u)),h.next_in+=_,h.total_in+=_,_),t.lookahead+=a,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<f&&0!==t.strm.avail_in)}function z(t,e){for(var a,n;;){if(t.lookahead<f){if(x(t),t.lookahead<f&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-f&&(t.match_length=y(t,a)),t.match_length>=3)if(n=r._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,a=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=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function A(t,e){for(var a,n,i;;){if(t.lookahead<f){if(x(t),t.lookahead<f&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,a=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!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-f&&(t.match_length=y(t,a),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=r._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,a=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&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=r._tr_tally(t,0,t.window[t.strstart-1]))&&b(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=r._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function E(t,e,a,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=i}function S(){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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),p(this.dyn_ltree),p(this.dyn_dtree),p(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),p(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),p(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 B(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:c,t.adler=2===e.wrap?0:1,e.last_flush=0,r._tr_init(e),0):w(t,h)}function C(t){var e,a=B(t);return 0===a&&((e=t.state).window_size=2*e.w_size,p(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[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),a}function I(t,e,a,n,r,s){if(!t)return h;var o=1;if(-1===e&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||s<0||s>4)return w(t,h);8===n&&(n=9);var l=new S;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,C(t)}n=[new E(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(x(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+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-f&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)})),new E(4,4,8,4,z),new E(4,5,16,8,z),new E(4,6,32,32,z),new E(4,4,16,16,A),new E(8,16,32,32,A),new E(8,16,128,128,A),new E(8,32,128,256,A),new E(32,128,258,1024,A),new E(32,258,258,4096,A)],e.deflateInit=function(t,e){return I(t,e,8,15,8,0)},e.deflateInit2=I,e.deflateReset=C,e.deflateResetKeep=B,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var a,i,s,l;if(!t||!t.state||e>5||e<0)return t?w(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===_&&4!==e)return w(t,0===t.avail_out?-5:h);if(i.strm=t,a=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,v(i,31),v(i,139),v(i,8),i.gzhead?(v(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),v(i,255&i.gzhead.time),v(i,i.gzhead.time>>8&255),v(i,i.gzhead.time>>16&255),v(i,i.gzhead.time>>24&255),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(v(i,255&i.gzhead.extra.length),v(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=o(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(v(i,0),v(i,0),v(i,0),v(i,0),v(i,0),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,3),i.status=c);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=c,k(i,f),0!==i.strstart&&(k(i,t.adler>>>16),k(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),m(t),s=i.pending,i.pending!==i.pending_buf_size));)v(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),m(t),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,v(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),m(t),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,v(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=u)}else i.status=u;if(i.status===u&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&m(t),i.pending+2<=i.pending_buf_size&&(v(i,255&t.adler),v(i,t.adler>>8&255),t.adler=0,i.status=c)):i.status=c),0!==i.pending){if(m(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(a)&&4!==e)return w(t,-5);if(i.status===_&&0!==t.avail_in)return w(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&i.status!==_){var y=2===i.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(x(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var a,n,i,s,o=t.window;;){if(t.lookahead<=d){if(x(t),t.lookahead<=d&&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]){s=t.strstart+d;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<s);t.match_length=d-(s-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=r._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==y&&4!==y||(i.status=_),1===y||3===y)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===e?r._tr_align(i):5!==e&&(r._tr_stored_block(i,0,0,!1),3===e&&(p(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),m(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(v(i,255&t.adler),v(i,t.adler>>8&255),v(i,t.adler>>16&255),v(i,t.adler>>24&255),v(i,255&t.total_in),v(i,t.total_in>>8&255),v(i,t.total_in>>16&255),v(i,t.total_in>>24&255)):(k(i,t.adler>>>16),k(i,65535&t.adler)),m(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==u&&e!==c&&e!==_?w(t,h):(t.state=null,e===c?w(t,-3):0):h},e.deflateSetDictionary=function(t,e){var a,n,r,o,l,d,f,u,c=e.length;if(!t||!t.state)return h;if(2===(o=(a=t.state).wrap)||1===o&&42!==a.status||a.lookahead)return h;for(1===o&&(t.adler=s(t.adler,e,c,0)),a.wrap=0,c>=a.w_size&&(0===o&&(p(a.head),a.strstart=0,a.block_start=0,a.insert=0),u=new i.Buf8(a.w_size),i.arraySet(u,e,c-a.w_size,a.w_size,0),e=u,c=a.w_size),l=t.avail_in,d=t.next_in,f=t.input,t.avail_in=c,t.next_in=0,t.input=e,x(a);a.lookahead>=3;){n=a.strstart,r=a.lookahead-2;do{a.ins_h=(a.ins_h<<a.hash_shift^a.window[n+3-1])&a.hash_mask,a.prev[n&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=n,n++}while(--r);a.strstart=n,a.lookahead=2,x(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,t.next_in=d,t.input=f,t.avail_in=l,a.wrap=o,0},e.deflateInfo="pako deflate (from Nodeca project)"},9968:function(t){"use strict";t.exports=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}},9365:function(t){"use strict";t.exports=function(t,e){var a,n,i,r,s,o,l,h,d,f,u,c,_,w,g,p,m,b,v,k,y,x,z,A,E;a=t.state,n=t.next_in,A=t.input,i=n+(t.avail_in-5),r=t.next_out,E=t.output,s=r-(e-t.avail_out),o=r+(t.avail_out-257),l=a.dmax,h=a.wsize,d=a.whave,f=a.wnext,u=a.window,c=a.hold,_=a.bits,w=a.lencode,g=a.distcode,p=(1<<a.lenbits)-1,m=(1<<a.distbits)-1;t:do{_<15&&(c+=A[n++]<<_,_+=8,c+=A[n++]<<_,_+=8),b=w[c&p];e:for(;;){if(c>>>=v=b>>>24,_-=v,0===(v=b>>>16&255))E[r++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=w[(65535&b)+(c&(1<<v)-1)];continue e}if(32&v){a.mode=12;break t}t.msg="invalid literal/length code",a.mode=30;break t}k=65535&b,(v&=15)&&(_<v&&(c+=A[n++]<<_,_+=8),k+=c&(1<<v)-1,c>>>=v,_-=v),_<15&&(c+=A[n++]<<_,_+=8,c+=A[n++]<<_,_+=8),b=g[c&m];a:for(;;){if(c>>>=v=b>>>24,_-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=g[(65535&b)+(c&(1<<v)-1)];continue a}t.msg="invalid distance code",a.mode=30;break t}if(y=65535&b,_<(v&=15)&&(c+=A[n++]<<_,(_+=8)<v&&(c+=A[n++]<<_,_+=8)),(y+=c&(1<<v)-1)>l){t.msg="invalid distance too far back",a.mode=30;break t}if(c>>>=v,_-=v,y>(v=r-s)){if((v=y-v)>d&&a.sane){t.msg="invalid distance too far back",a.mode=30;break t}if(x=0,z=u,0===f){if(x+=h-v,v<k){k-=v;do{E[r++]=u[x++]}while(--v);x=r-y,z=E}}else if(f<v){if(x+=h+f-v,(v-=f)<k){k-=v;do{E[r++]=u[x++]}while(--v);if(x=0,f<k){k-=v=f;do{E[r++]=u[x++]}while(--v);x=r-y,z=E}}}else if(x+=f-v,v<k){k-=v;do{E[r++]=u[x++]}while(--v);x=r-y,z=E}for(;k>2;)E[r++]=z[x++],E[r++]=z[x++],E[r++]=z[x++],k-=3;k&&(E[r++]=z[x++],k>1&&(E[r++]=z[x++]))}else{x=r-y;do{E[r++]=E[x++],E[r++]=E[x++],E[r++]=E[x++],k-=3}while(k>2);k&&(E[r++]=E[x++],k>1&&(E[r++]=E[x++]))}break}}break}}while(n<i&&r<o);n-=k=_>>3,c&=(1<<(_-=k<<3))-1,t.next_in=n,t.next_out=r,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=r<o?o-r+257:257-(r-o),a.hold=c,a.bits=_}},7823:function(t,e,a){"use strict";var n=a(9187),i=a(3693),r=a(8464),s=a(9365),o=a(6446),l=-2,h=12,d=30;function f(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(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 n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function _(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,c(t)):l}function w(t,e){var a,n;return t&&t.state?(n=t.state,e<0?(a=0,e=-e):(a=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=a,n.wbits=e,_(t))):l}function g(t,e){var a,n;return t?(n=new u,t.state=n,n.window=null,0!==(a=w(t,e))&&(t.state=null),a):l}var p,m,b=!0;function v(t){if(b){var e;for(p=new n.Buf32(512),m=new n.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(o(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;o(2,t.lens,0,32,m,0,t.work,{bits:5}),b=!1}t.lencode=p,t.lenbits=9,t.distcode=m,t.distbits=5}function k(t,e,a,i){var r,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,e,a-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((r=s.wsize-s.wnext)>i&&(r=i),n.arraySet(s.window,e,a-i,r,s.wnext),(i-=r)?(n.arraySet(s.window,e,a-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=r))),0}e.inflateReset=_,e.inflateReset2=w,e.inflateResetKeep=c,e.inflateInit=function(t){return g(t,15)},e.inflateInit2=g,e.inflate=function(t,e){var a,u,c,_,w,g,p,m,b,y,x,z,A,E,S,B,C,I,Z,R,O,U,N,D,T=0,F=new n.Buf8(4),L=[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 l;(a=t.state).mode===h&&(a.mode=13),w=t.next_out,c=t.output,p=t.avail_out,_=t.next_in,u=t.input,g=t.avail_in,m=a.hold,b=a.bits,y=g,x=p,U=0;t:for(;;)switch(a.mode){case 1:if(0===a.wrap){a.mode=13;break}for(;b<16;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(2&a.wrap&&35615===m){a.check=0,F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0),m=0,b=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",a.mode=d;break}if(8!=(15&m)){t.msg="unknown compression method",a.mode=d;break}if(b-=4,O=8+(15&(m>>>=4)),0===a.wbits)a.wbits=O;else if(O>a.wbits){t.msg="invalid window size",a.mode=d;break}a.dmax=1<<O,t.adler=a.check=1,a.mode=512&m?10:h,m=0,b=0;break;case 2:for(;b<16;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(a.flags=m,8!=(255&a.flags)){t.msg="unknown compression method",a.mode=d;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=d;break}a.head&&(a.head.text=m>>8&1),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,b=0,a.mode=3;case 3:for(;b<32;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}a.head&&(a.head.time=m),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,F[2]=m>>>16&255,F[3]=m>>>24&255,a.check=r(a.check,F,4,0)),m=0,b=0,a.mode=4;case 4:for(;b<16;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}a.head&&(a.head.xflags=255&m,a.head.os=m>>8),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,b=0,a.mode=5;case 5:if(1024&a.flags){for(;b<16;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}a.length=m,a.head&&(a.head.extra_len=m),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,b=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&((z=a.length)>g&&(z=g),z&&(a.head&&(O=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),n.arraySet(a.head.extra,u,_,z,O)),512&a.flags&&(a.check=r(a.check,u,z,_)),g-=z,_+=z,a.length-=z),a.length))break t;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===g)break t;z=0;do{O=u[_+z++],a.head&&O&&a.length<65536&&(a.head.name+=String.fromCharCode(O))}while(O&&z<g);if(512&a.flags&&(a.check=r(a.check,u,z,_)),g-=z,_+=z,O)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=8;case 8:if(4096&a.flags){if(0===g)break t;z=0;do{O=u[_+z++],a.head&&O&&a.length<65536&&(a.head.comment+=String.fromCharCode(O))}while(O&&z<g);if(512&a.flags&&(a.check=r(a.check,u,z,_)),g-=z,_+=z,O)break t}else a.head&&(a.head.comment=null);a.mode=9;case 9:if(512&a.flags){for(;b<16;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(m!==(65535&a.check)){t.msg="header crc mismatch",a.mode=d;break}m=0,b=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=h;break;case 10:for(;b<32;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}t.adler=a.check=f(m),m=0,b=0,a.mode=11;case 11:if(0===a.havedict)return t.next_out=w,t.avail_out=p,t.next_in=_,t.avail_in=g,a.hold=m,a.bits=b,2;t.adler=a.check=1,a.mode=h;case h:if(5===e||6===e)break t;case 13:if(a.last){m>>>=7&b,b-=7&b,a.mode=27;break}for(;b<3;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}switch(a.last=1&m,b-=1,3&(m>>>=1)){case 0:a.mode=14;break;case 1:if(v(a),a.mode=20,6===e){m>>>=2,b-=2;break t}break;case 2:a.mode=17;break;case 3:t.msg="invalid block type",a.mode=d}m>>>=2,b-=2;break;case 14:for(m>>>=7&b,b-=7&b;b<32;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if((65535&m)!=(m>>>16^65535)){t.msg="invalid stored block lengths",a.mode=d;break}if(a.length=65535&m,m=0,b=0,a.mode=15,6===e)break t;case 15:a.mode=16;case 16:if(z=a.length){if(z>g&&(z=g),z>p&&(z=p),0===z)break t;n.arraySet(c,u,_,z,w),g-=z,_+=z,p-=z,w+=z,a.length-=z;break}a.mode=h;break;case 17:for(;b<14;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(a.nlen=257+(31&m),m>>>=5,b-=5,a.ndist=1+(31&m),m>>>=5,b-=5,a.ncode=4+(15&m),m>>>=4,b-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=d;break}a.have=0,a.mode=18;case 18:for(;a.have<a.ncode;){for(;b<3;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}a.lens[L[a.have++]]=7&m,m>>>=3,b-=3}for(;a.have<19;)a.lens[L[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,N={bits:a.lenbits},U=o(0,a.lens,0,19,a.lencode,0,a.work,N),a.lenbits=N.bits,U){t.msg="invalid code lengths set",a.mode=d;break}a.have=0,a.mode=19;case 19:for(;a.have<a.nlen+a.ndist;){for(;B=(T=a.lencode[m&(1<<a.lenbits)-1])>>>16&255,C=65535&T,!((S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(C<16)m>>>=S,b-=S,a.lens[a.have++]=C;else{if(16===C){for(D=S+2;b<D;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(m>>>=S,b-=S,0===a.have){t.msg="invalid bit length repeat",a.mode=d;break}O=a.lens[a.have-1],z=3+(3&m),m>>>=2,b-=2}else if(17===C){for(D=S+3;b<D;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}b-=S,O=0,z=3+(7&(m>>>=S)),m>>>=3,b-=3}else{for(D=S+7;b<D;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}b-=S,O=0,z=11+(127&(m>>>=S)),m>>>=7,b-=7}if(a.have+z>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=d;break}for(;z--;)a.lens[a.have++]=O}}if(a.mode===d)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=d;break}if(a.lenbits=9,N={bits:a.lenbits},U=o(1,a.lens,0,a.nlen,a.lencode,0,a.work,N),a.lenbits=N.bits,U){t.msg="invalid literal/lengths set",a.mode=d;break}if(a.distbits=6,a.distcode=a.distdyn,N={bits:a.distbits},U=o(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,N),a.distbits=N.bits,U){t.msg="invalid distances set",a.mode=d;break}if(a.mode=20,6===e)break t;case 20:a.mode=21;case 21:if(g>=6&&p>=258){t.next_out=w,t.avail_out=p,t.next_in=_,t.avail_in=g,a.hold=m,a.bits=b,s(t,x),w=t.next_out,c=t.output,p=t.avail_out,_=t.next_in,u=t.input,g=t.avail_in,m=a.hold,b=a.bits,a.mode===h&&(a.back=-1);break}for(a.back=0;B=(T=a.lencode[m&(1<<a.lenbits)-1])>>>16&255,C=65535&T,!((S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(B&&0==(240&B)){for(I=S,Z=B,R=C;B=(T=a.lencode[R+((m&(1<<I+Z)-1)>>I)])>>>16&255,C=65535&T,!(I+(S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}m>>>=I,b-=I,a.back+=I}if(m>>>=S,b-=S,a.back+=S,a.length=C,0===B){a.mode=26;break}if(32&B){a.back=-1,a.mode=h;break}if(64&B){t.msg="invalid literal/length code",a.mode=d;break}a.extra=15&B,a.mode=22;case 22:if(a.extra){for(D=a.extra;b<D;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}a.length+=m&(1<<a.extra)-1,m>>>=a.extra,b-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;B=(T=a.distcode[m&(1<<a.distbits)-1])>>>16&255,C=65535&T,!((S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(0==(240&B)){for(I=S,Z=B,R=C;B=(T=a.distcode[R+((m&(1<<I+Z)-1)>>I)])>>>16&255,C=65535&T,!(I+(S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}m>>>=I,b-=I,a.back+=I}if(m>>>=S,b-=S,a.back+=S,64&B){t.msg="invalid distance code",a.mode=d;break}a.offset=C,a.extra=15&B,a.mode=24;case 24:if(a.extra){for(D=a.extra;b<D;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}a.offset+=m&(1<<a.extra)-1,m>>>=a.extra,b-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=d;break}a.mode=25;case 25:if(0===p)break t;if(z=x-p,a.offset>z){if((z=a.offset-z)>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=d;break}z>a.wnext?(z-=a.wnext,A=a.wsize-z):A=a.wnext-z,z>a.length&&(z=a.length),E=a.window}else E=c,A=w-a.offset,z=a.length;z>p&&(z=p),p-=z,a.length-=z;do{c[w++]=E[A++]}while(--z);0===a.length&&(a.mode=21);break;case 26:if(0===p)break t;c[w++]=a.length,p--,a.mode=21;break;case 27:if(a.wrap){for(;b<32;){if(0===g)break t;g--,m|=u[_++]<<b,b+=8}if(x-=p,t.total_out+=x,a.total+=x,x&&(t.adler=a.check=a.flags?r(a.check,c,x,w-x):i(a.check,c,x,w-x)),x=p,(a.flags?m:f(m))!==a.check){t.msg="incorrect data check",a.mode=d;break}m=0,b=0}a.mode=28;case 28:if(a.wrap&&a.flags){for(;b<32;){if(0===g)break t;g--,m+=u[_++]<<b,b+=8}if(m!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=d;break}m=0,b=0}a.mode=29;case 29:U=1;break t;case d:U=-3;break t;case 31:return-4;case 32:default:return l}return t.next_out=w,t.avail_out=p,t.next_in=_,t.avail_in=g,a.hold=m,a.bits=b,(a.wsize||x!==t.avail_out&&a.mode<d&&(a.mode<27||4!==e))&&k(t,t.output,t.next_out,x-t.avail_out)?(a.mode=31,-4):(y-=t.avail_in,x-=t.avail_out,t.total_in+=y,t.total_out+=x,a.total+=x,a.wrap&&x&&(t.adler=a.check=a.flags?r(a.check,c,x,t.next_out-x):i(a.check,c,x,t.next_out-x)),t.data_type=a.bits+(a.last?64:0)+(a.mode===h?128:0)+(20===a.mode||15===a.mode?256:0),(0===y&&0===x||4===e)&&0===U&&(U=-5),U)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var a;return t&&t.state?0==(2&(a=t.state).wrap)?l:(a.head=e,e.done=!1,0):l},e.inflateSetDictionary=function(t,e){var a,n=e.length;return t&&t.state?0!==(a=t.state).wrap&&11!==a.mode?l:11===a.mode&&i(1,e,n,0)!==a.check?-3:k(t,e,n,n)?(a.mode=31,-4):(a.havedict=1,0):l},e.inflateInfo="pako inflate (from Nodeca project)"},6446:function(t,e,a){"use strict";var n=a(9187),i=15,r=[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],s=[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],o=[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],l=[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];t.exports=function(t,e,a,h,d,f,u,c){var _,w,g,p,m,b,v,k,y,x=c.bits,z=0,A=0,E=0,S=0,B=0,C=0,I=0,Z=0,R=0,O=0,U=null,N=0,D=new n.Buf16(16),T=new n.Buf16(16),F=null,L=0;for(z=0;z<=i;z++)D[z]=0;for(A=0;A<h;A++)D[e[a+A]]++;for(B=x,S=i;S>=1&&0===D[S];S--);if(B>S&&(B=S),0===S)return d[f++]=20971520,d[f++]=20971520,c.bits=1,0;for(E=1;E<S&&0===D[E];E++);for(B<E&&(B=E),Z=1,z=1;z<=i;z++)if(Z<<=1,(Z-=D[z])<0)return-1;if(Z>0&&(0===t||1!==S))return-1;for(T[1]=0,z=1;z<i;z++)T[z+1]=T[z]+D[z];for(A=0;A<h;A++)0!==e[a+A]&&(u[T[e[a+A]]++]=A);if(0===t?(U=F=u,b=19):1===t?(U=r,N-=257,F=s,L-=257,b=256):(U=o,F=l,b=-1),O=0,A=0,z=E,m=f,C=B,I=0,g=-1,p=(R=1<<B)-1,1===t&&R>852||2===t&&R>592)return 1;for(;;){v=z-I,u[A]<b?(k=0,y=u[A]):u[A]>b?(k=F[L+u[A]],y=U[N+u[A]]):(k=96,y=0),_=1<<z-I,E=w=1<<C;do{d[m+(O>>I)+(w-=_)]=v<<24|k<<16|y|0}while(0!==w);for(_=1<<z-1;O&_;)_>>=1;if(0!==_?(O&=_-1,O+=_):O=0,A++,0==--D[z]){if(z===S)break;z=e[a+u[A]]}if(z>B&&(O&p)!==g){for(0===I&&(I=B),m+=E,Z=1<<(C=z-I);C+I<S&&!((Z-=D[C+I])<=0);)C++,Z<<=1;if(R+=1<<C,1===t&&R>852||2===t&&R>592)return 1;d[g=O&p]=B<<24|C<<16|m-f|0}}return 0!==O&&(d[m+O]=z-I<<24|64<<16|0),c.bits=B,0}},5604:function(t){"use strict";t.exports={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"}},8676:function(t,e,a){"use strict";var n=a(9187);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,s=286,o=30,l=15,h=[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],d=[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],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var _=new Array(60);i(_);var w=new Array(512);i(w);var g=new Array(256);i(g);var p=new Array(29);i(p);var m,b,v,k=new Array(o);function y(t,e,a,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function x(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function z(t){return t<256?w[t]:w[256+(t>>>7)]}function A(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function E(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function S(t,e,a){E(t,a[2*e],a[2*e+1])}function B(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1}function C(t,e,a){var n,i,r=new Array(16),s=0;for(n=1;n<=l;n++)r[n]=s=s+a[n-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=B(r[o]++,o))}}function I(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<o;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 Z(t){t.bi_valid>8?A(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 R(t,e,a,n){var i=2*e,r=2*a;return t[i]<t[r]||t[i]===t[r]&&n[e]<=n[a]}function O(t,e,a){for(var n=t.heap[a],i=a<<1;i<=t.heap_len&&(i<t.heap_len&&R(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!R(e,n,t.heap[i],t.depth));)t.heap[a]=t.heap[i],a=i,i<<=1;t.heap[a]=n}function U(t,e,a){var n,i,s,o,l=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],i=t.pending_buf[t.l_buf+l],l++,0===n?S(t,i,e):(S(t,(s=g[i])+r+1,e),0!==(o=h[s])&&E(t,i-=p[s],o),S(t,s=z(--n),a),0!==(o=d[s])&&E(t,n-=k[s],o))}while(l<t.last_lit);S(t,256,e)}function N(t,e){var a,n,i,r=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.has_stree,h=e.stat_desc.elems,d=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<h;a++)0!==r[2*a]?(t.heap[++t.heap_len]=d=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)r[2*(i=t.heap[++t.heap_len]=d<2?++d:0)]=1,t.depth[i]=0,t.opt_len--,o&&(t.static_len-=s[2*i+1]);for(e.max_code=d,a=t.heap_len>>1;a>=1;a--)O(t,r,a);i=h;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,r[2*i]=r[2*a]+r[2*n],t.depth[i]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,r[2*a+1]=r[2*n+1]=i,t.heap[1]=i++,O(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,i,r,s,o,h=e.dyn_tree,d=e.max_code,f=e.stat_desc.static_tree,u=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,w=e.stat_desc.max_length,g=0;for(r=0;r<=l;r++)t.bl_count[r]=0;for(h[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(r=h[2*h[2*(n=t.heap[a])+1]+1]+1)>w&&(r=w,g++),h[2*n+1]=r,n>d||(t.bl_count[r]++,s=0,n>=_&&(s=c[n-_]),o=h[2*n],t.opt_len+=o*(r+s),u&&(t.static_len+=o*(f[2*n+1]+s)));if(0!==g){do{for(r=w-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[w]--,g-=2}while(g>0);for(r=w;0!==r;r--)for(n=t.bl_count[r];0!==n;)(i=t.heap[--a])>d||(h[2*i+1]!==r&&(t.opt_len+=(r-h[2*i+1])*h[2*i],h[2*i+1]=r),n--)}}(t,e),C(r,d,t.bl_count)}function D(t,e,a){var n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)i=s,s=e[2*(n+1)+1],++o<l&&i===s||(o<h?t.bl_tree[2*i]+=o:0!==i?(i!==r&&t.bl_tree[2*i]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,r=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4))}function T(t,e,a){var n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),n=0;n<=a;n++)if(i=s,s=e[2*(n+1)+1],!(++o<l&&i===s)){if(o<h)do{S(t,i,t.bl_tree)}while(0!=--o);else 0!==i?(i!==r&&(S(t,i,t.bl_tree),o--),S(t,16,t.bl_tree),E(t,o-3,2)):o<=10?(S(t,17,t.bl_tree),E(t,o-3,3)):(S(t,18,t.bl_tree),E(t,o-11,7));o=0,r=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4)}}i(k);var F=!1;function L(t,e,a,i){E(t,0+(i?1:0),3),function(t,e,a,i){Z(t),i&&(A(t,a),A(t,~a)),n.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}(t,e,a,!0)}e._tr_init=function(t){F||(!function(){var t,e,a,n,i,r=new Array(16);for(a=0,n=0;n<28;n++)for(p[n]=a,t=0;t<1<<h[n];t++)g[a++]=n;for(g[a-1]=n,i=0,n=0;n<16;n++)for(k[n]=i,t=0;t<1<<d[n];t++)w[i++]=n;for(i>>=7;n<o;n++)for(k[n]=i<<7,t=0;t<1<<d[n]-7;t++)w[256+i++]=n;for(e=0;e<=l;e++)r[e]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,r[8]++;for(;t<=255;)c[2*t+1]=9,t++,r[9]++;for(;t<=279;)c[2*t+1]=7,t++,r[7]++;for(;t<=287;)c[2*t+1]=8,t++,r[8]++;for(C(c,287,r),t=0;t<o;t++)_[2*t+1]=5,_[2*t]=B(t,5);m=new y(c,h,257,s,l),b=new y(_,d,0,o,l),v=new y(new Array(0),f,0,19,7)}(),F=!0),t.l_desc=new x(t.dyn_ltree,m),t.d_desc=new x(t.dyn_dtree,b),t.bl_desc=new x(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,I(t)},e._tr_stored_block=L,e._tr_flush_block=function(t,e,a,n){var i,s,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&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<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),N(t,t.l_desc),N(t,t.d_desc),o=function(t){var e;for(D(t,t.dyn_ltree,t.l_desc.max_code),D(t,t.dyn_dtree,t.d_desc.max_code),N(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?L(t,e,a,n):4===t.strategy||s===i?(E(t,2+(n?1:0),3),U(t,c,_)):(E(t,4+(n?1:0),3),function(t,e,a,n){var i;for(E(t,e-257,5),E(t,a-1,5),E(t,n-4,4),i=0;i<n;i++)E(t,t.bl_tree[2*u[i]+1],3);T(t,t.dyn_ltree,e-1),T(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),U(t,t.dyn_ltree,t.dyn_dtree)),I(t),n&&Z(t)},e._tr_tally=function(t,e,a){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&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(g[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){E(t,2,3),S(t,256,c),function(t){16===t.bi_valid?(A(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)}},249:function(t){"use strict";t.exports=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}},9066:function(t){t.exports=function(t){t.data&&t.name&&(t=t.data);for(var e=!0,a="",n="",i=0;i<t.length;i++){var r=t[i];if(e)r?n+=String.fromCharCode(r):e=!1;else{if(!r)throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");a+=String.fromCharCode(r)}}return{keyword:n,text:a}}},9686:function(t){t.exports=function(t,e){if(t=String(t),e=String(e),!/^[\x00-\xFF]+$/.test(t)||!/^[\x00-\xFF]+$/.test(e))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(t.length>=80)throw new Error('Keyword "'+t+'" is longer than the 79-character limit imposed by the PNG specification');for(var a,n=t.length+e.length+1,i=new Uint8Array(n),r=0,s=0;s<t.length;s++){if(!(a=t.charCodeAt(s)))throw new Error("0x00 character is not permitted in tEXt keywords");i[r++]=a}i[r++]=0;for(var o=0;o<e.length;o++){if(!(a=e.charCodeAt(o)))throw new Error("0x00 character is not permitted in tEXt content");i[r++]=a}return{name:"tEXt",data:i}}},1194:function(t,e,a){e.encode=a(9686),e.decode=a(9066)},3434:function(t,e,a){var n=a(5714),i=a(6233);t.exports=function(t){var e,a=8,l=a;for(e=0;e<t.length;e++)a+=t[e].data.length,a+=12;var h=new Uint8Array(a);for(h[0]=137,h[1]=80,h[2]=78,h[3]=71,h[4]=13,h[5]=10,h[6]=26,h[7]=10,e=0;e<t.length;e++){var d=t[e],f=d.name,u=d.data,c=u.length,_=[f.charCodeAt(0),f.charCodeAt(1),f.charCodeAt(2),f.charCodeAt(3)];o[0]=c,h[l++]=r[3],h[l++]=r[2],h[l++]=r[1],h[l++]=r[0],h[l++]=_[0],h[l++]=_[1],h[l++]=_[2],h[l++]=_[3];for(var w=0;w<c;)h[l++]=u[w++];var g=_.concat(n(u)),p=i.buf(g);s[0]=p,h[l++]=r[3],h[l++]=r[2],h[l++]=r[1],h[l++]=r[0]}return h};var r=new Uint8Array(4),s=new Int32Array(r.buffer),o=new Uint32Array(r.buffer)},2983:function(t,e,a){var n=a(6233);t.exports=function(t){if(137!==t[0])throw new Error("Invalid .png file header");if(80!==t[1])throw new Error("Invalid .png file header");if(78!==t[2])throw new Error("Invalid .png file header");if(71!==t[3])throw new Error("Invalid .png file header");if(13!==t[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==t[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==t[6])throw new Error("Invalid .png file header");if(10!==t[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");var e=!1,a=[],o=8;for(;o<t.length;){i[3]=t[o++],i[2]=t[o++],i[1]=t[o++],i[0]=t[o++];var l=s[0]+4,h=new Uint8Array(l);h[0]=t[o++],h[1]=t[o++],h[2]=t[o++],h[3]=t[o++];var d=String.fromCharCode(h[0])+String.fromCharCode(h[1])+String.fromCharCode(h[2])+String.fromCharCode(h[3]);if(!a.length&&"IHDR"!==d)throw new Error("IHDR header missing");if("IEND"===d){e=!0,a.push({name:d,data:new Uint8Array(0)});break}for(var f=4;f<l;f++)h[f]=t[o++];i[3]=t[o++],i[2]=t[o++],i[1]=t[o++],i[0]=t[o++];var u=r[0];if(n.buf(h)!==u)throw new Error("CRC values for "+d+" header do not match, PNG file is likely corrupted");var c=new Uint8Array(h.buffer.slice(4));a.push({name:d,data:c})}if(!e)throw new Error(".png file ended prematurely: no IEND header was found");return a};var i=new Uint8Array(4),r=new Int32Array(i.buffer),s=new Uint32Array(i.buffer)},5714:function(t){t.exports=function(t,e,a){var n=[],i=t.length;if(0===i)return n;var r=e<0?Math.max(0,e+i):e||0;for(void 0!==a&&(i=a<0?a+i:a);i-- >r;)n[i-r]=t[i];return n}},5756:function(t,e,a){"use strict";a.r(e);const n=async(t,e,a=t.name)=>{const i=[],r=[];for await(const s of t.values()){const o=`${a}/${s.name}`;"file"===s.kind?r.push(s.getFile().then((e=>(e.directoryHandle=t,Object.defineProperty(e,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>o}))))):"directory"===s.kind&&e&&i.push(n(s,e,o))}return[...(await Promise.all(i)).flat(),...await Promise.all(r)]};e.default=async(t={})=>{t.recursive=t.recursive||!1;const e=await window.showDirectoryPicker({id:t.id,startIn:t.startIn});return n(e,t.recursive)}},6629:function(t,e,a){"use strict";a.r(e);const n=async t=>{const e=await t.getFile();return e.handle=t,e};e.default=async(t=[{}])=>{Array.isArray(t)||(t=[t]);const e=[];t.forEach(((t,a)=>{e[a]={description:t.description||"",accept:{}},t.mimeTypes?t.mimeTypes.map((n=>{e[a].accept[n]=t.extensions||[]})):e[a].accept["*/*"]=t.extensions||[]}));const a=await window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:e,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),i=await Promise.all(a.map(n));return t[0].multiple?i:i[0]}},4868:function(t,e,a){"use strict";a.r(e),e.default=async(t,e=[{}],a=null,n=!1)=>{Array.isArray(e)||(e=[e]),e[0].fileName=e[0].fileName||"Untitled";const i=[];if(e.forEach(((e,a)=>{i[a]={description:e.description||"",accept:{}},e.mimeTypes?(0===a&&e.mimeTypes.push(t.type),e.mimeTypes.map((t=>{i[a].accept[t]=e.extensions||[]}))):i[a].accept[t.type]=e.extensions||[]})),a)try{await a.getFile()}catch(t){if(a=null,n)throw t}const r=a||await window.showSaveFilePicker({suggestedName:e[0].fileName,id:e[0].id,startIn:e[0].startIn,types:i,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),s=await r.createWritable();return await s.write(t),await s.close(),r}},8396:function(t,e,a){"use strict";a.r(e),e.default=async(t=[{}])=>(Array.isArray(t)||(t=[t]),t[0].recursive=t[0].recursive||!1,new Promise(((e,a)=>{const n=document.createElement("input");n.type="file",n.webkitdirectory=!0;const i=t=>{"function"==typeof r&&r(),e(t)},r=t[0].legacySetup&&t[0].legacySetup(i,(()=>r(a)),n);n.addEventListener("change",(()=>{i(n.multiple?Array.from(n.files):n.files[0])})),n.addEventListener("change",(()=>{let e=Array.from(n.files);t[0].recursive||(e=e.filter((t=>2===t.webkitRelativePath.split("/").length))),i(e)})),n.click()})))},3112:function(t,e,a){"use strict";a.r(e),e.default=async(t=[{}])=>(Array.isArray(t)||(t=[t]),new Promise(((e,a)=>{const n=document.createElement("input");n.type="file";const i=[...t.map((t=>t.mimeTypes||[])).join(),t.map((t=>t.extensions||[])).join()].join();n.multiple=t[0].multiple||!1,n.accept=i||"";const r=t=>{"function"==typeof s&&s(),e(t)},s=t[0].legacySetup&&t[0].legacySetup(r,(()=>s(a)),n);n.addEventListener("change",(()=>{r(n.multiple?Array.from(n.files):n.files[0])})),n.click()})))},6882:function(t,e,a){"use strict";a.r(e),e.default=async(t,e={})=>{Array.isArray(e)&&(e=e[0]);const a=document.createElement("a");a.download=e.fileName||"Untitled",a.href=URL.createObjectURL(t);const n=t=>{"function"==typeof i&&i(),resolve(t)},i=e.legacySetup&&e.legacySetup(n,(()=>i(reject)),a);return a.addEventListener("click",(()=>{setTimeout((()=>URL.revokeObjectURL(a.href)),3e4),n(null)})),a.click(),null}}}]);