feffery_utils_components 0.2.0-rc11 → 0.2.0-rc13

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.
Files changed (52) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +2 -0
  3. package/Project.toml +1 -1
  4. package/README.md +1 -1
  5. package/assets/demo.jpg +0 -0
  6. package/feffery_utils_components/FefferySetFavicon.py +45 -0
  7. package/feffery_utils_components/FefferySetTitle.py +7 -4
  8. package/feffery_utils_components/FefferySliderCaptcha.py +109 -0
  9. package/feffery_utils_components/__init__.py +2 -1
  10. package/feffery_utils_components/_imports_.py +4 -0
  11. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  12. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
  13. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  14. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  15. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  16. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  17. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  18. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  19. package/feffery_utils_components/async-feffery_dom2image.js +1 -1
  20. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  21. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  22. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  23. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  24. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  25. package/feffery_utils_components/async-feffery_grid.js +1 -1
  26. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  27. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  28. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  29. package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
  30. package/feffery_utils_components/async-feffery_motion.js +1 -1
  31. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  32. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  33. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  34. package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
  35. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  36. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  37. package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
  38. package/feffery_utils_components/async-feffery_slider_captcha.js +1 -0
  39. package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -0
  40. package/feffery_utils_components/async-feffery_sortable.js +1 -1
  41. package/feffery_utils_components/async-feffery_word_preview.js +1 -1
  42. package/feffery_utils_components/async-fuc-shared.js +2 -2
  43. package/feffery_utils_components/feffery_utils_components.min.js +2 -2
  44. package/feffery_utils_components/metadata.json +298 -1
  45. package/feffery_utils_components/package-info.json +3 -1
  46. package/package.json +3 -1
  47. package/src/lib/components/FefferySetFavicon.react.js +58 -0
  48. package/src/lib/components/FefferySetTitle.react.js +21 -6
  49. package/src/lib/components/FefferySliderCaptcha.react.js +160 -0
  50. package/src/lib/fragments/FefferySliderCaptcha.react.js +102 -0
  51. package/src/lib/index.js +5 -1
  52. package/usage.py +20 -48
@@ -1 +1 @@
1
- (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[29],{510:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.style,n=e.className,a=e.src,e=(e.setProps,e.loading_state),i=Object(s.useRef)(null);return Object(s.useEffect)(function(){var e;if(i.current)return(e=o.a.init(i.current,{})).preview(a).then(function(e){}).catch(function(e){}),function(){e.destroy()}},[a]),React.createElement("div",{id:t,className:Object(u.isString)(n)?n:n?Object(l.a)(n):void 0,style:r,ref:i,"data-dash-is-loading":e&&e.is_loading||void 0})}var o=r(838),s=r(1),l=(r(853),r(60)),u=r(22),r=r(212);(t.default=n).defaultProps=r.b,n.propTypes=r.c},555:function(e,t,r){"use strict";var n=r(573),a=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},e=(e.exports=c,Object.create(r(565))),i=(e.inherits=r(561),r(641)),o=r(593);e.inherits(c,i);for(var s=a(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},561:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},565:function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(554).Buffer.isBuffer},572:function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null,l=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},a=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(a,i){return new Promise(function(e,t){function r(e){a.removeListener(i,n),t(e)}function n(){"function"==typeof a.removeListener&&a.removeListener("error",r),e([].slice.call(arguments))}y(a,i,n,{once:!0}),"error"!==i&&"function"==typeof a.on&&y(a,"error",r,{once:!0})})},(o.EventEmitter=o).prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var a,i;return u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener||r),a=e._events),i=a[t]),void 0===i?(i=a[t]=r,++e._eventsCount):("function"==typeof i?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),0<(a=c(e))&&i.length>a&&!i.warned&&(i.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=i.length,console)&&console.warn&&console.warn(n)),e}function f(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function d(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];{if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,a=new Array(n.length),i=0;i<a.length;++i)a[i]=n[i].listener||n[i];return a}return m(e,e.length)}}function p(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(r,n,a,i){if("function"==typeof r.on)i.once?r.once(n,a):r.on(n,a);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function e(t){i.once&&r.removeEventListener(n,e),a(t)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){if((i=0<t.length?t[0]:i)instanceof Error)throw i;n=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw n.context=i,n}var i=a[e];if(void 0===i)return!1;if("function"==typeof i)l(i,this,t);else for(var o=i.length,s=m(i,o),r=0;r<o;++r)l(s[r],this,t);return!0},o.prototype.on=o.prototype.addListener=function(e,t){return h(this,e,t,!1)},o.prototype.prependListener=function(e,t){return h(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var r,n,a,i,o;if(u(t),void 0!==(n=this._events)&&void 0!==(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;0<=i;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;if(0===a)r.shift();else{var s=r;var l=a;for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.removeAllListeners=function(e){var t,r;if(void 0!==(r=this._events))if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]);else if(0===arguments.length){for(var n,a=Object.keys(r),i=0;i<a.length;++i)"removeListener"!==(n=a[i])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return 0<this._eventsCount?a(this._events):[]}},573:function(e,t,r){"use strict";!function(s){void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return s.nextTick(function(){e.apply(null,a)})}}}:e.exports=s}.call(this,r(315))},591:function(e,t,r){(((t=e.exports=r(641)).Stream=t).Readable=t).Writable=r(593),t.Duplex=r(555),t.Transform=r(645),t.PassThrough=r(846)},592:function(e,t,r){var n=r(554),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=a(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},593:function(u,e,_){"use strict";!function(e,t,r){var m=_(573);function c(a){var i=this;this.next=null,this.entry=null,this.finish=function(){var e=i,t=a,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}u.exports=s;var i,n,h=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?t:m.nextTick,e=(s.WritableState=o,Object.create(_(565))),t=(e.inherits=_(561),{deprecate:_(844)}),a=_(642),y=_(592).Buffer,g=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},r=_(643);function b(){}function o(e,u){i=i||_(555),e=e||{};var t=u instanceof i,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,a=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,a,i,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(i=o).writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,e?(i=t,n=s,e=e,a=l,--(r=o).pendingcb,n?(m.nextTick(a,e),m.nextTick(w,i,r),i._writableState.errorEmitted=!0,i.emit("error",e)):(a(e),i._writableState.errorEmitted=!0,i.emit("error",e),w(i,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?h(f,t,o,n,l):f(t,o,n,l))},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 c(this)}function s(e){if(i=i||_(555),!(n.call(s,this)||this instanceof i))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),a.call(this)}function v(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function f(e,t,r,n){var a;r||(r=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var i=0,o=!0;r;)(a[i]=r).isBuf||(o=!1),r=r.next,i+=1;a.allBuffers=o,v(e,t,!0,t.length,a,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,a=p(t);return a&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),a}e.inherits(s,a),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===s&&e&&e._writableState instanceof o}})):n=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,a,i,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,y.isBuffer(p)||p instanceof g);return p&&!y.isBuffer(e)&&(h=e,e=y.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(i=e)?l=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,i=this,o=f,l=e,s=t,f=r,(e=p)||(a=l,n=s,a=o.objectMode||!1===o.decodeStrings||"string"!=typeof a?a:y.from(a,n),l!==a&&(e=!0,s="buffer",l=a)),n=o.objectMode?1:l.length,o.length+=n,(a=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(i,o,!1,n,l,s,f),d=a),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=r.destroy,s.prototype._undestroy=r.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}.call(this,_(315),_(564).setImmediate,_(30))},641:function(O,e,D){"use strict";!function(e,y){var g=D(573);O.exports=a;function b(e,t){return e.listeners(t).length}var i,o,v=D(840),r=(a.ReadableState=n,D(572).EventEmitter,D(642)),h=D(592).Buffer,f=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},e=Object.create(D(565)),t=(e.inherits=D(561),D(841)),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},s=D(842),t=D(643),l=(e.inherits(a,r),["error","close","destroy","pause","resume"]);function n(e,t){e=e||{};var t=t instanceof(i=i||D(555)),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||D(644).StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function a(e){if(i=i||D(555),!(this instanceof a))return new a(e);this._readableState=new n(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function u(e,t,r,n,a){var i,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,p(s))):(a||(u=c,s=l=t,i=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),i?e.emit("error",i):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(a=t,t=h.from(a)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?d(e,c,t,!1):_(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function d(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&p(e)),_(e,t)}function c(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g.nextTick(m,e):m(e))}function m(e){w("emit readable"),e.emit("readable"),C(e)}function _(e,t){t.readingMore||(t.readingMore=!0,g.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){w("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,a=r.data;for(e-=a.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++n}return t.length-=n,a}:function(e,t){var r=h.allocUnsafe(e),n=t.head,a=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0==(e-=o)){o===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=i.slice(o);break}++a}return t.length-=a,r})(e,r),a=n),a);var r,n,a}function A(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,g.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function E(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),a.prototype.destroy=t.destroy,a.prototype._undestroy=t.undestroy,a.prototype._destroy=function(e,t){this.push(null),t(e)},a.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),u(this,e,t,!1,r)},a.prototype.unshift=function(e){return u(this,e,null,!0,!1)},a.prototype.isPaused=function(){return!1===this._readableState.flowing},a.prototype.setEncoding=function(e){return o=o||D(644).StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},a.prototype.read=function(e){w("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(w("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?A:p)(this),null):0===(e=c(e,r))&&r.ended?(0===r.length&&A(this),null):(t=r.needReadable,w("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&w("length less than watermark",t=!0),r.ended||r.reading?w("reading or ended",t=!1):t&&(w("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=c(n,r))),null===(t=0<e?P(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&A(this),null!==t&&this.emit("data",t),t)},a.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},a.prototype.pipe=function(n,e){var a=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,w("pipe count=%d opts=%j",i.pipesCount,e);e=e&&!1===e.end||n===y.stdout||n===y.stderr?m:o;function o(){w("onend"),n.end()}i.endEmitted?g.nextTick(e):a.once("end",e),n.on("unpipe",function e(t,r){w("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,w("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),a.removeListener("end",o),a.removeListener("end",m),a.removeListener("data",h),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=a;var t,r,s,l=function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,C(t))},u=(n.on("drain",l),!1),c=!1;function h(e){w("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==E(i.pipes,n))&&!u&&(w("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),a.pause())}function f(e){w("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){w("onfinish"),n.removeListener("close",d),m()}function m(){w("unpipe"),a.unpipe(n)}return a.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?v(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",a),i.flowing||(w("pipe resume"),a.resume()),n},a.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=E(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var a=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)a[o].emit("unpipe",this,{hasUnpiped:!1})}return this},a.prototype.addListener=a.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&p(this):g.nextTick(S,this)),t},a.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,g.nextTick(x,e,t))),this},a.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},a.prototype.wrap=function(t){var e,r=this,n=this._readableState,a=!1;for(e in t.on("end",function(){var e;w("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){w("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(a=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<l.length;i++)t.on(l[i],this.emit.bind(this,l[i]));return this._read=function(e){w("wrapped _read",e),a&&(a=!1,t.resume())},this},Object.defineProperty(a.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),a._fromList=P}.call(this,D(30),D(315))},642:function(e,t,r){e.exports=r(572).EventEmitter},643:function(e,t,r){"use strict";var i=r(573);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(o,this,e)):i.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(o,r,e)):i.nextTick(o,r,e):t&&t(e)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},644:function(e,t,r){"use strict";var n=r(845).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.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 i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==a&&a(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function c(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(t.StringDecoder=i).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},i.prototype.text=function(e,t){r=this,i=t;var r,n,a,i=(a=(o=e).length-1)<i?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-1),n):--a<i||-2===n?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-2),n):!(--a<i||-2===n)&&0<=(n=s(o[a]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var o=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},645:function(e,t,r){"use strict";e.exports=a;var n=r(555),e=Object.create(r(565));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.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 r=this;"function"==typeof this._flush?this._flush(function(e,t){o(r,e,t)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}e.inherits=r(561),e.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},646:function(e,T,E){!function(o){var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},s=/%[sdj%]/g;T.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,a=n.length,i=String(e).replace(s,function(e){if("%%"===e)return"%";if(a<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r<a;o=n[++r])b(o)||!u(o)?i+=" "+o:i+=" "+l(o);return i},T.deprecate=function(e,t){var r;return void 0!==o&&!0===o.noDeprecation?e:void 0===o?function(){return T.deprecate(e,t).apply(this,arguments)}:(r=!1,function(){if(!r){if(o.throwDeprecation)throw new Error(t);o.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)})};var e,n={};function l(e,t){var r={seen:[],stylize:i};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&T._extend(r,t),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),d(r,e,r.depth)}function a(e,t){t=l.styles[t];return t?"["+l.colors[t][0]+"m"+e+"["+l.colors[t][1]+"m":e}function i(e,t){return e}function d(t,r,n){if(t.customInspect&&r&&C(r.inspect)&&r.inspect!==T.inspect&&(!r.constructor||r.constructor.prototype!==r))return w(e=r.inspect(n,t))?e:d(t,e,n);e=t;var e,a=_(o=r)?e.stylize("undefined","undefined"):w(o)?(a="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(a,"string")):v(o)?e.stylize(""+o,"number"):g(o)?e.stylize(""+o,"boolean"):b(o)?e.stylize("null","null"):void 0;if(a)return a;var i,o=Object.keys(r),s=(i={},o.forEach(function(e,t){i[e]=!0}),i);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return p(r);if(0===o.length){if(C(r))return c=r.name?": "+r.name:"",t.stylize("[Function"+c+"]","special");if(k(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return p(r)}var l,u,c="",h=!1,f=["{","}"];return y(r)&&(h=!0,f=["[","]"]),C(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),x(r)&&(c=" "+p(r)),0!==o.length||h&&0!=r.length?n<0?k(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),o=h?function(t,r,n,a,e){for(var i=[],o=0,s=r.length;o<s;++o)P(r,String(o))?i.push(m(t,r,n,a,String(o),!0)):i.push("");return e.forEach(function(e){e.match(/^\d+$/)||i.push(m(t,r,n,a,e,!0))}),i}(t,r,n,s,o):o.map(function(e){return m(t,r,n,s,e,h)}),t.seen.pop(),l=c,u=f,60<(o=o).reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)?u[0]+(""===l?"":l+"\n ")+" "+o.join(",\n ")+" "+u[1]:u[0]+l+" "+o.join(", ")+" "+u[1]):f[0]+c+f[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,a,i){var o,s;if((t=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(s=e.stylize("[Setter]","special")),P(n,a)||(o="["+a+"]"),s||(e.seen.indexOf(t.value)<0?-1<(s=b(r)?d(e,t.value,null):d(e,t.value,r-1)).indexOf("\n")&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(o)){if(i&&a.match(/^\d+$/))return s;o=(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+s}function y(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function w(e){return"string"==typeof e}function _(e){return void 0===e}function k(e){return u(e)&&"[object RegExp]"===r(e)}function u(e){return"object"==typeof e&&null!==e}function S(e){return u(e)&&"[object Date]"===r(e)}function x(e){return u(e)&&("[object Error]"===r(e)||e instanceof Error)}function C(e){return"function"==typeof e}function r(e){return Object.prototype.toString.call(e)}function c(e){return e<10?"0"+e.toString(10):e.toString(10)}T.debuglog=function(t){var r;return _(e)&&(e=o.env.NODE_DEBUG||""),t=t.toUpperCase(),n[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(r=o.pid,n[t]=function(){var e=T.format.apply(T,arguments);console.error("%s %d: %s",t,r,e)}):n[t]=function(){}),n[t]},(T.inspect=l).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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},T.isArray=y,T.isBoolean=g,T.isNull=b,T.isNullOrUndefined=function(e){return null==e},T.isNumber=v,T.isString=w,T.isSymbol=function(e){return"symbol"==typeof e},T.isUndefined=_,T.isRegExp=k,T.isObject=u,T.isDate=S,T.isError=x,T.isFunction=C,T.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},T.isBuffer=E(851);var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}T.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[c(e.getHours()),c(e.getMinutes()),c(e.getSeconds())].join(":"),[e.getDate(),h[e.getMonth()],t].join(" ")),T.format.apply(T,arguments))},T.inherits=E(852),T._extend=function(e,t){if(t&&u(t))for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var f="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){var r;return e||((r=new Error("Promise was rejected with a falsy value")).reason=e,e=r),t(e)}T.promisify=function(i){if("function"!=typeof i)throw new TypeError('The "original" argument must be of type Function');if(f&&i[f]){var e;if("function"!=typeof(e=i[f]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var r,n,e=new Promise(function(e,t){r=e,n=t}),t=[],a=0;a<arguments.length;a++)t.push(arguments[a]);t.push(function(e,t){e?n(e):r(t)});try{i.apply(this,t)}catch(e){n(e)}return e}return Object.setPrototypeOf(e,Object.getPrototypeOf(i)),f&&Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,t(i))},T.promisify.custom=f,T.callbackify=function(i){if("function"!=typeof i)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");function n(){return r.apply(a,arguments)}var a=this;i.apply(this,e).then(function(e){o.nextTick(n,null,e)},function(e){o.nextTick(A,e,n)})}return Object.setPrototypeOf(e,Object.getPrototypeOf(i)),Object.defineProperties(e,t(i)),e}}.call(this,E(315))},838:function(e,cn,hn){"use strict";!function(u,M,_,h){hn.d(cn,"a",function(){return ln});var b=hn(839),v=hn.n(b),b=hn(572),z=hn.n(b),b=hn(554),w=hn.n(b),b=hn(646),F=hn.n(b);function k(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e,t,r){(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}function W(e,t){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=H(r),t=(e=n?(e=H(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==O(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){var r,n,a,i,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return a=!(n=!0),{s:function(){o=o.call(e)},n:function(){var e=o.next();return n=e.done,e},e:function(e){a=!0,r=e},f:function(){try{n||null==o.return||o.return()}finally{if(a)throw r}}};if(Array.isArray(e)||(o=q(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(){A=function(){return o};var l,o={},e=Object.prototype,u=e.hasOwnProperty,c=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",a=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(l){i=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a,i,o,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new C(n||[]);return c(t,"_invoke",{value:(a=e,i=r,o=n,s=f,function(e,t){if(s===d)throw new Error("Generator is already running");if(s===p){if("throw"===e)throw t;return{value:l,done:!0}}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r){r=function e(t,r){var n=r.method,a=t.iterator[n];if(a===l)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=l,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;n=h(a,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;a=n.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=l),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,o);if(r){if(r===m)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===f)throw s=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=d;r=h(a,i,o);if("normal"===r.type){if(s=o.done?p:"suspendedYield",r.arg===m)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(s=p,o.method="throw",o.arg=r.arg)}})}),t}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var f="suspendedStart",d="executing",p="completed",m={};function y(){}function g(){}function b(){}var t={},v=(i(t,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(P([]))),w=(v&&v!==e&&u.call(v,n)&&(t=v),b.prototype=y.prototype=Object.create(t));function _(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function k(o,s){var t;c(this,"_invoke",{value:function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,a){var i,e=h(o[e],o,r);if("throw"!==e.type)return(r=(i=e.arg).value)&&"object"==O(r)&&u.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,n,a)},function(e){t("throw",e,n,a)}):s.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,a)});a(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(O(t)+" is not iterable")}return c(w,"constructor",{value:g.prototype=b,configurable:!0}),c(b,"constructor",{value:g,configurable:!0}),g.displayName=i(b,a,"GeneratorFunction"),o.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,i(e,a,"GeneratorFunction")),e.prototype=Object.create(w),e},o.awrap=function(e){return{__await:e}},_(k.prototype),i(k.prototype,r,function(){return this}),o.AsyncIterator=k,o.async=function(e,t,r,n,a){void 0===a&&(a=Promise);var i=new k(s(e,t,r,n),a);return o.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},_(w),i(w,a,"Generator"),i(w,n,function(){return this}),i(w,"toString",function(){return"[object Generator]"}),o.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var a=this.tryEntries[t],i=a.completion;if("root"===a.tryLoc)return e("end");if(a.tryLoc<=this.prev){var o=u.call(a,"catchLoc"),s=u.call(a,"finallyLoc");if(o&&s){if(this.prev<a.catchLoc)return e(a.catchLoc,!0);if(this.prev<a.finallyLoc)return e(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return e(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return e(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}var i=(a=a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc?null:a)?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,a=this.tryEntries[t];if(a.tryLoc===e)return"throw"===(r=a.completion).type&&(n=r.arg,x(a)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),m}},o}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){var r;if(e)return"string"==typeof e?Z(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function P(s){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=s.apply(e,o);function a(e){V(n,t,r,a,i,"next",e)}function i(e){V(n,t,r,a,i,"throw",e)}a(void 0)})}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function E(e,t,r){return t&&X(e.prototype,t),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e){e=function(e){if("object"!==O(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!==O(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"===O(e)?e:String(e)}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}void 0===window.setImmediate&&(window.setImmediate=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];setTimeout(function(){return e(r)})});var J,K,Y,$,Q,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u?u:"undefined"!=typeof self?self:{},ee={},te={},a={},re={exports:{}},ne={exports:{}};function ae(){return J||(J=1,void 0===M||!M.version||0===M.version.indexOf("v0.")||0===M.version.indexOf("v1.")&&0!==M.version.indexOf("v1.8.")?ne.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return M.nextTick(e);case 2:return M.nextTick(function(){e.call(null,t)});case 3:return M.nextTick(function(){e.call(null,t,r)});case 4:return M.nextTick(function(){e.call(null,t,r,n)});default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return M.nextTick(function(){e.apply(null,a)})}}}:ne.exports=M),ne.exports}function ie(){return Q?$:(Q=1,$=v.a)}var oe,se={exports:{}};function le(){return oe||(oe=1,n=(r=se).exports,a=w.a,(i=a.Buffer).from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=a:(e(a,n),n.Buffer=t),e(i,t),t.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},t.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=i(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},t.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},t.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}),se.exports;function e(e,t){for(var r in e)t[r]=e[r]}function t(e,t,r){return i(e,t,r)}var r,n,a,i}var fe,e={};function R(){return fe||(fe=1,e.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},e.isBoolean=function(e){return"boolean"==typeof e},e.isNull=function(e){return null===e},e.isNullOrUndefined=function(e){return null==e},e.isNumber=function(e){return"number"==typeof e},e.isString=function(e){return"string"==typeof e},e.isSymbol=function(e){return"symbol"==O(e)},e.isUndefined=function(e){return void 0===e},e.isRegExp=function(e){return"[object RegExp]"===t(e)},e.isObject=function(e){return"object"==O(e)&&null!==e},e.isDate=function(e){return"[object Date]"===t(e)},e.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},e.isFunction=function(e){return"function"==typeof e},e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==O(e)||void 0===e},e.isBuffer=w.a.Buffer.isBuffer),e;function t(e){return Object.prototype.toString.call(e)}}var de,pe,me={exports:{}},ye={exports:{}};function B(){if(!pe){pe=1;try{var e=hn(646);if("function"!=typeof e.inherits)throw"";me.exports=e.inherits}catch(e){me.exports=(de||(de=1,"function"==typeof Object.create?ye.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ye.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}),ye.exports)}}return me.exports}var ge,be,ve,we,_e,ke,Se,xe,Ce,Pe={exports:{}};function Ae(){if(ve)return be;ve=1;var i=ae();function o(e,t){e.emit("error",t)}return be={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(o,this,e)):i.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(o,r,e)):i.nextTick(o,r,e):t&&t(e)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function Te(){if(!Se){Se=1;var m=ae();ke=s;var i,c=!M.browser&&-1<["v0.10","v0.9."].indexOf(M.version.slice(0,5))?_:m.nextTick,e=(s.WritableState=o,Object.create(R()));e.inherits=B();var t,r={deprecate:_e?we:(_e=1,we=F.a.deprecate)},n=ie(),y=le().Buffer,g=(void 0!==N?N:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},a=Ae();e.inherits(s,n),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(t=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!t.call(this,e)||this===s&&e&&e._writableState instanceof o}})):t=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,a,i,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,y.isBuffer(p)||p instanceof g);return p&&!y.isBuffer(e)&&(h=e,e=y.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(i=e)?l=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,i=this,o=f,l=e,s=t,f=r,(e=p)||(a=l,n=s,a=o.objectMode||!1===o.decodeStrings||"string"!=typeof a?a:y.from(a,n),l!==a&&(e=!0,s="buffer",l=a)),n=o.objectMode?1:l.length,o.length+=n,(a=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(i,o,!1,n,l,s,f),d=a),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=a.destroy,s.prototype._undestroy=a.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}return ke;function h(a){var i=this;this.next=null,this.entry=null,this.finish=function(){var e=i,t=a,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}function b(){}function o(e,u){i=i||j(),e=e||{};var t=u instanceof i,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,a=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,a,i,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(i=o).writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,e?(i=t,n=s,e=e,a=l,--(r=o).pendingcb,n?(m.nextTick(a,e),m.nextTick(w,i,r),i._writableState.errorEmitted=!0,i.emit("error",e)):(a(e),i._writableState.errorEmitted=!0,i.emit("error",e),w(i,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?c(f,t,o,n,l):f(t,o,n,l))},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 h(this)}function s(e){if(i=i||j(),!(t.call(s,this)||this instanceof i))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),n.call(this)}function v(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function f(e,t,r,n){var a;r||(r=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var i=0,o=!0;r;)(a[i]=r).isBuf||(o=!1),r=r.next,i+=1;a.allBuffers=o,v(e,t,!0,t.length,a,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,a=p(t);return a&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),a}}function j(){if(!Ce){Ce=1;var r=ae(),e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},t=(xe=l,Object.create(R())),n=(t.inherits=B(),Fe()),a=Te();t.inherits(l,n);for(var i=e(a.prototype),o=0;o<i.length;o++){var s=i[o];l.prototype[s]||(l.prototype[s]=a.prototype[s])}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}}return xe;function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(c,this)}function c(e){e.end()}}var Ee,Oe,De,Me,Ne,Re,Be,je,Le,Ie={};function ze(){var r,n;return Ee||(Ee=1,r=le().Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.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}},(Ie.StringDecoder=e).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},e.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},e.prototype.text=function(e,t){r=this,i=t;var r,n,a,i=(a=(o=e).length-1)<i?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-1),n):--a<i||-2===n?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-2),n):!(--a<i||-2===n)&&0<=(n=s(o[a]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var o=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},e.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}),Ie;function e(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||r.isEncoding!==n&&n(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=i,this.end=o,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=u,t=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function i(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function o(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function l(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}}function Fe(){var y,i,g,b,r,h,f,e,v,o,s,t,l,n,u;return De||(De=1,y=ae(),Oe=d,g=function(){if(Y)return K;Y=1;var t={}.toString;return K=Array.isArray||function(e){return"[object Array]"==t.call(e)}}(),d.ReadableState=c,z.a.EventEmitter,b=function(e,t){return e.listeners(t).length},r=ie(),h=le().Buffer,f=(void 0!==N?N:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},(e=Object.create(R())).inherits=B(),t=F.a,v=void 0,v=t&&t.debuglog?t.debuglog("stream"):function(){},ge||(ge=1,t=Pe,l=le().Buffer,n=F.a,t.exports=(a.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},a.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},a.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},a.prototype.concat=function(e){if(0===this.length)return l.alloc(0);for(var t,r=l.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=a,n.data.copy(r,t),a+=n.data.length,n=n.next;return r},a),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})),s=Pe.exports,t=Ae(),e.inherits(d,r),u=["error","close","destroy","pause","resume"],Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),d.prototype.destroy=t.destroy,d.prototype._undestroy=t.undestroy,d.prototype._destroy=function(e,t){this.push(null),t(e)},d.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),p(this,e,t,!1,r)},d.prototype.unshift=function(e){return p(this,e,null,!0,!1)},d.prototype.isPaused=function(){return!1===this._readableState.flowing},d.prototype.setEncoding=function(e){return o=o||ze().StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},d.prototype.read=function(e){v("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(v("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?E:_)(this),null):0===(e=w(e,r))&&r.ended?(0===r.length&&E(this),null):(t=r.needReadable,v("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&v("length less than watermark",t=!0),r.ended||r.reading?v("reading or ended",t=!1):t&&(v("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=w(n,r))),null===(t=0<e?T(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&E(this),null!==t&&this.emit("data",t),t)},d.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},d.prototype.pipe=function(n,e){var a=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,v("pipe count=%d opts=%j",i.pipesCount,e);e=e&&!1===e.end||n===M.stdout||n===M.stderr?m:o;function o(){v("onend"),n.end()}i.endEmitted?y.nextTick(e):a.once("end",e),n.on("unpipe",function e(t,r){v("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,v("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),a.removeListener("end",o),a.removeListener("end",m),a.removeListener("data",h),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=a;var t,r,s,l=function(){var e=t._readableState;v("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,A(t))},u=(n.on("drain",l),!1),c=!1;function h(e){v("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==D(i.pipes,n))&&!u&&(v("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),a.pause())}function f(e){v("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){v("onfinish"),n.removeListener("close",d),m()}function m(){v("unpipe"),a.unpipe(n)}return a.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?g(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",a),i.flowing||(v("pipe resume"),a.resume()),n},d.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=D(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var a=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)a[o].emit("unpipe",this,{hasUnpiped:!1})}return this},d.prototype.addListener=d.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&_(this):y.nextTick(C,this)),t},d.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(v("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,y.nextTick(P,e,t))),this},d.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},d.prototype.wrap=function(t){var e,r=this,n=this._readableState,a=!1;for(e in t.on("end",function(){var e;v("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){v("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(a=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<u.length;i++)t.on(u[i],this.emit.bind(this,u[i]));return this._read=function(e){v("wrapped _read",e),a&&(a=!1,t.resume())},this},Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),d._fromList=T),Oe;function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}function c(e,t){e=e||{};var t=t instanceof(i=i||j()),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||ze().StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function d(e){if(i=i||j(),!(this instanceof d))return new d(e);this._readableState=new c(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function p(e,t,r,n,a){var i,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,_(s))):(a||(u=c,s=l=t,i=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),i?e.emit("error",i):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(a=t,t=h.from(a)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?m(e,c,t,!1):S(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function m(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&_(e)),S(e,t)}function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(k,e):k(e))}function k(e){v("emit readable"),e.emit("readable"),A(e)}function S(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(v("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function C(e){v("readable nexttick read 0"),e.read(0)}function P(e,t){t.reading||(v("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(v("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,a=r.data;for(e-=a.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++n}return t.length-=n,a}:function(e,t){var r=h.allocUnsafe(e),n=t.head,a=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0==(e-=o)){o===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=i.slice(o);break}++a}return t.length-=a,r})(e,r),a=n),a);var r,n,a}function E(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,y.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}}function Ue(){var n,e;return Ne||(Ne=1,Me=t,n=j(),(e=Object.create(R())).inherits=B(),e.inherits(t,n),t.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},t.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},t.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},t.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},t.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}),Me;function t(e){if(!(this instanceof t))return new t(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.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",r)}function r(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){a(r,e,t)}):a(this,null,null)}function a(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}}function We(){return je||(je=1,n=(e=re).exports,a=v.a,"disable"===M.env.READABLE_STREAM&&a?(e.exports=a,(n=e.exports=a.Readable).Readable=a.Readable,n.Writable=a.Writable,n.Duplex=a.Duplex,n.Transform=a.Transform,n.PassThrough=a.PassThrough,n.Stream=a):((n=e.exports=Fe()).Stream=a||n,(n.Readable=n).Writable=Te(),n.Duplex=j(),n.Transform=Ue(),n.PassThrough=(Be||(Be=1,Re=t,r=Ue(),(e=Object.create(R())).inherits=B(),e.inherits(t,r),t.prototype._transform=function(e,t,r){r(null,e)}),Re))),re.exports;function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}var r,e,n,a}function p(){if(!Le){if(Le=1,a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,a.nodebuffer=void 0!==h,a.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)a.blob=!1;else{var t=new ArrayBuffer(0);try{a.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(t),a.blob=0===r.getBlob("application/zip").size}catch(t){a.blob=!1}}}try{a.nodestream=!!We().Readable}catch(t){a.nodestream=!1}}return a}var He,qe,Ze,Ve,Xe,Ge,Je,Ke,Ye,$e={};function Qe(){var h,c,f;return He||(He=1,h=D(),c=p(),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",$e.encode=function(e){for(var t,r,n,a,i,o,s=[],l=0,u=e.length,c="string"!==h.getTypeOf(e);l<e.length;)o=u-l,n=c?(t=e[l++],r=l<u?e[l++]:0,l<u?e[l++]:0):(t=e.charCodeAt(l++),r=l<u?e.charCodeAt(l++):0,l<u?e.charCodeAt(l++):0),a=(3&t)<<4|r>>4,i=1<o?(15&r)<<2|n>>6:64,o=2<o?63&n:64,s.push(f.charAt(t>>2)+f.charAt(a)+f.charAt(i)+f.charAt(o));return s.join("")},$e.decode=function(e){var t,r,n,a,i,o=0,s=0;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var l,u=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===f.charAt(64)&&u--,e.charAt(e.length-2)===f.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=new(c.uint8array?Uint8Array:Array)(0|u);o<e.length;)t=f.indexOf(e.charAt(o++))<<2|(a=f.indexOf(e.charAt(o++)))>>4,r=(15&a)<<4|(a=f.indexOf(e.charAt(o++)))>>2,n=(3&a)<<6|(i=f.indexOf(e.charAt(o++))),l[s++]=t,64!==a&&(l[s++]=r),64!==i&&(l[s++]=n);return l}),$e}function et(){return Ze?qe:(Ze=1,qe={isNode:void 0!==h,newBufferFrom:function(e,t){if(h.from&&h.from!==Uint8Array.from)return h.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new h(e,t)},allocBuffer:function(e){return h.alloc?h.alloc(e):((e=new h(e)).fill(0),e)},isBuffer:function(e){return h.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}})}function m(){var e,a,l,i,o,n,s;return Ye?Ke:(Ye=1,e="undefined"!=typeof Promise?Promise:(Je||(Je=1,a=function(){if(Xe)return Ve;Xe=1;var n,e,t,r,a=N.MutationObserver||N.WebKitMutationObserver,i=M.browser?a?(e=0,a=new a(s),t=N.document.createTextNode(""),a.observe(t,{characterData:!0}),function(){t.data=e=++e%2}):N.setImmediate||void 0===N.MessageChannel?"document"in N&&"onreadystatechange"in N.document.createElement("script")?function(){var e=N.document.createElement("script");e.onreadystatechange=function(){s(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},N.document.documentElement.appendChild(e)}:function(){setTimeout(s,0)}:((r=new N.MessageChannel).port1.onmessage=s,function(){r.port2.postMessage(0)}):function(){M.nextTick(s)},o=[];function s(){var e,t;n=!0;for(var r=o.length;r;){for(t=o,o=[],e=-1;++e<r;)t[e]();r=o.length}n=!1}return Ve=function(e){1!==o.push(e)||n||i()}}(),l={},i=["REJECTED"],o=["FULFILLED"],n=["PENDING"],M.browser||(s=["UNHANDLED"]),(Ge=t).prototype.finally=function(t){var r;return"function"!=typeof t?this:(r=this.constructor,this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}))},t.prototype.catch=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r;return"function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===i?this:(r=new this.constructor(u),M.browser||this.handled===s&&(this.handled=null),this.state!==n?h(r,this.state===o?e:t,this.outcome):this.queue.push(new c(r,e,t)),r)},c.prototype.callFulfilled=function(e){l.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){l.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},l.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return l.reject(e,r.value);r=r.value;if(r)d(e,r);else{e.state=o,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e},l.reject=function(e,t){e.state=i,e.outcome=t,M.browser||e.handled===s&&a(function(){e.handled===s&&M.emit("unhandledRejection",t,e)});for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},t.resolve=function(e){return e instanceof this?e:l.resolve(new this(u),e)},t.reject=function(e){var t=new this(u);return l.reject(t,e)},t.all=function(e){var r=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,a=!1;if(!n)return this.resolve([]);for(var i=new Array(n),o=0,t=-1,s=new this(u);++t<n;)!function(e,t){r.resolve(e).then(function(e){i[t]=e,++o!==n||a||(a=!0,l.resolve(s,i))},function(e){a||(a=!0,l.reject(s,e))})}(e[t],t);return s},t.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,a=-1,i=new this(u);++a<t;)n=e[a],this.resolve(n).then(function(e){r||(r=!0,l.resolve(i,e))},function(e){r||(r=!0,l.reject(i,e))});return i}),Ge),Ke={Promise:e});function u(){}function t(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,M.browser||(this.handled=s),e!==u&&d(this,e)}function c(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(t,r,n){a(function(){var e;try{e=r(n)}catch(e){return l.reject(t,e)}e===t?l.reject(t,new TypeError("Cannot resolve promise with itself")):l.resolve(t,e)})}function f(e){var t=e&&e.then;if(e&&("object"==O(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(t,e){var r=!1;function n(e){r||(r=!0,l.reject(t,e))}function a(e){r||(r=!0,l.resolve(t,e))}var i=p(function(){e(a,n)});"error"===i.status&&n(i.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}}var tt,rt,nt,at,it,ot,st,lt,ut,ct,ht;function ft(){function a(e){delete l[e]}function i(e){if(u)setTimeout(i,0,e);else{var t=l[e];if(t){u=!0;try{var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(void 0,n)}}finally{a(e),u=!1}}}}var r,n,t,o,e,s,l,u,c,h,f;tt||(tt=1,(r="undefined"==typeof self?N:self).setImmediate)||(s=1,u=!(l={}),c=r.document,h=(h=Object.getPrototypeOf&&Object.getPrototypeOf(r))&&h.setTimeout?h:r,f="[object process]"==={}.toString.call(r.process)?function(e){M.nextTick(function(){i(e)})}:function(){var e,t;if(r.postMessage&&!r.importScripts)return e=!0,t=r.onmessage,r.onmessage=function(){e=!1},r.postMessage("","*"),r.onmessage=t,e}()?(o="setImmediate$"+Math.random()+"$",e=function(e){e.source===r&&"string"==typeof e.data&&0===e.data.indexOf(o)&&i(+e.data.slice(o.length))},r.addEventListener?r.addEventListener("message",e,!1):r.attachEvent("onmessage",e),function(e){r.postMessage(o+e,"*")}):r.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){i(e.data)},function(e){t.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){i(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(i,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return l[s]={callback:e,args:t},f(s),s++},h.clearImmediate=a)}function D(){return rt||(rt=1,s=te,l=p(),u=Qe(),n=et(),c=m(),ft(),s.newBlob=function(t,r){s.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}},a={stringifyByChunk:function(e,t,r){var n=[],a=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;a<i;)n.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,i))):String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,i)))),a+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(e){return!1}}()}},s.applyFromCharCode=t,(i={}).string={string:e,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return i.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,n.allocBuffer(e.length))}},i.array={string:t,array:e,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},i.arraybuffer={string:function(e){return t(new Uint8Array(e))},array:function(e){return r(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:e,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},i.uint8array={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:e,nodebuffer:function(e){return n.newBufferFrom(e)}},i.nodebuffer={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return i.nodebuffer.uint8array(e).buffer},uint8array:function(e){return r(e,new Uint8Array(e.length))},nodebuffer:e},s.transformTo=function(e,t){if(t=t||"",!e)return t;s.checkSupport(e);var r=s.getTypeOf(t);return i[r][e](t)},s.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var a=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},s.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&e instanceof Uint8Array?"uint8array":l.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(e){for(var t,r="",n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},s.delay=function(e,t,r){_(function(){e.apply(r||null,t||[])})},s.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},s.extend=function(){for(var e,t={},r=0;r<arguments.length;r++)for(e in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],e)&&void 0===t[e]&&(t[e]=arguments[r][e]);return t},s.prepareContent=function(r,e,n,a,i){return c.Promise.resolve(e).then(function(n){return l.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new c.Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e.target.error)},e.readAsArrayBuffer(n)}):n}).then(function(e){var t=s.getTypeOf(e);return t?("arraybuffer"===t?e=s.transformTo("uint8array",e):"string"===t&&(i?e=u.decode(e):n&&!0!==a&&(e=o(t=e,new(l.uint8array?Uint8Array:Array)(t.length)))),e):c.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}),te;function e(e){return e}function o(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function t(e){var t=65536,r=s.getTypeOf(e),n=!0;if("uint8array"===r?n=a.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=a.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return a.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return a.stringifyByChar(e)}function r(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var s,l,u,n,c,a,i}function L(){return at?nt:(at=1,e.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},nt=e);function e(e){this.name=e||"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 I(){if(!it){it=1;for(var a=ee,l=D(),u=p(),c=et(),e=L(),h=new Array(256),t=0;t<256;t++)h[t]=252<=t?6:248<=t?5:240<=t?4:224<=t?3:192<=t?2:1;function r(){e.call(this,"utf-8 decode"),this.leftOver=null}function n(){e.call(this,"utf-8 encode")}h[254]=h[254]=1,a.utf8encode=function(e){if(u.nodebuffer)return c.newBufferFrom(e,"utf-8");for(var t,r,n,a,i=e,o=i.length,s=0,l=0;l<o;l++)55296==(64512&(r=i.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=i.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(u.uint8array?Uint8Array:Array)(s),l=a=0;a<s;l++)55296==(64512&(r=i.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=i.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},a.utf8decode=function(e){if(u.nodebuffer)return l.transformTo("nodebuffer",e).toString("utf-8");for(var t,r,n=e=l.transformTo(u.uint8array?"uint8array":"array",e),a=n.length,i=new Array(2*a),o=0,s=0;s<a;)if((t=n[s++])<128)i[o++]=t;else if(4<(r=h[t]))i[o++]=65533,s+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&s<a;)t=t<<6|63&n[s++],r--;1<r?i[o++]=65533:t<65536?i[o++]=t:(t-=65536,i[o++]=55296|t>>10&1023,i[o++]=56320|1023&t)}return i.length!==o&&(i.subarray?i=i.subarray(0,o):i.length=o),l.applyFromCharCode(i)},l.inherits(r,e),r.prototype.processChunk=function(e){var t=l.transformTo(u.uint8array?"uint8array":"array",e.data),r=(this.leftOver&&this.leftOver.length&&(u.uint8array?(r=t,(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+h[e[r]]>t?r:t}(t)),n=t;r!==t.length&&(u.uint8array?(n=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(n=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:a.utf8decode(n),meta:e.meta})},r.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=r,l.inherits(n,e),n.prototype.processChunk=function(e){this.push({data:a.utf8encode(e.data),meta:e.meta})},a.Utf8EncodeWorker=n}return ee}function dt(){if(ht)return ct;ht=1;var u=D(),a=function(){if(st)return ot;st=1;var t=L(),r=D();function e(e){t.call(this,"ConvertWorker to "+e),this.destType=e}return r.inherits(e,t),e.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},ot=e}(),i=L(),c=Qe(),e=p(),t=m(),r=null;if(e.nodestream)try{r=function(){if(ut)return lt;ut=1;var a=We().Readable;function e(e,t,r){a.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}return D().inherits(e,a),e.prototype._read=function(){this._helper.resume()},lt=e}()}catch(u){}function n(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,u.checkSupport(n),this._worker=e.pipe(new a(n)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}return n.prototype={accumulate:function(e){return s=this,l=e,new t.Promise(function(t,r){var n=[],a=s._internalType,i=s._outputType,o=s._mimeType;s.on("data",function(e,t){n.push(e),l&&l(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return u.newBlob(u.transformTo("arraybuffer",t),r);case"base64":return c.encode(t);default:return u.transformTo(e,t)}}(i,function(e,t){for(var r=0,n=null,a=0,i=0;i<t.length;i++)a+=t[i].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),i=0;i<t.length;i++)n.set(t[i],r),r+=t[i].length;return n;case"nodebuffer":return h.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,n),o);t(e)}catch(e){r(e)}n=[]}).resume()});var s,l},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){u.delay(t,arguments,r)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(u.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new r(this,{objectMode:"nodebuffer"!==this._outputType},e)}},ct=n}var pt,mt,yt,gt,bt,vt,wt,_t,kt,St,xt,Ct,Pt,t={};function At(){return pt||(pt=1,t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null),t}function Tt(){if(yt)return mt;yt=1;var r=D(),n=L();function e(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}return r.inherits(e,n),e.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},mt=e}function Et(){if(bt)return gt;bt=1;var r=D(),o=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();return gt=function(e,t){return void 0!==e&&e.length?("string"!==r.getTypeOf(e)?function(e,t,r){var n=o,a=0+r;e^=-1;for(var i=0;i<a;i++)e=e>>>8^n[255&(e^t[i])];return-1^e}:function(e,t,r){var n=o,a=0+r;e^=-1;for(var i=0;i<a;i++)e=e>>>8^n[255&(e^t.charCodeAt(i))];return-1^e})(0|t,e,e.length):0}}function Ot(){if(wt)return vt;wt=1;var e=L(),t=Et();function r(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}return D().inherits(r,e),r.prototype.processChunk=function(e){this.streamInfo.crc32=t(e.data,this.streamInfo.crc32||0),this.push(e)},vt=r}function Dt(){if(xt)return St;xt=1;var r=m(),n=Tt(),a=Ot(),i=function(){if(kt)return _t;kt=1;var e=D(),r=L();function t(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}return e.inherits(t,r),t.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),r.prototype.processChunk.call(this,e)},_t=t}();function e(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}return e.prototype={getContentWorker:function(){var e=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},e.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new i("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},St=e}var Mt,Nt={},Rt={},Bt={},jt={};function ue(){return Mt||(Mt=1,t=jt,e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,t.assign=function(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;){var a=n.shift();if(a){if("object"!=O(a))throw new TypeError(a+"must be non-object");for(var i in a)t=a,r=i,Object.prototype.hasOwnProperty.call(t,r)&&(e[i]=a[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},r={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){for(var t,r,n,a=0,i=0,o=e.length;i<o;i++)a+=e[i].length;for(n=new Uint8Array(a),i=t=0,o=e.length;i<o;i++)r=e[i],n.set(r,t),t+=r.length;return n}},n={arraySet:function(e,t,r,n,a){for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}},t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,n))},t.setTyped(e)),jt;var t,e,r,n}var Lt,It,zt,Ft,Ut,Wt,Ht,qt,c={},ce={},he={};function Zt(){return zt?It:(zt=1,It=function(e,t,r,n){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;i=i+(a=a+t[n++]|0)|0,--o;);a%=65521,i%=65521}return a|i<<16|0})}function Vt(){if(Ut)return Ft;Ut=1;var s=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();return Ft=function(e,t,r,n){var a=s,i=n+r;e^=-1;for(var o=n;o<i;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}}function Xt(){return Ht?Wt:(Ht=1,Wt={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"})}function Gt(){var h,s,f,d,n,c,m,y,l,i,p,u,g,C,b,v,z,w,_,k,S,x,P,F,U,W,A,T,E;return qt||(qt=1,h=ue(),Lt||(Lt=1,i=ue(),p=256,u=286,g=30,b=[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],v=[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],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,C=15],e(_=new Array(576)),e(k=new Array(60)),e(S=new Array(512)),e(x=new Array(256)),e(P=new Array(29)),e(A=new Array(g)),T=!1,he._tr_init=function(e){if(!T){for(var t,r,n,a=new Array(16),i=0,o=0;o<28;o++)for(P[o]=i,t=0;t<1<<b[o];t++)x[i++]=o;for(x[i-1]=o,o=n=0;o<16;o++)for(A[o]=n,t=0;t<1<<v[o];t++)S[n++]=o;for(n>>=7;o<g;o++)for(A[o]=n<<7,t=0;t<1<<v[o]-7;t++)S[256+n++]=o;for(r=0;r<=C;r++)a[r]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,a[8]++;for(;t<=255;)_[2*t+1]=9,t++,a[9]++;for(;t<=279;)_[2*t+1]=7,t++,a[7]++;for(;t<=287;)_[2*t+1]=8,t++,a[8]++;for(X(_,287,a),t=0;t<g;t++)k[2*t+1]=5,k[2*t]=V(t,5);F=new H(_,b,257,u,C),U=new H(k,v,0,g,C),W=new H(new Array(0),z,0,19,7),T=!0}e.l_desc=new q(e.dyn_ltree,F),e.d_desc=new q(e.dyn_dtree,U),e.bl_desc=new q(e.bl_tree,W),e.bi_buf=0,e.bi_valid=0,G(e)},he._tr_stored_block=te,he._tr_flush_block=function(e,t,r,n){var a,i,o,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<p;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}(e)),$(e,e.l_desc),$(e,e.d_desc),s=function(e){var t;for(Q(e,e.dyn_ltree,e.l_desc.max_code),Q(e,e.dyn_dtree,e.d_desc.max_code),$(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*w[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=r+5,r+4<=a&&-1!==t)te(e,t,r,n);else if(4===e.strategy||i===a)O(e,2+(n?1:0),3),Y(e,_,k);else{O(e,4+(n?1:0),3);var l=e,u=(t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,s+1);for(O(l,t-257,5),O(l,r-1,5),O(l,u-4,4),o=0;o<u;o++)O(l,l.bl_tree[2*w[o]+1],3);ee(l,l.dyn_ltree,t-1),ee(l,l.dyn_dtree,r-1),Y(e,e.dyn_ltree,e.dyn_dtree)}G(e),n&&J(e)},he._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(x[r]+p+1)]++,e.dyn_dtree[2*Z(t)]++),e.last_lit===e.lit_bufsize-1},he._tr_align=function(e){O(e,2,3),D(e,256,_),16===(e=e).bi_valid?(a(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}),s=he,f=Zt(),d=Vt(),n=Xt(),c=-2,m=258,y=262,l=113,E=[new r(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(I(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,B(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-y&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(B(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out),1)}),new r(4,4,8,4,ae),new r(4,5,16,8,ae),new r(4,6,32,32,ae),new r(4,4,16,16,t),new r(8,16,32,32,t),new r(8,16,128,128,t),new r(8,32,128,256,t),new r(32,128,258,1024,t),new r(32,258,258,4096,t)],ce.deflateInit=function(e,t){return le(e,t,8,15,8,0)},ce.deflateInit2=le,ce.deflateReset=se,ce.deflateResetKeep=oe,ce.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?c:(e.state.gzhead=t,0)},ce.deflate=function(e,t){var r,n,a,i;if(!e||!e.state||5<t||t<0)return e?M(e,c):c;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return M(e,0===e.avail_out?-5:c);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status&&(2===n.wrap?(e.adler=0,j(n,31),j(n,139),j(n,8),n.gzhead?(j(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)),j(n,255&n.gzhead.time),j(n,n.gzhead.time>>8&255),j(n,n.gzhead.time>>16&255),j(n,n.gzhead.time>>24&255),j(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),j(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(j(n,255&n.gzhead.extra.length),j(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=d(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(j(n,0),j(n,0),j(n,0),j(n,0),j(n,0),j(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),j(n,3),n.status=l)):(o=8+(n.w_bits-8<<4)<<8,o|=(2<=n.strategy||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=l,L(n,o),0!==n.strstart&&(L(n,e.adler>>>16),L(n,65535&e.adler)),e.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending!==n.pending_buf_size));)j(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}}while(i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,j(n,i),0!==i);n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}}while(i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,j(n,i),0!==i);n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&R(e),n.pending+2<=n.pending_buf_size&&(j(n,255&e.adler),j(n,e.adler>>8&255),e.adler=0,n.status=l)):n.status=l),0!==n.pending){if(R(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&re(t)<=re(r)&&4!==t)return M(e,-5);if(666===n.status&&0!==e.avail_in)return M(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(I(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,a,i,o=e.window;;){if(e.lookahead<=m){if(I(e),e.lookahead<=m&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(n=o[a=e.strstart-1])===o[++a]&&n===o[++a]&&n===o[++a]){for(i=e.strstart+m;n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<i;);e.match_length=m-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(r=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}(n,t):E[n.level].func(n,t);if(3!==o&&4!==o||(n.status=666),1===o||3===o)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===o&&(1===t?s._tr_align(n):5!==t&&(s._tr_stored_block(n,0,0,!1),3===t)&&(N(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),R(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t||!(n.wrap<=0)&&(2===n.wrap?(j(n,255&e.adler),j(n,e.adler>>8&255),j(n,e.adler>>16&255),j(n,e.adler>>24&255),j(n,255&e.total_in),j(n,e.total_in>>8&255),j(n,e.total_in>>16&255),j(n,e.total_in>>24&255)):(L(n,e.adler>>>16),L(n,65535&e.adler)),R(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?0:1},ce.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==l&&666!==t?M(e,c):(e.state=null,t===l?M(e,-3):0):c},ce.deflateSetDictionary=function(e,t){var r,n,a,i,o,s,l,u=t.length;if(!e||!e.state)return c;if(2===(i=(r=e.state).wrap)||1===i&&42!==r.status||r.lookahead)return c;for(1===i&&(e.adler=f(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===i&&(N(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new h.Buf8(r.w_size),h.arraySet(l,t,u-r.w_size,r.w_size,0),t=l,u=r.w_size),l=e.avail_in,o=e.next_in,s=e.input,e.avail_in=u,e.next_in=0,e.input=t,I(r);3<=r.lookahead;){for(n=r.strstart,a=r.lookahead-2;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++,--a;);r.strstart=n,r.lookahead=2,I(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,e.next_in=o,e.input=s,e.avail_in=l,r.wrap=i,0},ce.deflateInfo="pako deflate (from Nodeca project)"),ce;function e(e){for(var t=e.length;0<=--t;)e[t]=0}function H(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function q(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Z(e){return e<256?S[e]:S[256+(e>>>7)]}function a(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,a(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function D(e,t,r){O(e,r[2*t],r[2*t+1])}function V(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function X(e,t,r){for(var n,a=new Array(16),i=0,o=1;o<=C;o++)a[o]=i=i+r[o-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=V(a[s]++,s))}}function G(e){for(var t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<g;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function J(e){8<e.bi_valid?a(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function o(e,t,r,n){var a=2*t,i=2*r;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]}function K(e,t,r){for(var n=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&o(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!o(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}function Y(e,t,r){var n,a,i,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],a=e.pending_buf[e.l_buf+s],s++,0==n?D(e,a,t):(D(e,(i=x[a])+p+1,t),0!==(o=b[i])&&O(e,a-=P[i],o),D(e,i=Z(--n),r),0!==(o=v[i])&&O(e,n-=A[i],o)),s<e.last_lit;);D(e,256,t)}function $(e,t){var r,n,a,i=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)K(e,i,r);for(a=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,K(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,h,f,d,p,m=e,y=t.dyn_tree,g=t.max_code,b=t.stat_desc.static_tree,v=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,k=t.stat_desc.max_length,S=0,x=0;x<=C;x++)m.bl_count[x]=0;for(y[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(x=y[2*y[2*(h=m.heap[c])+1]+1]+1)>k&&(x=k,S++),y[2*h+1]=x,g<h||(m.bl_count[x]++,d=0,_<=h&&(d=w[h-_]),p=y[2*h],m.opt_len+=p*(x+d),v&&(m.static_len+=p*(b[2*h+1]+d)));if(0!==S){do{for(x=k-1;0===m.bl_count[x];)x--}while(m.bl_count[x]--,m.bl_count[x+1]+=2,m.bl_count[k]--,0<(S-=2));for(x=k;0!==x;x--)for(h=m.bl_count[x];0!==h;)(f=m.heap[--c])>g||(y[2*f+1]!==x&&(m.opt_len+=(x-y[2*f+1])*y[2*f],y[2*f+1]=x),h--)}X(i,u,e.bl_count)}function Q(e,t,r){var n,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<u?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4))}function ee(e,t,r){var n,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<u)for(;D(e,a,e.bl_tree),0!=--s;);else 0!==a?(a!==i&&(D(e,a,e.bl_tree),s--),D(e,16,e.bl_tree),O(e,s-3,2)):s<=10?(D(e,17,e.bl_tree),O(e,s-3,3)):(D(e,18,e.bl_tree),O(e,s-11,7));i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4)}}function te(e,t,r,n){O(e,0+(n?1:0),3),n=t,t=r,J(r=e),a(r,t),a(r,~t),i.arraySet(r.pending_buf,r.window,n,t,r.pending),r.pending+=t}function M(e,t){return e.msg=n[t],t}function re(e){return(e<<1)-(4<e?9:0)}function N(e){for(var t=e.length;0<=--t;)e[t]=0}function R(e){var t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(h.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending)&&(t.pending_out=0)}function B(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function j(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ne(e,t){var r,n,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-y?e.strstart-(e.w_size-y):0,u=e.window,c=e.w_mask,h=e.prev,f=e.strstart+m,d=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===d&&u[r]===u[i]&&u[++r]===u[i+1]){for(i+=2,r++;u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&i<f;);if(n=m-(f-i),i=f-m,o<n){if(e.match_start=t,s<=(o=n))break;d=u[i+o-1],p=u[i+o]}}}while((t=h[t&c])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function I(e){var t,r,n,a,i,o,s,l,u,c=e.w_size;do{if(l=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-y)){for(h.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=r=e.hash_size;n=e.head[--t],e.head[t]=c<=n?n-c:0,--r;);for(t=r=c;n=e.prev[--t],e.prev[t]=c<=n?n-c:0,--r;);l+=c}if(0===e.strm.avail_in)break;if(i=e.strm,o=e.window,s=e.strstart+e.lookahead,l=l,u=void 0,r=0===(u=(u=i.avail_in)>l?l:u)?0:(i.avail_in-=u,h.arraySet(o,i.input,i.next_in,u,s),1===i.state.wrap?i.adler=f(i.adler,o,u,s):2===i.state.wrap&&(i.adler=d(i.adler,o,u,s)),i.next_in+=u,i.total_in+=u,u),e.lookahead+=r,3<=e.lookahead+e.insert)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<y&&0!==e.strm.avail_in)}function ae(e,t){for(var r,n;;){if(e.lookahead<y){if(I(e),e.lookahead<y&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-y&&(e.match_length=ne(e,r)),3<=e.match_length)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}function t(e,t){for(var r,n,a;;){if(e.lookahead<y){if(I(e),e.lookahead<y&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-y&&(e.match_length=ne(e,r),e.match_length<=5)&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-3,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(B(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=s._tr_tally(e,0,e.window[e.strstart-1]))&&B(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}function r(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}function ie(){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 h.Buf16(1146),this.dyn_dtree=new h.Buf16(122),this.bl_tree=new h.Buf16(78),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(16),this.heap=new h.Buf16(573),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(573),N(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 oe(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:l,e.adler=2===t.wrap?0:1,t.last_flush=0,s._tr_init(t),0):M(e,c)}function se(e){var t=oe(e);return 0===t&&((e=e.state).window_size=2*e.w_size,N(e.head),e.max_lazy_match=E[e.level].max_lazy,e.good_match=E[e.level].good_length,e.nice_match=E[e.level].nice_length,e.max_chain_length=E[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),t}function le(e,t,r,n,a,i){if(!e)return c;var o=1;if(-1===t&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),a<1||9<a||8!==r||n<8||15<n||t<0||9<t||i<0||4<i)return M(e,c);8===n&&(n=9);var s=new ie;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new h.Buf8(2*s.w_size),s.head=new h.Buf16(s.hash_size),s.prev=new h.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new h.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=r,se(e)}}var Jt,Kt,Yt,$t,r={};function Qt(){if(!Jt){Jt=1;var l=ue(),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var u=new l.Buf8(256),e=0;e<256;e++)u[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;u[254]=u[254]=1,r.string2buf=function(e){for(var t,r,n,a,i=e.length,o=0,s=0;s<i;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<i&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new l.Buf8(o),s=a=0;a<o;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<i&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new l.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){for(var r,n,a=t||e.length,i=new Array(2*a),o=0,s=0;s<a;)if((r=e[s++])<128)i[o++]=r;else if(4<(n=u[r]))i[o++]=65533,s+=n-1;else{for(r&=2===n?31:3===n?15:7;1<n&&s<a;)r=r<<6|63&e[s++],n--;1<n?i[o++]=65533:r<65536?i[o++]=r:(r-=65536,i[o++]=55296|r>>10&1023,i[o++]=56320|1023&r)}return c(i,o)},r.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+u[e[r]]>t?r:t}}return r;function c(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}}function er(){return Yt?Kt:(Yt=1,Kt=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})}var tr,rr,nr,ar,ir,or,sr,lr,ur,cr,hr,fr,dr,pr,y={},g={};function mr(){return sr?or:or={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:sr=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}}function yr(){var h,f,d,p,r,n,a,m,D,M,N,R,B,j,L,I,z;return cr||(cr=1,ir||(ir=1,D=ue(),M=Zt(),N=Vt(),R=rr?tr:(rr=1,tr=function(e,t){var r,n,a,i,o,s,l=e.state,u=e.next_in,c=e.input,h=u+(e.avail_in-5),f=e.next_out,d=e.output,p=f-(t-e.avail_out),m=f+(e.avail_out-257),y=l.dmax,g=l.wsize,b=l.whave,v=l.wnext,w=l.window,_=l.hold,k=l.bits,S=l.lencode,x=l.distcode,C=(1<<l.lenbits)-1,P=(1<<l.distbits)-1;e:do{for(k<15&&(_+=c[u++]<<k,k+=8,_+=c[u++]<<k,k+=8),r=S[_&C];;){if(_>>>=n=r>>>24,k-=n,0==(n=r>>>16&255))d[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=S[(65535&r)+(_&(1<<n)-1)];continue}if(32&n){l.mode=12;break e}e.msg="invalid literal/length code",l.mode=30;break e}for(a=65535&r,(n&=15)&&(k<n&&(_+=c[u++]<<k,k+=8),a+=_&(1<<n)-1,_>>>=n,k-=n),k<15&&(_+=c[u++]<<k,k+=8,_+=c[u++]<<k,k+=8),r=x[_&P];;){if(_>>>=n=r>>>24,k-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=x[(65535&r)+(_&(1<<n)-1)];continue}e.msg="invalid distance code",l.mode=30;break e}if(i=65535&r,k<(n&=15)&&(_+=c[u++]<<k,(k+=8)<n)&&(_+=c[u++]<<k,k+=8),(i+=_&(1<<n)-1)>y){e.msg="invalid distance too far back",l.mode=30;break e}if(_>>>=n,k-=n,i>(n=f-p)){if((n=i-n)>b&&l.sane){e.msg="invalid distance too far back",l.mode=30;break e}if(s=w,(o=0)===v){if(o+=g-n,n<a){for(a-=n;d[f++]=w[o++],--n;);o=f-i,s=d}}else if(v<n){if(o+=g+v-n,(n-=v)<a){for(a-=n;d[f++]=w[o++],--n;);if(o=0,v<a){for(a-=n=v;d[f++]=w[o++],--n;);o=f-i,s=d}}}else if(o+=v-n,n<a){for(a-=n;d[f++]=w[o++],--n;);o=f-i,s=d}for(;2<a;)d[f++]=s[o++],d[f++]=s[o++],d[f++]=s[o++],a-=3;a&&(d[f++]=s[o++],1<a)&&(d[f++]=s[o++])}else{for(o=f-i;d[f++]=d[o++],d[f++]=d[o++],d[f++]=d[o++],2<(a-=3););a&&(d[f++]=d[o++],1<a)&&(d[f++]=d[o++])}break}}break}}while(u<h&&f<m);u-=a=k>>3,_&=(1<<(k-=a<<3))-1,e.next_in=u,e.next_out=f,e.avail_in=u<h?h-u+5:5-(u-h),e.avail_out=f<m?m-f+257:257-(f-m),l.hold=_,l.bits=k}),B=function(){if(ar)return nr;ar=1;var R=ue(),B=[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],j=[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],L=[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],I=[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];return nr=function(e,t,r,n,a,i,o,s){for(var l,u,c,h,f,d,p,m,y,g=s.bits,b=0,v=0,w=0,_=0,k=0,S=0,x=0,C=0,P=0,A=0,T=null,E=0,O=new R.Buf16(16),D=new R.Buf16(16),M=null,N=0,b=0;b<=15;b++)O[b]=0;for(v=0;v<n;v++)O[t[r+v]]++;for(k=g,_=15;1<=_&&0===O[_];_--);if(_<k&&(k=_),0===_)a[i++]=20971520,a[i++]=20971520,s.bits=1;else{for(w=1;w<_&&0===O[w];w++);for(k<w&&(k=w),b=C=1;b<=15;b++)if((C=(C<<1)-O[b])<0)return-1;if(0<C&&(0===e||1!==_))return-1;for(D[1]=0,b=1;b<15;b++)D[b+1]=D[b]+O[b];for(v=0;v<n;v++)0!==t[r+v]&&(o[D[t[r+v]]++]=v);if(d=0===e?(T=M=o,19):1===e?(T=B,E-=257,M=j,N-=257,256):(T=L,M=I,-1),b=w,f=i,x=v=A=0,c=-1,h=(P=1<<(S=k))-1,1===e&&852<P||2===e&&592<P)return 1;for(;;){for(y=o[v]<d?(m=0,o[v]):o[v]>d?(m=M[N+o[v]],T[E+o[v]]):(m=96,0),l=1<<(p=b-x),w=u=1<<S;a[f+(A>>x)+(u-=l)]=p<<24|m<<16|y|0,0!==u;);for(l=1<<b-1;A&l;)l>>=1;if(0!==l?A=(A&l-1)+l:A=0,v++,0==--O[b]){if(b===_)break;b=t[r+o[v]]}if(k<b&&(A&h)!==c){for(f+=w,C=1<<(S=b-(x=0===x?k:x));S+x<_&&!((C-=O[S+x])<=0);)S++,C<<=1;if(P+=1<<S,1===e&&852<P||2===e&&592<P)return 1;a[c=A&h]=k<<24|S<<16|f-i|0}}0!==A&&(a[f+A]=b-x<<24|64<<16|0),s.bits=k}return 0}}(),j=-2,z=!0,g.inflateReset=s,g.inflateReset2=l,g.inflateResetKeep=o,g.inflateInit=function(e){return t(e,15)},g.inflateInit2=t,g.inflate=function(e,t){var r,n,a,i,o,s,l,u,c,h,f,d,p,m,y,g,b,v,w,_,k,S,x,C,P=0,A=new D.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return j;12===(r=e.state).mode&&(r.mode=13),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,h=s,f=l,S=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap)r.mode=13;else{for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(2&r.wrap&&35615===u)A[r.check=0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0),c=u=0,r.mode=2;else if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31)e.msg="incorrect header check",r.mode=30;else if(8!=(15&u))e.msg="unknown compression method",r.mode=30;else{if(c-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,e.adler=r.check=1,r.mode=512&u?10:12,c=u=0}}break;case 2:for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(r.flags=u,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0)),c=u=0,r.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.head&&(r.head.time=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=N(r.check,A,4,0)),c=u=0,r.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0)),c=u=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0)),c=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=(d=r.length)>s?s:d)&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),D.arraySet(r.head.extra,n,i,d,k)),512&r.flags&&(r.check=N(r.check,n,d,i)),s-=d,i+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;for(d=0;k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&d<s;);if(512&r.flags&&(r.check=N(r.check,n,d,i)),s-=d,i+=d,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;for(d=0;k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k)),k&&d<s;);if(512&r.flags&&(r.check=N(r.check,n,d,i)),s-=d,i+=d,k)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}c=u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}e.adler=r.check=F(u),c=u=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=u,r.bits=c,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last)u>>>=7&c,c-=7&c,r.mode=27;else{for(;c<3;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}switch(r.last=1&u,--c,3&(u>>>=1)){case 0:r.mode=14;break;case 1:E=O=void 0;var E,O=r;if(z){for(L=new D.Buf32(512),I=new D.Buf32(32),E=0;E<144;)O.lens[E++]=8;for(;E<256;)O.lens[E++]=9;for(;E<280;)O.lens[E++]=7;for(;E<288;)O.lens[E++]=8;for(B(1,O.lens,0,288,L,0,O.work,{bits:9}),E=0;E<32;)O.lens[E++]=5;B(2,O.lens,0,32,I,0,O.work,{bits:5}),z=!1}if(O.lencode=L,O.lenbits=9,O.distcode=I,O.distbits=5,r.mode=20,6!==t)break;u>>>=2,c-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}u>>>=2,c-=2}break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,c=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(0===(d=l<(d=s<d?s:d)?l:d))break e;D.arraySet(a,n,i,d,o),s-=d,i+=d,l-=d,o+=d,r.length-=d}else r.mode=12;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(r.nlen=257+(31&u),u>>>=5,c-=5,r.ndist=1+(31&u),u>>>=5,c-=5,r.ncode=4+(15&u),u>>>=4,c-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.lens[T[r.have++]]=7&u,u>>>=3,c-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},S=B(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,S){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;g=(P=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&P,!((y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(b<16)u>>>=y,c-=y,r.lens[r.have++]=b;else{if(16===b){for(C=y+2;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(u>>>=y,c-=y,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===b){for(C=y+3;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}k=0,d=3+(7&(u>>>=y)),u>>>=3,c=c-y-3}else{for(C=y+7;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}k=0,d=11+(127&(u>>>=y)),u>>>=7,c=c-y-7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,x={bits:r.lenbits},S=B(1,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,S){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},S=B(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,S){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=s&&258<=l){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=u,r.bits=c,R(e,f),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(P=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&P,!((y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(g&&0==(240&g)){for(v=y,w=g,_=b;g=(P=r.lencode[_+((u&(1<<v+w)-1)>>v)])>>>16&255,b=65535&P,!(v+(y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}u>>>=v,c-=v,r.back+=v}if(u>>>=y,c-=y,r.back+=y,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(C=r.extra;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(P=r.distcode[u&(1<<r.distbits)-1])>>>16&255,b=65535&P,!((y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(0==(240&g)){for(v=y,w=g,_=b;g=(P=r.distcode[_+((u&(1<<v+w)-1)>>v)])>>>16&255,b=65535&P,!(v+(y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}u>>>=v,c-=v,r.back+=v}if(u>>>=y,c-=y,r.back+=y,64&g){e.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(C=r.extra;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===l)break e;if(r.offset>(d=f-l)){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,p=o-r.offset,d=r.length;for(l-=d=l<d?l:d,r.length-=d;a[o++]=m[p++],--d;);0===r.length&&(r.mode=21);break;case 26:if(0===l)break e;a[o++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===s)break e;s--,u|=n[i++]<<c,c+=8}if(f-=l,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=(r.flags?N:M)(r.check,a,f,o-f)),f=l,(r.flags?u:F(u))!==r.check){e.msg="incorrect data check",r.mode=30;break}c=u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}c=u=0}r.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;default:return j}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=u,r.bits=c,(r.wsize||f!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&U(e,e.output,e.next_out,f-e.avail_out),h-=e.avail_in,f-=e.avail_out,e.total_in+=h,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=(r.flags?N:M)(r.check,a,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),S=(0==h&&0===f||4===t)&&0===S?-5:S},g.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,0):j},g.inflateGetHeader=function(e,t){return!e||!e.state||0==(2&(e=e.state).wrap)?j:((e.head=t).done=!1,0)},g.inflateSetDictionary=function(e,t){var r,n=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?j:11===r.mode&&M(1,t,n,0)!==r.check?-3:U(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0)},g.inflateInfo="pako inflate (from Nodeca project)"),h=g,f=ue(),d=Qt(),p=mr(),r=Xt(),n=er(),a=ur?lr:(ur=1,lr=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}),m=Object.prototype.toString,u.prototype.push=function(e,t){var r,n,a,i,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?p.Z_FINISH:p.Z_NO_FLUSH,"string"==typeof e?s.input=d.binstring2buf(e):"[object ArrayBuffer]"===m.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new f.Buf8(l),s.next_out=0,s.avail_out=l),(r=(r=h.inflate(s,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&u?h.inflateSetDictionary(this.strm,u):r)===p.Z_BUF_ERROR&&!0===c&&(r=p.Z_OK,c=!1),r!==p.Z_STREAM_END&&r!==p.Z_OK)return this.onEnd(r),!(this.ended=!0)}while(!s.next_out||0!==s.avail_out&&r!==p.Z_STREAM_END&&(0!==s.avail_in||n!==p.Z_FINISH&&n!==p.Z_SYNC_FLUSH)||("string"===this.options.to?(a=d.utf8border(s.output,s.next_out),i=s.next_out-a,o=d.buf2string(s.output,a),s.next_out=i,s.avail_out=l-i,i&&f.arraySet(s.output,s.output,a,i,0),this.onData(o)):this.onData(f.shrinkBuf(s.output,s.next_out))),0===s.avail_in&&0===s.avail_out&&(c=!0),(0<s.avail_in||0===s.avail_out)&&r!==p.Z_STREAM_END);return(n=r===p.Z_STREAM_END?p.Z_FINISH:n)===p.Z_FINISH?(r=h.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===p.Z_OK):n!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===p.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},y.Inflate=u,y.inflate=c,y.inflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},y.ungzip=c),y;function F(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){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 D.Buf16(320),this.work=new D.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new D.Buf32(852),t.distcode=t.distdyn=new D.Buf32(592),t.sane=1,t.back=-1,0):j}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,o(e)):j}function l(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?j:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,s(e))}function t(e,t){var r;return e?(r=new i,(e.state=r).window=null,0!==(r=l(e,t))&&(e.state=null),r):j}function U(e,t,r,n){var a,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new D.Buf8(e.wsize)),n>=e.wsize?(D.arraySet(e.window,t,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):((a=e.wsize-e.wnext)>n&&(a=n),D.arraySet(e.window,t,r-n,a,e.wnext),(n-=a)?(D.arraySet(e.window,t,r-n,n,0),e.wnext=n,e.whave=e.wsize):(e.wnext+=a,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=a))),0}function u(e){if(!(this instanceof u))return new u(e);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0,h.inflateInit2(this.strm,t.windowBits));if(e!==p.Z_OK)throw new Error(r[e]);if(this.header=new a,h.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=d.string2buf(t.dictionary):"[object ArrayBuffer]"===m.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=h.inflateSetDictionary(this.strm,t.dictionary))!==p.Z_OK)throw new Error(r[e])}function c(e,t){t=new u(t);if(t.push(e,!0),t.err)throw t.msg||r[t.err];return t.result}}function gr(){var e,t,r,n,a,i;return pr||(pr=1,e=L(),Rt.STORE={magic:"\0\0",compressWorker:function(){return new e("STORE compression")},uncompressWorker:function(){return new e("STORE decompression")}},Rt.DEFLATE=(dr||(dr=1,t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=function(){if(fr)return hr;fr=1;var e=ue().assign;$t||($t=1,o=Gt(),s=ue(),l=Qt(),r=Xt(),n=er(),u=Object.prototype.toString,a.prototype.push=function(e,t){var r,n,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=l.string2buf(e):"[object ArrayBuffer]"===u.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new s.Buf8(i),a.next_out=0,a.avail_out=i),1!==(r=o.deflate(a,n))&&0!==r)return this.onEnd(r),!(this.ended=!0)}while(0!==a.avail_out&&(0!==a.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(l.buf2binstring(s.shrinkBuf(a.output,a.next_out))):this.onData(s.shrinkBuf(a.output,a.next_out))),(0<a.avail_in||0===a.avail_out)&&1!==r);return 4===n?(r=o.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),!(a.avail_out=0))},a.prototype.onData=function(e){this.chunks.push(e)},a.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},c.Deflate=a,c.deflate=i,c.deflateRaw=function(e,t){return(t=t||{}).raw=!0,i(e,t)},c.gzip=function(e,t){return(t=t||{}).gzip=!0,i(e,t)});var o,s,l,r,n,u,t={};function a(e){if(!(this instanceof a))return new a(e);this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0,o.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(0!==t)throw new Error(r[t]);if(e.header&&o.deflateSetHeader(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?l.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(t=o.deflateSetDictionary(this.strm,e)))throw new Error(r[t]);this._dict_set=!0}}function i(e,t){t=new a(t);if(t.push(e,!0),t.err)throw t.msg||r[t.err];return t.result}return e(t,c,yr(),mr()),hr=t}(),n=D(),a=L(),i=t?"uint8array":"array",Bt.magic="\b\0",n.inherits(o,a),o.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(n.transformTo(i,e.data),!1)},o.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},o.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Bt.compressWorker=function(e){return new o("Deflate",e)},Bt.uncompressWorker=function(){return new o("Inflate",{})}),Bt)),Rt;function o(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}}var br,vr,wr,_r,kr,Sr,xr,Cr,Pr,Ar,Tr,Er,Or,Dr,Mr,Nr,Rr,Br,jr,Lr,Ir,zr,Fr,Ur,Wr,Hr,qr,Zr,i={};function Vr(){return br||(br=1,i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"),i}function Xr(){var u,r;return _r||(_r=1,u=gr(),r=function(){if(wr)return vr;wr=1;function n(e,t,r,n,a,i){var o=e.file,s=e.compression,l=i!==v.utf8encode,u=b.transformTo("string",i(o.name)),c=b.transformTo("string",v.utf8encode(o.name)),h=o.comment,i=b.transformTo("string",i(h)),f=b.transformTo("string",v.utf8encode(h)),d=c.length!==o.name.length,h=f.length!==h.length,p="",m=o.dir,y=o.date,g={crc32:0,compressedSize:0,uncompressedSize:0},r=(t&&!r||(g.crc32=e.crc32,g.compressedSize=e.compressedSize,g.uncompressedSize=e.uncompressedSize),0);return t&&(r|=8),l||!d&&!h||(r|=2048),t=e=0,m&&(e|=16),"UNIX"===a?(t=798,e|=(65535&((l=o.unixPermissions)?l:m?16893:33204))<<16):(t=20,e|=63&(o.dosPermissions||0)),a=y.getUTCHours(),a=(a=((a<<=6)|y.getUTCMinutes())<<5)|y.getUTCSeconds()/2,l=y.getUTCFullYear()-1980,l=(l=((l<<=4)|y.getUTCMonth()+1)<<5)|y.getUTCDate(),d&&(m=k(1,1)+k(w(u),4)+c,p+="up"+k(m.length,2)+m),h&&(o=k(1,1)+k(w(i),4)+f,p+="uc"+k(o.length,2)+o),y="",y=(y=(y=(y=(y=(y=(y=(y=(y=(y+="\n\0")+k(r,2))+s.magic)+k(a,2))+k(l,2))+k(g.crc32,4))+k(g.compressedSize,4))+k(g.uncompressedSize,4))+k(u.length,2))+k(p.length,2),{fileRecord:_.LOCAL_FILE_HEADER+y+u+p,dirRecord:_.CENTRAL_FILE_HEADER+k(t,2)+y+k(i.length,2)+"\0\0\0\0"+k(e,4)+k(n,4)+u+p+i}}var b=D(),a=L(),v=I(),w=Et(),_=Vr(),k=function(e,t){for(var r="",n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r};function e(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}return b.inherits(e,a),e.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},e.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},e.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:(t=e,_.DATA_DESCRIPTOR+k(t.crc32,4)+k(t.compressedSize,4)+k(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},e.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,r=function(e,t,r,n,a){a=b.transformTo("string",a(n));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+k(e,2)+k(e,2)+k(t,4)+k(r,4)+k(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},e.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},e.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},e.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},e.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},e.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},vr=e}(),Nt.generateWorker=function(e,o,t){var s=new r(o.streamFiles,t,o.platform,o.encodeFileName),l=0;try{e.forEach(function(e,t){l++;var r=function(e,t){e=e||t,t=u[e];if(t)return t;throw new Error(e+" is not a valid compression method !")}(t.options.compression,o.compression),n=t.options.compressionOptions||o.compressionOptions||{},a=t.dir,i=t.date;t._compressWorker(r,n).withStreamInfo("file",{name:e,dir:a,date:i,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(s)}),s.entriesCount=l}catch(e){s.error(e)}return s}),Nt}function Gr(){if(Ar)return Pr;Ar=1;var t=D();function e(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}return e.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return t.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},Pr=e}function Jr(){if(Er)return Tr;Er=1;var r=Gr();function e(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}return D().inherits(e,r),e.prototype.byteAt=function(e){return this.data[this.zero+e]},e.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},e.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),e=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&e===a[3]},e.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},Tr=e}function Kr(){if(Nr)return Mr;Nr=1;var t=Jr();function e(e){t.call(this,e)}return D().inherits(e,t),e.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},Mr=e}function Yr(){if(Lr)return jr;Lr=1;var r=D(),n=p(),a=Jr(),i=function(){if(Dr)return Or;Dr=1;var t=Gr();function e(e){t.call(this,e)}return D().inherits(e,t),e.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},e.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},e.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},e.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},Or=e}(),o=function(){if(Br)return Rr;Br=1;var t=Kr();function e(e){t.call(this,e)}return D().inherits(e,t),e.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},Rr=e}(),s=Kr();return jr=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new o(e):n.uint8array?new s(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new i(e)}}function $r(){if(Hr)return Wr;Hr=1;var l=D(),a=m(),t=I(),r=function(){if(Ur)return Fr;Ur=1;var t=Yr(),r=D(),n=Vr(),a=function(){if(zr)return Ir;zr=1;var r=Yr(),n=D(),a=Dt(),i=Et(),o=I(),s=gr(),l=p();function e(e,t){this.options=e,this.loadOptions=t}return e.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-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(null===(t=function(e){for(var t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&s[t].magic===e)return s[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var e;this.extraFields[1]&&(e=r(this.extraFields[1].value),this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(e){var t,r,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(a)},handleUTF8:function(){var e,t=l.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=n.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=n.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return!t||1!==(e=r(t.value)).readInt(1)||i(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return!t||1!==(e=r(t.value)).readInt(1)||i(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}},Ir=e}(),i=p();function e(e){this.files=[],this.loadOptions=e}return e.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index,e=(this.reader.setIndex(e),this.reader.readString(4)===t);return this.reader.setIndex(r),e},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 e=this.reader.readData(this.zipCommentLength),t=i.uint8array?"uint8array":"array",t=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):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");this.reader.setIndex(e);var t=e;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e);if(0<e)this.isSignature(t,n.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=t(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Fr=e}(),i=Ot(),n=et();return Wr=function(e,o){var s=this;return o=l.extend(o||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:t.utf8decode}),n.isNode&&n.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",e,!0,o.optimizedBinaryString,o.base64).then(function(e){var t=new r(o);return t.load(e),t}).then(function(e){var t=[a.Promise.resolve(e)],r=e.files;if(o.checkCRC32)for(var n=0;n<r.length;n++)t.push(function(n){return new a.Promise(function(e,t){var r=n.decompressed.getContentWorker().pipe(new i);r.on("error",function(e){t(e)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(r[n]));return a.Promise.all(t)}).then(function(e){for(var e=e.shift(),t=e.files,r=0;r<t.length;r++){var n=t[r],a=n.fileNameStr,i=l.resolve(n.fileNameStr);s.file(i,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:o.createFolders}),n.dir||(s.file(i).unsafeOriginalName=a)}return e.zipComment.length&&(s.comment=e.zipComment),s})}}globalThis;var Qr,en,tn,rn,nn={exports:{}}.exports=(en=Zr?qr:(Zr=1,(l.prototype=function(){if(Cr)return xr;Cr=1;function s(e,t){return t=void 0!==t?t:c.createFolders,e=y(e),this.files[e]||m.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var a=I(),l=D(),u=L(),i=dt(),c=At(),h=Dt(),f=function(){if(Pt)return Ct;Pt=1;function e(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=dt(),t=Tt(),o=I(),n=Dt(),s=L();e.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r,a=("binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker(),!this._dataBinary);a&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var r;return this._data instanceof n&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(r=this._decompressWorker(),this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),n.createWorkerFrom(r,e,t))},_decompressWorker:function(){return this._data instanceof n?this._data.getContentWorker():this._data instanceof s?this._data:new t(this._data)}};for(var r=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],a=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<r.length;l++)e.prototype[r[l]]=a;return Ct=e}(),o=Xr(),d=et(),p=function(){if(Sr)return kr;Sr=1;var e=D(),r=L();function t(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}return e.inherits(t,r),t.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},t.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},t.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},kr=t}(),m=function(e,t,r){var n,a=l.getTypeOf(t),i=l.extend(r||{},c),o=(i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(e=y(e)),i.createFolders&&(n=0<(o=(n="/"===(n=e).slice(-1)?n.substring(0,n.length-1):n).lastIndexOf("/"))?n.substring(0,o):"")&&s.call(this,n,!0),"string"===a&&!1===i.binary&&!1===i.base64),a=(r&&void 0!==r.binary||(i.binary=!o),(t instanceof h&&0===t.uncompressedSize||i.dir||!t||0===t.length)&&(i.base64=!1,i.binary=!0,t="",i.compression="STORE"),n=t instanceof h||t instanceof u?t:d.isNode&&d.isStream(t)?new p(e,t):l.prepareContent(e,t,i.binary,i.optimizedBinaryString,i.base64),new f(e,n,i));this.files[e]=a},y=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}return xr={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(r){var n=[];return this.forEach(function(e,t){r(e,t)&&n.push(t)}),n},file:function(e,t,r){var n,a;return 1===arguments.length?g(e)?(n=e,this.filter(function(e,t){return!t.dir&&n.test(e)})):(a=this.files[this.root+e])&&!a.dir?a:null:(e=this.root+e,m.call(this,e,t,r),this)},folder:function(r){var e,t;return r?g(r)?this.filter(function(e,t){return t.dir&&r.test(e)}):(e=this.root+r,e=s.call(this,e),(t=this.clone()).root=e.name,t):this},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!==r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[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(e){var t={};try{if((t=l.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");l.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var r=t.comment||this.comment||"",n=o.generateWorker(this,t,r)}catch(e){(n=new u("error")).error(e)}return new i(n,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}}()).loadAsync=$r(),l.support=p(),l.defaults=At(),l.version="3.10.1",l.loadAsync=function(e,t){return(new l).loadAsync(e,t)},l.external=m(),qr=l),tn={438:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});var t=r(537),t=r.n(t),n=r(645),n=r.n(n),a=r(806),a=r.n(a),r=new URL(r(583),r.b),n=n()(t()),t=a()(r),i=(n.push([e.id,'@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url('.concat(t,")}"),"",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:["@namespace \"http://www.w3.org/1998/Math/MathML\";\r\n\r\nmath {\r\n display: inline-block;\r\n line-height: initial;\r\n}\r\n\r\nmfrac {\r\n display: inline-block;\r\n vertical-align: -50%;\r\n text-align: center;\r\n\r\n &>:first-child {\r\n border-bottom: solid thin currentColor;\r\n }\r\n\r\n &>* {\r\n display: block;\r\n }\r\n}\r\n\r\nmsub {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: sub;\r\n }\r\n}\r\n\r\nmsup {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: super;\r\n }\r\n}\r\n\r\nmunder, mover, munderover {\r\n display: inline-flex;\r\n flex-flow: column nowrap;\r\n vertical-align: middle;\r\n text-align: center;\r\n\r\n &>:not(:first-child) {\r\n font-size: smaller;\r\n }\r\n}\r\n\r\nmunderover {\r\n &>:last-child { order: -1; }\r\n}\r\n\r\nmroot, msqrt {\r\n position: relative;\r\n display: inline-block;\r\n border-top: solid thin currentColor; \r\n margin-top: 0.5px;\r\n vertical-align: middle; \r\n margin-left: 1ch; \r\n\r\n &:before {\r\n content: \"\";\r\n display: inline-block;\r\n position: absolute;\r\n width: 1ch;\r\n left: -1ch;\r\n top: -1px;\r\n bottom: 0;\r\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E\");\r\n }\r\n}"],sourceRoot:""}]),n.toString())},645:function(e){e.exports=function(n){var c=[];return c.toString=function(){return this.map(function(e){var t="",r=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),r&&(t+="@layer".concat(0<e[5].length?" ".concat(e[5]):""," {")),t+=n(e),r&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t}).join("")},c.i=function(e,t,r,n,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==a&&(void 0!==u[5]&&(u[1]="@layer".concat(0<u[5].length?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),t&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=t),n&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=n):u[4]="".concat(n)),c.push(u))}},c}},806:function(e){e.exports=function(e,t){return t=t||{},e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},537:function(e){e.exports=function(e){var t=e[1],e=e[3];return e?("function"==typeof btoa?(e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e),e="/*# ".concat(e," */"),[t].concat([e])):[t]).join("\n"):t}},522:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;var n,a,i=r(626),o=r(472),s=r(593),l=r(461),r=(E(u,[{key:"get",value:function(e){return this._zip.files[(e=e).startsWith("/")?e.substr(1):e]}},{key:"update",value:function(e,t){this._zip.file(e,t)}},{key:"save",value:function(){return this._zip.generateAsync({type:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob"})}},{key:"load",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"string";return null!=(e=null==(e=this.get(e))?void 0:e.async(t))?e:Promise.resolve(null)}},{key:"loadRelationships",value:(a=P(A().mark(function e(){var t,r,n,a=arguments;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="_rels/.rels",null!=(r=0<a.length&&void 0!==a[0]?a[0]:null)&&(r=(0,s.splitPath)(r),r=C(r,2),n=r[0],r=r[1],t="".concat(n,"_rels/").concat(r,".rels")),e.next=5,this.load(t);case 5:return n=e.sent,e.abrupt("return",n?(0,l.parseRelationships)(this.parseXmlDocument(n).firstElementChild,this.xmlParser):null);case 7:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"parseXmlDocument",value:function(e){return(0,o.parseXmlString)(e,this.options.trimXmlDeclaration)}}],[{key:"load",value:(n=P(A().mark(function e(t,r){var n;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.loadAsync(t);case 2:return n=e.sent,e.abrupt("return",new u(n,r));case 4:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})}]),u);function u(e,t){T(this,u),this._zip=e,this.options=t,this.xmlParser=new o.XmlParser}t.OpenXmlPackage=r},530:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;var n,a=r(472);function i(e,t){T(this,i),this._package=e,this.path=t}t.Part=(E(i,[{key:"load",value:(n=P(A().mark(function e(){var t;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._package.loadRelationships(this.path);case 2:return this.rels=e.sent,e.next=5,this._package.load(this.path);case 5:t=e.sent,t=this._package.parseXmlDocument(t),this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild);case 8:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"save",value:function(){this._package.update(this.path,(0,a.serializeXmlString)(this._xmlDocument))}},{key:"parseXml",value:function(e){}}]),i)},461:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,t.RelationshipTypes={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",FontTable:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Numbering:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",StylesWithEffects:"http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Settings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",WebSettings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Footnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",Endnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",Footer:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",Header:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",ExtendedProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",CustomProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"},t.parseRelationships=function(e,t){return t.elements(e).map(function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}})}},168:function(e,o,t){Object.defineProperty(o,"__esModule",{value:!0}),o.DocumentParser=o.autos=void 0;var m=t(120),s=t(109),n=t(59),y=t(472),l=t(488),u=t(172),g=t(149),c=t(320),a=(o.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"},[]),h={oMath:m.DomType.MmlMath,oMathPara:m.DomType.MmlMathParagraph,f:m.DomType.MmlFraction,func:m.DomType.MmlFunction,fName:m.DomType.MmlFunctionName,num:m.DomType.MmlNumerator,den:m.DomType.MmlDenominator,rad:m.DomType.MmlRadical,deg:m.DomType.MmlDegree,e:m.DomType.MmlBase,sSup:m.DomType.MmlSuperscript,sSub:m.DomType.MmlSubscript,sPre:m.DomType.MmlPreSubSuper,sup:m.DomType.MmlSuperArgument,sub:m.DomType.MmlSubArgument,d:m.DomType.MmlDelimiter,nary:m.DomType.MmlNary,eqArr:m.DomType.MmlEquationArray,lim:m.DomType.MmlLimit,limLow:m.DomType.MmlLimitLower,m:m.DomType.MmlMatrix,mr:m.DomType.MmlMatrixRow,box:m.DomType.MmlBox,bar:m.DomType.MmlBar,groupChr:m.DomType.MmlGroupChar};function r(e){T(this,r),this.options=Object.assign({ignoreWidth:!1,debug:!1},e)}o.DocumentParser=(E(r,[{key:"parseNotes",value:function(e,t,r){var n,a=[],i=x(y.default.elements(e,t));try{for(i.s();!(n=i.n()).done;){var o=n.value,s=new r;s.id=y.default.attr(o,"id"),s.noteType=y.default.attr(o,"type"),s.children=this.parseBodyElements(o),a.push(s)}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"parseDocumentFile",value:function(e){var t=y.default.element(e,"body"),e=y.default.element(e,"background"),r=y.default.element(t,"sectPr");return{type:m.DomType.Document,children:this.parseBodyElements(t),props:r?(0,n.parseSectionProperties)(r,y.default):{},cssStyle:e?this.parseBackground(e):{}}}},{key:"parseBackground",value:function(e){var t={},e=b.colorAttr(e,"color");return e&&(t["background-color"]=e),t}},{key:"parseBodyElements",value:function(e){var t,r=this,n=[],a=x(y.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i=t.value;switch(i.localName){case"p":n.push(this.parseParagraph(i));break;case"tbl":n.push(this.parseTable(i));break;case"sdt":n.push.apply(n,S(this.parseSdt(i,function(e){return r.parseBodyElements(e)})))}}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"parseStylesFile",value:function(e){var t=this,r=[];return b.foreach(e,function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}}),r}},{key:"parseDefaultStyles",value:function(e){var r=this,n={id:null,name:null,target:null,basedOn:null,styles:[]};return b.foreach(e,function(e){switch(e.localName){case"rPrDefault":var t=y.default.element(e,"rPr");t&&n.styles.push({target:"span",values:r.parseDefaultProperties(t,{})});break;case"pPrDefault":t=y.default.element(e,"pPr");t&&n.styles.push({target:"p",values:r.parseDefaultProperties(t,{})})}}),n}},{key:"parseStyle",value:function(e){var a=this,i={id:y.default.attr(e,"styleId"),isDefault:y.default.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(y.default.attr(e,"type")){case"paragraph":i.target="p";break;case"table":i.target="table";break;case"character":i.target="span"}return b.foreach(e,function(e){switch(e.localName){case"basedOn":i.basedOn=y.default.attr(e,"val");break;case"name":i.name=y.default.attr(e,"val");break;case"link":i.linked=y.default.attr(e,"val");break;case"next":i.next=y.default.attr(e,"val");break;case"aliases":i.aliases=y.default.attr(e,"val").split(",");break;case"pPr":i.styles.push({target:"p",values:a.parseDefaultProperties(e,{})}),i.paragraphProps=(0,s.parseParagraphProperties)(e,y.default);break;case"rPr":i.styles.push({target:"span",values:a.parseDefaultProperties(e,{})}),i.runProps=(0,l.parseRunProperties)(e,y.default);break;case"tblPr":case"tcPr":i.styles.push({target:"td",values:a.parseDefaultProperties(e,{})});break;case"tblStylePr":var t,r=x(a.parseTableStyle(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;i.styles.push(n)}}catch(e){r.e(e)}finally{r.f()}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:a.options.debug&&console.warn("DOCX: Unknown style element: ".concat(e.localName))}}),i}},{key:"parseTableStyle",value:function(e){var t=this,r=[],n=y.default.attr(e,"type"),a="",i="";switch(n){case"firstRow":i=".first-row",a="tr.first-row td";break;case"lastRow":i=".last-row",a="tr.last-row td";break;case"firstCol":i=".first-col",a="td.first-col";break;case"lastCol":i=".last-col",a="td.last-col";break;case"band1Vert":i=":not(.no-vband)",a="td.odd-col";break;case"band2Vert":i=":not(.no-vband)",a="td.even-col";break;case"band1Horz":i=":not(.no-hband)",a="tr.odd-row";break;case"band2Horz":i=":not(.no-hband)",a="tr.even-row";break;default:return[]}return b.foreach(e,function(e){switch(e.localName){case"pPr":r.push({target:"".concat(a," p"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"rPr":r.push({target:"".concat(a," span"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":r.push({target:a,mod:i,values:t.parseDefaultProperties(e,{})})}}),r}},{key:"parseNumberingFile",value:function(e){var n=this,a=[],i={},o=[];return b.foreach(e,function(e){switch(e.localName){case"abstractNum":n.parseAbstractNumbering(e,o).forEach(function(e){return a.push(e)});break;case"numPicBullet":o.push(n.parseNumberingPicBullet(e));break;case"num":var t=y.default.attr(e,"numId"),r=y.default.elementAttr(e,"abstractNumId","val");i[r]=t}}),a.forEach(function(e){return e.id=i[e.id]}),a}},{key:"parseNumberingPicBullet",value:function(e){var t=y.default.element(e,"pict"),t=t&&y.default.element(t,"shape"),r=t&&y.default.element(t,"imagedata");return r?{id:y.default.intAttr(e,"numPicBulletId"),src:y.default.attr(r,"id"),style:y.default.attr(t,"style")}:null}},{key:"parseAbstractNumbering",value:function(e,t){var r=this,n=[],a=y.default.attr(e,"abstractNumId");return b.foreach(e,function(e){"lvl"===e.localName&&n.push(r.parseNumberingLevel(a,e,t))}),n}},{key:"parseNumberingLevel",value:function(e,t,r){var n=this,a={id:e,level:y.default.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return b.foreach(t,function(e){switch(e.localName){case"start":a.start=y.default.intAttr(e,"val");break;case"pPr":n.parseDefaultProperties(e,a.pStyle);break;case"rPr":n.parseDefaultProperties(e,a.rStyle);break;case"lvlPicBulletId":var t=y.default.intAttr(e,"val");a.bullet=r.find(function(e){return e.id==t});break;case"lvlText":a.levelText=y.default.attr(e,"val");break;case"pStyle":a.pStyleName=y.default.attr(e,"val");break;case"numFmt":a.format=y.default.attr(e,"val");break;case"suff":a.suff=y.default.attr(e,"val")}}),a}},{key:"parseSdt",value:function(e,t){e=y.default.element(e,"sdtContent");return e?t(e):[]}},{key:"parseInserted",value:function(e,t){return{type:m.DomType.Inserted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseDeleted",value:function(e,t){return{type:m.DomType.Deleted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseParagraph",value:function(e){var t,r,n=this,a={type:m.DomType.Paragraph,children:[]},i=x(y.default.elements(e));try{for(i.s();!(r=i.n()).done;){var o=r.value;switch(o.localName){case"pPr":this.parseParagraphProperties(o,a);break;case"r":a.children.push(this.parseRun(o,a));break;case"hyperlink":a.children.push(this.parseHyperlink(o,a));break;case"bookmarkStart":a.children.push((0,u.parseBookmarkStart)(o,y.default));break;case"bookmarkEnd":a.children.push((0,u.parseBookmarkEnd)(o,y.default));break;case"oMath":case"oMathPara":a.children.push(this.parseMathElement(o));break;case"sdt":(t=a.children).push.apply(t,S(this.parseSdt(o,function(e){return n.parseParagraph(e).children})));break;case"ins":a.children.push(this.parseInserted(o,function(e){return n.parseParagraph(e)}));break;case"del":a.children.push(this.parseDeleted(o,function(e){return n.parseParagraph(e)}))}}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"parseParagraphProperties",value:function(e,t){var r=this;this.parseDefaultProperties(e,t.cssStyle={},null,function(e){if(!(0,s.parseParagraphProperty)(e,t,y.default))switch(e.localName){case"pStyle":t.styleName=y.default.attr(e,"val");break;case"cnfStyle":t.className=f.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}},{key:"parseFrame",value:function(e,t){"drop"==y.default.attr(e,"dropCap")&&(t.cssStyle.float="left")}},{key:"parseHyperlink",value:function(e,t){var r=this,n={type:m.DomType.Hyperlink,parent:t,children:[]},t=y.default.attr(e,"anchor"),a=y.default.attr(e,"id");return t&&(n.href="#"+t),a&&(n.id=a),b.foreach(e,function(e){"r"===e.localName&&n.children.push(r.parseRun(e,n))}),n}},{key:"parseRun",value:function(e,t){var r=this,n={type:m.DomType.Run,parent:t,children:[]};return b.foreach(e,function(e){switch((e=r.checkAlternateContent(e)).localName){case"t":n.children.push({type:m.DomType.Text,text:e.textContent});break;case"delText":n.children.push({type:m.DomType.DeletedText,text:e.textContent});break;case"fldSimple":n.children.push({type:m.DomType.SimpleField,instruction:y.default.attr(e,"instr"),lock:y.default.boolAttr(e,"lock",!1),dirty:y.default.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:m.DomType.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:m.DomType.ComplexField,charType:y.default.attr(e,"fldCharType"),lock:y.default.boolAttr(e,"lock",!1),dirty:y.default.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:m.DomType.NoBreakHyphen});break;case"br":n.children.push({type:m.DomType.Break,break:y.default.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:m.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:m.DomType.Symbol,font:y.default.attr(e,"font"),char:y.default.attr(e,"char")});break;case"tab":n.children.push({type:m.DomType.Tab});break;case"footnoteReference":n.children.push({type:m.DomType.FootnoteReference,id:y.default.attr(e,"id")});break;case"endnoteReference":n.children.push({type:m.DomType.EndnoteReference,id:y.default.attr(e,"id")});break;case"drawing":var t=r.parseDrawing(e);t&&(n.children=[t]);break;case"pict":n.children.push(r.parseVmlPicture(e));break;case"rPr":r.parseRunProperties(e,n)}}),n}},{key:"parseMathElement",value:function(e){var t,r="".concat(e.localName,"Pr"),n={type:h[e.localName],children:[]},a=x(y.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i,o=t.value;h[o.localName]?n.children.push(this.parseMathElement(o)):"r"==o.localName?((i=this.parseRun(o)).type=m.DomType.MmlRun,n.children.push(i)):o.localName==r&&(n.props=this.parseMathProperies(o))}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"parseMathProperies",value:function(e){var t,r={},n=x(y.default.elements(e));try{for(n.s();!(t=n.n()).done;){var a=t.value;switch(a.localName){case"chr":r.char=y.default.attr(a,"val");break;case"vertJc":r.verticalJustification=y.default.attr(a,"val");break;case"pos":r.position=y.default.attr(a,"val");break;case"degHide":r.hideDegree=y.default.boolAttr(a,"val");break;case"begChr":r.beginChar=y.default.attr(a,"val");break;case"endChr":r.endChar=y.default.attr(a,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"parseRunProperties",value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,function(e){switch(e.localName){case"rStyle":t.styleName=y.default.attr(e,"val");break;case"vertAlign":t.verticalAlign=f.valueOfVertAlign(e,!0);break;default:return!1}return!0})}},{key:"parseVmlPicture",value:function(e){var t,r={type:m.DomType.VmlPicture,children:[]},n=x(y.default.elements(e));try{for(n.s();!(t=n.n()).done;){var a=t.value,i=(0,c.parseVmlElement)(a,this);i&&r.children.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"checkAlternateContent",value:function(e){if("AlternateContent"!=e.localName)return e;var t=y.default.element(e,"Choice");if(t){var r=y.default.attr(t,"Requires"),r=e.lookupNamespaceURI(r);if(a.includes(r))return t.firstElementChild}return null==(r=y.default.element(e,"Fallback"))?void 0:r.firstElementChild}},{key:"parseDrawing",value:function(e){var t,r=x(y.default.elements(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;switch(n.localName){case"inline":case"anchor":return this.parseDrawingWrapper(n)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"parseDrawingWrapper",value:function(e){var t,r,n={type:m.DomType.Drawing,children:[],cssStyle:{}},a="anchor"==e.localName,i=null,o=y.default.boolAttr(e,"simplePos"),s={relative:"page",align:"left",offset:"0"},l={relative:"page",align:"top",offset:"0"},u=x(y.default.elements(e));try{for(u.s();!(r=u.n()).done;){var c,h,f,d=r.value;switch(d.localName){case"simplePos":o&&(s.offset=y.default.lengthAttr(d,"x",g.LengthUsage.Emu),l.offset=y.default.lengthAttr(d,"y",g.LengthUsage.Emu));break;case"extent":n.cssStyle.width=y.default.lengthAttr(d,"cx",g.LengthUsage.Emu),n.cssStyle.height=y.default.lengthAttr(d,"cy",g.LengthUsage.Emu);break;case"positionH":case"positionV":o||(c="positionH"==d.localName?s:l,h=y.default.element(d,"align"),f=y.default.element(d,"posOffset"),c.relative=null!=(t=y.default.attr(d,"relativeFrom"))?t:c.relative,h&&(c.align=h.textContent),f&&(c.offset=b.sizeValue(f,g.LengthUsage.Emu)));break;case"wrapTopAndBottom":i="wrapTopAndBottom";break;case"wrapNone":i="wrapNone";break;case"graphic":var p=this.parseGraphic(d);p&&n.children.push(p)}}}catch(e){u.e(e)}finally{u.f()}return"wrapTopAndBottom"==i?(n.cssStyle.display="block",s.align&&(n.cssStyle["text-align"]=s.align,n.cssStyle.width="100%")):"wrapNone"==i?(n.cssStyle.display="block",n.cssStyle.position="relative",n.cssStyle.width="0px",n.cssStyle.height="0px",s.offset&&(n.cssStyle.left=s.offset),l.offset&&(n.cssStyle.top=l.offset)):!a||"left"!=s.align&&"right"!=s.align||(n.cssStyle.float=s.align),n}},{key:"parseGraphic",value:function(e){var t,r=y.default.element(e,"graphicData"),n=x(y.default.elements(r));try{for(n.s();!(t=n.n()).done;){var a=t.value;if("pic"===a.localName)return this.parsePicture(a)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"parsePicture",value:function(e){var t={type:m.DomType.Image,src:"",cssStyle:{}},r=y.default.element(e,"blipFill"),r=y.default.element(r,"blip");t.src=y.default.attr(r,"embed");var n,r=y.default.element(e,"spPr"),r=y.default.element(r,"xfrm"),a=x((t.cssStyle.position="relative",y.default.elements(r)));try{for(a.s();!(n=a.n()).done;){var i=n.value;switch(i.localName){case"ext":t.cssStyle.width=y.default.lengthAttr(i,"cx",g.LengthUsage.Emu),t.cssStyle.height=y.default.lengthAttr(i,"cy",g.LengthUsage.Emu);break;case"off":t.cssStyle.left=y.default.lengthAttr(i,"x",g.LengthUsage.Emu),t.cssStyle.top=y.default.lengthAttr(i,"y",g.LengthUsage.Emu)}}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"parseTable",value:function(e){var t=this,r={type:m.DomType.Table,children:[]};return b.foreach(e,function(e){switch(e.localName){case"tr":r.children.push(t.parseTableRow(e));break;case"tblGrid":r.columns=t.parseTableColumns(e);break;case"tblPr":t.parseTableProperties(e,r)}}),r}},{key:"parseTableColumns",value:function(e){var t=[];return b.foreach(e,function(e){"gridCol"===e.localName&&t.push({width:y.default.lengthAttr(e,"w")})}),t}},{key:"parseTableProperties",value:function(e,t){var r=this;switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,function(e){switch(e.localName){case"tblStyle":t.styleName=y.default.attr(e,"val");break;case"tblLook":t.className=f.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=y.default.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=y.default.intAttr(e,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}},{key:"parseTablePosition",value:function(e,t){var r=y.default.lengthAttr(e,"topFromText"),n=y.default.lengthAttr(e,"bottomFromText"),a=y.default.lengthAttr(e,"rightFromText"),e=y.default.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=f.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=f.addSize(t.cssStyle["margin-left"],e),t.cssStyle["margin-right"]=f.addSize(t.cssStyle["margin-right"],a),t.cssStyle["margin-top"]=f.addSize(t.cssStyle["margin-top"],r)}},{key:"parseTableRow",value:function(e){var t=this,r={type:m.DomType.Row,children:[]};return b.foreach(e,function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}}),r}},{key:"parseTableRowProperties",value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,function(e){switch(e.localName){case"cnfStyle":t.className=f.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=y.default.boolAttr(e,"val");break;default:return!1}return!0})}},{key:"parseTableCell",value:function(e){var t=this,r={type:m.DomType.Cell,children:[]};return b.foreach(e,function(e){switch(e.localName){case"tbl":r.children.push(t.parseTable(e));break;case"p":r.children.push(t.parseParagraph(e));break;case"tcPr":t.parseTableCellProperties(e,r)}}),r}},{key:"parseTableCellProperties",value:function(e,r){r.cssStyle=this.parseDefaultProperties(e,{},null,function(e){var t;switch(e.localName){case"gridSpan":r.span=y.default.intAttr(e,"val",null);break;case"vMerge":r.verticalMerge=null!=(t=y.default.attr(e,"val"))?t:"continue";break;case"cnfStyle":r.className=f.classNameOfCnfStyle(e);break;default:return!1}return!0})}},{key:"parseDefaultProperties",value:function(t){var r=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,n=n||{};return b.foreach(t,function(e){if(null==i||!i(e))switch(e.localName){case"jc":n["text-align"]=f.valueOfJc(e);break;case"textAlignment":n["vertical-align"]=f.valueOfTextAlignment(e);break;case"color":n.color=b.colorAttr(e,"val",null,o.autos.color);break;case"sz":n["font-size"]=n["min-height"]=y.default.lengthAttr(e,"val",g.LengthUsage.FontSize);break;case"shd":n["background-color"]=b.colorAttr(e,"fill",null,o.autos.shd);break;case"highlight":n["background-color"]=b.colorAttr(e,"val",null,o.autos.highlight);break;case"vertAlign":break;case"position":n.verticalAlign=y.default.lengthAttr(e,"val",g.LengthUsage.FontSize);break;case"tcW":if(r.options.ignoreWidth)break;case"tblW":n.width=f.valueOfSize(e,"w");break;case"trHeight":r.parseTrHeight(e,n);break;case"strike":n["text-decoration"]=y.default.boolAttr(e,"val",!0)?"line-through":"none";break;case"b":n["font-weight"]=y.default.boolAttr(e,"val",!0)?"bold":"normal";break;case"i":n["font-style"]=y.default.boolAttr(e,"val",!0)?"italic":"normal";break;case"caps":n["text-transform"]=y.default.boolAttr(e,"val",!0)?"uppercase":"none";break;case"smallCaps":n["text-transform"]=y.default.boolAttr(e,"val",!0)?"lowercase":"none";break;case"u":r.parseUnderline(e,n);break;case"ind":case"tblInd":r.parseIndentation(e,n);break;case"rFonts":r.parseFont(e,n);break;case"tblBorders":r.parseBorderProperties(e,a||n);break;case"tblCellSpacing":n["border-spacing"]=f.valueOfMargin(e),n["border-collapse"]="separate";break;case"pBdr":r.parseBorderProperties(e,n);break;case"bdr":n.border=f.valueOfBorder(e);break;case"tcBorders":r.parseBorderProperties(e,n);break;case"vanish":y.default.boolAttr(e,"val",!0)&&(n.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":r.parseMarginProperties(e,a||n);break;case"tblLayout":n["table-layout"]=f.valueOfTblLayout(e);break;case"vAlign":n["vertical-align"]=f.valueOfTextAlignment(e);break;case"spacing":"pPr"==t.localName&&r.parseSpacing(e,n);break;case"wordWrap":y.default.boolAttr(e,"val")&&(n["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":n.hyphens=y.default.boolAttr(e,"val",!0)?"none":"auto";break;case"lang":n.$lang=y.default.attr(e,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:r.options.debug&&console.warn("DOCX: Unknown document element: ".concat(t.localName,".").concat(e.localName))}}),n}},{key:"parseUnderline",value:function(e,t){var r=y.default.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}r=b.colorAttr(e,"color");r&&(t["text-decoration-color"]=r)}}},{key:"parseFont",value:function(e,t){e=[y.default.attr(e,"ascii"),f.themeValue(e,"asciiTheme")].filter(function(e){return e}).join(", ");0<e.length&&(t["font-family"]=e)}},{key:"parseIndentation",value:function(e,t){var r=y.default.lengthAttr(e,"firstLine"),n=y.default.lengthAttr(e,"hanging"),a=y.default.lengthAttr(e,"left"),i=y.default.lengthAttr(e,"start"),o=y.default.lengthAttr(e,"right"),e=y.default.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(a||i)&&(t["margin-left"]=a||i),(o||e)&&(t["margin-right"]=o||e)}},{key:"parseSpacing",value:function(e,t){var r=y.default.lengthAttr(e,"before"),n=y.default.lengthAttr(e,"after"),a=y.default.intAttr(e,"line",null),e=y.default.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==a)switch(e){case"auto":t["line-height"]="".concat((a/240).toFixed(2));break;case"atLeast":t["line-height"]="calc(100% + ".concat(a/20,"pt)");break;default:t["line-height"]=t["min-height"]=a/20+"pt"}}},{key:"parseMarginProperties",value:function(e,t){b.foreach(e,function(e){switch(e.localName){case"left":t["padding-left"]=f.valueOfMargin(e);break;case"right":t["padding-right"]=f.valueOfMargin(e);break;case"top":t["padding-top"]=f.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=f.valueOfMargin(e)}})}},{key:"parseTrHeight",value:function(e,t){y.default.attr(e,"hRule"),t.height=y.default.lengthAttr(e,"val")}},{key:"parseBorderProperties",value:function(e,t){b.foreach(e,function(e){switch(e.localName){case"start":case"left":t["border-left"]=f.valueOfBorder(e);break;case"end":case"right":t["border-right"]=f.valueOfBorder(e);break;case"top":t["border-top"]=f.valueOfBorder(e);break;case"bottom":t["border-bottom"]=f.valueOfBorder(e)}})}}]),r);var i=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],b=(E(p,null,[{key:"foreach",value:function(e,t){for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}},{key:"colorAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"black",t=y.default.attr(e,t);return t?"auto"==t?n:i.includes(t)?t:"#".concat(t):(n=y.default.attr(e,"themeColor"))?"var(--docx-".concat(n,"-color)"):r}},{key:"sizeValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:g.LengthUsage.Dxa;return(0,g.convertLength)(e.textContent,t)}}]),p),f=(E(d,null,[{key:"themeValue",value:function(e,t){e=y.default.attr(e,t);return e?"var(--docx-".concat(e,"-font)"):null}},{key:"valueOfSize",value:function(e,t){var r=g.LengthUsage.Dxa;switch(y.default.attr(e,"type")){case"dxa":break;case"pct":r=g.LengthUsage.Percent;break;case"auto":return"auto"}return y.default.lengthAttr(e,t,r)}},{key:"valueOfMargin",value:function(e){return y.default.lengthAttr(e,"w")}},{key:"valueOfBorder",value:function(e){var t;return"nil"==y.default.attr(e,"val")?"none":(t=b.colorAttr(e,"color"),"".concat(y.default.lengthAttr(e,"sz",g.LengthUsage.Border)," solid ").concat("auto"==t?o.autos.borderColor:t))}},{key:"valueOfTblLayout",value:function(e){return"fixed"==y.default.attr(e,"val")?"fixed":"auto"}},{key:"classNameOfCnfStyle",value:function(e){var r=y.default.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter(function(e,t){return"1"==r[t]}).join(" ")}},{key:"valueOfJc",value:function(e){e=y.default.attr(e,"val");switch(e){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return e}},{key:"valueOfVertAlign",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=y.default.attr(e,"val");switch(e){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:e}},{key:"valueOfTextAlignment",value:function(e){e=y.default.attr(e,"val");switch(e){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return e}},{key:"addSize",value:function(e,t){return null==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}},{key:"classNameOftblLook",value:function(e){var t=y.default.hexAttr(e,"val",0),r="";return(y.default.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(y.default.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(y.default.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(y.default.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(y.default.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(y.default.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}]),d);function d(){T(this,d)}function p(){T(this,p)}},162:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;var n,a=r(530),i=r(614),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.props=(0,i.parseCoreProps)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.CorePropsPart=r},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"title":n.title=i.textContent;break;case"description":n.description=i.textContent;break;case"subject":n.subject=i.textContent;break;case"creator":n.creator=i.textContent;break;case"keywords":n.keywords=i.textContent;break;case"language":n.language=i.textContent;break;case"lastModifiedBy":n.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(n.revision=parseInt(i.textContent))}}}catch(e){a.e(e)}finally{a.f()}return n}},177:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropsPart=void 0;var n,a=r(530),i=r(821),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.props=(0,i.parseCustomProps)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.CustomPropsPart=r},821:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProps=void 0,t.parseCustomProps=function(e,r){return r.elements(e,"property").map(function(e){var t=e.firstChild;return{formatId:r.attr(e,"fmtid"),name:r.attr(e,"name"),type:t.nodeName,value:t.textContent}})}},665:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;var n,a=r(530),i=r(668),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.props=(0,i.parseExtendedProps)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.ExtendedPropsPart=r},668:function(e,t){function o(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"Template":n.template=i.textContent;break;case"Pages":n.pages=o(i.textContent);break;case"Words":n.words=o(i.textContent);break;case"Characters":n.characters=o(i.textContent);break;case"Application":n.application=i.textContent;break;case"Lines":n.lines=o(i.textContent);break;case"Paragraphs":n.paragraphs=o(i.textContent);break;case"Company":n.company=i.textContent;break;case"AppVersion":n.appVersion=i.textContent}}}catch(e){a.e(e)}finally{a.f()}return n}},172:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBookmarkEnd=t.parseBookmarkStart=void 0;var n=r(120);t.parseBookmarkStart=function(e,t){return{type:n.DomType.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}},t.parseBookmarkEnd=function(e,t){return{type:n.DomType.BookmarkEnd,id:t.attr(e,"id")}}},191:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;var n=r(149);function o(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",n.LengthUsage.Border),offset:t.lengthAttr(e,"space",n.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=o,t.parseBorders=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"left":n.left=o(i,t);break;case"top":n.top=o(i,t);break;case"right":n.right=o(i,t);break;case"bottom":n.bottom=o(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}},149:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parseCommonProperty=n.convertPercentage=n.convertBoolean=n.convertLength=n.LengthUsage=n.ns=void 0,n.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},n.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}},n.convertLength=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n.LengthUsage.Dxa;return null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*t.mul).toFixed(2)).concat(t.unit)},n.convertBoolean=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}},n.convertPercentage=function(e){return e?parseInt(e)/100:null},n.parseCommonProperty=function(e,t,r){if(e.namespaceURI!=n.ns.wordml)return!1;switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",n.LengthUsage.FontSize);break;default:return!1}return!0}},448:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;f(a,r(530).Part),n=d(a),E(a,[{key:"parseXml",value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}]);var n,r=a;function a(e,t,r){return T(this,a),(e=n.call(this,e,t))._documentParser=r,e}t.DocumentPart=r},120:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlElementBase=t.DomType=void 0,t.DomType={Document:"document",Paragraph:"paragraph",Run:"run",Break:"break",NoBreakHyphen:"noBreakHyphen",Table:"table",Row:"row",Cell:"cell",Hyperlink:"hyperlink",Drawing:"drawing",Image:"image",Text:"text",Tab:"tab",Symbol:"symbol",BookmarkStart:"bookmarkStart",BookmarkEnd:"bookmarkEnd",Footer:"footer",Header:"header",FootnoteReference:"footnoteReference",EndnoteReference:"endnoteReference",Footnote:"footnote",Endnote:"endnote",SimpleField:"simpleField",ComplexField:"complexField",Instruction:"instruction",VmlPicture:"vmlPicture",MmlMath:"mmlMath",MmlMathParagraph:"mmlMathParagraph",MmlFraction:"mmlFraction",MmlFunction:"mmlFunction",MmlFunctionName:"mmlFunctionName",MmlNumerator:"mmlNumerator",MmlDenominator:"mmlDenominator",MmlRadical:"mmlRadical",MmlBase:"mmlBase",MmlDegree:"mmlDegree",MmlSuperscript:"mmlSuperscript",MmlSubscript:"mmlSubscript",MmlPreSubSuper:"mmlPreSubSuper",MmlSubArgument:"mmlSubArgument",MmlSuperArgument:"mmlSuperArgument",MmlNary:"mmlNary",MmlDelimiter:"mmlDelimiter",MmlRun:"mmlRun",MmlEquationArray:"mmlEquationArray",MmlLimit:"mmlLimit",MmlLimitLower:"mmlLimitLower",MmlMatrix:"mmlMatrix",MmlMatrixRow:"mmlMatrixRow",MmlBox:"mmlBox",MmlBar:"mmlBar",MmlGroupChar:"mmlGroupChar",VmlElement:"vmlElement",Inserted:"inserted",Deleted:"deleted",DeletedText:"deletedText"},t.OpenXmlElementBase=E(function e(){T(this,e),this.children=[],this.cssStyle={}})},931:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0,t.parseLineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}},109:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=void 0;var n=r(149),a=r(59),i=r(931),o=r(488);function s(e,t,r){if(e.namespaceURI!=n.ns.wordml)return!1;if(!(0,n.parseCommonProperty)(e,t,r))switch(e.localName){case"tabs":t.tabs=l(e,r);break;case"sectPr":t.sectionProps=(0,a.parseSectionProperties)(e,r);break;case"numPr":t.numbering=u(e,r);break;case"spacing":return t.lineSpacing=(0,i.parseLineSpacing)(e,r),!1;case"textAlignment":return t.textAlignment=r.attr(e,"val"),!1;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleName=r.attr(e,"val");break;case"rPr":t.runProps=(0,o.parseRunProperties)(e,r);break;default:return!1}return!0}function l(e,t){return t.elements(e,"tab").map(function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}})}function u(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"numId":n.id=t.attr(i,"val");break;case"ilvl":n.level=t.intAttr(i,"val")}}}catch(e){a.e(e)}finally{a.f()}return n}t.parseParagraphProperties=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;)s(r.value,n,t)}catch(e){a.e(e)}finally{a.f()}return n},t.parseParagraphProperty=s,t.parseTabs=l,t.parseNumbering=u},488:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseRunProperty=t.parseRunProperties=void 0;var n=r(149);function i(e,t,r){return!!(0,n.parseCommonProperty)(e,t,r)}t.parseRunProperties=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;)i(r.value,n,t)}catch(e){a.e(e)}finally{a.f()}return n},t.parseRunProperty=i},59:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;var c=r(472),h=r(191);function f(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}t.SectionType={Continuous:"continuous",NextPage:"nextPage",NextColumn:"nextColumn",EvenPage:"evenPage",OddPage:"oddPage"},t.parseSectionProperties=function(e){var t,r,n,a,i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:c.default,s={},l=x(o.elements(e));try{for(l.s();!(n=l.n()).done;){var u=n.value;switch(u.localName){case"pgSz":s.pageSize={width:o.lengthAttr(u,"w"),height:o.lengthAttr(u,"h"),orientation:o.attr(u,"orient")};break;case"type":s.type=o.attr(u,"val");break;case"pgMar":s.pageMargins={left:o.lengthAttr(u,"left"),right:o.lengthAttr(u,"right"),top:o.lengthAttr(u,"top"),bottom:o.lengthAttr(u,"bottom"),header:o.lengthAttr(u,"header"),footer:o.lengthAttr(u,"footer"),gutter:o.lengthAttr(u,"gutter")};break;case"cols":s.columns=function(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}})}}(u,o);break;case"headerReference":(null!=(t=s.headerRefs)?t:s.headerRefs=[]).push(f(u,o));break;case"footerReference":(null!=(r=s.footerRefs)?r:s.footerRefs=[]).push(f(u,o));break;case"titlePg":s.titlePage=o.boolAttr(u,"val",!0);break;case"pgBorders":s.pageBorders=(0,h.parseBorders)(u,o);break;case"pgNumType":s.pageNumber=(a=u,{chapSep:(i=o).attr(a,"chapSep"),chapStyle:i.attr(a,"chapStyle"),format:i.attr(a,"fmt"),start:i.intAttr(a,"start")})}}}catch(e){l.e(e)}finally{l.f()}return s}},667:function(e,l,t){Object.defineProperty(l,"__esModule",{value:!0}),l.renderAsync=l.praseAsync=l.defaultOptions=void 0;var r,u=t(213),c=t(168),h=t(932);l.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},l.praseAsync=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=Object.assign(Object.assign({},l.defaultOptions),t);return u.WordDocument.load(e,new c.DocumentParser(t),t)},l.renderAsync=(r=P(A().mark(function e(t,r){var n,a,i,o,s=arguments;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=2<s.length&&void 0!==s[2]?s[2]:null,a=3<s.length&&void 0!==s[3]?s[3]:null,a=Object.assign(Object.assign({},l.defaultOptions),a),i=new h.HtmlRenderer(window.document),e.next=6,u.WordDocument.load(t,new c.DocumentParser(a),a);case 6:return o=e.sent,e.abrupt("return",(i.render(o,r,n,a),o));case 8:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},380:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;var n,a=r(530),i=r(512),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.fonts=(0,i.parseFonts)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.FontTablePart=r},512:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseEmbedFontRef=t.parseFont=t.parseFonts=void 0;var r={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function n(e,t){var r,n={name:t.attr(e,"name"),embedFontRefs:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"family":n.family=t.attr(i,"val");break;case"altName":n.altName=t.attr(i,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":n.embedFontRefs.push(o(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n}function o(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:r[e.localName]}}t.parseFonts=function(e,t){return t.elements(e).map(function(e){return n(e,t)})},t.parseFont=n,t.parseEmbedFontRef=o},984:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=t.WmlHeader=void 0;var n,a=r(120),r=(f(i,a.OpenXmlElementBase),n=d(i),E(i));function i(){var e;return T(this,i),(e=n.apply(this,arguments)).type=a.DomType.Header,e}t.WmlHeader=r;f(s,a.OpenXmlElementBase),o=d(s);var o,r=E(s);function s(){var e;return T(this,s),(e=o.apply(this,arguments)).type=a.DomType.Footer,e}t.WmlFooter=r},985:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=t.HeaderPart=t.BaseHeaderFooterPart=void 0;var n,a,i,o=r(530),s=r(984),r=(f(l,o.Part),n=d(l),E(l,[{key:"parseXml",value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}]),l);function l(e,t,r){return T(this,l),(e=n.call(this,e,t))._documentParser=r,e}function u(){return T(this,u),a.apply(this,arguments)}function c(){return T(this,c),i.apply(this,arguments)}t.BaseHeaderFooterPart=r,t.HeaderPart=(f(c,r),i=d(c),E(c,[{key:"createRootElement",value:function(){return new s.WmlHeader}}]),c),t.FooterPart=(f(u,r),a=d(u),E(u,[{key:"createRootElement",value:function(){return new s.WmlFooter}}]),u)},932:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=void 0;var _=r(120),p=r(593),i=r(630),o=r(438),s="http://www.w3.org/1998/Math/MathML";function n(e,t,r){return u(void 0,e,t,r)}function l(e,t,r){return u("http://www.w3.org/2000/svg",e,t,r)}function u(e,t,r,n){e=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(e,r),n&&h(e,n),e}function c(e){e.innerHTML=""}function h(t,e){e.forEach(function(e){return t.appendChild((0,p.isString)(e)?document.createTextNode(e):e)})}function m(e){return n("style",{innerHTML:e})}function f(e,t){e.appendChild(document.createComment(t))}function a(e){T(this,a),this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=n}t.HtmlRenderer=(E(a,[{key:"render",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length?arguments[3]:void 0,a=(this.document=e,this.options=n,this.className=n.className,this.rootSelector=n.inWrapper?".".concat(this.className,"-wrapper"):":root",this.styleMap=null,c(r=r||t),c(t),f(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&n.useMathMLPolyfill&&(f(r,"docxjs mathml polyfill styles"),r.appendChild(m(o.default))),e.themePart&&(f(r,"docxjs document theme values"),this.renderTheme(e.themePart,r)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),f(r,"docxjs document styles"),r.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),f(r,"docxjs document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),e.footnotesPart&&(this.footnoteMap=(0,p.keyBy)(e.footnotesPart.notes,function(e){return e.id})),e.endnotesPart&&(this.endnoteMap=(0,p.keyBy)(e.endnotesPart.notes,function(e){return e.id})),e.settingsPart&&(this.defaultTabSize=null==(a=e.settingsPart.settings)?void 0:a.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r),this.renderSections(e.documentPart.body));this.options.inWrapper?t.appendChild(this.renderWrapper(a)):h(t,a),this.refreshTabStops()}},{key:"renderTheme",value:function(e,t){var r={},n=null==(n=e.theme)?void 0:n.fontScheme,e=(n&&(n.majorFont&&(r["--docx-majorHAnsi-font"]=n.majorFont.latinTypeface),n.minorFont)&&(r["--docx-minorHAnsi-font"]=n.minorFont.latinTypeface),null==(n=e.theme)?void 0:n.colorScheme);if(e)for(var a=0,i=Object.entries(e.colors);a<i.length;a++){var o=C(i[a],2),s=o[0],o=o[1];r["--docx-".concat(s,"-color")]="#".concat(o)}n=this.styleToString(".".concat(this.className),r);t.appendChild(m(n))}},{key:"renderFontTable",value:function(e,n){var a,i=this,t=x(e.fonts);try{var r=function(){var e,r=a.value,t=x(r.embedFontRefs);try{for(t.s();!(e=t.n()).done;)!function(){var t=e.value;i.document.loadFont(t.id,t.key).then(function(e){e={"font-family":r.name,src:"url(".concat(e,")")},"bold"!=t.type&&"boldItalic"!=t.type||(e["font-weight"]="bold"),"italic"!=t.type&&"boldItalic"!=t.type||(e["font-style"]="italic"),f(n,"docxjs ".concat(r.name," font")),e=i.styleToString("@font-face",e);n.appendChild(m(e)),i.refreshTabStops()})}()}catch(e){t.e(e)}finally{t.f()}};for(t.s();!(a=t.n()).done;)r()}catch(e){t.e(e)}finally{t.f()}}},{key:"processStyleName",value:function(e){return e?"".concat(this.className,"_").concat((0,p.escapeClassName)(e)):this.className}},{key:"processStyles",value:function(e){var t,r=this,n=(0,p.keyBy)(e.filter(function(e){return null!=e.id}),function(e){return e.id}),a=x(e.filter(function(e){return e.basedOn}));try{for(a.s();!(t=a.n()).done;){var i=t.value,o=n[i.basedOn];if(o){i.paragraphProps=(0,p.mergeDeep)(i.paragraphProps,o.paragraphProps),i.runProps=(0,p.mergeDeep)(i.runProps,o.runProps);var s,l=x(o.styles);try{for(l.s();!(s=l.n()).done;)!function(){var t=s.value,e=i.styles.find(function(e){return e.target==t.target});e?r.copyStyleProperties(t.values,e.values):i.styles.push(Object.assign(Object.assign({},t),{values:Object.assign({},t.values)}))}()}catch(e){l.e(e)}finally{l.f()}}else this.options.debug&&console.warn("Can't find base style ".concat(i.basedOn))}}catch(e){a.e(e)}finally{a.f()}var u,c=x(e);try{for(c.s();!(u=c.n()).done;){var h=u.value;h.cssName=this.processStyleName(h.id)}}catch(e){c.e(e)}finally{c.f()}return n}},{key:"prodessNumberings",value:function(e){var t,r,n=x(e.filter(function(e){return e.pStyleName}));try{for(n.s();!(r=n.n()).done;){var a=r.value,i=this.findStyle(a.pStyleName);null!=(t=null==i?void 0:i.paragraphProps)&&t.numbering&&(i.paragraphProps.numbering.level=a.level)}}catch(e){n.e(e)}finally{n.f()}}},{key:"processElement",value:function(e){if(e.children){var t,r=x(e.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.parent=e,n.type==_.DomType.Table?this.processTable(n):this.processElement(n)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"processTable",value:function(e){var t,r=x(e.children);try{for(r.s();!(t=r.n()).done;){var n,a=x(t.value.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.cssStyle=this.copyStyleProperties(e.cellStyle,i.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(i)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:"copyStyleProperties",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(e){var n,a=x((null==t&&(t={}),r=null==r?Object.getOwnPropertyNames(e):r));try{for(a.s();!(n=a.n()).done;){var i=n.value;e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}}catch(e){a.e(e)}finally{a.f()}}return t}},{key:"createSection",value:function(e,t){e=this.createElement("section",{className:e});return t&&(t.pageMargins&&(e.style.paddingLeft=t.pageMargins.left,e.style.paddingRight=t.pageMargins.right,e.style.paddingTop=t.pageMargins.top,e.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(e.style.width=t.pageSize.width),this.options.ignoreHeight||(e.style.minHeight=t.pageSize.height)),t.columns)&&t.columns.numberOfColumns&&(e.style.columnCount="".concat(t.columns.numberOfColumns),e.style.columnGap=t.columns.space,t.columns.separator)&&(e.style.columnRule="1px solid black"),e}},{key:"renderSections",value:function(e){var t=[];this.processElement(e);for(var r=this.splitBySection(e.children),n=null,a=0,i=r.length;a<i;a++){this.currentFootnoteIds=[];var o=r[a],s=o.sectProps||e.props,l=this.createSection(this.className,s),u=(this.renderStyleValues(e.cssStyle,l),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l),this.createElement("article"));this.renderElements(o.elements,u),l.appendChild(u),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&a==i-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,n!=s,l),t.push(l),n=s}return t}},{key:"renderHeaderFooter",value:function(e,t,r,n,a){e&&(r=(t=null!=(n=null!=(t=t.titlePage&&n?e.find(function(e){return"first"==e.type}):null)?t:r%2==1?e.find(function(e){return"even"==e.type}):null)?n:e.find(function(e){return"default"==e.type}))&&this.document.findPartByRelId(t.id,this.document.documentPart))&&(this.currentPart=r,this.usedHederFooterParts.includes(r.path)||(this.processElement(r.rootElement),this.usedHederFooterParts.push(r.path)),this.renderElements([r.rootElement],a),this.currentPart=null)}},{key:"isPageBreakElement",value:function(e){return e.type==_.DomType.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}},{key:"splitBySection",value:function(e){var t,r,n=this,a={sectProps:null,elements:[]},i=[a],o=x(e);try{for(o.s();!(r=o.n()).done;){var s,l,u,c,h,f,d,p,m,y,g,b=r.value;b.type==_.DomType.Paragraph&&null!=(t=null==(s=this.findStyle(b.styleName))?void 0:s.paragraphProps)&&t.pageBreakBefore&&(a.sectProps=u,i.push(a={sectProps:null,elements:[]})),a.elements.push(b),b.type==_.DomType.Paragraph&&(u=(l=b).sectionProps,h=c=-1,this.options.breakPages&&l.children&&(c=l.children.findIndex(function(e){return-1!=(h=null!=(e=null==(e=e.children)?void 0:e.findIndex(n.isPageBreakElement.bind(n)))?e:-1)})),!u&&-1==c||(a.sectProps=u,i.push(a={sectProps:null,elements:[]})),-1!=c)&&(f=l.children[c],d=h<f.children.length-1,c<l.children.length-1||d)&&(p=b.children,m=Object.assign(Object.assign({},b),{children:p.slice(c)}),b.children=p.slice(0,c),a.elements.push(m),d)&&(y=f.children,g=Object.assign(Object.assign({},f),{children:y.slice(0,h)}),b.children.push(g),f.children=y.slice(h))}}catch(e){o.e(e)}finally{o.f()}for(var v=null,w=i.length-1;0<=w;w--)null==i[w].sectProps?i[w].sectProps=v:v=i[w].sectProps;return i}},{key:"renderWrapper",value:function(e){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}},{key:"renderDefaultStyle",value:function(){var e=this.className;return m("\n.".concat(e,"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.").concat(e,"-wrapper>section.").concat(e," { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.").concat(e," { color: black; hyphens: auto; }\nsection.").concat(e," { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.").concat(e,">article { margin-bottom: auto; z-index: 1; }\nsection.").concat(e,">footer { z-index: 1; }\n.").concat(e," table { border-collapse: collapse; }\n.").concat(e," table td, .").concat(e," table th { vertical-align: top; }\n.").concat(e," p { margin: 0pt; min-height: 1em; }\n.").concat(e," span { white-space: pre-wrap; overflow-wrap: break-word; }\n.").concat(e," a { color: inherit; text-decoration: inherit; }\n"))}},{key:"renderNumbering",value:function(e,n){var a,i=this,o="",s=[],t=x(e);try{var l,u,c;for(t.s();!(a=t.n()).done;)!function(){var t,e,r;l=a.value,u="p.".concat(i.numberingClass(l.id,l.level)),c="none",l.bullet?(t="--".concat(i.className,"-").concat(l.bullet.src).toLowerCase(),o+=i.styleToString("".concat(u,":before"),{content:"' '",display:"inline-block",background:"var(".concat(t,")")},l.bullet.style),i.document.loadNumberingImage(l.bullet.src).then(function(e){e="".concat(i.rootSelector," { ").concat(t,": url(").concat(e,") }");n.appendChild(m(e))})):l.levelText?(r=(e=i.numberingCounter(l.id,l.level))+" "+(l.start-1),0<l.level&&(o+=i.styleToString("p.".concat(i.numberingClass(l.id,l.level-1)),{"counter-reset":r})),s.push(r),o+=i.styleToString("".concat(u,":before"),Object.assign({content:i.levelTextToContent(l.levelText,l.suff,l.id,i.numFormatToCssValue(l.format)),"counter-increment":e},l.rStyle))):c=i.numFormatToCssValue(l.format),o+=i.styleToString(u,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":c},l.pStyle))}()}catch(e){t.e(e)}finally{t.f()}return 0<s.length&&(o+=this.styleToString(this.rootSelector,{"counter-reset":s.join(" ")})),m(o)}},{key:"renderStyles",value:function(e){var t,r,n="",a=this.styleMap,i=(0,p.keyBy)(e.filter(function(e){return e.isDefault}),function(e){return e.target}),o=x(e);try{for(o.s();!(r=o.n()).done;){var s,l=r.value,u=l.styles;l.linked&&((s=l.linked&&a[l.linked])?u=u.concat(s.styles):this.options.debug&&console.warn("Can't find linked style ".concat(l.linked)));var c,h=x(u);try{for(h.s();!(c=h.n()).done;){var f=c.value,d="".concat(null!=(t=l.target)?t:"",".").concat(l.cssName);l.target!=f.target&&(d+=" ".concat(f.target)),i[l.target]==l&&(d=".".concat(this.className," ").concat(l.target,", ")+d),n+=this.styleToString(d,f.values)}}catch(e){h.e(e)}finally{h.f()}}}catch(e){o.e(e)}finally{o.f()}return m(n)}},{key:"renderNotes",value:function(e,t,r){var e=e.map(function(e){return t[e]}).filter(function(e){return e});0<e.length&&(e=this.createElement("ol",null,this.renderElements(e)),r.appendChild(e))}},{key:"renderElement",value:function(e){switch(e.type){case _.DomType.Paragraph:return this.renderParagraph(e);case _.DomType.BookmarkStart:return this.renderBookmarkStart(e);case _.DomType.BookmarkEnd:return null;case _.DomType.Run:return this.renderRun(e);case _.DomType.Table:return this.renderTable(e);case _.DomType.Row:return this.renderTableRow(e);case _.DomType.Cell:return this.renderTableCell(e);case _.DomType.Hyperlink:return this.renderHyperlink(e);case _.DomType.Drawing:return this.renderDrawing(e);case _.DomType.Image:return this.renderImage(e);case _.DomType.Text:case _.DomType.Text:return this.renderText(e);case _.DomType.DeletedText:return this.renderDeletedText(e);case _.DomType.Tab:return this.renderTab(e);case _.DomType.Symbol:return this.renderSymbol(e);case _.DomType.Break:return this.renderBreak(e);case _.DomType.Footer:return this.renderContainer(e,"footer");case _.DomType.Header:return this.renderContainer(e,"header");case _.DomType.Footnote:case _.DomType.Endnote:return this.renderContainer(e,"li");case _.DomType.FootnoteReference:return this.renderFootnoteReference(e);case _.DomType.EndnoteReference:return this.renderEndnoteReference(e);case _.DomType.NoBreakHyphen:return this.createElement("wbr");case _.DomType.VmlPicture:return this.renderVmlPicture(e);case _.DomType.VmlElement:return this.renderVmlElement(e);case _.DomType.MmlMath:return this.renderContainerNS(e,s,"math",{xmlns:s});case _.DomType.MmlMathParagraph:return this.renderContainer(e,"span");case _.DomType.MmlFraction:return this.renderContainerNS(e,s,"mfrac");case _.DomType.MmlBase:return this.renderContainerNS(e,s,e.parent.type==_.DomType.MmlMatrixRow?"mtd":"mrow");case _.DomType.MmlNumerator:case _.DomType.MmlDenominator:case _.DomType.MmlFunction:case _.DomType.MmlLimit:case _.DomType.MmlBox:return this.renderContainerNS(e,s,"mrow");case _.DomType.MmlGroupChar:return this.renderMmlGroupChar(e);case _.DomType.MmlLimitLower:return this.renderContainerNS(e,s,"munder");case _.DomType.MmlMatrix:return this.renderContainerNS(e,s,"mtable");case _.DomType.MmlMatrixRow:return this.renderContainerNS(e,s,"mtr");case _.DomType.MmlRadical:return this.renderMmlRadical(e);case _.DomType.MmlSuperscript:return this.renderContainerNS(e,s,"msup");case _.DomType.MmlSubscript:return this.renderContainerNS(e,s,"msub");case _.DomType.MmlDegree:case _.DomType.MmlSuperArgument:case _.DomType.MmlSubArgument:return this.renderContainerNS(e,s,"mn");case _.DomType.MmlFunctionName:return this.renderContainerNS(e,s,"ms");case _.DomType.MmlDelimiter:return this.renderMmlDelimiter(e);case _.DomType.MmlRun:return this.renderMmlRun(e);case _.DomType.MmlNary:return this.renderMmlNary(e);case _.DomType.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case _.DomType.MmlBar:return this.renderMmlBar(e);case _.DomType.MmlEquationArray:return this.renderMllList(e);case _.DomType.Inserted:return this.renderInserted(e);case _.DomType.Deleted:return this.renderDeleted(e)}return null}},{key:"renderChildren",value:function(e,t){return this.renderElements(e.children,t)}},{key:"renderElements",value:function(e,t){var r=this;return null==e?null:(e=e.flatMap(function(e){return r.renderElement(e)}).filter(function(e){return null!=e}),t&&h(t,e),e)}},{key:"renderContainer",value:function(e,t,r){return this.createElement(t,r,this.renderChildren(e))}},{key:"renderContainerNS",value:function(e,t,r,n){return u(t,r,n,this.renderChildren(e))}},{key:"renderParagraph",value:function(e){var t=this.createElement("p"),r=this.findStyle(e.styleName),n=(null==e.tabs&&(e.tabs=null==(n=null==r?void 0:r.paragraphProps)?void 0:n.tabs),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e),null!=(n=e.numbering)?n:null==(e=null==r?void 0:r.paragraphProps)?void 0:e.numbering);return n&&t.classList.add(this.numberingClass(n.id,n.level)),t}},{key:"renderRunProperties",value:function(e,t){this.renderCommonProperties(e,t)}},{key:"renderCommonProperties",value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize)&&(e["font-size"]=t.fontSize)}},{key:"renderHyperlink",value:function(t){var e,r=this.createElement("a");return this.renderChildren(t,r),this.renderStyleValues(t.cssStyle,r),t.href?r.href=t.href:t.id&&(e=this.document.documentPart.rels.find(function(e){return e.id==t.id&&"External"===e.targetMode}),r.href=null==e?void 0:e.target),r}},{key:"renderDrawing",value:function(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}},{key:"renderImage",value:function(e){var t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then(function(e){t.src=e}),t}},{key:"renderText",value:function(e){return this.htmlDocument.createTextNode(e.text)}},{key:"renderDeletedText",value:function(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}},{key:"renderBreak",value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}},{key:"renderInserted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}},{key:"renderDeleted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}},{key:"renderSymbol",value:function(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}},{key:"renderFootnoteReference",value:function(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}},{key:"renderEndnoteReference",value:function(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}},{key:"renderTab",value:function(r){var e,t=this.createElement("span");return t.innerHTML="&emsp;",this.options.experimental&&(t.className=this.tabStopClass(),e=null==(e=function(e){for(var t=r.parent;null!=t&&t.type!=e;)t=t.parent;return t}(_.DomType.Paragraph))?void 0:e.tabs,this.currentTabs.push({stops:e,span:t})),t}},{key:"renderBookmarkStart",value:function(e){var t=this.createElement("span");return t.id=e.name,t}},{key:"renderRun",value:function(e){var t,r;return e.fieldRun?null:(t=this.createElement("span"),e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign?(r=this.createElement(e.verticalAlign),this.renderChildren(e,r),t.appendChild(r)):this.renderChildren(e,t),t)}},{key:"renderTable",value:function(e){var t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}},{key:"renderTableColumns",value:function(e){var t,r=this.createElement("colgroup"),n=x(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=this.createElement("col");a.width&&(i.style.width=a.width),r.appendChild(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderTableRow",value:function(e){var t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}},{key:"renderTableCell",value:function(e){var t=this.createElement("td"),r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t).rowSpan=1:this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}},{key:"renderVmlPicture",value:function(e){var t=n("div");return this.renderChildren(e,t),t}},{key:"renderVmlElement",value:function(e){var t,r=l("svg"),n=(r.setAttribute("style",e.cssStyleText),this.renderVmlChildElement(e));return null==(t=e.imageHref)||!t.id||null!=(t=this.document)&&t.loadDocumentImage(e.imageHref.id,this.currentPart).then(function(e){return n.setAttribute("href",e)}),r.appendChild(n),requestAnimationFrame(function(){var e=r.firstElementChild.getBBox();r.setAttribute("width","".concat(Math.ceil(e.x+e.width))),r.setAttribute("height","".concat(Math.ceil(e.y+e.height)))}),r}},{key:"renderVmlChildElement",value:function(e){var r=l(e.tagName);Object.entries(e.attrs).forEach(function(e){var e=C(e,2),t=e[0],e=e[1];return r.setAttribute(t,e)});var t,n=x(e.children);try{for(n.s();!(t=n.n()).done;){var a=t.value;a.type==_.DomType.VmlElement?r.appendChild(this.renderVmlChildElement(a)):r.appendChild.apply(r,S((0,p.asArray)(this.renderElement(a))))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderMmlRadical",value:function(e){var t,r=e.children.find(function(e){return e.type==_.DomType.MmlBase});return null!=(t=e.props)&&t.hideDegree?u(s,"msqrt",null,this.renderElements([r])):(t=e.children.find(function(e){return e.type==_.DomType.MmlDegree}),u(s,"mroot",null,this.renderElements([r,t])))}},{key:"renderMmlDelimiter",value:function(e){var t,r=[];return r.push(u(s,"mo",null,[null!=(t=e.props.beginChar)?t:"("])),r.push.apply(r,S(this.renderElements(e.children))),r.push(u(s,"mo",null,[null!=(t=e.props.endChar)?t:")"])),u(s,"mrow",null,r)}},{key:"renderMmlNary",value:function(e){var t=[],r=(0,p.keyBy)(e.children,function(e){return e.type}),n=r[_.DomType.MmlSuperArgument],a=r[_.DomType.MmlSubArgument],n=n?u(s,"mo",null,(0,p.asArray)(this.renderElement(n))):null,a=a?u(s,"mo",null,(0,p.asArray)(this.renderElement(a))):null,e=u(s,"mo",null,[null!=(e=null==(e=e.props)?void 0:e.char)?e:"∫"]);return t.push(n||a?u(s,"munderover",null,[e,a,n]):n?u(s,"mover",null,[e,n]):a?u(s,"munder",null,[e,a]):e),t.push.apply(t,S(this.renderElements(r[_.DomType.MmlBase].children))),u(s,"mrow",null,t)}},{key:"renderMmlPreSubSuper",value:function(e){var t=[],e=(0,p.keyBy)(e.children,function(e){return e.type}),r=e[_.DomType.MmlSuperArgument],n=e[_.DomType.MmlSubArgument],r=r?u(s,"mo",null,(0,p.asArray)(this.renderElement(r))):null,n=n?u(s,"mo",null,(0,p.asArray)(this.renderElement(n))):null,a=u(s,"mo",null);return t.push(u(s,"msubsup",null,[a,n,r])),t.push.apply(t,S(this.renderElements(e[_.DomType.MmlBase].children))),u(s,"mrow",null,t)}},{key:"renderMmlGroupChar",value:function(e){var t="bot"===e.props.verticalJustification?"mover":"munder",t=this.renderContainerNS(e,s,t);return e.props.char&&t.appendChild(u(s,"mo",null,[e.props.char])),t}},{key:"renderMmlBar",value:function(e){var t=this.renderContainerNS(e,s,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}},{key:"renderMmlRun",value:function(e){var t=u(s,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}},{key:"renderMllList",value:function(e){var t=u(s,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);var r,n=x(this.renderChildren(e));try{for(n.s();!(r=n.n()).done;){var a=r.value;t.appendChild(u(s,"mtr",null,[u(s,"mtd",null,[a])]))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"renderStyleValues",value:function(e,t){for(var r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}},{key:"renderClass",value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}},{key:"findStyle",value:function(e){var t;return e&&(null==(t=this.styleMap)?void 0:t[e])}},{key:"numberingClass",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"tabStopClass",value:function(){return"".concat(this.className,"-tab-stop")}},{key:"styleToString",value:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a="".concat(e," {\r\n");for(r in t)r.startsWith("$")||(a+=" ".concat(r,": ").concat(t[r],";\r\n"));return n&&(a+=n),a+"}\r\n"}},{key:"numberingCounter",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"levelTextToContent",value:function(e,t,r,n){var a=this;return'"'.concat(e.replace(/%\d*/g,function(e){e=parseInt(e.substring(1),10)-1;return'"counter('.concat(a.numberingCounter(r,e),", ").concat(n,')"')})).concat(null!=(e={tab:"\\9",space:"\\a0"}[t])?e:"",'"')}},{key:"numFormatToCssValue",value:function(e){var t;return null!=(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])?t:e}},{key:"refreshTabStops",value:function(){var a=this;this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(function(){var e,t=(0,i.computePixelToPoint)(),r=x(a.currentTabs);try{for(r.s();!(e=r.n()).done;){var n=e.value;(0,i.updateTabStop)(n.span,n.stops,a.defaultTabSize,t)}}catch(e){r.e(e)}finally{r.f()}},500))}}]),a)},630:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=t.computePixelToPoint=void 0;var m={pos:0,leader:"none",style:"left"};function y(e){return parseFloat(e)}t.computePixelToPoint=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.body,t=document.createElement("div"),r=(t.style.width="100pt",e.appendChild(t),100/t.offsetWidth);return e.removeChild(t),r},t.updateTabStop=function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.75,a=e.closest("p"),i=e.getBoundingClientRect(),o=a.getBoundingClientRect(),s=getComputedStyle(a),l=0<(null==t?void 0:t.length)?t.map(function(e){return{pos:y(e.position),leader:e.leader,style:e.style}}).sort(function(e,t){return e.pos-t.pos}):[m],t=l[l.length-1],u=o.width*n,c=y(r),h=t.pos+c;if(h<u)for(;h<u&&l.length<50;h+=c)l.push(Object.assign(Object.assign({},m),{pos:h}));var r=parseFloat(s.marginLeft),t=o.left+r,f=(i.left-t)*n,s=l.find(function(e){return"clear"!=e.style&&e.pos>f});if(null!=s){var d,p,i=1;switch(i="right"==s.style||"center"==s.style?(p=(t=Array.from(a.querySelectorAll(".".concat(e.className)))).indexOf(e)+1,(d=document.createRange()).setStart(e,1),p<t.length?d.setEndBefore(t[p]):d.setEndAfter(a),t="center"==s.style?.5:1,a=(p=d.getBoundingClientRect()).left+t*p.width-(o.left-r),s.pos-a*n):s.pos-f,e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(i.toFixed(0),"pt"),s.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}}},881:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.WmlEndnote=t.WmlFootnote=t.WmlBaseNote=void 0;var n,a,i=r(120),r=E(function e(){T(this,e)});function o(){var e;return T(this,o),(e=n.apply(this,arguments)).type=i.DomType.Endnote,e}function s(){var e;return T(this,s),(e=a.apply(this,arguments)).type=i.DomType.Footnote,e}t.WmlBaseNote=r,t.WmlFootnote=(f(s,r),a=d(s),E(s)),t.WmlEndnote=(f(o,r),n=d(o),E(o))},735:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.EndnotesPart=t.FootnotesPart=t.BaseNotePart=void 0;var n,a,i,o=r(530),s=r(881),r=(f(l,o.Part),n=d(l),E(l));function l(e,t,r){return T(this,l),(e=n.call(this,e,t))._documentParser=r,e}function u(e,t,r){return T(this,u),a.call(this,e,t,r)}function c(e,t,r){return T(this,c),i.call(this,e,t,r)}t.BaseNotePart=r,t.FootnotesPart=(f(c,r),i=d(c),E(c,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",s.WmlFootnote)}}]),c),t.EndnotesPart=(f(u,r),a=d(u),E(u,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",s.WmlEndnote)}}]),u)},527:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;var n,a=r(530),i=r(682),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){Object.assign(this,(0,i.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}]),o);function o(e,t,r){return T(this,o),(e=n.call(this,e,t))._documentParser=r,e}t.NumberingPart=r},682:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;var o=r(109),s=r(488);function l(e,t){var r,n={id:t.attr(e,"numId"),overrides:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"abstractNumId":n.abstractId=t.attr(i,"val");break;case"lvlOverride":n.overrides.push(h(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n}function u(e,t){var r,n={id:t.attr(e,"abstractNumId"),levels:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"name":n.name=t.attr(i,"val");break;case"multiLevelType":n.multiLevelType=t.attr(i,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(i,"val");break;case"styleLink":n.styleLink=t.attr(i,"val");break;case"lvl":n.levels.push(c(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n}function c(e,t){var r,n={level:t.intAttr(e,"ilvl")},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"start":n.start=t.attr(i,"val");break;case"lvlRestart":n.restart=t.intAttr(i,"val");break;case"numFmt":n.format=t.attr(i,"val");break;case"lvlText":n.text=t.attr(i,"val");break;case"lvlJc":n.justification=t.attr(i,"val");break;case"lvlPicBulletId":n.bulletPictureId=t.attr(i,"val");break;case"pStyle":n.paragraphStyle=t.attr(i,"val");break;case"pPr":n.paragraphProps=(0,o.parseParagraphProperties)(i,t);break;case"rPr":n.runProps=(0,s.parseRunProperties)(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}function h(e,t){var r,n={level:t.intAttr(e,"ilvl")},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"startOverride":n.start=t.intAttr(i,"val");break;case"lvl":n.numberingLevel=c(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}function f(e,t){var r=t.element(e,"pict"),r=r&&t.element(r,"shape"),n=r&&t.element(r,"imagedata");return n?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(n,"id"),style:t.attr(r,"style")}:null}t.parseNumberingPart=function(e,t){var r,n={numberings:[],abstractNumberings:[],bulletPictures:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"num":n.numberings.push(l(i,t));break;case"abstractNum":n.abstractNumberings.push(u(i,t));break;case"numPicBullet":n.bulletPictures.push(f(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n},t.parseNumbering=l,t.parseAbstractNumbering=u,t.parseNumberingLevel=c,t.parseNumberingLevelOverrride=h,t.parseNumberingBulletPicture=f},472:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.serializeXmlString=t.parseXmlString=void 0;var n=r(149),r=(t.parseXmlString=function(e){e=65279===(t=e=1<arguments.length&&void 0!==arguments[1]&&arguments[1]?e.replace(/<[?].*[?]>/,""):e).charCodeAt(0)?t.substring(1):t;var t=(new DOMParser).parseFromString(e,"application/xml"),e=null==(e=t.getElementsByTagName("parsererror")[0])?void 0:e.textContent;if(e)throw new Error(e);return t},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)},E(a,[{key:"elements",value:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=[],n=0,a=e.childNodes.length;n<a;n++){var i=e.childNodes.item(n);1!=i.nodeType||null!=t&&i.localName!=t||r.push(i)}return r}},{key:"element",value:function(e,t){for(var r=0,n=e.childNodes.length;r<n;r++){var a=e.childNodes.item(r);if(1==a.nodeType&&a.localName==t)return a}return null}},{key:"elementAttr",value:function(e,t,r){e=this.element(e,t);return e?this.attr(e,r):void 0}},{key:"attrs",value:function(e){return Array.from(e.attributes)}},{key:"attr",value:function(e,t){for(var r=0,n=e.attributes.length;r<n;r++){var a=e.attributes.item(r);if(a.localName==t)return a.value}return null}},{key:"intAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e):r}},{key:"hexAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e,16):r}},{key:"floatAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseFloat(e):r}},{key:"boolAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return(0,n.convertBoolean)(this.attr(e,t),r)}},{key:"lengthAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:n.LengthUsage.Dxa;return(0,n.convertLength)(this.attr(e,t),r)}}]),a);function a(){T(this,a)}r=new(t.XmlParser=r);t.default=r},287:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPart=void 0;var n,a=r(530),i=r(846),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.settings=(0,i.parseSettings)(e,this._package.xmlParser)}}]),o);function o(e,t){return T(this,o),n.call(this,e,t)}t.SettingsPart=r},846:function(e,t){function o(e,t){var r,n={defaultNoteIds:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"numFmt":n.nummeringFormat=t.attr(i,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(i,"id"))}}}catch(e){a.e(e)}finally{a.f()}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseNoteProperties=t.parseSettings=void 0,t.parseSettings=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"defaultTabStop":n.defaultTabStop=t.lengthAttr(i,"val");break;case"footnotePr":n.footnoteProps=o(i,t);break;case"endnotePr":n.endnoteProps=o(i,t);break;case"autoHyphenation":n.autoHyphenation=t.boolAttr(i,"val")}}}catch(e){a.e(e)}finally{a.f()}return n},t.parseNoteProperties=o},240:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StylesPart=void 0;f(a,r(530).Part),n=d(a),E(a,[{key:"parseXml",value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}]);var n,r=a;function a(e,t,r){return T(this,a),(e=n.call(this,e,t))._documentParser=r,e}t.StylesPart=r},893:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;var n,a=r(530),i=r(55),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.theme=(0,i.parseTheme)(e,this._package.xmlParser)}}]),o);function o(e,t){return T(this,o),n.call(this,e,t)}t.ThemePart=r},55:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;var s=E(function e(){T(this,e)});function l(e,t){var r,n={name:t.attr(e,"name"),colors:{}},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value,o=t.element(i,"srgbClr"),s=t.element(i,"sysClr");o?n.colors[i.localName]=t.attr(o,"val"):s&&(n.colors[i.localName]=t.attr(s,"lastClr"))}}catch(e){a.e(e)}finally{a.f()}return n}function u(e,t){var r,n={name:t.attr(e,"name")},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"majorFont":n.majorFont=o(i,t);break;case"minorFont":n.minorFont=o(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}function o(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t.DmlTheme=s,t.parseTheme=function(e,t){var r,n=new s,a=t.element(e,"themeElements"),i=x(t.elements(a));try{for(i.s();!(r=i.n()).done;){var o=r.value;switch(o.localName){case"clrScheme":n.colorScheme=l(o,t);break;case"fontScheme":n.fontScheme=u(o,t)}}}catch(e){i.e(e)}finally{i.f()}return n},t.parseColorScheme=l,t.parseFontScheme=u,t.parseFontInfo=o},593:function(e,t){function l(e){return e&&"object"==O(e)&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=t.formatCssRules=t.parseCssRules=t.mergeDeep=t.isString=t.isObject=t.blobToBase64=t.keyBy=t.resolvePath=t.splitPath=t.escapeClassName=void 0,t.escapeClassName=function(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},t.splitPath=function(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(t,r){try{return new URL(t,"http://docx/"+r).toString().substring("http://docx/".length)}catch(e){return"".concat(r).concat(t)}},t.keyBy=function(e,r){return e.reduce(function(e,t){return e[r(t)]=t,e},{})},t.blobToBase64=function(n){return new Promise(function(e,t){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.onerror=function(){return t()},r.readAsDataURL(n)})},t.isObject=l,t.isString=function(e){return"string"==typeof e||e instanceof String},t.mergeDeep=function e(t){for(var r,n=arguments.length,a=new Array(1<n?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(!a.length)return t;var o=a.shift();if(l(t)&&l(o))for(var s in o)l(o[s])?e(null!=(r=t[s])?r:t[s]={},o[s]):t[s]=o[s];return e.apply(void 0,[t].concat(a))},t.parseCssRules=function(e){var t,r={},n=x(e.split(";"));try{for(n.s();!(t=n.n()).done;){var a=C(t.value.split(":"),2),i=a[0],o=a[1];r[i]=o}}catch(e){n.e(e)}finally{n.f()}return r},t.formatCssRules=function(e){return Object.entries(e).map(function(e,t){return"".concat(e,": ").concat(t)}).join(";")},t.asArray=function(e){return Array.isArray(e)?e:[e]}},320:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseVmlElement=t.VmlElement=void 0;var n,v=r(149),a=r(120),w=r(472),_=(f(i,a.OpenXmlElementBase),n=d(i),E(i));function i(){var e;return T(this,i),(e=n.apply(this,arguments)).type=a.DomType.VmlElement,e.attrs={},e}function k(e){return e.split(",")}t.VmlElement=_,t.parseVmlElement=function e(t,r){var n,a=new _;switch(t.localName){case"rect":a.tagName="rect",Object.assign(a.attrs,{width:"100%",height:"100%"});break;case"oval":a.tagName="ellipse",Object.assign(a.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":a.tagName="line";break;case"shape":a.tagName="g";break;case"textbox":a.tagName="foreignObject",Object.assign(a.attrs,{width:"100%",height:"100%"});break;default:return null}var i,o=x(w.default.attrs(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;switch(s.localName){case"style":a.cssStyleText=s.value;break;case"fillcolor":a.attrs.fill=s.value;break;case"from":var l=C(k(s.value),2),u=l[0],c=l[1];Object.assign(a.attrs,{x1:u,y1:c});break;case"to":var h=C(k(s.value),2),f=h[0],d=h[1];Object.assign(a.attrs,{x2:f,y2:d})}}}catch(e){o.e(e)}finally{o.f()}var p,m,y=x(w.default.elements(t));try{for(y.s();!(p=y.n()).done;){var g=p.value;switch(g.localName){case"stroke":Object.assign(a.attrs,(m=g,{stroke:w.default.attr(m,"color"),"stroke-width":null!=(m=w.default.lengthAttr(m,"weight",v.LengthUsage.Emu))?m:"1px"}));break;case"fill":Object.assign(a.attrs,{});break;case"imagedata":a.tagName="image",Object.assign(a.attrs,{width:"100%",height:"100%"}),a.imageHref={id:w.default.attr(g,"id"),title:w.default.attr(g,"title")};break;case"txbxContent":(n=a.children).push.apply(n,S(r.parseBodyElements(g)));break;default:var b=e(g,r);b&&a.children.push(b)}}}catch(e){y.e(e)}finally{y.f()}return a}},213:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;var n,a,i,o,s,l=r(461),u=r(380),c=r(522),h=r(448),f=r(593),d=r(527),p=r(240),m=r(985),y=r(665),g=r(162),b=r(893),v=r(735),w=r(287),_=r(177),k=[{type:l.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:l.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:l.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:l.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}],r=(E(S,[{key:"save",value:function(){return this._package.save(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob")}},{key:"loadRelationshipPart",value:(s=P(A().mark(function e(t,r){var n,a,i,o=this;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.partsMap[t])return e.abrupt("return",this.partsMap[t]);e.next=2;break;case 2:if(this._package.get(t)){e.next=4;break}return e.abrupt("return",null);case 4:n=null,e.t0=r,e.next=e.t0===l.RelationshipTypes.OfficeDocument?8:e.t0===l.RelationshipTypes.FontTable?10:e.t0===l.RelationshipTypes.Numbering?12:e.t0===l.RelationshipTypes.Styles?14:e.t0===l.RelationshipTypes.Theme?16:e.t0===l.RelationshipTypes.Footnotes?18:e.t0===l.RelationshipTypes.Endnotes?20:e.t0===l.RelationshipTypes.Footer?22:e.t0===l.RelationshipTypes.Header?24:e.t0===l.RelationshipTypes.CoreProperties?26:e.t0===l.RelationshipTypes.ExtendedProperties?28:e.t0===l.RelationshipTypes.CustomProperties?30:e.t0===l.RelationshipTypes.Settings?32:33;break;case 8:return this.documentPart=n=new h.DocumentPart(this._package,t,this._parser),e.abrupt("break",33);case 10:return this.fontTablePart=n=new u.FontTablePart(this._package,t),e.abrupt("break",33);case 12:return this.numberingPart=n=new d.NumberingPart(this._package,t,this._parser),e.abrupt("break",33);case 14:return this.stylesPart=n=new p.StylesPart(this._package,t,this._parser),e.abrupt("break",33);case 16:return this.themePart=n=new b.ThemePart(this._package,t),e.abrupt("break",33);case 18:return this.footnotesPart=n=new v.FootnotesPart(this._package,t,this._parser),e.abrupt("break",33);case 20:return this.endnotesPart=n=new v.EndnotesPart(this._package,t,this._parser),e.abrupt("break",33);case 22:return n=new m.FooterPart(this._package,t,this._parser),e.abrupt("break",33);case 24:return n=new m.HeaderPart(this._package,t,this._parser),e.abrupt("break",33);case 26:return this.corePropsPart=n=new g.CorePropsPart(this._package,t),e.abrupt("break",33);case 28:return this.extendedPropsPart=n=new y.ExtendedPropsPart(this._package,t),e.abrupt("break",33);case 30:return n=new _.CustomPropsPart(this._package,t),e.abrupt("break",33);case 32:this.settingsPart=n=new w.SettingsPart(this._package,t);case 33:if(null==n)return e.abrupt("return",Promise.resolve(null));e.next=35;break;case 35:return this.partsMap[t]=n,this.parts.push(n),e.next=39,n.load();case 39:if(0<(null==(a=n.rels)?void 0:a.length))return a=(0,f.splitPath)(n.path),a=C(a,1),i=a[0],e.next=43,Promise.all(n.rels.map(function(e){return o.loadRelationshipPart((0,f.resolvePath)(e.target,i),e.type)}));e.next=43;break;case 43:return e.abrupt("return",n);case 44:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"loadDocumentImage",value:(o=P(A().mark(function e(t,r){var n;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(null!=r?r:this.documentPart,t,"blob");case 2:return n=e.sent,e.abrupt("return",this.blobToURL(n));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"loadNumberingImage",value:(i=P(A().mark(function e(t){var r;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.numberingPart,t,"blob");case 2:return r=e.sent,e.abrupt("return",this.blobToURL(r));case 4:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"loadFont",value:(a=P(A().mark(function e(t,r){var n;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.fontTablePart,t,"uint8array");case 2:return n=e.sent,e.abrupt("return",n&&this.blobToURL(new Blob([x(n,r)])));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"blobToURL",value:function(e){return e?this._options.useBase64URL?(0,f.blobToBase64)(e):URL.createObjectURL(e):null}},{key:"findPartByRelId",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=(null!=(r=e.rels)?r:this.rels).find(function(e){return e.id==t}),e=e?(0,f.splitPath)(e.path)[0]:"";return r?this.partsMap[(0,f.resolvePath)(r.target,e)]:null}},{key:"getPathById",value:function(e,t){var r=e.rels.find(function(e){return e.id==t}),e=C((0,f.splitPath)(e.path),1)[0];return r?(0,f.resolvePath)(r.target,e):null}},{key:"loadResource",value:function(e,t,r){e=this.getPathById(e,t);return e?this._package.load(e,r):Promise.resolve(null)}}],[{key:"load",value:(n=P(A().mark(function e(t,r,n){var a;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new S)._options=n,a._parser=r,e.next=5,c.OpenXmlPackage.load(t,n);case 5:return a._package=e.sent,e.next=8,a._package.loadRelationships();case 8:return a.rels=e.sent,e.next=11,Promise.all(k.map(function(t){var e=null!=(e=a.rels.find(function(e){return e.type===t.type}))?e:t;return a.loadRelationshipPart(e.target,e.type)}));case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})}]),S);function S(){T(this,S),this.parts=[],this.partsMap={}}function x(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(var i=0;i<32;i++)e[i]=e[i]^n[i%16];return e}t.WordDocument=r,t.deobfuscate=x},583:function(e){e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:function(e){e.exports=en}},rn={},s.m=tn,s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.b=document.baseURI||self.location.href,s(667)),an={ignoreLastRenderedPageBreak:!1},o={getData:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?fetch(e,t).then(function(e){return 200!==e.status?Promise.reject(e):e}):Promise.resolve(e)},render:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e?(e instanceof Blob?r=e:e instanceof Response?r=e.blob():e instanceof ArrayBuffer&&(r=new Blob([e])),nn.renderAsync(r,t,t,U(U({},an),n))):(t.innerHTML="",Promise.resolve())},getBlob:(Qr=P(A().mark(function e(t){var r;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t instanceof Blob?(r=t,e.next=11):e.next=4;break;case 4:if(t instanceof Response)return e.next=7,t.blob();e.next=10;break;case 7:r=e.sent,e.next=11;break;case 10:t instanceof ArrayBuffer&&(r=new Blob([t]));case 11:return e.abrupt("return",r);case 12:case"end":return e.stop()}},e)})),function(e){return Qr.apply(this,arguments)})};function s(e){var t=rn[e];return void 0!==t||(t=rn[e]={id:e,exports:{}},tn[e](t,t.exports,s)),t.exports}function l(){if(!(this instanceof l))return new l;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 e,t=new l;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}function on(){return(on=P(A().mark(function e(a,i){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i&&(i instanceof ArrayBuffer&&(i=new Blob([i])),t=a,r=URL.createObjectURL(i),n=void 0,(n=document.createElement("a")).download=t,n.style.display="none",n.href=r,document.body.appendChild(n),n.click(),document.body.removeChild(n));case 1:case"end":return e.stop()}var t,r,n},e)}))).apply(this,arguments)}E(un,[{key:"createWrapper",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vue-office-docx",this.wrapperMain=document.createElement("div"),this.wrapperMain.className="vue-office-docx-main",this.wrapper.appendChild(this.wrapperMain),this.container.appendChild(this.wrapper)}},{key:"setOptions",value:function(e){this.options=e}},{key:"setRequestOptions",value:function(e){this.requestOptions=e}},{key:"preview",value:function(e){var a=this;return new Promise(function(r,n){var t;o.getData(e,a.requestOptions).then((t=P(A().mark(function e(t){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.getBlob(t);case 2:a.fileData=e.sent,o.render(a.fileData,a.wrapperMain,a.options).then(function(){r()}).catch(function(e){o.render("",a.wrapperMain,a.options),n(e)});case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})).catch(function(e){o.render("",a.wrapperMain,a.options),n(e)})})}},{key:"save",value:function(e){!function(){on.apply(this,arguments)}(e||"js-preview-docx-".concat((new Date).getTime(),".docx"),this.fileData)}},{key:"destroy",value:function(){this.container.removeChild(this.wrapper),this.container=null,this.wrapper=null,this.wrapperMain=null,this.options=null,this.requestOptions=null}}]);var sn=un,ln={init:function(e,t,r){return new sn(e,t,r)}};function un(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};T(this,un),n(this,"container",null),n(this,"wrapper",null),n(this,"wrapperMain",null),n(this,"options",{}),n(this,"requestOptions",{}),n(this,"fileData",null),this.container=e,this.options=t,this.requestOptions=r,this.createWrapper()}}.call(this,hn(30),hn(315),hn(564).setImmediate,hn(554).Buffer)},839:function(e,t,r){e.exports=n;var c=r(572).EventEmitter;function n(){c.call(this)}r(561)(n,c),n.Readable=r(591),n.Writable=r(847),n.Duplex=r(848),n.Transform=r(849),n.PassThrough=r(850),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var i=!1;function o(){i||(i=!0,t.end())}function s(){i||(i=!0,"function"==typeof t.destroy&&t.destroy())}function l(e){if(u(),0===c.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",l),t.on("error",l),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},840:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},841:function(e,t){},842:function(e,t,r){"use strict";var i=r(592).Buffer,n=r(843);function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}e.exports=(a.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},a.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},a.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},a.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t,r=i.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=a,n.data.copy(r,t),a+=n.data.length,n=n.next;return r},a),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},843:function(e,t){},844:function(e,t,r){!function(r){function n(e){try{if(!r.localStorage)return}catch(e){return}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){var r;return n("noDeprecation")?e:(r=!1,function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)})}}.call(this,r(30))},845:function(e,t,r){var n=r(554),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=a(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},846:function(e,t,r){"use strict";e.exports=a;var n=r(645),e=Object.create(r(565));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}e.inherits=r(561),e.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},847:function(e,t,r){e.exports=r(593)},848:function(e,t,r){e.exports=r(555)},849:function(e,t,r){e.exports=r(591).Transform},850:function(e,t,r){e.exports=r(591).PassThrough},851:function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},852:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},853:function(e,t,r){var n=r(854);"string"==typeof n&&(n=[[e.i,n,""]]);r(88)(n,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(e.exports=n.locals)},854:function(e,t,r){(t=r(87)(!1)).push([e.i,".vue-office-docx {\n height: 100%;\n overflow-y: auto;\n}\n.vue-office-docx .docx-wrapper > section.docx {\n margin-bottom: 5px;\n}\n@media screen and (max-width: 800px) {\n .vue-office-docx .docx-wrapper {\n padding: 10px;\n }\n .vue-office-docx .docx-wrapper > section.docx {\n padding: 10px!important;\n width: 100% !important;\n }\n}\n",""]),e.exports=t}}]);
1
+ (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[30],{511:function(e,t,r){"use strict";r.r(t);function n(e){var t=e.id,r=e.style,n=e.className,a=e.src,e=(e.setProps,e.loading_state),i=Object(s.useRef)(null);return Object(s.useEffect)(function(){var e;if(i.current)return(e=o.a.init(i.current,{})).preview(a).then(function(e){}).catch(function(e){}),function(){e.destroy()}},[a]),React.createElement("div",{id:t,className:Object(u.isString)(n)?n:n?Object(l.a)(n):void 0,style:r,ref:i,"data-dash-is-loading":e&&e.is_loading||void 0})}var o=r(842),s=r(1),l=(r(857),r(60)),u=r(22),r=r(212);(t.default=n).defaultProps=r.b,n.propTypes=r.c},557:function(e,t,r){"use strict";var n=r(576),a=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},e=(e.exports=c,Object.create(r(567))),i=(e.inherits=r(563),r(645)),o=r(596);e.inherits(c,i);for(var s=a(o.prototype),l=0;l<s.length;l++){var u=s[l];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},563:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},567:function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(556).Buffer.isBuffer},575:function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null,l=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},a=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(a,i){return new Promise(function(e,t){function r(e){a.removeListener(i,n),t(e)}function n(){"function"==typeof a.removeListener&&a.removeListener("error",r),e([].slice.call(arguments))}y(a,i,n,{once:!0}),"error"!==i&&"function"==typeof a.on&&y(a,"error",r,{once:!0})})},(o.EventEmitter=o).prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var a,i;return u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener||r),a=e._events),i=a[t]),void 0===i?(i=a[t]=r,++e._eventsCount):("function"==typeof i?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),0<(a=c(e))&&i.length>a&&!i.warned&&(i.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=i.length,console)&&console.warn&&console.warn(n)),e}function f(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function d(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];{if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,a=new Array(n.length),i=0;i<a.length;++i)a[i]=n[i].listener||n[i];return a}return m(e,e.length)}}function p(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(r,n,a,i){if("function"==typeof r.on)i.once?r.once(n,a):r.on(n,a);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function e(t){i.once&&r.removeEventListener(n,e),a(t)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){if((i=0<t.length?t[0]:i)instanceof Error)throw i;n=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw n.context=i,n}var i=a[e];if(void 0===i)return!1;if("function"==typeof i)l(i,this,t);else for(var o=i.length,s=m(i,o),r=0;r<o;++r)l(s[r],this,t);return!0},o.prototype.on=o.prototype.addListener=function(e,t){return h(this,e,t,!1)},o.prototype.prependListener=function(e,t){return h(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var r,n,a,i,o;if(u(t),void 0!==(n=this._events)&&void 0!==(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;0<=i;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;if(0===a)r.shift();else{var s=r;var l=a;for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.removeAllListeners=function(e){var t,r;if(void 0!==(r=this._events))if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]);else if(0===arguments.length){for(var n,a=Object.keys(r),i=0;i<a.length;++i)"removeListener"!==(n=a[i])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return 0<this._eventsCount?a(this._events):[]}},576:function(e,t,r){"use strict";!function(s){void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return s.nextTick(function(){e.apply(null,a)})}}}:e.exports=s}.call(this,r(316))},594:function(e,t,r){(((t=e.exports=r(645)).Stream=t).Readable=t).Writable=r(596),t.Duplex=r(557),t.Transform=r(649),t.PassThrough=r(850)},595:function(e,t,r){var n=r(556),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=a(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},596:function(u,e,_){"use strict";!function(e,t,r){var m=_(576);function c(a){var i=this;this.next=null,this.entry=null,this.finish=function(){var e=i,t=a,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}u.exports=s;var i,n,h=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?t:m.nextTick,e=(s.WritableState=o,Object.create(_(567))),t=(e.inherits=_(563),{deprecate:_(848)}),a=_(646),y=_(595).Buffer,g=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},r=_(647);function b(){}function o(e,u){i=i||_(557),e=e||{};var t=u instanceof i,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,a=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,a,i,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(i=o).writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,e?(i=t,n=s,e=e,a=l,--(r=o).pendingcb,n?(m.nextTick(a,e),m.nextTick(w,i,r),i._writableState.errorEmitted=!0,i.emit("error",e)):(a(e),i._writableState.errorEmitted=!0,i.emit("error",e),w(i,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?h(f,t,o,n,l):f(t,o,n,l))},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 c(this)}function s(e){if(i=i||_(557),!(n.call(s,this)||this instanceof i))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),a.call(this)}function v(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function f(e,t,r,n){var a;r||(r=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var i=0,o=!0;r;)(a[i]=r).isBuf||(o=!1),r=r.next,i+=1;a.allBuffers=o,v(e,t,!0,t.length,a,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new c(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,a=p(t);return a&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),a}e.inherits(s,a),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===s&&e&&e._writableState instanceof o}})):n=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,a,i,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,y.isBuffer(p)||p instanceof g);return p&&!y.isBuffer(e)&&(h=e,e=y.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(i=e)?l=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,i=this,o=f,l=e,s=t,f=r,(e=p)||(a=l,n=s,a=o.objectMode||!1===o.decodeStrings||"string"!=typeof a?a:y.from(a,n),l!==a&&(e=!0,s="buffer",l=a)),n=o.objectMode?1:l.length,o.length+=n,(a=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(i,o,!1,n,l,s,f),d=a),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=r.destroy,s.prototype._undestroy=r.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}.call(this,_(316),_(566).setImmediate,_(30))},645:function(O,e,D){"use strict";!function(e,y){var g=D(576);O.exports=a;function b(e,t){return e.listeners(t).length}var i,o,v=D(844),r=(a.ReadableState=n,D(575).EventEmitter,D(646)),h=D(595).Buffer,f=(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},e=Object.create(D(567)),t=(e.inherits=D(563),D(845)),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},s=D(846),t=D(647),l=(e.inherits(a,r),["error","close","destroy","pause","resume"]);function n(e,t){e=e||{};var t=t instanceof(i=i||D(557)),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||D(648).StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function a(e){if(i=i||D(557),!(this instanceof a))return new a(e);this._readableState=new n(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function u(e,t,r,n,a){var i,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,p(s))):(a||(u=c,s=l=t,i=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),i?e.emit("error",i):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(a=t,t=h.from(a)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?d(e,c,t,!1):_(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function d(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&p(e)),_(e,t)}function c(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g.nextTick(m,e):m(e))}function m(e){w("emit readable"),e.emit("readable"),C(e)}function _(e,t){t.readingMore||(t.readingMore=!0,g.nextTick(k,e,t))}function k(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){w("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,a=r.data;for(e-=a.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++n}return t.length-=n,a}:function(e,t){var r=h.allocUnsafe(e),n=t.head,a=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0==(e-=o)){o===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=i.slice(o);break}++a}return t.length-=a,r})(e,r),a=n),a);var r,n,a}function A(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,g.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function E(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),a.prototype.destroy=t.destroy,a.prototype._undestroy=t.undestroy,a.prototype._destroy=function(e,t){this.push(null),t(e)},a.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),u(this,e,t,!1,r)},a.prototype.unshift=function(e){return u(this,e,null,!0,!1)},a.prototype.isPaused=function(){return!1===this._readableState.flowing},a.prototype.setEncoding=function(e){return o=o||D(648).StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},a.prototype.read=function(e){w("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(w("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?A:p)(this),null):0===(e=c(e,r))&&r.ended?(0===r.length&&A(this),null):(t=r.needReadable,w("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&w("length less than watermark",t=!0),r.ended||r.reading?w("reading or ended",t=!1):t&&(w("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=c(n,r))),null===(t=0<e?P(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&A(this),null!==t&&this.emit("data",t),t)},a.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},a.prototype.pipe=function(n,e){var a=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,w("pipe count=%d opts=%j",i.pipesCount,e);e=e&&!1===e.end||n===y.stdout||n===y.stderr?m:o;function o(){w("onend"),n.end()}i.endEmitted?g.nextTick(e):a.once("end",e),n.on("unpipe",function e(t,r){w("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,w("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),a.removeListener("end",o),a.removeListener("end",m),a.removeListener("data",h),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=a;var t,r,s,l=function(){var e=t._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,C(t))},u=(n.on("drain",l),!1),c=!1;function h(e){w("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==E(i.pipes,n))&&!u&&(w("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),a.pause())}function f(e){w("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){w("onfinish"),n.removeListener("close",d),m()}function m(){w("unpipe"),a.unpipe(n)}return a.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?v(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",a),i.flowing||(w("pipe resume"),a.resume()),n},a.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=E(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var a=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)a[o].emit("unpipe",this,{hasUnpiped:!1})}return this},a.prototype.addListener=a.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&p(this):g.nextTick(S,this)),t},a.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(w("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,g.nextTick(x,e,t))),this},a.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},a.prototype.wrap=function(t){var e,r=this,n=this._readableState,a=!1;for(e in t.on("end",function(){var e;w("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){w("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(a=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<l.length;i++)t.on(l[i],this.emit.bind(this,l[i]));return this._read=function(e){w("wrapped _read",e),a&&(a=!1,t.resume())},this},Object.defineProperty(a.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),a._fromList=P}.call(this,D(30),D(316))},646:function(e,t,r){e.exports=r(575).EventEmitter},647:function(e,t,r){"use strict";var i=r(576);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(o,this,e)):i.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(o,r,e)):i.nextTick(o,r,e):t&&t(e)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},648:function(e,t,r){"use strict";var n=r(849).Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.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 i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==a&&a(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=h,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function c(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(t.StringDecoder=i).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},i.prototype.text=function(e,t){r=this,i=t;var r,n,a,i=(a=(o=e).length-1)<i?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-1),n):--a<i||-2===n?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-2),n):!(--a<i||-2===n)&&0<=(n=s(o[a]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var o=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},649:function(e,t,r){"use strict";e.exports=a;var n=r(557),e=Object.create(r(567));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.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 r=this;"function"==typeof this._flush?this._flush(function(e,t){o(r,e,t)}):o(this,null,null)}function o(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}e.inherits=r(563),e.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},650:function(e,T,E){!function(o){var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},s=/%[sdj%]/g;T.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,a=n.length,i=String(e).replace(s,function(e){if("%%"===e)return"%";if(a<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r<a;o=n[++r])b(o)||!u(o)?i+=" "+o:i+=" "+l(o);return i},T.deprecate=function(e,t){var r;return void 0!==o&&!0===o.noDeprecation?e:void 0===o?function(){return T.deprecate(e,t).apply(this,arguments)}:(r=!1,function(){if(!r){if(o.throwDeprecation)throw new Error(t);o.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)})};var e,n={};function l(e,t){var r={seen:[],stylize:i};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&T._extend(r,t),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),d(r,e,r.depth)}function a(e,t){t=l.styles[t];return t?"["+l.colors[t][0]+"m"+e+"["+l.colors[t][1]+"m":e}function i(e,t){return e}function d(t,r,n){if(t.customInspect&&r&&C(r.inspect)&&r.inspect!==T.inspect&&(!r.constructor||r.constructor.prototype!==r))return w(e=r.inspect(n,t))?e:d(t,e,n);e=t;var e,a=_(o=r)?e.stylize("undefined","undefined"):w(o)?(a="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(a,"string")):v(o)?e.stylize(""+o,"number"):g(o)?e.stylize(""+o,"boolean"):b(o)?e.stylize("null","null"):void 0;if(a)return a;var i,o=Object.keys(r),s=(i={},o.forEach(function(e,t){i[e]=!0}),i);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),x(r)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return p(r);if(0===o.length){if(C(r))return c=r.name?": "+r.name:"",t.stylize("[Function"+c+"]","special");if(k(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return p(r)}var l,u,c="",h=!1,f=["{","}"];return y(r)&&(h=!0,f=["[","]"]),C(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),x(r)&&(c=" "+p(r)),0!==o.length||h&&0!=r.length?n<0?k(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),o=h?function(t,r,n,a,e){for(var i=[],o=0,s=r.length;o<s;++o)P(r,String(o))?i.push(m(t,r,n,a,String(o),!0)):i.push("");return e.forEach(function(e){e.match(/^\d+$/)||i.push(m(t,r,n,a,e,!0))}),i}(t,r,n,s,o):o.map(function(e){return m(t,r,n,s,e,h)}),t.seen.pop(),l=c,u=f,60<(o=o).reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)?u[0]+(""===l?"":l+"\n ")+" "+o.join(",\n ")+" "+u[1]:u[0]+l+" "+o.join(", ")+" "+u[1]):f[0]+c+f[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,a,i){var o,s;if((t=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(s=e.stylize("[Setter]","special")),P(n,a)||(o="["+a+"]"),s||(e.seen.indexOf(t.value)<0?-1<(s=b(r)?d(e,t.value,null):d(e,t.value,r-1)).indexOf("\n")&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(o)){if(i&&a.match(/^\d+$/))return s;o=(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(o,"string"))}return o+": "+s}function y(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function w(e){return"string"==typeof e}function _(e){return void 0===e}function k(e){return u(e)&&"[object RegExp]"===r(e)}function u(e){return"object"==typeof e&&null!==e}function S(e){return u(e)&&"[object Date]"===r(e)}function x(e){return u(e)&&("[object Error]"===r(e)||e instanceof Error)}function C(e){return"function"==typeof e}function r(e){return Object.prototype.toString.call(e)}function c(e){return e<10?"0"+e.toString(10):e.toString(10)}T.debuglog=function(t){var r;return _(e)&&(e=o.env.NODE_DEBUG||""),t=t.toUpperCase(),n[t]||(new RegExp("\\b"+t+"\\b","i").test(e)?(r=o.pid,n[t]=function(){var e=T.format.apply(T,arguments);console.error("%s %d: %s",t,r,e)}):n[t]=function(){}),n[t]},(T.inspect=l).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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},T.isArray=y,T.isBoolean=g,T.isNull=b,T.isNullOrUndefined=function(e){return null==e},T.isNumber=v,T.isString=w,T.isSymbol=function(e){return"symbol"==typeof e},T.isUndefined=_,T.isRegExp=k,T.isObject=u,T.isDate=S,T.isError=x,T.isFunction=C,T.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},T.isBuffer=E(855);var h=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}T.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[c(e.getHours()),c(e.getMinutes()),c(e.getSeconds())].join(":"),[e.getDate(),h[e.getMonth()],t].join(" ")),T.format.apply(T,arguments))},T.inherits=E(856),T._extend=function(e,t){if(t&&u(t))for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var f="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){var r;return e||((r=new Error("Promise was rejected with a falsy value")).reason=e,e=r),t(e)}T.promisify=function(i){if("function"!=typeof i)throw new TypeError('The "original" argument must be of type Function');if(f&&i[f]){var e;if("function"!=typeof(e=i[f]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var r,n,e=new Promise(function(e,t){r=e,n=t}),t=[],a=0;a<arguments.length;a++)t.push(arguments[a]);t.push(function(e,t){e?n(e):r(t)});try{i.apply(this,t)}catch(e){n(e)}return e}return Object.setPrototypeOf(e,Object.getPrototypeOf(i)),f&&Object.defineProperty(e,f,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,t(i))},T.promisify.custom=f,T.callbackify=function(i){if("function"!=typeof i)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");function n(){return r.apply(a,arguments)}var a=this;i.apply(this,e).then(function(e){o.nextTick(n,null,e)},function(e){o.nextTick(A,e,n)})}return Object.setPrototypeOf(e,Object.getPrototypeOf(i)),Object.defineProperties(e,t(i)),e}}.call(this,E(316))},842:function(e,cn,hn){"use strict";!function(u,M,_,h){hn.d(cn,"a",function(){return ln});var b=hn(843),v=hn.n(b),b=hn(575),z=hn.n(b),b=hn(556),w=hn.n(b),b=hn(650),F=hn.n(b);function k(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e,t,r){(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}function W(e,t){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=H(r),t=(e=n?(e=H(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==O(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){var r,n,a,i,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return a=!(n=!0),{s:function(){o=o.call(e)},n:function(){var e=o.next();return n=e.done,e},e:function(e){a=!0,r=e},f:function(){try{n||null==o.return||o.return()}finally{if(a)throw r}}};if(Array.isArray(e)||(o=q(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(){A=function(){return o};var l,o={},e=Object.prototype,u=e.hasOwnProperty,c=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",a=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(l){i=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a,i,o,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new C(n||[]);return c(t,"_invoke",{value:(a=e,i=r,o=n,s=f,function(e,t){if(s===d)throw new Error("Generator is already running");if(s===p){if("throw"===e)throw t;return{value:l,done:!0}}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r){r=function e(t,r){var n=r.method,a=t.iterator[n];if(a===l)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=l,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;n=h(a,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;a=n.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=l),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,o);if(r){if(r===m)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===f)throw s=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=d;r=h(a,i,o);if("normal"===r.type){if(s=o.done?p:"suspendedYield",r.arg===m)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(s=p,o.method="throw",o.arg=r.arg)}})}),t}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var f="suspendedStart",d="executing",p="completed",m={};function y(){}function g(){}function b(){}var t={},v=(i(t,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(P([]))),w=(v&&v!==e&&u.call(v,n)&&(t=v),b.prototype=y.prototype=Object.create(t));function _(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function k(o,s){var t;c(this,"_invoke",{value:function(r,n){function e(){return new s(function(e,t){!function t(e,r,n,a){var i,e=h(o[e],o,r);if("throw"!==e.type)return(r=(i=e.arg).value)&&"object"==O(r)&&u.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,n,a)},function(e){t("throw",e,n,a)}):s.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,a)});a(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(O(t)+" is not iterable")}return c(w,"constructor",{value:g.prototype=b,configurable:!0}),c(b,"constructor",{value:g,configurable:!0}),g.displayName=i(b,a,"GeneratorFunction"),o.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,i(e,a,"GeneratorFunction")),e.prototype=Object.create(w),e},o.awrap=function(e){return{__await:e}},_(k.prototype),i(k.prototype,r,function(){return this}),o.AsyncIterator=k,o.async=function(e,t,r,n,a){void 0===a&&(a=Promise);var i=new k(s(e,t,r,n),a);return o.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},_(w),i(w,a,"Generator"),i(w,n,function(){return this}),i(w,"toString",function(){return"[object Generator]"}),o.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},o.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var a=this.tryEntries[t],i=a.completion;if("root"===a.tryLoc)return e("end");if(a.tryLoc<=this.prev){var o=u.call(a,"catchLoc"),s=u.call(a,"finallyLoc");if(o&&s){if(this.prev<a.catchLoc)return e(a.catchLoc,!0);if(this.prev<a.finallyLoc)return e(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return e(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return e(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}var i=(a=a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc?null:a)?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,a=this.tryEntries[t];if(a.tryLoc===e)return"throw"===(r=a.completion).type&&(n=r.arg,x(a)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),m}},o}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){var r;if(e)return"string"==typeof e?Z(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function P(s){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=s.apply(e,o);function a(e){V(n,t,r,a,i,"next",e)}function i(e){V(n,t,r,a,i,"throw",e)}a(void 0)})}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function E(e,t,r){return t&&X(e.prototype,t),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e){e=function(e){if("object"!==O(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!==O(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e);return"symbol"===O(e)?e:String(e)}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}void 0===window.setImmediate&&(window.setImmediate=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];setTimeout(function(){return e(r)})});var J,K,Y,$,Q,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u?u:"undefined"!=typeof self?self:{},ee={},te={},a={},re={exports:{}},ne={exports:{}};function ae(){return J||(J=1,void 0===M||!M.version||0===M.version.indexOf("v0.")||0===M.version.indexOf("v1.")&&0!==M.version.indexOf("v1.8.")?ne.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,i,o=arguments.length;switch(o){case 0:case 1:return M.nextTick(e);case 2:return M.nextTick(function(){e.call(null,t)});case 3:return M.nextTick(function(){e.call(null,t,r)});case 4:return M.nextTick(function(){e.call(null,t,r,n)});default:for(a=new Array(o-1),i=0;i<a.length;)a[i++]=arguments[i];return M.nextTick(function(){e.apply(null,a)})}}}:ne.exports=M),ne.exports}function ie(){return Q?$:(Q=1,$=v.a)}var oe,se={exports:{}};function le(){return oe||(oe=1,n=(r=se).exports,a=w.a,(i=a.Buffer).from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=a:(e(a,n),n.Buffer=t),e(i,t),t.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},t.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=i(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},t.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},t.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}),se.exports;function e(e,t){for(var r in e)t[r]=e[r]}function t(e,t,r){return i(e,t,r)}var r,n,a,i}var fe,e={};function R(){return fe||(fe=1,e.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},e.isBoolean=function(e){return"boolean"==typeof e},e.isNull=function(e){return null===e},e.isNullOrUndefined=function(e){return null==e},e.isNumber=function(e){return"number"==typeof e},e.isString=function(e){return"string"==typeof e},e.isSymbol=function(e){return"symbol"==O(e)},e.isUndefined=function(e){return void 0===e},e.isRegExp=function(e){return"[object RegExp]"===t(e)},e.isObject=function(e){return"object"==O(e)&&null!==e},e.isDate=function(e){return"[object Date]"===t(e)},e.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},e.isFunction=function(e){return"function"==typeof e},e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==O(e)||void 0===e},e.isBuffer=w.a.Buffer.isBuffer),e;function t(e){return Object.prototype.toString.call(e)}}var de,pe,me={exports:{}},ye={exports:{}};function B(){if(!pe){pe=1;try{var e=hn(650);if("function"!=typeof e.inherits)throw"";me.exports=e.inherits}catch(e){me.exports=(de||(de=1,"function"==typeof Object.create?ye.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ye.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}),ye.exports)}}return me.exports}var ge,be,ve,we,_e,ke,Se,xe,Ce,Pe={exports:{}};function Ae(){if(ve)return be;ve=1;var i=ae();function o(e,t){e.emit("error",t)}return be={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(o,this,e)):i.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(o,r,e)):i.nextTick(o,r,e):t&&t(e)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function Te(){if(!Se){Se=1;var m=ae();ke=s;var i,c=!M.browser&&-1<["v0.10","v0.9."].indexOf(M.version.slice(0,5))?_:m.nextTick,e=(s.WritableState=o,Object.create(R()));e.inherits=B();var t,r={deprecate:_e?we:(_e=1,we=F.a.deprecate)},n=ie(),y=le().Buffer,g=(void 0!==N?N:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},a=Ae();e.inherits(s,n),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(o.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(t=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!t.call(this,e)||this===s&&e&&e._writableState instanceof o}})):t=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,r){var n,a,i,o,s,l,u,c,h,f=this._writableState,d=!1,p=!f.objectMode&&(p=e,y.isBuffer(p)||p instanceof g);return p&&!y.isBuffer(e)&&(h=e,e=y.from(h)),"function"==typeof t&&(r=t,t=null),t=p?"buffer":t||f.defaultEncoding,"function"!=typeof r&&(r=b),f.ended?(h=this,u=r,c=new Error("write after end"),h.emit("error",c),m.nextTick(u,c)):(p||(u=this,c=f,o=r,l=!(s=!0),null===(i=e)?l=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||c.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(u.emit("error",l),m.nextTick(o,l),s=!1),s))&&(f.pendingcb++,i=this,o=f,l=e,s=t,f=r,(e=p)||(a=l,n=s,a=o.objectMode||!1===o.decodeStrings||"string"!=typeof a?a:y.from(a,n),l!==a&&(e=!0,s="buffer",l=a)),n=o.objectMode?1:l.length,o.length+=n,(a=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:l,encoding:s,isBuf:e,callback:f,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(i,o,!1,n,l,s,f),d=a),d},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||d(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,t=r,(r=n).ending=!0,w(e,r),t&&(r.finished?m.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),s.prototype.destroy=a.destroy,s.prototype._undestroy=a.undestroy,s.prototype._destroy=function(e,t){this.end(),t(e)}}return ke;function h(a){var i=this;this.next=null,this.entry=null,this.finish=function(){var e=i,t=a,r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}}function b(){}function o(e,u){i=i||j(),e=e||{};var t=u instanceof i,r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),n=e.writableHighWaterMark,a=this.objectMode?16:16384,r=(this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!r,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,r,n,a,i,o,s,l;e=e,o=(t=u)._writableState,s=o.sync,l=o.writecb,(i=o).writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,e?(i=t,n=s,e=e,a=l,--(r=o).pendingcb,n?(m.nextTick(a,e),m.nextTick(w,i,r),i._writableState.errorEmitted=!0,i.emit("error",e)):(a(e),i._writableState.errorEmitted=!0,i.emit("error",e),w(i,r))):((n=p(o))||o.corked||o.bufferProcessing||!o.bufferedRequest||d(t,o),s?c(f,t,o,n,l):f(t,o,n,l))},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 h(this)}function s(e){if(i=i||j(),!(t.call(s,this)||this instanceof i))return new s(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),n.call(this)}function v(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function f(e,t,r,n){var a;r||(r=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,r.emit("drain"))),t.pendingcb--,n(),w(e,t)}function d(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),n=t.corkedRequestsFree;n.entry=r;for(var i=0,o=!0;r;)(a[i]=r).isBuf||(o=!1),r=r.next,i+=1;a.allBuffers=o,v(e,t,!0,t.length,a,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,l=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:s.length,s,l,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function p(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),w(t,r)})}function w(e,t){var r,n,a=p(t);return a&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,m.nextTick(l,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),a}}function j(){if(!Ce){Ce=1;var r=ae(),e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},t=(xe=l,Object.create(R())),n=(t.inherits=B(),Fe()),a=Te();t.inherits(l,n);for(var i=e(a.prototype),o=0;o<i.length;o++){var s=i[o];l.prototype[s]||(l.prototype[s]=a.prototype[s])}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}}return xe;function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(c,this)}function c(e){e.end()}}var Ee,Oe,De,Me,Ne,Re,Be,je,Le,Ie={};function ze(){var r,n;return Ee||(Ee=1,r=le().Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.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}},(Ie.StringDecoder=e).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},e.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},e.prototype.text=function(e,t){r=this,i=t;var r,n,a,i=(a=(o=e).length-1)<i?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-1),n):--a<i||-2===n?0:0<=(n=s(o[a]))?(0<n&&(r.lastNeed=n-2),n):!(--a<i||-2===n)&&0<=(n=s(o[a]))?(0<n&&(2===n?n=0:r.lastNeed=n-3),n):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var o=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},e.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}),Ie;function e(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||r.isEncoding!==n&&n(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=i,this.end=o,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=u,t=3;break;default:return this.write=c,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function i(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function o(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function l(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}}function Fe(){var y,i,g,b,r,h,f,e,v,o,s,t,l,n,u;return De||(De=1,y=ae(),Oe=d,g=function(){if(Y)return K;Y=1;var t={}.toString;return K=Array.isArray||function(e){return"[object Array]"==t.call(e)}}(),d.ReadableState=c,z.a.EventEmitter,b=function(e,t){return e.listeners(t).length},r=ie(),h=le().Buffer,f=(void 0!==N?N:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},(e=Object.create(R())).inherits=B(),t=F.a,v=void 0,v=t&&t.debuglog?t.debuglog("stream"):function(){},ge||(ge=1,t=Pe,l=le().Buffer,n=F.a,t.exports=(a.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},a.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},a.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},a.prototype.concat=function(e){if(0===this.length)return l.alloc(0);for(var t,r=l.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=a,n.data.copy(r,t),a+=n.data.length,n=n.next;return r},a),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})),s=Pe.exports,t=Ae(),e.inherits(d,r),u=["error","close","destroy","pause","resume"],Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),d.prototype.destroy=t.destroy,d.prototype._undestroy=t.undestroy,d.prototype._destroy=function(e,t){this.push(null),t(e)},d.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),p(this,e,t,!1,r)},d.prototype.unshift=function(e){return p(this,e,null,!0,!1)},d.prototype.isPaused=function(){return!1===this._readableState.flowing},d.prototype.setEncoding=function(e){return o=o||ze().StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this},d.prototype.read=function(e){v("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(v("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?E:_)(this),null):0===(e=w(e,r))&&r.ended?(0===r.length&&E(this),null):(t=r.needReadable,v("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&v("length less than watermark",t=!0),r.ended||r.reading?v("reading or ended",t=!1):t&&(v("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=w(n,r))),null===(t=0<e?T(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e)&&r.ended&&E(this),null!==t&&this.emit("data",t),t)},d.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},d.prototype.pipe=function(n,e){var a=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,v("pipe count=%d opts=%j",i.pipesCount,e);e=e&&!1===e.end||n===M.stdout||n===M.stderr?m:o;function o(){v("onend"),n.end()}i.endEmitted?y.nextTick(e):a.once("end",e),n.on("unpipe",function e(t,r){v("onunpipe"),t===a&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,v("cleanup"),n.removeListener("close",d),n.removeListener("finish",p),n.removeListener("drain",l),n.removeListener("error",f),n.removeListener("unpipe",e),a.removeListener("end",o),a.removeListener("end",m),a.removeListener("data",h),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||l())});t=a;var t,r,s,l=function(){var e=t._readableState;v("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&b(t,"data")&&(e.flowing=!0,A(t))},u=(n.on("drain",l),!1),c=!1;function h(e){v("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==D(i.pipes,n))&&!u&&(v("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),a.pause())}function f(e){v("onerror",e),m(),n.removeListener("error",f),0===b(n,"error")&&n.emit("error",e)}function d(){n.removeListener("finish",p),m()}function p(){v("onfinish"),n.removeListener("close",d),m()}function m(){v("unpipe"),a.unpipe(n)}return a.on("data",h),e="error",s=f,"function"==typeof(r=n).prependListener?r.prependListener(e,s):r._events&&r._events[e]?g(r._events[e])?r._events[e].unshift(s):r._events[e]=[s,r._events[e]]:r.on(e,s),n.once("close",d),n.once("finish",p),n.emit("pipe",a),i.flowing||(v("pipe resume"),a.resume()),n},d.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var n=D(t.pipes,e);-1!==n&&(t.pipes.splice(n,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var a=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)a[o].emit("unpipe",this,{hasUnpiped:!1})}return this},d.prototype.addListener=d.prototype.on=function(e,t){t=r.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&_(this):y.nextTick(C,this)),t},d.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(v("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,y.nextTick(P,e,t))),this},d.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},d.prototype.wrap=function(t){var e,r=this,n=this._readableState,a=!1;for(e in t.on("end",function(){var e;v("wrapped end"),n.decoder&&!n.ended&&(e=n.decoder.end())&&e.length&&r.push(e),r.push(null)}),t.on("data",function(e){v("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&!r.push(e)&&(a=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<u.length;i++)t.on(u[i],this.emit.bind(this,u[i]));return this._read=function(e){v("wrapped _read",e),a&&(a=!1,t.resume())},this},Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),d._fromList=T),Oe;function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}function c(e,t){e=e||{};var t=t instanceof(i=i||j()),r=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),n=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:t&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||ze().StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function d(e){if(i=i||j(),!(this instanceof d))return new d(e);this._readableState=new c(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),r.call(this)}function p(e,t,r,n,a){var i,o,s,l,u,c=e._readableState;return null===t?(c.reading=!1,s=e,(l=c).ended||(l.decoder&&(u=l.decoder.end())&&u.length&&(l.buffer.push(u),l.length+=l.objectMode?1:u.length),l.ended=!0,_(s))):(a||(u=c,s=l=t,i=o=h.isBuffer(s)||s instanceof f||"string"==typeof l||void 0===l||u.objectMode?o:new TypeError("Invalid non-string/buffer chunk")),i?e.emit("error",i):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===h.prototype||(a=t,t=h.from(a)),n?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,!c.decoder||r||(t=c.decoder.write(t),c.objectMode)||0!==t.length?m(e,c,t,!1):S(e,c))):n||(c.reading=!1)),!c.ended&&(c.needReadable||c.length<c.highWaterMark||0===c.length)}function m(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&_(e)),S(e,t)}function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(k,e):k(e))}function k(e){v("emit readable"),e.emit("readable"),A(e)}function S(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(v("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function C(e){v("readable nexttick read 0"),e.read(0)}function P(e,t){t.reading||(v("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(v("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?a=t.buffer.shift():!e||e>=t.length?(a=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(n=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):n=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,n=1,a=r.data;for(e-=a.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++n}return t.length-=n,a}:function(e,t){var r=h.allocUnsafe(e),n=t.head,a=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0==(e-=o)){o===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=i.slice(o);break}++a}return t.length-=a,r})(e,r),a=n),a);var r,n,a}function E(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,y.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function D(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}}function Ue(){var n,e;return Ne||(Ne=1,Me=t,n=j(),(e=Object.create(R())).inherits=B(),e.inherits(t,n),t.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},t.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},t.prototype._write=function(e,t,r){var n=this._transformState;n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},t.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},t.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}),Me;function t(e){if(!(this instanceof t))return new t(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.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",r)}function r(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){a(r,e,t)}):a(this,null,null)}function a(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}}function We(){return je||(je=1,n=(e=re).exports,a=v.a,"disable"===M.env.READABLE_STREAM&&a?(e.exports=a,(n=e.exports=a.Readable).Readable=a.Readable,n.Writable=a.Writable,n.Duplex=a.Duplex,n.Transform=a.Transform,n.PassThrough=a.PassThrough,n.Stream=a):((n=e.exports=Fe()).Stream=a||n,(n.Readable=n).Writable=Te(),n.Duplex=j(),n.Transform=Ue(),n.PassThrough=(Be||(Be=1,Re=t,r=Ue(),(e=Object.create(R())).inherits=B(),e.inherits(t,r),t.prototype._transform=function(e,t,r){r(null,e)}),Re))),re.exports;function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}var r,e,n,a}function p(){if(!Le){if(Le=1,a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,a.nodebuffer=void 0!==h,a.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)a.blob=!1;else{var t=new ArrayBuffer(0);try{a.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(t),a.blob=0===r.getBlob("application/zip").size}catch(t){a.blob=!1}}}try{a.nodestream=!!We().Readable}catch(t){a.nodestream=!1}}return a}var He,qe,Ze,Ve,Xe,Ge,Je,Ke,Ye,$e={};function Qe(){var h,c,f;return He||(He=1,h=D(),c=p(),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",$e.encode=function(e){for(var t,r,n,a,i,o,s=[],l=0,u=e.length,c="string"!==h.getTypeOf(e);l<e.length;)o=u-l,n=c?(t=e[l++],r=l<u?e[l++]:0,l<u?e[l++]:0):(t=e.charCodeAt(l++),r=l<u?e.charCodeAt(l++):0,l<u?e.charCodeAt(l++):0),a=(3&t)<<4|r>>4,i=1<o?(15&r)<<2|n>>6:64,o=2<o?63&n:64,s.push(f.charAt(t>>2)+f.charAt(a)+f.charAt(i)+f.charAt(o));return s.join("")},$e.decode=function(e){var t,r,n,a,i,o=0,s=0;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var l,u=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===f.charAt(64)&&u--,e.charAt(e.length-2)===f.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=new(c.uint8array?Uint8Array:Array)(0|u);o<e.length;)t=f.indexOf(e.charAt(o++))<<2|(a=f.indexOf(e.charAt(o++)))>>4,r=(15&a)<<4|(a=f.indexOf(e.charAt(o++)))>>2,n=(3&a)<<6|(i=f.indexOf(e.charAt(o++))),l[s++]=t,64!==a&&(l[s++]=r),64!==i&&(l[s++]=n);return l}),$e}function et(){return Ze?qe:(Ze=1,qe={isNode:void 0!==h,newBufferFrom:function(e,t){if(h.from&&h.from!==Uint8Array.from)return h.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new h(e,t)},allocBuffer:function(e){return h.alloc?h.alloc(e):((e=new h(e)).fill(0),e)},isBuffer:function(e){return h.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}})}function m(){var e,a,l,i,o,n,s;return Ye?Ke:(Ye=1,e="undefined"!=typeof Promise?Promise:(Je||(Je=1,a=function(){if(Xe)return Ve;Xe=1;var n,e,t,r,a=N.MutationObserver||N.WebKitMutationObserver,i=M.browser?a?(e=0,a=new a(s),t=N.document.createTextNode(""),a.observe(t,{characterData:!0}),function(){t.data=e=++e%2}):N.setImmediate||void 0===N.MessageChannel?"document"in N&&"onreadystatechange"in N.document.createElement("script")?function(){var e=N.document.createElement("script");e.onreadystatechange=function(){s(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},N.document.documentElement.appendChild(e)}:function(){setTimeout(s,0)}:((r=new N.MessageChannel).port1.onmessage=s,function(){r.port2.postMessage(0)}):function(){M.nextTick(s)},o=[];function s(){var e,t;n=!0;for(var r=o.length;r;){for(t=o,o=[],e=-1;++e<r;)t[e]();r=o.length}n=!1}return Ve=function(e){1!==o.push(e)||n||i()}}(),l={},i=["REJECTED"],o=["FULFILLED"],n=["PENDING"],M.browser||(s=["UNHANDLED"]),(Ge=t).prototype.finally=function(t){var r;return"function"!=typeof t?this:(r=this.constructor,this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}))},t.prototype.catch=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r;return"function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===i?this:(r=new this.constructor(u),M.browser||this.handled===s&&(this.handled=null),this.state!==n?h(r,this.state===o?e:t,this.outcome):this.queue.push(new c(r,e,t)),r)},c.prototype.callFulfilled=function(e){l.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){l.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},l.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return l.reject(e,r.value);r=r.value;if(r)d(e,r);else{e.state=o,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e},l.reject=function(e,t){e.state=i,e.outcome=t,M.browser||e.handled===s&&a(function(){e.handled===s&&M.emit("unhandledRejection",t,e)});for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},t.resolve=function(e){return e instanceof this?e:l.resolve(new this(u),e)},t.reject=function(e){var t=new this(u);return l.reject(t,e)},t.all=function(e){var r=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,a=!1;if(!n)return this.resolve([]);for(var i=new Array(n),o=0,t=-1,s=new this(u);++t<n;)!function(e,t){r.resolve(e).then(function(e){i[t]=e,++o!==n||a||(a=!0,l.resolve(s,i))},function(e){a||(a=!0,l.reject(s,e))})}(e[t],t);return s},t.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,a=-1,i=new this(u);++a<t;)n=e[a],this.resolve(n).then(function(e){r||(r=!0,l.resolve(i,e))},function(e){r||(r=!0,l.reject(i,e))});return i}),Ge),Ke={Promise:e});function u(){}function t(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,M.browser||(this.handled=s),e!==u&&d(this,e)}function c(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(t,r,n){a(function(){var e;try{e=r(n)}catch(e){return l.reject(t,e)}e===t?l.reject(t,new TypeError("Cannot resolve promise with itself")):l.resolve(t,e)})}function f(e){var t=e&&e.then;if(e&&("object"==O(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(t,e){var r=!1;function n(e){r||(r=!0,l.reject(t,e))}function a(e){r||(r=!0,l.resolve(t,e))}var i=p(function(){e(a,n)});"error"===i.status&&n(i.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}}var tt,rt,nt,at,it,ot,st,lt,ut,ct,ht;function ft(){function a(e){delete l[e]}function i(e){if(u)setTimeout(i,0,e);else{var t=l[e];if(t){u=!0;try{var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(void 0,n)}}finally{a(e),u=!1}}}}var r,n,t,o,e,s,l,u,c,h,f;tt||(tt=1,(r="undefined"==typeof self?N:self).setImmediate)||(s=1,u=!(l={}),c=r.document,h=(h=Object.getPrototypeOf&&Object.getPrototypeOf(r))&&h.setTimeout?h:r,f="[object process]"==={}.toString.call(r.process)?function(e){M.nextTick(function(){i(e)})}:function(){var e,t;if(r.postMessage&&!r.importScripts)return e=!0,t=r.onmessage,r.onmessage=function(){e=!1},r.postMessage("","*"),r.onmessage=t,e}()?(o="setImmediate$"+Math.random()+"$",e=function(e){e.source===r&&"string"==typeof e.data&&0===e.data.indexOf(o)&&i(+e.data.slice(o.length))},r.addEventListener?r.addEventListener("message",e,!1):r.attachEvent("onmessage",e),function(e){r.postMessage(o+e,"*")}):r.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){i(e.data)},function(e){t.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){i(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(i,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return l[s]={callback:e,args:t},f(s),s++},h.clearImmediate=a)}function D(){return rt||(rt=1,s=te,l=p(),u=Qe(),n=et(),c=m(),ft(),s.newBlob=function(t,r){s.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}},a={stringifyByChunk:function(e,t,r){var n=[],a=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;a<i;)n.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,i))):String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,i)))),a+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&1===String.fromCharCode.apply(null,n.allocBuffer(1)).length}catch(e){return!1}}()}},s.applyFromCharCode=t,(i={}).string={string:e,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return i.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,n.allocBuffer(e.length))}},i.array={string:t,array:e,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},i.arraybuffer={string:function(e){return t(new Uint8Array(e))},array:function(e){return r(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:e,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},i.uint8array={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:e,nodebuffer:function(e){return n.newBufferFrom(e)}},i.nodebuffer={string:t,array:function(e){return r(e,new Array(e.length))},arraybuffer:function(e){return i.nodebuffer.uint8array(e).buffer},uint8array:function(e){return r(e,new Uint8Array(e.length))},nodebuffer:e},s.transformTo=function(e,t){if(t=t||"",!e)return t;s.checkSupport(e);var r=s.getTypeOf(t);return i[r][e](t)},s.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var a=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},s.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&e instanceof Uint8Array?"uint8array":l.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(e){for(var t,r="",n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},s.delay=function(e,t,r){_(function(){e.apply(r||null,t||[])})},s.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},s.extend=function(){for(var e,t={},r=0;r<arguments.length;r++)for(e in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],e)&&void 0===t[e]&&(t[e]=arguments[r][e]);return t},s.prepareContent=function(r,e,n,a,i){return c.Promise.resolve(e).then(function(n){return l.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new c.Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e.target.error)},e.readAsArrayBuffer(n)}):n}).then(function(e){var t=s.getTypeOf(e);return t?("arraybuffer"===t?e=s.transformTo("uint8array",e):"string"===t&&(i?e=u.decode(e):n&&!0!==a&&(e=o(t=e,new(l.uint8array?Uint8Array:Array)(t.length)))),e):c.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}),te;function e(e){return e}function o(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}function t(e){var t=65536,r=s.getTypeOf(e),n=!0;if("uint8array"===r?n=a.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=a.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return a.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return a.stringifyByChar(e)}function r(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var s,l,u,n,c,a,i}function L(){return at?nt:(at=1,e.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},nt=e);function e(e){this.name=e||"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 I(){if(!it){it=1;for(var a=ee,l=D(),u=p(),c=et(),e=L(),h=new Array(256),t=0;t<256;t++)h[t]=252<=t?6:248<=t?5:240<=t?4:224<=t?3:192<=t?2:1;function r(){e.call(this,"utf-8 decode"),this.leftOver=null}function n(){e.call(this,"utf-8 encode")}h[254]=h[254]=1,a.utf8encode=function(e){if(u.nodebuffer)return c.newBufferFrom(e,"utf-8");for(var t,r,n,a,i=e,o=i.length,s=0,l=0;l<o;l++)55296==(64512&(r=i.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=i.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(u.uint8array?Uint8Array:Array)(s),l=a=0;a<s;l++)55296==(64512&(r=i.charCodeAt(l)))&&l+1<o&&56320==(64512&(n=i.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},a.utf8decode=function(e){if(u.nodebuffer)return l.transformTo("nodebuffer",e).toString("utf-8");for(var t,r,n=e=l.transformTo(u.uint8array?"uint8array":"array",e),a=n.length,i=new Array(2*a),o=0,s=0;s<a;)if((t=n[s++])<128)i[o++]=t;else if(4<(r=h[t]))i[o++]=65533,s+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&s<a;)t=t<<6|63&n[s++],r--;1<r?i[o++]=65533:t<65536?i[o++]=t:(t-=65536,i[o++]=55296|t>>10&1023,i[o++]=56320|1023&t)}return i.length!==o&&(i.subarray?i=i.subarray(0,o):i.length=o),l.applyFromCharCode(i)},l.inherits(r,e),r.prototype.processChunk=function(e){var t=l.transformTo(u.uint8array?"uint8array":"array",e.data),r=(this.leftOver&&this.leftOver.length&&(u.uint8array?(r=t,(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+h[e[r]]>t?r:t}(t)),n=t;r!==t.length&&(u.uint8array?(n=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(n=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:a.utf8decode(n),meta:e.meta})},r.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=r,l.inherits(n,e),n.prototype.processChunk=function(e){this.push({data:a.utf8encode(e.data),meta:e.meta})},a.Utf8EncodeWorker=n}return ee}function dt(){if(ht)return ct;ht=1;var u=D(),a=function(){if(st)return ot;st=1;var t=L(),r=D();function e(e){t.call(this,"ConvertWorker to "+e),this.destType=e}return r.inherits(e,t),e.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},ot=e}(),i=L(),c=Qe(),e=p(),t=m(),r=null;if(e.nodestream)try{r=function(){if(ut)return lt;ut=1;var a=We().Readable;function e(e,t,r){a.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}return D().inherits(e,a),e.prototype._read=function(){this._helper.resume()},lt=e}()}catch(u){}function n(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,u.checkSupport(n),this._worker=e.pipe(new a(n)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}return n.prototype={accumulate:function(e){return s=this,l=e,new t.Promise(function(t,r){var n=[],a=s._internalType,i=s._outputType,o=s._mimeType;s.on("data",function(e,t){n.push(e),l&&l(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return u.newBlob(u.transformTo("arraybuffer",t),r);case"base64":return c.encode(t);default:return u.transformTo(e,t)}}(i,function(e,t){for(var r=0,n=null,a=0,i=0;i<t.length;i++)a+=t[i].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),i=0;i<t.length;i++)n.set(t[i],r),r+=t[i].length;return n;case"nodebuffer":return h.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,n),o);t(e)}catch(e){r(e)}n=[]}).resume()});var s,l},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){u.delay(t,arguments,r)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(u.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new r(this,{objectMode:"nodebuffer"!==this._outputType},e)}},ct=n}var pt,mt,yt,gt,bt,vt,wt,_t,kt,St,xt,Ct,Pt,t={};function At(){return pt||(pt=1,t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null),t}function Tt(){if(yt)return mt;yt=1;var r=D(),n=L();function e(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}return r.inherits(e,n),e.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},mt=e}function Et(){if(bt)return gt;bt=1;var r=D(),o=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();return gt=function(e,t){return void 0!==e&&e.length?("string"!==r.getTypeOf(e)?function(e,t,r){var n=o,a=0+r;e^=-1;for(var i=0;i<a;i++)e=e>>>8^n[255&(e^t[i])];return-1^e}:function(e,t,r){var n=o,a=0+r;e^=-1;for(var i=0;i<a;i++)e=e>>>8^n[255&(e^t.charCodeAt(i))];return-1^e})(0|t,e,e.length):0}}function Ot(){if(wt)return vt;wt=1;var e=L(),t=Et();function r(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}return D().inherits(r,e),r.prototype.processChunk=function(e){this.streamInfo.crc32=t(e.data,this.streamInfo.crc32||0),this.push(e)},vt=r}function Dt(){if(xt)return St;xt=1;var r=m(),n=Tt(),a=Ot(),i=function(){if(kt)return _t;kt=1;var e=D(),r=L();function t(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}return e.inherits(t,r),t.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),r.prototype.processChunk.call(this,e)},_t=t}();function e(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}return e.prototype={getContentWorker:function(){var e=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},e.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new i("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},St=e}var Mt,Nt={},Rt={},Bt={},jt={};function ue(){return Mt||(Mt=1,t=jt,e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,t.assign=function(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;){var a=n.shift();if(a){if("object"!=O(a))throw new TypeError(a+"must be non-object");for(var i in a)t=a,r=i,Object.prototype.hasOwnProperty.call(t,r)&&(e[i]=a[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},r={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){for(var t,r,n,a=0,i=0,o=e.length;i<o;i++)a+=e[i].length;for(n=new Uint8Array(a),i=t=0,o=e.length;i<o;i++)r=e[i],n.set(r,t),t+=r.length;return n}},n={arraySet:function(e,t,r,n,a){for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}},t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,n))},t.setTyped(e)),jt;var t,e,r,n}var Lt,It,zt,Ft,Ut,Wt,Ht,qt,c={},ce={},he={};function Zt(){return zt?It:(zt=1,It=function(e,t,r,n){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;i=i+(a=a+t[n++]|0)|0,--o;);a%=65521,i%=65521}return a|i<<16|0})}function Vt(){if(Ut)return Ft;Ut=1;var s=function(){for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();return Ft=function(e,t,r,n){var a=s,i=n+r;e^=-1;for(var o=n;o<i;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}}function Xt(){return Ht?Wt:(Ht=1,Wt={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"})}function Gt(){var h,s,f,d,n,c,m,y,l,i,p,u,g,C,b,v,z,w,_,k,S,x,P,F,U,W,A,T,E;return qt||(qt=1,h=ue(),Lt||(Lt=1,i=ue(),p=256,u=286,g=30,b=[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],v=[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],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,C=15],e(_=new Array(576)),e(k=new Array(60)),e(S=new Array(512)),e(x=new Array(256)),e(P=new Array(29)),e(A=new Array(g)),T=!1,he._tr_init=function(e){if(!T){for(var t,r,n,a=new Array(16),i=0,o=0;o<28;o++)for(P[o]=i,t=0;t<1<<b[o];t++)x[i++]=o;for(x[i-1]=o,o=n=0;o<16;o++)for(A[o]=n,t=0;t<1<<v[o];t++)S[n++]=o;for(n>>=7;o<g;o++)for(A[o]=n<<7,t=0;t<1<<v[o]-7;t++)S[256+n++]=o;for(r=0;r<=C;r++)a[r]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,a[8]++;for(;t<=255;)_[2*t+1]=9,t++,a[9]++;for(;t<=279;)_[2*t+1]=7,t++,a[7]++;for(;t<=287;)_[2*t+1]=8,t++,a[8]++;for(X(_,287,a),t=0;t<g;t++)k[2*t+1]=5,k[2*t]=V(t,5);F=new H(_,b,257,u,C),U=new H(k,v,0,g,C),W=new H(new Array(0),z,0,19,7),T=!0}e.l_desc=new q(e.dyn_ltree,F),e.d_desc=new q(e.dyn_dtree,U),e.bl_desc=new q(e.bl_tree,W),e.bi_buf=0,e.bi_valid=0,G(e)},he._tr_stored_block=te,he._tr_flush_block=function(e,t,r,n){var a,i,o,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<p;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}(e)),$(e,e.l_desc),$(e,e.d_desc),s=function(e){var t;for(Q(e,e.dyn_ltree,e.l_desc.max_code),Q(e,e.dyn_dtree,e.d_desc.max_code),$(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*w[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=r+5,r+4<=a&&-1!==t)te(e,t,r,n);else if(4===e.strategy||i===a)O(e,2+(n?1:0),3),Y(e,_,k);else{O(e,4+(n?1:0),3);var l=e,u=(t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,s+1);for(O(l,t-257,5),O(l,r-1,5),O(l,u-4,4),o=0;o<u;o++)O(l,l.bl_tree[2*w[o]+1],3);ee(l,l.dyn_ltree,t-1),ee(l,l.dyn_dtree,r-1),Y(e,e.dyn_ltree,e.dyn_dtree)}G(e),n&&J(e)},he._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(x[r]+p+1)]++,e.dyn_dtree[2*Z(t)]++),e.last_lit===e.lit_bufsize-1},he._tr_align=function(e){O(e,2,3),D(e,256,_),16===(e=e).bi_valid?(a(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}),s=he,f=Zt(),d=Vt(),n=Xt(),c=-2,m=258,y=262,l=113,E=[new r(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(I(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,B(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-y&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(B(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out),1)}),new r(4,4,8,4,ae),new r(4,5,16,8,ae),new r(4,6,32,32,ae),new r(4,4,16,16,t),new r(8,16,32,32,t),new r(8,16,128,128,t),new r(8,32,128,256,t),new r(32,128,258,1024,t),new r(32,258,258,4096,t)],ce.deflateInit=function(e,t){return le(e,t,8,15,8,0)},ce.deflateInit2=le,ce.deflateReset=se,ce.deflateResetKeep=oe,ce.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?c:(e.state.gzhead=t,0)},ce.deflate=function(e,t){var r,n,a,i;if(!e||!e.state||5<t||t<0)return e?M(e,c):c;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return M(e,0===e.avail_out?-5:c);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status&&(2===n.wrap?(e.adler=0,j(n,31),j(n,139),j(n,8),n.gzhead?(j(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)),j(n,255&n.gzhead.time),j(n,n.gzhead.time>>8&255),j(n,n.gzhead.time>>16&255),j(n,n.gzhead.time>>24&255),j(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),j(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(j(n,255&n.gzhead.extra.length),j(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=d(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(j(n,0),j(n,0),j(n,0),j(n,0),j(n,0),j(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),j(n,3),n.status=l)):(o=8+(n.w_bits-8<<4)<<8,o|=(2<=n.strategy||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=l,L(n,o),0!==n.strstart&&(L(n,e.adler>>>16),L(n,65535&e.adler)),e.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending!==n.pending_buf_size));)j(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}}while(i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,j(n,i),0!==i);n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}}while(i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,j(n,i),0!==i);n.gzhead.hcrc&&n.pending>a&&(e.adler=d(e.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&R(e),n.pending+2<=n.pending_buf_size&&(j(n,255&e.adler),j(n,e.adler>>8&255),e.adler=0,n.status=l)):n.status=l),0!==n.pending){if(R(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&re(t)<=re(r)&&4!==t)return M(e,-5);if(666===n.status&&0!==e.avail_in)return M(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(I(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,a,i,o=e.window;;){if(e.lookahead<=m){if(I(e),e.lookahead<=m&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(n=o[a=e.strstart-1])===o[++a]&&n===o[++a]&&n===o[++a]){for(i=e.strstart+m;n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&a<i;);e.match_length=m-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(r=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}(n,t):E[n.level].func(n,t);if(3!==o&&4!==o||(n.status=666),1===o||3===o)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===o&&(1===t?s._tr_align(n):5!==t&&(s._tr_stored_block(n,0,0,!1),3===t)&&(N(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),R(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t||!(n.wrap<=0)&&(2===n.wrap?(j(n,255&e.adler),j(n,e.adler>>8&255),j(n,e.adler>>16&255),j(n,e.adler>>24&255),j(n,255&e.total_in),j(n,e.total_in>>8&255),j(n,e.total_in>>16&255),j(n,e.total_in>>24&255)):(L(n,e.adler>>>16),L(n,65535&e.adler)),R(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?0:1},ce.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==l&&666!==t?M(e,c):(e.state=null,t===l?M(e,-3):0):c},ce.deflateSetDictionary=function(e,t){var r,n,a,i,o,s,l,u=t.length;if(!e||!e.state)return c;if(2===(i=(r=e.state).wrap)||1===i&&42!==r.status||r.lookahead)return c;for(1===i&&(e.adler=f(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===i&&(N(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new h.Buf8(r.w_size),h.arraySet(l,t,u-r.w_size,r.w_size,0),t=l,u=r.w_size),l=e.avail_in,o=e.next_in,s=e.input,e.avail_in=u,e.next_in=0,e.input=t,I(r);3<=r.lookahead;){for(n=r.strstart,a=r.lookahead-2;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++,--a;);r.strstart=n,r.lookahead=2,I(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,e.next_in=o,e.input=s,e.avail_in=l,r.wrap=i,0},ce.deflateInfo="pako deflate (from Nodeca project)"),ce;function e(e){for(var t=e.length;0<=--t;)e[t]=0}function H(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function q(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Z(e){return e<256?S[e]:S[256+(e>>>7)]}function a(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,a(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function D(e,t,r){O(e,r[2*t],r[2*t+1])}function V(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function X(e,t,r){for(var n,a=new Array(16),i=0,o=1;o<=C;o++)a[o]=i=i+r[o-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=V(a[s]++,s))}}function G(e){for(var t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<g;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function J(e){8<e.bi_valid?a(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function o(e,t,r,n){var a=2*t,i=2*r;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]}function K(e,t,r){for(var n=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&o(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!o(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}function Y(e,t,r){var n,a,i,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],a=e.pending_buf[e.l_buf+s],s++,0==n?D(e,a,t):(D(e,(i=x[a])+p+1,t),0!==(o=b[i])&&O(e,a-=P[i],o),D(e,i=Z(--n),r),0!==(o=v[i])&&O(e,n-=A[i],o)),s<e.last_lit;);D(e,256,t)}function $(e,t){var r,n,a,i=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)K(e,i,r);for(a=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,K(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var c,h,f,d,p,m=e,y=t.dyn_tree,g=t.max_code,b=t.stat_desc.static_tree,v=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,k=t.stat_desc.max_length,S=0,x=0;x<=C;x++)m.bl_count[x]=0;for(y[2*m.heap[m.heap_max]+1]=0,c=m.heap_max+1;c<573;c++)(x=y[2*y[2*(h=m.heap[c])+1]+1]+1)>k&&(x=k,S++),y[2*h+1]=x,g<h||(m.bl_count[x]++,d=0,_<=h&&(d=w[h-_]),p=y[2*h],m.opt_len+=p*(x+d),v&&(m.static_len+=p*(b[2*h+1]+d)));if(0!==S){do{for(x=k-1;0===m.bl_count[x];)x--}while(m.bl_count[x]--,m.bl_count[x+1]+=2,m.bl_count[k]--,0<(S-=2));for(x=k;0!==x;x--)for(h=m.bl_count[x];0!==h;)(f=m.heap[--c])>g||(y[2*f+1]!==x&&(m.opt_len+=(x-y[2*f+1])*y[2*f],y[2*f+1]=x),h--)}X(i,u,e.bl_count)}function Q(e,t,r){var n,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<u?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4))}function ee(e,t,r){var n,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<u)for(;D(e,a,e.bl_tree),0!=--s;);else 0!==a?(a!==i&&(D(e,a,e.bl_tree),s--),D(e,16,e.bl_tree),O(e,s-3,2)):s<=10?(D(e,17,e.bl_tree),O(e,s-3,3)):(D(e,18,e.bl_tree),O(e,s-11,7));i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4)}}function te(e,t,r,n){O(e,0+(n?1:0),3),n=t,t=r,J(r=e),a(r,t),a(r,~t),i.arraySet(r.pending_buf,r.window,n,t,r.pending),r.pending+=t}function M(e,t){return e.msg=n[t],t}function re(e){return(e<<1)-(4<e?9:0)}function N(e){for(var t=e.length;0<=--t;)e[t]=0}function R(e){var t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(h.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending)&&(t.pending_out=0)}function B(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function j(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ne(e,t){var r,n,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-y?e.strstart-(e.w_size-y):0,u=e.window,c=e.w_mask,h=e.prev,f=e.strstart+m,d=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===d&&u[r]===u[i]&&u[++r]===u[i+1]){for(i+=2,r++;u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&i<f;);if(n=m-(f-i),i=f-m,o<n){if(e.match_start=t,s<=(o=n))break;d=u[i+o-1],p=u[i+o]}}}while((t=h[t&c])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function I(e){var t,r,n,a,i,o,s,l,u,c=e.w_size;do{if(l=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-y)){for(h.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=r=e.hash_size;n=e.head[--t],e.head[t]=c<=n?n-c:0,--r;);for(t=r=c;n=e.prev[--t],e.prev[t]=c<=n?n-c:0,--r;);l+=c}if(0===e.strm.avail_in)break;if(i=e.strm,o=e.window,s=e.strstart+e.lookahead,l=l,u=void 0,r=0===(u=(u=i.avail_in)>l?l:u)?0:(i.avail_in-=u,h.arraySet(o,i.input,i.next_in,u,s),1===i.state.wrap?i.adler=f(i.adler,o,u,s):2===i.state.wrap&&(i.adler=d(i.adler,o,u,s)),i.next_in+=u,i.total_in+=u,u),e.lookahead+=r,3<=e.lookahead+e.insert)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<y&&0!==e.strm.avail_in)}function ae(e,t){for(var r,n;;){if(e.lookahead<y){if(I(e),e.lookahead<y&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-y&&(e.match_length=ne(e,r)),3<=e.match_length)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(B(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}function t(e,t){for(var r,n,a;;){if(e.lookahead<y){if(I(e),e.lookahead<y&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-y&&(e.match_length=ne(e,r),e.match_length<=5)&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-3,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(B(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=s._tr_tally(e,0,e.window[e.strstart-1]))&&B(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(B(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?1:2}function r(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}function ie(){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 h.Buf16(1146),this.dyn_dtree=new h.Buf16(122),this.bl_tree=new h.Buf16(78),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(16),this.heap=new h.Buf16(573),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(573),N(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 oe(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:l,e.adler=2===t.wrap?0:1,t.last_flush=0,s._tr_init(t),0):M(e,c)}function se(e){var t=oe(e);return 0===t&&((e=e.state).window_size=2*e.w_size,N(e.head),e.max_lazy_match=E[e.level].max_lazy,e.good_match=E[e.level].good_length,e.nice_match=E[e.level].nice_length,e.max_chain_length=E[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),t}function le(e,t,r,n,a,i){if(!e)return c;var o=1;if(-1===t&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),a<1||9<a||8!==r||n<8||15<n||t<0||9<t||i<0||4<i)return M(e,c);8===n&&(n=9);var s=new ie;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new h.Buf8(2*s.w_size),s.head=new h.Buf16(s.hash_size),s.prev=new h.Buf16(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new h.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=r,se(e)}}var Jt,Kt,Yt,$t,r={};function Qt(){if(!Jt){Jt=1;var l=ue(),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var u=new l.Buf8(256),e=0;e<256;e++)u[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;u[254]=u[254]=1,r.string2buf=function(e){for(var t,r,n,a,i=e.length,o=0,s=0;s<i;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<i&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new l.Buf8(o),s=a=0;a<o;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<i&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new l.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){for(var r,n,a=t||e.length,i=new Array(2*a),o=0,s=0;s<a;)if((r=e[s++])<128)i[o++]=r;else if(4<(n=u[r]))i[o++]=65533,s+=n-1;else{for(r&=2===n?31:3===n?15:7;1<n&&s<a;)r=r<<6|63&e[s++],n--;1<n?i[o++]=65533:r<65536?i[o++]=r:(r-=65536,i[o++]=55296|r>>10&1023,i[o++]=56320|1023&r)}return c(i,o)},r.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+u[e[r]]>t?r:t}}return r;function c(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}}function er(){return Yt?Kt:(Yt=1,Kt=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})}var tr,rr,nr,ar,ir,or,sr,lr,ur,cr,hr,fr,dr,pr,y={},g={};function mr(){return sr?or:or={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:sr=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}}function yr(){var h,f,d,p,r,n,a,m,D,M,N,R,B,j,L,I,z;return cr||(cr=1,ir||(ir=1,D=ue(),M=Zt(),N=Vt(),R=rr?tr:(rr=1,tr=function(e,t){var r,n,a,i,o,s,l=e.state,u=e.next_in,c=e.input,h=u+(e.avail_in-5),f=e.next_out,d=e.output,p=f-(t-e.avail_out),m=f+(e.avail_out-257),y=l.dmax,g=l.wsize,b=l.whave,v=l.wnext,w=l.window,_=l.hold,k=l.bits,S=l.lencode,x=l.distcode,C=(1<<l.lenbits)-1,P=(1<<l.distbits)-1;e:do{for(k<15&&(_+=c[u++]<<k,k+=8,_+=c[u++]<<k,k+=8),r=S[_&C];;){if(_>>>=n=r>>>24,k-=n,0==(n=r>>>16&255))d[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=S[(65535&r)+(_&(1<<n)-1)];continue}if(32&n){l.mode=12;break e}e.msg="invalid literal/length code",l.mode=30;break e}for(a=65535&r,(n&=15)&&(k<n&&(_+=c[u++]<<k,k+=8),a+=_&(1<<n)-1,_>>>=n,k-=n),k<15&&(_+=c[u++]<<k,k+=8,_+=c[u++]<<k,k+=8),r=x[_&P];;){if(_>>>=n=r>>>24,k-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=x[(65535&r)+(_&(1<<n)-1)];continue}e.msg="invalid distance code",l.mode=30;break e}if(i=65535&r,k<(n&=15)&&(_+=c[u++]<<k,(k+=8)<n)&&(_+=c[u++]<<k,k+=8),(i+=_&(1<<n)-1)>y){e.msg="invalid distance too far back",l.mode=30;break e}if(_>>>=n,k-=n,i>(n=f-p)){if((n=i-n)>b&&l.sane){e.msg="invalid distance too far back",l.mode=30;break e}if(s=w,(o=0)===v){if(o+=g-n,n<a){for(a-=n;d[f++]=w[o++],--n;);o=f-i,s=d}}else if(v<n){if(o+=g+v-n,(n-=v)<a){for(a-=n;d[f++]=w[o++],--n;);if(o=0,v<a){for(a-=n=v;d[f++]=w[o++],--n;);o=f-i,s=d}}}else if(o+=v-n,n<a){for(a-=n;d[f++]=w[o++],--n;);o=f-i,s=d}for(;2<a;)d[f++]=s[o++],d[f++]=s[o++],d[f++]=s[o++],a-=3;a&&(d[f++]=s[o++],1<a)&&(d[f++]=s[o++])}else{for(o=f-i;d[f++]=d[o++],d[f++]=d[o++],d[f++]=d[o++],2<(a-=3););a&&(d[f++]=d[o++],1<a)&&(d[f++]=d[o++])}break}}break}}while(u<h&&f<m);u-=a=k>>3,_&=(1<<(k-=a<<3))-1,e.next_in=u,e.next_out=f,e.avail_in=u<h?h-u+5:5-(u-h),e.avail_out=f<m?m-f+257:257-(f-m),l.hold=_,l.bits=k}),B=function(){if(ar)return nr;ar=1;var R=ue(),B=[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],j=[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],L=[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],I=[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];return nr=function(e,t,r,n,a,i,o,s){for(var l,u,c,h,f,d,p,m,y,g=s.bits,b=0,v=0,w=0,_=0,k=0,S=0,x=0,C=0,P=0,A=0,T=null,E=0,O=new R.Buf16(16),D=new R.Buf16(16),M=null,N=0,b=0;b<=15;b++)O[b]=0;for(v=0;v<n;v++)O[t[r+v]]++;for(k=g,_=15;1<=_&&0===O[_];_--);if(_<k&&(k=_),0===_)a[i++]=20971520,a[i++]=20971520,s.bits=1;else{for(w=1;w<_&&0===O[w];w++);for(k<w&&(k=w),b=C=1;b<=15;b++)if((C=(C<<1)-O[b])<0)return-1;if(0<C&&(0===e||1!==_))return-1;for(D[1]=0,b=1;b<15;b++)D[b+1]=D[b]+O[b];for(v=0;v<n;v++)0!==t[r+v]&&(o[D[t[r+v]]++]=v);if(d=0===e?(T=M=o,19):1===e?(T=B,E-=257,M=j,N-=257,256):(T=L,M=I,-1),b=w,f=i,x=v=A=0,c=-1,h=(P=1<<(S=k))-1,1===e&&852<P||2===e&&592<P)return 1;for(;;){for(y=o[v]<d?(m=0,o[v]):o[v]>d?(m=M[N+o[v]],T[E+o[v]]):(m=96,0),l=1<<(p=b-x),w=u=1<<S;a[f+(A>>x)+(u-=l)]=p<<24|m<<16|y|0,0!==u;);for(l=1<<b-1;A&l;)l>>=1;if(0!==l?A=(A&l-1)+l:A=0,v++,0==--O[b]){if(b===_)break;b=t[r+o[v]]}if(k<b&&(A&h)!==c){for(f+=w,C=1<<(S=b-(x=0===x?k:x));S+x<_&&!((C-=O[S+x])<=0);)S++,C<<=1;if(P+=1<<S,1===e&&852<P||2===e&&592<P)return 1;a[c=A&h]=k<<24|S<<16|f-i|0}}0!==A&&(a[f+A]=b-x<<24|64<<16|0),s.bits=k}return 0}}(),j=-2,z=!0,g.inflateReset=s,g.inflateReset2=l,g.inflateResetKeep=o,g.inflateInit=function(e){return t(e,15)},g.inflateInit2=t,g.inflate=function(e,t){var r,n,a,i,o,s,l,u,c,h,f,d,p,m,y,g,b,v,w,_,k,S,x,C,P=0,A=new D.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return j;12===(r=e.state).mode&&(r.mode=13),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,h=s,f=l,S=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap)r.mode=13;else{for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(2&r.wrap&&35615===u)A[r.check=0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0),c=u=0,r.mode=2;else if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31)e.msg="incorrect header check",r.mode=30;else if(8!=(15&u))e.msg="unknown compression method",r.mode=30;else{if(c-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,e.adler=r.check=1,r.mode=512&u?10:12,c=u=0}}break;case 2:for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(r.flags=u,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0)),c=u=0,r.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.head&&(r.head.time=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=N(r.check,A,4,0)),c=u=0,r.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0)),c=u=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(A[0]=255&u,A[1]=u>>>8&255,r.check=N(r.check,A,2,0)),c=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((d=(d=r.length)>s?s:d)&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),D.arraySet(r.head.extra,n,i,d,k)),512&r.flags&&(r.check=N(r.check,n,d,i)),s-=d,i+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;for(d=0;k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&d<s;);if(512&r.flags&&(r.check=N(r.check,n,d,i)),s-=d,i+=d,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;for(d=0;k=n[i+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k)),k&&d<s;);if(512&r.flags&&(r.check=N(r.check,n,d,i)),s-=d,i+=d,k)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}c=u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}e.adler=r.check=F(u),c=u=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=u,r.bits=c,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last)u>>>=7&c,c-=7&c,r.mode=27;else{for(;c<3;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}switch(r.last=1&u,--c,3&(u>>>=1)){case 0:r.mode=14;break;case 1:E=O=void 0;var E,O=r;if(z){for(L=new D.Buf32(512),I=new D.Buf32(32),E=0;E<144;)O.lens[E++]=8;for(;E<256;)O.lens[E++]=9;for(;E<280;)O.lens[E++]=7;for(;E<288;)O.lens[E++]=8;for(B(1,O.lens,0,288,L,0,O.work,{bits:9}),E=0;E<32;)O.lens[E++]=5;B(2,O.lens,0,32,I,0,O.work,{bits:5}),z=!1}if(O.lencode=L,O.lenbits=9,O.distcode=I,O.distbits=5,r.mode=20,6!==t)break;u>>>=2,c-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}u>>>=2,c-=2}break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,c=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(0===(d=l<(d=s<d?s:d)?l:d))break e;D.arraySet(a,n,i,d,o),s-=d,i+=d,l-=d,o+=d,r.length-=d}else r.mode=12;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(r.nlen=257+(31&u),u>>>=5,c-=5,r.ndist=1+(31&u),u>>>=5,c-=5,r.ncode=4+(15&u),u>>>=4,c-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.lens[T[r.have++]]=7&u,u>>>=3,c-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},S=B(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,S){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;g=(P=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&P,!((y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(b<16)u>>>=y,c-=y,r.lens[r.have++]=b;else{if(16===b){for(C=y+2;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(u>>>=y,c-=y,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===b){for(C=y+3;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}k=0,d=3+(7&(u>>>=y)),u>>>=3,c=c-y-3}else{for(C=y+7;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}k=0,d=11+(127&(u>>>=y)),u>>>=7,c=c-y-7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,x={bits:r.lenbits},S=B(1,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,S){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},S=B(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,S){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=s&&258<=l){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=u,r.bits=c,R(e,f),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(P=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,b=65535&P,!((y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(g&&0==(240&g)){for(v=y,w=g,_=b;g=(P=r.lencode[_+((u&(1<<v+w)-1)>>v)])>>>16&255,b=65535&P,!(v+(y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}u>>>=v,c-=v,r.back+=v}if(u>>>=y,c-=y,r.back+=y,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(C=r.extra;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(P=r.distcode[u&(1<<r.distbits)-1])>>>16&255,b=65535&P,!((y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(0==(240&g)){for(v=y,w=g,_=b;g=(P=r.distcode[_+((u&(1<<v+w)-1)>>v)])>>>16&255,b=65535&P,!(v+(y=P>>>24)<=c);){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}u>>>=v,c-=v,r.back+=v}if(u>>>=y,c-=y,r.back+=y,64&g){e.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(C=r.extra;c<C;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===l)break e;if(r.offset>(d=f-l)){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=a,p=o-r.offset,d=r.length;for(l-=d=l<d?l:d,r.length-=d;a[o++]=m[p++],--d;);0===r.length&&(r.mode=21);break;case 26:if(0===l)break e;a[o++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===s)break e;s--,u|=n[i++]<<c,c+=8}if(f-=l,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=(r.flags?N:M)(r.check,a,f,o-f)),f=l,(r.flags?u:F(u))!==r.check){e.msg="incorrect data check",r.mode=30;break}c=u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break e;s--,u+=n[i++]<<c,c+=8}if(u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}c=u=0}r.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;default:return j}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=u,r.bits=c,(r.wsize||f!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&U(e,e.output,e.next_out,f-e.avail_out),h-=e.avail_in,f-=e.avail_out,e.total_in+=h,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=(r.flags?N:M)(r.check,a,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),S=(0==h&&0===f||4===t)&&0===S?-5:S},g.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,0):j},g.inflateGetHeader=function(e,t){return!e||!e.state||0==(2&(e=e.state).wrap)?j:((e.head=t).done=!1,0)},g.inflateSetDictionary=function(e,t){var r,n=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?j:11===r.mode&&M(1,t,n,0)!==r.check?-3:U(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0)},g.inflateInfo="pako inflate (from Nodeca project)"),h=g,f=ue(),d=Qt(),p=mr(),r=Xt(),n=er(),a=ur?lr:(ur=1,lr=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}),m=Object.prototype.toString,u.prototype.push=function(e,t){var r,n,a,i,o,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?p.Z_FINISH:p.Z_NO_FLUSH,"string"==typeof e?s.input=d.binstring2buf(e):"[object ArrayBuffer]"===m.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new f.Buf8(l),s.next_out=0,s.avail_out=l),(r=(r=h.inflate(s,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&u?h.inflateSetDictionary(this.strm,u):r)===p.Z_BUF_ERROR&&!0===c&&(r=p.Z_OK,c=!1),r!==p.Z_STREAM_END&&r!==p.Z_OK)return this.onEnd(r),!(this.ended=!0)}while(!s.next_out||0!==s.avail_out&&r!==p.Z_STREAM_END&&(0!==s.avail_in||n!==p.Z_FINISH&&n!==p.Z_SYNC_FLUSH)||("string"===this.options.to?(a=d.utf8border(s.output,s.next_out),i=s.next_out-a,o=d.buf2string(s.output,a),s.next_out=i,s.avail_out=l-i,i&&f.arraySet(s.output,s.output,a,i,0),this.onData(o)):this.onData(f.shrinkBuf(s.output,s.next_out))),0===s.avail_in&&0===s.avail_out&&(c=!0),(0<s.avail_in||0===s.avail_out)&&r!==p.Z_STREAM_END);return(n=r===p.Z_STREAM_END?p.Z_FINISH:n)===p.Z_FINISH?(r=h.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===p.Z_OK):n!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(s.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===p.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},y.Inflate=u,y.inflate=c,y.inflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},y.ungzip=c),y;function F(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){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 D.Buf16(320),this.work=new D.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new D.Buf32(852),t.distcode=t.distdyn=new D.Buf32(592),t.sane=1,t.back=-1,0):j}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,o(e)):j}function l(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?j:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,s(e))}function t(e,t){var r;return e?(r=new i,(e.state=r).window=null,0!==(r=l(e,t))&&(e.state=null),r):j}function U(e,t,r,n){var a,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new D.Buf8(e.wsize)),n>=e.wsize?(D.arraySet(e.window,t,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):((a=e.wsize-e.wnext)>n&&(a=n),D.arraySet(e.window,t,r-n,a,e.wnext),(n-=a)?(D.arraySet(e.window,t,r-n,n,0),e.wnext=n,e.whave=e.wsize):(e.wnext+=a,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=a))),0}function u(e){if(!(this instanceof u))return new u(e);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0,h.inflateInit2(this.strm,t.windowBits));if(e!==p.Z_OK)throw new Error(r[e]);if(this.header=new a,h.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=d.string2buf(t.dictionary):"[object ArrayBuffer]"===m.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=h.inflateSetDictionary(this.strm,t.dictionary))!==p.Z_OK)throw new Error(r[e])}function c(e,t){t=new u(t);if(t.push(e,!0),t.err)throw t.msg||r[t.err];return t.result}}function gr(){var e,t,r,n,a,i;return pr||(pr=1,e=L(),Rt.STORE={magic:"\0\0",compressWorker:function(){return new e("STORE compression")},uncompressWorker:function(){return new e("STORE decompression")}},Rt.DEFLATE=(dr||(dr=1,t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=function(){if(fr)return hr;fr=1;var e=ue().assign;$t||($t=1,o=Gt(),s=ue(),l=Qt(),r=Xt(),n=er(),u=Object.prototype.toString,a.prototype.push=function(e,t){var r,n,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=l.string2buf(e):"[object ArrayBuffer]"===u.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new s.Buf8(i),a.next_out=0,a.avail_out=i),1!==(r=o.deflate(a,n))&&0!==r)return this.onEnd(r),!(this.ended=!0)}while(0!==a.avail_out&&(0!==a.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(l.buf2binstring(s.shrinkBuf(a.output,a.next_out))):this.onData(s.shrinkBuf(a.output,a.next_out))),(0<a.avail_in||0===a.avail_out)&&1!==r);return 4===n?(r=o.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),!(a.avail_out=0))},a.prototype.onData=function(e){this.chunks.push(e)},a.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},c.Deflate=a,c.deflate=i,c.deflateRaw=function(e,t){return(t=t||{}).raw=!0,i(e,t)},c.gzip=function(e,t){return(t=t||{}).gzip=!0,i(e,t)});var o,s,l,r,n,u,t={};function a(e){if(!(this instanceof a))return new a(e);this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0,o.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(0!==t)throw new Error(r[t]);if(e.header&&o.deflateSetHeader(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?l.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(t=o.deflateSetDictionary(this.strm,e)))throw new Error(r[t]);this._dict_set=!0}}function i(e,t){t=new a(t);if(t.push(e,!0),t.err)throw t.msg||r[t.err];return t.result}return e(t,c,yr(),mr()),hr=t}(),n=D(),a=L(),i=t?"uint8array":"array",Bt.magic="\b\0",n.inherits(o,a),o.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(n.transformTo(i,e.data),!1)},o.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},o.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},Bt.compressWorker=function(e){return new o("Deflate",e)},Bt.uncompressWorker=function(){return new o("Inflate",{})}),Bt)),Rt;function o(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}}var br,vr,wr,_r,kr,Sr,xr,Cr,Pr,Ar,Tr,Er,Or,Dr,Mr,Nr,Rr,Br,jr,Lr,Ir,zr,Fr,Ur,Wr,Hr,qr,Zr,i={};function Vr(){return br||(br=1,i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"),i}function Xr(){var u,r;return _r||(_r=1,u=gr(),r=function(){if(wr)return vr;wr=1;function n(e,t,r,n,a,i){var o=e.file,s=e.compression,l=i!==v.utf8encode,u=b.transformTo("string",i(o.name)),c=b.transformTo("string",v.utf8encode(o.name)),h=o.comment,i=b.transformTo("string",i(h)),f=b.transformTo("string",v.utf8encode(h)),d=c.length!==o.name.length,h=f.length!==h.length,p="",m=o.dir,y=o.date,g={crc32:0,compressedSize:0,uncompressedSize:0},r=(t&&!r||(g.crc32=e.crc32,g.compressedSize=e.compressedSize,g.uncompressedSize=e.uncompressedSize),0);return t&&(r|=8),l||!d&&!h||(r|=2048),t=e=0,m&&(e|=16),"UNIX"===a?(t=798,e|=(65535&((l=o.unixPermissions)?l:m?16893:33204))<<16):(t=20,e|=63&(o.dosPermissions||0)),a=y.getUTCHours(),a=(a=((a<<=6)|y.getUTCMinutes())<<5)|y.getUTCSeconds()/2,l=y.getUTCFullYear()-1980,l=(l=((l<<=4)|y.getUTCMonth()+1)<<5)|y.getUTCDate(),d&&(m=k(1,1)+k(w(u),4)+c,p+="up"+k(m.length,2)+m),h&&(o=k(1,1)+k(w(i),4)+f,p+="uc"+k(o.length,2)+o),y="",y=(y=(y=(y=(y=(y=(y=(y=(y=(y+="\n\0")+k(r,2))+s.magic)+k(a,2))+k(l,2))+k(g.crc32,4))+k(g.compressedSize,4))+k(g.uncompressedSize,4))+k(u.length,2))+k(p.length,2),{fileRecord:_.LOCAL_FILE_HEADER+y+u+p,dirRecord:_.CENTRAL_FILE_HEADER+k(t,2)+y+k(i.length,2)+"\0\0\0\0"+k(e,4)+k(n,4)+u+p+i}}var b=D(),a=L(),v=I(),w=Et(),_=Vr(),k=function(e,t){for(var r="",n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r};function e(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}return b.inherits(e,a),e.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},e.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},e.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:(t=e,_.DATA_DESCRIPTOR+k(t.crc32,4)+k(t.compressedSize,4)+k(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},e.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,r=function(e,t,r,n,a){a=b.transformTo("string",a(n));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+k(e,2)+k(e,2)+k(t,4)+k(r,4)+k(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},e.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},e.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},e.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},e.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},e.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},vr=e}(),Nt.generateWorker=function(e,o,t){var s=new r(o.streamFiles,t,o.platform,o.encodeFileName),l=0;try{e.forEach(function(e,t){l++;var r=function(e,t){e=e||t,t=u[e];if(t)return t;throw new Error(e+" is not a valid compression method !")}(t.options.compression,o.compression),n=t.options.compressionOptions||o.compressionOptions||{},a=t.dir,i=t.date;t._compressWorker(r,n).withStreamInfo("file",{name:e,dir:a,date:i,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(s)}),s.entriesCount=l}catch(e){s.error(e)}return s}),Nt}function Gr(){if(Ar)return Pr;Ar=1;var t=D();function e(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}return e.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return t.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},Pr=e}function Jr(){if(Er)return Tr;Er=1;var r=Gr();function e(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}return D().inherits(e,r),e.prototype.byteAt=function(e){return this.data[this.zero+e]},e.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},e.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),e=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&e===a[3]},e.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},Tr=e}function Kr(){if(Nr)return Mr;Nr=1;var t=Jr();function e(e){t.call(this,e)}return D().inherits(e,t),e.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},Mr=e}function Yr(){if(Lr)return jr;Lr=1;var r=D(),n=p(),a=Jr(),i=function(){if(Dr)return Or;Dr=1;var t=Gr();function e(e){t.call(this,e)}return D().inherits(e,t),e.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},e.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},e.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},e.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},Or=e}(),o=function(){if(Br)return Rr;Br=1;var t=Kr();function e(e){t.call(this,e)}return D().inherits(e,t),e.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},Rr=e}(),s=Kr();return jr=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new o(e):n.uint8array?new s(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new i(e)}}function $r(){if(Hr)return Wr;Hr=1;var l=D(),a=m(),t=I(),r=function(){if(Ur)return Fr;Ur=1;var t=Yr(),r=D(),n=Vr(),a=function(){if(zr)return Ir;zr=1;var r=Yr(),n=D(),a=Dt(),i=Et(),o=I(),s=gr(),l=p();function e(e,t){this.options=e,this.loadOptions=t}return e.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-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(null===(t=function(e){for(var t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&s[t].magic===e)return s[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var e;this.extraFields[1]&&(e=r(this.extraFields[1].value),this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(e){var t,r,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(a)},handleUTF8:function(){var e,t=l.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=n.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=n.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return!t||1!==(e=r(t.value)).readInt(1)||i(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return!t||1!==(e=r(t.value)).readInt(1)||i(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}},Ir=e}(),i=p();function e(e){this.files=[],this.loadOptions=e}return e.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index,e=(this.reader.setIndex(e),this.reader.readString(4)===t);return this.reader.setIndex(r),e},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 e=this.reader.readData(this.zipCommentLength),t=i.uint8array?"uint8array":"array",t=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):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");this.reader.setIndex(e);var t=e;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e);if(0<e)this.isSignature(t,n.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=t(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Fr=e}(),i=Ot(),n=et();return Wr=function(e,o){var s=this;return o=l.extend(o||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:t.utf8decode}),n.isNode&&n.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",e,!0,o.optimizedBinaryString,o.base64).then(function(e){var t=new r(o);return t.load(e),t}).then(function(e){var t=[a.Promise.resolve(e)],r=e.files;if(o.checkCRC32)for(var n=0;n<r.length;n++)t.push(function(n){return new a.Promise(function(e,t){var r=n.decompressed.getContentWorker().pipe(new i);r.on("error",function(e){t(e)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}(r[n]));return a.Promise.all(t)}).then(function(e){for(var e=e.shift(),t=e.files,r=0;r<t.length;r++){var n=t[r],a=n.fileNameStr,i=l.resolve(n.fileNameStr);s.file(i,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:o.createFolders}),n.dir||(s.file(i).unsafeOriginalName=a)}return e.zipComment.length&&(s.comment=e.zipComment),s})}}globalThis;var Qr,en,tn,rn,nn={exports:{}}.exports=(en=Zr?qr:(Zr=1,(l.prototype=function(){if(Cr)return xr;Cr=1;function s(e,t){return t=void 0!==t?t:c.createFolders,e=y(e),this.files[e]||m.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var a=I(),l=D(),u=L(),i=dt(),c=At(),h=Dt(),f=function(){if(Pt)return Ct;Pt=1;function e(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=dt(),t=Tt(),o=I(),n=Dt(),s=L();e.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r,a=("binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker(),!this._dataBinary);a&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var r;return this._data instanceof n&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(r=this._decompressWorker(),this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),n.createWorkerFrom(r,e,t))},_decompressWorker:function(){return this._data instanceof n?this._data.getContentWorker():this._data instanceof s?this._data:new t(this._data)}};for(var r=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],a=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<r.length;l++)e.prototype[r[l]]=a;return Ct=e}(),o=Xr(),d=et(),p=function(){if(Sr)return kr;Sr=1;var e=D(),r=L();function t(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}return e.inherits(t,r),t.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},t.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},t.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},kr=t}(),m=function(e,t,r){var n,a=l.getTypeOf(t),i=l.extend(r||{},c),o=(i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(e=y(e)),i.createFolders&&(n=0<(o=(n="/"===(n=e).slice(-1)?n.substring(0,n.length-1):n).lastIndexOf("/"))?n.substring(0,o):"")&&s.call(this,n,!0),"string"===a&&!1===i.binary&&!1===i.base64),a=(r&&void 0!==r.binary||(i.binary=!o),(t instanceof h&&0===t.uncompressedSize||i.dir||!t||0===t.length)&&(i.base64=!1,i.binary=!0,t="",i.compression="STORE"),n=t instanceof h||t instanceof u?t:d.isNode&&d.isStream(t)?new p(e,t):l.prepareContent(e,t,i.binary,i.optimizedBinaryString,i.base64),new f(e,n,i));this.files[e]=a},y=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}return xr={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(r){var n=[];return this.forEach(function(e,t){r(e,t)&&n.push(t)}),n},file:function(e,t,r){var n,a;return 1===arguments.length?g(e)?(n=e,this.filter(function(e,t){return!t.dir&&n.test(e)})):(a=this.files[this.root+e])&&!a.dir?a:null:(e=this.root+e,m.call(this,e,t,r),this)},folder:function(r){var e,t;return r?g(r)?this.filter(function(e,t){return t.dir&&r.test(e)}):(e=this.root+r,e=s.call(this,e),(t=this.clone()).root=e.name,t):this},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!==r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[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(e){var t={};try{if((t=l.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");l.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var r=t.comment||this.comment||"",n=o.generateWorker(this,t,r)}catch(e){(n=new u("error")).error(e)}return new i(n,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}}()).loadAsync=$r(),l.support=p(),l.defaults=At(),l.version="3.10.1",l.loadAsync=function(e,t){return(new l).loadAsync(e,t)},l.external=m(),qr=l),tn={438:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});var t=r(537),t=r.n(t),n=r(645),n=r.n(n),a=r(806),a=r.n(a),r=new URL(r(583),r.b),n=n()(t()),t=a()(r),i=(n.push([e.id,'@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url('.concat(t,")}"),"",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:["@namespace \"http://www.w3.org/1998/Math/MathML\";\r\n\r\nmath {\r\n display: inline-block;\r\n line-height: initial;\r\n}\r\n\r\nmfrac {\r\n display: inline-block;\r\n vertical-align: -50%;\r\n text-align: center;\r\n\r\n &>:first-child {\r\n border-bottom: solid thin currentColor;\r\n }\r\n\r\n &>* {\r\n display: block;\r\n }\r\n}\r\n\r\nmsub {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: sub;\r\n }\r\n}\r\n\r\nmsup {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: super;\r\n }\r\n}\r\n\r\nmunder, mover, munderover {\r\n display: inline-flex;\r\n flex-flow: column nowrap;\r\n vertical-align: middle;\r\n text-align: center;\r\n\r\n &>:not(:first-child) {\r\n font-size: smaller;\r\n }\r\n}\r\n\r\nmunderover {\r\n &>:last-child { order: -1; }\r\n}\r\n\r\nmroot, msqrt {\r\n position: relative;\r\n display: inline-block;\r\n border-top: solid thin currentColor; \r\n margin-top: 0.5px;\r\n vertical-align: middle; \r\n margin-left: 1ch; \r\n\r\n &:before {\r\n content: \"\";\r\n display: inline-block;\r\n position: absolute;\r\n width: 1ch;\r\n left: -1ch;\r\n top: -1px;\r\n bottom: 0;\r\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E\");\r\n }\r\n}"],sourceRoot:""}]),n.toString())},645:function(e){e.exports=function(n){var c=[];return c.toString=function(){return this.map(function(e){var t="",r=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),r&&(t+="@layer".concat(0<e[5].length?" ".concat(e[5]):""," {")),t+=n(e),r&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t}).join("")},c.i=function(e,t,r,n,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==a&&(void 0!==u[5]&&(u[1]="@layer".concat(0<u[5].length?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),t&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=t),n&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=n):u[4]="".concat(n)),c.push(u))}},c}},806:function(e){e.exports=function(e,t){return t=t||{},e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},537:function(e){e.exports=function(e){var t=e[1],e=e[3];return e?("function"==typeof btoa?(e=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e),e="/*# ".concat(e," */"),[t].concat([e])):[t]).join("\n"):t}},522:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;var n,a,i=r(626),o=r(472),s=r(593),l=r(461),r=(E(u,[{key:"get",value:function(e){return this._zip.files[(e=e).startsWith("/")?e.substr(1):e]}},{key:"update",value:function(e,t){this._zip.file(e,t)}},{key:"save",value:function(){return this._zip.generateAsync({type:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob"})}},{key:"load",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"string";return null!=(e=null==(e=this.get(e))?void 0:e.async(t))?e:Promise.resolve(null)}},{key:"loadRelationships",value:(a=P(A().mark(function e(){var t,r,n,a=arguments;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="_rels/.rels",null!=(r=0<a.length&&void 0!==a[0]?a[0]:null)&&(r=(0,s.splitPath)(r),r=C(r,2),n=r[0],r=r[1],t="".concat(n,"_rels/").concat(r,".rels")),e.next=5,this.load(t);case 5:return n=e.sent,e.abrupt("return",n?(0,l.parseRelationships)(this.parseXmlDocument(n).firstElementChild,this.xmlParser):null);case 7:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"parseXmlDocument",value:function(e){return(0,o.parseXmlString)(e,this.options.trimXmlDeclaration)}}],[{key:"load",value:(n=P(A().mark(function e(t,r){var n;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.loadAsync(t);case 2:return n=e.sent,e.abrupt("return",new u(n,r));case 4:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})}]),u);function u(e,t){T(this,u),this._zip=e,this.options=t,this.xmlParser=new o.XmlParser}t.OpenXmlPackage=r},530:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;var n,a=r(472);function i(e,t){T(this,i),this._package=e,this.path=t}t.Part=(E(i,[{key:"load",value:(n=P(A().mark(function e(){var t;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._package.loadRelationships(this.path);case 2:return this.rels=e.sent,e.next=5,this._package.load(this.path);case 5:t=e.sent,t=this._package.parseXmlDocument(t),this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild);case 8:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"save",value:function(){this._package.update(this.path,(0,a.serializeXmlString)(this._xmlDocument))}},{key:"parseXml",value:function(e){}}]),i)},461:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,t.RelationshipTypes={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",FontTable:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Numbering:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",StylesWithEffects:"http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Settings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",WebSettings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Footnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",Endnotes:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",Footer:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",Header:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",ExtendedProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",CustomProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"},t.parseRelationships=function(e,t){return t.elements(e).map(function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}})}},168:function(e,o,t){Object.defineProperty(o,"__esModule",{value:!0}),o.DocumentParser=o.autos=void 0;var m=t(120),s=t(109),n=t(59),y=t(472),l=t(488),u=t(172),g=t(149),c=t(320),a=(o.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"},[]),h={oMath:m.DomType.MmlMath,oMathPara:m.DomType.MmlMathParagraph,f:m.DomType.MmlFraction,func:m.DomType.MmlFunction,fName:m.DomType.MmlFunctionName,num:m.DomType.MmlNumerator,den:m.DomType.MmlDenominator,rad:m.DomType.MmlRadical,deg:m.DomType.MmlDegree,e:m.DomType.MmlBase,sSup:m.DomType.MmlSuperscript,sSub:m.DomType.MmlSubscript,sPre:m.DomType.MmlPreSubSuper,sup:m.DomType.MmlSuperArgument,sub:m.DomType.MmlSubArgument,d:m.DomType.MmlDelimiter,nary:m.DomType.MmlNary,eqArr:m.DomType.MmlEquationArray,lim:m.DomType.MmlLimit,limLow:m.DomType.MmlLimitLower,m:m.DomType.MmlMatrix,mr:m.DomType.MmlMatrixRow,box:m.DomType.MmlBox,bar:m.DomType.MmlBar,groupChr:m.DomType.MmlGroupChar};function r(e){T(this,r),this.options=Object.assign({ignoreWidth:!1,debug:!1},e)}o.DocumentParser=(E(r,[{key:"parseNotes",value:function(e,t,r){var n,a=[],i=x(y.default.elements(e,t));try{for(i.s();!(n=i.n()).done;){var o=n.value,s=new r;s.id=y.default.attr(o,"id"),s.noteType=y.default.attr(o,"type"),s.children=this.parseBodyElements(o),a.push(s)}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"parseDocumentFile",value:function(e){var t=y.default.element(e,"body"),e=y.default.element(e,"background"),r=y.default.element(t,"sectPr");return{type:m.DomType.Document,children:this.parseBodyElements(t),props:r?(0,n.parseSectionProperties)(r,y.default):{},cssStyle:e?this.parseBackground(e):{}}}},{key:"parseBackground",value:function(e){var t={},e=b.colorAttr(e,"color");return e&&(t["background-color"]=e),t}},{key:"parseBodyElements",value:function(e){var t,r=this,n=[],a=x(y.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i=t.value;switch(i.localName){case"p":n.push(this.parseParagraph(i));break;case"tbl":n.push(this.parseTable(i));break;case"sdt":n.push.apply(n,S(this.parseSdt(i,function(e){return r.parseBodyElements(e)})))}}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"parseStylesFile",value:function(e){var t=this,r=[];return b.foreach(e,function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}}),r}},{key:"parseDefaultStyles",value:function(e){var r=this,n={id:null,name:null,target:null,basedOn:null,styles:[]};return b.foreach(e,function(e){switch(e.localName){case"rPrDefault":var t=y.default.element(e,"rPr");t&&n.styles.push({target:"span",values:r.parseDefaultProperties(t,{})});break;case"pPrDefault":t=y.default.element(e,"pPr");t&&n.styles.push({target:"p",values:r.parseDefaultProperties(t,{})})}}),n}},{key:"parseStyle",value:function(e){var a=this,i={id:y.default.attr(e,"styleId"),isDefault:y.default.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(y.default.attr(e,"type")){case"paragraph":i.target="p";break;case"table":i.target="table";break;case"character":i.target="span"}return b.foreach(e,function(e){switch(e.localName){case"basedOn":i.basedOn=y.default.attr(e,"val");break;case"name":i.name=y.default.attr(e,"val");break;case"link":i.linked=y.default.attr(e,"val");break;case"next":i.next=y.default.attr(e,"val");break;case"aliases":i.aliases=y.default.attr(e,"val").split(",");break;case"pPr":i.styles.push({target:"p",values:a.parseDefaultProperties(e,{})}),i.paragraphProps=(0,s.parseParagraphProperties)(e,y.default);break;case"rPr":i.styles.push({target:"span",values:a.parseDefaultProperties(e,{})}),i.runProps=(0,l.parseRunProperties)(e,y.default);break;case"tblPr":case"tcPr":i.styles.push({target:"td",values:a.parseDefaultProperties(e,{})});break;case"tblStylePr":var t,r=x(a.parseTableStyle(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;i.styles.push(n)}}catch(e){r.e(e)}finally{r.f()}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:a.options.debug&&console.warn("DOCX: Unknown style element: ".concat(e.localName))}}),i}},{key:"parseTableStyle",value:function(e){var t=this,r=[],n=y.default.attr(e,"type"),a="",i="";switch(n){case"firstRow":i=".first-row",a="tr.first-row td";break;case"lastRow":i=".last-row",a="tr.last-row td";break;case"firstCol":i=".first-col",a="td.first-col";break;case"lastCol":i=".last-col",a="td.last-col";break;case"band1Vert":i=":not(.no-vband)",a="td.odd-col";break;case"band2Vert":i=":not(.no-vband)",a="td.even-col";break;case"band1Horz":i=":not(.no-hband)",a="tr.odd-row";break;case"band2Horz":i=":not(.no-hband)",a="tr.even-row";break;default:return[]}return b.foreach(e,function(e){switch(e.localName){case"pPr":r.push({target:"".concat(a," p"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"rPr":r.push({target:"".concat(a," span"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":r.push({target:a,mod:i,values:t.parseDefaultProperties(e,{})})}}),r}},{key:"parseNumberingFile",value:function(e){var n=this,a=[],i={},o=[];return b.foreach(e,function(e){switch(e.localName){case"abstractNum":n.parseAbstractNumbering(e,o).forEach(function(e){return a.push(e)});break;case"numPicBullet":o.push(n.parseNumberingPicBullet(e));break;case"num":var t=y.default.attr(e,"numId"),r=y.default.elementAttr(e,"abstractNumId","val");i[r]=t}}),a.forEach(function(e){return e.id=i[e.id]}),a}},{key:"parseNumberingPicBullet",value:function(e){var t=y.default.element(e,"pict"),t=t&&y.default.element(t,"shape"),r=t&&y.default.element(t,"imagedata");return r?{id:y.default.intAttr(e,"numPicBulletId"),src:y.default.attr(r,"id"),style:y.default.attr(t,"style")}:null}},{key:"parseAbstractNumbering",value:function(e,t){var r=this,n=[],a=y.default.attr(e,"abstractNumId");return b.foreach(e,function(e){"lvl"===e.localName&&n.push(r.parseNumberingLevel(a,e,t))}),n}},{key:"parseNumberingLevel",value:function(e,t,r){var n=this,a={id:e,level:y.default.intAttr(t,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return b.foreach(t,function(e){switch(e.localName){case"start":a.start=y.default.intAttr(e,"val");break;case"pPr":n.parseDefaultProperties(e,a.pStyle);break;case"rPr":n.parseDefaultProperties(e,a.rStyle);break;case"lvlPicBulletId":var t=y.default.intAttr(e,"val");a.bullet=r.find(function(e){return e.id==t});break;case"lvlText":a.levelText=y.default.attr(e,"val");break;case"pStyle":a.pStyleName=y.default.attr(e,"val");break;case"numFmt":a.format=y.default.attr(e,"val");break;case"suff":a.suff=y.default.attr(e,"val")}}),a}},{key:"parseSdt",value:function(e,t){e=y.default.element(e,"sdtContent");return e?t(e):[]}},{key:"parseInserted",value:function(e,t){return{type:m.DomType.Inserted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseDeleted",value:function(e,t){return{type:m.DomType.Deleted,children:null!=(e=null==(t=t(e))?void 0:t.children)?e:[]}}},{key:"parseParagraph",value:function(e){var t,r,n=this,a={type:m.DomType.Paragraph,children:[]},i=x(y.default.elements(e));try{for(i.s();!(r=i.n()).done;){var o=r.value;switch(o.localName){case"pPr":this.parseParagraphProperties(o,a);break;case"r":a.children.push(this.parseRun(o,a));break;case"hyperlink":a.children.push(this.parseHyperlink(o,a));break;case"bookmarkStart":a.children.push((0,u.parseBookmarkStart)(o,y.default));break;case"bookmarkEnd":a.children.push((0,u.parseBookmarkEnd)(o,y.default));break;case"oMath":case"oMathPara":a.children.push(this.parseMathElement(o));break;case"sdt":(t=a.children).push.apply(t,S(this.parseSdt(o,function(e){return n.parseParagraph(e).children})));break;case"ins":a.children.push(this.parseInserted(o,function(e){return n.parseParagraph(e)}));break;case"del":a.children.push(this.parseDeleted(o,function(e){return n.parseParagraph(e)}))}}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"parseParagraphProperties",value:function(e,t){var r=this;this.parseDefaultProperties(e,t.cssStyle={},null,function(e){if(!(0,s.parseParagraphProperty)(e,t,y.default))switch(e.localName){case"pStyle":t.styleName=y.default.attr(e,"val");break;case"cnfStyle":t.className=f.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0})}},{key:"parseFrame",value:function(e,t){"drop"==y.default.attr(e,"dropCap")&&(t.cssStyle.float="left")}},{key:"parseHyperlink",value:function(e,t){var r=this,n={type:m.DomType.Hyperlink,parent:t,children:[]},t=y.default.attr(e,"anchor"),a=y.default.attr(e,"id");return t&&(n.href="#"+t),a&&(n.id=a),b.foreach(e,function(e){"r"===e.localName&&n.children.push(r.parseRun(e,n))}),n}},{key:"parseRun",value:function(e,t){var r=this,n={type:m.DomType.Run,parent:t,children:[]};return b.foreach(e,function(e){switch((e=r.checkAlternateContent(e)).localName){case"t":n.children.push({type:m.DomType.Text,text:e.textContent});break;case"delText":n.children.push({type:m.DomType.DeletedText,text:e.textContent});break;case"fldSimple":n.children.push({type:m.DomType.SimpleField,instruction:y.default.attr(e,"instr"),lock:y.default.boolAttr(e,"lock",!1),dirty:y.default.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:m.DomType.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:m.DomType.ComplexField,charType:y.default.attr(e,"fldCharType"),lock:y.default.boolAttr(e,"lock",!1),dirty:y.default.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:m.DomType.NoBreakHyphen});break;case"br":n.children.push({type:m.DomType.Break,break:y.default.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:m.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:m.DomType.Symbol,font:y.default.attr(e,"font"),char:y.default.attr(e,"char")});break;case"tab":n.children.push({type:m.DomType.Tab});break;case"footnoteReference":n.children.push({type:m.DomType.FootnoteReference,id:y.default.attr(e,"id")});break;case"endnoteReference":n.children.push({type:m.DomType.EndnoteReference,id:y.default.attr(e,"id")});break;case"drawing":var t=r.parseDrawing(e);t&&(n.children=[t]);break;case"pict":n.children.push(r.parseVmlPicture(e));break;case"rPr":r.parseRunProperties(e,n)}}),n}},{key:"parseMathElement",value:function(e){var t,r="".concat(e.localName,"Pr"),n={type:h[e.localName],children:[]},a=x(y.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i,o=t.value;h[o.localName]?n.children.push(this.parseMathElement(o)):"r"==o.localName?((i=this.parseRun(o)).type=m.DomType.MmlRun,n.children.push(i)):o.localName==r&&(n.props=this.parseMathProperies(o))}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"parseMathProperies",value:function(e){var t,r={},n=x(y.default.elements(e));try{for(n.s();!(t=n.n()).done;){var a=t.value;switch(a.localName){case"chr":r.char=y.default.attr(a,"val");break;case"vertJc":r.verticalJustification=y.default.attr(a,"val");break;case"pos":r.position=y.default.attr(a,"val");break;case"degHide":r.hideDegree=y.default.boolAttr(a,"val");break;case"begChr":r.beginChar=y.default.attr(a,"val");break;case"endChr":r.endChar=y.default.attr(a,"val")}}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"parseRunProperties",value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,function(e){switch(e.localName){case"rStyle":t.styleName=y.default.attr(e,"val");break;case"vertAlign":t.verticalAlign=f.valueOfVertAlign(e,!0);break;default:return!1}return!0})}},{key:"parseVmlPicture",value:function(e){var t,r={type:m.DomType.VmlPicture,children:[]},n=x(y.default.elements(e));try{for(n.s();!(t=n.n()).done;){var a=t.value,i=(0,c.parseVmlElement)(a,this);i&&r.children.push(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"checkAlternateContent",value:function(e){if("AlternateContent"!=e.localName)return e;var t=y.default.element(e,"Choice");if(t){var r=y.default.attr(t,"Requires"),r=e.lookupNamespaceURI(r);if(a.includes(r))return t.firstElementChild}return null==(r=y.default.element(e,"Fallback"))?void 0:r.firstElementChild}},{key:"parseDrawing",value:function(e){var t,r=x(y.default.elements(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;switch(n.localName){case"inline":case"anchor":return this.parseDrawingWrapper(n)}}}catch(e){r.e(e)}finally{r.f()}}},{key:"parseDrawingWrapper",value:function(e){var t,r,n={type:m.DomType.Drawing,children:[],cssStyle:{}},a="anchor"==e.localName,i=null,o=y.default.boolAttr(e,"simplePos"),s={relative:"page",align:"left",offset:"0"},l={relative:"page",align:"top",offset:"0"},u=x(y.default.elements(e));try{for(u.s();!(r=u.n()).done;){var c,h,f,d=r.value;switch(d.localName){case"simplePos":o&&(s.offset=y.default.lengthAttr(d,"x",g.LengthUsage.Emu),l.offset=y.default.lengthAttr(d,"y",g.LengthUsage.Emu));break;case"extent":n.cssStyle.width=y.default.lengthAttr(d,"cx",g.LengthUsage.Emu),n.cssStyle.height=y.default.lengthAttr(d,"cy",g.LengthUsage.Emu);break;case"positionH":case"positionV":o||(c="positionH"==d.localName?s:l,h=y.default.element(d,"align"),f=y.default.element(d,"posOffset"),c.relative=null!=(t=y.default.attr(d,"relativeFrom"))?t:c.relative,h&&(c.align=h.textContent),f&&(c.offset=b.sizeValue(f,g.LengthUsage.Emu)));break;case"wrapTopAndBottom":i="wrapTopAndBottom";break;case"wrapNone":i="wrapNone";break;case"graphic":var p=this.parseGraphic(d);p&&n.children.push(p)}}}catch(e){u.e(e)}finally{u.f()}return"wrapTopAndBottom"==i?(n.cssStyle.display="block",s.align&&(n.cssStyle["text-align"]=s.align,n.cssStyle.width="100%")):"wrapNone"==i?(n.cssStyle.display="block",n.cssStyle.position="relative",n.cssStyle.width="0px",n.cssStyle.height="0px",s.offset&&(n.cssStyle.left=s.offset),l.offset&&(n.cssStyle.top=l.offset)):!a||"left"!=s.align&&"right"!=s.align||(n.cssStyle.float=s.align),n}},{key:"parseGraphic",value:function(e){var t,r=y.default.element(e,"graphicData"),n=x(y.default.elements(r));try{for(n.s();!(t=n.n()).done;){var a=t.value;if("pic"===a.localName)return this.parsePicture(a)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"parsePicture",value:function(e){var t={type:m.DomType.Image,src:"",cssStyle:{}},r=y.default.element(e,"blipFill"),r=y.default.element(r,"blip");t.src=y.default.attr(r,"embed");var n,r=y.default.element(e,"spPr"),r=y.default.element(r,"xfrm"),a=x((t.cssStyle.position="relative",y.default.elements(r)));try{for(a.s();!(n=a.n()).done;){var i=n.value;switch(i.localName){case"ext":t.cssStyle.width=y.default.lengthAttr(i,"cx",g.LengthUsage.Emu),t.cssStyle.height=y.default.lengthAttr(i,"cy",g.LengthUsage.Emu);break;case"off":t.cssStyle.left=y.default.lengthAttr(i,"x",g.LengthUsage.Emu),t.cssStyle.top=y.default.lengthAttr(i,"y",g.LengthUsage.Emu)}}}catch(e){a.e(e)}finally{a.f()}return t}},{key:"parseTable",value:function(e){var t=this,r={type:m.DomType.Table,children:[]};return b.foreach(e,function(e){switch(e.localName){case"tr":r.children.push(t.parseTableRow(e));break;case"tblGrid":r.columns=t.parseTableColumns(e);break;case"tblPr":t.parseTableProperties(e,r)}}),r}},{key:"parseTableColumns",value:function(e){var t=[];return b.foreach(e,function(e){"gridCol"===e.localName&&t.push({width:y.default.lengthAttr(e,"w")})}),t}},{key:"parseTableProperties",value:function(e,t){var r=this;switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,function(e){switch(e.localName){case"tblStyle":t.styleName=y.default.attr(e,"val");break;case"tblLook":t.className=f.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=y.default.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=y.default.intAttr(e,"val");break;default:return!1}return!0}),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}},{key:"parseTablePosition",value:function(e,t){var r=y.default.lengthAttr(e,"topFromText"),n=y.default.lengthAttr(e,"bottomFromText"),a=y.default.lengthAttr(e,"rightFromText"),e=y.default.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=f.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=f.addSize(t.cssStyle["margin-left"],e),t.cssStyle["margin-right"]=f.addSize(t.cssStyle["margin-right"],a),t.cssStyle["margin-top"]=f.addSize(t.cssStyle["margin-top"],r)}},{key:"parseTableRow",value:function(e){var t=this,r={type:m.DomType.Row,children:[]};return b.foreach(e,function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}}),r}},{key:"parseTableRowProperties",value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,function(e){switch(e.localName){case"cnfStyle":t.className=f.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=y.default.boolAttr(e,"val");break;default:return!1}return!0})}},{key:"parseTableCell",value:function(e){var t=this,r={type:m.DomType.Cell,children:[]};return b.foreach(e,function(e){switch(e.localName){case"tbl":r.children.push(t.parseTable(e));break;case"p":r.children.push(t.parseParagraph(e));break;case"tcPr":t.parseTableCellProperties(e,r)}}),r}},{key:"parseTableCellProperties",value:function(e,r){r.cssStyle=this.parseDefaultProperties(e,{},null,function(e){var t;switch(e.localName){case"gridSpan":r.span=y.default.intAttr(e,"val",null);break;case"vMerge":r.verticalMerge=null!=(t=y.default.attr(e,"val"))?t:"continue";break;case"cnfStyle":r.className=f.classNameOfCnfStyle(e);break;default:return!1}return!0})}},{key:"parseDefaultProperties",value:function(t){var r=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,n=n||{};return b.foreach(t,function(e){if(null==i||!i(e))switch(e.localName){case"jc":n["text-align"]=f.valueOfJc(e);break;case"textAlignment":n["vertical-align"]=f.valueOfTextAlignment(e);break;case"color":n.color=b.colorAttr(e,"val",null,o.autos.color);break;case"sz":n["font-size"]=n["min-height"]=y.default.lengthAttr(e,"val",g.LengthUsage.FontSize);break;case"shd":n["background-color"]=b.colorAttr(e,"fill",null,o.autos.shd);break;case"highlight":n["background-color"]=b.colorAttr(e,"val",null,o.autos.highlight);break;case"vertAlign":break;case"position":n.verticalAlign=y.default.lengthAttr(e,"val",g.LengthUsage.FontSize);break;case"tcW":if(r.options.ignoreWidth)break;case"tblW":n.width=f.valueOfSize(e,"w");break;case"trHeight":r.parseTrHeight(e,n);break;case"strike":n["text-decoration"]=y.default.boolAttr(e,"val",!0)?"line-through":"none";break;case"b":n["font-weight"]=y.default.boolAttr(e,"val",!0)?"bold":"normal";break;case"i":n["font-style"]=y.default.boolAttr(e,"val",!0)?"italic":"normal";break;case"caps":n["text-transform"]=y.default.boolAttr(e,"val",!0)?"uppercase":"none";break;case"smallCaps":n["text-transform"]=y.default.boolAttr(e,"val",!0)?"lowercase":"none";break;case"u":r.parseUnderline(e,n);break;case"ind":case"tblInd":r.parseIndentation(e,n);break;case"rFonts":r.parseFont(e,n);break;case"tblBorders":r.parseBorderProperties(e,a||n);break;case"tblCellSpacing":n["border-spacing"]=f.valueOfMargin(e),n["border-collapse"]="separate";break;case"pBdr":r.parseBorderProperties(e,n);break;case"bdr":n.border=f.valueOfBorder(e);break;case"tcBorders":r.parseBorderProperties(e,n);break;case"vanish":y.default.boolAttr(e,"val",!0)&&(n.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":r.parseMarginProperties(e,a||n);break;case"tblLayout":n["table-layout"]=f.valueOfTblLayout(e);break;case"vAlign":n["vertical-align"]=f.valueOfTextAlignment(e);break;case"spacing":"pPr"==t.localName&&r.parseSpacing(e,n);break;case"wordWrap":y.default.boolAttr(e,"val")&&(n["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":n.hyphens=y.default.boolAttr(e,"val",!0)?"none":"auto";break;case"lang":n.$lang=y.default.attr(e,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:r.options.debug&&console.warn("DOCX: Unknown document element: ".concat(t.localName,".").concat(e.localName))}}),n}},{key:"parseUnderline",value:function(e,t){var r=y.default.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}r=b.colorAttr(e,"color");r&&(t["text-decoration-color"]=r)}}},{key:"parseFont",value:function(e,t){e=[y.default.attr(e,"ascii"),f.themeValue(e,"asciiTheme")].filter(function(e){return e}).join(", ");0<e.length&&(t["font-family"]=e)}},{key:"parseIndentation",value:function(e,t){var r=y.default.lengthAttr(e,"firstLine"),n=y.default.lengthAttr(e,"hanging"),a=y.default.lengthAttr(e,"left"),i=y.default.lengthAttr(e,"start"),o=y.default.lengthAttr(e,"right"),e=y.default.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(a||i)&&(t["margin-left"]=a||i),(o||e)&&(t["margin-right"]=o||e)}},{key:"parseSpacing",value:function(e,t){var r=y.default.lengthAttr(e,"before"),n=y.default.lengthAttr(e,"after"),a=y.default.intAttr(e,"line",null),e=y.default.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==a)switch(e){case"auto":t["line-height"]="".concat((a/240).toFixed(2));break;case"atLeast":t["line-height"]="calc(100% + ".concat(a/20,"pt)");break;default:t["line-height"]=t["min-height"]=a/20+"pt"}}},{key:"parseMarginProperties",value:function(e,t){b.foreach(e,function(e){switch(e.localName){case"left":t["padding-left"]=f.valueOfMargin(e);break;case"right":t["padding-right"]=f.valueOfMargin(e);break;case"top":t["padding-top"]=f.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=f.valueOfMargin(e)}})}},{key:"parseTrHeight",value:function(e,t){y.default.attr(e,"hRule"),t.height=y.default.lengthAttr(e,"val")}},{key:"parseBorderProperties",value:function(e,t){b.foreach(e,function(e){switch(e.localName){case"start":case"left":t["border-left"]=f.valueOfBorder(e);break;case"end":case"right":t["border-right"]=f.valueOfBorder(e);break;case"top":t["border-top"]=f.valueOfBorder(e);break;case"bottom":t["border-bottom"]=f.valueOfBorder(e)}})}}]),r);var i=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],b=(E(p,null,[{key:"foreach",value:function(e,t){for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}},{key:"colorAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"black",t=y.default.attr(e,t);return t?"auto"==t?n:i.includes(t)?t:"#".concat(t):(n=y.default.attr(e,"themeColor"))?"var(--docx-".concat(n,"-color)"):r}},{key:"sizeValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:g.LengthUsage.Dxa;return(0,g.convertLength)(e.textContent,t)}}]),p),f=(E(d,null,[{key:"themeValue",value:function(e,t){e=y.default.attr(e,t);return e?"var(--docx-".concat(e,"-font)"):null}},{key:"valueOfSize",value:function(e,t){var r=g.LengthUsage.Dxa;switch(y.default.attr(e,"type")){case"dxa":break;case"pct":r=g.LengthUsage.Percent;break;case"auto":return"auto"}return y.default.lengthAttr(e,t,r)}},{key:"valueOfMargin",value:function(e){return y.default.lengthAttr(e,"w")}},{key:"valueOfBorder",value:function(e){var t;return"nil"==y.default.attr(e,"val")?"none":(t=b.colorAttr(e,"color"),"".concat(y.default.lengthAttr(e,"sz",g.LengthUsage.Border)," solid ").concat("auto"==t?o.autos.borderColor:t))}},{key:"valueOfTblLayout",value:function(e){return"fixed"==y.default.attr(e,"val")?"fixed":"auto"}},{key:"classNameOfCnfStyle",value:function(e){var r=y.default.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter(function(e,t){return"1"==r[t]}).join(" ")}},{key:"valueOfJc",value:function(e){e=y.default.attr(e,"val");switch(e){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return e}},{key:"valueOfVertAlign",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=y.default.attr(e,"val");switch(e){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:e}},{key:"valueOfTextAlignment",value:function(e){e=y.default.attr(e,"val");switch(e){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return e}},{key:"addSize",value:function(e,t){return null==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}},{key:"classNameOftblLook",value:function(e){var t=y.default.hexAttr(e,"val",0),r="";return(y.default.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(y.default.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(y.default.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(y.default.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(y.default.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(y.default.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}]),d);function d(){T(this,d)}function p(){T(this,p)}},162:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;var n,a=r(530),i=r(614),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.props=(0,i.parseCoreProps)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.CorePropsPart=r},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"title":n.title=i.textContent;break;case"description":n.description=i.textContent;break;case"subject":n.subject=i.textContent;break;case"creator":n.creator=i.textContent;break;case"keywords":n.keywords=i.textContent;break;case"language":n.language=i.textContent;break;case"lastModifiedBy":n.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(n.revision=parseInt(i.textContent))}}}catch(e){a.e(e)}finally{a.f()}return n}},177:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropsPart=void 0;var n,a=r(530),i=r(821),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.props=(0,i.parseCustomProps)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.CustomPropsPart=r},821:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProps=void 0,t.parseCustomProps=function(e,r){return r.elements(e,"property").map(function(e){var t=e.firstChild;return{formatId:r.attr(e,"fmtid"),name:r.attr(e,"name"),type:t.nodeName,value:t.textContent}})}},665:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;var n,a=r(530),i=r(668),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.props=(0,i.parseExtendedProps)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.ExtendedPropsPart=r},668:function(e,t){function o(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"Template":n.template=i.textContent;break;case"Pages":n.pages=o(i.textContent);break;case"Words":n.words=o(i.textContent);break;case"Characters":n.characters=o(i.textContent);break;case"Application":n.application=i.textContent;break;case"Lines":n.lines=o(i.textContent);break;case"Paragraphs":n.paragraphs=o(i.textContent);break;case"Company":n.company=i.textContent;break;case"AppVersion":n.appVersion=i.textContent}}}catch(e){a.e(e)}finally{a.f()}return n}},172:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBookmarkEnd=t.parseBookmarkStart=void 0;var n=r(120);t.parseBookmarkStart=function(e,t){return{type:n.DomType.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}},t.parseBookmarkEnd=function(e,t){return{type:n.DomType.BookmarkEnd,id:t.attr(e,"id")}}},191:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;var n=r(149);function o(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",n.LengthUsage.Border),offset:t.lengthAttr(e,"space",n.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=o,t.parseBorders=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"left":n.left=o(i,t);break;case"top":n.top=o(i,t);break;case"right":n.right=o(i,t);break;case"bottom":n.bottom=o(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}},149:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parseCommonProperty=n.convertPercentage=n.convertBoolean=n.convertLength=n.LengthUsage=n.ns=void 0,n.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},n.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}},n.convertLength=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n.LengthUsage.Dxa;return null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*t.mul).toFixed(2)).concat(t.unit)},n.convertBoolean=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}},n.convertPercentage=function(e){return e?parseInt(e)/100:null},n.parseCommonProperty=function(e,t,r){if(e.namespaceURI!=n.ns.wordml)return!1;switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",n.LengthUsage.FontSize);break;default:return!1}return!0}},448:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;f(a,r(530).Part),n=d(a),E(a,[{key:"parseXml",value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}]);var n,r=a;function a(e,t,r){return T(this,a),(e=n.call(this,e,t))._documentParser=r,e}t.DocumentPart=r},120:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlElementBase=t.DomType=void 0,t.DomType={Document:"document",Paragraph:"paragraph",Run:"run",Break:"break",NoBreakHyphen:"noBreakHyphen",Table:"table",Row:"row",Cell:"cell",Hyperlink:"hyperlink",Drawing:"drawing",Image:"image",Text:"text",Tab:"tab",Symbol:"symbol",BookmarkStart:"bookmarkStart",BookmarkEnd:"bookmarkEnd",Footer:"footer",Header:"header",FootnoteReference:"footnoteReference",EndnoteReference:"endnoteReference",Footnote:"footnote",Endnote:"endnote",SimpleField:"simpleField",ComplexField:"complexField",Instruction:"instruction",VmlPicture:"vmlPicture",MmlMath:"mmlMath",MmlMathParagraph:"mmlMathParagraph",MmlFraction:"mmlFraction",MmlFunction:"mmlFunction",MmlFunctionName:"mmlFunctionName",MmlNumerator:"mmlNumerator",MmlDenominator:"mmlDenominator",MmlRadical:"mmlRadical",MmlBase:"mmlBase",MmlDegree:"mmlDegree",MmlSuperscript:"mmlSuperscript",MmlSubscript:"mmlSubscript",MmlPreSubSuper:"mmlPreSubSuper",MmlSubArgument:"mmlSubArgument",MmlSuperArgument:"mmlSuperArgument",MmlNary:"mmlNary",MmlDelimiter:"mmlDelimiter",MmlRun:"mmlRun",MmlEquationArray:"mmlEquationArray",MmlLimit:"mmlLimit",MmlLimitLower:"mmlLimitLower",MmlMatrix:"mmlMatrix",MmlMatrixRow:"mmlMatrixRow",MmlBox:"mmlBox",MmlBar:"mmlBar",MmlGroupChar:"mmlGroupChar",VmlElement:"vmlElement",Inserted:"inserted",Deleted:"deleted",DeletedText:"deletedText"},t.OpenXmlElementBase=E(function e(){T(this,e),this.children=[],this.cssStyle={}})},931:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0,t.parseLineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}},109:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=void 0;var n=r(149),a=r(59),i=r(931),o=r(488);function s(e,t,r){if(e.namespaceURI!=n.ns.wordml)return!1;if(!(0,n.parseCommonProperty)(e,t,r))switch(e.localName){case"tabs":t.tabs=l(e,r);break;case"sectPr":t.sectionProps=(0,a.parseSectionProperties)(e,r);break;case"numPr":t.numbering=u(e,r);break;case"spacing":return t.lineSpacing=(0,i.parseLineSpacing)(e,r),!1;case"textAlignment":return t.textAlignment=r.attr(e,"val"),!1;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleName=r.attr(e,"val");break;case"rPr":t.runProps=(0,o.parseRunProperties)(e,r);break;default:return!1}return!0}function l(e,t){return t.elements(e,"tab").map(function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}})}function u(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"numId":n.id=t.attr(i,"val");break;case"ilvl":n.level=t.intAttr(i,"val")}}}catch(e){a.e(e)}finally{a.f()}return n}t.parseParagraphProperties=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;)s(r.value,n,t)}catch(e){a.e(e)}finally{a.f()}return n},t.parseParagraphProperty=s,t.parseTabs=l,t.parseNumbering=u},488:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseRunProperty=t.parseRunProperties=void 0;var n=r(149);function i(e,t,r){return!!(0,n.parseCommonProperty)(e,t,r)}t.parseRunProperties=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;)i(r.value,n,t)}catch(e){a.e(e)}finally{a.f()}return n},t.parseRunProperty=i},59:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;var c=r(472),h=r(191);function f(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}t.SectionType={Continuous:"continuous",NextPage:"nextPage",NextColumn:"nextColumn",EvenPage:"evenPage",OddPage:"oddPage"},t.parseSectionProperties=function(e){var t,r,n,a,i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:c.default,s={},l=x(o.elements(e));try{for(l.s();!(n=l.n()).done;){var u=n.value;switch(u.localName){case"pgSz":s.pageSize={width:o.lengthAttr(u,"w"),height:o.lengthAttr(u,"h"),orientation:o.attr(u,"orient")};break;case"type":s.type=o.attr(u,"val");break;case"pgMar":s.pageMargins={left:o.lengthAttr(u,"left"),right:o.lengthAttr(u,"right"),top:o.lengthAttr(u,"top"),bottom:o.lengthAttr(u,"bottom"),header:o.lengthAttr(u,"header"),footer:o.lengthAttr(u,"footer"),gutter:o.lengthAttr(u,"gutter")};break;case"cols":s.columns=function(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map(function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}})}}(u,o);break;case"headerReference":(null!=(t=s.headerRefs)?t:s.headerRefs=[]).push(f(u,o));break;case"footerReference":(null!=(r=s.footerRefs)?r:s.footerRefs=[]).push(f(u,o));break;case"titlePg":s.titlePage=o.boolAttr(u,"val",!0);break;case"pgBorders":s.pageBorders=(0,h.parseBorders)(u,o);break;case"pgNumType":s.pageNumber=(a=u,{chapSep:(i=o).attr(a,"chapSep"),chapStyle:i.attr(a,"chapStyle"),format:i.attr(a,"fmt"),start:i.intAttr(a,"start")})}}}catch(e){l.e(e)}finally{l.f()}return s}},667:function(e,l,t){Object.defineProperty(l,"__esModule",{value:!0}),l.renderAsync=l.praseAsync=l.defaultOptions=void 0;var r,u=t(213),c=t(168),h=t(932);l.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},l.praseAsync=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=Object.assign(Object.assign({},l.defaultOptions),t);return u.WordDocument.load(e,new c.DocumentParser(t),t)},l.renderAsync=(r=P(A().mark(function e(t,r){var n,a,i,o,s=arguments;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=2<s.length&&void 0!==s[2]?s[2]:null,a=3<s.length&&void 0!==s[3]?s[3]:null,a=Object.assign(Object.assign({},l.defaultOptions),a),i=new h.HtmlRenderer(window.document),e.next=6,u.WordDocument.load(t,new c.DocumentParser(a),a);case 6:return o=e.sent,e.abrupt("return",(i.render(o,r,n,a),o));case 8:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},380:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;var n,a=r(530),i=r(512),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.fonts=(0,i.parseFonts)(e,this._package.xmlParser)}}]),o);function o(){return T(this,o),n.apply(this,arguments)}t.FontTablePart=r},512:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseEmbedFontRef=t.parseFont=t.parseFonts=void 0;var r={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function n(e,t){var r,n={name:t.attr(e,"name"),embedFontRefs:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"family":n.family=t.attr(i,"val");break;case"altName":n.altName=t.attr(i,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":n.embedFontRefs.push(o(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n}function o(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:r[e.localName]}}t.parseFonts=function(e,t){return t.elements(e).map(function(e){return n(e,t)})},t.parseFont=n,t.parseEmbedFontRef=o},984:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=t.WmlHeader=void 0;var n,a=r(120),r=(f(i,a.OpenXmlElementBase),n=d(i),E(i));function i(){var e;return T(this,i),(e=n.apply(this,arguments)).type=a.DomType.Header,e}t.WmlHeader=r;f(s,a.OpenXmlElementBase),o=d(s);var o,r=E(s);function s(){var e;return T(this,s),(e=o.apply(this,arguments)).type=a.DomType.Footer,e}t.WmlFooter=r},985:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=t.HeaderPart=t.BaseHeaderFooterPart=void 0;var n,a,i,o=r(530),s=r(984),r=(f(l,o.Part),n=d(l),E(l,[{key:"parseXml",value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}]),l);function l(e,t,r){return T(this,l),(e=n.call(this,e,t))._documentParser=r,e}function u(){return T(this,u),a.apply(this,arguments)}function c(){return T(this,c),i.apply(this,arguments)}t.BaseHeaderFooterPart=r,t.HeaderPart=(f(c,r),i=d(c),E(c,[{key:"createRootElement",value:function(){return new s.WmlHeader}}]),c),t.FooterPart=(f(u,r),a=d(u),E(u,[{key:"createRootElement",value:function(){return new s.WmlFooter}}]),u)},932:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=void 0;var _=r(120),p=r(593),i=r(630),o=r(438),s="http://www.w3.org/1998/Math/MathML";function n(e,t,r){return u(void 0,e,t,r)}function l(e,t,r){return u("http://www.w3.org/2000/svg",e,t,r)}function u(e,t,r,n){e=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(e,r),n&&h(e,n),e}function c(e){e.innerHTML=""}function h(t,e){e.forEach(function(e){return t.appendChild((0,p.isString)(e)?document.createTextNode(e):e)})}function m(e){return n("style",{innerHTML:e})}function f(e,t){e.appendChild(document.createComment(t))}function a(e){T(this,a),this.htmlDocument=e,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=n}t.HtmlRenderer=(E(a,[{key:"render",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=3<arguments.length?arguments[3]:void 0,a=(this.document=e,this.options=n,this.className=n.className,this.rootSelector=n.inWrapper?".".concat(this.className,"-wrapper"):":root",this.styleMap=null,c(r=r||t),c(t),f(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&n.useMathMLPolyfill&&(f(r,"docxjs mathml polyfill styles"),r.appendChild(m(o.default))),e.themePart&&(f(r,"docxjs document theme values"),this.renderTheme(e.themePart,r)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),f(r,"docxjs document styles"),r.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),f(r,"docxjs document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),e.footnotesPart&&(this.footnoteMap=(0,p.keyBy)(e.footnotesPart.notes,function(e){return e.id})),e.endnotesPart&&(this.endnoteMap=(0,p.keyBy)(e.endnotesPart.notes,function(e){return e.id})),e.settingsPart&&(this.defaultTabSize=null==(a=e.settingsPart.settings)?void 0:a.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r),this.renderSections(e.documentPart.body));this.options.inWrapper?t.appendChild(this.renderWrapper(a)):h(t,a),this.refreshTabStops()}},{key:"renderTheme",value:function(e,t){var r={},n=null==(n=e.theme)?void 0:n.fontScheme,e=(n&&(n.majorFont&&(r["--docx-majorHAnsi-font"]=n.majorFont.latinTypeface),n.minorFont)&&(r["--docx-minorHAnsi-font"]=n.minorFont.latinTypeface),null==(n=e.theme)?void 0:n.colorScheme);if(e)for(var a=0,i=Object.entries(e.colors);a<i.length;a++){var o=C(i[a],2),s=o[0],o=o[1];r["--docx-".concat(s,"-color")]="#".concat(o)}n=this.styleToString(".".concat(this.className),r);t.appendChild(m(n))}},{key:"renderFontTable",value:function(e,n){var a,i=this,t=x(e.fonts);try{var r=function(){var e,r=a.value,t=x(r.embedFontRefs);try{for(t.s();!(e=t.n()).done;)!function(){var t=e.value;i.document.loadFont(t.id,t.key).then(function(e){e={"font-family":r.name,src:"url(".concat(e,")")},"bold"!=t.type&&"boldItalic"!=t.type||(e["font-weight"]="bold"),"italic"!=t.type&&"boldItalic"!=t.type||(e["font-style"]="italic"),f(n,"docxjs ".concat(r.name," font")),e=i.styleToString("@font-face",e);n.appendChild(m(e)),i.refreshTabStops()})}()}catch(e){t.e(e)}finally{t.f()}};for(t.s();!(a=t.n()).done;)r()}catch(e){t.e(e)}finally{t.f()}}},{key:"processStyleName",value:function(e){return e?"".concat(this.className,"_").concat((0,p.escapeClassName)(e)):this.className}},{key:"processStyles",value:function(e){var t,r=this,n=(0,p.keyBy)(e.filter(function(e){return null!=e.id}),function(e){return e.id}),a=x(e.filter(function(e){return e.basedOn}));try{for(a.s();!(t=a.n()).done;){var i=t.value,o=n[i.basedOn];if(o){i.paragraphProps=(0,p.mergeDeep)(i.paragraphProps,o.paragraphProps),i.runProps=(0,p.mergeDeep)(i.runProps,o.runProps);var s,l=x(o.styles);try{for(l.s();!(s=l.n()).done;)!function(){var t=s.value,e=i.styles.find(function(e){return e.target==t.target});e?r.copyStyleProperties(t.values,e.values):i.styles.push(Object.assign(Object.assign({},t),{values:Object.assign({},t.values)}))}()}catch(e){l.e(e)}finally{l.f()}}else this.options.debug&&console.warn("Can't find base style ".concat(i.basedOn))}}catch(e){a.e(e)}finally{a.f()}var u,c=x(e);try{for(c.s();!(u=c.n()).done;){var h=u.value;h.cssName=this.processStyleName(h.id)}}catch(e){c.e(e)}finally{c.f()}return n}},{key:"prodessNumberings",value:function(e){var t,r,n=x(e.filter(function(e){return e.pStyleName}));try{for(n.s();!(r=n.n()).done;){var a=r.value,i=this.findStyle(a.pStyleName);null!=(t=null==i?void 0:i.paragraphProps)&&t.numbering&&(i.paragraphProps.numbering.level=a.level)}}catch(e){n.e(e)}finally{n.f()}}},{key:"processElement",value:function(e){if(e.children){var t,r=x(e.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.parent=e,n.type==_.DomType.Table?this.processTable(n):this.processElement(n)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"processTable",value:function(e){var t,r=x(e.children);try{for(r.s();!(t=r.n()).done;){var n,a=x(t.value.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.cssStyle=this.copyStyleProperties(e.cellStyle,i.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(i)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:"copyStyleProperties",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(e){var n,a=x((null==t&&(t={}),r=null==r?Object.getOwnPropertyNames(e):r));try{for(a.s();!(n=a.n()).done;){var i=n.value;e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}}catch(e){a.e(e)}finally{a.f()}}return t}},{key:"createSection",value:function(e,t){e=this.createElement("section",{className:e});return t&&(t.pageMargins&&(e.style.paddingLeft=t.pageMargins.left,e.style.paddingRight=t.pageMargins.right,e.style.paddingTop=t.pageMargins.top,e.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(e.style.width=t.pageSize.width),this.options.ignoreHeight||(e.style.minHeight=t.pageSize.height)),t.columns)&&t.columns.numberOfColumns&&(e.style.columnCount="".concat(t.columns.numberOfColumns),e.style.columnGap=t.columns.space,t.columns.separator)&&(e.style.columnRule="1px solid black"),e}},{key:"renderSections",value:function(e){var t=[];this.processElement(e);for(var r=this.splitBySection(e.children),n=null,a=0,i=r.length;a<i;a++){this.currentFootnoteIds=[];var o=r[a],s=o.sectProps||e.props,l=this.createSection(this.className,s),u=(this.renderStyleValues(e.cssStyle,l),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l),this.createElement("article"));this.renderElements(o.elements,u),l.appendChild(u),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&a==i-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,n!=s,l),t.push(l),n=s}return t}},{key:"renderHeaderFooter",value:function(e,t,r,n,a){e&&(r=(t=null!=(n=null!=(t=t.titlePage&&n?e.find(function(e){return"first"==e.type}):null)?t:r%2==1?e.find(function(e){return"even"==e.type}):null)?n:e.find(function(e){return"default"==e.type}))&&this.document.findPartByRelId(t.id,this.document.documentPart))&&(this.currentPart=r,this.usedHederFooterParts.includes(r.path)||(this.processElement(r.rootElement),this.usedHederFooterParts.push(r.path)),this.renderElements([r.rootElement],a),this.currentPart=null)}},{key:"isPageBreakElement",value:function(e){return e.type==_.DomType.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}},{key:"splitBySection",value:function(e){var t,r,n=this,a={sectProps:null,elements:[]},i=[a],o=x(e);try{for(o.s();!(r=o.n()).done;){var s,l,u,c,h,f,d,p,m,y,g,b=r.value;b.type==_.DomType.Paragraph&&null!=(t=null==(s=this.findStyle(b.styleName))?void 0:s.paragraphProps)&&t.pageBreakBefore&&(a.sectProps=u,i.push(a={sectProps:null,elements:[]})),a.elements.push(b),b.type==_.DomType.Paragraph&&(u=(l=b).sectionProps,h=c=-1,this.options.breakPages&&l.children&&(c=l.children.findIndex(function(e){return-1!=(h=null!=(e=null==(e=e.children)?void 0:e.findIndex(n.isPageBreakElement.bind(n)))?e:-1)})),!u&&-1==c||(a.sectProps=u,i.push(a={sectProps:null,elements:[]})),-1!=c)&&(f=l.children[c],d=h<f.children.length-1,c<l.children.length-1||d)&&(p=b.children,m=Object.assign(Object.assign({},b),{children:p.slice(c)}),b.children=p.slice(0,c),a.elements.push(m),d)&&(y=f.children,g=Object.assign(Object.assign({},f),{children:y.slice(0,h)}),b.children.push(g),f.children=y.slice(h))}}catch(e){o.e(e)}finally{o.f()}for(var v=null,w=i.length-1;0<=w;w--)null==i[w].sectProps?i[w].sectProps=v:v=i[w].sectProps;return i}},{key:"renderWrapper",value:function(e){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}},{key:"renderDefaultStyle",value:function(){var e=this.className;return m("\n.".concat(e,"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.").concat(e,"-wrapper>section.").concat(e," { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.").concat(e," { color: black; hyphens: auto; }\nsection.").concat(e," { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.").concat(e,">article { margin-bottom: auto; z-index: 1; }\nsection.").concat(e,">footer { z-index: 1; }\n.").concat(e," table { border-collapse: collapse; }\n.").concat(e," table td, .").concat(e," table th { vertical-align: top; }\n.").concat(e," p { margin: 0pt; min-height: 1em; }\n.").concat(e," span { white-space: pre-wrap; overflow-wrap: break-word; }\n.").concat(e," a { color: inherit; text-decoration: inherit; }\n"))}},{key:"renderNumbering",value:function(e,n){var a,i=this,o="",s=[],t=x(e);try{var l,u,c;for(t.s();!(a=t.n()).done;)!function(){var t,e,r;l=a.value,u="p.".concat(i.numberingClass(l.id,l.level)),c="none",l.bullet?(t="--".concat(i.className,"-").concat(l.bullet.src).toLowerCase(),o+=i.styleToString("".concat(u,":before"),{content:"' '",display:"inline-block",background:"var(".concat(t,")")},l.bullet.style),i.document.loadNumberingImage(l.bullet.src).then(function(e){e="".concat(i.rootSelector," { ").concat(t,": url(").concat(e,") }");n.appendChild(m(e))})):l.levelText?(r=(e=i.numberingCounter(l.id,l.level))+" "+(l.start-1),0<l.level&&(o+=i.styleToString("p.".concat(i.numberingClass(l.id,l.level-1)),{"counter-reset":r})),s.push(r),o+=i.styleToString("".concat(u,":before"),Object.assign({content:i.levelTextToContent(l.levelText,l.suff,l.id,i.numFormatToCssValue(l.format)),"counter-increment":e},l.rStyle))):c=i.numFormatToCssValue(l.format),o+=i.styleToString(u,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":c},l.pStyle))}()}catch(e){t.e(e)}finally{t.f()}return 0<s.length&&(o+=this.styleToString(this.rootSelector,{"counter-reset":s.join(" ")})),m(o)}},{key:"renderStyles",value:function(e){var t,r,n="",a=this.styleMap,i=(0,p.keyBy)(e.filter(function(e){return e.isDefault}),function(e){return e.target}),o=x(e);try{for(o.s();!(r=o.n()).done;){var s,l=r.value,u=l.styles;l.linked&&((s=l.linked&&a[l.linked])?u=u.concat(s.styles):this.options.debug&&console.warn("Can't find linked style ".concat(l.linked)));var c,h=x(u);try{for(h.s();!(c=h.n()).done;){var f=c.value,d="".concat(null!=(t=l.target)?t:"",".").concat(l.cssName);l.target!=f.target&&(d+=" ".concat(f.target)),i[l.target]==l&&(d=".".concat(this.className," ").concat(l.target,", ")+d),n+=this.styleToString(d,f.values)}}catch(e){h.e(e)}finally{h.f()}}}catch(e){o.e(e)}finally{o.f()}return m(n)}},{key:"renderNotes",value:function(e,t,r){var e=e.map(function(e){return t[e]}).filter(function(e){return e});0<e.length&&(e=this.createElement("ol",null,this.renderElements(e)),r.appendChild(e))}},{key:"renderElement",value:function(e){switch(e.type){case _.DomType.Paragraph:return this.renderParagraph(e);case _.DomType.BookmarkStart:return this.renderBookmarkStart(e);case _.DomType.BookmarkEnd:return null;case _.DomType.Run:return this.renderRun(e);case _.DomType.Table:return this.renderTable(e);case _.DomType.Row:return this.renderTableRow(e);case _.DomType.Cell:return this.renderTableCell(e);case _.DomType.Hyperlink:return this.renderHyperlink(e);case _.DomType.Drawing:return this.renderDrawing(e);case _.DomType.Image:return this.renderImage(e);case _.DomType.Text:case _.DomType.Text:return this.renderText(e);case _.DomType.DeletedText:return this.renderDeletedText(e);case _.DomType.Tab:return this.renderTab(e);case _.DomType.Symbol:return this.renderSymbol(e);case _.DomType.Break:return this.renderBreak(e);case _.DomType.Footer:return this.renderContainer(e,"footer");case _.DomType.Header:return this.renderContainer(e,"header");case _.DomType.Footnote:case _.DomType.Endnote:return this.renderContainer(e,"li");case _.DomType.FootnoteReference:return this.renderFootnoteReference(e);case _.DomType.EndnoteReference:return this.renderEndnoteReference(e);case _.DomType.NoBreakHyphen:return this.createElement("wbr");case _.DomType.VmlPicture:return this.renderVmlPicture(e);case _.DomType.VmlElement:return this.renderVmlElement(e);case _.DomType.MmlMath:return this.renderContainerNS(e,s,"math",{xmlns:s});case _.DomType.MmlMathParagraph:return this.renderContainer(e,"span");case _.DomType.MmlFraction:return this.renderContainerNS(e,s,"mfrac");case _.DomType.MmlBase:return this.renderContainerNS(e,s,e.parent.type==_.DomType.MmlMatrixRow?"mtd":"mrow");case _.DomType.MmlNumerator:case _.DomType.MmlDenominator:case _.DomType.MmlFunction:case _.DomType.MmlLimit:case _.DomType.MmlBox:return this.renderContainerNS(e,s,"mrow");case _.DomType.MmlGroupChar:return this.renderMmlGroupChar(e);case _.DomType.MmlLimitLower:return this.renderContainerNS(e,s,"munder");case _.DomType.MmlMatrix:return this.renderContainerNS(e,s,"mtable");case _.DomType.MmlMatrixRow:return this.renderContainerNS(e,s,"mtr");case _.DomType.MmlRadical:return this.renderMmlRadical(e);case _.DomType.MmlSuperscript:return this.renderContainerNS(e,s,"msup");case _.DomType.MmlSubscript:return this.renderContainerNS(e,s,"msub");case _.DomType.MmlDegree:case _.DomType.MmlSuperArgument:case _.DomType.MmlSubArgument:return this.renderContainerNS(e,s,"mn");case _.DomType.MmlFunctionName:return this.renderContainerNS(e,s,"ms");case _.DomType.MmlDelimiter:return this.renderMmlDelimiter(e);case _.DomType.MmlRun:return this.renderMmlRun(e);case _.DomType.MmlNary:return this.renderMmlNary(e);case _.DomType.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case _.DomType.MmlBar:return this.renderMmlBar(e);case _.DomType.MmlEquationArray:return this.renderMllList(e);case _.DomType.Inserted:return this.renderInserted(e);case _.DomType.Deleted:return this.renderDeleted(e)}return null}},{key:"renderChildren",value:function(e,t){return this.renderElements(e.children,t)}},{key:"renderElements",value:function(e,t){var r=this;return null==e?null:(e=e.flatMap(function(e){return r.renderElement(e)}).filter(function(e){return null!=e}),t&&h(t,e),e)}},{key:"renderContainer",value:function(e,t,r){return this.createElement(t,r,this.renderChildren(e))}},{key:"renderContainerNS",value:function(e,t,r,n){return u(t,r,n,this.renderChildren(e))}},{key:"renderParagraph",value:function(e){var t=this.createElement("p"),r=this.findStyle(e.styleName),n=(null==e.tabs&&(e.tabs=null==(n=null==r?void 0:r.paragraphProps)?void 0:n.tabs),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e),null!=(n=e.numbering)?n:null==(e=null==r?void 0:r.paragraphProps)?void 0:e.numbering);return n&&t.classList.add(this.numberingClass(n.id,n.level)),t}},{key:"renderRunProperties",value:function(e,t){this.renderCommonProperties(e,t)}},{key:"renderCommonProperties",value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize)&&(e["font-size"]=t.fontSize)}},{key:"renderHyperlink",value:function(t){var e,r=this.createElement("a");return this.renderChildren(t,r),this.renderStyleValues(t.cssStyle,r),t.href?r.href=t.href:t.id&&(e=this.document.documentPart.rels.find(function(e){return e.id==t.id&&"External"===e.targetMode}),r.href=null==e?void 0:e.target),r}},{key:"renderDrawing",value:function(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}},{key:"renderImage",value:function(e){var t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then(function(e){t.src=e}),t}},{key:"renderText",value:function(e){return this.htmlDocument.createTextNode(e.text)}},{key:"renderDeletedText",value:function(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}},{key:"renderBreak",value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}},{key:"renderInserted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}},{key:"renderDeleted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}},{key:"renderSymbol",value:function(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}},{key:"renderFootnoteReference",value:function(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}},{key:"renderEndnoteReference",value:function(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}},{key:"renderTab",value:function(r){var e,t=this.createElement("span");return t.innerHTML="&emsp;",this.options.experimental&&(t.className=this.tabStopClass(),e=null==(e=function(e){for(var t=r.parent;null!=t&&t.type!=e;)t=t.parent;return t}(_.DomType.Paragraph))?void 0:e.tabs,this.currentTabs.push({stops:e,span:t})),t}},{key:"renderBookmarkStart",value:function(e){var t=this.createElement("span");return t.id=e.name,t}},{key:"renderRun",value:function(e){var t,r;return e.fieldRun?null:(t=this.createElement("span"),e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign?(r=this.createElement(e.verticalAlign),this.renderChildren(e,r),t.appendChild(r)):this.renderChildren(e,t),t)}},{key:"renderTable",value:function(e){var t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}},{key:"renderTableColumns",value:function(e){var t,r=this.createElement("colgroup"),n=x(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=this.createElement("col");a.width&&(i.style.width=a.width),r.appendChild(i)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderTableRow",value:function(e){var t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}},{key:"renderTableCell",value:function(e){var t=this.createElement("td"),r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t).rowSpan=1:this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}},{key:"renderVmlPicture",value:function(e){var t=n("div");return this.renderChildren(e,t),t}},{key:"renderVmlElement",value:function(e){var t,r=l("svg"),n=(r.setAttribute("style",e.cssStyleText),this.renderVmlChildElement(e));return null==(t=e.imageHref)||!t.id||null!=(t=this.document)&&t.loadDocumentImage(e.imageHref.id,this.currentPart).then(function(e){return n.setAttribute("href",e)}),r.appendChild(n),requestAnimationFrame(function(){var e=r.firstElementChild.getBBox();r.setAttribute("width","".concat(Math.ceil(e.x+e.width))),r.setAttribute("height","".concat(Math.ceil(e.y+e.height)))}),r}},{key:"renderVmlChildElement",value:function(e){var r=l(e.tagName);Object.entries(e.attrs).forEach(function(e){var e=C(e,2),t=e[0],e=e[1];return r.setAttribute(t,e)});var t,n=x(e.children);try{for(n.s();!(t=n.n()).done;){var a=t.value;a.type==_.DomType.VmlElement?r.appendChild(this.renderVmlChildElement(a)):r.appendChild.apply(r,S((0,p.asArray)(this.renderElement(a))))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"renderMmlRadical",value:function(e){var t,r=e.children.find(function(e){return e.type==_.DomType.MmlBase});return null!=(t=e.props)&&t.hideDegree?u(s,"msqrt",null,this.renderElements([r])):(t=e.children.find(function(e){return e.type==_.DomType.MmlDegree}),u(s,"mroot",null,this.renderElements([r,t])))}},{key:"renderMmlDelimiter",value:function(e){var t,r=[];return r.push(u(s,"mo",null,[null!=(t=e.props.beginChar)?t:"("])),r.push.apply(r,S(this.renderElements(e.children))),r.push(u(s,"mo",null,[null!=(t=e.props.endChar)?t:")"])),u(s,"mrow",null,r)}},{key:"renderMmlNary",value:function(e){var t=[],r=(0,p.keyBy)(e.children,function(e){return e.type}),n=r[_.DomType.MmlSuperArgument],a=r[_.DomType.MmlSubArgument],n=n?u(s,"mo",null,(0,p.asArray)(this.renderElement(n))):null,a=a?u(s,"mo",null,(0,p.asArray)(this.renderElement(a))):null,e=u(s,"mo",null,[null!=(e=null==(e=e.props)?void 0:e.char)?e:"∫"]);return t.push(n||a?u(s,"munderover",null,[e,a,n]):n?u(s,"mover",null,[e,n]):a?u(s,"munder",null,[e,a]):e),t.push.apply(t,S(this.renderElements(r[_.DomType.MmlBase].children))),u(s,"mrow",null,t)}},{key:"renderMmlPreSubSuper",value:function(e){var t=[],e=(0,p.keyBy)(e.children,function(e){return e.type}),r=e[_.DomType.MmlSuperArgument],n=e[_.DomType.MmlSubArgument],r=r?u(s,"mo",null,(0,p.asArray)(this.renderElement(r))):null,n=n?u(s,"mo",null,(0,p.asArray)(this.renderElement(n))):null,a=u(s,"mo",null);return t.push(u(s,"msubsup",null,[a,n,r])),t.push.apply(t,S(this.renderElements(e[_.DomType.MmlBase].children))),u(s,"mrow",null,t)}},{key:"renderMmlGroupChar",value:function(e){var t="bot"===e.props.verticalJustification?"mover":"munder",t=this.renderContainerNS(e,s,t);return e.props.char&&t.appendChild(u(s,"mo",null,[e.props.char])),t}},{key:"renderMmlBar",value:function(e){var t=this.renderContainerNS(e,s,"mrow");switch(e.props.position){case"top":t.style.textDecoration="overline";break;case"bottom":t.style.textDecoration="underline"}return t}},{key:"renderMmlRun",value:function(e){var t=u(s,"ms");return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e,t),t}},{key:"renderMllList",value:function(e){var t=u(s,"mtable");this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderChildren(e);var r,n=x(this.renderChildren(e));try{for(n.s();!(r=n.n()).done;){var a=r.value;t.appendChild(u(s,"mtr",null,[u(s,"mtd",null,[a])]))}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"renderStyleValues",value:function(e,t){for(var r in e)r.startsWith("$")?t.setAttribute(r.slice(1),e[r]):t.style[r]=e[r]}},{key:"renderClass",value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}},{key:"findStyle",value:function(e){var t;return e&&(null==(t=this.styleMap)?void 0:t[e])}},{key:"numberingClass",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"tabStopClass",value:function(){return"".concat(this.className,"-tab-stop")}},{key:"styleToString",value:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a="".concat(e," {\r\n");for(r in t)r.startsWith("$")||(a+=" ".concat(r,": ").concat(t[r],";\r\n"));return n&&(a+=n),a+"}\r\n"}},{key:"numberingCounter",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"levelTextToContent",value:function(e,t,r,n){var a=this;return'"'.concat(e.replace(/%\d*/g,function(e){e=parseInt(e.substring(1),10)-1;return'"counter('.concat(a.numberingCounter(r,e),", ").concat(n,')"')})).concat(null!=(e={tab:"\\9",space:"\\a0"}[t])?e:"",'"')}},{key:"numFormatToCssValue",value:function(e){var t;return null!=(t={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"}[e])?t:e}},{key:"refreshTabStops",value:function(){var a=this;this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(function(){var e,t=(0,i.computePixelToPoint)(),r=x(a.currentTabs);try{for(r.s();!(e=r.n()).done;){var n=e.value;(0,i.updateTabStop)(n.span,n.stops,a.defaultTabSize,t)}}catch(e){r.e(e)}finally{r.f()}},500))}}]),a)},630:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=t.computePixelToPoint=void 0;var m={pos:0,leader:"none",style:"left"};function y(e){return parseFloat(e)}t.computePixelToPoint=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.body,t=document.createElement("div"),r=(t.style.width="100pt",e.appendChild(t),100/t.offsetWidth);return e.removeChild(t),r},t.updateTabStop=function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.75,a=e.closest("p"),i=e.getBoundingClientRect(),o=a.getBoundingClientRect(),s=getComputedStyle(a),l=0<(null==t?void 0:t.length)?t.map(function(e){return{pos:y(e.position),leader:e.leader,style:e.style}}).sort(function(e,t){return e.pos-t.pos}):[m],t=l[l.length-1],u=o.width*n,c=y(r),h=t.pos+c;if(h<u)for(;h<u&&l.length<50;h+=c)l.push(Object.assign(Object.assign({},m),{pos:h}));var r=parseFloat(s.marginLeft),t=o.left+r,f=(i.left-t)*n,s=l.find(function(e){return"clear"!=e.style&&e.pos>f});if(null!=s){var d,p,i=1;switch(i="right"==s.style||"center"==s.style?(p=(t=Array.from(a.querySelectorAll(".".concat(e.className)))).indexOf(e)+1,(d=document.createRange()).setStart(e,1),p<t.length?d.setEndBefore(t[p]):d.setEndAfter(a),t="center"==s.style?.5:1,a=(p=d.getBoundingClientRect()).left+t*p.width-(o.left-r),s.pos-a*n):s.pos-f,e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(i.toFixed(0),"pt"),s.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}}},881:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.WmlEndnote=t.WmlFootnote=t.WmlBaseNote=void 0;var n,a,i=r(120),r=E(function e(){T(this,e)});function o(){var e;return T(this,o),(e=n.apply(this,arguments)).type=i.DomType.Endnote,e}function s(){var e;return T(this,s),(e=a.apply(this,arguments)).type=i.DomType.Footnote,e}t.WmlBaseNote=r,t.WmlFootnote=(f(s,r),a=d(s),E(s)),t.WmlEndnote=(f(o,r),n=d(o),E(o))},735:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.EndnotesPart=t.FootnotesPart=t.BaseNotePart=void 0;var n,a,i,o=r(530),s=r(881),r=(f(l,o.Part),n=d(l),E(l));function l(e,t,r){return T(this,l),(e=n.call(this,e,t))._documentParser=r,e}function u(e,t,r){return T(this,u),a.call(this,e,t,r)}function c(e,t,r){return T(this,c),i.call(this,e,t,r)}t.BaseNotePart=r,t.FootnotesPart=(f(c,r),i=d(c),E(c,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",s.WmlFootnote)}}]),c),t.EndnotesPart=(f(u,r),a=d(u),E(u,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",s.WmlEndnote)}}]),u)},527:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;var n,a=r(530),i=r(682),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){Object.assign(this,(0,i.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}]),o);function o(e,t,r){return T(this,o),(e=n.call(this,e,t))._documentParser=r,e}t.NumberingPart=r},682:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;var o=r(109),s=r(488);function l(e,t){var r,n={id:t.attr(e,"numId"),overrides:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"abstractNumId":n.abstractId=t.attr(i,"val");break;case"lvlOverride":n.overrides.push(h(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n}function u(e,t){var r,n={id:t.attr(e,"abstractNumId"),levels:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"name":n.name=t.attr(i,"val");break;case"multiLevelType":n.multiLevelType=t.attr(i,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(i,"val");break;case"styleLink":n.styleLink=t.attr(i,"val");break;case"lvl":n.levels.push(c(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n}function c(e,t){var r,n={level:t.intAttr(e,"ilvl")},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"start":n.start=t.attr(i,"val");break;case"lvlRestart":n.restart=t.intAttr(i,"val");break;case"numFmt":n.format=t.attr(i,"val");break;case"lvlText":n.text=t.attr(i,"val");break;case"lvlJc":n.justification=t.attr(i,"val");break;case"lvlPicBulletId":n.bulletPictureId=t.attr(i,"val");break;case"pStyle":n.paragraphStyle=t.attr(i,"val");break;case"pPr":n.paragraphProps=(0,o.parseParagraphProperties)(i,t);break;case"rPr":n.runProps=(0,s.parseRunProperties)(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}function h(e,t){var r,n={level:t.intAttr(e,"ilvl")},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"startOverride":n.start=t.intAttr(i,"val");break;case"lvl":n.numberingLevel=c(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}function f(e,t){var r=t.element(e,"pict"),r=r&&t.element(r,"shape"),n=r&&t.element(r,"imagedata");return n?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(n,"id"),style:t.attr(r,"style")}:null}t.parseNumberingPart=function(e,t){var r,n={numberings:[],abstractNumberings:[],bulletPictures:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"num":n.numberings.push(l(i,t));break;case"abstractNum":n.abstractNumberings.push(u(i,t));break;case"numPicBullet":n.bulletPictures.push(f(i,t))}}}catch(e){a.e(e)}finally{a.f()}return n},t.parseNumbering=l,t.parseAbstractNumbering=u,t.parseNumberingLevel=c,t.parseNumberingLevelOverrride=h,t.parseNumberingBulletPicture=f},472:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.serializeXmlString=t.parseXmlString=void 0;var n=r(149),r=(t.parseXmlString=function(e){e=65279===(t=e=1<arguments.length&&void 0!==arguments[1]&&arguments[1]?e.replace(/<[?].*[?]>/,""):e).charCodeAt(0)?t.substring(1):t;var t=(new DOMParser).parseFromString(e,"application/xml"),e=null==(e=t.getElementsByTagName("parsererror")[0])?void 0:e.textContent;if(e)throw new Error(e);return t},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)},E(a,[{key:"elements",value:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=[],n=0,a=e.childNodes.length;n<a;n++){var i=e.childNodes.item(n);1!=i.nodeType||null!=t&&i.localName!=t||r.push(i)}return r}},{key:"element",value:function(e,t){for(var r=0,n=e.childNodes.length;r<n;r++){var a=e.childNodes.item(r);if(1==a.nodeType&&a.localName==t)return a}return null}},{key:"elementAttr",value:function(e,t,r){e=this.element(e,t);return e?this.attr(e,r):void 0}},{key:"attrs",value:function(e){return Array.from(e.attributes)}},{key:"attr",value:function(e,t){for(var r=0,n=e.attributes.length;r<n;r++){var a=e.attributes.item(r);if(a.localName==t)return a.value}return null}},{key:"intAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e):r}},{key:"hexAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseInt(e,16):r}},{key:"floatAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=this.attr(e,t);return e?parseFloat(e):r}},{key:"boolAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return(0,n.convertBoolean)(this.attr(e,t),r)}},{key:"lengthAttr",value:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:n.LengthUsage.Dxa;return(0,n.convertLength)(this.attr(e,t),r)}}]),a);function a(){T(this,a)}r=new(t.XmlParser=r);t.default=r},287:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPart=void 0;var n,a=r(530),i=r(846),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.settings=(0,i.parseSettings)(e,this._package.xmlParser)}}]),o);function o(e,t){return T(this,o),n.call(this,e,t)}t.SettingsPart=r},846:function(e,t){function o(e,t){var r,n={defaultNoteIds:[]},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"numFmt":n.nummeringFormat=t.attr(i,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(i,"id"))}}}catch(e){a.e(e)}finally{a.f()}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseNoteProperties=t.parseSettings=void 0,t.parseSettings=function(e,t){var r,n={},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"defaultTabStop":n.defaultTabStop=t.lengthAttr(i,"val");break;case"footnotePr":n.footnoteProps=o(i,t);break;case"endnotePr":n.endnoteProps=o(i,t);break;case"autoHyphenation":n.autoHyphenation=t.boolAttr(i,"val")}}}catch(e){a.e(e)}finally{a.f()}return n},t.parseNoteProperties=o},240:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StylesPart=void 0;f(a,r(530).Part),n=d(a),E(a,[{key:"parseXml",value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}]);var n,r=a;function a(e,t,r){return T(this,a),(e=n.call(this,e,t))._documentParser=r,e}t.StylesPart=r},893:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;var n,a=r(530),i=r(55),r=(f(o,a.Part),n=d(o),E(o,[{key:"parseXml",value:function(e){this.theme=(0,i.parseTheme)(e,this._package.xmlParser)}}]),o);function o(e,t){return T(this,o),n.call(this,e,t)}t.ThemePart=r},55:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;var s=E(function e(){T(this,e)});function l(e,t){var r,n={name:t.attr(e,"name"),colors:{}},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value,o=t.element(i,"srgbClr"),s=t.element(i,"sysClr");o?n.colors[i.localName]=t.attr(o,"val"):s&&(n.colors[i.localName]=t.attr(s,"lastClr"))}}catch(e){a.e(e)}finally{a.f()}return n}function u(e,t){var r,n={name:t.attr(e,"name")},a=x(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"majorFont":n.majorFont=o(i,t);break;case"minorFont":n.minorFont=o(i,t)}}}catch(e){a.e(e)}finally{a.f()}return n}function o(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t.DmlTheme=s,t.parseTheme=function(e,t){var r,n=new s,a=t.element(e,"themeElements"),i=x(t.elements(a));try{for(i.s();!(r=i.n()).done;){var o=r.value;switch(o.localName){case"clrScheme":n.colorScheme=l(o,t);break;case"fontScheme":n.fontScheme=u(o,t)}}}catch(e){i.e(e)}finally{i.f()}return n},t.parseColorScheme=l,t.parseFontScheme=u,t.parseFontInfo=o},593:function(e,t){function l(e){return e&&"object"==O(e)&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=t.formatCssRules=t.parseCssRules=t.mergeDeep=t.isString=t.isObject=t.blobToBase64=t.keyBy=t.resolvePath=t.splitPath=t.escapeClassName=void 0,t.escapeClassName=function(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},t.splitPath=function(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(t,r){try{return new URL(t,"http://docx/"+r).toString().substring("http://docx/".length)}catch(e){return"".concat(r).concat(t)}},t.keyBy=function(e,r){return e.reduce(function(e,t){return e[r(t)]=t,e},{})},t.blobToBase64=function(n){return new Promise(function(e,t){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.onerror=function(){return t()},r.readAsDataURL(n)})},t.isObject=l,t.isString=function(e){return"string"==typeof e||e instanceof String},t.mergeDeep=function e(t){for(var r,n=arguments.length,a=new Array(1<n?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(!a.length)return t;var o=a.shift();if(l(t)&&l(o))for(var s in o)l(o[s])?e(null!=(r=t[s])?r:t[s]={},o[s]):t[s]=o[s];return e.apply(void 0,[t].concat(a))},t.parseCssRules=function(e){var t,r={},n=x(e.split(";"));try{for(n.s();!(t=n.n()).done;){var a=C(t.value.split(":"),2),i=a[0],o=a[1];r[i]=o}}catch(e){n.e(e)}finally{n.f()}return r},t.formatCssRules=function(e){return Object.entries(e).map(function(e,t){return"".concat(e,": ").concat(t)}).join(";")},t.asArray=function(e){return Array.isArray(e)?e:[e]}},320:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseVmlElement=t.VmlElement=void 0;var n,v=r(149),a=r(120),w=r(472),_=(f(i,a.OpenXmlElementBase),n=d(i),E(i));function i(){var e;return T(this,i),(e=n.apply(this,arguments)).type=a.DomType.VmlElement,e.attrs={},e}function k(e){return e.split(",")}t.VmlElement=_,t.parseVmlElement=function e(t,r){var n,a=new _;switch(t.localName){case"rect":a.tagName="rect",Object.assign(a.attrs,{width:"100%",height:"100%"});break;case"oval":a.tagName="ellipse",Object.assign(a.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":a.tagName="line";break;case"shape":a.tagName="g";break;case"textbox":a.tagName="foreignObject",Object.assign(a.attrs,{width:"100%",height:"100%"});break;default:return null}var i,o=x(w.default.attrs(t));try{for(o.s();!(i=o.n()).done;){var s=i.value;switch(s.localName){case"style":a.cssStyleText=s.value;break;case"fillcolor":a.attrs.fill=s.value;break;case"from":var l=C(k(s.value),2),u=l[0],c=l[1];Object.assign(a.attrs,{x1:u,y1:c});break;case"to":var h=C(k(s.value),2),f=h[0],d=h[1];Object.assign(a.attrs,{x2:f,y2:d})}}}catch(e){o.e(e)}finally{o.f()}var p,m,y=x(w.default.elements(t));try{for(y.s();!(p=y.n()).done;){var g=p.value;switch(g.localName){case"stroke":Object.assign(a.attrs,(m=g,{stroke:w.default.attr(m,"color"),"stroke-width":null!=(m=w.default.lengthAttr(m,"weight",v.LengthUsage.Emu))?m:"1px"}));break;case"fill":Object.assign(a.attrs,{});break;case"imagedata":a.tagName="image",Object.assign(a.attrs,{width:"100%",height:"100%"}),a.imageHref={id:w.default.attr(g,"id"),title:w.default.attr(g,"title")};break;case"txbxContent":(n=a.children).push.apply(n,S(r.parseBodyElements(g)));break;default:var b=e(g,r);b&&a.children.push(b)}}}catch(e){y.e(e)}finally{y.f()}return a}},213:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;var n,a,i,o,s,l=r(461),u=r(380),c=r(522),h=r(448),f=r(593),d=r(527),p=r(240),m=r(985),y=r(665),g=r(162),b=r(893),v=r(735),w=r(287),_=r(177),k=[{type:l.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:l.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:l.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:l.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}],r=(E(S,[{key:"save",value:function(){return this._package.save(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"blob")}},{key:"loadRelationshipPart",value:(s=P(A().mark(function e(t,r){var n,a,i,o=this;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.partsMap[t])return e.abrupt("return",this.partsMap[t]);e.next=2;break;case 2:if(this._package.get(t)){e.next=4;break}return e.abrupt("return",null);case 4:n=null,e.t0=r,e.next=e.t0===l.RelationshipTypes.OfficeDocument?8:e.t0===l.RelationshipTypes.FontTable?10:e.t0===l.RelationshipTypes.Numbering?12:e.t0===l.RelationshipTypes.Styles?14:e.t0===l.RelationshipTypes.Theme?16:e.t0===l.RelationshipTypes.Footnotes?18:e.t0===l.RelationshipTypes.Endnotes?20:e.t0===l.RelationshipTypes.Footer?22:e.t0===l.RelationshipTypes.Header?24:e.t0===l.RelationshipTypes.CoreProperties?26:e.t0===l.RelationshipTypes.ExtendedProperties?28:e.t0===l.RelationshipTypes.CustomProperties?30:e.t0===l.RelationshipTypes.Settings?32:33;break;case 8:return this.documentPart=n=new h.DocumentPart(this._package,t,this._parser),e.abrupt("break",33);case 10:return this.fontTablePart=n=new u.FontTablePart(this._package,t),e.abrupt("break",33);case 12:return this.numberingPart=n=new d.NumberingPart(this._package,t,this._parser),e.abrupt("break",33);case 14:return this.stylesPart=n=new p.StylesPart(this._package,t,this._parser),e.abrupt("break",33);case 16:return this.themePart=n=new b.ThemePart(this._package,t),e.abrupt("break",33);case 18:return this.footnotesPart=n=new v.FootnotesPart(this._package,t,this._parser),e.abrupt("break",33);case 20:return this.endnotesPart=n=new v.EndnotesPart(this._package,t,this._parser),e.abrupt("break",33);case 22:return n=new m.FooterPart(this._package,t,this._parser),e.abrupt("break",33);case 24:return n=new m.HeaderPart(this._package,t,this._parser),e.abrupt("break",33);case 26:return this.corePropsPart=n=new g.CorePropsPart(this._package,t),e.abrupt("break",33);case 28:return this.extendedPropsPart=n=new y.ExtendedPropsPart(this._package,t),e.abrupt("break",33);case 30:return n=new _.CustomPropsPart(this._package,t),e.abrupt("break",33);case 32:this.settingsPart=n=new w.SettingsPart(this._package,t);case 33:if(null==n)return e.abrupt("return",Promise.resolve(null));e.next=35;break;case 35:return this.partsMap[t]=n,this.parts.push(n),e.next=39,n.load();case 39:if(0<(null==(a=n.rels)?void 0:a.length))return a=(0,f.splitPath)(n.path),a=C(a,1),i=a[0],e.next=43,Promise.all(n.rels.map(function(e){return o.loadRelationshipPart((0,f.resolvePath)(e.target,i),e.type)}));e.next=43;break;case 43:return e.abrupt("return",n);case 44:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)})},{key:"loadDocumentImage",value:(o=P(A().mark(function e(t,r){var n;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(null!=r?r:this.documentPart,t,"blob");case 2:return n=e.sent,e.abrupt("return",this.blobToURL(n));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return o.apply(this,arguments)})},{key:"loadNumberingImage",value:(i=P(A().mark(function e(t){var r;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.numberingPart,t,"blob");case 2:return r=e.sent,e.abrupt("return",this.blobToURL(r));case 4:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"loadFont",value:(a=P(A().mark(function e(t,r){var n;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadResource(this.fontTablePart,t,"uint8array");case 2:return n=e.sent,e.abrupt("return",n&&this.blobToURL(new Blob([x(n,r)])));case 4:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"blobToURL",value:function(e){return e?this._options.useBase64URL?(0,f.blobToBase64)(e):URL.createObjectURL(e):null}},{key:"findPartByRelId",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=(null!=(r=e.rels)?r:this.rels).find(function(e){return e.id==t}),e=e?(0,f.splitPath)(e.path)[0]:"";return r?this.partsMap[(0,f.resolvePath)(r.target,e)]:null}},{key:"getPathById",value:function(e,t){var r=e.rels.find(function(e){return e.id==t}),e=C((0,f.splitPath)(e.path),1)[0];return r?(0,f.resolvePath)(r.target,e):null}},{key:"loadResource",value:function(e,t,r){e=this.getPathById(e,t);return e?this._package.load(e,r):Promise.resolve(null)}}],[{key:"load",value:(n=P(A().mark(function e(t,r,n){var a;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new S)._options=n,a._parser=r,e.next=5,c.OpenXmlPackage.load(t,n);case 5:return a._package=e.sent,e.next=8,a._package.loadRelationships();case 8:return a.rels=e.sent,e.next=11,Promise.all(k.map(function(t){var e=null!=(e=a.rels.find(function(e){return e.type===t.type}))?e:t;return a.loadRelationshipPart(e.target,e.type)}));case 11:return e.abrupt("return",a);case 12:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)})}]),S);function S(){T(this,S),this.parts=[],this.partsMap={}}function x(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(var i=0;i<32;i++)e[i]=e[i]^n[i%16];return e}t.WordDocument=r,t.deobfuscate=x},583:function(e){e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:function(e){e.exports=en}},rn={},s.m=tn,s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.b=document.baseURI||self.location.href,s(667)),an={ignoreLastRenderedPageBreak:!1},o={getData:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?fetch(e,t).then(function(e){return 200!==e.status?Promise.reject(e):e}):Promise.resolve(e)},render:function(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e?(e instanceof Blob?r=e:e instanceof Response?r=e.blob():e instanceof ArrayBuffer&&(r=new Blob([e])),nn.renderAsync(r,t,t,U(U({},an),n))):(t.innerHTML="",Promise.resolve())},getBlob:(Qr=P(A().mark(function e(t){var r;return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t instanceof Blob?(r=t,e.next=11):e.next=4;break;case 4:if(t instanceof Response)return e.next=7,t.blob();e.next=10;break;case 7:r=e.sent,e.next=11;break;case 10:t instanceof ArrayBuffer&&(r=new Blob([t]));case 11:return e.abrupt("return",r);case 12:case"end":return e.stop()}},e)})),function(e){return Qr.apply(this,arguments)})};function s(e){var t=rn[e];return void 0!==t||(t=rn[e]={id:e,exports:{}},tn[e](t,t.exports,s)),t.exports}function l(){if(!(this instanceof l))return new l;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 e,t=new l;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}function on(){return(on=P(A().mark(function e(a,i){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i&&(i instanceof ArrayBuffer&&(i=new Blob([i])),t=a,r=URL.createObjectURL(i),n=void 0,(n=document.createElement("a")).download=t,n.style.display="none",n.href=r,document.body.appendChild(n),n.click(),document.body.removeChild(n));case 1:case"end":return e.stop()}var t,r,n},e)}))).apply(this,arguments)}E(un,[{key:"createWrapper",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vue-office-docx",this.wrapperMain=document.createElement("div"),this.wrapperMain.className="vue-office-docx-main",this.wrapper.appendChild(this.wrapperMain),this.container.appendChild(this.wrapper)}},{key:"setOptions",value:function(e){this.options=e}},{key:"setRequestOptions",value:function(e){this.requestOptions=e}},{key:"preview",value:function(e){var a=this;return new Promise(function(r,n){var t;o.getData(e,a.requestOptions).then((t=P(A().mark(function e(t){return A().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.getBlob(t);case 2:a.fileData=e.sent,o.render(a.fileData,a.wrapperMain,a.options).then(function(){r()}).catch(function(e){o.render("",a.wrapperMain,a.options),n(e)});case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})).catch(function(e){o.render("",a.wrapperMain,a.options),n(e)})})}},{key:"save",value:function(e){!function(){on.apply(this,arguments)}(e||"js-preview-docx-".concat((new Date).getTime(),".docx"),this.fileData)}},{key:"destroy",value:function(){this.container.removeChild(this.wrapper),this.container=null,this.wrapper=null,this.wrapperMain=null,this.options=null,this.requestOptions=null}}]);var sn=un,ln={init:function(e,t,r){return new sn(e,t,r)}};function un(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};T(this,un),n(this,"container",null),n(this,"wrapper",null),n(this,"wrapperMain",null),n(this,"options",{}),n(this,"requestOptions",{}),n(this,"fileData",null),this.container=e,this.options=t,this.requestOptions=r,this.createWrapper()}}.call(this,hn(30),hn(316),hn(566).setImmediate,hn(556).Buffer)},843:function(e,t,r){e.exports=n;var c=r(575).EventEmitter;function n(){c.call(this)}r(563)(n,c),n.Readable=r(594),n.Writable=r(851),n.Duplex=r(852),n.Transform=r(853),n.PassThrough=r(854),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",a),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var i=!1;function o(){i||(i=!0,t.end())}function s(){i||(i=!0,"function"==typeof t.destroy&&t.destroy())}function l(e){if(u(),0===c.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",l),t.on("error",l),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},844:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},845:function(e,t){},846:function(e,t,r){"use strict";var i=r(595).Buffer,n=r(847);function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}e.exports=(a.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},a.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},a.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},a.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t,r=i.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=a,n.data.copy(r,t),a+=n.data.length,n=n.next;return r},a),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},847:function(e,t){},848:function(e,t,r){!function(r){function n(e){try{if(!r.localStorage)return}catch(e){return}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){var r;return n("noDeprecation")?e:(r=!1,function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)})}}.call(this,r(30))},849:function(e,t,r){var n=r(556),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=a(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},850:function(e,t,r){"use strict";e.exports=a;var n=r(649),e=Object.create(r(567));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}e.inherits=r(563),e.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},851:function(e,t,r){e.exports=r(596)},852:function(e,t,r){e.exports=r(557)},853:function(e,t,r){e.exports=r(594).Transform},854:function(e,t,r){e.exports=r(594).PassThrough},855:function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},856:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},857:function(e,t,r){var n=r(858);"string"==typeof n&&(n=[[e.i,n,""]]);r(88)(n,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(e.exports=n.locals)},858:function(e,t,r){(t=r(87)(!1)).push([e.i,".vue-office-docx {\n height: 100%;\n overflow-y: auto;\n}\n.vue-office-docx .docx-wrapper > section.docx {\n margin-bottom: 5px;\n}\n@media screen and (max-width: 800px) {\n .vue-office-docx .docx-wrapper {\n padding: 10px;\n }\n .vue-office-docx .docx-wrapper > section.docx {\n padding: 10px!important;\n width: 100% !important;\n }\n}\n",""]),e.exports=t}}]);